gov-ui-core 0.2.5 → 0.2.6-beta.10

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 (124) hide show
  1. package/.eslintrc.json +54 -0
  2. package/.husky/pre-commit +4 -0
  3. package/.prettierrc +12 -0
  4. package/.storybook/main.ts +37 -36
  5. package/.storybook/preview.tsx +27 -27
  6. package/.stylelintrc.json +16 -0
  7. package/@types/custom.d.ts +43 -43
  8. package/@types/styles.d.ts +86 -3
  9. package/README.md +46 -46
  10. package/build/20d0d451f31ed3b5c15f.woff +1 -0
  11. package/build/39285e8af490890e2df4.otf +0 -0
  12. package/build/3965b6176d1ce958b445.woff +1 -0
  13. package/build/508d69efb37042551458.woff +1 -0
  14. package/build/72ba455576ce8174ffa8.otf +0 -0
  15. package/build/{src/App.d.ts → App.d.ts} +3 -3
  16. package/build/{src/Main.d.ts → Main.d.ts} +5 -5
  17. package/build/a9ba4978d441af03cd27.woff +1 -0
  18. package/build/{src/components → components}/Button/DropdownButton.d.ts +15 -15
  19. package/build/{src/components → components}/Button/SwitchButton.d.ts +7 -7
  20. package/build/components/Button/constants.d.ts +19 -0
  21. package/build/{src/components → components}/Button/index.d.ts +11 -11
  22. package/build/{src/components → components}/Button/styled.d.ts +11 -10
  23. package/build/{src/components → components}/Calendar/CalendarNavigation.d.ts +9 -9
  24. package/build/{src/components → components}/Calendar/constants.d.ts +2 -2
  25. package/build/{src/components → components}/Calendar/index.d.ts +11 -11
  26. package/build/components/Calendar/styled.d.ts +2 -0
  27. package/build/{src/components → components}/Carousel/ArrowButton.d.ts +7 -7
  28. package/build/{src/components → components}/Carousel/index.d.ts +14 -14
  29. package/build/components/Carousel/styled.d.ts +2 -0
  30. package/build/components/Chip/constants.d.ts +9 -0
  31. package/build/components/Chip/index.d.ts +12 -0
  32. package/build/{src/components → components}/Directory/index.d.ts +32 -32
  33. package/build/{src/components → components}/Directory/styled.d.ts +6 -6
  34. package/build/{src/components → components}/EmptyBox/index.d.ts +8 -8
  35. package/build/{src/components → components}/EmptyBox/styled.d.ts +4 -4
  36. package/build/{src/components → components}/Form/Form.d.ts +21 -21
  37. package/build/{src/components → components}/Form/Group.d.ts +6 -6
  38. package/build/{src/components → components}/Form/Item.d.ts +22 -22
  39. package/build/{src/components → components}/Form/index.d.ts +14 -14
  40. package/build/{src/components → components}/Form/styled.d.ts +7 -7
  41. package/build/{src/components → components}/Header/ContentHeader.d.ts +15 -15
  42. package/build/{src/components → components}/Header/styled.d.ts +5 -5
  43. package/build/{src/components → components}/Icons/index.d.ts +14 -14
  44. package/build/{src/components → components}/Input/Checkbox.d.ts +19 -19
  45. package/build/{src/components → components}/Input/ErrorMessage.d.ts +8 -8
  46. package/build/{src/components → components}/Input/Input.d.ts +23 -23
  47. package/build/{src/components → components}/Input/InputNumber.d.ts +8 -8
  48. package/build/{src/components → components}/Input/Radio.d.ts +16 -16
  49. package/build/{src/components → components}/Input/Search.d.ts +13 -13
  50. package/build/{src/components → components}/Input/Select.d.ts +40 -39
  51. package/build/{src/components → components}/Input/TextArea.d.ts +15 -15
  52. package/build/components/Input/index.d.ts +19 -0
  53. package/build/{src/components → components}/Input/styled.d.ts +25 -25
  54. package/build/{src/components → components}/IntlText/index.d.ts +5 -5
  55. package/build/{src/components → components}/Loading/OverlayLoading.d.ts +10 -10
  56. package/build/{src/components → components}/Loading/Spinner.d.ts +9 -9
  57. package/build/{src/components → components}/Loading/styled.d.ts +10 -10
  58. package/build/{src/components → components}/Styled/mixins.d.ts +13 -13
  59. package/build/{src/components → components}/Styled/variable.d.ts +6 -6
  60. package/build/{src/components → components}/Table/AppendTable.d.ts +26 -26
  61. package/build/{src/components → components}/Table/AutoTooltip.d.ts +8 -8
  62. package/build/{src/components → components}/Table/TableBase.d.ts +16 -16
  63. package/build/{src/components → components}/Table/TableLoading.d.ts +9 -9
  64. package/build/{src/components → components}/Table/components/Pagination.d.ts +18 -18
  65. package/build/{src/components → components}/Table/components/PaginationItem.d.ts +9 -9
  66. package/build/{src/components → components}/Table/index.d.ts +27 -27
  67. package/build/{src/components → components}/Table/styled.d.ts +25 -25
  68. package/build/components/TailwindTest/index.d.ts +6 -0
  69. package/build/{src/components → components}/ThemeProvider.d.ts +16 -16
  70. package/build/e65c7edcd47e3e9f5c99.otf +0 -0
  71. package/build/f7a8dce8dfc249d7e12b.otf +0 -0
  72. package/build/globalStyle.d.ts +5 -0
  73. package/build/index.d.ts +1 -0
  74. package/build/index.js +1 -1
  75. package/build/modules.d.ts +25 -0
  76. package/build/pages/ButtonSample.d.ts +6 -0
  77. package/build/pages/ChipSample.d.ts +6 -0
  78. package/build/{src/pages → pages}/CreateTable.d.ts +20 -20
  79. package/build/{src/pages → pages}/FormSample.d.ts +5 -5
  80. package/build/pages/InputSample.d.ts +6 -0
  81. package/build/{src/pages → pages}/Sample.d.ts +5 -5
  82. package/build/{src/pages → pages}/Sample2.d.ts +5 -5
  83. package/build/{src/pages → pages}/Sample3.d.ts +5 -5
  84. package/build/{src/pages → pages}/Sample4.d.ts +5 -5
  85. package/build/{src/pages → pages}/TableSample.d.ts +5 -5
  86. package/build/pages/TailwindSample.d.ts +1 -0
  87. package/build/{src/pages → pages}/sampleData.d.ts +59 -59
  88. package/build/{src/reportWebVitals.d.ts → reportWebVitals.d.ts} +3 -3
  89. package/build/theme.d.ts +3 -0
  90. package/build/{src/utils → utils}/customState.d.ts +28 -28
  91. package/build/{src/utils → utils}/hookUtils.d.ts +16 -16
  92. package/build/{src/utils → utils}/index.d.ts +35 -35
  93. package/config/env.js +104 -104
  94. package/config/getHttpsConfig.js +66 -66
  95. package/config/jest/babelTransform.js +29 -29
  96. package/config/jest/cssTransform.js +14 -14
  97. package/config/jest/fileTransform.js +40 -40
  98. package/config/modules.js +134 -134
  99. package/config/paths.js +77 -77
  100. package/config/webpack/persistentCache/createEnvironmentHash.js +9 -9
  101. package/config/webpack.config.js +756 -756
  102. package/config/webpack.prod.config.js +91 -91
  103. package/config/webpackDevServer.config.js +127 -127
  104. package/package.json +246 -213
  105. package/postcss.config.js +8 -0
  106. package/public/index.html +43 -43
  107. package/public/manifest.json +25 -25
  108. package/public/robots.txt +3 -3
  109. package/scripts/build.js +217 -217
  110. package/scripts/start.js +154 -154
  111. package/scripts/test.js +52 -52
  112. package/tailwind.config.js +185 -0
  113. package/tsconfig.json +34 -34
  114. package/build/.storybook/main.d.ts +0 -3
  115. package/build/.storybook/preview.d.ts +0 -3
  116. package/build/src/components/Calendar/styled.d.ts +0 -2
  117. package/build/src/components/Carousel/styled.d.ts +0 -2
  118. package/build/src/components/Input/index.d.ts +0 -19
  119. package/build/src/globalStyle.d.ts +0 -5
  120. package/build/src/index.d.ts +0 -1
  121. package/build/src/modules.d.ts +0 -23
  122. package/build/src/theme.d.ts +0 -45
  123. package/doctor-storybook.log +0 -18
  124. package/migration-storybook.log +0 -98
@@ -1,2 +0,0 @@
1
- export declare const CalendarBox: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const NavigationBox: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,2 +0,0 @@
1
- export declare const CarouselBox: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const ArrowButtonArea: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,19 +0,0 @@
1
- import InputBase from '../../../components/Input/Input';
2
- import InputNumber from '../../../components/Input/InputNumber';
3
- import Search from '../../../components/Input/Search';
4
- import Select from '../../../components/Input/Select';
5
- import Checkbox from '../../../components/Input/Checkbox';
6
- import Radio from '../../../components/Input/Radio';
7
- import TextArea from '../../../components/Input/TextArea';
8
- type InputType = typeof InputBase;
9
- interface InputInterface extends InputType {
10
- Checkbox: typeof Checkbox;
11
- Number: typeof InputNumber;
12
- Radio: typeof Radio;
13
- Search: typeof Search;
14
- Select: typeof Select;
15
- TextArea: typeof TextArea;
16
- }
17
- declare const Input: InputInterface;
18
- export default Input;
19
- export { Checkbox, Input, InputNumber, Radio, Search, Select, TextArea };
@@ -1,5 +0,0 @@
1
- import type { ThemeType } from '../theme';
2
- declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{
3
- theme: ThemeType;
4
- }, import("styled-components").DefaultTheme>;
5
- export default GlobalStyle;
@@ -1 +0,0 @@
1
- export {};
@@ -1,23 +0,0 @@
1
- import Button from '../components/Button';
2
- import Carousel from '../components/Carousel';
3
- import ContentHeader from '../components/Header/ContentHeader';
4
- import Directory from '../components/Directory';
5
- import DropdownButton from '../components/Button/DropdownButton';
6
- import EmptyBox from '../components/EmptyBox';
7
- import Form from '../components/Form';
8
- import Icons from '../components/Icons';
9
- import Input from '../components/Input';
10
- import ErrorMessage from '../components/Input/ErrorMessage';
11
- import AutoTooltip from '../components/Table/AutoTooltip';
12
- import OverlayLoading from '../components/Loading/OverlayLoading';
13
- import SwitchButton from '../components/Button/SwitchButton';
14
- import Table from '../components/Table';
15
- import TableBase from '../components/Table/TableBase';
16
- import Calendar from '../components/Calendar';
17
- import IntlText from '../components/IntlText';
18
- import AppendTable from '../components/Table/AppendTable';
19
- import ThemeProvider from '../components/ThemeProvider';
20
- import { Methods } from '../components/Form';
21
- import defaultTheme from '../theme';
22
- export { AppendTable, Button, Calendar, Carousel, ContentHeader, Directory, DropdownButton, EmptyBox, Form, Icons, Input, ErrorMessage, OverlayLoading, SwitchButton, Table, TableBase, ThemeProvider, AutoTooltip, IntlText, defaultTheme, };
23
- export type { Methods, };
@@ -1,45 +0,0 @@
1
- export type ThemeType = {
2
- info?: string;
3
- info10?: string;
4
- info20?: string;
5
- success?: string;
6
- warning?: string;
7
- error?: string;
8
- errortooltip?: string;
9
- transparent?: string;
10
- black100?: string;
11
- black80?: string;
12
- black70?: string;
13
- black60?: string;
14
- black50?: string;
15
- black40?: string;
16
- black30?: string;
17
- black20?: string;
18
- black15?: string;
19
- black10?: string;
20
- black05?: string;
21
- black03?: string;
22
- white?: string;
23
- white90?: string;
24
- white80?: string;
25
- white70?: string;
26
- white60?: string;
27
- white50?: string;
28
- white40?: string;
29
- white30?: string;
30
- white20?: string;
31
- white10?: string;
32
- line?: string;
33
- primary?: string;
34
- primary90?: string;
35
- primary60?: string;
36
- primary50?: string;
37
- primary40?: string;
38
- primary20?: string;
39
- primary10?: string;
40
- primarystop1?: string;
41
- primarystop2?: string;
42
- emptyLogo?: string;
43
- };
44
- declare const theme: ThemeType;
45
- export default theme;
@@ -1,18 +0,0 @@
1
- 🩺 The doctor is checking the health of your Storybook..
2
- ╭ Incompatible packages found ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
3
- │ │
4
- │ The following packages are incompatible with Storybook 8.0.4 as they depend on different major versions of Storybook packages: │
5
- │ - @storybook/addon-knobs@7.0.2 │
6
- │ │
7
- │ │
8
- │ Please consider updating your packages or contacting the maintainers for compatibility details. │
9
- │ For more on Storybook 8 compatibility, see the linked GitHub issue: │
10
- │ https://github.com/storybookjs/storybook/issues/26031 │
11
- │ │
12
- ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
13
-
14
- You can always recheck the health of your project by running:
15
- npx storybook doctor
16
-
17
- Full logs are available in /Users/yoon/WebstormProjects/nexr/neb-ui-new/doctor-storybook.log
18
-
@@ -1,98 +0,0 @@
1
- 🔎 checking possible migrations..
2
-
3
- 🔎 found a 'upgradeStorybookRelatedDependencies' migration:
4
- ╭ Automigration detected ────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
5
- │ │
6
- │ You're upgrading to the latest version of Storybook. We recommend upgrading the following packages: │
7
- │ - @chromatic-com/storybook: 1.2.25 => 3.2.2 │
8
- │ - @storybook/addon-knobs: 7.0.2 => 8.0.1 │
9
- │ - eslint-plugin-storybook: 0.8.0 => 0.11.1 │
10
- │ │
11
- │ After upgrading, we will run the dedupe command, which could possibly have effects on dependencies that are not Storybook related. │
12
- │ see: https://docs.npmjs.com/cli/commands/npm-dedupe │
13
- │ │
14
- │ Do you want to proceed (upgrade the detected packages)? │
15
- │ │
16
- ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
17
- ? Do you want to run the 'upgradeStorybookRelatedDependencies' migration on your project? › (y/N)✔ Do you want to run the 'upgradeStorybookRelatedDependencies' migration on your project? … yes
18
- Installing dependencies...
19
-
20
- An error occurred while installing dependencies.
21
- ❌ error when running upgradeStorybookRelatedDependencies migration
22
- HandledError: Error: Command failed with exit code 1: npm install
23
- at Ar.installDependencies (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:18947:75)
24
- at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
25
- at async Object.run (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:448:541)
26
- ... 2 lines matching cause stack trace ...
27
- at async doUpgrade (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:600:1612)
28
- at async withTelemetry (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/core-server/index.cjs:35757:12)
29
- at async upgrade (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:600:2078) {
30
- handled: true,
31
- cause: Error: Command failed with exit code 1: npm install
32
- at makeError (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:18141:67)
33
- at handlePromise (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:18759:16)
34
- at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
35
- at async Ar.executeCommand (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:19205:15)
36
- at async Ar.runInstall (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:19339:5)
37
- at async Ar.installDependencies (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:18945:7)
38
- at async Object.run (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:448:541)
39
- at async runFixes (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:533:1801)
40
- at async automigrate (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:531:1625)
41
- at async doUpgrade (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:600:1612) {
42
- shortMessage: 'Command failed with exit code 1: npm install',
43
- command: 'npm install',
44
- escapedCommand: 'npm install',
45
- exitCode: 1,
46
- signal: undefined,
47
- signalDescription: undefined,
48
- stdout: undefined,
49
- stderr: undefined,
50
- cwd: '/Users/yoon/WebstormProjects/nexr/gov-ui-core',
51
- failed: true,
52
- timedOut: false,
53
- isCanceled: false,
54
- killed: false
55
- }
56
- }
57
-
58
-
59
- 🔎 found a 'autodocs-tags' migration:
60
- ╭ Automigration detected ───────────────────────────────────────────────────────────────────────────────────────────╮
61
- │ │
62
- │ The docs.autodocs setting in .storybook/main.ts is deprecated. │
63
- │ │
64
- │ Learn more: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-docsautodocs-is-deprecated │
65
- │ │
66
- │ Remove docs.autodocs and update .storybook/preview.tsx? │
67
- │ │
68
- ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
69
- ? Do you want to run the 'autodocs-tags' migration on your project? › (Y/n)✔ Do you want to run the 'autodocs-tags' migration on your project? … yes
70
- ✅ Adding "autodocs" tag to .storybook/preview.tsx
71
- ✅ Removing "docs.autodocs" from .storybook/main.ts
72
- ✅ ran autodocs-tags migration
73
- WARN An issue occurred while trying to find dependencies metadata using npm.
74
-
75
- ╭ Migration check ran with failures ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
76
- │ │
77
- │ Successful migrations: │
78
- │ │
79
- │ autodocs-tags │
80
- │ │
81
- │ Failed migrations: │
82
- │ │
83
- │ upgradeStorybookRelatedDependencies: │
84
- │ Error: Command failed with exit code 1: npm install │
85
- │ │
86
- │ You can find the full logs in /Users/yoon/WebstormProjects/nexr/gov-ui-core/migration-storybook.log │
87
- │ │
88
- │ ───────────────────────────────────────────────── │
89
- │ │
90
- │ If you'd like to run the migrations again, you can do so by running 'npx storybook automigrate' │
91
- │ │
92
- │ The automigrations try to migrate common patterns in your project, but might not contain everything needed to migrate to the latest version of Storybook. │
93
- │ │
94
- │ Please check the changelog and migration guide for manual migrations and more information: https://storybook.js.org/docs/migration-guide │
95
- │ And reach out on Discord if you need help: https://discord.gg/storybook │
96
- │ │
97
- ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
98
-