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.
Files changed (50) hide show
  1. package/.stylelintrc.json +3 -0
  2. package/@types/styles.d.ts +10 -0
  3. package/build/20d0d451f31ed3b5c15f.woff +1 -0
  4. package/build/39285e8af490890e2df4.otf +0 -0
  5. package/build/3965b6176d1ce958b445.woff +1 -0
  6. package/build/508d69efb37042551458.woff +1 -0
  7. package/build/72ba455576ce8174ffa8.otf +0 -0
  8. package/build/a9ba4978d441af03cd27.woff +1 -0
  9. package/build/components/Badge/index.d.ts +8 -0
  10. package/build/components/Badge/styled.d.ts +1 -0
  11. package/build/components/Breadcrumb/index.d.ts +6 -0
  12. package/build/components/Breadcrumb/styled.d.ts +2 -0
  13. package/build/components/Button/SwitchButton.d.ts +6 -3
  14. package/build/components/Button/styled.d.ts +4 -1
  15. package/build/components/Card/index.d.ts +12 -0
  16. package/build/components/Chip/constants.d.ts +9 -0
  17. package/build/components/Chip/index.d.ts +12 -0
  18. package/build/components/Input/Checkbox.d.ts +4 -1
  19. package/build/components/Input/Input.d.ts +1 -0
  20. package/build/components/Input/Radio.d.ts +3 -1
  21. package/build/components/Input/Select.d.ts +1 -0
  22. package/build/components/Input/TextArea.d.ts +3 -0
  23. package/build/components/Input/styled.d.ts +8 -5
  24. package/build/components/Menu/index.d.ts +25 -0
  25. package/build/components/Sliders/index.d.ts +7 -0
  26. package/build/components/Sliders/styled.d.ts +4 -0
  27. package/build/components/Table/styled.d.ts +2 -1
  28. package/build/components/Tabs/TabContent.d.ts +8 -0
  29. package/build/components/Tabs/index.d.ts +19 -0
  30. package/build/components/Tabs/styled.d.ts +11 -0
  31. package/build/components/Tooltips/index.d.ts +13 -0
  32. package/build/e65c7edcd47e3e9f5c99.otf +0 -0
  33. package/build/f7a8dce8dfc249d7e12b.otf +0 -0
  34. package/build/index.d.ts +1 -1
  35. package/build/index.js +1 -1
  36. package/build/modules.d.ts +3 -3
  37. package/build/pages/BreadcrumbSample.d.ts +5 -0
  38. package/build/pages/CardSample.d.ts +5 -0
  39. package/build/pages/CheckboxSample.d.ts +6 -0
  40. package/build/pages/ChipSample.d.ts +6 -0
  41. package/build/pages/RadioSample.d.ts +6 -0
  42. package/build/pages/SlidersSample.d.ts +5 -0
  43. package/build/pages/TabsSample.d.ts +6 -0
  44. package/build/pages/TooltipsSample.d.ts +5 -0
  45. package/package.json +2 -2
  46. package/postcss.config.js +3 -1
  47. package/tailwind.config.js +5 -4
  48. package/build/1588accceb3200a24f55.svg +0 -1
  49. package/build/components/TailwindTest/index.d.ts +0 -6
  50. package/build/pages/CreateTable.d.ts +0 -20
@@ -0,0 +1,8 @@
1
+ import React, { ReactNode } from 'react';
2
+ interface IBadgeProps {
3
+ children?: ReactNode;
4
+ count?: number;
5
+ dot?: boolean;
6
+ }
7
+ declare const Badge: React.FC<IBadgeProps>;
8
+ export default Badge;
@@ -0,0 +1 @@
1
+ export declare const BadgeBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IBreadcrumbProps {
3
+ menuList?: any;
4
+ }
5
+ declare const Breadcrumb: React.FC<IBreadcrumbProps>;
6
+ export default Breadcrumb;
@@ -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
- import { SwitchProps } from 'antd';
3
- export interface ISwitchButtonProps extends SwitchProps {
4
- label?: string;
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<"div", import("styled-components").DefaultTheme, {}, never>;
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,9 @@
1
+ export declare const CHIP_CHILD_TYPE: {
2
+ IMAGE: string;
3
+ ICON_BG: string;
4
+ NORMAL: string;
5
+ ICON: string;
6
+ TEXT_LEFT_ICON: string;
7
+ TEXT_RIGHT_ICON: string;
8
+ TEXT_SIDE_ICON: string;
9
+ };
@@ -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;
@@ -14,6 +14,7 @@ export interface IInputProps extends Omit<React.InputHTMLAttributes<HTMLInputEle
14
14
  isSelect?: boolean;
15
15
  active?: boolean;
16
16
  formOnChange?: ChangeHandler;
17
+ wrapClassName?: string;
17
18
  }
18
19
  /**
19
20
  * input base component
@@ -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;
@@ -7,6 +7,7 @@ type OptionItem = {
7
7
  value?: any;
8
8
  type?: string;
9
9
  children?: OptionItem[];
10
+ disabled?: boolean;
10
11
  };
11
12
  export interface ISelectProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'onChange' | 'size'> {
12
13
  description?: React.ReactNode;
@@ -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
- export { InputBox, ErrorMessage, SuffixArea, SelectArea, ItemArea, SearchArea, OptionItemsBox, };
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;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface ISlidersProps {
3
+ setCount?: any;
4
+ disabled?: boolean;
5
+ }
6
+ declare const Sliders: React.FC<ISlidersProps>;
7
+ export default Sliders;
@@ -0,0 +1,4 @@
1
+ export declare const SlidersBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
+ barPosition?: number | undefined;
3
+ disabled?: boolean | undefined;
4
+ }, never>;
@@ -1,6 +1,7 @@
1
1
  declare const TableBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
2
  columnSpace?: number | undefined;
3
- border?: boolean | undefined;
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,8 @@
1
+ import React, { ReactNode } from 'react';
2
+ interface ITabContentProps {
3
+ children?: ReactNode;
4
+ hasContentCard?: boolean;
5
+ isGroup?: boolean;
6
+ }
7
+ declare const TabContent: React.FC<ITabContentProps>;
8
+ export default TabContent;
@@ -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 './css/globals.css';
1
+ import './index.scss';