@omniumretail/component-library 1.2.69 → 1.2.70
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/dist/780.bundle.js +1 -1
- package/dist/838.bundle.js +1 -1
- package/dist/838.bundle.js.LICENSE.txt +1 -1
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.LICENSE.txt +11 -21
- package/dist/types/components/AnalyticsBar/AnalyticsBar.stories.d.ts +2 -3
- package/dist/types/components/BellNotifications/BellNotifications.stories.d.ts +2 -3
- package/dist/types/components/Button/Button.stories.d.ts +3 -4
- package/dist/types/components/Category/Category.stories.d.ts +2 -3
- package/dist/types/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +2 -3
- package/dist/types/components/CategoryResponse/CategoryResponse.stories.d.ts +2 -3
- package/dist/types/components/DatePicker/DatePicker.stories.d.ts +2 -3
- package/dist/types/components/DatePickerTag/DatePickerTag.stories.d.ts +2 -3
- package/dist/types/components/DropdownButton/DropdownButton.stories.d.ts +2 -3
- package/dist/types/components/ExportTableData/ExportTableData.stories.d.ts +2 -3
- package/dist/types/components/Footer/Footer.stories.d.ts +2 -3
- package/dist/types/components/Footer2/Footer.stories.d.ts +3 -4
- package/dist/types/components/Header/Header.stories.d.ts +2 -3
- package/dist/types/components/Input/Input.stories.d.ts +2 -3
- package/dist/types/components/InputCountryCode/inputCountryCode.stories.d.ts +2 -3
- package/dist/types/components/Label/Label.stories.d.ts +3 -4
- package/dist/types/components/Link/Link.stories.d.ts +4 -5
- package/dist/types/components/Menu/Menu.stories.d.ts +2 -3
- package/dist/types/components/MobileTable/MobileTable.stories.d.ts +2 -3
- package/dist/types/components/ModalConfirmation/ModalConfirmation.stories.d.ts +2 -3
- package/dist/types/components/ModalWithTable/ModalWithTable.stories.d.ts +2 -3
- package/dist/types/components/Navigation/Navigation.stories.d.ts +2 -3
- package/dist/types/components/Notification/Notification.stories.d.ts +2 -3
- package/dist/types/components/Questions/Questions.stories.d.ts +2 -3
- package/dist/types/components/Radio/Radio.stories.d.ts +2 -3
- package/dist/types/components/ResponseType/ResponseType.stories.d.ts +2 -3
- package/dist/types/components/ResponsiveTable/ResponsiveTable.stories.d.ts +6 -7
- package/dist/types/components/Select/Select.stories.d.ts +3 -4
- package/dist/types/components/Separator/Separator.stories.d.ts +3 -4
- package/dist/types/components/Sidebar/Sidebar.stories.d.ts +3 -4
- package/dist/types/components/Switch/Switch.stories.d.ts +2 -3
- package/dist/types/components/Table/Table.stories.d.ts +6 -7
- package/dist/types/components/Tag/Tag.stories.d.ts +2 -3
- package/dist/types/components/Upload/Upload.stories.d.ts +2 -3
- package/dist/types/components/UserInfo/UserInfo.stories.d.ts +2 -3
- package/dist/types/components/WebCam/WebCam.stories.d.ts +2 -3
- package/package.json +184 -186
- package/src/components/AnalyticsBar/AnalyticsBar.stories.tsx +2 -2
- package/src/components/BellNotifications/BellNotifications.stories.tsx +2 -2
- package/src/components/Button/Button.stories.tsx +2 -2
- package/src/components/Category/Category.stories.tsx +2 -2
- package/src/components/CategoryReadOnly/CategoryReadOnly.stories.tsx +2 -2
- package/src/components/CategoryResponse/CategoryResponse.stories.tsx +2 -2
- package/src/components/DatePicker/DatePicker.stories.tsx +2 -2
- package/src/components/DatePickerTag/DatePickerTag.stories.tsx +2 -2
- package/src/components/DropdownButton/DropdownButton.stories.tsx +2 -2
- package/src/components/ExportTableData/ExportTableData.stories.tsx +2 -2
- package/src/components/Footer/Footer.stories.tsx +2 -2
- package/src/components/Footer2/Footer.stories.tsx +4 -4
- package/src/components/Header/Header.stories.tsx +2 -2
- package/src/components/Input/Input.stories.tsx +2 -2
- package/src/components/InputCountryCode/inputCountryCode.stories.tsx +2 -2
- package/src/components/Label/Label.stories.tsx +2 -2
- package/src/components/Link/Link.stories.tsx +2 -2
- package/src/components/Menu/Menu.stories.tsx +2 -2
- package/src/components/MobileTable/MobileTable.stories.tsx +2 -2
- package/src/components/ModalConfirmation/ModalConfirmation.stories.tsx +2 -2
- package/src/components/ModalWithTable/ModalWithTable.stories.tsx +2 -2
- package/src/components/Navigation/Navigation.stories.tsx +2 -2
- package/src/components/Notification/Notification.stories.tsx +3 -3
- package/src/components/Questions/Questions.stories.tsx +2 -2
- package/src/components/Questions/index.tsx +1 -1
- package/src/components/Radio/Radio.stories.tsx +2 -2
- package/src/components/ResponseType/ResponseType.stories.tsx +2 -2
- package/src/components/ResponsiveTable/ResponsiveTable.stories.tsx +2 -2
- package/src/components/Select/Select.stories.tsx +2 -2
- package/src/components/Separator/Separator.stories.tsx +2 -2
- package/src/components/Sidebar/Sidebar.stories.tsx +2 -2
- package/src/components/Switch/Switch.stories.tsx +2 -2
- package/src/components/Table/Table.stories.tsx +2 -2
- package/src/components/Tag/Tag.stories.tsx +2 -2
- package/src/components/Upload/Upload.stories.tsx +2 -2
- package/src/components/UserInfo/UserInfo.stories.tsx +2 -2
- package/src/components/WebCam/WebCam.stories.tsx +2 -2
- package/dist/types/components/MobileTable/UserInfoTable/index.d.ts +0 -21
- package/dist/types/components/ResponseType/Category.stories.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,186 +1,184 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@omniumretail/component-library",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"private": false,
|
|
5
|
-
"main": "dist/bundle.js",
|
|
6
|
-
"typings": "./dist/types/index",
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"@ant-design/icons": "^4.8.0",
|
|
9
|
-
"@
|
|
10
|
-
"@
|
|
11
|
-
"@testing-library/
|
|
12
|
-
"@testing-library/
|
|
13
|
-
"@
|
|
14
|
-
"@types/
|
|
15
|
-
"@types/
|
|
16
|
-
"@types/react
|
|
17
|
-
"@types/react-
|
|
18
|
-
"
|
|
19
|
-
"antd
|
|
20
|
-
"
|
|
21
|
-
"babel-
|
|
22
|
-
"babel-
|
|
23
|
-
"babel-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"css-
|
|
31
|
-
"
|
|
32
|
-
"dotenv
|
|
33
|
-
"
|
|
34
|
-
"eslint
|
|
35
|
-
"eslint-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"i18next
|
|
42
|
-
"i18next-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"jest
|
|
46
|
-
"jest-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"postcss
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"react
|
|
57
|
-
"react-
|
|
58
|
-
"react-dev-utils": "^12.0.1",
|
|
59
|
-
"react-dom": "^18.2.0",
|
|
60
|
-
"react-easy-crop": "^4.7.4",
|
|
61
|
-
"react-i18next": "^12.1.4",
|
|
62
|
-
"react-webcam": "^7.1.1",
|
|
63
|
-
"sass": "^1.56.1",
|
|
64
|
-
"sass-loader": "^12.3.0",
|
|
65
|
-
"style-loader": "^3.3.1",
|
|
66
|
-
"terser-webpack-plugin": "^5.2.5",
|
|
67
|
-
"typescript": "^4.9.3",
|
|
68
|
-
"url-loader": "^4.1.1",
|
|
69
|
-
"web-vitals": "^2.1.0",
|
|
70
|
-
"xlsx": "^0.18.5"
|
|
71
|
-
},
|
|
72
|
-
"scripts": {
|
|
73
|
-
"prepublish": "
|
|
74
|
-
"start": "webpack -w",
|
|
75
|
-
"build": "webpack",
|
|
76
|
-
"test": "node scripts/test.js",
|
|
77
|
-
"storybook": "
|
|
78
|
-
"build-storybook": "
|
|
79
|
-
"deploy": "aws s3 sync storybook-static/ s3://changeToBucketName"
|
|
80
|
-
},
|
|
81
|
-
"eslintConfig": {
|
|
82
|
-
"extends": [
|
|
83
|
-
"react-app",
|
|
84
|
-
"react-app/jest"
|
|
85
|
-
],
|
|
86
|
-
"overrides": [
|
|
87
|
-
{
|
|
88
|
-
"files": [
|
|
89
|
-
"**/*.stories.*"
|
|
90
|
-
],
|
|
91
|
-
"rules": {
|
|
92
|
-
"import/no-anonymous-default-export": "off"
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
"browserslist": {
|
|
98
|
-
"production": [
|
|
99
|
-
">0.2%",
|
|
100
|
-
"not dead",
|
|
101
|
-
"not op_mini all"
|
|
102
|
-
],
|
|
103
|
-
"development": [
|
|
104
|
-
"last 1 chrome version",
|
|
105
|
-
"last 1 firefox version",
|
|
106
|
-
"last 1 safari version"
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
"devDependencies": {
|
|
110
|
-
"@storybook/addon-
|
|
111
|
-
"@storybook/addon-
|
|
112
|
-
"@storybook/
|
|
113
|
-
"@storybook/
|
|
114
|
-
"@storybook/
|
|
115
|
-
"@storybook/
|
|
116
|
-
"@storybook/
|
|
117
|
-
"@storybook/
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"web.
|
|
165
|
-
"
|
|
166
|
-
"web.
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@omniumretail/component-library",
|
|
3
|
+
"version": "1.2.70",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/bundle.js",
|
|
6
|
+
"typings": "./dist/types/index",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@ant-design/icons": "^4.8.0",
|
|
9
|
+
"@hello-pangea/dnd": "^18.0.1",
|
|
10
|
+
"@svgr/webpack": "^5.5.0",
|
|
11
|
+
"@testing-library/jest-dom": "^5.14.1",
|
|
12
|
+
"@testing-library/react": "^13.0.0",
|
|
13
|
+
"@testing-library/user-event": "^13.2.1",
|
|
14
|
+
"@types/jest": "^29.2.4",
|
|
15
|
+
"@types/node": "^18.11.11",
|
|
16
|
+
"@types/react": "^18.0.26",
|
|
17
|
+
"@types/react-beautiful-dnd": "^13.1.3",
|
|
18
|
+
"@types/react-dom": "^18.0.9",
|
|
19
|
+
"antd": "^5.18.3",
|
|
20
|
+
"antd-img-crop": "^4.10.2",
|
|
21
|
+
"babel-jest": "^27.4.2",
|
|
22
|
+
"babel-loader": "^8.2.3",
|
|
23
|
+
"babel-plugin-named-asset-import": "^0.3.8",
|
|
24
|
+
"babel-preset-react-app": "^10.0.1",
|
|
25
|
+
"browser-image-compression": "^2.0.2",
|
|
26
|
+
"browserslist": "^4.18.1",
|
|
27
|
+
"camelcase": "^6.2.1",
|
|
28
|
+
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
29
|
+
"classnames": "^2.3.2",
|
|
30
|
+
"css-loader": "^6.5.1",
|
|
31
|
+
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
32
|
+
"dotenv": "^10.0.0",
|
|
33
|
+
"dotenv-expand": "^5.1.0",
|
|
34
|
+
"eslint": "^8.3.0",
|
|
35
|
+
"eslint-config-react-app": "^7.0.1",
|
|
36
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
37
|
+
"file-loader": "^6.2.0",
|
|
38
|
+
"fs-extra": "^10.0.0",
|
|
39
|
+
"html-webpack-plugin": "^5.5.0",
|
|
40
|
+
"html2canvas": "^1.4.1",
|
|
41
|
+
"i18next": "^22.4.9",
|
|
42
|
+
"i18next-browser-languagedetector": "^7.0.1",
|
|
43
|
+
"i18next-fetch-backend": "^5.0.1",
|
|
44
|
+
"identity-obj-proxy": "^3.0.0",
|
|
45
|
+
"jest": "^27.4.3",
|
|
46
|
+
"jest-resolve": "^27.4.2",
|
|
47
|
+
"jest-watch-typeahead": "^1.0.0",
|
|
48
|
+
"jspdf": "^2.5.2",
|
|
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-loader": "^6.2.1",
|
|
54
|
+
"prompts": "^2.4.2",
|
|
55
|
+
"rc-tween-one": "^3.0.6",
|
|
56
|
+
"react": "^18.2.0",
|
|
57
|
+
"react-app-polyfill": "^3.0.0",
|
|
58
|
+
"react-dev-utils": "^12.0.1",
|
|
59
|
+
"react-dom": "^18.2.0",
|
|
60
|
+
"react-easy-crop": "^4.7.4",
|
|
61
|
+
"react-i18next": "^12.1.4",
|
|
62
|
+
"react-webcam": "^7.1.1",
|
|
63
|
+
"sass": "^1.56.1",
|
|
64
|
+
"sass-loader": "^12.3.0",
|
|
65
|
+
"style-loader": "^3.3.1",
|
|
66
|
+
"terser-webpack-plugin": "^5.2.5",
|
|
67
|
+
"typescript": "^4.9.3",
|
|
68
|
+
"url-loader": "^4.1.1",
|
|
69
|
+
"web-vitals": "^2.1.0",
|
|
70
|
+
"xlsx": "^0.18.5"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"prepublish": "rd /s /q .\\dist && yarn build",
|
|
74
|
+
"start": "webpack -w",
|
|
75
|
+
"build": "webpack",
|
|
76
|
+
"test": "node scripts/test.js",
|
|
77
|
+
"storybook": "storybook dev -p 6006",
|
|
78
|
+
"build-storybook": "storybook build",
|
|
79
|
+
"deploy": "aws s3 sync storybook-static/ s3://changeToBucketName"
|
|
80
|
+
},
|
|
81
|
+
"eslintConfig": {
|
|
82
|
+
"extends": [
|
|
83
|
+
"react-app",
|
|
84
|
+
"react-app/jest"
|
|
85
|
+
],
|
|
86
|
+
"overrides": [
|
|
87
|
+
{
|
|
88
|
+
"files": [
|
|
89
|
+
"**/*.stories.*"
|
|
90
|
+
],
|
|
91
|
+
"rules": {
|
|
92
|
+
"import/no-anonymous-default-export": "off"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"browserslist": {
|
|
98
|
+
"production": [
|
|
99
|
+
">0.2%",
|
|
100
|
+
"not dead",
|
|
101
|
+
"not op_mini all"
|
|
102
|
+
],
|
|
103
|
+
"development": [
|
|
104
|
+
"last 1 chrome version",
|
|
105
|
+
"last 1 firefox version",
|
|
106
|
+
"last 1 safari version"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"devDependencies": {
|
|
110
|
+
"@storybook/addon-docs": "9.1.2",
|
|
111
|
+
"@storybook/addon-links": "^9.1.2",
|
|
112
|
+
"@storybook/builder-webpack5": "^9.1.2",
|
|
113
|
+
"@storybook/cli": "^9.1.2",
|
|
114
|
+
"@storybook/manager-webpack5": "^6.5.14",
|
|
115
|
+
"@storybook/preset-create-react-app": "^9.1.2",
|
|
116
|
+
"@storybook/react-webpack5": "^9.1.2",
|
|
117
|
+
"@storybook/testing-library": "^0.0.13",
|
|
118
|
+
"prop-types": "^15.8.1",
|
|
119
|
+
"react-scripts": "^5.0.1",
|
|
120
|
+
"storybook-addon-sass-postcss": "^0.1.3",
|
|
121
|
+
"storybook-css-modules": "^1.0.8",
|
|
122
|
+
"ts-loader": "^9.4.2",
|
|
123
|
+
"webpack": "^5.75.0",
|
|
124
|
+
"webpack-cli": "^5.0.1"
|
|
125
|
+
},
|
|
126
|
+
"jest": {
|
|
127
|
+
"roots": [
|
|
128
|
+
"<rootDir>/src"
|
|
129
|
+
],
|
|
130
|
+
"collectCoverageFrom": [
|
|
131
|
+
"src/**/*.{js,jsx,ts,tsx}",
|
|
132
|
+
"!src/**/*.d.ts"
|
|
133
|
+
],
|
|
134
|
+
"setupFiles": [
|
|
135
|
+
"react-app-polyfill/jsdom"
|
|
136
|
+
],
|
|
137
|
+
"setupFilesAfterEnv": [
|
|
138
|
+
"<rootDir>/src/setupTests.ts"
|
|
139
|
+
],
|
|
140
|
+
"testMatch": [
|
|
141
|
+
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
142
|
+
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
143
|
+
],
|
|
144
|
+
"testEnvironment": "jsdom",
|
|
145
|
+
"transform": {
|
|
146
|
+
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
|
|
147
|
+
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
148
|
+
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
|
149
|
+
},
|
|
150
|
+
"transformIgnorePatterns": [
|
|
151
|
+
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
|
|
152
|
+
"^.+\\.module\\.(css|sass|scss)$"
|
|
153
|
+
],
|
|
154
|
+
"modulePaths": [
|
|
155
|
+
"/Users/carlossoares/Workplace/Sitoo/components-lib-omnium/component-library/src"
|
|
156
|
+
],
|
|
157
|
+
"moduleNameMapper": {
|
|
158
|
+
"^react-native$": "react-native-web",
|
|
159
|
+
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
|
160
|
+
},
|
|
161
|
+
"moduleFileExtensions": [
|
|
162
|
+
"web.js",
|
|
163
|
+
"js",
|
|
164
|
+
"web.ts",
|
|
165
|
+
"ts",
|
|
166
|
+
"web.tsx",
|
|
167
|
+
"tsx",
|
|
168
|
+
"json",
|
|
169
|
+
"web.jsx",
|
|
170
|
+
"jsx",
|
|
171
|
+
"node"
|
|
172
|
+
],
|
|
173
|
+
"watchPlugins": [
|
|
174
|
+
"jest-watch-typeahead/filename",
|
|
175
|
+
"jest-watch-typeahead/testname"
|
|
176
|
+
],
|
|
177
|
+
"resetMocks": true
|
|
178
|
+
},
|
|
179
|
+
"babel": {
|
|
180
|
+
"presets": [
|
|
181
|
+
"react-app"
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { AnalyticsBar } from '.';
|
|
3
3
|
import { AnalyticsBarProps } from './interfaces/analyticsBar';
|
|
4
4
|
import { getItem } from './helpers/codeMutation';
|
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
component: AnalyticsBar,
|
|
10
10
|
} as Meta;
|
|
11
11
|
|
|
12
|
-
const Template:
|
|
12
|
+
const Template: StoryFn<AnalyticsBarProps> = (args: any) => {
|
|
13
13
|
const [sortedBy, setSortedBy] = useState<any>('');
|
|
14
14
|
const [optionInUse, setOptionInUse] = useState<any>();
|
|
15
15
|
const [activeListItem, setActiveListItem] = useState<any>();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { BellNotifications, BellNotificationsProps } from '.';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: BellNotifications,
|
|
7
7
|
} as Meta;
|
|
8
8
|
|
|
9
|
-
const Template:
|
|
9
|
+
const Template: StoryFn<BellNotificationsProps> = (args: any) => <BellNotifications {...args}></BellNotifications>;
|
|
10
10
|
|
|
11
11
|
const notifications = [
|
|
12
12
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { Button, CustomButtonProps } from '.';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: Button,
|
|
7
7
|
} as Meta;
|
|
8
8
|
|
|
9
|
-
const Template:
|
|
9
|
+
const Template: StoryFn<CustomButtonProps> = (args: any) => <Button {...args}>ola</Button>;
|
|
10
10
|
|
|
11
11
|
export const Primary = Template.bind({});
|
|
12
12
|
Primary.args = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import { Category } from '.';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
component: Category,
|
|
8
8
|
} as Meta;
|
|
9
9
|
|
|
10
|
-
const Template:
|
|
10
|
+
const Template: StoryFn<any> = (args: any) => {
|
|
11
11
|
const [serverData, setServerData] = useState<any>();
|
|
12
12
|
|
|
13
13
|
useEffect(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { Button } from "components/Button";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { CategoryReadOnly } from '.';
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
component: CategoryReadOnly,
|
|
9
9
|
} as Meta;
|
|
10
10
|
|
|
11
|
-
const Template:
|
|
11
|
+
const Template: StoryFn<any> = (args: any) => {
|
|
12
12
|
const [serverData, setServerData] = useState<any>();
|
|
13
13
|
const categoryResponseRef = useRef(null);
|
|
14
14
|
const [hasNext, setHasNext] = useState(true);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { Button } from "components/Button";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { CategoryResponse } from '.';
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
component: CategoryResponse,
|
|
11
11
|
} as Meta;
|
|
12
12
|
|
|
13
|
-
const Template:
|
|
13
|
+
const Template: StoryFn<any> = (args: any) => {
|
|
14
14
|
const [serverData, setServerData] = useState<any>();
|
|
15
15
|
const categoryResponseRef = useRef(null);
|
|
16
16
|
const [hasNext, setHasNext] = useState(true);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { CustomDatePicker, CustomDatePickerProps } from '.';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: CustomDatePicker,
|
|
7
7
|
} as Meta;
|
|
8
8
|
|
|
9
|
-
const Template:
|
|
9
|
+
const Template: StoryFn<CustomDatePickerProps> = (args: any) => <CustomDatePicker {...args}></CustomDatePicker>;
|
|
10
10
|
|
|
11
11
|
export const Primary = Template.bind({});
|
|
12
12
|
Primary.args = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { DatePickerTag } from '.';
|
|
3
3
|
import { TagProps } from 'antd';
|
|
4
4
|
import { useState } from "react";
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
component: DatePickerTag,
|
|
9
9
|
} as Meta;
|
|
10
10
|
|
|
11
|
-
const Template:
|
|
11
|
+
const Template: StoryFn<TagProps> = (args: any) => {
|
|
12
12
|
const [tagsInfo, setTagsInfo] = useState<any>({});
|
|
13
13
|
|
|
14
14
|
return <DatePickerTag {...args} tagsInfo={setTagsInfo}></DatePickerTag>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Meta,
|
|
2
|
+
import { Meta, StoryFn } from '@storybook/react-webpack5';
|
|
3
3
|
import { DropdownButton, DropdownButtonProps } from '.';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
@@ -11,7 +11,7 @@ const onLeft = () => {
|
|
|
11
11
|
console.log(9);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
const Template:
|
|
14
|
+
const Template: StoryFn<DropdownButtonProps> = (args: any) => <DropdownButton {...args} />;
|
|
15
15
|
|
|
16
16
|
export const BasicDropdown = Template.bind({});
|
|
17
17
|
BasicDropdown.args = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Meta,
|
|
2
|
+
import { Meta, StoryFn } from '@storybook/react-webpack5';
|
|
3
3
|
import { TableExportButton } from './index';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
@@ -14,7 +14,7 @@ const columnTranslations = {
|
|
|
14
14
|
occupation: 'Ocupação'
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const Template:
|
|
17
|
+
const Template: StoryFn<any> = (args: any) => <TableExportButton {...args} />;
|
|
18
18
|
|
|
19
19
|
export const ExportButton = Template.bind({});
|
|
20
20
|
ExportButton.args = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { Footer, FooterProps } from '.';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: Footer,
|
|
7
7
|
} as Meta;
|
|
8
8
|
|
|
9
|
-
const Template:
|
|
9
|
+
const Template: StoryFn<FooterProps> = (args: any) => <Footer {...args}></Footer>;
|
|
10
10
|
|
|
11
11
|
export const Primary = Template.bind({});
|
|
12
12
|
Primary.args = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { Footer2, Footer2Props, ActionType } from '.';
|
|
3
3
|
import {
|
|
4
4
|
SettingOutlined,
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
component: Footer2,
|
|
18
18
|
} as Meta;
|
|
19
19
|
|
|
20
|
-
const Template:
|
|
20
|
+
const Template: StoryFn<Footer2Props> = (args: any) => <Footer2 {...args}></Footer2>;
|
|
21
21
|
|
|
22
22
|
const notifications = [
|
|
23
23
|
{
|
|
@@ -157,8 +157,8 @@ Primary.args = {
|
|
|
157
157
|
companyName: 'a2ai',
|
|
158
158
|
footerName: 'Minha Aplicação',
|
|
159
159
|
onBackClick: () => console.log('Voltar'),
|
|
160
|
-
onFilterChange: (filter) => console.log('Filtro:', filter),
|
|
161
|
-
onNotificationClick: (id, url) => console.log('Notificação:', id, url),
|
|
160
|
+
onFilterChange: (filter: any) => console.log('Filtro:', filter),
|
|
161
|
+
onNotificationClick: (id: any, url: any) => console.log('Notificação:', id, url),
|
|
162
162
|
handleMarkAllAsRead: () => console.log('Marcar todas como lidas'),
|
|
163
163
|
};
|
|
164
164
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { Header } from '.';
|
|
3
3
|
import { HeaderProps } from './Header.types';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
component: Header,
|
|
8
8
|
} as Meta;
|
|
9
9
|
|
|
10
|
-
const Template:
|
|
10
|
+
const Template: StoryFn<HeaderProps> = (args: any) => <Header {...args}></Header>;
|
|
11
11
|
|
|
12
12
|
const mockAction = () => {
|
|
13
13
|
console.log('action');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { FormInputField, FormInputFieldProps } from '.';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: FormInputField,
|
|
7
7
|
} as Meta;
|
|
8
8
|
|
|
9
|
-
const Template:
|
|
9
|
+
const Template: StoryFn<FormInputFieldProps> = (args: any) => <FormInputField {...args}></FormInputField>;
|
|
10
10
|
|
|
11
11
|
export const Primary = Template.bind({});
|
|
12
12
|
Primary.args = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Form, Button } from 'antd';
|
|
2
|
-
import { Meta,
|
|
2
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
3
3
|
import { InputCountryCode, FormInputCountryCodeProps } from '.';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
component: InputCountryCode,
|
|
8
8
|
} as Meta;
|
|
9
9
|
|
|
10
|
-
const Template:
|
|
10
|
+
const Template: StoryFn<FormInputCountryCodeProps> = (args: any) => {
|
|
11
11
|
return (
|
|
12
12
|
<Form>
|
|
13
13
|
<InputCountryCode {...args}></InputCountryCode>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Meta,
|
|
1
|
+
import {Meta, StoryFn} from "@storybook/react-webpack5";
|
|
2
2
|
import { Label, LabelProps } from '.';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: Label,
|
|
7
7
|
} as Meta;
|
|
8
8
|
|
|
9
|
-
const Template:
|
|
9
|
+
const Template: StoryFn<LabelProps> = (args: any) => <Label {...args}></Label>;
|
|
10
10
|
|
|
11
11
|
export const Primary = Template.bind({});
|
|
12
12
|
Primary.args = {
|