gov-ui-core 0.2.3 → 0.2.5
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/build/.storybook/main.d.ts +3 -0
- package/build/.storybook/preview.d.ts +3 -0
- package/build/index.js +1 -1
- package/build/{components → src/components}/Button/DropdownButton.d.ts +1 -1
- package/build/{components → src/components}/Button/index.d.ts +1 -1
- package/build/{components → src/components}/Form/Item.d.ts +1 -1
- package/build/{components → src/components}/Form/index.d.ts +3 -3
- package/build/{components → src/components}/Input/Checkbox.d.ts +1 -1
- package/build/{components → src/components}/Input/ErrorMessage.d.ts +1 -1
- package/build/{components → src/components}/Input/Input.d.ts +1 -1
- package/build/{components → src/components}/Input/InputNumber.d.ts +1 -1
- package/build/{components → src/components}/Input/Radio.d.ts +1 -1
- package/build/{components → src/components}/Input/Search.d.ts +1 -1
- package/build/{components → src/components}/Input/Select.d.ts +1 -1
- package/build/{components → src/components}/Input/TextArea.d.ts +1 -1
- package/build/src/components/Input/index.d.ts +19 -0
- package/build/{components → src/components}/Table/AppendTable.d.ts +1 -1
- package/build/{components → src/components}/Table/TableBase.d.ts +2 -2
- package/build/{components → src/components}/ThemeProvider.d.ts +1 -2
- package/build/{globalStyle.d.ts → src/globalStyle.d.ts} +1 -1
- package/build/src/modules.d.ts +23 -0
- package/package.json +2 -2
- package/tsconfig.json +1 -1
- package/build/6c2c8e3b071704be7083.eot +0 -1
- package/build/7d8da6ffb7adc47d82b7.ttf +0 -1
- package/build/8c91a6260569de8d1acc.woff +0 -1
- package/build/ceddebb81355ab5fc96e.woff2 +0 -1
- package/build/components/Input/index.d.ts +0 -19
- package/build/modules.d.ts +0 -23
- /package/build/{App.d.ts → src/App.d.ts} +0 -0
- /package/build/{Main.d.ts → src/Main.d.ts} +0 -0
- /package/build/{components → src/components}/Button/SwitchButton.d.ts +0 -0
- /package/build/{components → src/components}/Button/styled.d.ts +0 -0
- /package/build/{components → src/components}/Calendar/CalendarNavigation.d.ts +0 -0
- /package/build/{components → src/components}/Calendar/constants.d.ts +0 -0
- /package/build/{components → src/components}/Calendar/index.d.ts +0 -0
- /package/build/{components → src/components}/Calendar/styled.d.ts +0 -0
- /package/build/{components → src/components}/Carousel/ArrowButton.d.ts +0 -0
- /package/build/{components → src/components}/Carousel/index.d.ts +0 -0
- /package/build/{components → src/components}/Carousel/styled.d.ts +0 -0
- /package/build/{components → src/components}/Directory/index.d.ts +0 -0
- /package/build/{components → src/components}/Directory/styled.d.ts +0 -0
- /package/build/{components → src/components}/EmptyBox/index.d.ts +0 -0
- /package/build/{components → src/components}/EmptyBox/styled.d.ts +0 -0
- /package/build/{components → src/components}/Form/Form.d.ts +0 -0
- /package/build/{components → src/components}/Form/Group.d.ts +0 -0
- /package/build/{components → src/components}/Form/styled.d.ts +0 -0
- /package/build/{components → src/components}/Header/ContentHeader.d.ts +0 -0
- /package/build/{components → src/components}/Header/styled.d.ts +0 -0
- /package/build/{components → src/components}/Icons/index.d.ts +0 -0
- /package/build/{components → src/components}/Input/styled.d.ts +0 -0
- /package/build/{components → src/components}/IntlText/index.d.ts +0 -0
- /package/build/{components → src/components}/Loading/OverlayLoading.d.ts +0 -0
- /package/build/{components → src/components}/Loading/Spinner.d.ts +0 -0
- /package/build/{components → src/components}/Loading/styled.d.ts +0 -0
- /package/build/{components → src/components}/Styled/mixins.d.ts +0 -0
- /package/build/{components → src/components}/Styled/variable.d.ts +0 -0
- /package/build/{components → src/components}/Table/AutoTooltip.d.ts +0 -0
- /package/build/{components → src/components}/Table/TableLoading.d.ts +0 -0
- /package/build/{components → src/components}/Table/components/Pagination.d.ts +0 -0
- /package/build/{components → src/components}/Table/components/PaginationItem.d.ts +0 -0
- /package/build/{components → src/components}/Table/index.d.ts +0 -0
- /package/build/{components → src/components}/Table/styled.d.ts +0 -0
- /package/build/{index.d.ts → src/index.d.ts} +0 -0
- /package/build/{pages → src/pages}/CreateTable.d.ts +0 -0
- /package/build/{pages → src/pages}/FormSample.d.ts +0 -0
- /package/build/{pages → src/pages}/Sample.d.ts +0 -0
- /package/build/{pages → src/pages}/Sample2.d.ts +0 -0
- /package/build/{pages → src/pages}/Sample3.d.ts +0 -0
- /package/build/{pages → src/pages}/Sample4.d.ts +0 -0
- /package/build/{pages → src/pages}/TableSample.d.ts +0 -0
- /package/build/{pages → src/pages}/sampleData.d.ts +0 -0
- /package/build/{reportWebVitals.d.ts → src/reportWebVitals.d.ts} +0 -0
- /package/build/{theme.d.ts → src/theme.d.ts} +0 -0
- /package/build/{utils → src/utils}/customState.d.ts +0 -0
- /package/build/{utils → src/utils}/hookUtils.d.ts +0 -0
- /package/build/{utils → src/utils}/index.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ButtonSize, ButtonType } from '
|
|
2
|
+
import type { ButtonSize, ButtonType } from '../../../components/Button/data';
|
|
3
3
|
export interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
4
|
btype?: ButtonType;
|
|
5
5
|
size?: ButtonSize;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RegisterOptions } from 'react-hook-form/dist/types/validator';
|
|
3
|
-
import { ErrorStyle } from '
|
|
3
|
+
import { ErrorStyle } from '../../../components/Input/data';
|
|
4
4
|
import { FieldErrors } from 'react-hook-form/dist/types/errors';
|
|
5
5
|
import { Control, FieldValues } from "react-hook-form";
|
|
6
6
|
interface IItemProps<T extends FieldValues> extends Omit<React.ComponentPropsWithoutRef<'div'>, 'prefix'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import FormProvider from '
|
|
2
|
-
import Item from '
|
|
3
|
-
import Group from '
|
|
1
|
+
import FormProvider from '../../../components/Form/Form';
|
|
2
|
+
import Item from '../../../components/Form/Item';
|
|
3
|
+
import Group from '../../../components/Form/Group';
|
|
4
4
|
import { UseFormReturn } from 'react-hook-form';
|
|
5
5
|
type FormType = typeof FormProvider;
|
|
6
6
|
interface FormInterface extends FormType {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ErrorType, OptionType } from '
|
|
2
|
+
import { ErrorType, OptionType } from '../../../components/Input/data';
|
|
3
3
|
export interface ICheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'name' | 'onChange'> {
|
|
4
4
|
name?: string;
|
|
5
5
|
description?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ErrorType, ErrorStyle } from '
|
|
2
|
+
import { ErrorType, ErrorStyle } from '../../../components/Input/data';
|
|
3
3
|
import { ChangeHandler } from 'react-hook-form';
|
|
4
4
|
export interface IInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'size'> {
|
|
5
5
|
error?: string | ErrorType | boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChangeHandler } from 'react-hook-form';
|
|
3
|
-
import { ErrorType, OptionType } from '
|
|
3
|
+
import { ErrorType, OptionType } from '../../../components/Input/data';
|
|
4
4
|
export interface IRadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'name' | 'onChange'> {
|
|
5
5
|
name?: string;
|
|
6
6
|
description?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ChangeEventHandler } from 'react';
|
|
2
|
-
import { IInputProps } from '
|
|
2
|
+
import { IInputProps } from '../../../components/Input/Input';
|
|
3
3
|
import { ChangeHandler } from 'react-hook-form';
|
|
4
4
|
interface ISearchProps extends IInputProps {
|
|
5
5
|
onClear?: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChangeHandler } from 'react-hook-form';
|
|
3
|
-
import { ErrorStyle, ErrorType } from '
|
|
3
|
+
import { ErrorStyle, ErrorType } from '../../../components/Input/data';
|
|
4
4
|
type OptionItem = {
|
|
5
5
|
label?: React.ReactNode;
|
|
6
6
|
searchLabel?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ErrorStyle, ErrorType } from '
|
|
2
|
+
import { ErrorStyle, ErrorType } from '../../../components/Input/data';
|
|
3
3
|
interface ITextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'prefix'> {
|
|
4
4
|
error?: string | ErrorType;
|
|
5
5
|
errorStyle?: ErrorStyle;
|
|
@@ -0,0 +1,19 @@
|
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IContentHeaderProps } from '
|
|
3
|
-
import { ITableProps } from '
|
|
2
|
+
import { IContentHeaderProps } from '../../../components/Header/ContentHeader';
|
|
3
|
+
import { ITableProps } from '../../../components/Table';
|
|
4
4
|
export interface ITableBaseProps extends Omit<ITableProps, 'title' | 'dataSource'>, Omit<IContentHeaderProps, 'title'> {
|
|
5
5
|
title?: React.ReactNode;
|
|
6
6
|
loadData: (paginationState: any) => void;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ThemeType } from '
|
|
2
|
+
import { ThemeType } from '../../theme';
|
|
3
3
|
import 'antd/lib/table/style/index.css';
|
|
4
4
|
import 'antd/lib/dropdown/style/index.css';
|
|
5
5
|
import 'antd/lib/style/index.css';
|
|
6
6
|
import 'antd/lib/switch/style/index.css';
|
|
7
7
|
import 'antd/lib/spin/style/index.css';
|
|
8
8
|
import 'antd/lib/tooltip/style/index.css';
|
|
9
|
-
import '@mdi/font/css/materialdesignicons.min.css';
|
|
10
9
|
interface IThemeProviderProps {
|
|
11
10
|
theme?: ThemeType;
|
|
12
11
|
primary?: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
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, };
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gov-ui-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"module": "./build/index.js",
|
|
6
|
-
"types": "./build/modules.d.ts",
|
|
6
|
+
"types": "./build/src/modules.d.ts",
|
|
7
7
|
"repository": "https://github.com/liamyoon/gov-ui-core",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@babel/core": "^7.16.0",
|
package/tsconfig.json
CHANGED
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"types": ["@types/jest"],
|
|
30
30
|
"downlevelIteration": true
|
|
31
31
|
},
|
|
32
|
-
"include": ["@types", "src/modules.ts", "src/index.tsx", "src/react-app-env.d.ts"],
|
|
32
|
+
"include": ["@types", "src/modules.ts", "src/index.tsx", "src/react-app-env.d.ts", ".storybook/*"],
|
|
33
33
|
"exclude": ["node_modules"]
|
|
34
34
|
}
|