From 9cc38b57758f34fd18212fd62d60f35e20ee415a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Holeczek?= Date: Fri, 18 Feb 2022 01:40:20 +0100 Subject: [PATCH] init lerna --- README.md | 2 - packages/icons-react/LICENSE | 21 +++++++++ packages/icons-react/README.md | 6 +-- packages/icons-react/package.json | 7 +-- packages/icons-react/rollup.config.js | 10 +++++ packages/icons/README.md | 62 +++++++++++++-------------- 6 files changed, 68 insertions(+), 40 deletions(-) create mode 100644 packages/icons-react/LICENSE diff --git a/README.md b/README.md index 824dc13f9..8bbba4545 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,6 @@ · Request feature · - Community - · Blog

diff --git a/packages/icons-react/LICENSE b/packages/icons-react/LICENSE new file mode 100644 index 000000000..f19fc7294 --- /dev/null +++ b/packages/icons-react/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 creativeLabs Łukasz Holeczek + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/icons-react/README.md b/packages/icons-react/README.md index 5a2368d6f..aaef2b1bf 100644 --- a/packages/icons-react/README.md +++ b/packages/icons-react/README.md @@ -14,8 +14,6 @@ · Request feature · - Community - · Blog

@@ -34,14 +32,14 @@ ```bash npm install @coreui/icons -npm install @coreui/icons-react@next +npm install @coreui/icons-react ``` or ```bash yarn add @coreui/icons -yarn add @coreui/icons-react@next +yarn add @coreui/icons-react ``` ## Use diff --git a/packages/icons-react/package.json b/packages/icons-react/package.json index 33517a320..1a2e73e03 100644 --- a/packages/icons-react/package.json +++ b/packages/icons-react/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/icons-react", - "version": "2.0.0-rc.6", + "version": "2.0.0", "description": "Official React component for CoreUI Icons", "keywords": [ "coreui", @@ -26,15 +26,16 @@ "main": "dist/index.js", "module": "dist/index.es.js", "jsnext:main": "dist/index.es.js", - "typings": "dist/index.d.ts", + "types": "dist/index.d.ts", "files": [ "dist/", - "README.md" + "src/" ], "scripts": { "build": "rollup -c", "lint": "eslint \"src/**/*.{js,ts,tsx}\"", "test": "jest --coverage", + "test:clear": "jest --clearCache", "test:update": "jest --coverage --updateSnapshot" }, "devDependencies": { diff --git a/packages/icons-react/rollup.config.js b/packages/icons-react/rollup.config.js index bef526565..149f84e31 100644 --- a/packages/icons-react/rollup.config.js +++ b/packages/icons-react/rollup.config.js @@ -12,12 +12,22 @@ export default { format: 'cjs', exports: 'named', sourcemap: true, + sourcemapPathTransform: (relativeSourcePath) => { + return relativeSourcePath + .replace('../../node_modules/', '../') + .replace('../packages/icons-react', '..') + }, }, { file: pkg.module, format: 'es', exports: 'named', sourcemap: true, + sourcemapPathTransform: (relativeSourcePath) => { + return relativeSourcePath + .replace('../../node_modules/', '../') + .replace('../packages/icons-react', '..') + }, }, ], plugins: [ diff --git a/packages/icons/README.md b/packages/icons/README.md index 524774a4e..8bbba4545 100644 --- a/packages/icons/README.md +++ b/packages/icons/README.md @@ -1,28 +1,27 @@ -

- -

- -

- - npm (scoped) - - - npm + + CoreUI Icons logo

-# CoreUI Icons (1500+ Free icons)- Simply beautiful open source icons - -CoreUI Icons is an open-source icon set with more than 1500 icons in multiple formats SVG, PNG, and Webfonts. CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app. +

+ Open Source icons set with over 1500 simply beautiful icons, and components for Angular, React.js & Vue.js. +
+ Explore CoreUI Iconsdocs » +
+
+ Report bug + · + Request feature + · + Blog +

![CoreUI Free Icons](https://coreui.io/images/icons_free_bg_set.png) ## Table of Contents -- [CoreUI Icons (1500+ Free icons)- Simply beautiful open source icons](#coreui-icons-1500-free-icons--simply-beautiful-open-source-icons) - - [Table of Contents](#table-of-contents) - - [Preview & Docs](#preview--docs) +- [Preview & Docs](#preview--docs) - [Installation](#installation) - [CDN](#cdn) - [NPM](#npm) @@ -31,14 +30,16 @@ CoreUI Icons is an open-source icon set with more than 1500 icons in multiple fo - [Basic Use](#basic-use) - [SVG Sprites](#svg-sprites) - [SVG Symbols](#svg-symbols) - - [CoreUI Icons for Angular](#coreui-icons-for-angular) - - [CoreUI Icons for React.js](#coreui-icons-for-reactjs) - - [CoreUI Icons for Vue.js](#coreui-icons-for-vuejs) + - [Usage with Frameworks](#usage) + - [Angular](#angular) + - [React.js](#reactjs) + - [Vue.js](#vuejs) - [CoreUI Icons PRO](#coreui-icons-pro) - [License](#license) - [CoreUI Icons Free Icons](#coreui-icons-free-icons) - [CoreUI Icons Brand and Flag Icons](#coreui-icons-brand-and-flag-icons) - [Brand Icons](#brand-icons) + ## Preview & Docs [https://coreui.io/icons/](https://coreui.io/icons/) @@ -72,7 +73,7 @@ npm install @coreui/icons --save yarn add @coreui/icons ``` -Or, you can also clone or [download this repository](https://github.com/coreui/coreui-icons/archive/master.zip) as zip. +Or, you can also clone or [download this repository](https://github.com/coreui/coreui-icons/archive/main.zip) as zip. ## Usage @@ -83,13 +84,7 @@ Please use `cil-` prefix for linear icons, `cib-` prefix for brand icons, and `c ```html -``` - -```html -``` - -```html ``` @@ -119,8 +114,8 @@ When you download your icon set, it comes with a sprites directory that contains ```html -apple - + apple + @@ -142,17 +137,22 @@ Referencing an external SVG has the advantage that your icons get cached, with o ```html ``` -### CoreUI Icons for Angular + +## Usage with frameworks + +If you are using a framework, CoreUI Icons are delivered with official components for Angular, React, and Vue. + +### Angular - Please check official repository [CoreUI Icons for Angular](https://github.com/coreui/coreui-icons-angular) ### CoreUI Icons for React.js -- Please check official repository [CoreUI Icons for React](https://github.com/coreui/coreui-icons-react) +- [CoreUI Icons for React](https://github.com/coreui/coreui-icons/packages/icons-react) ### CoreUI Icons for Vue.js -- Please check official repository [CoreUI Icons for Vue.js](https://github.com/coreui/coreui-icons-vue) +- [CoreUI Icons for Vue](https://github.com/coreui/coreui-icons/packages/icons-vue) ## CoreUI Icons PRO