@omniumretail/component-library 1.0.66 → 1.0.68
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/.storybook/main.js +16 -16
- package/.storybook/preview-head.html +20 -20
- package/.storybook/preview.js +27 -27
- package/README.md +54 -54
- package/bitbucket-pipelines.yml +94 -94
- package/dist/bundle.js +12047 -0
- package/dist/main.css +1244 -0
- package/dist/types/components/AnalyticsBar/AnalyticsBar.stories.d.ts +5 -0
- package/dist/types/components/AnalyticsBar/helpers/codeMutation.d.ts +4 -0
- package/dist/types/components/AnalyticsBar/index.d.ts +2 -0
- package/dist/types/components/AnalyticsBar/interfaces/analyticsBar.d.ts +12 -0
- package/dist/types/components/Button/Button.stories.d.ts +6 -0
- package/dist/types/components/Button/index.d.ts +7 -0
- package/dist/types/components/Category/Category.stories.d.ts +4 -0
- package/dist/types/components/Category/CategoryContent/index.d.ts +7 -0
- package/dist/types/components/Category/CategorySidebar/index.d.ts +26 -0
- package/dist/types/components/Category/index.d.ts +7 -0
- package/dist/types/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +4 -0
- package/dist/types/components/CategoryReadOnly/evaluationOptions.d.ts +10 -0
- package/dist/types/components/CategoryReadOnly/index.d.ts +9 -0
- package/dist/types/components/CategoryResponse/CategoryResponse.stories.d.ts +4 -0
- package/dist/types/components/CategoryResponse/evaluationOptions.d.ts +10 -0
- package/dist/types/components/CategoryResponse/index.d.ts +9 -0
- package/dist/types/components/DatePicker/DatePicker.stories.d.ts +5 -0
- package/dist/types/components/DatePicker/index.d.ts +8 -0
- package/dist/types/components/DatePickerTag/DatePickerTag.stories.d.ts +5 -0
- package/dist/types/components/DatePickerTag/index.d.ts +6 -0
- package/dist/types/components/Footer/Footer.stories.d.ts +5 -0
- package/dist/types/components/Footer/index.d.ts +4 -0
- package/dist/types/components/Input/Input.stories.d.ts +5 -0
- package/dist/types/components/Input/index.d.ts +10 -0
- package/dist/types/components/InputCountryCode/index.d.ts +10 -0
- package/dist/types/components/InputCountryCode/inputCountryCode.stories.d.ts +5 -0
- package/dist/types/components/Label/Label.stories.d.ts +6 -0
- package/dist/types/components/Label/index.d.ts +7 -0
- package/dist/types/components/Link/Link.stories.d.ts +7 -0
- package/dist/types/components/Link/index.d.ts +7 -0
- package/dist/types/components/Menu/Menu.stories.d.ts +5 -0
- package/dist/types/components/Menu/helpers/codeMutation.d.ts +4 -0
- package/dist/types/components/Menu/index.d.ts +2 -0
- package/dist/types/components/ModalConfirmation/ModalConfirmation.stories.d.ts +5 -0
- package/dist/types/components/ModalConfirmation/ModalStatusList.d.ts +5 -0
- package/dist/types/components/ModalConfirmation/index.d.ts +9 -0
- package/dist/types/components/ModalWithTable/ModalWithTable.stories.d.ts +5 -0
- package/dist/types/components/ModalWithTable/index.d.ts +13 -0
- package/dist/types/components/Navigation/Navigation.stories.d.ts +5 -0
- package/dist/types/components/Navigation/index.d.ts +10 -0
- package/dist/types/components/Notification/Notification.stories.d.ts +5 -0
- package/dist/types/components/Notification/index.d.ts +9 -0
- package/dist/types/components/Questions/Questions.stories.d.ts +4 -0
- package/dist/types/components/Questions/SingleQuestion/index.d.ts +1 -0
- package/dist/types/components/Questions/index.d.ts +5 -0
- package/dist/types/components/Radio/Radio.stories.d.ts +5 -0
- package/dist/types/components/Radio/index.d.ts +10 -0
- package/dist/types/components/Select/Select.stories.d.ts +6 -0
- package/dist/types/components/Select/index.d.ts +5 -0
- package/dist/types/components/Separator/Separator.stories.d.ts +6 -0
- package/dist/types/components/Separator/index.d.ts +11 -0
- package/dist/types/components/Sidebar/Sidebar.stories.d.ts +6 -0
- package/dist/types/components/Sidebar/index.d.ts +15 -0
- package/dist/types/components/Switch/Switch.stories.d.ts +5 -0
- package/dist/types/components/Switch/index.d.ts +2 -0
- package/dist/types/components/Table/Table.stories.d.ts +9 -0
- package/dist/types/components/Table/index.d.ts +36 -0
- package/dist/types/components/Tag/Tag.stories.d.ts +5 -0
- package/dist/types/components/Tag/index.d.ts +8 -0
- package/dist/types/components/Upload/Upload.stories.d.ts +4 -0
- package/dist/types/components/Upload/index.d.ts +8 -0
- package/dist/types/components/UserInfo/UserInfo.stories.d.ts +4 -0
- package/dist/types/components/UserInfo/index.d.ts +8 -0
- package/dist/types/components/index.d.ts +25 -0
- package/dist/types/constants/i18n.d.ts +1 -0
- package/dist/types/constants/translationHelper.d.ts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +198 -198
- package/src/assets/scss/_global.scss +89 -89
- package/src/assets/scss/index.scss +2 -2
- package/src/components/AnalyticsBar/AnalyticsBar.stories.tsx +236 -236
- package/src/components/AnalyticsBar/helpers/codeMutation.tsx +19 -19
- package/src/components/AnalyticsBar/index.tsx +76 -76
- package/src/components/AnalyticsBar/interfaces/analyticsBar.tsx +13 -13
- package/src/components/AnalyticsBar/styles.module.scss +108 -108
- package/src/components/Button/Button.stories.tsx +26 -26
- package/src/components/Button/index.tsx +24 -24
- package/src/components/Button/styles.module.scss +65 -65
- package/src/components/Category/Category.stories.tsx +88 -88
- package/src/components/Category/CategoryContent/index.tsx +188 -188
- package/src/components/Category/CategoryContent/styles.module.scss +51 -51
- package/src/components/Category/CategorySidebar/index.tsx +268 -268
- package/src/components/Category/CategorySidebar/styles.module.scss +28 -28
- package/src/components/Category/index.tsx +76 -76
- package/src/components/Category/styles.module.scss +13 -13
- package/src/components/CategoryReadOnly/CategoryReadOnly.stories.tsx +270 -270
- package/src/components/CategoryReadOnly/evaluationOptions.tsx +81 -81
- package/src/components/CategoryReadOnly/index.tsx +254 -254
- package/src/components/CategoryReadOnly/styles.module.scss +184 -184
- package/src/components/CategoryResponse/CategoryResponse.stories.tsx +251 -251
- package/src/components/CategoryResponse/evaluationOptions.tsx +81 -81
- package/src/components/CategoryResponse/index.tsx +277 -277
- package/src/components/CategoryResponse/styles.module.scss +175 -160
- package/src/components/DatePicker/DatePicker.stories.tsx +16 -16
- package/src/components/DatePicker/index.tsx +38 -38
- package/src/components/DatePicker/styles.module.scss +3 -3
- package/src/components/DatePickerTag/DatePickerTag.stories.tsx +19 -19
- package/src/components/DatePickerTag/index.tsx +89 -89
- package/src/components/DatePickerTag/styles.module.scss +31 -31
- package/src/components/Footer/Footer.stories.tsx +14 -14
- package/src/components/Footer/index.tsx +38 -38
- package/src/components/Footer/styles.module.scss +38 -38
- package/src/components/Input/Input.stories.tsx +13 -13
- package/src/components/Input/index.tsx +31 -31
- package/src/components/Input/styles.module.scss +8 -8
- package/src/components/InputCountryCode/index.tsx +75 -75
- package/src/components/InputCountryCode/inputCountryCode.stories.tsx +55 -55
- package/src/components/InputCountryCode/styles.module.scss +3 -3
- package/src/components/Label/Label.stories.tsx +21 -21
- package/src/components/Label/index.tsx +19 -19
- package/src/components/Label/styles.module.scss +16 -16
- package/src/components/Link/Link.stories.tsx +30 -30
- package/src/components/Link/index.tsx +21 -21
- package/src/components/Link/styles.module.scss +24 -24
- package/src/components/Menu/Menu.stories.tsx +178 -178
- package/src/components/Menu/helpers/codeMutation.tsx +19 -19
- package/src/components/Menu/index.tsx +23 -23
- package/src/components/ModalConfirmation/ModalConfirmation.stories.tsx +40 -40
- package/src/components/ModalConfirmation/ModalStatusList.tsx +5 -5
- package/src/components/ModalConfirmation/index.tsx +70 -70
- package/src/components/ModalConfirmation/styles.module.scss +62 -62
- package/src/components/ModalWithTable/ModalWithTable.stories.tsx +96 -96
- package/src/components/ModalWithTable/index.tsx +232 -232
- package/src/components/ModalWithTable/styles.module.scss +77 -77
- package/src/components/Navigation/Navigation.stories.tsx +17 -17
- package/src/components/Navigation/index.tsx +33 -33
- package/src/components/Navigation/styles.module.scss +58 -42
- package/src/components/Notification/Notification.stories.tsx +29 -29
- package/src/components/Notification/index.tsx +21 -21
- package/src/components/Questions/Questions.stories.tsx +37 -37
- package/src/components/Questions/SingleQuestion/index.tsx +84 -84
- package/src/components/Questions/SingleQuestion/styles.module.scss +81 -81
- package/src/components/Questions/index.tsx +78 -78
- package/src/components/Radio/Radio.stories.tsx +43 -43
- package/src/components/Radio/index.tsx +26 -26
- package/src/components/Radio/styles.module.scss +23 -23
- package/src/components/Select/Select.stories.tsx +39 -39
- package/src/components/Select/index.tsx +27 -27
- package/src/components/Select/styles.module.scss +13 -13
- package/src/components/Separator/Separator.stories.tsx +22 -22
- package/src/components/Separator/index.tsx +27 -27
- package/src/components/Separator/styles.module.scss +25 -25
- package/src/components/Sidebar/Sidebar.stories.tsx +85 -85
- package/src/components/Sidebar/index.tsx +103 -103
- package/src/components/Sidebar/styles.module.scss +85 -85
- package/src/components/Switch/Switch.stories.tsx +14 -14
- package/src/components/Switch/index.tsx +8 -8
- package/src/components/Switch/styles.module.scss +7 -7
- package/src/components/Table/Table.stories.tsx +221 -221
- package/src/components/Table/index.tsx +271 -271
- package/src/components/Table/styles.module.scss +75 -75
- package/src/components/Tag/Tag.stories.tsx +22 -22
- package/src/components/Tag/index.tsx +189 -189
- package/src/components/Tag/styles.module.scss +60 -60
- package/src/components/Upload/Upload.stories.tsx +45 -45
- package/src/components/Upload/index.tsx +91 -91
- package/src/components/UserInfo/UserInfo.stories.tsx +37 -37
- package/src/components/UserInfo/index.tsx +62 -62
- package/src/components/UserInfo/styles.module.scss +29 -29
- package/src/components/index.tsx +25 -25
- package/src/constants/i18n.ts +25 -25
- package/src/constants/translationHelper.ts +7 -7
- package/src/index.ts +2 -2
- package/src/locales/en.json +86 -86
- package/src/locales/es.json +86 -86
- package/src/locales/pt.json +86 -86
- package/src/types/Global.d.ts +4 -4
- package/tsconfig.json +29 -29
- package/webpack.config.js +51 -51
package/package.json
CHANGED
|
@@ -1,198 +1,198 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@omniumretail/component-library",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"main": "dist/bundle.js",
|
|
6
|
-
"typings": "./dist/types/index",
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"@ant-design/icons": "^4.8.0",
|
|
9
|
-
"@babel/core": "^7.16.0",
|
|
10
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
11
|
-
"@svgr/webpack": "^5.5.0",
|
|
12
|
-
"@testing-library/jest-dom": "^5.14.1",
|
|
13
|
-
"@testing-library/react": "^13.0.0",
|
|
14
|
-
"@testing-library/user-event": "^13.2.1",
|
|
15
|
-
"@types/jest": "^29.2.4",
|
|
16
|
-
"@types/node": "^18.11.11",
|
|
17
|
-
"@types/react": "^18.0.26",
|
|
18
|
-
"@types/react-beautiful-dnd": "^13.1.3",
|
|
19
|
-
"@types/react-dom": "^18.0.9",
|
|
20
|
-
"antd": "^5.1.2",
|
|
21
|
-
"antd-img-crop": "^4.10.2",
|
|
22
|
-
"babel-jest": "^27.4.2",
|
|
23
|
-
"babel-loader": "^8.2.3",
|
|
24
|
-
"babel-plugin-named-asset-import": "^0.3.8",
|
|
25
|
-
"babel-preset-react-app": "^10.0.1",
|
|
26
|
-
"bfj": "^7.0.2",
|
|
27
|
-
"browser-image-compression": "^2.0.2",
|
|
28
|
-
"browserslist": "^4.18.1",
|
|
29
|
-
"camelcase": "^6.2.1",
|
|
30
|
-
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
31
|
-
"classnames": "^2.3.2",
|
|
32
|
-
"css-loader": "^6.5.1",
|
|
33
|
-
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
34
|
-
"dotenv": "^10.0.0",
|
|
35
|
-
"dotenv-expand": "^5.1.0",
|
|
36
|
-
"eslint": "^8.3.0",
|
|
37
|
-
"eslint-config-react-app": "^7.0.1",
|
|
38
|
-
"eslint-webpack-plugin": "^3.1.1",
|
|
39
|
-
"file-loader": "^6.2.0",
|
|
40
|
-
"fs-extra": "^10.0.0",
|
|
41
|
-
"html-webpack-plugin": "^5.5.0",
|
|
42
|
-
"i18next": "^22.4.9",
|
|
43
|
-
"i18next-browser-languagedetector": "^7.0.1",
|
|
44
|
-
"i18next-fetch-backend": "^5.0.1",
|
|
45
|
-
"identity-obj-proxy": "^3.0.0",
|
|
46
|
-
"jest": "^27.4.3",
|
|
47
|
-
"jest-resolve": "^27.4.2",
|
|
48
|
-
"jest-watch-typeahead": "^1.0.0",
|
|
49
|
-
"lodash.merge": "^4.6.2",
|
|
50
|
-
"mini-css-extract-plugin": "^2.7.2",
|
|
51
|
-
"moment": "^2.29.4",
|
|
52
|
-
"postcss": "^8.4.4",
|
|
53
|
-
"postcss-flexbugs-fixes": "^5.0.2",
|
|
54
|
-
"postcss-loader": "^6.2.1",
|
|
55
|
-
"postcss-normalize": "^10.0.1",
|
|
56
|
-
"postcss-preset-env": "^7.0.1",
|
|
57
|
-
"prompts": "^2.4.2",
|
|
58
|
-
"rc-tween-one": "^3.0.6",
|
|
59
|
-
"react": "^18.2.0",
|
|
60
|
-
"react-app-polyfill": "^3.0.0",
|
|
61
|
-
"react-beautiful-dnd": "^13.1.1",
|
|
62
|
-
"react-dev-utils": "^12.0.1",
|
|
63
|
-
"react-dom": "^18.2.0",
|
|
64
|
-
"react-easy-crop": "^4.7.4",
|
|
65
|
-
"react-i18next": "^12.1.4",
|
|
66
|
-
"react-refresh": "^0.11.0",
|
|
67
|
-
"resolve": "^1.20.0",
|
|
68
|
-
"resolve-url-loader": "^4.0.0",
|
|
69
|
-
"sass": "^1.56.1",
|
|
70
|
-
"sass-loader": "^12.3.0",
|
|
71
|
-
"semver": "^7.3.5",
|
|
72
|
-
"source-map-loader": "^3.0.0",
|
|
73
|
-
"style-loader": "^3.3.1",
|
|
74
|
-
"tailwindcss": "^3.0.2",
|
|
75
|
-
"terser-webpack-plugin": "^5.2.5",
|
|
76
|
-
"typescript": "^4.9.3",
|
|
77
|
-
"url-loader": "^4.1.1",
|
|
78
|
-
"web-vitals": "^2.1.0",
|
|
79
|
-
"webpack-dev-server": "^4.6.0",
|
|
80
|
-
"webpack-manifest-plugin": "^4.0.2",
|
|
81
|
-
"workbox-webpack-plugin": "^6.4.1"
|
|
82
|
-
},
|
|
83
|
-
"scripts": {
|
|
84
|
-
"prepublish": "rm -rf ./dist && npm run build",
|
|
85
|
-
"start": "webpack -w",
|
|
86
|
-
"build": "webpack",
|
|
87
|
-
"test": "node scripts/test.js",
|
|
88
|
-
"storybook": "start-storybook -p 6006 -c .storybook watch-css -s public",
|
|
89
|
-
"build-storybook": "build-storybook -s public",
|
|
90
|
-
"deploy": "aws s3 sync storybook-static/ s3://changeToBucketName"
|
|
91
|
-
},
|
|
92
|
-
"eslintConfig": {
|
|
93
|
-
"extends": [
|
|
94
|
-
"react-app",
|
|
95
|
-
"react-app/jest"
|
|
96
|
-
],
|
|
97
|
-
"overrides": [
|
|
98
|
-
{
|
|
99
|
-
"files": [
|
|
100
|
-
"**/*.stories.*"
|
|
101
|
-
],
|
|
102
|
-
"rules": {
|
|
103
|
-
"import/no-anonymous-default-export": "off"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
|
-
"browserslist": {
|
|
109
|
-
"production": [
|
|
110
|
-
">0.2%",
|
|
111
|
-
"not dead",
|
|
112
|
-
"not op_mini all"
|
|
113
|
-
],
|
|
114
|
-
"development": [
|
|
115
|
-
"last 1 chrome version",
|
|
116
|
-
"last 1 firefox version",
|
|
117
|
-
"last 1 safari version"
|
|
118
|
-
]
|
|
119
|
-
},
|
|
120
|
-
"devDependencies": {
|
|
121
|
-
"@storybook/addon-actions": "^6.5.14",
|
|
122
|
-
"@storybook/addon-essentials": "^6.5.14",
|
|
123
|
-
"@storybook/addon-interactions": "^6.5.14",
|
|
124
|
-
"@storybook/addon-links": "^6.5.14",
|
|
125
|
-
"@storybook/builder-webpack5": "^6.5.14",
|
|
126
|
-
"@storybook/manager-webpack5": "^6.5.14",
|
|
127
|
-
"@storybook/node-logger": "^6.5.14",
|
|
128
|
-
"@storybook/preset-create-react-app": "^4.1.2",
|
|
129
|
-
"@storybook/react": "^6.5.14",
|
|
130
|
-
"@storybook/testing-library": "^0.0.13",
|
|
131
|
-
"babel-plugin-named-exports-order": "^0.0.2",
|
|
132
|
-
"prop-types": "^15.8.1",
|
|
133
|
-
"react-scripts": "^5.0.1",
|
|
134
|
-
"storybook-addon-sass-postcss": "^0.1.3",
|
|
135
|
-
"storybook-css-modules": "^1.0.8",
|
|
136
|
-
"ts-loader": "^9.4.2",
|
|
137
|
-
"webpack": "^5.75.0",
|
|
138
|
-
"webpack-cli": "^5.0.1"
|
|
139
|
-
},
|
|
140
|
-
"jest": {
|
|
141
|
-
"roots": [
|
|
142
|
-
"<rootDir>/src"
|
|
143
|
-
],
|
|
144
|
-
"collectCoverageFrom": [
|
|
145
|
-
"src/**/*.{js,jsx,ts,tsx}",
|
|
146
|
-
"!src/**/*.d.ts"
|
|
147
|
-
],
|
|
148
|
-
"setupFiles": [
|
|
149
|
-
"react-app-polyfill/jsdom"
|
|
150
|
-
],
|
|
151
|
-
"setupFilesAfterEnv": [
|
|
152
|
-
"<rootDir>/src/setupTests.ts"
|
|
153
|
-
],
|
|
154
|
-
"testMatch": [
|
|
155
|
-
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
156
|
-
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
157
|
-
],
|
|
158
|
-
"testEnvironment": "jsdom",
|
|
159
|
-
"transform": {
|
|
160
|
-
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
|
|
161
|
-
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
162
|
-
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
|
163
|
-
},
|
|
164
|
-
"transformIgnorePatterns": [
|
|
165
|
-
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
|
|
166
|
-
"^.+\\.module\\.(css|sass|scss)$"
|
|
167
|
-
],
|
|
168
|
-
"modulePaths": [
|
|
169
|
-
"/Users/carlossoares/Workplace/Sitoo/components-lib-omnium/component-library/src"
|
|
170
|
-
],
|
|
171
|
-
"moduleNameMapper": {
|
|
172
|
-
"^react-native$": "react-native-web",
|
|
173
|
-
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
|
174
|
-
},
|
|
175
|
-
"moduleFileExtensions": [
|
|
176
|
-
"web.js",
|
|
177
|
-
"js",
|
|
178
|
-
"web.ts",
|
|
179
|
-
"ts",
|
|
180
|
-
"web.tsx",
|
|
181
|
-
"tsx",
|
|
182
|
-
"json",
|
|
183
|
-
"web.jsx",
|
|
184
|
-
"jsx",
|
|
185
|
-
"node"
|
|
186
|
-
],
|
|
187
|
-
"watchPlugins": [
|
|
188
|
-
"jest-watch-typeahead/filename",
|
|
189
|
-
"jest-watch-typeahead/testname"
|
|
190
|
-
],
|
|
191
|
-
"resetMocks": true
|
|
192
|
-
},
|
|
193
|
-
"babel": {
|
|
194
|
-
"presets": [
|
|
195
|
-
"react-app"
|
|
196
|
-
]
|
|
197
|
-
}
|
|
198
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@omniumretail/component-library",
|
|
3
|
+
"version": "1.0.68",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/bundle.js",
|
|
6
|
+
"typings": "./dist/types/index",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@ant-design/icons": "^4.8.0",
|
|
9
|
+
"@babel/core": "^7.16.0",
|
|
10
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
11
|
+
"@svgr/webpack": "^5.5.0",
|
|
12
|
+
"@testing-library/jest-dom": "^5.14.1",
|
|
13
|
+
"@testing-library/react": "^13.0.0",
|
|
14
|
+
"@testing-library/user-event": "^13.2.1",
|
|
15
|
+
"@types/jest": "^29.2.4",
|
|
16
|
+
"@types/node": "^18.11.11",
|
|
17
|
+
"@types/react": "^18.0.26",
|
|
18
|
+
"@types/react-beautiful-dnd": "^13.1.3",
|
|
19
|
+
"@types/react-dom": "^18.0.9",
|
|
20
|
+
"antd": "^5.1.2",
|
|
21
|
+
"antd-img-crop": "^4.10.2",
|
|
22
|
+
"babel-jest": "^27.4.2",
|
|
23
|
+
"babel-loader": "^8.2.3",
|
|
24
|
+
"babel-plugin-named-asset-import": "^0.3.8",
|
|
25
|
+
"babel-preset-react-app": "^10.0.1",
|
|
26
|
+
"bfj": "^7.0.2",
|
|
27
|
+
"browser-image-compression": "^2.0.2",
|
|
28
|
+
"browserslist": "^4.18.1",
|
|
29
|
+
"camelcase": "^6.2.1",
|
|
30
|
+
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
31
|
+
"classnames": "^2.3.2",
|
|
32
|
+
"css-loader": "^6.5.1",
|
|
33
|
+
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
34
|
+
"dotenv": "^10.0.0",
|
|
35
|
+
"dotenv-expand": "^5.1.0",
|
|
36
|
+
"eslint": "^8.3.0",
|
|
37
|
+
"eslint-config-react-app": "^7.0.1",
|
|
38
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
39
|
+
"file-loader": "^6.2.0",
|
|
40
|
+
"fs-extra": "^10.0.0",
|
|
41
|
+
"html-webpack-plugin": "^5.5.0",
|
|
42
|
+
"i18next": "^22.4.9",
|
|
43
|
+
"i18next-browser-languagedetector": "^7.0.1",
|
|
44
|
+
"i18next-fetch-backend": "^5.0.1",
|
|
45
|
+
"identity-obj-proxy": "^3.0.0",
|
|
46
|
+
"jest": "^27.4.3",
|
|
47
|
+
"jest-resolve": "^27.4.2",
|
|
48
|
+
"jest-watch-typeahead": "^1.0.0",
|
|
49
|
+
"lodash.merge": "^4.6.2",
|
|
50
|
+
"mini-css-extract-plugin": "^2.7.2",
|
|
51
|
+
"moment": "^2.29.4",
|
|
52
|
+
"postcss": "^8.4.4",
|
|
53
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
54
|
+
"postcss-loader": "^6.2.1",
|
|
55
|
+
"postcss-normalize": "^10.0.1",
|
|
56
|
+
"postcss-preset-env": "^7.0.1",
|
|
57
|
+
"prompts": "^2.4.2",
|
|
58
|
+
"rc-tween-one": "^3.0.6",
|
|
59
|
+
"react": "^18.2.0",
|
|
60
|
+
"react-app-polyfill": "^3.0.0",
|
|
61
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
62
|
+
"react-dev-utils": "^12.0.1",
|
|
63
|
+
"react-dom": "^18.2.0",
|
|
64
|
+
"react-easy-crop": "^4.7.4",
|
|
65
|
+
"react-i18next": "^12.1.4",
|
|
66
|
+
"react-refresh": "^0.11.0",
|
|
67
|
+
"resolve": "^1.20.0",
|
|
68
|
+
"resolve-url-loader": "^4.0.0",
|
|
69
|
+
"sass": "^1.56.1",
|
|
70
|
+
"sass-loader": "^12.3.0",
|
|
71
|
+
"semver": "^7.3.5",
|
|
72
|
+
"source-map-loader": "^3.0.0",
|
|
73
|
+
"style-loader": "^3.3.1",
|
|
74
|
+
"tailwindcss": "^3.0.2",
|
|
75
|
+
"terser-webpack-plugin": "^5.2.5",
|
|
76
|
+
"typescript": "^4.9.3",
|
|
77
|
+
"url-loader": "^4.1.1",
|
|
78
|
+
"web-vitals": "^2.1.0",
|
|
79
|
+
"webpack-dev-server": "^4.6.0",
|
|
80
|
+
"webpack-manifest-plugin": "^4.0.2",
|
|
81
|
+
"workbox-webpack-plugin": "^6.4.1"
|
|
82
|
+
},
|
|
83
|
+
"scripts": {
|
|
84
|
+
"prepublish": "rm -rf ./dist && npm run build",
|
|
85
|
+
"start": "webpack -w",
|
|
86
|
+
"build": "webpack",
|
|
87
|
+
"test": "node scripts/test.js",
|
|
88
|
+
"storybook": "start-storybook -p 6006 -c .storybook watch-css -s public",
|
|
89
|
+
"build-storybook": "build-storybook -s public",
|
|
90
|
+
"deploy": "aws s3 sync storybook-static/ s3://changeToBucketName"
|
|
91
|
+
},
|
|
92
|
+
"eslintConfig": {
|
|
93
|
+
"extends": [
|
|
94
|
+
"react-app",
|
|
95
|
+
"react-app/jest"
|
|
96
|
+
],
|
|
97
|
+
"overrides": [
|
|
98
|
+
{
|
|
99
|
+
"files": [
|
|
100
|
+
"**/*.stories.*"
|
|
101
|
+
],
|
|
102
|
+
"rules": {
|
|
103
|
+
"import/no-anonymous-default-export": "off"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"browserslist": {
|
|
109
|
+
"production": [
|
|
110
|
+
">0.2%",
|
|
111
|
+
"not dead",
|
|
112
|
+
"not op_mini all"
|
|
113
|
+
],
|
|
114
|
+
"development": [
|
|
115
|
+
"last 1 chrome version",
|
|
116
|
+
"last 1 firefox version",
|
|
117
|
+
"last 1 safari version"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"devDependencies": {
|
|
121
|
+
"@storybook/addon-actions": "^6.5.14",
|
|
122
|
+
"@storybook/addon-essentials": "^6.5.14",
|
|
123
|
+
"@storybook/addon-interactions": "^6.5.14",
|
|
124
|
+
"@storybook/addon-links": "^6.5.14",
|
|
125
|
+
"@storybook/builder-webpack5": "^6.5.14",
|
|
126
|
+
"@storybook/manager-webpack5": "^6.5.14",
|
|
127
|
+
"@storybook/node-logger": "^6.5.14",
|
|
128
|
+
"@storybook/preset-create-react-app": "^4.1.2",
|
|
129
|
+
"@storybook/react": "^6.5.14",
|
|
130
|
+
"@storybook/testing-library": "^0.0.13",
|
|
131
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
132
|
+
"prop-types": "^15.8.1",
|
|
133
|
+
"react-scripts": "^5.0.1",
|
|
134
|
+
"storybook-addon-sass-postcss": "^0.1.3",
|
|
135
|
+
"storybook-css-modules": "^1.0.8",
|
|
136
|
+
"ts-loader": "^9.4.2",
|
|
137
|
+
"webpack": "^5.75.0",
|
|
138
|
+
"webpack-cli": "^5.0.1"
|
|
139
|
+
},
|
|
140
|
+
"jest": {
|
|
141
|
+
"roots": [
|
|
142
|
+
"<rootDir>/src"
|
|
143
|
+
],
|
|
144
|
+
"collectCoverageFrom": [
|
|
145
|
+
"src/**/*.{js,jsx,ts,tsx}",
|
|
146
|
+
"!src/**/*.d.ts"
|
|
147
|
+
],
|
|
148
|
+
"setupFiles": [
|
|
149
|
+
"react-app-polyfill/jsdom"
|
|
150
|
+
],
|
|
151
|
+
"setupFilesAfterEnv": [
|
|
152
|
+
"<rootDir>/src/setupTests.ts"
|
|
153
|
+
],
|
|
154
|
+
"testMatch": [
|
|
155
|
+
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
156
|
+
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
157
|
+
],
|
|
158
|
+
"testEnvironment": "jsdom",
|
|
159
|
+
"transform": {
|
|
160
|
+
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
|
|
161
|
+
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
162
|
+
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
|
163
|
+
},
|
|
164
|
+
"transformIgnorePatterns": [
|
|
165
|
+
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
|
|
166
|
+
"^.+\\.module\\.(css|sass|scss)$"
|
|
167
|
+
],
|
|
168
|
+
"modulePaths": [
|
|
169
|
+
"/Users/carlossoares/Workplace/Sitoo/components-lib-omnium/component-library/src"
|
|
170
|
+
],
|
|
171
|
+
"moduleNameMapper": {
|
|
172
|
+
"^react-native$": "react-native-web",
|
|
173
|
+
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
|
174
|
+
},
|
|
175
|
+
"moduleFileExtensions": [
|
|
176
|
+
"web.js",
|
|
177
|
+
"js",
|
|
178
|
+
"web.ts",
|
|
179
|
+
"ts",
|
|
180
|
+
"web.tsx",
|
|
181
|
+
"tsx",
|
|
182
|
+
"json",
|
|
183
|
+
"web.jsx",
|
|
184
|
+
"jsx",
|
|
185
|
+
"node"
|
|
186
|
+
],
|
|
187
|
+
"watchPlugins": [
|
|
188
|
+
"jest-watch-typeahead/filename",
|
|
189
|
+
"jest-watch-typeahead/testname"
|
|
190
|
+
],
|
|
191
|
+
"resetMocks": true
|
|
192
|
+
},
|
|
193
|
+
"babel": {
|
|
194
|
+
"presets": [
|
|
195
|
+
"react-app"
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
}
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
// Primary Colors
|
|
3
|
-
--color-black: #2c2d2e;
|
|
4
|
-
--color-black-rgb: 44, 45, 46;
|
|
5
|
-
--color-white: #FFFFFF;
|
|
6
|
-
--color-white-rgb: 255, 255, 255;
|
|
7
|
-
|
|
8
|
-
--color-orange: #FF674C;
|
|
9
|
-
--color-orange-rgb: 255, 103, 76;
|
|
10
|
-
|
|
11
|
-
--color-blue: #09168B;
|
|
12
|
-
--color-blue-rgb: 9, 22, 139;
|
|
13
|
-
|
|
14
|
-
--color-grey-light: #f0f0f0;
|
|
15
|
-
--color-grey-light-rgb: 240, 240, 240;
|
|
16
|
-
--color-grey: #C7CAC9;
|
|
17
|
-
--color-grey-rgb: 199, 202, 201;
|
|
18
|
-
--color-grey-dark: #797979;
|
|
19
|
-
--color-grey-dark-rgb: 121, 121, 121;
|
|
20
|
-
|
|
21
|
-
// Helper Colors
|
|
22
|
-
--color-warning-400: #E36262;
|
|
23
|
-
--color-warning-500: #E05151;
|
|
24
|
-
|
|
25
|
-
--color-confirmation-400: #73b9a2;
|
|
26
|
-
--color-confirmation-600: #64B298;
|
|
27
|
-
|
|
28
|
-
// Font Family
|
|
29
|
-
--font-family-primary: SF Pro;
|
|
30
|
-
|
|
31
|
-
// Font Weight
|
|
32
|
-
--font-weight-light: 300;
|
|
33
|
-
--font-weight-regular: 400;
|
|
34
|
-
--font-weight-medium: 500;
|
|
35
|
-
--font-weight-semibold: 600;
|
|
36
|
-
--font-weight-bold: 700;
|
|
37
|
-
|
|
38
|
-
// Font Styles
|
|
39
|
-
--font-style-normal: normal;
|
|
40
|
-
--font-style-italic: italic;
|
|
41
|
-
|
|
42
|
-
// Font Sizes
|
|
43
|
-
--font-size-body-1: 10px;
|
|
44
|
-
--font-size-body-2: 12px;
|
|
45
|
-
--font-size-body-3: 14px;
|
|
46
|
-
--font-size-body-4: 16px;
|
|
47
|
-
--font-size-body-5: 18px;
|
|
48
|
-
--font-size-body-6: 20px;
|
|
49
|
-
|
|
50
|
-
--font-size-h1: 46px;
|
|
51
|
-
--font-size-h2: 40px;
|
|
52
|
-
--font-size-h3: 36px;
|
|
53
|
-
--font-size-h4: 30px;
|
|
54
|
-
--font-size-h5: 24px;
|
|
55
|
-
|
|
56
|
-
--font-size-body-base: var(--font-size-body-4);
|
|
57
|
-
--font-size-label: var(--font-size-body-3);
|
|
58
|
-
|
|
59
|
-
// Button Default
|
|
60
|
-
--button-default-background: var(--color-orange);
|
|
61
|
-
--button-default-text-color: var(--color-white);
|
|
62
|
-
--button-default-background-hover-color: rgba(var(--color-orange-rgb), .9);
|
|
63
|
-
--button-default-text-hover-color: var(--color-white);
|
|
64
|
-
--button-default-background-focus-color: var(--color-grey-dark);
|
|
65
|
-
--button-default-text-focus-color: rgba(var(--color-white-rgb), .8);
|
|
66
|
-
|
|
67
|
-
// Button Style 1
|
|
68
|
-
--button-style-1-background: var(--color-black);
|
|
69
|
-
--button-style-1-text-color: var(--color-white);
|
|
70
|
-
--button-style-1-background-hover-color: rgba(var(--color-black-rgb), .9);
|
|
71
|
-
--button-style-1-text-hover-color: var(--color-white);
|
|
72
|
-
--button-style-1-background-focus-color: var(--color-grey-dark);
|
|
73
|
-
--button-style-1-text-focus-color: rgba(var(--color-white-rgb), .8);
|
|
74
|
-
|
|
75
|
-
// Button Disabled
|
|
76
|
-
--button-disabled-background-color: rgba(var(--color-grey));
|
|
77
|
-
--button-disabled-default-text-color: var(--color-white);
|
|
78
|
-
|
|
79
|
-
// Link
|
|
80
|
-
--link-color: var(--color-orange);
|
|
81
|
-
--link-hover-color: var(--color-black);
|
|
82
|
-
--link-focus-color: rgba(var(--color-orange), .9);
|
|
83
|
-
--link-disabled-color: rgba(var(--color-grey), .2);
|
|
84
|
-
|
|
85
|
-
// Transition Speed
|
|
86
|
-
--transition-fast: .2s;
|
|
87
|
-
--transition: .6s;
|
|
88
|
-
--transition-slow: 1s;
|
|
89
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
// Primary Colors
|
|
3
|
+
--color-black: #2c2d2e;
|
|
4
|
+
--color-black-rgb: 44, 45, 46;
|
|
5
|
+
--color-white: #FFFFFF;
|
|
6
|
+
--color-white-rgb: 255, 255, 255;
|
|
7
|
+
|
|
8
|
+
--color-orange: #FF674C;
|
|
9
|
+
--color-orange-rgb: 255, 103, 76;
|
|
10
|
+
|
|
11
|
+
--color-blue: #09168B;
|
|
12
|
+
--color-blue-rgb: 9, 22, 139;
|
|
13
|
+
|
|
14
|
+
--color-grey-light: #f0f0f0;
|
|
15
|
+
--color-grey-light-rgb: 240, 240, 240;
|
|
16
|
+
--color-grey: #C7CAC9;
|
|
17
|
+
--color-grey-rgb: 199, 202, 201;
|
|
18
|
+
--color-grey-dark: #797979;
|
|
19
|
+
--color-grey-dark-rgb: 121, 121, 121;
|
|
20
|
+
|
|
21
|
+
// Helper Colors
|
|
22
|
+
--color-warning-400: #E36262;
|
|
23
|
+
--color-warning-500: #E05151;
|
|
24
|
+
|
|
25
|
+
--color-confirmation-400: #73b9a2;
|
|
26
|
+
--color-confirmation-600: #64B298;
|
|
27
|
+
|
|
28
|
+
// Font Family
|
|
29
|
+
--font-family-primary: SF Pro;
|
|
30
|
+
|
|
31
|
+
// Font Weight
|
|
32
|
+
--font-weight-light: 300;
|
|
33
|
+
--font-weight-regular: 400;
|
|
34
|
+
--font-weight-medium: 500;
|
|
35
|
+
--font-weight-semibold: 600;
|
|
36
|
+
--font-weight-bold: 700;
|
|
37
|
+
|
|
38
|
+
// Font Styles
|
|
39
|
+
--font-style-normal: normal;
|
|
40
|
+
--font-style-italic: italic;
|
|
41
|
+
|
|
42
|
+
// Font Sizes
|
|
43
|
+
--font-size-body-1: 10px;
|
|
44
|
+
--font-size-body-2: 12px;
|
|
45
|
+
--font-size-body-3: 14px;
|
|
46
|
+
--font-size-body-4: 16px;
|
|
47
|
+
--font-size-body-5: 18px;
|
|
48
|
+
--font-size-body-6: 20px;
|
|
49
|
+
|
|
50
|
+
--font-size-h1: 46px;
|
|
51
|
+
--font-size-h2: 40px;
|
|
52
|
+
--font-size-h3: 36px;
|
|
53
|
+
--font-size-h4: 30px;
|
|
54
|
+
--font-size-h5: 24px;
|
|
55
|
+
|
|
56
|
+
--font-size-body-base: var(--font-size-body-4);
|
|
57
|
+
--font-size-label: var(--font-size-body-3);
|
|
58
|
+
|
|
59
|
+
// Button Default
|
|
60
|
+
--button-default-background: var(--color-orange);
|
|
61
|
+
--button-default-text-color: var(--color-white);
|
|
62
|
+
--button-default-background-hover-color: rgba(var(--color-orange-rgb), .9);
|
|
63
|
+
--button-default-text-hover-color: var(--color-white);
|
|
64
|
+
--button-default-background-focus-color: var(--color-grey-dark);
|
|
65
|
+
--button-default-text-focus-color: rgba(var(--color-white-rgb), .8);
|
|
66
|
+
|
|
67
|
+
// Button Style 1
|
|
68
|
+
--button-style-1-background: var(--color-black);
|
|
69
|
+
--button-style-1-text-color: var(--color-white);
|
|
70
|
+
--button-style-1-background-hover-color: rgba(var(--color-black-rgb), .9);
|
|
71
|
+
--button-style-1-text-hover-color: var(--color-white);
|
|
72
|
+
--button-style-1-background-focus-color: var(--color-grey-dark);
|
|
73
|
+
--button-style-1-text-focus-color: rgba(var(--color-white-rgb), .8);
|
|
74
|
+
|
|
75
|
+
// Button Disabled
|
|
76
|
+
--button-disabled-background-color: rgba(var(--color-grey));
|
|
77
|
+
--button-disabled-default-text-color: var(--color-white);
|
|
78
|
+
|
|
79
|
+
// Link
|
|
80
|
+
--link-color: var(--color-orange);
|
|
81
|
+
--link-hover-color: var(--color-black);
|
|
82
|
+
--link-focus-color: rgba(var(--color-orange), .9);
|
|
83
|
+
--link-disabled-color: rgba(var(--color-grey), .2);
|
|
84
|
+
|
|
85
|
+
// Transition Speed
|
|
86
|
+
--transition-fast: .2s;
|
|
87
|
+
--transition: .6s;
|
|
88
|
+
--transition-slow: 1s;
|
|
89
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import './global.scss';
|
|
2
|
-
@import './combinations.scss';
|
|
1
|
+
@import './global.scss';
|
|
2
|
+
@import './combinations.scss';
|