gov-ui-core 0.2.6-beta.1 → 0.2.6-beta.11
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/.stylelintrc.json +3 -0
- package/@types/styles.d.ts +10 -0
- package/build/20d0d451f31ed3b5c15f.woff +1 -0
- package/build/39285e8af490890e2df4.otf +0 -0
- package/build/3965b6176d1ce958b445.woff +1 -0
- package/build/508d69efb37042551458.woff +1 -0
- package/build/72ba455576ce8174ffa8.otf +0 -0
- package/build/a9ba4978d441af03cd27.woff +1 -0
- 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/SwitchButton.d.ts +6 -3
- package/build/components/Button/styled.d.ts +4 -1
- package/build/components/Card/index.d.ts +12 -0
- package/build/components/Chip/constants.d.ts +9 -0
- package/build/components/Chip/index.d.ts +12 -0
- package/build/components/Input/Checkbox.d.ts +4 -1
- package/build/components/Input/Input.d.ts +1 -0
- package/build/components/Input/Radio.d.ts +3 -1
- package/build/components/Input/Select.d.ts +1 -0
- package/build/components/Input/TextArea.d.ts +3 -0
- package/build/components/Input/styled.d.ts +8 -5
- package/build/components/Menu/index.d.ts +25 -0
- package/build/components/Sliders/index.d.ts +7 -0
- package/build/components/Sliders/styled.d.ts +4 -0
- package/build/components/Table/styled.d.ts +2 -1
- 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 +11 -0
- package/build/components/Tooltips/index.d.ts +13 -0
- package/build/e65c7edcd47e3e9f5c99.otf +0 -0
- package/build/f7a8dce8dfc249d7e12b.otf +0 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/modules.d.ts +3 -3
- package/build/pages/BreadcrumbSample.d.ts +5 -0
- package/build/pages/CardSample.d.ts +5 -0
- package/build/pages/CheckboxSample.d.ts +6 -0
- package/build/pages/ChipSample.d.ts +6 -0
- package/build/pages/RadioSample.d.ts +6 -0
- package/build/pages/SlidersSample.d.ts +5 -0
- package/build/pages/TabsSample.d.ts +6 -0
- package/build/pages/TooltipsSample.d.ts +5 -0
- package/package.json +2 -2
- package/postcss.config.js +3 -1
- package/tailwind.config.js +5 -4
- package/build/1588accceb3200a24f55.svg +0 -1
- package/build/components/TailwindTest/index.d.ts +0 -6
- package/build/pages/CreateTable.d.ts +0 -20
|
@@ -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,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
5
8
|
}
|
|
6
9
|
declare const SwitchButton: React.FC<ISwitchButtonProps>;
|
|
7
10
|
export default SwitchButton;
|
|
@@ -7,5 +7,8 @@ declare const ButtonBox: import("styled-components").StyledComponent<"button", i
|
|
|
7
7
|
$loading?: boolean | undefined;
|
|
8
8
|
$buttonChildType?: string | undefined;
|
|
9
9
|
}, never>;
|
|
10
|
-
declare const SwitchBox: import("styled-components").StyledComponent<"
|
|
10
|
+
declare const SwitchBox: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
11
|
+
checked?: boolean | undefined;
|
|
12
|
+
showLabel?: boolean | undefined;
|
|
13
|
+
}, never>;
|
|
11
14
|
export { ButtonBox, SwitchBox };
|
|
@@ -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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { JSXElementConstructor, ReactElement, ReactNode, ReactPortal } from 'react';
|
|
2
|
+
interface IChipProps {
|
|
3
|
+
children?: ReactNode | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal;
|
|
4
|
+
childType?: string;
|
|
5
|
+
ctype?: 'status' | 'input' | 'filter';
|
|
6
|
+
shape?: 'square' | 'round';
|
|
7
|
+
status?: 'success' | 'error' | 'warning' | 'primary';
|
|
8
|
+
type?: 'on' | 'off';
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const Chip: React.FC<IChipProps>;
|
|
12
|
+
export default Chip;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ErrorType, OptionType } from './data';
|
|
3
|
-
export interface ICheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'name' | 'onChange'> {
|
|
3
|
+
export interface ICheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'name' | 'onChange' | 'size'> {
|
|
4
4
|
name?: string;
|
|
5
5
|
description?: React.ReactNode;
|
|
6
6
|
error?: string | ErrorType;
|
|
7
7
|
setValue?: any;
|
|
8
8
|
options?: string[] | OptionType[];
|
|
9
9
|
onChange?: (value: string[] | undefined) => void;
|
|
10
|
+
indeterminate?: boolean;
|
|
10
11
|
vertical?: boolean;
|
|
11
12
|
cRef?: React.Ref<any>;
|
|
13
|
+
type?: 'text' | 'icon';
|
|
14
|
+
size?: 'small' | 'medium';
|
|
12
15
|
}
|
|
13
16
|
export interface CheckboxRef {
|
|
14
17
|
checkAll: (reset?: boolean) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChangeHandler } from 'react-hook-form';
|
|
3
3
|
import { ErrorType, OptionType } from './data';
|
|
4
|
-
export interface IRadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'name' | 'onChange'> {
|
|
4
|
+
export interface IRadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'name' | 'onChange' | 'size'> {
|
|
5
5
|
name?: string;
|
|
6
6
|
description?: React.ReactNode;
|
|
7
7
|
error?: string | ErrorType;
|
|
@@ -11,6 +11,8 @@ export interface IRadioProps extends Omit<React.InputHTMLAttributes<HTMLInputEle
|
|
|
11
11
|
formOnChange?: ChangeHandler;
|
|
12
12
|
vertical?: boolean;
|
|
13
13
|
label?: string;
|
|
14
|
+
type?: 'text' | 'icon';
|
|
15
|
+
size?: 'small' | 'medium';
|
|
14
16
|
}
|
|
15
17
|
declare const Radio: React.ForwardRefExoticComponent<IRadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
16
18
|
export default Radio;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ChangeHandler } from 'react-hook-form';
|
|
2
3
|
import { ErrorStyle, ErrorType } from './data';
|
|
3
4
|
interface ITextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'prefix'> {
|
|
4
5
|
error?: string | ErrorType;
|
|
@@ -10,6 +11,8 @@ interface ITextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
10
11
|
rows: number;
|
|
11
12
|
description?: React.ReactNode;
|
|
12
13
|
areaStyle?: Record<string, any>;
|
|
14
|
+
size?: 'small' | 'medium';
|
|
15
|
+
formOnChange?: ChangeHandler;
|
|
13
16
|
}
|
|
14
17
|
declare const TextArea: React.ForwardRefExoticComponent<ITextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
15
18
|
export default TextArea;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
declare const ItemArea: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
|
+
type: string;
|
|
3
|
+
vertical?: boolean | undefined;
|
|
4
|
+
indeterminate?: boolean | undefined;
|
|
5
|
+
size?: "small" | "medium" | undefined;
|
|
6
|
+
}, never>;
|
|
1
7
|
declare const InputBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
8
|
error: boolean;
|
|
3
9
|
suffixWidth: number;
|
|
@@ -12,14 +18,11 @@ declare const SuffixArea: import("styled-components").StyledComponent<"div", imp
|
|
|
12
18
|
declare const SelectArea: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
13
19
|
disabled?: boolean | undefined;
|
|
14
20
|
}, never>;
|
|
15
|
-
declare const ItemArea: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
16
|
-
type: string;
|
|
17
|
-
vertical?: boolean | undefined;
|
|
18
|
-
}, never>;
|
|
19
21
|
declare const SearchArea: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
20
22
|
listHeight?: number | undefined;
|
|
21
23
|
}, never>;
|
|
22
24
|
declare const OptionItemsBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
23
25
|
isDropdownButton?: boolean | undefined;
|
|
24
26
|
}, never>;
|
|
25
|
-
|
|
27
|
+
declare const SuffixBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
28
|
+
export { InputBox, ErrorMessage, SuffixArea, SelectArea, ItemArea, SearchArea, OptionItemsBox, SuffixBox, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
type OptionItem = {
|
|
3
|
+
label?: React.ReactNode;
|
|
4
|
+
searchLabel?: string;
|
|
5
|
+
value?: any;
|
|
6
|
+
type?: string;
|
|
7
|
+
children?: OptionItem[];
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
interface IMenuProps {
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
items: OptionItem[];
|
|
13
|
+
size?: 'small' | 'large';
|
|
14
|
+
searchPlaceholder?: string;
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
search?: boolean;
|
|
17
|
+
onChange?: (values: string[]) => void;
|
|
18
|
+
value?: string | string[];
|
|
19
|
+
defaultValues?: string[];
|
|
20
|
+
}
|
|
21
|
+
export interface MenuRef {
|
|
22
|
+
searchFocus: () => void;
|
|
23
|
+
}
|
|
24
|
+
declare const Menu: React.ForwardRefExoticComponent<IMenuProps & React.RefAttributes<MenuRef>>;
|
|
25
|
+
export default Menu;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const TableBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
2
|
columnSpace?: number | undefined;
|
|
3
|
-
|
|
3
|
+
size?: string | undefined;
|
|
4
|
+
columns?: any;
|
|
4
5
|
}, never>;
|
|
5
6
|
declare const TableLoadingBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
6
7
|
isNormal?: boolean | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export type TabType = {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
value: any;
|
|
5
|
+
width?: number;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
interface ITabsProps {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
type: 'line' | 'group';
|
|
12
|
+
tabs: TabType[];
|
|
13
|
+
value?: any;
|
|
14
|
+
onChange: (value: any) => void;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
hasContentCard?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const Tabs: React.FC<ITabsProps>;
|
|
19
|
+
export default Tabs;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const TabsBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
|
+
$disabled?: boolean | undefined;
|
|
3
|
+
$type?: "line" | "group" | undefined;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const TabItem: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
6
|
+
$selected?: boolean | undefined;
|
|
7
|
+
$width?: number | undefined;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const TabContentBox: import("styled-components").StyledComponent<"section", import("styled-components").DefaultTheme, {
|
|
10
|
+
$isGroupContent?: boolean | undefined;
|
|
11
|
+
}, never>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ITooltipProps {
|
|
3
|
+
children: any;
|
|
4
|
+
type?: 'default' | 'chart' | 'rich';
|
|
5
|
+
status?: 'default' | 'primary' | 'error' | 'warning' | 'success';
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
gaugeColor?: string;
|
|
9
|
+
gaugeName?: string;
|
|
10
|
+
buttonList?: any;
|
|
11
|
+
}
|
|
12
|
+
declare const Tooltips: React.FC<ITooltipProps>;
|
|
13
|
+
export default Tooltips;
|
|
Binary file
|
|
Binary file
|
package/build/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './index.scss';
|