gov-ui-core 1.0.30 → 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.
- package/@types/styles.d.ts +4 -0
- package/build/components/Input/Select.d.ts +1 -0
- package/build/components/Modal/styled.d.ts +4 -3
- package/build/components/Slider/index.d.ts +7 -0
- package/build/components/Slider/styled.d.ts +8 -0
- package/build/components/ThemeProvider.d.ts +0 -7
- package/build/index.js +1 -1
- package/build/index.js.LICENSE.txt +48 -22
- package/build/modules.d.ts +2 -2
- package/build/pages/SelectSample.d.ts +6 -0
- package/build/pages/SliderSample.d.ts +5 -0
- package/package.json +5 -4
- package/build/components/Sliders/index.d.ts +0 -13
- package/build/components/Sliders/styled.d.ts +0 -10
- package/build/pages/SlidersSample.d.ts +0 -5
package/@types/styles.d.ts
CHANGED
|
@@ -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/
|
|
3
|
-
useModal: typeof import("antd/
|
|
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/
|
|
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;
|