gov-ui-core 1.0.29 → 2.0.0-beta.1

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.
@@ -53,6 +53,7 @@ declare module 'styled-components' {
53
53
  // new colors
54
54
  colorPrimary?: string;
55
55
  colorPrimary90?: string;
56
+ colorPrimary70?: string;
56
57
  colorPrimary60?: string;
57
58
  colorPrimary50?: string;
58
59
  colorPrimary40?: string;
@@ -62,6 +63,9 @@ declare module 'styled-components' {
62
63
  colorPrimary05?: string;
63
64
  colorPrimaryHover?: string;
64
65
  colorPrimaryActive?: string;
66
+ colorPrimaryAdmin?: string;
67
+ colorPrimaryAdminHover?: string;
68
+ colorPrimaryAdminActive?: string;
65
69
  colorEtcLine?: string;
66
70
  colorEtcLineDisable?: string;
67
71
  colorEtcBG?: string;
@@ -31,6 +31,7 @@ export interface ISelectProps extends Omit<React.InputHTMLAttributes<HTMLInputEl
31
31
  customValue?: React.ReactNode;
32
32
  fixedOptionWidth?: boolean;
33
33
  formOnChange?: ChangeHandler;
34
+ emptyMessage?: React.ReactNode;
34
35
  }
35
36
  export type SelectRef = {
36
37
  handleOnChange: (value: any) => void;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
- export declare const ModalWrap: import("styled-components").StyledComponent<import("react").FC<import("antd").ModalProps> & import("antd/lib/modal/confirm").ModalStaticFunctions & {
3
- useModal: typeof import("antd/lib/modal/useModal").default;
2
+ export declare const ModalWrap: import("styled-components").StyledComponent<import("react").FC<import("antd").ModalProps> & import("antd/es/modal/confirm").ModalStaticFunctions & {
3
+ useModal: typeof import("antd/es/modal/useModal").default;
4
4
  destroyAll: () => void;
5
- config: typeof import("antd/lib/modal/confirm").modalGlobalConfig;
5
+ config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
6
+ _InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) => import("react").JSX.Element;
6
7
  }, import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { SliderRangeProps, SliderSingleProps } from 'antd/lib/slider';
3
+ interface ISliderProps {
4
+ type?: 'user' | 'admin';
5
+ }
6
+ declare const Slider: React.FC<ISliderProps & (SliderSingleProps | SliderRangeProps)>;
7
+ export default Slider;
@@ -0,0 +1,8 @@
1
+ export declare const SliderBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
+ $type: 'user' | 'admin';
3
+ $min?: number | undefined;
4
+ $max?: number | undefined;
5
+ }, never>;
6
+ export declare const SliderTooltipBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
7
+ $type: 'user' | 'admin';
8
+ }, never>;
@@ -1,12 +1,5 @@
1
1
  import React from 'react';
2
2
  import { DefaultTheme } from 'styled-components';
3
- import 'antd/lib/table/style/index.css';
4
- import 'antd/lib/dropdown/style/index.css';
5
- import 'antd/lib/style/index.css';
6
- import 'antd/lib/switch/style/index.css';
7
- import 'antd/lib/spin/style/index.css';
8
- import 'antd/lib/tooltip/style/index.css';
9
- import 'antd/lib/modal/style/index.css';
10
3
  import 'react-toastify/dist/ReactToastify.css';
11
4
  interface IThemeProviderProps {
12
5
  theme?: DefaultTheme;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- export interface ITooltipProps {
2
+ import { TooltipProps } from 'antd';
3
+ export interface ITooltipProps extends Omit<TooltipProps, 'align'> {
3
4
  children: any;
4
5
  type?: 'default' | 'chart' | 'rich';
5
6
  position?: string;
@@ -11,6 +12,7 @@ export interface ITooltipProps {
11
12
  buttonList?: any;
12
13
  isSlider?: boolean;
13
14
  tooltipOpen?: boolean | undefined;
15
+ align?: any;
14
16
  }
15
17
  declare const Tooltips: React.FC<ITooltipProps>;
16
18
  export default Tooltips;