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
package/scripts/start.js CHANGED
@@ -1,154 +1,154 @@
1
- 'use strict';
2
-
3
- // Do this as the first thing so that any code reading it knows the right env.
4
- process.env.BABEL_ENV = 'development';
5
- process.env.NODE_ENV = 'development';
6
-
7
- // Makes the script crash on unhandled rejections instead of silently
8
- // ignoring them. In the future, promise rejections that are not handled will
9
- // terminate the Node.js process with a non-zero exit code.
10
- process.on('unhandledRejection', err => {
11
- throw err;
12
- });
13
-
14
- // Ensure environment variables are read.
15
- require('../config/env');
16
-
17
- const fs = require('fs');
18
- const chalk = require('react-dev-utils/chalk');
19
- const webpack = require('webpack');
20
- const WebpackDevServer = require('webpack-dev-server');
21
- const clearConsole = require('react-dev-utils/clearConsole');
22
- const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles');
23
- const {
24
- choosePort,
25
- createCompiler,
26
- prepareProxy,
27
- prepareUrls,
28
- } = require('react-dev-utils/WebpackDevServerUtils');
29
- const openBrowser = require('react-dev-utils/openBrowser');
30
- const semver = require('semver');
31
- const paths = require('../config/paths');
32
- const configFactory = require('../config/webpack.config');
33
- const createDevServerConfig = require('../config/webpackDevServer.config');
34
- const getClientEnvironment = require('../config/env');
35
- const react = require(require.resolve('react', { paths: [paths.appPath] }));
36
-
37
- const env = getClientEnvironment(paths.publicUrlOrPath.slice(0, -1));
38
- const useYarn = fs.existsSync(paths.yarnLockFile);
39
- const isInteractive = process.stdout.isTTY;
40
-
41
- // Warn and crash if required files are missing
42
- if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
43
- process.exit(1);
44
- }
45
-
46
- // Tools like Cloud9 rely on this.
47
- const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 4000;
48
- const HOST = process.env.HOST || '0.0.0.0';
49
-
50
- if (process.env.HOST) {
51
- console.log(
52
- chalk.cyan(
53
- `Attempting to bind to HOST environment variable: ${chalk.yellow(
54
- chalk.bold(process.env.HOST)
55
- )}`
56
- )
57
- );
58
- console.log(
59
- `If this was unintentional, check that you haven't mistakenly set it in your shell.`
60
- );
61
- console.log(
62
- `Learn more here: ${chalk.yellow('https://cra.link/advanced-config')}`
63
- );
64
- console.log();
65
- }
66
-
67
- // We require that you explicitly set browsers and do not fall back to
68
- // browserslist defaults.
69
- const { checkBrowsers } = require('react-dev-utils/browsersHelper');
70
- checkBrowsers(paths.appPath, isInteractive)
71
- .then(() => {
72
- // We attempt to use the default port but if it is busy, we offer the user to
73
- // run on a different port. `choosePort()` Promise resolves to the next free port.
74
- return choosePort(HOST, DEFAULT_PORT);
75
- })
76
- .then(port => {
77
- if (port == null) {
78
- // We have not found a port.
79
- return;
80
- }
81
-
82
- const config = configFactory('development');
83
- const protocol = process.env.HTTPS === 'true' ? 'https' : 'http';
84
- const appName = require(paths.appPackageJson).name;
85
-
86
- const useTypeScript = fs.existsSync(paths.appTsConfig);
87
- const urls = prepareUrls(
88
- protocol,
89
- HOST,
90
- port,
91
- paths.publicUrlOrPath.slice(0, -1)
92
- );
93
- // Create a webpack compiler that is configured with custom messages.
94
- const compiler = createCompiler({
95
- appName,
96
- config,
97
- urls,
98
- useYarn,
99
- useTypeScript,
100
- webpack,
101
- });
102
- // Load proxy config
103
- const proxySetting = require(paths.appPackageJson).proxy;
104
- const proxyConfig = prepareProxy(
105
- proxySetting,
106
- paths.appPublic,
107
- paths.publicUrlOrPath
108
- );
109
- // Serve webpack assets generated by the compiler over a web server.
110
- const serverConfig = {
111
- ...createDevServerConfig(proxyConfig, urls.lanUrlForConfig),
112
- host: HOST,
113
- port,
114
- };
115
- const devServer = new WebpackDevServer(serverConfig, compiler);
116
- // Launch WebpackDevServer.
117
- devServer.startCallback(() => {
118
- if (isInteractive) {
119
- clearConsole();
120
- }
121
-
122
- if (env.raw.FAST_REFRESH && semver.lt(react.version, '16.10.0')) {
123
- console.log(
124
- chalk.yellow(
125
- `Fast Refresh requires React 16.10 or higher. You are using React ${react.version}.`
126
- )
127
- );
128
- }
129
-
130
- console.log(chalk.cyan('Starting the development server...\n'));
131
- openBrowser(urls.localUrlForBrowser);
132
- });
133
-
134
- ['SIGINT', 'SIGTERM'].forEach(function (sig) {
135
- process.on(sig, function () {
136
- devServer.close();
137
- process.exit();
138
- });
139
- });
140
-
141
- if (process.env.CI !== 'true') {
142
- // Gracefully exit when stdin ends
143
- process.stdin.on('end', function () {
144
- devServer.close();
145
- process.exit();
146
- });
147
- }
148
- })
149
- .catch(err => {
150
- if (err && err.message) {
151
- console.log(err.message);
152
- }
153
- process.exit(1);
154
- });
1
+ 'use strict';
2
+
3
+ // Do this as the first thing so that any code reading it knows the right env.
4
+ process.env.BABEL_ENV = 'development';
5
+ process.env.NODE_ENV = 'development';
6
+
7
+ // Makes the script crash on unhandled rejections instead of silently
8
+ // ignoring them. In the future, promise rejections that are not handled will
9
+ // terminate the Node.js process with a non-zero exit code.
10
+ process.on('unhandledRejection', err => {
11
+ throw err;
12
+ });
13
+
14
+ // Ensure environment variables are read.
15
+ require('../config/env');
16
+
17
+ const fs = require('fs');
18
+ const chalk = require('react-dev-utils/chalk');
19
+ const webpack = require('webpack');
20
+ const WebpackDevServer = require('webpack-dev-server');
21
+ const clearConsole = require('react-dev-utils/clearConsole');
22
+ const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles');
23
+ const {
24
+ choosePort,
25
+ createCompiler,
26
+ prepareProxy,
27
+ prepareUrls,
28
+ } = require('react-dev-utils/WebpackDevServerUtils');
29
+ const openBrowser = require('react-dev-utils/openBrowser');
30
+ const semver = require('semver');
31
+ const paths = require('../config/paths');
32
+ const configFactory = require('../config/webpack.config');
33
+ const createDevServerConfig = require('../config/webpackDevServer.config');
34
+ const getClientEnvironment = require('../config/env');
35
+ const react = require(require.resolve('react', { paths: [paths.appPath] }));
36
+
37
+ const env = getClientEnvironment(paths.publicUrlOrPath.slice(0, -1));
38
+ const useYarn = fs.existsSync(paths.yarnLockFile);
39
+ const isInteractive = process.stdout.isTTY;
40
+
41
+ // Warn and crash if required files are missing
42
+ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
43
+ process.exit(1);
44
+ }
45
+
46
+ // Tools like Cloud9 rely on this.
47
+ const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 4000;
48
+ const HOST = process.env.HOST || '0.0.0.0';
49
+
50
+ if (process.env.HOST) {
51
+ console.log(
52
+ chalk.cyan(
53
+ `Attempting to bind to HOST environment variable: ${chalk.yellow(
54
+ chalk.bold(process.env.HOST)
55
+ )}`
56
+ )
57
+ );
58
+ console.log(
59
+ `If this was unintentional, check that you haven't mistakenly set it in your shell.`
60
+ );
61
+ console.log(
62
+ `Learn more here: ${chalk.yellow('https://cra.link/advanced-config')}`
63
+ );
64
+ console.log();
65
+ }
66
+
67
+ // We require that you explicitly set browsers and do not fall back to
68
+ // browserslist defaults.
69
+ const { checkBrowsers } = require('react-dev-utils/browsersHelper');
70
+ checkBrowsers(paths.appPath, isInteractive)
71
+ .then(() => {
72
+ // We attempt to use the default port but if it is busy, we offer the user to
73
+ // run on a different port. `choosePort()` Promise resolves to the next free port.
74
+ return choosePort(HOST, DEFAULT_PORT);
75
+ })
76
+ .then(port => {
77
+ if (port == null) {
78
+ // We have not found a port.
79
+ return;
80
+ }
81
+
82
+ const config = configFactory('development');
83
+ const protocol = process.env.HTTPS === 'true' ? 'https' : 'http';
84
+ const appName = require(paths.appPackageJson).name;
85
+
86
+ const useTypeScript = fs.existsSync(paths.appTsConfig);
87
+ const urls = prepareUrls(
88
+ protocol,
89
+ HOST,
90
+ port,
91
+ paths.publicUrlOrPath.slice(0, -1)
92
+ );
93
+ // Create a webpack compiler that is configured with custom messages.
94
+ const compiler = createCompiler({
95
+ appName,
96
+ config,
97
+ urls,
98
+ useYarn,
99
+ useTypeScript,
100
+ webpack,
101
+ });
102
+ // Load proxy config
103
+ const proxySetting = require(paths.appPackageJson).proxy;
104
+ const proxyConfig = prepareProxy(
105
+ proxySetting,
106
+ paths.appPublic,
107
+ paths.publicUrlOrPath
108
+ );
109
+ // Serve webpack assets generated by the compiler over a web server.
110
+ const serverConfig = {
111
+ ...createDevServerConfig(proxyConfig, urls.lanUrlForConfig),
112
+ host: HOST,
113
+ port,
114
+ };
115
+ const devServer = new WebpackDevServer(serverConfig, compiler);
116
+ // Launch WebpackDevServer.
117
+ devServer.startCallback(() => {
118
+ if (isInteractive) {
119
+ clearConsole();
120
+ }
121
+
122
+ if (env.raw.FAST_REFRESH && semver.lt(react.version, '16.10.0')) {
123
+ console.log(
124
+ chalk.yellow(
125
+ `Fast Refresh requires React 16.10 or higher. You are using React ${react.version}.`
126
+ )
127
+ );
128
+ }
129
+
130
+ console.log(chalk.cyan('Starting the development server...\n'));
131
+ openBrowser(urls.localUrlForBrowser);
132
+ });
133
+
134
+ ['SIGINT', 'SIGTERM'].forEach(function (sig) {
135
+ process.on(sig, function () {
136
+ devServer.close();
137
+ process.exit();
138
+ });
139
+ });
140
+
141
+ if (process.env.CI !== 'true') {
142
+ // Gracefully exit when stdin ends
143
+ process.stdin.on('end', function () {
144
+ devServer.close();
145
+ process.exit();
146
+ });
147
+ }
148
+ })
149
+ .catch(err => {
150
+ if (err && err.message) {
151
+ console.log(err.message);
152
+ }
153
+ process.exit(1);
154
+ });
package/scripts/test.js CHANGED
@@ -1,52 +1,52 @@
1
- 'use strict';
2
-
3
- // Do this as the first thing so that any code reading it knows the right env.
4
- process.env.BABEL_ENV = 'test';
5
- process.env.NODE_ENV = 'test';
6
- process.env.PUBLIC_URL = '';
7
-
8
- // Makes the script crash on unhandled rejections instead of silently
9
- // ignoring them. In the future, promise rejections that are not handled will
10
- // terminate the Node.js process with a non-zero exit code.
11
- process.on('unhandledRejection', err => {
12
- throw err;
13
- });
14
-
15
- // Ensure environment variables are read.
16
- require('../config/env');
17
-
18
- const jest = require('jest');
19
- const execSync = require('child_process').execSync;
20
- let argv = process.argv.slice(2);
21
-
22
- function isInGitRepository() {
23
- try {
24
- execSync('git rev-parse --is-inside-work-tree', { stdio: 'ignore' });
25
- return true;
26
- } catch (e) {
27
- return false;
28
- }
29
- }
30
-
31
- function isInMercurialRepository() {
32
- try {
33
- execSync('hg --cwd . root', { stdio: 'ignore' });
34
- return true;
35
- } catch (e) {
36
- return false;
37
- }
38
- }
39
-
40
- // Watch unless on CI or explicitly running all tests
41
- if (
42
- !process.env.CI &&
43
- argv.indexOf('--watchAll') === -1 &&
44
- argv.indexOf('--watchAll=false') === -1
45
- ) {
46
- // https://github.com/facebook/create-react-app/issues/5210
47
- const hasSourceControl = isInGitRepository() || isInMercurialRepository();
48
- argv.push(hasSourceControl ? '--watch' : '--watchAll');
49
- }
50
-
51
-
52
- jest.run(argv);
1
+ 'use strict';
2
+
3
+ // Do this as the first thing so that any code reading it knows the right env.
4
+ process.env.BABEL_ENV = 'test';
5
+ process.env.NODE_ENV = 'test';
6
+ process.env.PUBLIC_URL = '';
7
+
8
+ // Makes the script crash on unhandled rejections instead of silently
9
+ // ignoring them. In the future, promise rejections that are not handled will
10
+ // terminate the Node.js process with a non-zero exit code.
11
+ process.on('unhandledRejection', err => {
12
+ throw err;
13
+ });
14
+
15
+ // Ensure environment variables are read.
16
+ require('../config/env');
17
+
18
+ const jest = require('jest');
19
+ const execSync = require('child_process').execSync;
20
+ let argv = process.argv.slice(2);
21
+
22
+ function isInGitRepository() {
23
+ try {
24
+ execSync('git rev-parse --is-inside-work-tree', { stdio: 'ignore' });
25
+ return true;
26
+ } catch (e) {
27
+ return false;
28
+ }
29
+ }
30
+
31
+ function isInMercurialRepository() {
32
+ try {
33
+ execSync('hg --cwd . root', { stdio: 'ignore' });
34
+ return true;
35
+ } catch (e) {
36
+ return false;
37
+ }
38
+ }
39
+
40
+ // Watch unless on CI or explicitly running all tests
41
+ if (
42
+ !process.env.CI &&
43
+ argv.indexOf('--watchAll') === -1 &&
44
+ argv.indexOf('--watchAll=false') === -1
45
+ ) {
46
+ // https://github.com/facebook/create-react-app/issues/5210
47
+ const hasSourceControl = isInGitRepository() || isInMercurialRepository();
48
+ argv.push(hasSourceControl ? '--watch' : '--watchAll');
49
+ }
50
+
51
+
52
+ jest.run(argv);
@@ -0,0 +1,185 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: [
4
+ "./pages/**/*.{js,ts,jsx,tsx}",
5
+ "./components/**/*.{js,ts,jsx,tsx}",
6
+ "./src/**/*.{js,jsx,ts,tsx}",
7
+ ],
8
+ theme: {
9
+ extend: {
10
+ screens: {
11
+ 'sm': '640px',
12
+ 'md': '768px',
13
+ 'lg': '1024px',
14
+ 'xl': '1280px',
15
+ '2xl': '1536px',
16
+ },
17
+ colors: {
18
+ 'black': {
19
+ '100': '#000000',
20
+ '80': 'rgba(0, 0, 0, 0.8)',
21
+ '60': 'rgba(0, 0, 0, 0.6)',
22
+ '40': 'rgba(0, 0, 0, 0.4)',
23
+ '20': 'rgba(0, 0, 0, 0.2)',
24
+ '10': 'rgba(0, 0, 0, 0.1)',
25
+ '05': 'rgba(0, 0, 0, 0.05)',
26
+ '02': 'rgba(0, 0, 0, 0.02)',
27
+ },
28
+ 'white': {
29
+ '100': '#FFFFFF',
30
+ '80': 'rgba(255, 255, 255, 0.8)',
31
+ '60': 'rgba(255, 255, 255, 0.6)',
32
+ '40': 'rgba(255, 255, 255, 0.4)',
33
+ '20': 'rgba(255, 255, 255, 0.2)',
34
+ '10': 'rgba(255, 255, 255, 0.1)',
35
+ '05': 'rgba(255, 255, 255, 0.05)',
36
+ '02': 'rgba(255, 255, 255, 0.02)',
37
+ },
38
+
39
+ 'primary': {
40
+ '100': '#2CBBB6',
41
+ 'hover': '#28ACA7',
42
+ 'active': '#259F9B',
43
+ '40': 'rgba(44, 187, 182, 0.4)',
44
+ '30': 'rgba(44, 187, 182, 0.3)',
45
+ '20': 'rgba(44, 187, 182, 0.2)',
46
+ '10': 'rgba(44, 187, 182, 0.1)',
47
+ },
48
+
49
+ 'chart': {
50
+ '01': '#f66',
51
+ '02': '#f93',
52
+ '03': '#ffdd29',
53
+ '04': '#b4e17a',
54
+ '05': '#23c6eb',
55
+ '06': '#49e3e6',
56
+ '07': '#27a3dd',
57
+ '08': '#ecb9f9',
58
+ '09': '#f150b6',
59
+ '10': '#f487da',
60
+ },
61
+
62
+ 'line': '#CCCCCC',
63
+ 'line-disable': '#E5E5E5',
64
+ 'bg': '#F2F2F2',
65
+ 'transparent': 'rgba(255, 255, 255, 0)',
66
+ 'error': '#EE5353',
67
+ 'error-05': 'rgba(238, 83, 83, 0.05)',
68
+ 'warning': '#FFA82E',
69
+ 'warning-05': 'rgba(255, 168, 46, 0.05)',
70
+ 'success': '#33C986',
71
+ 'success-05': 'rgba(51, 201, 134, 0.05)',
72
+ 'info': '#5DAAF7',
73
+ 'info-05': 'rgba(93, 170, 247, 0.05)',
74
+
75
+ 'facebook': '#4080FF',
76
+ 'naver': '#03C75A',
77
+ 'primary-guide1': '#00FFE0',
78
+ 'primary-guide2': '#FA00FF',
79
+
80
+ 'gradation': {
81
+ 'vertical': {
82
+ 'bg': 'linear-gradient(180deg, #b464c8 0%, #906eff 100%)'
83
+ },
84
+ 'horizon': {
85
+ 'bg': 'linear-gradient(90deg, #b464c8 0%, #906eff 100%)'
86
+ },
87
+ }
88
+ },
89
+ fontFamily: {
90
+ sans: ['Graphik', 'sans-serif'],
91
+ serif: ['Merriweather', 'serif'],
92
+ default: ['sans-serif', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto'],
93
+ NotoSans: ['NotoSans'],
94
+ NotoSansKR: ['NotoSansKR'],
95
+ NotoSansMono: ['NotoSansMono'],
96
+ },
97
+ /*dropShadow: {
98
+ 'table': ['0px 0px 4px rgba(0,0,0,0.1)', '0px 5px 10px rgba(0,0,0,0.1)'],
99
+ },
100
+ boxShadow: {
101
+ 'table': ['0px 0px 4px rgba(0,0,0,0.1)', '0px 5px 10px rgba(0,0,0,0.1)'],
102
+ 'elevation-light-01': ['0px 1px 4px 0px rgba(0, 0, 0, 0.06)', '0px 3px 10px 0px rgba(0, 0, 0, 0.15)'],
103
+ 'elevation-light-02': ['0px 2px 5px 0px rgba(0, 0, 0, 0.07)', '0px 6px 20px 0px rgba(0, 0, 0, 0.15)'],
104
+ 'elevation-light-03': ['0px 3px 6px 0px rgba(0, 0, 0, 0.08)', '0px 9px 30px 0px rgba(0, 0, 0, 0.15)'],
105
+ 'elevation-light-04': ['0px 4px 7px 0px rgba(0, 0, 0, 0.09)', '0px 12px 40px 0px rgba(0, 0, 0, 0.15)'],
106
+ 'elevation-light-05': ['0px 5px 8px 0px rgba(0, 0, 0, 0.10)', '0px 15px 50px 0px rgba(0, 0, 0, 0.15)']
107
+ },
108
+ keyframes: {
109
+ 'accordion-down': {
110
+ 'from': {
111
+ 'height': '0'
112
+ },
113
+ 'to': {
114
+ 'height': 'var(--radix-accordion-content-height)'
115
+ },
116
+ },
117
+ 'accordion-up': {
118
+ 'from': {
119
+ 'height': 'var(--radix-accordion-content-height)'
120
+ },
121
+ 'to': {
122
+ 'height': '0'
123
+ },
124
+ },
125
+ 'up-scales': {
126
+ 'from': {
127
+ 'transform': 'translateY(100vh)'
128
+ },
129
+ 'to': {
130
+ 'transform': 'translateY(0px)',
131
+ 'transition': 'all 300ms ease 0s'
132
+ },
133
+ },
134
+ 'down-scales': {
135
+ 'from': {
136
+ 'transform': 'translateY(0vh)'
137
+ },
138
+ 'to': {
139
+ 'transform': 'translateY(100px)',
140
+ 'transition': 'all 300ms ease 0s'
141
+ },
142
+ },
143
+ 'flip-up': {
144
+ '0%': {
145
+ 'transform': 'rotateX(0)',
146
+ 'transform-origin': 'top'
147
+ },
148
+ '100%': {
149
+ 'transform': 'rotateX(-90deg)',
150
+ 'transform-origin': 'top',
151
+ 'visibility': 'hidden'
152
+ },
153
+ },
154
+ 'flip-down': {
155
+ '0%': {
156
+ 'transform': 'rotateX(-90deg)',
157
+ 'transform-origin': 'top',
158
+ 'visibility': 'visible'
159
+ },
160
+ '100%': {
161
+ 'transform': 'rotateX(0)',
162
+ 'transform-origin': 'top',
163
+ },
164
+ },
165
+ },
166
+ animation: {
167
+ 'accordion-down': 'accordion-down 0.2s ease-out',
168
+ 'accordion-up': 'accordion-up 0.2s ease-out',
169
+ 'up-scale': 'up-scales 0.3s ease',
170
+ 'down-scale': '0.3s down-scales ease',
171
+ 'flip-up': {
172
+ 'animation': 'flipUp ease 0.4s both',
173
+ 'animation-direction': 'normal'
174
+ },
175
+ 'flip-down': {
176
+ 'animation': 'flipDown ease 0.4s both',
177
+ 'animation-direction': 'normal'
178
+ }
179
+ },*/
180
+ }
181
+ },
182
+ plugins: [
183
+ require("tailwindcss-animate")
184
+ ],
185
+ }
package/tsconfig.json CHANGED
@@ -1,34 +1,34 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "lib": [
5
- "dom",
6
- "dom.iterable",
7
- "esnext"
8
- ],
9
- "outDir": "build",
10
- "allowJs": true,
11
- "skipLibCheck": true,
12
- "esModuleInterop": true,
13
- "declaration": true,
14
- "allowSyntheticDefaultImports": true,
15
- "strict": true,
16
- "forceConsistentCasingInFileNames": true,
17
- "noFallthroughCasesInSwitch": true,
18
- "module": "esnext",
19
- "moduleResolution": "node",
20
- "resolveJsonModule": true,
21
- "isolatedModules": true,
22
- "noImplicitAny": false,
23
- "jsx": "react-jsx",
24
- "baseUrl": ".",
25
- "paths": {
26
- "@/*": ["./src/*"]
27
- },
28
- "typeRoots": ["./@types", "../node_modules/@types"],
29
- "types": ["@types/jest"],
30
- "downlevelIteration": true
31
- },
32
- "include": ["@types", "src/modules.ts", "src/index.tsx", "src/react-app-env.d.ts", ".storybook/*"],
33
- "exclude": ["node_modules"]
34
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "lib": [
5
+ "dom",
6
+ "dom.iterable",
7
+ "esnext"
8
+ ],
9
+ "outDir": "build",
10
+ "allowJs": true,
11
+ "skipLibCheck": true,
12
+ "esModuleInterop": true,
13
+ "declaration": true,
14
+ "allowSyntheticDefaultImports": true,
15
+ "strict": true,
16
+ "forceConsistentCasingInFileNames": true,
17
+ "noFallthroughCasesInSwitch": true,
18
+ "module": "esnext",
19
+ "moduleResolution": "node",
20
+ "resolveJsonModule": true,
21
+ "isolatedModules": true,
22
+ "noImplicitAny": false,
23
+ "jsx": "react-jsx",
24
+ "baseUrl": ".",
25
+ "paths": {
26
+ "@/*": ["./src/*"]
27
+ },
28
+ "typeRoots": ["./@types", "../node_modules/@types"],
29
+ "types": ["@types/jest"],
30
+ "downlevelIteration": true
31
+ },
32
+ "include": ["@types", "src/modules.ts", "src/index.tsx", "src/react-app-env.d.ts"],
33
+ "exclude": ["node_modules"]
34
+ }
@@ -1,3 +0,0 @@
1
- import type { StorybookConfig } from "@storybook/react-webpack5";
2
- declare const config: StorybookConfig;
3
- export default config;
@@ -1,3 +0,0 @@
1
- import type { Preview } from "@storybook/react";
2
- declare const preview: Preview;
3
- export default preview;