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.
- package/.eslintrc.json +54 -54
- package/.husky/pre-commit +4 -4
- package/.prettierrc +12 -12
- package/.storybook/main.ts +37 -37
- package/.storybook/preview.tsx +27 -27
- package/.stylelintrc.json +19 -16
- package/@types/custom.d.ts +43 -43
- package/@types/styles.d.ts +99 -86
- package/README.md +46 -46
- package/build/App.d.ts +3 -3
- package/build/Main.d.ts +5 -5
- package/build/components/Badge/index.d.ts +8 -0
- package/build/components/Badge/styled.d.ts +1 -0
- package/build/components/Breadcrumb/index.d.ts +6 -0
- package/build/components/Breadcrumb/styled.d.ts +2 -0
- package/build/components/Button/DropdownButton.d.ts +15 -15
- package/build/components/Button/SwitchButton.d.ts +10 -7
- package/build/components/Button/TextButton.d.ts +8 -0
- package/build/components/Button/constants.d.ts +19 -19
- package/build/components/Button/index.d.ts +11 -11
- package/build/components/Button/styled.d.ts +18 -11
- package/build/components/Calendar/CalendarNavigation.d.ts +9 -9
- package/build/components/Calendar/constants.d.ts +2 -2
- package/build/components/Calendar/index.d.ts +11 -11
- package/build/components/Calendar/styled.d.ts +2 -2
- package/build/components/Card/index.d.ts +12 -0
- package/build/components/Carousel/ArrowButton.d.ts +7 -7
- package/build/components/Carousel/index.d.ts +14 -14
- package/build/components/Carousel/styled.d.ts +2 -2
- package/build/components/Chip/constants.d.ts +11 -9
- package/build/components/Chip/index.d.ts +11 -12
- package/build/components/Directory/index.d.ts +32 -32
- package/build/components/Directory/styled.d.ts +6 -6
- package/build/components/EmptyBox/index.d.ts +8 -8
- package/build/components/EmptyBox/styled.d.ts +4 -4
- package/build/components/Form/Form.d.ts +21 -21
- package/build/components/Form/Group.d.ts +6 -6
- package/build/components/Form/Item.d.ts +27 -22
- package/build/components/Form/index.d.ts +14 -14
- package/build/components/Form/styled.d.ts +7 -7
- package/build/components/Header/ContentHeader.d.ts +15 -15
- package/build/components/Header/styled.d.ts +5 -5
- package/build/components/Icons/index.d.ts +14 -14
- package/build/components/Input/Checkbox.d.ts +22 -19
- package/build/components/Input/ErrorMessage.d.ts +8 -8
- package/build/components/Input/Input.d.ts +24 -23
- package/build/components/Input/InputNumber.d.ts +8 -8
- package/build/components/Input/Radio.d.ts +18 -16
- package/build/components/Input/Search.d.ts +13 -13
- package/build/components/Input/Select.d.ts +40 -40
- package/build/components/Input/TextArea.d.ts +18 -15
- package/build/components/Input/index.d.ts +19 -19
- package/build/components/Input/styled.d.ts +29 -25
- package/build/components/IntlText/index.d.ts +5 -5
- package/build/components/Loading/OverlayLoading.d.ts +10 -10
- package/build/components/Loading/Spinner.d.ts +9 -9
- package/build/components/Loading/styled.d.ts +10 -10
- package/build/components/Menu/index.d.ts +26 -0
- package/build/components/Modal/index.d.ts +10 -0
- package/build/components/Modal/styled.d.ts +6 -0
- package/build/components/Pannel/index.d.ts +10 -0
- package/build/components/Pannel/styled.d.ts +5 -0
- package/build/components/Progress/index.d.ts +11 -0
- package/build/components/Progress/styled.d.ts +4 -0
- package/build/components/Sliders/index.d.ts +9 -0
- package/build/components/Sliders/styled.d.ts +9 -0
- package/build/components/Styled/mixins.d.ts +13 -13
- package/build/components/Styled/variable.d.ts +6 -6
- package/build/components/Table/AppendTable.d.ts +26 -26
- package/build/components/Table/AutoTooltip.d.ts +8 -8
- package/build/components/Table/TableBase.d.ts +16 -16
- package/build/components/Table/TableLoading.d.ts +9 -9
- package/build/components/Table/components/Pagination.d.ts +18 -18
- package/build/components/Table/components/PaginationItem.d.ts +9 -9
- package/build/components/Table/index.d.ts +27 -27
- package/build/components/Table/styled.d.ts +26 -25
- package/build/components/Tabs/TabContent.d.ts +8 -0
- package/build/components/Tabs/index.d.ts +19 -0
- package/build/components/Tabs/styled.d.ts +12 -0
- package/build/components/TextBox/index.d.ts +12 -0
- package/build/components/ThemeProvider.d.ts +17 -16
- package/build/components/Toast/index.d.ts +10 -0
- package/build/components/Toast/styled.d.ts +6 -0
- package/build/components/Tooltips/index.d.ts +16 -0
- package/build/components/Tree/index.d.ts +8 -0
- package/build/globalStyle.d.ts +5 -5
- package/build/index.d.ts +2 -1
- package/build/index.js +1 -1
- package/build/modules.d.ts +31 -24
- package/build/pages/BreadcrumbSample.d.ts +5 -0
- package/build/pages/ButtonSample.d.ts +6 -6
- package/build/pages/CardSample.d.ts +5 -0
- package/build/pages/CheckboxSample.d.ts +6 -0
- package/build/pages/ChipSample.d.ts +6 -6
- package/build/pages/FormSample.d.ts +5 -5
- package/build/pages/InputSample.d.ts +6 -6
- package/build/pages/ModalSample.d.ts +5 -0
- package/build/pages/PannelSample.d.ts +5 -0
- package/build/pages/ProgressSample.d.ts +5 -0
- package/build/pages/RadioSample.d.ts +6 -0
- package/build/pages/Sample.d.ts +5 -5
- package/build/pages/Sample2.d.ts +5 -5
- package/build/pages/Sample3.d.ts +5 -5
- package/build/pages/Sample4.d.ts +5 -5
- package/build/pages/SlidersSample.d.ts +5 -0
- package/build/pages/TableSample.d.ts +5 -5
- package/build/pages/TabsSample.d.ts +6 -0
- package/build/pages/TailwindSample.d.ts +1 -1
- package/build/pages/TextBoxSample.d.ts +2 -0
- package/build/pages/ToastSample.d.ts +6 -0
- package/build/pages/TooltipsSample.d.ts +5 -0
- package/build/pages/TreeSample.d.ts +5 -0
- package/build/pages/sampleData.d.ts +59 -59
- package/build/reportWebVitals.d.ts +3 -3
- package/build/theme.d.ts +3 -3
- package/build/utils/customState.d.ts +28 -28
- package/build/utils/hookUtils.d.ts +16 -16
- package/build/utils/index.d.ts +35 -35
- package/config/env.js +104 -104
- package/config/getHttpsConfig.js +66 -66
- package/config/jest/babelTransform.js +29 -29
- package/config/jest/cssTransform.js +14 -14
- package/config/jest/fileTransform.js +40 -40
- package/config/modules.js +134 -134
- package/config/paths.js +77 -77
- package/config/webpack/persistentCache/createEnvironmentHash.js +9 -9
- package/config/webpack.config.js +756 -756
- package/config/webpack.prod.config.js +91 -91
- package/config/webpackDevServer.config.js +127 -127
- package/doctor-storybook.log +18 -0
- package/migration-storybook.log +98 -0
- package/package.json +250 -247
- package/postcss.config.js +8 -8
- package/public/index.html +43 -43
- package/public/manifest.json +25 -25
- package/public/robots.txt +3 -3
- package/scripts/build.js +217 -217
- package/scripts/start.js +154 -154
- package/scripts/test.js +52 -52
- package/tailwind.config.js +185 -185
- package/tsconfig.json +34 -34
- package/build/20d0d451f31ed3b5c15f.woff +0 -1
- package/build/39285e8af490890e2df4.otf +0 -0
- package/build/3965b6176d1ce958b445.woff +0 -1
- package/build/508d69efb37042551458.woff +0 -1
- package/build/72ba455576ce8174ffa8.otf +0 -0
- package/build/a9ba4978d441af03cd27.woff +0 -1
- package/build/e65c7edcd47e3e9f5c99.otf +0 -0
- package/build/f7a8dce8dfc249d7e12b.otf +0 -0
- package/build/pages/CreateTable.d.ts +0 -20
package/.eslintrc.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"node": true,
|
|
4
|
-
"browser": true,
|
|
5
|
-
"es2021": true
|
|
6
|
-
},
|
|
7
|
-
"extends": [
|
|
8
|
-
"eslint:recommended",
|
|
9
|
-
"plugin:react/recommended",
|
|
10
|
-
"plugin:@typescript-eslint/recommended",
|
|
11
|
-
"prettier"
|
|
12
|
-
],
|
|
13
|
-
"overrides": [
|
|
14
|
-
],
|
|
15
|
-
"parser": "@typescript-eslint/parser",
|
|
16
|
-
"parserOptions": {
|
|
17
|
-
"ecmaFeatures": {
|
|
18
|
-
"jsx": true
|
|
19
|
-
},
|
|
20
|
-
"ecmaVersion": "latest",
|
|
21
|
-
"sourceType": "module",
|
|
22
|
-
"project": "./tsconfig.json"
|
|
23
|
-
},
|
|
24
|
-
"plugins": [
|
|
25
|
-
"react",
|
|
26
|
-
"@typescript-eslint"
|
|
27
|
-
],
|
|
28
|
-
"rules": {
|
|
29
|
-
"quotes": [
|
|
30
|
-
"error",
|
|
31
|
-
"single",
|
|
32
|
-
{
|
|
33
|
-
"avoidEscape": true
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"jsx-quotes": ["error", "prefer-double"],
|
|
37
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
38
|
-
"@typescript-eslint/no-empty-interface": "off",
|
|
39
|
-
"@typescript-eslint/no-empty-function": "off",
|
|
40
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
41
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
|
42
|
-
"react/no-children-prop": "off",
|
|
43
|
-
"no-extra-boolean-cast": "off",
|
|
44
|
-
"no-constant-condition": "off"
|
|
45
|
-
},
|
|
46
|
-
"settings": {
|
|
47
|
-
"react": {
|
|
48
|
-
"version": "detect"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"ignorePatterns": [
|
|
52
|
-
"mock/**/*"
|
|
53
|
-
]
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"node": true,
|
|
4
|
+
"browser": true,
|
|
5
|
+
"es2021": true
|
|
6
|
+
},
|
|
7
|
+
"extends": [
|
|
8
|
+
"eslint:recommended",
|
|
9
|
+
"plugin:react/recommended",
|
|
10
|
+
"plugin:@typescript-eslint/recommended",
|
|
11
|
+
"prettier"
|
|
12
|
+
],
|
|
13
|
+
"overrides": [
|
|
14
|
+
],
|
|
15
|
+
"parser": "@typescript-eslint/parser",
|
|
16
|
+
"parserOptions": {
|
|
17
|
+
"ecmaFeatures": {
|
|
18
|
+
"jsx": true
|
|
19
|
+
},
|
|
20
|
+
"ecmaVersion": "latest",
|
|
21
|
+
"sourceType": "module",
|
|
22
|
+
"project": "./tsconfig.json"
|
|
23
|
+
},
|
|
24
|
+
"plugins": [
|
|
25
|
+
"react",
|
|
26
|
+
"@typescript-eslint"
|
|
27
|
+
],
|
|
28
|
+
"rules": {
|
|
29
|
+
"quotes": [
|
|
30
|
+
"error",
|
|
31
|
+
"single",
|
|
32
|
+
{
|
|
33
|
+
"avoidEscape": true
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"jsx-quotes": ["error", "prefer-double"],
|
|
37
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
38
|
+
"@typescript-eslint/no-empty-interface": "off",
|
|
39
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
40
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
41
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
42
|
+
"react/no-children-prop": "off",
|
|
43
|
+
"no-extra-boolean-cast": "off",
|
|
44
|
+
"no-constant-condition": "off"
|
|
45
|
+
},
|
|
46
|
+
"settings": {
|
|
47
|
+
"react": {
|
|
48
|
+
"version": "detect"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"ignorePatterns": [
|
|
52
|
+
"mock/**/*"
|
|
53
|
+
]
|
|
54
|
+
}
|
package/.husky/pre-commit
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
. "$(dirname -- "$0")/_/husky.sh"
|
|
3
|
-
|
|
4
|
-
yarn lint-staged
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
. "$(dirname -- "$0")/_/husky.sh"
|
|
3
|
+
|
|
4
|
+
yarn lint-staged
|
package/.prettierrc
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"printWidth": 80,
|
|
3
|
-
"tabWidth": 2,
|
|
4
|
-
"useTabs": false,
|
|
5
|
-
"semi": true,
|
|
6
|
-
"singleQuote": true,
|
|
7
|
-
"quoteProps": "consistent",
|
|
8
|
-
"trailingComma": "es5",
|
|
9
|
-
"bracketSpacing": true,
|
|
10
|
-
"arrowParens": "always",
|
|
11
|
-
"endOfLine": "lf"
|
|
12
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"printWidth": 80,
|
|
3
|
+
"tabWidth": 2,
|
|
4
|
+
"useTabs": false,
|
|
5
|
+
"semi": true,
|
|
6
|
+
"singleQuote": true,
|
|
7
|
+
"quoteProps": "consistent",
|
|
8
|
+
"trailingComma": "es5",
|
|
9
|
+
"bracketSpacing": true,
|
|
10
|
+
"arrowParens": "always",
|
|
11
|
+
"endOfLine": "lf"
|
|
12
|
+
}
|
package/.storybook/main.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import type { StorybookConfig } from '@storybook/react-webpack5';
|
|
3
|
-
import { resolve } from 'path';
|
|
4
|
-
|
|
5
|
-
const config: StorybookConfig = {
|
|
6
|
-
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
7
|
-
addons: [
|
|
8
|
-
'@storybook/addon-webpack5-compiler-swc',
|
|
9
|
-
'@storybook/addon-onboarding',
|
|
10
|
-
'@storybook/addon-essentials',
|
|
11
|
-
'@chromatic-com/storybook',
|
|
12
|
-
'@storybook/addon-interactions',
|
|
13
|
-
],
|
|
14
|
-
framework: {
|
|
15
|
-
name: '@storybook/react-webpack5',
|
|
16
|
-
options: {},
|
|
17
|
-
},
|
|
18
|
-
docs: {},
|
|
19
|
-
staticDirs: ['../public'],
|
|
20
|
-
webpackFinal: async (config) => {
|
|
21
|
-
if (config.resolve) {
|
|
22
|
-
config.resolve.alias = {
|
|
23
|
-
...config.resolve?.alias,
|
|
24
|
-
'@': resolve(__dirname, '../src'),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
if (config.module?.rules) {
|
|
28
|
-
config.module.rules.push({
|
|
29
|
-
test: /\.scss$/,
|
|
30
|
-
use: ['style-loader', 'css-loader', 'sass-loader'],
|
|
31
|
-
include: resolve(__dirname, '../'),
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return config;
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
export default config;
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { StorybookConfig } from '@storybook/react-webpack5';
|
|
3
|
+
import { resolve } from 'path';
|
|
4
|
+
|
|
5
|
+
const config: StorybookConfig = {
|
|
6
|
+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
7
|
+
addons: [
|
|
8
|
+
'@storybook/addon-webpack5-compiler-swc',
|
|
9
|
+
'@storybook/addon-onboarding',
|
|
10
|
+
'@storybook/addon-essentials',
|
|
11
|
+
'@chromatic-com/storybook',
|
|
12
|
+
'@storybook/addon-interactions',
|
|
13
|
+
],
|
|
14
|
+
framework: {
|
|
15
|
+
name: '@storybook/react-webpack5',
|
|
16
|
+
options: {},
|
|
17
|
+
},
|
|
18
|
+
docs: {},
|
|
19
|
+
staticDirs: ['../public'],
|
|
20
|
+
webpackFinal: async (config) => {
|
|
21
|
+
if (config.resolve) {
|
|
22
|
+
config.resolve.alias = {
|
|
23
|
+
...config.resolve?.alias,
|
|
24
|
+
'@': resolve(__dirname, '../src'),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
if (config.module?.rules) {
|
|
28
|
+
config.module.rules.push({
|
|
29
|
+
test: /\.scss$/,
|
|
30
|
+
use: ['style-loader', 'css-loader', 'sass-loader'],
|
|
31
|
+
include: resolve(__dirname, '../'),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return config;
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
export default config;
|
package/.storybook/preview.tsx
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Preview } from "@storybook/react";
|
|
3
|
-
import ThemeProvider from '../src/components/ThemeProvider';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const preview: Preview = {
|
|
7
|
-
parameters: {
|
|
8
|
-
controls: {
|
|
9
|
-
matchers: {
|
|
10
|
-
color: /(background|color)$/i,
|
|
11
|
-
date: /Date$/i,
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
decorators: [
|
|
17
|
-
(Story) => (
|
|
18
|
-
<ThemeProvider>
|
|
19
|
-
<Story />
|
|
20
|
-
</ThemeProvider>
|
|
21
|
-
)
|
|
22
|
-
],
|
|
23
|
-
|
|
24
|
-
tags: ['autodocs']
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default preview;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Preview } from "@storybook/react";
|
|
3
|
+
import ThemeProvider from '../src/components/ThemeProvider';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const preview: Preview = {
|
|
7
|
+
parameters: {
|
|
8
|
+
controls: {
|
|
9
|
+
matchers: {
|
|
10
|
+
color: /(background|color)$/i,
|
|
11
|
+
date: /Date$/i,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
decorators: [
|
|
17
|
+
(Story) => (
|
|
18
|
+
<ThemeProvider>
|
|
19
|
+
<Story />
|
|
20
|
+
</ThemeProvider>
|
|
21
|
+
)
|
|
22
|
+
],
|
|
23
|
+
|
|
24
|
+
tags: ['autodocs']
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default preview;
|
package/.stylelintrc.json
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["stylelint-config-standard-scss", "stylelint-config-prettier-scss", "prettier"],
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"no-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": ["stylelint-config-standard-scss", "stylelint-config-prettier-scss", "prettier"],
|
|
3
|
+
"ignoreFiles": [
|
|
4
|
+
"src/tailwind.css"
|
|
5
|
+
],
|
|
6
|
+
"rules": {
|
|
7
|
+
"at-rule-no-unknown": null,
|
|
8
|
+
"selector-class-pattern": "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
|
|
9
|
+
"keyframes-name-pattern": "/^(,[a-z][a-z0-9]*)(-[a-z0-9]+)*$/",
|
|
10
|
+
"no-descending-specificity": null,
|
|
11
|
+
"block-no-empty": null,
|
|
12
|
+
"scss/at-rule-no-unknown": [
|
|
13
|
+
true,
|
|
14
|
+
{
|
|
15
|
+
"ignoreAtRules": ["tailwind"]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}
|
package/@types/custom.d.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
declare module '*.webp' {
|
|
2
|
-
const value: any;
|
|
3
|
-
export = value;
|
|
4
|
-
}
|
|
5
|
-
declare module "*.png" {
|
|
6
|
-
const value: any;
|
|
7
|
-
export = value;
|
|
8
|
-
}
|
|
9
|
-
declare module "*.svg" {
|
|
10
|
-
const value: any;
|
|
11
|
-
export = value;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
type Merge<A, B> = {
|
|
15
|
-
[K in keyof A]: K extends keyof B ? B[K] : A[K];
|
|
16
|
-
} &
|
|
17
|
-
B;
|
|
18
|
-
|
|
19
|
-
interface PaginationType {
|
|
20
|
-
limit?: number;
|
|
21
|
-
offset?: number;
|
|
22
|
-
sort?: string[] | string;
|
|
23
|
-
keyword?: string;
|
|
24
|
-
etc?: any;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
type FilesParams = Merge<
|
|
28
|
-
PaginationType,
|
|
29
|
-
{
|
|
30
|
-
projectId?: string;
|
|
31
|
-
readingDeskId?: string;
|
|
32
|
-
fileName?: string;
|
|
33
|
-
}
|
|
34
|
-
>;
|
|
35
|
-
|
|
36
|
-
type TableState = {
|
|
37
|
-
pageSize: number;
|
|
38
|
-
currentPage: number;
|
|
39
|
-
keyword?: string;
|
|
40
|
-
sort?: string;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
type SubjectType = 'all' | 'project' | 'readingDesk' | 'file' | null;
|
|
1
|
+
declare module '*.webp' {
|
|
2
|
+
const value: any;
|
|
3
|
+
export = value;
|
|
4
|
+
}
|
|
5
|
+
declare module "*.png" {
|
|
6
|
+
const value: any;
|
|
7
|
+
export = value;
|
|
8
|
+
}
|
|
9
|
+
declare module "*.svg" {
|
|
10
|
+
const value: any;
|
|
11
|
+
export = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type Merge<A, B> = {
|
|
15
|
+
[K in keyof A]: K extends keyof B ? B[K] : A[K];
|
|
16
|
+
} &
|
|
17
|
+
B;
|
|
18
|
+
|
|
19
|
+
interface PaginationType {
|
|
20
|
+
limit?: number;
|
|
21
|
+
offset?: number;
|
|
22
|
+
sort?: string[] | string;
|
|
23
|
+
keyword?: string;
|
|
24
|
+
etc?: any;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type FilesParams = Merge<
|
|
28
|
+
PaginationType,
|
|
29
|
+
{
|
|
30
|
+
projectId?: string;
|
|
31
|
+
readingDeskId?: string;
|
|
32
|
+
fileName?: string;
|
|
33
|
+
}
|
|
34
|
+
>;
|
|
35
|
+
|
|
36
|
+
type TableState = {
|
|
37
|
+
pageSize: number;
|
|
38
|
+
currentPage: number;
|
|
39
|
+
keyword?: string;
|
|
40
|
+
sort?: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
type SubjectType = 'all' | 'project' | 'readingDesk' | 'file' | null;
|
package/@types/styles.d.ts
CHANGED
|
@@ -1,86 +1,99 @@
|
|
|
1
|
-
import 'styled-components';
|
|
2
|
-
|
|
3
|
-
declare module '*.css';
|
|
4
|
-
declare module '*.scss';
|
|
5
|
-
declare module '*.less';
|
|
6
|
-
|
|
7
|
-
declare module 'styled-components' {
|
|
8
|
-
export interface DefaultTheme {
|
|
9
|
-
info?: string;
|
|
10
|
-
info10?: string;
|
|
11
|
-
info20?: string;
|
|
12
|
-
success?: string;
|
|
13
|
-
warning?: string;
|
|
14
|
-
error?: string;
|
|
15
|
-
errortooltip?: string;
|
|
16
|
-
transparent?: string;
|
|
17
|
-
black100?: string;
|
|
18
|
-
black80?: string;
|
|
19
|
-
black70?: string;
|
|
20
|
-
black60?: string;
|
|
21
|
-
black50?: string;
|
|
22
|
-
black40?: string;
|
|
23
|
-
black30?: string;
|
|
24
|
-
black20?: string;
|
|
25
|
-
black15?: string;
|
|
26
|
-
black10?: string;
|
|
27
|
-
black07?: string;
|
|
28
|
-
black05?: string;
|
|
29
|
-
black03?: string;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
1
|
+
import 'styled-components';
|
|
2
|
+
|
|
3
|
+
declare module '*.css';
|
|
4
|
+
declare module '*.scss';
|
|
5
|
+
declare module '*.less';
|
|
6
|
+
|
|
7
|
+
declare module 'styled-components' {
|
|
8
|
+
export interface DefaultTheme {
|
|
9
|
+
info?: string;
|
|
10
|
+
info10?: string;
|
|
11
|
+
info20?: string;
|
|
12
|
+
success?: string;
|
|
13
|
+
warning?: string;
|
|
14
|
+
error?: string;
|
|
15
|
+
errortooltip?: string;
|
|
16
|
+
transparent?: string;
|
|
17
|
+
black100?: string;
|
|
18
|
+
black80?: string;
|
|
19
|
+
black70?: string;
|
|
20
|
+
black60?: string;
|
|
21
|
+
black50?: string;
|
|
22
|
+
black40?: string;
|
|
23
|
+
black30?: string;
|
|
24
|
+
black20?: string;
|
|
25
|
+
black15?: string;
|
|
26
|
+
black10?: string;
|
|
27
|
+
black07?: string;
|
|
28
|
+
black05?: string;
|
|
29
|
+
black03?: string;
|
|
30
|
+
black02?: string;
|
|
31
|
+
white?: string;
|
|
32
|
+
white90?: string;
|
|
33
|
+
white80?: string;
|
|
34
|
+
white70?: string;
|
|
35
|
+
white60?: string;
|
|
36
|
+
white50?: string;
|
|
37
|
+
white40?: string;
|
|
38
|
+
white30?: string;
|
|
39
|
+
white20?: string;
|
|
40
|
+
white10?: string;
|
|
41
|
+
line?: string;
|
|
42
|
+
primary?: string;
|
|
43
|
+
primary90?: string;
|
|
44
|
+
primary60?: string;
|
|
45
|
+
primary50?: string;
|
|
46
|
+
primary40?: string;
|
|
47
|
+
primary20?: string;
|
|
48
|
+
primary10?: string;
|
|
49
|
+
primarystop1?: string;
|
|
50
|
+
primarystop2?: string;
|
|
51
|
+
emptyLogo?: string;
|
|
52
|
+
|
|
53
|
+
// new colors
|
|
54
|
+
colorPrimary?: string;
|
|
55
|
+
colorPrimary90?: string;
|
|
56
|
+
colorPrimary60?: string;
|
|
57
|
+
colorPrimary50?: string;
|
|
58
|
+
colorPrimary40?: string;
|
|
59
|
+
colorPrimary30?: string;
|
|
60
|
+
colorPrimary20?: string;
|
|
61
|
+
colorPrimary10?: string;
|
|
62
|
+
colorPrimary05?: string;
|
|
63
|
+
colorPrimaryHover?: string;
|
|
64
|
+
colorPrimaryActive?: string;
|
|
65
|
+
colorEtcLine?: string;
|
|
66
|
+
colorEtcLineDisable?: string;
|
|
67
|
+
colorEtcBG?: string;
|
|
68
|
+
colorEtcTransparent?: string;
|
|
69
|
+
colorEtcError?: string;
|
|
70
|
+
colorEtcError05?: string;
|
|
71
|
+
colorEtcError15?: string;
|
|
72
|
+
colorEtcWarning?: string;
|
|
73
|
+
colorEtcWarning05?: string;
|
|
74
|
+
colorEtcWarning15?: string;
|
|
75
|
+
colorEtcSuccess?: string;
|
|
76
|
+
colorEtcSuccess05?: string;
|
|
77
|
+
colorEtcSuccess15?: string;
|
|
78
|
+
colorEtcInfo?: string;
|
|
79
|
+
colorEtcInfo05?: string;
|
|
80
|
+
colorEtcInfo15?: string;
|
|
81
|
+
colorChart01?: string;
|
|
82
|
+
colorChart02?: string;
|
|
83
|
+
colorChart03?: string;
|
|
84
|
+
colorChart04?: string;
|
|
85
|
+
colorChart05?: string;
|
|
86
|
+
colorChart06?: string;
|
|
87
|
+
colorChart07?: string;
|
|
88
|
+
colorChart08?: string;
|
|
89
|
+
colorChart09?: string;
|
|
90
|
+
colorChart10?: string;
|
|
91
|
+
|
|
92
|
+
// box shadow
|
|
93
|
+
elevationLight01?: string;
|
|
94
|
+
elevationLight02?: string;
|
|
95
|
+
elevationLight03?: string;
|
|
96
|
+
elevationLight04?: string;
|
|
97
|
+
elevationLight05?: string;
|
|
98
|
+
}
|
|
99
|
+
}
|