@omniumretail/component-library 1.2.70 → 1.2.71

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 (181) hide show
  1. package/dist/component-library.umd.js +1154 -0
  2. package/dist/components/AnalyticsBar/AnalyticsBar.stories.d.ts +5 -0
  3. package/dist/{types/components → components}/AnalyticsBar/helpers/codeMutation.d.ts +2 -2
  4. package/dist/{types/components → components}/AnalyticsBar/index.d.ts +2 -1
  5. package/dist/components/BellNotifications/BellNotifications.stories.d.ts +5 -0
  6. package/dist/components/Button/Button.stories.d.ts +6 -0
  7. package/dist/{types/components → components}/Button/index.d.ts +2 -1
  8. package/dist/components/Category/Category.stories.d.ts +3 -0
  9. package/dist/{types/components → components}/Category/index.d.ts +2 -1
  10. package/dist/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +3 -0
  11. package/dist/{types/components → components}/CategoryReadOnly/index.d.ts +2 -1
  12. package/dist/components/CategoryResponse/CategoryResponse.stories.d.ts +3 -0
  13. package/dist/{types/components → components}/CategoryResponse/index.d.ts +3 -2
  14. package/dist/components/DatePicker/DatePicker.stories.d.ts +5 -0
  15. package/dist/{types/components → components}/DatePicker/index.d.ts +2 -1
  16. package/dist/components/DatePickerTag/DatePickerTag.stories.d.ts +5 -0
  17. package/dist/{types/components → components}/DatePickerTag/index.d.ts +2 -1
  18. package/dist/components/DropdownButton/DropdownButton.stories.d.ts +5 -0
  19. package/dist/{types/components → components}/DropdownButton/index.d.ts +3 -2
  20. package/dist/components/ExportTableData/ExportTableData.stories.d.ts +3 -0
  21. package/dist/components/Footer/Footer.stories.d.ts +5 -0
  22. package/dist/components/Footer2/Footer.stories.d.ts +6 -0
  23. package/dist/{types/components → components}/Footer2/index.d.ts +2 -1
  24. package/dist/{types/components → components}/Header/Header.data.d.ts +2 -1
  25. package/dist/components/Header/Header.stories.d.ts +5 -0
  26. package/dist/{types/components → components}/Header/Header.types.d.ts +2 -1
  27. package/dist/{types/components → components}/Header/index.d.ts +2 -1
  28. package/dist/components/Input/Input.stories.d.ts +5 -0
  29. package/dist/{types/components → components}/Input/index.d.ts +2 -1
  30. package/dist/{types/components → components}/InputCountryCode/index.d.ts +2 -1
  31. package/dist/components/InputCountryCode/inputCountryCode.stories.d.ts +5 -0
  32. package/dist/components/Label/Label.stories.d.ts +6 -0
  33. package/dist/components/Link/Link.stories.d.ts +7 -0
  34. package/dist/{types/components → components}/Link/index.d.ts +2 -1
  35. package/dist/components/Menu/Menu.stories.d.ts +5 -0
  36. package/dist/{types/components → components}/Menu/helpers/codeMutation.d.ts +2 -2
  37. package/dist/{types/components → components}/Menu/index.d.ts +2 -1
  38. package/dist/components/MobileTable/MobileTable.stories.d.ts +5 -0
  39. package/dist/{types/components → components}/MobileTable/index.d.ts +2 -1
  40. package/dist/components/ModalConfirmation/ModalConfirmation.stories.d.ts +5 -0
  41. package/dist/components/ModalWithTable/ModalWithTable.stories.d.ts +5 -0
  42. package/dist/{types/components → components}/ModalWithTable/index.d.ts +2 -1
  43. package/dist/components/Navigation/Navigation.stories.d.ts +5 -0
  44. package/dist/components/Notification/Notification.stories.d.ts +5 -0
  45. package/dist/{types/components → components}/Notification/index.d.ts +2 -1
  46. package/dist/components/Questions/Questions.stories.d.ts +3 -0
  47. package/dist/components/Radio/Radio.stories.d.ts +5 -0
  48. package/dist/{types/components → components}/Radio/index.d.ts +3 -2
  49. package/dist/components/ResponseType/ResponseType.stories.d.ts +3 -0
  50. package/dist/components/ResponsiveTable/ResponsiveTable.stories.d.ts +9 -0
  51. package/dist/{types/components → components}/ResponsiveTable/index.d.ts +2 -1
  52. package/dist/components/Select/Select.stories.d.ts +6 -0
  53. package/dist/{types/components → components}/Select/index.d.ts +2 -1
  54. package/dist/components/Separator/Separator.stories.d.ts +6 -0
  55. package/dist/components/Sidebar/Sidebar.stories.d.ts +6 -0
  56. package/dist/components/Switch/Switch.stories.d.ts +5 -0
  57. package/dist/{types/components → components}/Switch/index.d.ts +2 -1
  58. package/dist/components/Table/Table.stories.d.ts +9 -0
  59. package/dist/{types/components → components}/Table/index.d.ts +2 -1
  60. package/dist/components/Tag/Tag.stories.d.ts +5 -0
  61. package/dist/{types/components → components}/Tag/index.d.ts +3 -2
  62. package/dist/components/Upload/Upload.stories.d.ts +3 -0
  63. package/dist/{types/components → components}/Upload/index.d.ts +3 -2
  64. package/dist/components/UserInfo/UserInfo.stories.d.ts +3 -0
  65. package/dist/components/WebCam/WebCam.stories.d.ts +3 -0
  66. package/dist/{types/components → components}/WebCam/index.d.ts +2 -1
  67. package/dist/index.d.ts +3 -0
  68. package/dist/index.ts +0 -0
  69. package/dist/locales/en.json.d.ts +144 -0
  70. package/dist/locales/es.json.d.ts +144 -0
  71. package/dist/locales/pt.json.d.ts +145 -0
  72. package/dist/types/index.d.ts +2 -3
  73. package/package.json +90 -184
  74. package/src/components/AnalyticsBar/AnalyticsBar.stories.tsx +1 -1
  75. package/src/components/BellNotifications/BellNotifications.stories.tsx +1 -1
  76. package/src/components/Button/Button.stories.tsx +1 -1
  77. package/src/components/Category/Category.stories.tsx +1 -1
  78. package/src/components/CategoryReadOnly/CategoryReadOnly.stories.tsx +2 -2
  79. package/src/components/CategoryResponse/CategoryResponse.stories.tsx +3 -4
  80. package/src/components/DatePicker/DatePicker.stories.tsx +1 -1
  81. package/src/components/DatePickerTag/DatePickerTag.stories.tsx +1 -1
  82. package/src/components/DatePickerTag/index.tsx +3 -3
  83. package/src/components/DropdownButton/DropdownButton.stories.tsx +1 -1
  84. package/src/components/ExportTableData/ExportTableData.stories.tsx +1 -1
  85. package/src/components/Footer/Footer.stories.tsx +1 -1
  86. package/src/components/Footer/index.tsx +6 -6
  87. package/src/components/Footer2/Footer.stories.tsx +1 -1
  88. package/src/components/Footer2/index.tsx +6 -6
  89. package/src/components/Header/Header.stories.tsx +1 -1
  90. package/src/components/Header/Header.types.ts +1 -1
  91. package/src/components/Input/Input.stories.tsx +1 -1
  92. package/src/components/InputCountryCode/inputCountryCode.stories.tsx +1 -1
  93. package/src/components/Label/Label.stories.tsx +1 -1
  94. package/src/components/Link/Link.stories.tsx +1 -1
  95. package/src/components/Menu/Menu.stories.tsx +1 -1
  96. package/src/components/MobileTable/MobileTable.stories.tsx +1 -1
  97. package/src/components/ModalConfirmation/ModalConfirmation.stories.tsx +1 -1
  98. package/src/components/ModalWithTable/ModalWithTable.stories.tsx +1 -1
  99. package/src/components/Navigation/Navigation.stories.tsx +1 -1
  100. package/src/components/Notification/Notification.stories.tsx +1 -1
  101. package/src/components/Questions/Questions.stories.tsx +1 -1
  102. package/src/components/Radio/Radio.stories.tsx +1 -1
  103. package/src/components/ResponseType/ResponseType.stories.tsx +1 -1
  104. package/src/components/ResponsiveTable/ResponsiveTable.stories.tsx +1 -1
  105. package/src/components/Select/Select.stories.tsx +1 -1
  106. package/src/components/Separator/Separator.stories.tsx +1 -1
  107. package/src/components/Sidebar/Sidebar.stories.tsx +1 -1
  108. package/src/components/Switch/Switch.stories.tsx +1 -1
  109. package/src/components/Table/Table.stories.tsx +1 -1
  110. package/src/components/Tag/Tag.stories.tsx +1 -1
  111. package/src/components/Upload/Upload.stories.tsx +2 -2
  112. package/src/components/UserInfo/UserInfo.stories.tsx +1 -1
  113. package/src/components/WebCam/WebCam.stories.tsx +1 -1
  114. package/src/constants/i18n.ts +1 -1
  115. package/tsconfig.json +11 -16
  116. package/vite.config.js +51 -0
  117. package/dist/780.bundle.js +0 -1
  118. package/dist/838.bundle.js +0 -2
  119. package/dist/838.bundle.js.LICENSE.txt +0 -1
  120. package/dist/bundle.js +0 -2
  121. package/dist/bundle.js.LICENSE.txt +0 -451
  122. package/dist/main.css +0 -36
  123. package/dist/types/components/AnalyticsBar/AnalyticsBar.stories.d.ts +0 -4
  124. package/dist/types/components/BellNotifications/BellNotifications.stories.d.ts +0 -4
  125. package/dist/types/components/Button/Button.stories.d.ts +0 -5
  126. package/dist/types/components/Category/Category.stories.d.ts +0 -3
  127. package/dist/types/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +0 -3
  128. package/dist/types/components/CategoryResponse/CategoryResponse.stories.d.ts +0 -3
  129. package/dist/types/components/DatePicker/DatePicker.stories.d.ts +0 -4
  130. package/dist/types/components/DatePickerTag/DatePickerTag.stories.d.ts +0 -4
  131. package/dist/types/components/DropdownButton/DropdownButton.stories.d.ts +0 -4
  132. package/dist/types/components/ExportTableData/ExportTableData.stories.d.ts +0 -3
  133. package/dist/types/components/Footer/Footer.stories.d.ts +0 -4
  134. package/dist/types/components/Footer2/Footer.stories.d.ts +0 -5
  135. package/dist/types/components/Header/Header.stories.d.ts +0 -4
  136. package/dist/types/components/Input/Input.stories.d.ts +0 -4
  137. package/dist/types/components/InputCountryCode/inputCountryCode.stories.d.ts +0 -4
  138. package/dist/types/components/Label/Label.stories.d.ts +0 -5
  139. package/dist/types/components/Link/Link.stories.d.ts +0 -6
  140. package/dist/types/components/Menu/Menu.stories.d.ts +0 -4
  141. package/dist/types/components/MobileTable/MobileTable.stories.d.ts +0 -4
  142. package/dist/types/components/ModalConfirmation/ModalConfirmation.stories.d.ts +0 -4
  143. package/dist/types/components/ModalWithTable/ModalWithTable.stories.d.ts +0 -4
  144. package/dist/types/components/Navigation/Navigation.stories.d.ts +0 -4
  145. package/dist/types/components/Notification/Notification.stories.d.ts +0 -4
  146. package/dist/types/components/Questions/Questions.stories.d.ts +0 -3
  147. package/dist/types/components/Radio/Radio.stories.d.ts +0 -4
  148. package/dist/types/components/ResponseType/ResponseType.stories.d.ts +0 -3
  149. package/dist/types/components/ResponsiveTable/ResponsiveTable.stories.d.ts +0 -8
  150. package/dist/types/components/Select/Select.stories.d.ts +0 -5
  151. package/dist/types/components/Separator/Separator.stories.d.ts +0 -5
  152. package/dist/types/components/Sidebar/Sidebar.stories.d.ts +0 -5
  153. package/dist/types/components/Switch/Switch.stories.d.ts +0 -4
  154. package/dist/types/components/Table/Table.stories.d.ts +0 -8
  155. package/dist/types/components/Tag/Tag.stories.d.ts +0 -4
  156. package/dist/types/components/Upload/Upload.stories.d.ts +0 -3
  157. package/dist/types/components/UserInfo/UserInfo.stories.d.ts +0 -3
  158. package/dist/types/components/WebCam/WebCam.stories.d.ts +0 -3
  159. package/webpack.config.js +0 -51
  160. /package/dist/{types/components → components}/AnalyticsBar/interfaces/analyticsBar.d.ts +0 -0
  161. /package/dist/{types/components → components}/BellNotifications/index.d.ts +0 -0
  162. /package/dist/{types/components → components}/Category/CategoryContent/index.d.ts +0 -0
  163. /package/dist/{types/components → components}/Category/CategorySidebar/index.d.ts +0 -0
  164. /package/dist/{types/components → components}/CategoryReadOnly/evaluationOptions.d.ts +0 -0
  165. /package/dist/{types/components → components}/CategoryResponse/evaluationOptions.d.ts +0 -0
  166. /package/dist/{types/components → components}/ExportTableData/index.d.ts +0 -0
  167. /package/dist/{types/components → components}/Footer/index.d.ts +0 -0
  168. /package/dist/{types/components → components}/Label/index.d.ts +0 -0
  169. /package/dist/{types/components → components}/ModalConfirmation/ModalStatusList.d.ts +0 -0
  170. /package/dist/{types/components → components}/ModalConfirmation/index.d.ts +0 -0
  171. /package/dist/{types/components → components}/Navigation/index.d.ts +0 -0
  172. /package/dist/{types/components → components}/Questions/SingleQuestion/index.d.ts +0 -0
  173. /package/dist/{types/components → components}/Questions/index.d.ts +0 -0
  174. /package/dist/{types/components → components}/ResponseType/index.d.ts +0 -0
  175. /package/dist/{types/components → components}/Separator/index.d.ts +0 -0
  176. /package/dist/{types/components → components}/Sidebar/index.d.ts +0 -0
  177. /package/dist/{types/components → components}/UserInfo/index.d.ts +0 -0
  178. /package/dist/{types/components → components}/index.d.ts +0 -0
  179. /package/dist/{types/constants → constants}/i18n.d.ts +0 -0
  180. /package/dist/{types/constants → constants}/logoCompanyHelper.d.ts +0 -0
  181. /package/dist/{types/constants → constants}/translationHelper.d.ts +0 -0
package/package.json CHANGED
@@ -1,184 +1,90 @@
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
+ {
2
+ "name": "@omniumretail/component-library",
3
+ "version": "1.2.71",
4
+ "private": false,
5
+ "main": "dist/component-library.umd.js",
6
+ "types": "dist/types/index.d.ts",
7
+ "dependencies": {
8
+ "@ant-design/icons": "^4.8.0",
9
+ "@hello-pangea/dnd": "^18.0.1",
10
+ "@testing-library/react": "^13.0.0",
11
+ "@testing-library/user-event": "^13.2.1",
12
+ "@types/node": "^18.11.11",
13
+ "@types/react": "^18.0.26",
14
+ "@types/react-beautiful-dnd": "^13.1.3",
15
+ "@types/react-dom": "^18.0.9",
16
+ "antd": "^5.18.3",
17
+ "antd-img-crop": "^4.10.2",
18
+ "browser-image-compression": "^2.0.2",
19
+ "browserslist": "^4.18.1",
20
+ "camelcase": "^6.2.1",
21
+ "classnames": "^2.3.2",
22
+ "dayjs": "^1.11.10",
23
+ "dotenv": "^10.0.0",
24
+ "dotenv-expand": "^5.1.0",
25
+ "eslint": "^8.3.0",
26
+ "eslint-config-react-app": "^7.0.1",
27
+ "fs-extra": "^10.0.0",
28
+ "html2canvas": "^1.4.1",
29
+ "i18next": "^22.4.9",
30
+ "i18next-browser-languagedetector": "^7.0.1",
31
+ "i18next-fetch-backend": "^5.0.1",
32
+ "identity-obj-proxy": "^3.0.0",
33
+ "jest": "^27.4.3",
34
+ "jest-resolve": "^27.4.2",
35
+ "jest-watch-typeahead": "^1.0.0",
36
+ "jspdf": "^2.5.2",
37
+ "lodash.merge": "^4.6.2",
38
+ "postcss": "^8.4.4",
39
+ "prompts": "^2.4.2",
40
+ "rc-tween-one": "^3.0.6",
41
+ "react": "^18.2.0",
42
+ "react-app-polyfill": "^3.0.0",
43
+ "react-dom": "^18.2.0",
44
+ "react-easy-crop": "^4.7.4",
45
+ "react-i18next": "^12.1.4",
46
+ "react-webcam": "^7.1.1",
47
+ "sass": "^1.56.1",
48
+ "sass-loader": "^12.3.0",
49
+ "typescript": "^4.9.3",
50
+ "web-vitals": "^2.1.0",
51
+ "xlsx": "^0.18.5"
52
+ },
53
+ "scripts": {
54
+ "prepublish": "rd /s /q .\\dist && yarn build",
55
+ "dev": "vite",
56
+ "build": "vite build",
57
+ "preview": "vite preview",
58
+ "storybook": "storybook dev -p 6006",
59
+ "build-storybook": "storybook build",
60
+ "deploy": "aws s3 sync storybook-static/ s3://changeToBucketName",
61
+ "analyze": "webpack --json > stats.json && webpack-bundle-analyzer stats.json"
62
+ },
63
+ "browserslist": {
64
+ "production": [
65
+ ">0.2%",
66
+ "not dead",
67
+ "not op_mini all"
68
+ ],
69
+ "development": [
70
+ "last 1 chrome version",
71
+ "last 1 firefox version",
72
+ "last 1 safari version"
73
+ ]
74
+ },
75
+ "devDependencies": {
76
+ "@storybook/addon-docs": "9.1.2",
77
+ "@storybook/addon-links": "^9.1.2",
78
+ "@storybook/cli": "^9.1.2",
79
+ "@storybook/react-vite": "^9.1.2",
80
+ "@storybook/test": "^8.6.14",
81
+ "@types/lodash.merge": "^4.6.9",
82
+ "@vitejs/plugin-react": "^5.0.1",
83
+ "prop-types": "^15.8.1",
84
+ "storybook-css-modules": "^1.0.8",
85
+ "tsconfig-paths": "^4.2.0",
86
+ "vite": "^7.1.3",
87
+ "vite-plugin-css-injected-by-js": "^3.5.2",
88
+ "vite-plugin-dts": "^4.5.4"
89
+ }
90
+ }
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { AnalyticsBar } from '.';
3
3
  import { AnalyticsBarProps } from './interfaces/analyticsBar';
4
4
  import { getItem } from './helpers/codeMutation';
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { BellNotifications, BellNotificationsProps } from '.';
3
3
 
4
4
  export default {
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Button, CustomButtonProps } from '.';
3
3
 
4
4
  export default {
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { useEffect, useState } from "react";
3
3
  import { Category } from '.';
4
4
 
@@ -1,5 +1,5 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
2
- import { Button } from "components/Button";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
+ import { Button } from "../Button";
3
3
  import { useEffect, useRef, useState } from "react";
4
4
  import { CategoryReadOnly } from '.';
5
5
 
@@ -1,9 +1,8 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
2
- import { Button } from "components/Button";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
+ import { Button } from "../Button";
3
3
  import { useEffect, useRef, useState } from "react";
4
4
  import { CategoryResponse } from '.';
5
5
  import { UploadFile } from "antd";
6
- import moment from "moment";
7
6
 
8
7
  export default {
9
8
  title: 'CategoryResponse',
@@ -143,7 +142,7 @@ Primary.args = {
143
142
  "Grade": "0",
144
143
  "Note": "asasas",
145
144
  "Disabled": true,
146
- "Answer": moment(),
145
+ "Answer": [],
147
146
  "IsDate": true
148
147
  },
149
148
  {
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { CustomDatePicker, CustomDatePickerProps } from '.';
3
3
 
4
4
  export default {
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { DatePickerTag } from '.';
3
3
  import { TagProps } from 'antd';
4
4
  import { useState } from "react";
@@ -4,14 +4,14 @@ import { DatePicker, Tag, TagProps } from 'antd';
4
4
  import { TweenOneGroup } from 'rc-tween-one';
5
5
  import styles from './styles.module.scss';
6
6
  import { t } from 'i18next';
7
- import moment, { Moment } from 'moment';
7
+ import dayjs from "dayjs";
8
8
  import locale from 'antd/es/date-picker/locale/pt_BR';
9
9
 
10
10
  export interface DatePickerTagProps extends TagProps {
11
11
  customTags?: any,
12
12
  tagsInfo?: any;
13
13
  }
14
-
14
+
15
15
  type DateValue = Dayjs | null;
16
16
 
17
17
  export const DatePickerTag = (props: DatePickerTagProps) => {
@@ -59,7 +59,7 @@ export const DatePickerTag = (props: DatePickerTagProps) => {
59
59
  return (
60
60
  <div className={styles.tagfield}>
61
61
  <DatePicker
62
- disabledDate={(current) => current && current < moment().endOf('day')}
62
+ disabledDate={(current) => current && current < dayjs().endOf("day")}
63
63
  value={dateValue}
64
64
  onChange={handleChange as any}
65
65
  className={styles.picker}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Meta, StoryFn } from '@storybook/react-webpack5';
2
+ import { Meta, StoryFn } from "@storybook/react-vite";
3
3
  import { DropdownButton, DropdownButtonProps } from '.';
4
4
 
5
5
  export default {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Meta, StoryFn } from '@storybook/react-webpack5';
2
+ import { Meta, StoryFn } from "@storybook/react-vite";
3
3
  import { TableExportButton } from './index';
4
4
 
5
5
  export default {
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Footer, FooterProps } from '.';
3
3
 
4
4
  export default {
@@ -1,8 +1,8 @@
1
1
  import { useEffect, useState } from "react";
2
- import moment from 'moment';
3
2
  import styles from './styles.module.scss';
4
3
  import omniumLogo from '../../assets/images/omnium-retail-logo-white.png';
5
4
  import omniumIcon from '../../assets/images/omnium-retail_icon.png';
5
+ import dayjs from "dayjs";
6
6
 
7
7
  export interface FooterProps {
8
8
  storeName: string;
@@ -10,16 +10,16 @@ export interface FooterProps {
10
10
  }
11
11
 
12
12
  export const Footer = (props: FooterProps) => {
13
- const [date, setDate] = useState(moment());
13
+ const [date, setDate] = useState(dayjs());
14
14
  const { storeName = 'Missing Store Name' } = props;
15
15
 
16
16
  useEffect(() => {
17
17
  const time = (function updateDate() {
18
- const nextMinute = moment().add(1, 'minute');
18
+ const nextMinute = dayjs().add(1, "minute");
19
19
  return setTimeout(() => {
20
- setDate(moment());
20
+ setDate(dayjs());
21
21
  updateDate();
22
- }, nextMinute.valueOf() - moment().valueOf());
22
+ }, nextMinute.valueOf() - dayjs().valueOf());
23
23
  }());
24
24
 
25
25
  return () => clearTimeout(time);
@@ -29,7 +29,7 @@ export const Footer = (props: FooterProps) => {
29
29
  <div className={styles.footer}>
30
30
  <div className={styles.content}>
31
31
  <div className={styles.brand}>{storeName}</div>
32
- <div className={styles.date}>{date.format('DD/MM/yyyy')}</div>
32
+ <div className={styles.date}>{date.format('DD/MM/YYYY')}</div>
33
33
  <div className={styles.time}>{date.format('HH:mm')}</div>
34
34
  </div>
35
35
 
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Footer2, Footer2Props, ActionType } from '.';
3
3
  import {
4
4
  SettingOutlined,
@@ -11,7 +11,7 @@ import {
11
11
  RightOutlined,
12
12
  LeftCircleOutlined
13
13
  } from '@ant-design/icons';
14
- import moment from 'moment';
14
+ import dayjs from "dayjs";
15
15
  import React, { useEffect, useRef, useState } from 'react';
16
16
  import { useTranslation } from 'react-i18next';
17
17
  import { getCompanyLogos } from '../../constants/logoCompanyHelper';
@@ -96,7 +96,7 @@ export const Footer2 = (props: Footer2Props) => {
96
96
  companyName = 'omnium',
97
97
  } = props;
98
98
 
99
- const [date, setDate] = useState(moment());
99
+ const [date, setDate] = useState(dayjs());
100
100
  const [isMenuOpen, setIsMenuOpen] = useState(false);
101
101
  const [currentSubmenu, setCurrentSubmenu] = useState<string | null>(null);
102
102
  const menuRef = useRef<HTMLDivElement>(null);
@@ -116,11 +116,11 @@ export const Footer2 = (props: Footer2Props) => {
116
116
 
117
117
  useEffect(() => {
118
118
  const time = (function updateDate() {
119
- const nextMinute = moment().add(1, 'minute');
119
+ const nextMinute = dayjs().add(1, "minute");
120
120
  return setTimeout(() => {
121
- setDate(moment());
121
+ setDate(dayjs());
122
122
  updateDate();
123
- }, nextMinute.valueOf() - moment().valueOf());
123
+ }, nextMinute.valueOf() - dayjs().valueOf());
124
124
  }());
125
125
 
126
126
  return () => clearTimeout(time);
@@ -234,7 +234,7 @@ export const Footer2 = (props: Footer2Props) => {
234
234
  {!isMobile &&
235
235
  <div className={styles.content}>
236
236
  <div className={styles.brand}>{footerName}</div>
237
- <div className={styles.date}>{date.format('DD/MM/yyyy')}</div>
237
+ <div className={styles.date}>{date.format('DD/MM/YYYY')}</div>
238
238
  <div className={styles.time}>{date.format('HH:mm')}</div>
239
239
  </div>
240
240
  }
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Header } from '.';
3
3
  import { HeaderProps } from './Header.types';
4
4
 
@@ -1,4 +1,4 @@
1
- import { BellNotification } from "components/BellNotifications";
1
+ import { BellNotification } from "../BellNotifications";
2
2
 
3
3
  export interface MenuItem {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { FormInputField, FormInputFieldProps } from '.';
3
3
 
4
4
  export default {
@@ -1,5 +1,5 @@
1
1
  import { Form, Button } from 'antd';
2
- import { Meta, StoryFn } from "@storybook/react-webpack5";
2
+ import { Meta, StoryFn } from "@storybook/react-vite";
3
3
  import { InputCountryCode, FormInputCountryCodeProps } from '.';
4
4
 
5
5
  export default {
@@ -1,4 +1,4 @@
1
- import {Meta, StoryFn} from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Label, LabelProps } from '.';
3
3
 
4
4
  export default {
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Link, CustomLinkProps } from '.';
3
3
  import { SearchOutlined } from '@ant-design/icons';
4
4
 
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Menu } from '.';
3
3
  import { MenuProps } from 'antd';
4
4
  import { getItem } from './helpers/codeMutation';
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { useEffect, useState } from "react";
3
3
  import { MobileTable, MobileTableProps } from '.';
4
4
 
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { useEffect, useState } from "react";
3
3
  import { ModalConfirmation, ModalConfirmationProps } from '.';
4
4
  import { ModalStatus } from './ModalStatusList';
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { useEffect, useState } from "react";
3
3
  import { ModalWithTable, ModalWithTableProps } from '.';
4
4
 
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Navigation, NavigationProps } from '.';
3
3
 
4
4
  export default {
@@ -1,4 +1,4 @@
1
- import { StoryFn } from "@storybook/react-webpack5";
1
+ import { StoryFn } from "@storybook/react-vite";
2
2
  import { Notification, ErrorNotificationProps } from '.';
3
3
 
4
4
  export default {
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Questions } from '.';
3
3
  import { SearchOutlined } from '@ant-design/icons';
4
4
  import { Button, Form, Input } from "antd";
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Radio as RadioAntd, RadioChangeEvent, RadioProps } from "antd";
3
3
  import { useState } from "react";
4
4
  import { Radio, RadioGroup } from '.';
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { useEffect, useState } from "react";
3
3
  import { ResponseType } from '.';
4
4
 
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { ResponsiveTable, ResponsiveTableCustomProps } from '.';
3
3
  import { useState } from "react";
4
4
  import { useTranslation } from "react-i18next";
@@ -1,4 +1,4 @@
1
- import { Meta, StoryFn } from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Select } from '.';
3
3
  import { SelectProps } from 'antd';
4
4
 
@@ -1,4 +1,4 @@
1
- import {Meta, StoryFn} from "@storybook/react-webpack5";
1
+ import { Meta, StoryFn } from "@storybook/react-vite";
2
2
  import { Separator, SeparatorProps, Spaces } from '.';
3
3
 
4
4
  export default {
@@ -1,5 +1,5 @@
1
1
  import { RightCircleOutlined } from "@ant-design/icons";
2
- import { Meta, StoryFn } from "@storybook/react-webpack5";
2
+ import { Meta, StoryFn } from "@storybook/react-vite";
3
3
  import { Sidebar, SidebarProps } from '.';
4
4
 
5
5
  export default {