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/README.md
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
# Getting Started with Create React App
|
|
2
|
-
|
|
3
|
-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
-
|
|
5
|
-
## Available Scripts
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
### `npm start`
|
|
10
|
-
|
|
11
|
-
Runs the app in the development mode.\
|
|
12
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
13
|
-
|
|
14
|
-
The page will reload if you make edits.\
|
|
15
|
-
You will also see any lint errors in the console.
|
|
16
|
-
|
|
17
|
-
### `npm test`
|
|
18
|
-
|
|
19
|
-
Launches the test runner in the interactive watch mode.\
|
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
-
|
|
22
|
-
### `npm run build`
|
|
23
|
-
|
|
24
|
-
Builds the app for production to the `build` folder.\
|
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
-
|
|
27
|
-
The build is minified and the filenames include the hashes.\
|
|
28
|
-
Your app is ready to be deployed!
|
|
29
|
-
|
|
30
|
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
-
|
|
32
|
-
### `npm run eject`
|
|
33
|
-
|
|
34
|
-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
35
|
-
|
|
36
|
-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
-
|
|
38
|
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
39
|
-
|
|
40
|
-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
41
|
-
|
|
42
|
-
## Learn More
|
|
43
|
-
|
|
44
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
-
|
|
46
|
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
1
|
+
# Getting Started with Create React App
|
|
2
|
+
|
|
3
|
+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
+
|
|
5
|
+
## Available Scripts
|
|
6
|
+
|
|
7
|
+
In the project directory, you can run:
|
|
8
|
+
|
|
9
|
+
### `npm start`
|
|
10
|
+
|
|
11
|
+
Runs the app in the development mode.\
|
|
12
|
+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
13
|
+
|
|
14
|
+
The page will reload if you make edits.\
|
|
15
|
+
You will also see any lint errors in the console.
|
|
16
|
+
|
|
17
|
+
### `npm test`
|
|
18
|
+
|
|
19
|
+
Launches the test runner in the interactive watch mode.\
|
|
20
|
+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
+
|
|
22
|
+
### `npm run build`
|
|
23
|
+
|
|
24
|
+
Builds the app for production to the `build` folder.\
|
|
25
|
+
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
+
|
|
27
|
+
The build is minified and the filenames include the hashes.\
|
|
28
|
+
Your app is ready to be deployed!
|
|
29
|
+
|
|
30
|
+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
+
|
|
32
|
+
### `npm run eject`
|
|
33
|
+
|
|
34
|
+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
35
|
+
|
|
36
|
+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
+
|
|
38
|
+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
39
|
+
|
|
40
|
+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
41
|
+
|
|
42
|
+
## Learn More
|
|
43
|
+
|
|
44
|
+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
+
|
|
46
|
+
To learn React, check out the [React documentation](https://reactjs.org/).
|
package/build/App.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import '@mdi/font/css/materialdesignicons.min.css';
|
|
2
|
-
declare function App(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default App;
|
|
1
|
+
import '@mdi/font/css/materialdesignicons.min.css';
|
|
2
|
+
declare function App(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default App;
|
package/build/Main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IMainProps {
|
|
3
|
-
}
|
|
4
|
-
declare const Main: React.FC<IMainProps>;
|
|
5
|
-
export default Main;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IMainProps {
|
|
3
|
+
}
|
|
4
|
+
declare const Main: React.FC<IMainProps>;
|
|
5
|
+
export default Main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BadgeBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const BreadcrumbBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const BreadcrumbList: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IButtonProps } from './';
|
|
3
|
-
export type OptionType = {
|
|
4
|
-
label?: React.ReactNode;
|
|
5
|
-
onClick?: (value: OptionType) => void;
|
|
6
|
-
type?: string;
|
|
7
|
-
};
|
|
8
|
-
export interface IDropdownButtonProps extends IButtonProps {
|
|
9
|
-
options: OptionType[];
|
|
10
|
-
optionSize?: 'small' | 'default' | 'medium' | 'large';
|
|
11
|
-
menuStyle?: any;
|
|
12
|
-
placement?: 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | undefined;
|
|
13
|
-
}
|
|
14
|
-
declare const DropdownButton: React.FC<IDropdownButtonProps>;
|
|
15
|
-
export default DropdownButton;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IButtonProps } from './';
|
|
3
|
+
export type OptionType = {
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
onClick?: (value: OptionType) => void;
|
|
6
|
+
type?: string;
|
|
7
|
+
};
|
|
8
|
+
export interface IDropdownButtonProps extends IButtonProps {
|
|
9
|
+
options: OptionType[];
|
|
10
|
+
optionSize?: 'small' | 'default' | 'medium' | 'large';
|
|
11
|
+
menuStyle?: any;
|
|
12
|
+
placement?: 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | undefined;
|
|
13
|
+
}
|
|
14
|
+
declare const DropdownButton: React.FC<IDropdownButtonProps>;
|
|
15
|
+
export default DropdownButton;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ISwitchButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
showLabel?: boolean;
|
|
5
|
+
showCheckIcon?: boolean;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
onChange?: (value: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const SwitchButton: React.FC<ISwitchButtonProps>;
|
|
10
|
+
export default SwitchButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { AnchorHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
interface ITextButtonProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
btype?: 'default' | 'gray';
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const TextButton: React.FC<ITextButtonProps>;
|
|
8
|
+
export default TextButton;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export declare const BUTTON_CHILD_TYPE: {
|
|
2
|
-
NORMAL: string;
|
|
3
|
-
ICON: string;
|
|
4
|
-
TEXT_LEFT_ICON: string;
|
|
5
|
-
TEXT_RIGHT_ICON: string;
|
|
6
|
-
TEXT_SIDE_ICON: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const BUTTON_TYPE: {
|
|
9
|
-
PRIMARY: string;
|
|
10
|
-
SOLID: string;
|
|
11
|
-
SOLID_SECONDARY: string;
|
|
12
|
-
GRAY: string;
|
|
13
|
-
WHITE: string;
|
|
14
|
-
TRANSPARENT: string;
|
|
15
|
-
NO_BG: string;
|
|
16
|
-
NO_BG_GRAY: string;
|
|
17
|
-
OUTLINED_GRAY: string;
|
|
18
|
-
OUTLINED: string;
|
|
19
|
-
};
|
|
1
|
+
export declare const BUTTON_CHILD_TYPE: {
|
|
2
|
+
NORMAL: string;
|
|
3
|
+
ICON: string;
|
|
4
|
+
TEXT_LEFT_ICON: string;
|
|
5
|
+
TEXT_RIGHT_ICON: string;
|
|
6
|
+
TEXT_SIDE_ICON: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const BUTTON_TYPE: {
|
|
9
|
+
PRIMARY: string;
|
|
10
|
+
SOLID: string;
|
|
11
|
+
SOLID_SECONDARY: string;
|
|
12
|
+
GRAY: string;
|
|
13
|
+
WHITE: string;
|
|
14
|
+
TRANSPARENT: string;
|
|
15
|
+
NO_BG: string;
|
|
16
|
+
NO_BG_GRAY: string;
|
|
17
|
+
OUTLINED_GRAY: string;
|
|
18
|
+
OUTLINED: string;
|
|
19
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ButtonSize, ButtonType } from './data';
|
|
3
|
-
export interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
btype?: ButtonType;
|
|
5
|
-
size?: ButtonSize;
|
|
6
|
-
active?: boolean;
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
border?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const Button: React.FC<IButtonProps>;
|
|
11
|
-
export default Button;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ButtonSize, ButtonType } from './data';
|
|
3
|
+
export interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
btype?: ButtonType;
|
|
5
|
+
size?: ButtonSize;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
border?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.FC<IButtonProps>;
|
|
11
|
+
export default Button;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
$
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
2
|
+
export declare const ButtonBox: import("styled-components").StyledComponent<"button", DefaultTheme, {
|
|
3
|
+
btype?: string | undefined;
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
active?: boolean | undefined;
|
|
7
|
+
border?: boolean | undefined;
|
|
8
|
+
$loading?: boolean | undefined;
|
|
9
|
+
$buttonChildType?: string | undefined;
|
|
10
|
+
}, never>;
|
|
11
|
+
export declare const SwitchBox: import("styled-components").StyledComponent<"button", DefaultTheme, {
|
|
12
|
+
checked?: boolean | undefined;
|
|
13
|
+
showLabel?: boolean | undefined;
|
|
14
|
+
}, never>;
|
|
15
|
+
export declare const TextButtonBox: import("styled-components").StyledComponent<"a", DefaultTheme, {
|
|
16
|
+
$type: 'default' | 'gray';
|
|
17
|
+
$disabled?: boolean | undefined;
|
|
18
|
+
}, never>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ICalendarNavigationProps {
|
|
3
|
-
focusedDate: Date;
|
|
4
|
-
changeShownDate: (value: Date | number | string, mode?: 'set' | 'setYear' | 'setMonth' | 'monthOffset') => void;
|
|
5
|
-
months: number[];
|
|
6
|
-
years: number[];
|
|
7
|
-
}
|
|
8
|
-
declare const CalendarNavigation: React.FC<ICalendarNavigationProps>;
|
|
9
|
-
export default CalendarNavigation;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ICalendarNavigationProps {
|
|
3
|
+
focusedDate: Date;
|
|
4
|
+
changeShownDate: (value: Date | number | string, mode?: 'set' | 'setYear' | 'setMonth' | 'monthOffset') => void;
|
|
5
|
+
months: number[];
|
|
6
|
+
years: number[];
|
|
7
|
+
}
|
|
8
|
+
declare const CalendarNavigation: React.FC<ICalendarNavigationProps>;
|
|
9
|
+
export default CalendarNavigation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DEFAULT_MIN_YEAR = 2017;
|
|
2
|
-
export declare const MONTHS_SIZE = 12;
|
|
1
|
+
export declare const DEFAULT_MIN_YEAR = 2017;
|
|
2
|
+
export declare const MONTHS_SIZE = 12;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'react-date-range/dist/styles.css';
|
|
3
|
-
import 'react-date-range/dist/theme/default.css';
|
|
4
|
-
interface ICalendarProps {
|
|
5
|
-
defaultValue?: Date;
|
|
6
|
-
minDate?: Date;
|
|
7
|
-
maxDate?: Date;
|
|
8
|
-
onChange: (date: Date) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const Calendar: React.FC<ICalendarProps>;
|
|
11
|
-
export default Calendar;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'react-date-range/dist/styles.css';
|
|
3
|
+
import 'react-date-range/dist/theme/default.css';
|
|
4
|
+
interface ICalendarProps {
|
|
5
|
+
defaultValue?: Date;
|
|
6
|
+
minDate?: Date;
|
|
7
|
+
maxDate?: Date;
|
|
8
|
+
onChange: (date: Date) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Calendar: React.FC<ICalendarProps>;
|
|
11
|
+
export default Calendar;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CalendarBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
export declare const NavigationBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
1
|
+
export declare const CalendarBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const NavigationBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface ICardProps {
|
|
3
|
+
title?: string | ReactNode;
|
|
4
|
+
type?: 'inside' | 'outside';
|
|
5
|
+
style?: any;
|
|
6
|
+
className?: string;
|
|
7
|
+
contentStyle?: any;
|
|
8
|
+
contentClassName?: string;
|
|
9
|
+
children?: any;
|
|
10
|
+
}
|
|
11
|
+
declare const Card: React.FC<ICardProps>;
|
|
12
|
+
export default Card;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IArrowButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
3
|
-
direction: 'left' | 'right';
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare const ArrowButton: React.FC<IArrowButtonProps>;
|
|
7
|
-
export default ArrowButton;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IArrowButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
direction: 'left' | 'right';
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const ArrowButton: React.FC<IArrowButtonProps>;
|
|
7
|
+
export default ArrowButton;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Settings } from 'react-slick';
|
|
3
|
-
import 'slick-carousel/slick/slick.css';
|
|
4
|
-
import 'slick-carousel/slick/slick-theme.css';
|
|
5
|
-
export interface ICarouselProps {
|
|
6
|
-
items?: Record<string, any>[];
|
|
7
|
-
itemSize?: number;
|
|
8
|
-
rowKey?: string;
|
|
9
|
-
dataKey?: string;
|
|
10
|
-
settings?: Settings;
|
|
11
|
-
fitWidth?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const Carousel: React.FC<ICarouselProps>;
|
|
14
|
-
export default Carousel;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Settings } from 'react-slick';
|
|
3
|
+
import 'slick-carousel/slick/slick.css';
|
|
4
|
+
import 'slick-carousel/slick/slick-theme.css';
|
|
5
|
+
export interface ICarouselProps {
|
|
6
|
+
items?: Record<string, any>[];
|
|
7
|
+
itemSize?: number;
|
|
8
|
+
rowKey?: string;
|
|
9
|
+
dataKey?: string;
|
|
10
|
+
settings?: Settings;
|
|
11
|
+
fitWidth?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const Carousel: React.FC<ICarouselProps>;
|
|
14
|
+
export default Carousel;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CarouselBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
export declare const ArrowButtonArea: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
1
|
+
export declare const CarouselBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const ArrowButtonArea: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export declare const CHIP_CHILD_TYPE: {
|
|
2
|
-
IMAGE: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
export declare const CHIP_CHILD_TYPE: {
|
|
2
|
+
IMAGE: string;
|
|
3
|
+
TEXT_LEFT_IMAGE: string;
|
|
4
|
+
TEXT_RIGHT_IMAGE: string;
|
|
5
|
+
TEXT_SIDE_IMAGE: string;
|
|
6
|
+
NORMAL: string;
|
|
7
|
+
ICON: string;
|
|
8
|
+
TEXT_LEFT_ICON: string;
|
|
9
|
+
TEXT_RIGHT_ICON: string;
|
|
10
|
+
TEXT_SIDE_ICON: string;
|
|
11
|
+
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import React, { JSXElementConstructor, ReactElement, ReactNode, ReactPortal } from 'react';
|
|
2
|
-
interface IChipProps {
|
|
3
|
-
children?: ReactNode | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export default Chip;
|
|
1
|
+
import React, { JSXElementConstructor, ReactElement, ReactNode, ReactPortal } from 'react';
|
|
2
|
+
interface IChipProps {
|
|
3
|
+
children?: ReactNode | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal;
|
|
4
|
+
ctype?: 'status' | 'input' | 'filter';
|
|
5
|
+
shape?: 'square' | 'round';
|
|
6
|
+
status?: 'success' | 'error' | 'warning' | 'primary';
|
|
7
|
+
type?: 'on' | 'off';
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Chip: React.FC<IChipProps>;
|
|
11
|
+
export default Chip;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface DataNode {
|
|
3
|
-
children?: DataNode[];
|
|
4
|
-
isLeaf?: boolean;
|
|
5
|
-
key: string | number;
|
|
6
|
-
title?: React.ReactNode;
|
|
7
|
-
selectable?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
customType?: string;
|
|
11
|
-
data?: Record<string, any>;
|
|
12
|
-
}
|
|
13
|
-
export type CustomKeysType = Record<string, 'loading' | 'loaded'>;
|
|
14
|
-
interface IDirectoryProps {
|
|
15
|
-
treeData?: DataNode[];
|
|
16
|
-
onExpand: (expandKey: Record<string, boolean>, data: DataNode) => void;
|
|
17
|
-
onSelect: (selectKey: string, data: DataNode) => Promise<void> | void;
|
|
18
|
-
selectedKey?: string;
|
|
19
|
-
expandedKeys?: Record<string, boolean>;
|
|
20
|
-
customKeys?: Record<string, 'loading' | 'loaded' | 'error'>;
|
|
21
|
-
horizontalScroll?: boolean;
|
|
22
|
-
customIcons?: {
|
|
23
|
-
[key: string]: React.ReactNode;
|
|
24
|
-
directory?: React.ReactNode;
|
|
25
|
-
file?: React.ReactNode;
|
|
26
|
-
};
|
|
27
|
-
contents?: React.ReactNode;
|
|
28
|
-
titleEllipsis?: boolean;
|
|
29
|
-
size?: 'default' | 'small';
|
|
30
|
-
}
|
|
31
|
-
declare const Directory: React.FC<IDirectoryProps>;
|
|
32
|
-
export default Directory;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DataNode {
|
|
3
|
+
children?: DataNode[];
|
|
4
|
+
isLeaf?: boolean;
|
|
5
|
+
key: string | number;
|
|
6
|
+
title?: React.ReactNode;
|
|
7
|
+
selectable?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
customType?: string;
|
|
11
|
+
data?: Record<string, any>;
|
|
12
|
+
}
|
|
13
|
+
export type CustomKeysType = Record<string, 'loading' | 'loaded'>;
|
|
14
|
+
interface IDirectoryProps {
|
|
15
|
+
treeData?: DataNode[];
|
|
16
|
+
onExpand: (expandKey: Record<string, boolean>, data: DataNode) => void;
|
|
17
|
+
onSelect: (selectKey: string, data: DataNode) => Promise<void> | void;
|
|
18
|
+
selectedKey?: string;
|
|
19
|
+
expandedKeys?: Record<string, boolean>;
|
|
20
|
+
customKeys?: Record<string, 'loading' | 'loaded' | 'error'>;
|
|
21
|
+
horizontalScroll?: boolean;
|
|
22
|
+
customIcons?: {
|
|
23
|
+
[key: string]: React.ReactNode;
|
|
24
|
+
directory?: React.ReactNode;
|
|
25
|
+
file?: React.ReactNode;
|
|
26
|
+
};
|
|
27
|
+
contents?: React.ReactNode;
|
|
28
|
+
titleEllipsis?: boolean;
|
|
29
|
+
size?: 'default' | 'small';
|
|
30
|
+
}
|
|
31
|
+
declare const Directory: React.FC<IDirectoryProps>;
|
|
32
|
+
export default Directory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const DirectoryBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
|
-
selectRowNo?: number | undefined;
|
|
3
|
-
horizontalScroll?: boolean | undefined;
|
|
4
|
-
size?: "small" | "default" | undefined;
|
|
5
|
-
}, never>;
|
|
6
|
-
export declare const EmptyDirectoryBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
1
|
+
export declare const DirectoryBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
|
+
selectRowNo?: number | undefined;
|
|
3
|
+
horizontalScroll?: boolean | undefined;
|
|
4
|
+
size?: "small" | "default" | undefined;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const EmptyDirectoryBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IEmptyItemsProps {
|
|
3
|
-
search?: boolean;
|
|
4
|
-
message?: React.ReactNode;
|
|
5
|
-
emptyLogo?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
declare const EmptyBox: React.FC<IEmptyItemsProps>;
|
|
8
|
-
export default EmptyBox;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IEmptyItemsProps {
|
|
3
|
+
search?: boolean;
|
|
4
|
+
message?: React.ReactNode;
|
|
5
|
+
emptyLogo?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const EmptyBox: React.FC<IEmptyItemsProps>;
|
|
8
|
+
export default EmptyBox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const EmptyArea: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
-
emptyLogo: React.ReactNode;
|
|
4
|
-
}, never>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const EmptyArea: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
emptyLogo: React.ReactNode;
|
|
4
|
+
}, never>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { UseFormReturn } from 'react-hook-form';
|
|
3
|
-
export interface IFormProps {
|
|
4
|
-
options?: any;
|
|
5
|
-
/** submit 동작 및 validation을 통과할 경우 실행 */
|
|
6
|
-
submit: (data: any) => void;
|
|
7
|
-
/** error 가 아닌 경우에도 공백 object({}) 반환 */
|
|
8
|
-
onError?: (errors: any, isSubmitting?: boolean) => void;
|
|
9
|
-
onValid?: (isValid: boolean) => void;
|
|
10
|
-
/** Form.Item 필수 */
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
layout?: {
|
|
13
|
-
label: number | string;
|
|
14
|
-
wrapper?: number;
|
|
15
|
-
};
|
|
16
|
-
hideAsterisk?: boolean;
|
|
17
|
-
preventEnter?: boolean;
|
|
18
|
-
formClassName?: string;
|
|
19
|
-
}
|
|
20
|
-
declare const Form: React.ForwardRefExoticComponent<IFormProps & React.RefAttributes<UseFormReturn<import("react-hook-form").FieldValues, any, undefined>>>;
|
|
21
|
-
export default Form;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
3
|
+
export interface IFormProps {
|
|
4
|
+
options?: any;
|
|
5
|
+
/** submit 동작 및 validation을 통과할 경우 실행 */
|
|
6
|
+
submit: (data: any) => void;
|
|
7
|
+
/** error 가 아닌 경우에도 공백 object({}) 반환 */
|
|
8
|
+
onError?: (errors: any, isSubmitting?: boolean) => void;
|
|
9
|
+
onValid?: (isValid: boolean) => void;
|
|
10
|
+
/** Form.Item 필수 */
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
layout?: {
|
|
13
|
+
label: number | string;
|
|
14
|
+
wrapper?: number;
|
|
15
|
+
};
|
|
16
|
+
hideAsterisk?: boolean;
|
|
17
|
+
preventEnter?: boolean;
|
|
18
|
+
formClassName?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const Form: React.ForwardRefExoticComponent<IFormProps & React.RefAttributes<UseFormReturn<import("react-hook-form").FieldValues, any, undefined>>>;
|
|
21
|
+
export default Form;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IGroupProps {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
declare const Group: React.FC<IGroupProps>;
|
|
6
|
-
export default Group;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IGroupProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
declare const Group: React.FC<IGroupProps>;
|
|
6
|
+
export default Group;
|