gov-ui-core 0.2.6-beta.9 → 1.0.0

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 (150) hide show
  1. package/.eslintrc.json +54 -54
  2. package/.husky/pre-commit +4 -4
  3. package/.prettierrc +12 -12
  4. package/.storybook/main.ts +37 -37
  5. package/.storybook/preview.tsx +27 -27
  6. package/.stylelintrc.json +19 -16
  7. package/@types/custom.d.ts +43 -43
  8. package/@types/styles.d.ts +99 -86
  9. package/README.md +46 -46
  10. package/build/App.d.ts +3 -3
  11. package/build/Main.d.ts +5 -5
  12. package/build/components/Badge/index.d.ts +8 -0
  13. package/build/components/Badge/styled.d.ts +1 -0
  14. package/build/components/Breadcrumb/index.d.ts +6 -0
  15. package/build/components/Breadcrumb/styled.d.ts +2 -0
  16. package/build/components/Button/DropdownButton.d.ts +15 -15
  17. package/build/components/Button/SwitchButton.d.ts +10 -7
  18. package/build/components/Button/TextButton.d.ts +8 -0
  19. package/build/components/Button/constants.d.ts +19 -19
  20. package/build/components/Button/index.d.ts +11 -11
  21. package/build/components/Button/styled.d.ts +18 -11
  22. package/build/components/Calendar/CalendarNavigation.d.ts +9 -9
  23. package/build/components/Calendar/constants.d.ts +2 -2
  24. package/build/components/Calendar/index.d.ts +11 -11
  25. package/build/components/Calendar/styled.d.ts +2 -2
  26. package/build/components/Card/index.d.ts +12 -0
  27. package/build/components/Carousel/ArrowButton.d.ts +7 -7
  28. package/build/components/Carousel/index.d.ts +14 -14
  29. package/build/components/Carousel/styled.d.ts +2 -2
  30. package/build/components/Chip/constants.d.ts +11 -9
  31. package/build/components/Chip/index.d.ts +11 -12
  32. package/build/components/Directory/index.d.ts +32 -32
  33. package/build/components/Directory/styled.d.ts +6 -6
  34. package/build/components/EmptyBox/index.d.ts +8 -8
  35. package/build/components/EmptyBox/styled.d.ts +4 -4
  36. package/build/components/Form/Form.d.ts +21 -21
  37. package/build/components/Form/Group.d.ts +6 -6
  38. package/build/components/Form/Item.d.ts +27 -22
  39. package/build/components/Form/index.d.ts +14 -14
  40. package/build/components/Form/styled.d.ts +7 -7
  41. package/build/components/Header/ContentHeader.d.ts +15 -15
  42. package/build/components/Header/styled.d.ts +5 -5
  43. package/build/components/Icons/index.d.ts +14 -14
  44. package/build/components/Input/Checkbox.d.ts +22 -19
  45. package/build/components/Input/ErrorMessage.d.ts +8 -8
  46. package/build/components/Input/Input.d.ts +24 -23
  47. package/build/components/Input/InputNumber.d.ts +8 -8
  48. package/build/components/Input/Radio.d.ts +18 -16
  49. package/build/components/Input/Search.d.ts +13 -13
  50. package/build/components/Input/Select.d.ts +40 -40
  51. package/build/components/Input/TextArea.d.ts +18 -15
  52. package/build/components/Input/index.d.ts +19 -19
  53. package/build/components/Input/styled.d.ts +29 -25
  54. package/build/components/IntlText/index.d.ts +5 -5
  55. package/build/components/Loading/OverlayLoading.d.ts +10 -10
  56. package/build/components/Loading/Spinner.d.ts +9 -9
  57. package/build/components/Loading/styled.d.ts +10 -10
  58. package/build/components/Menu/index.d.ts +26 -0
  59. package/build/components/Modal/index.d.ts +10 -0
  60. package/build/components/Modal/styled.d.ts +6 -0
  61. package/build/components/Pannel/index.d.ts +10 -0
  62. package/build/components/Pannel/styled.d.ts +5 -0
  63. package/build/components/Progress/index.d.ts +11 -0
  64. package/build/components/Progress/styled.d.ts +4 -0
  65. package/build/components/Sliders/index.d.ts +9 -0
  66. package/build/components/Sliders/styled.d.ts +9 -0
  67. package/build/components/Styled/mixins.d.ts +13 -13
  68. package/build/components/Styled/variable.d.ts +6 -6
  69. package/build/components/Table/AppendTable.d.ts +26 -26
  70. package/build/components/Table/AutoTooltip.d.ts +8 -8
  71. package/build/components/Table/TableBase.d.ts +16 -16
  72. package/build/components/Table/TableLoading.d.ts +9 -9
  73. package/build/components/Table/components/Pagination.d.ts +18 -18
  74. package/build/components/Table/components/PaginationItem.d.ts +9 -9
  75. package/build/components/Table/index.d.ts +27 -27
  76. package/build/components/Table/styled.d.ts +26 -25
  77. package/build/components/Tabs/TabContent.d.ts +8 -0
  78. package/build/components/Tabs/index.d.ts +19 -0
  79. package/build/components/Tabs/styled.d.ts +12 -0
  80. package/build/components/TextBox/index.d.ts +12 -0
  81. package/build/components/ThemeProvider.d.ts +17 -16
  82. package/build/components/Toast/index.d.ts +10 -0
  83. package/build/components/Toast/styled.d.ts +6 -0
  84. package/build/components/Tooltips/index.d.ts +16 -0
  85. package/build/components/Tree/index.d.ts +8 -0
  86. package/build/globalStyle.d.ts +5 -5
  87. package/build/index.d.ts +2 -1
  88. package/build/index.js +1 -1
  89. package/build/modules.d.ts +31 -24
  90. package/build/pages/BreadcrumbSample.d.ts +5 -0
  91. package/build/pages/ButtonSample.d.ts +6 -6
  92. package/build/pages/CardSample.d.ts +5 -0
  93. package/build/pages/CheckboxSample.d.ts +6 -0
  94. package/build/pages/ChipSample.d.ts +6 -6
  95. package/build/pages/FormSample.d.ts +5 -5
  96. package/build/pages/InputSample.d.ts +6 -6
  97. package/build/pages/ModalSample.d.ts +5 -0
  98. package/build/pages/PannelSample.d.ts +5 -0
  99. package/build/pages/ProgressSample.d.ts +5 -0
  100. package/build/pages/RadioSample.d.ts +6 -0
  101. package/build/pages/Sample.d.ts +5 -5
  102. package/build/pages/Sample2.d.ts +5 -5
  103. package/build/pages/Sample3.d.ts +5 -5
  104. package/build/pages/Sample4.d.ts +5 -5
  105. package/build/pages/SlidersSample.d.ts +5 -0
  106. package/build/pages/TableSample.d.ts +5 -5
  107. package/build/pages/TabsSample.d.ts +6 -0
  108. package/build/pages/TailwindSample.d.ts +1 -1
  109. package/build/pages/TextBoxSample.d.ts +2 -0
  110. package/build/pages/ToastSample.d.ts +6 -0
  111. package/build/pages/TooltipsSample.d.ts +5 -0
  112. package/build/pages/TreeSample.d.ts +5 -0
  113. package/build/pages/sampleData.d.ts +59 -59
  114. package/build/reportWebVitals.d.ts +3 -3
  115. package/build/theme.d.ts +3 -3
  116. package/build/utils/customState.d.ts +28 -28
  117. package/build/utils/hookUtils.d.ts +16 -16
  118. package/build/utils/index.d.ts +35 -35
  119. package/config/env.js +104 -104
  120. package/config/getHttpsConfig.js +66 -66
  121. package/config/jest/babelTransform.js +29 -29
  122. package/config/jest/cssTransform.js +14 -14
  123. package/config/jest/fileTransform.js +40 -40
  124. package/config/modules.js +134 -134
  125. package/config/paths.js +77 -77
  126. package/config/webpack/persistentCache/createEnvironmentHash.js +9 -9
  127. package/config/webpack.config.js +756 -756
  128. package/config/webpack.prod.config.js +91 -91
  129. package/config/webpackDevServer.config.js +127 -127
  130. package/doctor-storybook.log +18 -0
  131. package/migration-storybook.log +98 -0
  132. package/package.json +250 -247
  133. package/postcss.config.js +8 -8
  134. package/public/index.html +43 -43
  135. package/public/manifest.json +25 -25
  136. package/public/robots.txt +3 -3
  137. package/scripts/build.js +217 -217
  138. package/scripts/start.js +154 -154
  139. package/scripts/test.js +52 -52
  140. package/tailwind.config.js +185 -185
  141. package/tsconfig.json +34 -34
  142. package/build/20d0d451f31ed3b5c15f.woff +0 -1
  143. package/build/39285e8af490890e2df4.otf +0 -0
  144. package/build/3965b6176d1ce958b445.woff +0 -1
  145. package/build/508d69efb37042551458.woff +0 -1
  146. package/build/72ba455576ce8174ffa8.otf +0 -0
  147. package/build/a9ba4978d441af03cd27.woff +0 -1
  148. package/build/e65c7edcd47e3e9f5c99.otf +0 -0
  149. package/build/f7a8dce8dfc249d7e12b.otf +0 -0
  150. package/build/pages/CreateTable.d.ts +0 -20
package/package.json CHANGED
@@ -1,247 +1,250 @@
1
- {
2
- "name": "gov-ui-core",
3
- "version": "0.2.6-beta.9",
4
- "main": "./build/index.js",
5
- "module": "./build/index.js",
6
- "types": "./build/modules.d.ts",
7
- "repository": "https://github.com/liamyoon/gov-ui-core",
8
- "dependencies": {
9
- "@babel/core": "^7.16.0",
10
- "@craco/craco": "^7.1.0",
11
- "@mdi/font": "^5.9.55",
12
- "@mdi/js": "^5.9.55",
13
- "@mdi/react": "^1.6.1",
14
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
15
- "@svgr/webpack": "^5.5.0",
16
- "@testing-library/jest-dom": "^5.17.0",
17
- "@testing-library/react": "^13.4.0",
18
- "@testing-library/user-event": "^13.5.0",
19
- "@types/node": "^16.18.90",
20
- "@types/react": "^18.2.67",
21
- "@types/react-date-range": "^1.4.9",
22
- "@types/react-dom": "^18.2.22",
23
- "antd": "^4.24.16",
24
- "babel-jest": "^27.4.2",
25
- "babel-loader": "^8.2.3",
26
- "babel-plugin-named-asset-import": "^0.3.8",
27
- "babel-preset-react-app": "^10.0.1",
28
- "bfj": "^7.0.2",
29
- "browserslist": "^4.18.1",
30
- "camelcase": "^6.2.1",
31
- "case-sensitive-paths-webpack-plugin": "^2.4.0",
32
- "classnames": "^2.5.1",
33
- "css-loader": "^6.5.1",
34
- "css-minimizer-webpack-plugin": "^3.2.0",
35
- "date-fns": "^2.30.0",
36
- "dotenv": "^10.0.0",
37
- "dotenv-expand": "^5.1.0",
38
- "dynamic-antd-theme": "^0.8.7",
39
- "file-loader": "^6.2.0",
40
- "fs-extra": "^10.0.0",
41
- "html-webpack-plugin": "^5.5.0",
42
- "identity-obj-proxy": "^3.0.0",
43
- "jest": "^27.4.3",
44
- "jest-resolve": "^27.4.2",
45
- "jest-watch-typeahead": "^1.0.0",
46
- "lodash": "^4.17.21",
47
- "mini-css-extract-plugin": "^2.4.5",
48
- "moment": "^2.30.1",
49
- "postcss": "^8.4.4",
50
- "postcss-flexbugs-fixes": "^5.0.2",
51
- "postcss-loader": "^6.2.1",
52
- "postcss-normalize": "^10.0.1",
53
- "postcss-preset-env": "^7.0.1",
54
- "prompts": "^2.4.2",
55
- "query-string": "^9.0.0",
56
- "ramda": "^0.29.1",
57
- "rc-motion": "^2.9.0",
58
- "react-app-polyfill": "^3.0.0",
59
- "react-date-range": "^1.4.0",
60
- "react-dev-utils": "^12.0.1",
61
- "react": "18.2",
62
- "react-dom": "18.2",
63
- "react-hook-form": "^7.51.1",
64
- "react-intl": "^6.8.9",
65
- "react-refresh": "^0.11.0",
66
- "react-router-dom": "^6.22.3",
67
- "react-slick": "^0.30.2",
68
- "resolve": "^1.20.0",
69
- "resolve-url-loader": "^4.0.0",
70
- "semver": "^7.3.5",
71
- "slick-carousel": "^1.8.1",
72
- "source-map-loader": "^3.0.0",
73
- "style-loader": "^3.3.1",
74
- "styled-components": "^5.3.11",
75
- "tailwindcss": "^3.0.2",
76
- "tailwindcss-animate": "^1.0.7",
77
- "terser-webpack-plugin": "^5.2.5",
78
- "typescript": "^4.9.5",
79
- "web-vitals": "^2.1.4",
80
- "webpack-dev-server": "^4.6.0",
81
- "webpack-manifest-plugin": "^4.0.2",
82
- "workbox-webpack-plugin": "^6.4.1"
83
- },
84
- "scripts": {
85
- "start": "node scripts/start.js",
86
- "types": "tsc --emitDeclarationOnly && tscpaths -p ./tsconfig.json -s ./src -o ./build",
87
- "build": "npx tailwindcss -i ./src/index.scss -o ./src/css/tailwind2.css && node scripts/build.js && npm run types",
88
- "build2": "node scripts/build.js && npm run types",
89
- "test": "node node scripts/test.js",
90
- "storybook": "storybook dev -p 6006",
91
- "build-storybook": "storybook build",
92
- "deploy-storybook": "gh-pages -d storybook-static -r https://github.com/nexr/neb-ui.git",
93
- "lint": "eslint ./src/**/*.{ts,tsx}",
94
- "lint:css": "stylelint --ignore-path .gitignore '**/*.scss'",
95
- "prepare": "husky install",
96
- "precommit": "lint-staged"
97
- },
98
- "lint-staged": {
99
- "**/*.{ts,tsx}": [
100
- "eslint --fix",
101
- "prettier --write"
102
- ],
103
- "**/*.{scss,css}": [
104
- "stylelint --fix",
105
- "prettier --write"
106
- ]
107
- },
108
- "eslintConfig": {
109
- "extends": [
110
- "react-app",
111
- "react-app/jest",
112
- "plugin:storybook/recommended"
113
- ],
114
- "rules": {
115
- "react-hooks/exhaustive-deps": "off",
116
- "jsx-a11y/anchor-is-valid": 0
117
- }
118
- },
119
- "browserslist": {
120
- "production": [
121
- ">0.2%",
122
- "not dead",
123
- "not op_mini all"
124
- ],
125
- "development": [
126
- "last 1 chrome version",
127
- "last 1 firefox version",
128
- "last 1 safari version"
129
- ]
130
- },
131
- "devDependencies": {
132
- "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
133
- "@chromatic-com/storybook": "^3.2.2",
134
- "@storybook/addon-actions": "^8.4.7",
135
- "@storybook/addon-essentials": "^8.4.7",
136
- "@storybook/addon-interactions": "^8.4.7",
137
- "@storybook/addon-knobs": "^8.0.1",
138
- "@storybook/addon-links": "^8.4.7",
139
- "@storybook/addon-onboarding": "^8.4.7",
140
- "@storybook/addon-webpack5-compiler-swc": "^1.0.5",
141
- "@storybook/blocks": "^8.4.7",
142
- "@storybook/preset-create-react-app": "^8.4.7",
143
- "@storybook/react": "^8.4.7",
144
- "@storybook/react-webpack5": "^8.4.7",
145
- "@storybook/test": "^8.4.7",
146
- "@types/jest": "^29.5.14",
147
- "@types/lodash": "^4.17.0",
148
- "@types/ramda": "^0.29.11",
149
- "@types/react-slick": "^0.23.13",
150
- "@types/slick-carousel": "^1.6.40",
151
- "@types/styled-components": "^5.1.34",
152
- "clean-webpack-plugin": "^4.0.0",
153
- "eslint-plugin-storybook": "^0.11.1",
154
- "@typescript-eslint/eslint-plugin": "^5.47.1",
155
- "@typescript-eslint/parser": "^5.47.1",
156
- "eslint": "^8.3.0",
157
- "eslint-config-react-app": "^7.0.1",
158
- "eslint-webpack-plugin": "^3.1.1",
159
- "eslint-config-airbnb": "^19.0.4",
160
- "eslint-config-airbnb-typescript": "^17.0.0",
161
- "eslint-config-prettier": "^8.5.0",
162
- "eslint-plugin-import": "^2.26.0",
163
- "eslint-plugin-jsx-a11y": "^6.6.1",
164
- "eslint-plugin-prettier": "^4.2.1",
165
- "eslint-plugin-react": "^7.31.11",
166
- "eslint-plugin-react-hooks": "^4.6.0",
167
- "prop-types": "^15.8.1",
168
- "sass": "^1.72.0",
169
- "sass-loader": "^16.0.3",
170
- "storybook": "^8.4.7",
171
- "ts-loader": "^9.5.1",
172
- "tscpaths": "^0.0.9",
173
- "url-loader": "^4.1.1",
174
- "webpack": "^5.94.0",
175
- "husky": "^8.0.0",
176
- "lint-staged": "^13.1.0",
177
- "prettier": "^2.8.1",
178
- "stylelint": "^14.16.0",
179
- "stylelint-config-prettier-scss": "^0.0.1",
180
- "stylelint-config-standard-scss": "^6.1.0"
181
- },
182
- "resolutions": {
183
- "types-ramda": "0.29.4",
184
- "@formatjs/fast-memoize": "2.2.2"
185
- },
186
- "overrides": {
187
- "types-ramda": "0.29.4",
188
- "@formatjs/fast-memoize": "2.2.2"
189
- },
190
- "jest": {
191
- "roots": [
192
- "<rootDir>/src"
193
- ],
194
- "collectCoverageFrom": [
195
- "src/**/*.{js,jsx,ts,tsx}",
196
- "!src/**/*.d.ts"
197
- ],
198
- "setupFiles": [
199
- "react-app-polyfill/jsdom"
200
- ],
201
- "setupFilesAfterEnv": [
202
- "<rootDir>/src/setupTests.ts"
203
- ],
204
- "testMatch": [
205
- "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
206
- "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
207
- ],
208
- "testEnvironment": "jsdom",
209
- "transform": {
210
- "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
211
- "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
212
- "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
213
- },
214
- "transformIgnorePatterns": [
215
- "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
216
- "^.+\\.module\\.(css|sass|scss)$"
217
- ],
218
- "modulePaths": [],
219
- "moduleNameMapper": {
220
- "^react-native$": "react-native-web",
221
- "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
222
- "^src/(.*)$": "<rootDir>/src/$1"
223
- },
224
- "moduleFileExtensions": [
225
- "web.js",
226
- "js",
227
- "web.ts",
228
- "ts",
229
- "web.tsx",
230
- "tsx",
231
- "json",
232
- "web.jsx",
233
- "jsx",
234
- "node"
235
- ],
236
- "watchPlugins": [
237
- "jest-watch-typeahead/filename",
238
- "jest-watch-typeahead/testname"
239
- ],
240
- "resetMocks": true
241
- },
242
- "babel": {
243
- "presets": [
244
- "react-app"
245
- ]
246
- }
247
- }
1
+ {
2
+ "name": "gov-ui-core",
3
+ "version": "1.0.0",
4
+ "main": "./build/index.js",
5
+ "module": "./build/index.js",
6
+ "types": "./build/modules.d.ts",
7
+ "repository": "https://github.com/liamyoon/gov-ui-core",
8
+ "dependencies": {
9
+ "@babel/core": "^7.16.0",
10
+ "@craco/craco": "^7.1.0",
11
+ "@mdi/font": "^5.9.55",
12
+ "@mdi/js": "^5.9.55",
13
+ "@mdi/react": "^1.6.1",
14
+ "@monaco-editor/react": "^4.7.0",
15
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
16
+ "@svgr/webpack": "^5.5.0",
17
+ "@testing-library/jest-dom": "^5.17.0",
18
+ "@testing-library/react": "^13.4.0",
19
+ "@testing-library/user-event": "^13.5.0",
20
+ "@types/node": "^16.18.90",
21
+ "@types/react": "^18.2.67",
22
+ "@types/react-date-range": "^1.4.9",
23
+ "@types/react-dom": "^18.2.22",
24
+ "antd": "^4.24.16",
25
+ "babel-jest": "^27.4.2",
26
+ "babel-loader": "^8.2.3",
27
+ "babel-plugin-named-asset-import": "^0.3.8",
28
+ "babel-preset-react-app": "^10.0.1",
29
+ "bfj": "^7.0.2",
30
+ "browserslist": "^4.18.1",
31
+ "camelcase": "^6.2.1",
32
+ "case-sensitive-paths-webpack-plugin": "^2.4.0",
33
+ "classnames": "^2.5.1",
34
+ "css-loader": "^6.5.1",
35
+ "css-minimizer-webpack-plugin": "^3.2.0",
36
+ "date-fns": "^2.30.0",
37
+ "dotenv": "^10.0.0",
38
+ "dotenv-expand": "^5.1.0",
39
+ "dynamic-antd-theme": "^0.8.7",
40
+ "file-loader": "^6.2.0",
41
+ "fs-extra": "^10.0.0",
42
+ "html-webpack-plugin": "^5.5.0",
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
+ "lodash": "^4.17.21",
48
+ "mini-css-extract-plugin": "^2.4.5",
49
+ "moment": "^2.30.1",
50
+ "postcss": "^8.4.4",
51
+ "postcss-flexbugs-fixes": "^5.0.2",
52
+ "postcss-loader": "^6.2.1",
53
+ "postcss-normalize": "^10.0.1",
54
+ "postcss-preset-env": "^7.0.1",
55
+ "prompts": "^2.4.2",
56
+ "query-string": "^9.0.0",
57
+ "ramda": "^0.29.1",
58
+ "rc-motion": "^2.9.0",
59
+ "react": "18.2",
60
+ "react-app-polyfill": "^3.0.0",
61
+ "react-date-range": "^1.4.0",
62
+ "react-dev-utils": "^12.0.1",
63
+ "react-dom": "18.2",
64
+ "react-hook-form": "^7.51.1",
65
+ "react-intl": "^6.8.9",
66
+ "react-refresh": "^0.11.0",
67
+ "react-router-dom": "^6.22.3",
68
+ "react-slick": "^0.30.2",
69
+ "react-spring": "^9.7.5",
70
+ "react-toastify": "^11.0.3",
71
+ "react-use-gesture": "^9.1.3",
72
+ "resolve": "^1.20.0",
73
+ "resolve-url-loader": "^4.0.0",
74
+ "semver": "^7.3.5",
75
+ "slick-carousel": "^1.8.1",
76
+ "source-map-loader": "^3.0.0",
77
+ "style-loader": "^3.3.1",
78
+ "styled-components": "^5.3.11",
79
+ "tailwindcss": "^3.0.2",
80
+ "tailwindcss-animate": "^1.0.7",
81
+ "terser-webpack-plugin": "^5.2.5",
82
+ "typescript": "^4.9.5",
83
+ "web-vitals": "^2.1.4",
84
+ "webpack-dev-server": "^4.6.0",
85
+ "webpack-manifest-plugin": "^4.0.2",
86
+ "workbox-webpack-plugin": "^6.4.1"
87
+ },
88
+ "scripts": {
89
+ "start": "node scripts/start.js --PORT 3004",
90
+ "types": "tsc --emitDeclarationOnly && tscpaths -p ./tsconfig.json -s ./src -o ./build",
91
+ "build": "node scripts/build.js && npm run types",
92
+ "test": "node node scripts/test.js",
93
+ "storybook": "storybook dev -p 6006",
94
+ "build-storybook": "storybook build",
95
+ "deploy-storybook": "gh-pages -d storybook-static -r https://gzithub.com/nexr/neb-ui.git",
96
+ "lint": "eslint ./src/**/*.{ts,tsx}",
97
+ "lint:css": "stylelint --ignore-path .gitignore '**/*.scss'",
98
+ "prepare": "husky install",
99
+ "precommit": "lint-staged"
100
+ },
101
+ "lint-staged": {
102
+ "**/*.{ts,tsx}": [
103
+ "eslint --fix",
104
+ "prettier --write"
105
+ ],
106
+ "**/*.{scss,css}": [
107
+ "stylelint --fix",
108
+ "prettier --write"
109
+ ]
110
+ },
111
+ "eslintConfig": {
112
+ "extends": [
113
+ "react-app",
114
+ "react-app/jest",
115
+ "plugin:storybook/recommended"
116
+ ],
117
+ "rules": {
118
+ "react-hooks/exhaustive-deps": "off",
119
+ "jsx-a11y/anchor-is-valid": 0
120
+ }
121
+ },
122
+ "browserslist": {
123
+ "production": [
124
+ ">0.2%",
125
+ "not dead",
126
+ "not op_mini all"
127
+ ],
128
+ "development": [
129
+ "last 1 chrome version",
130
+ "last 1 firefox version",
131
+ "last 1 safari version"
132
+ ]
133
+ },
134
+ "devDependencies": {
135
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
136
+ "@chromatic-com/storybook": "^3.2.2",
137
+ "@storybook/addon-actions": "^8.4.7",
138
+ "@storybook/addon-essentials": "^8.4.7",
139
+ "@storybook/addon-interactions": "^8.4.7",
140
+ "@storybook/addon-knobs": "^8.0.1",
141
+ "@storybook/addon-links": "^8.4.7",
142
+ "@storybook/addon-onboarding": "^8.4.7",
143
+ "@storybook/addon-webpack5-compiler-swc": "^1.0.5",
144
+ "@storybook/blocks": "^8.4.7",
145
+ "@storybook/preset-create-react-app": "^8.4.7",
146
+ "@storybook/react": "^8.4.7",
147
+ "@storybook/react-webpack5": "^8.4.7",
148
+ "@storybook/test": "^8.4.7",
149
+ "@types/jest": "^29.5.14",
150
+ "@types/lodash": "^4.17.0",
151
+ "@types/ramda": "^0.29.11",
152
+ "@types/react-slick": "^0.23.13",
153
+ "@types/slick-carousel": "^1.6.40",
154
+ "@types/styled-components": "^5.1.34",
155
+ "@typescript-eslint/eslint-plugin": "^5.47.1",
156
+ "@typescript-eslint/parser": "^5.47.1",
157
+ "clean-webpack-plugin": "^4.0.0",
158
+ "eslint": "^8.3.0",
159
+ "eslint-config-airbnb": "^19.0.4",
160
+ "eslint-config-airbnb-typescript": "^17.0.0",
161
+ "eslint-config-prettier": "^8.5.0",
162
+ "eslint-config-react-app": "^7.0.1",
163
+ "eslint-plugin-import": "^2.26.0",
164
+ "eslint-plugin-jsx-a11y": "^6.6.1",
165
+ "eslint-plugin-prettier": "^4.2.1",
166
+ "eslint-plugin-react": "^7.31.11",
167
+ "eslint-plugin-react-hooks": "^4.6.0",
168
+ "eslint-plugin-storybook": "^0.11.1",
169
+ "eslint-webpack-plugin": "^3.1.1",
170
+ "husky": "^8.0.0",
171
+ "lint-staged": "^13.1.0",
172
+ "prettier": "^2.8.1",
173
+ "prop-types": "^15.8.1",
174
+ "sass": "^1.72.0",
175
+ "sass-loader": "^16.0.3",
176
+ "storybook": "^8.4.7",
177
+ "stylelint": "^14.16.0",
178
+ "stylelint-config-prettier-scss": "^0.0.1",
179
+ "stylelint-config-standard-scss": "^6.1.0",
180
+ "ts-loader": "^9.5.1",
181
+ "tscpaths": "^0.0.9",
182
+ "url-loader": "^4.1.1",
183
+ "webpack": "^5.94.0"
184
+ },
185
+ "resolutions": {
186
+ "types-ramda": "0.29.4",
187
+ "@formatjs/fast-memoize": "2.2.2"
188
+ },
189
+ "overrides": {
190
+ "types-ramda": "0.29.4",
191
+ "@formatjs/fast-memoize": "2.2.2"
192
+ },
193
+ "jest": {
194
+ "roots": [
195
+ "<rootDir>/src"
196
+ ],
197
+ "collectCoverageFrom": [
198
+ "src/**/*.{js,jsx,ts,tsx}",
199
+ "!src/**/*.d.ts"
200
+ ],
201
+ "setupFiles": [
202
+ "react-app-polyfill/jsdom"
203
+ ],
204
+ "setupFilesAfterEnv": [
205
+ "<rootDir>/src/setupTests.ts"
206
+ ],
207
+ "testMatch": [
208
+ "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
209
+ "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
210
+ ],
211
+ "testEnvironment": "jsdom",
212
+ "transform": {
213
+ "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
214
+ "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
215
+ "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
216
+ },
217
+ "transformIgnorePatterns": [
218
+ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
219
+ "^.+\\.module\\.(css|sass|scss)$"
220
+ ],
221
+ "modulePaths": [],
222
+ "moduleNameMapper": {
223
+ "^react-native$": "react-native-web",
224
+ "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
225
+ "^src/(.*)$": "<rootDir>/src/$1"
226
+ },
227
+ "moduleFileExtensions": [
228
+ "web.js",
229
+ "js",
230
+ "web.ts",
231
+ "ts",
232
+ "web.tsx",
233
+ "tsx",
234
+ "json",
235
+ "web.jsx",
236
+ "jsx",
237
+ "node"
238
+ ],
239
+ "watchPlugins": [
240
+ "jest-watch-typeahead/filename",
241
+ "jest-watch-typeahead/testname"
242
+ ],
243
+ "resetMocks": true
244
+ },
245
+ "babel": {
246
+ "presets": [
247
+ "react-app"
248
+ ]
249
+ }
250
+ }
package/postcss.config.js CHANGED
@@ -1,8 +1,8 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {
4
- config: './tailwind.config.js',
5
- },
6
- autoprefixer: {},
7
- },
8
- }
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {
4
+ config: './tailwind.config.js',
5
+ },
6
+ autoprefixer: {},
7
+ },
8
+ }
package/public/index.html CHANGED
@@ -1,43 +1,43 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <meta name="theme-color" content="#000000" />
8
- <meta
9
- name="description"
10
- content="Web site created using create-react-app"
11
- />
12
- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
- <!--
14
- manifest.json provides metadata used when your web app is installed on a
15
- user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16
- -->
17
- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18
- <!--
19
- Notice the use of %PUBLIC_URL% in the tags above.
20
- It will be replaced with the URL of the `public` folder during the build.
21
- Only files inside the `public` folder can be referenced from the HTML.
22
-
23
- Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24
- work correctly both with client-side routing and a non-root public URL.
25
- Learn how to configure a non-root public URL by running `npm run build`.
26
- -->
27
- <title>React App</title>
28
- </head>
29
- <body>
30
- <noscript>You need to enable JavaScript to run this app.</noscript>
31
- <div id="root"></div>
32
- <!--
33
- This HTML file is a template.
34
- If you open it directly in the browser, you will see an empty page.
35
-
36
- You can add webfonts, meta tags, or analytics to this file.
37
- The build step will place the bundled scripts into the <body> tag.
38
-
39
- To begin the development, run `npm start` or `yarn start`.
40
- To create a production bundle, use `npm run build` or `yarn build`.
41
- -->
42
- </body>
43
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+ <meta name="theme-color" content="#000000" />
8
+ <meta
9
+ name="description"
10
+ content="Web site created using create-react-app"
11
+ />
12
+ <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
+ <!--
14
+ manifest.json provides metadata used when your web app is installed on a
15
+ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16
+ -->
17
+ <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18
+ <!--
19
+ Notice the use of %PUBLIC_URL% in the tags above.
20
+ It will be replaced with the URL of the `public` folder during the build.
21
+ Only files inside the `public` folder can be referenced from the HTML.
22
+
23
+ Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24
+ work correctly both with client-side routing and a non-root public URL.
25
+ Learn how to configure a non-root public URL by running `npm run build`.
26
+ -->
27
+ <title>React App</title>
28
+ </head>
29
+ <body>
30
+ <noscript>You need to enable JavaScript to run this app.</noscript>
31
+ <div id="root"></div>
32
+ <!--
33
+ This HTML file is a template.
34
+ If you open it directly in the browser, you will see an empty page.
35
+
36
+ You can add webfonts, meta tags, or analytics to this file.
37
+ The build step will place the bundled scripts into the <body> tag.
38
+
39
+ To begin the development, run `npm start` or `yarn start`.
40
+ To create a production bundle, use `npm run build` or `yarn build`.
41
+ -->
42
+ </body>
43
+ </html>