gov-ui-core 0.2.6-beta.11 → 0.2.6-beta.13

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.
@@ -1,6 +1,8 @@
1
1
  export declare const CHIP_CHILD_TYPE: {
2
2
  IMAGE: string;
3
- ICON_BG: string;
3
+ TEXT_LEFT_IMAGE: string;
4
+ TEXT_RIGHT_IMAGE: string;
5
+ TEXT_SIDE_IMAGE: string;
4
6
  NORMAL: string;
5
7
  ICON: string;
6
8
  TEXT_LEFT_ICON: string;
@@ -1,7 +1,6 @@
1
1
  import React, { JSXElementConstructor, ReactElement, ReactNode, ReactPortal } from 'react';
2
2
  interface IChipProps {
3
3
  children?: ReactNode | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal;
4
- childType?: string;
5
4
  ctype?: 'status' | 'input' | 'filter';
6
5
  shape?: 'square' | 'round';
7
6
  status?: 'success' | 'error' | 'warning' | 'primary';
@@ -1,11 +1,12 @@
1
1
  import React, { ReactNode } from 'react';
2
- type OptionItem = {
2
+ export type OptionItem = {
3
3
  label?: React.ReactNode;
4
4
  searchLabel?: string;
5
5
  value?: any;
6
6
  type?: string;
7
7
  children?: OptionItem[];
8
8
  disabled?: boolean;
9
+ onClick?: () => void;
9
10
  };
10
11
  interface IMenuProps {
11
12
  children?: ReactNode;
@@ -15,7 +16,7 @@ interface IMenuProps {
15
16
  multiple?: boolean;
16
17
  search?: boolean;
17
18
  onChange?: (values: string[]) => void;
18
- value?: string | string[];
19
+ value?: string | string[] | null;
19
20
  defaultValues?: string[];
20
21
  }
21
22
  export interface MenuRef {
@@ -0,0 +1,10 @@
1
+ export interface IToastProps {
2
+ toastPosition?: string;
3
+ type?: 'default' | 'error' | 'success' | 'warning' | 'primary';
4
+ title?: string;
5
+ description?: string;
6
+ isIcon?: boolean;
7
+ isCloseBtn?: boolean;
8
+ buttonList?: any;
9
+ }
10
+ export declare const Toast: ({ type, title, description, isIcon, isCloseBtn, buttonList, toastPosition, }: IToastProps) => import("react-toastify").Id;
@@ -0,0 +1,6 @@
1
+ export declare const ToastBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
+ type?: string | undefined;
3
+ title?: string | undefined;
4
+ isIcon?: boolean | undefined;
5
+ buttonList?: boolean | undefined;
6
+ }, never>;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  export interface ITooltipProps {
3
3
  children: any;
4
4
  type?: 'default' | 'chart' | 'rich';
5
+ position?: string;
5
6
  status?: 'default' | 'primary' | 'error' | 'warning' | 'success';
6
7
  title?: string;
7
8
  description?: string;
package/build/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ import 'react-toastify/dist/ReactToastify.css';
1
2
  import './index.scss';