greenole-design-system 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/package.json +5 -7
- package/dist/greenole.css +0 -1529
- package/src/assets/react.svg +0 -1
- package/src/base-components/Button/Button.stories.tsx +0 -180
- package/src/base-components/Button/Button.tsx +0 -84
- package/src/base-components/Button/Button.types.ts +0 -18
- package/src/base-components/Button/index.ts +0 -5
- package/src/base-components/Dropdown/Dropdown.stories.tsx +0 -160
- package/src/base-components/Dropdown/Dropdown.tsx +0 -203
- package/src/base-components/Dropdown/Dropdown.types.ts +0 -23
- package/src/base-components/Dropdown/DropdownOptionItem.tsx +0 -59
- package/src/base-components/Dropdown/index.ts +0 -2
- package/src/base-components/Loading/Loading.stories.tsx +0 -43
- package/src/base-components/Loading/Loading.tsx +0 -44
- package/src/base-components/Loading/Loading.types.ts +0 -7
- package/src/base-components/Loading/index.ts +0 -2
- package/src/components/Accordion/Accordion.stories.tsx +0 -66
- package/src/components/Accordion/Accordion.tsx +0 -58
- package/src/components/Accordion/types.ts +0 -9
- package/src/components/Calendar/Calendar.stories.tsx +0 -86
- package/src/components/Calendar/Calendar.styles.ts +0 -11
- package/src/components/Calendar/Calendar.tsx +0 -27
- package/src/components/Calendar/Calendar.types.ts +0 -11
- package/src/components/Calendar/Calendar.utils.ts +0 -19
- package/src/components/Calendar/DateRangePicker.tsx +0 -113
- package/src/components/Calendar/Presets.tsx +0 -75
- package/src/components/Calendar/index.ts +0 -3
- package/src/components/Card/Card.stories.tsx +0 -111
- package/src/components/Card/Card.tsx +0 -26
- package/src/components/Card/Card.types.ts +0 -34
- package/src/components/Card/CardBody.tsx +0 -16
- package/src/components/Card/CardFooter.tsx +0 -26
- package/src/components/Card/CardHeader.tsx +0 -48
- package/src/components/Card/index.ts +0 -6
- package/src/components/Empty/Empty.stories.tsx +0 -34
- package/src/components/Empty/Empty.tsx +0 -23
- package/src/components/Icons/ArrowBack.tsx +0 -23
- package/src/components/Icons/ArrowForward.tsx +0 -23
- package/src/components/Icons/Campaing.tsx +0 -29
- package/src/components/Icons/Checkbox.tsx +0 -25
- package/src/components/Icons/ChevronDown.tsx +0 -16
- package/src/components/Icons/ChevronUp.tsx +0 -25
- package/src/components/Icons/DashEdit.tsx +0 -18
- package/src/components/Icons/Dashboard.tsx +0 -18
- package/src/components/Icons/Devices.tsx +0 -18
- package/src/components/Icons/FlagBR.tsx +0 -48
- package/src/components/Icons/FlagES.tsx +0 -575
- package/src/components/Icons/FlagPT.tsx +0 -157
- package/src/components/Icons/FlagUK.tsx +0 -26
- package/src/components/Icons/FlagUSA.tsx +0 -25
- package/src/components/Icons/HeaderSearch.tsx +0 -25
- package/src/components/Icons/HelpOutlined.tsx +0 -18
- package/src/components/Icons/History.tsx +0 -25
- package/src/components/Icons/Home.tsx +0 -25
- package/src/components/Icons/Icons.stories.tsx +0 -118
- package/src/components/Icons/Icons.tsx +0 -44
- package/src/components/Icons/Info.tsx +0 -34
- package/src/components/Icons/Language.tsx +0 -18
- package/src/components/Icons/Lock.tsx +0 -19
- package/src/components/Icons/Logout.tsx +0 -18
- package/src/components/Icons/Map.tsx +0 -18
- package/src/components/Icons/Moon.tsx +0 -25
- package/src/components/Icons/MoreHorizontal.tsx +0 -26
- package/src/components/Icons/Notification.tsx +0 -19
- package/src/components/Icons/PeopleAlt.tsx +0 -21
- package/src/components/Icons/PriorityHigh.tsx +0 -23
- package/src/components/Icons/Public.tsx +0 -26
- package/src/components/Icons/Search.tsx +0 -26
- package/src/components/Icons/Secutiry.tsx +0 -18
- package/src/components/Icons/Settings.tsx +0 -18
- package/src/components/Icons/Star.tsx +0 -30
- package/src/components/Icons/WBSunny.tsx +0 -25
- package/src/components/Icons/WarningAmber.tsx +0 -18
- package/src/components/Table/DataTable.stories.tsx +0 -233
- package/src/components/Table/DataTable.tsx +0 -103
- package/src/components/Table/Pagination.tsx +0 -92
- package/src/components/Table/types.tsx +0 -11
- package/src/components/Typography/Typography.stories.tsx +0 -274
- package/src/components/Typography/Typography.tsx +0 -256
- package/src/index.css +0 -15
- package/src/index.ts +0 -15
- package/src/main.jsx +0 -8
- package/src/theme.css +0 -156
- package/src/utils/i18n/i18n.ts +0 -32
- package/src/utils/i18n/locales/en.json +0 -5
- package/src/utils/i18n/locales/es.json +0 -5
- package/src/utils/i18n/locales/pt-br.json +0 -5
- package/src/utils/i18n/locales/pt.json +0 -5
package/README.md
CHANGED
|
@@ -36,7 +36,19 @@ npm install greenole-design-system
|
|
|
36
36
|
|
|
37
37
|
## Usage
|
|
38
38
|
|
|
39
|
-
After installation, you
|
|
39
|
+
After installation, you need to import both the CSS styles and the components:
|
|
40
|
+
|
|
41
|
+
### 1. Import the CSS styles
|
|
42
|
+
|
|
43
|
+
First, import the CSS file in your main application file (usually `main.jsx`, `App.jsx`, or `index.js`):
|
|
44
|
+
|
|
45
|
+
```jsx
|
|
46
|
+
import 'greenole-design-system/dist/greenole.css';
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 2. Import and use components
|
|
50
|
+
|
|
51
|
+
Then you can import and use the library's components:
|
|
40
52
|
|
|
41
53
|
```jsx
|
|
42
54
|
import React from 'react';
|
package/package.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "greenole-design-system",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/greenole-design-system.cjs.js",
|
|
6
6
|
"module": "dist/greenole-design-system.es.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"style": "dist/greenole.css",
|
|
9
8
|
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
"src"
|
|
9
|
+
"dist"
|
|
12
10
|
],
|
|
13
11
|
"publishConfig": {
|
|
14
12
|
"access": "public"
|
|
@@ -19,7 +17,7 @@
|
|
|
19
17
|
"license": "MIT",
|
|
20
18
|
"scripts": {
|
|
21
19
|
"dev": "vite",
|
|
22
|
-
"build": "
|
|
20
|
+
"build": "vite build",
|
|
23
21
|
"lint": "eslint .",
|
|
24
22
|
"preview": "vite preview",
|
|
25
23
|
"storybook": "storybook dev -p 6006",
|
|
@@ -28,8 +26,8 @@
|
|
|
28
26
|
},
|
|
29
27
|
"peerDependencies": {
|
|
30
28
|
"i18next": "^24.2.2",
|
|
31
|
-
"react": "
|
|
32
|
-
"react-dom": "
|
|
29
|
+
"react": "^18.3.1",
|
|
30
|
+
"react-dom": "^18.3.1",
|
|
33
31
|
"react-i18next": "^15.4.0"
|
|
34
32
|
},
|
|
35
33
|
"devDependencies": {
|