@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.
Files changed (81) hide show
  1. package/dist/780.bundle.js +1 -1
  2. package/dist/838.bundle.js +1 -1
  3. package/dist/838.bundle.js.LICENSE.txt +1 -1
  4. package/dist/bundle.js +1 -1
  5. package/dist/bundle.js.LICENSE.txt +11 -21
  6. package/dist/types/components/AnalyticsBar/AnalyticsBar.stories.d.ts +2 -3
  7. package/dist/types/components/BellNotifications/BellNotifications.stories.d.ts +2 -3
  8. package/dist/types/components/Button/Button.stories.d.ts +3 -4
  9. package/dist/types/components/Category/Category.stories.d.ts +2 -3
  10. package/dist/types/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +2 -3
  11. package/dist/types/components/CategoryResponse/CategoryResponse.stories.d.ts +2 -3
  12. package/dist/types/components/DatePicker/DatePicker.stories.d.ts +2 -3
  13. package/dist/types/components/DatePickerTag/DatePickerTag.stories.d.ts +2 -3
  14. package/dist/types/components/DropdownButton/DropdownButton.stories.d.ts +2 -3
  15. package/dist/types/components/ExportTableData/ExportTableData.stories.d.ts +2 -3
  16. package/dist/types/components/Footer/Footer.stories.d.ts +2 -3
  17. package/dist/types/components/Footer2/Footer.stories.d.ts +3 -4
  18. package/dist/types/components/Header/Header.stories.d.ts +2 -3
  19. package/dist/types/components/Input/Input.stories.d.ts +2 -3
  20. package/dist/types/components/InputCountryCode/inputCountryCode.stories.d.ts +2 -3
  21. package/dist/types/components/Label/Label.stories.d.ts +3 -4
  22. package/dist/types/components/Link/Link.stories.d.ts +4 -5
  23. package/dist/types/components/Menu/Menu.stories.d.ts +2 -3
  24. package/dist/types/components/MobileTable/MobileTable.stories.d.ts +2 -3
  25. package/dist/types/components/ModalConfirmation/ModalConfirmation.stories.d.ts +2 -3
  26. package/dist/types/components/ModalWithTable/ModalWithTable.stories.d.ts +2 -3
  27. package/dist/types/components/Navigation/Navigation.stories.d.ts +2 -3
  28. package/dist/types/components/Notification/Notification.stories.d.ts +2 -3
  29. package/dist/types/components/Questions/Questions.stories.d.ts +2 -3
  30. package/dist/types/components/Radio/Radio.stories.d.ts +2 -3
  31. package/dist/types/components/ResponseType/ResponseType.stories.d.ts +2 -3
  32. package/dist/types/components/ResponsiveTable/ResponsiveTable.stories.d.ts +6 -7
  33. package/dist/types/components/Select/Select.stories.d.ts +3 -4
  34. package/dist/types/components/Separator/Separator.stories.d.ts +3 -4
  35. package/dist/types/components/Sidebar/Sidebar.stories.d.ts +3 -4
  36. package/dist/types/components/Switch/Switch.stories.d.ts +2 -3
  37. package/dist/types/components/Table/Table.stories.d.ts +6 -7
  38. package/dist/types/components/Tag/Tag.stories.d.ts +2 -3
  39. package/dist/types/components/Upload/Upload.stories.d.ts +2 -3
  40. package/dist/types/components/UserInfo/UserInfo.stories.d.ts +2 -3
  41. package/dist/types/components/WebCam/WebCam.stories.d.ts +2 -3
  42. package/package.json +184 -186
  43. package/src/components/AnalyticsBar/AnalyticsBar.stories.tsx +2 -2
  44. package/src/components/BellNotifications/BellNotifications.stories.tsx +2 -2
  45. package/src/components/Button/Button.stories.tsx +2 -2
  46. package/src/components/Category/Category.stories.tsx +2 -2
  47. package/src/components/CategoryReadOnly/CategoryReadOnly.stories.tsx +2 -2
  48. package/src/components/CategoryResponse/CategoryResponse.stories.tsx +2 -2
  49. package/src/components/DatePicker/DatePicker.stories.tsx +2 -2
  50. package/src/components/DatePickerTag/DatePickerTag.stories.tsx +2 -2
  51. package/src/components/DropdownButton/DropdownButton.stories.tsx +2 -2
  52. package/src/components/ExportTableData/ExportTableData.stories.tsx +2 -2
  53. package/src/components/Footer/Footer.stories.tsx +2 -2
  54. package/src/components/Footer2/Footer.stories.tsx +4 -4
  55. package/src/components/Header/Header.stories.tsx +2 -2
  56. package/src/components/Input/Input.stories.tsx +2 -2
  57. package/src/components/InputCountryCode/inputCountryCode.stories.tsx +2 -2
  58. package/src/components/Label/Label.stories.tsx +2 -2
  59. package/src/components/Link/Link.stories.tsx +2 -2
  60. package/src/components/Menu/Menu.stories.tsx +2 -2
  61. package/src/components/MobileTable/MobileTable.stories.tsx +2 -2
  62. package/src/components/ModalConfirmation/ModalConfirmation.stories.tsx +2 -2
  63. package/src/components/ModalWithTable/ModalWithTable.stories.tsx +2 -2
  64. package/src/components/Navigation/Navigation.stories.tsx +2 -2
  65. package/src/components/Notification/Notification.stories.tsx +3 -3
  66. package/src/components/Questions/Questions.stories.tsx +2 -2
  67. package/src/components/Questions/index.tsx +1 -1
  68. package/src/components/Radio/Radio.stories.tsx +2 -2
  69. package/src/components/ResponseType/ResponseType.stories.tsx +2 -2
  70. package/src/components/ResponsiveTable/ResponsiveTable.stories.tsx +2 -2
  71. package/src/components/Select/Select.stories.tsx +2 -2
  72. package/src/components/Separator/Separator.stories.tsx +2 -2
  73. package/src/components/Sidebar/Sidebar.stories.tsx +2 -2
  74. package/src/components/Switch/Switch.stories.tsx +2 -2
  75. package/src/components/Table/Table.stories.tsx +2 -2
  76. package/src/components/Tag/Tag.stories.tsx +2 -2
  77. package/src/components/Upload/Upload.stories.tsx +2 -2
  78. package/src/components/UserInfo/UserInfo.stories.tsx +2 -2
  79. package/src/components/WebCam/WebCam.stories.tsx +2 -2
  80. package/dist/types/components/MobileTable/UserInfoTable/index.d.ts +0 -21
  81. 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.69",
4
- "private": false,
5
- "main": "dist/bundle.js",
6
- "typings": "./dist/types/index",
7
- "dependencies": {
8
- "@ant-design/icons": "^4.8.0",
9
- "@svgr/webpack": "^5.5.0",
10
- "@testing-library/jest-dom": "^5.14.1",
11
- "@testing-library/react": "^13.0.0",
12
- "@testing-library/user-event": "^13.2.1",
13
- "@types/jest": "^29.2.4",
14
- "@types/node": "^18.11.11",
15
- "@types/react": "^18.0.26",
16
- "@types/react-beautiful-dnd": "^13.1.3",
17
- "@types/react-dom": "^18.0.9",
18
- "antd": "^5.18.3",
19
- "antd-img-crop": "^4.10.2",
20
- "babel-jest": "^27.4.2",
21
- "babel-loader": "^8.2.3",
22
- "babel-plugin-named-asset-import": "^0.3.8",
23
- "babel-preset-react-app": "^10.0.1",
24
- "browser-image-compression": "^2.0.2",
25
- "browserslist": "^4.18.1",
26
- "camelcase": "^6.2.1",
27
- "case-sensitive-paths-webpack-plugin": "^2.4.0",
28
- "classnames": "^2.3.2",
29
- "css-loader": "^6.5.1",
30
- "css-minimizer-webpack-plugin": "^3.2.0",
31
- "dotenv": "^10.0.0",
32
- "dotenv-expand": "^5.1.0",
33
- "eslint": "^8.3.0",
34
- "eslint-config-react-app": "^7.0.1",
35
- "eslint-webpack-plugin": "^3.1.1",
36
- "file-loader": "^6.2.0",
37
- "fs-extra": "^10.0.0",
38
- "html-webpack-plugin": "^5.5.0",
39
- "html2canvas": "^1.4.1",
40
- "i18next": "^22.4.9",
41
- "i18next-browser-languagedetector": "^7.0.1",
42
- "i18next-fetch-backend": "^5.0.1",
43
- "identity-obj-proxy": "^3.0.0",
44
- "jest": "^27.4.3",
45
- "jest-resolve": "^27.4.2",
46
- "jest-watch-typeahead": "^1.0.0",
47
- "jspdf": "^2.5.2",
48
- "lodash.merge": "^4.6.2",
49
- "mini-css-extract-plugin": "^2.7.2",
50
- "moment": "^2.29.4",
51
- "postcss": "^8.4.4",
52
- "postcss-loader": "^6.2.1",
53
- "prompts": "^2.4.2",
54
- "rc-tween-one": "^3.0.6",
55
- "react": "^18.2.0",
56
- "react-app-polyfill": "^3.0.0",
57
- "react-beautiful-dnd": "^13.1.1",
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": "rm -rf ./dist && npm run build",
74
- "start": "webpack -w",
75
- "build": "webpack",
76
- "test": "node scripts/test.js",
77
- "storybook": "start-storybook -p 6006 -c .storybook watch-css -s public",
78
- "build-storybook": "build-storybook -s public",
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-actions": "^6.5.14",
111
- "@storybook/addon-essentials": "^6.5.14",
112
- "@storybook/addon-interactions": "^6.5.14",
113
- "@storybook/addon-links": "^6.5.14",
114
- "@storybook/builder-webpack5": "^6.5.14",
115
- "@storybook/manager-webpack5": "^6.5.14",
116
- "@storybook/node-logger": "^6.5.14",
117
- "@storybook/preset-create-react-app": "^4.1.2",
118
- "@storybook/react": "^6.5.14",
119
- "@storybook/testing-library": "^0.0.13",
120
- "prop-types": "^15.8.1",
121
- "react-scripts": "^5.0.1",
122
- "storybook-addon-sass-postcss": "^0.1.3",
123
- "storybook-css-modules": "^1.0.8",
124
- "ts-loader": "^9.4.2",
125
- "webpack": "^5.75.0",
126
- "webpack-cli": "^5.0.1"
127
- },
128
- "jest": {
129
- "roots": [
130
- "<rootDir>/src"
131
- ],
132
- "collectCoverageFrom": [
133
- "src/**/*.{js,jsx,ts,tsx}",
134
- "!src/**/*.d.ts"
135
- ],
136
- "setupFiles": [
137
- "react-app-polyfill/jsdom"
138
- ],
139
- "setupFilesAfterEnv": [
140
- "<rootDir>/src/setupTests.ts"
141
- ],
142
- "testMatch": [
143
- "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
144
- "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
145
- ],
146
- "testEnvironment": "jsdom",
147
- "transform": {
148
- "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
149
- "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
150
- "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
151
- },
152
- "transformIgnorePatterns": [
153
- "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
154
- "^.+\\.module\\.(css|sass|scss)$"
155
- ],
156
- "modulePaths": [
157
- "/Users/carlossoares/Workplace/Sitoo/components-lib-omnium/component-library/src"
158
- ],
159
- "moduleNameMapper": {
160
- "^react-native$": "react-native-web",
161
- "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
162
- },
163
- "moduleFileExtensions": [
164
- "web.js",
165
- "js",
166
- "web.ts",
167
- "ts",
168
- "web.tsx",
169
- "tsx",
170
- "json",
171
- "web.jsx",
172
- "jsx",
173
- "node"
174
- ],
175
- "watchPlugins": [
176
- "jest-watch-typeahead/filename",
177
- "jest-watch-typeahead/testname"
178
- ],
179
- "resetMocks": true
180
- },
181
- "babel": {
182
- "presets": [
183
- "react-app"
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, Story } from "@storybook/react";
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: Story<AnalyticsBarProps> = (args) => {
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, Story } from "@storybook/react";
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: Story<BellNotificationsProps> = (args) => <BellNotifications {...args}></BellNotifications>;
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, Story } from "@storybook/react";
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: Story<CustomButtonProps> = (args) => <Button {...args}>ola</Button>;
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, Story } from "@storybook/react";
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: Story<any> = (args) => {
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, Story } from "@storybook/react";
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: Story<any> = (args) => {
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, Story } from "@storybook/react";
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: Story<any> = (args) => {
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, Story } from "@storybook/react";
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: Story<CustomDatePickerProps> = (args) => <CustomDatePicker {...args}></CustomDatePicker>;
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, Story } from "@storybook/react";
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: Story<TagProps> = (args) => {
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, Story } from '@storybook/react';
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: Story<DropdownButtonProps> = (args) => <DropdownButton {...args} />;
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, Story } from '@storybook/react';
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: Story<any> = (args) => <TableExportButton {...args} />;
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, Story } from "@storybook/react";
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: Story<FooterProps> = (args) => <Footer {...args}></Footer>;
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, Story } from "@storybook/react";
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: Story<Footer2Props> = (args) => <Footer2 {...args}></Footer2>;
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, Story } from "@storybook/react";
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: Story<HeaderProps> = (args) => <Header {...args}></Header>;
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, Story } from "@storybook/react";
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: Story<FormInputFieldProps> = (args) => <FormInputField {...args}></FormInputField>;
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, Story } from "@storybook/react";
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: Story<FormInputCountryCodeProps> = (args) => {
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, Story} from "@storybook/react";
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: Story<LabelProps> = (args) => <Label {...args}></Label>;
9
+ const Template: StoryFn<LabelProps> = (args: any) => <Label {...args}></Label>;
10
10
 
11
11
  export const Primary = Template.bind({});
12
12
  Primary.args = {