@univerjs/design 0.1.0-alpha.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/LICENSE +21 -0
- package/README.md +16 -0
- package/lib/cjs/index.js +2170 -0
- package/lib/cjs/locale/en-US.js +37 -0
- package/lib/cjs/locale/zh-CN.js +37 -0
- package/lib/esm/index.js +2016 -0
- package/lib/esm/locale/en-US.js +16 -0
- package/lib/esm/locale/zh-CN.js +16 -0
- package/lib/index.css +1833 -0
- package/lib/types/components/avatar/Avatar.d.ts +40 -0
- package/lib/types/components/avatar/Avatar.d.ts.map +1 -0
- package/lib/types/components/avatar/__tests__/index.spec.d.ts +2 -0
- package/lib/types/components/avatar/__tests__/index.spec.d.ts.map +1 -0
- package/lib/types/components/avatar/index.d.ts +2 -0
- package/lib/types/components/avatar/index.d.ts.map +1 -0
- package/lib/types/components/button/Button.d.ts +36 -0
- package/lib/types/components/button/Button.d.ts.map +1 -0
- package/lib/types/components/button/__tests__/index.spec.d.ts +2 -0
- package/lib/types/components/button/__tests__/index.spec.d.ts.map +1 -0
- package/lib/types/components/button/index.d.ts +2 -0
- package/lib/types/components/button/index.d.ts.map +1 -0
- package/lib/types/components/cascader-list/CascaderList.d.ts +25 -0
- package/lib/types/components/cascader-list/CascaderList.d.ts.map +1 -0
- package/lib/types/components/cascader-list/index.d.ts +2 -0
- package/lib/types/components/cascader-list/index.d.ts.map +1 -0
- package/lib/types/components/checkbox/Checkbox.d.ts +27 -0
- package/lib/types/components/checkbox/Checkbox.d.ts.map +1 -0
- package/lib/types/components/checkbox/__tests__/index.spec.d.ts +2 -0
- package/lib/types/components/checkbox/__tests__/index.spec.d.ts.map +1 -0
- package/lib/types/components/checkbox/index.d.ts +2 -0
- package/lib/types/components/checkbox/index.d.ts.map +1 -0
- package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +22 -0
- package/lib/types/components/checkbox-group/CheckboxGroup.d.ts.map +1 -0
- package/lib/types/components/checkbox-group/__tests__/index.spec.d.ts +2 -0
- package/lib/types/components/checkbox-group/__tests__/index.spec.d.ts.map +1 -0
- package/lib/types/components/checkbox-group/index.d.ts +2 -0
- package/lib/types/components/checkbox-group/index.d.ts.map +1 -0
- package/lib/types/components/color-picker/ColorPicker.d.ts +8 -0
- package/lib/types/components/color-picker/ColorPicker.d.ts.map +1 -0
- package/lib/types/components/color-picker/index.d.ts +2 -0
- package/lib/types/components/color-picker/index.d.ts.map +1 -0
- package/lib/types/components/color-picker/presets.d.ts +2 -0
- package/lib/types/components/color-picker/presets.d.ts.map +1 -0
- package/lib/types/components/config-provider/ConfigProvider.d.ts +10 -0
- package/lib/types/components/config-provider/ConfigProvider.d.ts.map +1 -0
- package/lib/types/components/config-provider/__tests__/index.spec.d.ts +2 -0
- package/lib/types/components/config-provider/__tests__/index.spec.d.ts.map +1 -0
- package/lib/types/components/config-provider/index.d.ts +2 -0
- package/lib/types/components/config-provider/index.d.ts.map +1 -0
- package/lib/types/components/confirm/Confirm.d.ts +23 -0
- package/lib/types/components/confirm/Confirm.d.ts.map +1 -0
- package/lib/types/components/confirm/index.d.ts +2 -0
- package/lib/types/components/confirm/index.d.ts.map +1 -0
- package/lib/types/components/container/Container.d.ts +17 -0
- package/lib/types/components/container/Container.d.ts.map +1 -0
- package/lib/types/components/container/__tests__/index.spec.d.ts +2 -0
- package/lib/types/components/container/__tests__/index.spec.d.ts.map +1 -0
- package/lib/types/components/container/index.d.ts +2 -0
- package/lib/types/components/container/index.d.ts.map +1 -0
- package/lib/types/components/design-token/Palette.d.ts +7 -0
- package/lib/types/components/design-token/Palette.d.ts.map +1 -0
- package/lib/types/components/dialog/Dialog.d.ts +32 -0
- package/lib/types/components/dialog/Dialog.d.ts.map +1 -0
- package/lib/types/components/dialog/index.d.ts +2 -0
- package/lib/types/components/dialog/index.d.ts.map +1 -0
- package/lib/types/components/dropdown/Dropdown.d.ts +42 -0
- package/lib/types/components/dropdown/Dropdown.d.ts.map +1 -0
- package/lib/types/components/dropdown/index.d.ts +2 -0
- package/lib/types/components/dropdown/index.d.ts.map +1 -0
- package/lib/types/components/input/Input.d.ts +52 -0
- package/lib/types/components/input/Input.d.ts.map +1 -0
- package/lib/types/components/input/index.d.ts +2 -0
- package/lib/types/components/input/index.d.ts.map +1 -0
- package/lib/types/components/input-number/InputNumber.d.ts +60 -0
- package/lib/types/components/input-number/InputNumber.d.ts.map +1 -0
- package/lib/types/components/input-number/index.d.ts +2 -0
- package/lib/types/components/input-number/index.d.ts.map +1 -0
- package/lib/types/components/menu/Menu.d.ts +7 -0
- package/lib/types/components/menu/Menu.d.ts.map +1 -0
- package/lib/types/components/menu/index.d.ts +2 -0
- package/lib/types/components/menu/index.d.ts.map +1 -0
- package/lib/types/components/message/Message.d.ts +26 -0
- package/lib/types/components/message/Message.d.ts.map +1 -0
- package/lib/types/components/message/__tests__/index.spec.d.ts +2 -0
- package/lib/types/components/message/__tests__/index.spec.d.ts.map +1 -0
- package/lib/types/components/message/index.d.ts +2 -0
- package/lib/types/components/message/index.d.ts.map +1 -0
- package/lib/types/components/popup/Popup.d.ts +16 -0
- package/lib/types/components/popup/Popup.d.ts.map +1 -0
- package/lib/types/components/popup/index.d.ts +2 -0
- package/lib/types/components/popup/index.d.ts.map +1 -0
- package/lib/types/components/radio/Radio.d.ts +27 -0
- package/lib/types/components/radio/Radio.d.ts.map +1 -0
- package/lib/types/components/radio/__tests__/index.spec.d.ts +2 -0
- package/lib/types/components/radio/__tests__/index.spec.d.ts.map +1 -0
- package/lib/types/components/radio/index.d.ts +2 -0
- package/lib/types/components/radio/index.d.ts.map +1 -0
- package/lib/types/components/radio-group/RadioGroup.d.ts +22 -0
- package/lib/types/components/radio-group/RadioGroup.d.ts.map +1 -0
- package/lib/types/components/radio-group/__tests__/index.spec.d.ts +2 -0
- package/lib/types/components/radio-group/__tests__/index.spec.d.ts.map +1 -0
- package/lib/types/components/radio-group/index.d.ts +2 -0
- package/lib/types/components/radio-group/index.d.ts.map +1 -0
- package/lib/types/components/scrollbar/Scrollbar.d.ts +9 -0
- package/lib/types/components/scrollbar/Scrollbar.d.ts.map +1 -0
- package/lib/types/components/scrollbar/__tests__/index.spec.d.ts +2 -0
- package/lib/types/components/scrollbar/__tests__/index.spec.d.ts.map +1 -0
- package/lib/types/components/scrollbar/index.d.ts +2 -0
- package/lib/types/components/scrollbar/index.d.ts.map +1 -0
- package/lib/types/components/select/Select.d.ts +24 -0
- package/lib/types/components/select/Select.d.ts.map +1 -0
- package/lib/types/components/select/index.d.ts +2 -0
- package/lib/types/components/select/index.d.ts.map +1 -0
- package/lib/types/components/select-list/SelectList.d.ts +27 -0
- package/lib/types/components/select-list/SelectList.d.ts.map +1 -0
- package/lib/types/components/select-list/index.d.ts +2 -0
- package/lib/types/components/select-list/index.d.ts.map +1 -0
- package/lib/types/components/slider/Slider.d.ts +27 -0
- package/lib/types/components/slider/Slider.d.ts.map +1 -0
- package/lib/types/components/slider/__test__/index.spec.d.ts +2 -0
- package/lib/types/components/slider/__test__/index.spec.d.ts.map +1 -0
- package/lib/types/components/slider/index.d.ts +2 -0
- package/lib/types/components/slider/index.d.ts.map +1 -0
- package/lib/types/components/tooltip/Tooltip.d.ts +8 -0
- package/lib/types/components/tooltip/Tooltip.d.ts.map +1 -0
- package/lib/types/components/tooltip/index.d.ts +2 -0
- package/lib/types/components/tooltip/index.d.ts.map +1 -0
- package/lib/types/components/tooltip/placements.d.ts +4 -0
- package/lib/types/components/tooltip/placements.d.ts.map +1 -0
- package/lib/types/index.d.ts +26 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/locale/en-US.d.ts +4 -0
- package/lib/types/locale/en-US.d.ts.map +1 -0
- package/lib/types/locale/index.d.ts +4 -0
- package/lib/types/locale/index.d.ts.map +1 -0
- package/lib/types/locale/interface.d.ts +7 -0
- package/lib/types/locale/interface.d.ts.map +1 -0
- package/lib/types/locale/zh-CN.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts.map +1 -0
- package/lib/types/themes/index.d.ts +4 -0
- package/lib/types/themes/index.d.ts.map +1 -0
- package/lib/types/themes/theme.d.ts +9 -0
- package/lib/types/themes/theme.d.ts.map +1 -0
- package/package.json +79 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Shape = 'circle' | 'square';
|
|
3
|
+
type AvatarSize = number | 'middle' | 'small';
|
|
4
|
+
type ImageFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
5
|
+
export interface IAvatarProps {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/** Semantic DOM style */
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
/** The title of the image avatar */
|
|
10
|
+
title?: string;
|
|
11
|
+
/** Image description */
|
|
12
|
+
alt?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The shape of the avatar
|
|
15
|
+
* @default 'circle'
|
|
16
|
+
*/
|
|
17
|
+
shape?: Shape;
|
|
18
|
+
/**
|
|
19
|
+
* The size of the avatar
|
|
20
|
+
* @default 'middle'
|
|
21
|
+
*/
|
|
22
|
+
size?: AvatarSize;
|
|
23
|
+
/** The address of the image for an image avatar or image element */
|
|
24
|
+
src?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The fit of the image avatar
|
|
27
|
+
* @default fill
|
|
28
|
+
*/
|
|
29
|
+
fit?: ImageFit;
|
|
30
|
+
/** Handler when img load error */
|
|
31
|
+
onError?: () => void;
|
|
32
|
+
/** Handler when img load success */
|
|
33
|
+
onLoad?: () => void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Avatar Component
|
|
37
|
+
*/
|
|
38
|
+
export declare function Avatar(props: IAvatarProps): React.JSX.Element;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/Avatar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACjC,KAAK,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC9C,KAAK,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;AAErE,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,yBAAyB;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,wBAAwB;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB,oEAAoE;IACpE,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,GAAG,CAAC,EAAE,QAAQ,CAAC;IAEf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,YAAY,qBA+CzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/avatar/__tests__/index.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ButtonType = 'primary' | 'default' | 'text' | 'link';
|
|
3
|
+
export type ButtonSize = 'small' | 'middle' | 'large';
|
|
4
|
+
export interface IButtonProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** Semantic DOM class */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Semantic DOM style */
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
/**
|
|
11
|
+
* Set button type
|
|
12
|
+
* @default 'default'
|
|
13
|
+
*/
|
|
14
|
+
type?: ButtonType;
|
|
15
|
+
/**
|
|
16
|
+
* Set the size of button
|
|
17
|
+
* @default 'middle'
|
|
18
|
+
*/
|
|
19
|
+
size?: ButtonSize;
|
|
20
|
+
/**
|
|
21
|
+
* Option to fit button width to its parent width
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
block?: boolean;
|
|
25
|
+
/** Set the original html `type` of button, see: [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type) */
|
|
26
|
+
htmlType?: 'submit' | 'reset' | 'button';
|
|
27
|
+
/**
|
|
28
|
+
* Disabled state of button
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/** Set the handler to handle `click` event */
|
|
33
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
34
|
+
}
|
|
35
|
+
export declare function Button(props: IButtonProps): React.JSX.Element;
|
|
36
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AACjE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,yBAAyB;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,qIAAqI;IACrI,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IAEzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC9D;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,YAAY,qBA0CzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/__tests__/index.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
children?: IOption[];
|
|
7
|
+
}
|
|
8
|
+
export interface ICascaderListProps {
|
|
9
|
+
/**
|
|
10
|
+
* The value of select
|
|
11
|
+
*/
|
|
12
|
+
value: string[];
|
|
13
|
+
/**
|
|
14
|
+
* The options of select
|
|
15
|
+
* @default []
|
|
16
|
+
*/
|
|
17
|
+
options?: IOption[];
|
|
18
|
+
/**
|
|
19
|
+
* The callback function that is triggered when the value is changed
|
|
20
|
+
*/
|
|
21
|
+
onChange: (value: string[]) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function CascaderList(props: ICascaderListProps): React.JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=CascaderList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CascaderList.d.ts","sourceRoot":"","sources":["../../../../src/components/cascader-list/CascaderList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,UAAU,OAAO;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACvC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,qBAoErD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/cascader-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ICheckboxProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Used for setting the currently selected value
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Used for setting the currently selected value
|
|
11
|
+
*/
|
|
12
|
+
value: string | number | boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Specifies whether the checkbox is disabled
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Set the handler to handle `click` event
|
|
20
|
+
*/
|
|
21
|
+
onChange?: (value: string | number | boolean) => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Checkbox Component
|
|
25
|
+
*/
|
|
26
|
+
export declare function Checkbox(props: ICheckboxProps): React.JSX.Element;
|
|
27
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAItC,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAEjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CACzD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,qBAuC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkbox/__tests__/index.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ICheckboxGroupProps {
|
|
3
|
+
children: React.ReactNode[];
|
|
4
|
+
/**
|
|
5
|
+
* Define which checkbox is selected
|
|
6
|
+
*/
|
|
7
|
+
value: Array<string | number | boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the checkbox is disabled
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The callback function triggered when switching options
|
|
15
|
+
*/
|
|
16
|
+
onChange: (value: Array<string | number | boolean>) => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* CheckboxGroup Component
|
|
20
|
+
*/
|
|
21
|
+
export declare function CheckboxGroup(props: ICheckboxGroupProps): React.JSX.Element;
|
|
22
|
+
//# sourceMappingURL=CheckboxGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox-group/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,mBAAmB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IAE5B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAExC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,KAAK,IAAI,CAAC;CAC/D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,mBAAmB,qBA4BvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkbox-group/__tests__/index.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IColorPickerProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
onClick?: (color: string, e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function ColorPicker(props: IColorPickerProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=ColorPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/color-picker/ColorPicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAEtF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,qBAgCnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/color-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../../src/components/color-picker/presets.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,UA2FxB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ILocale } from '../../locale';
|
|
3
|
+
export interface IConfigProviderProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
locale: ILocale;
|
|
6
|
+
mountContainer: HTMLElement;
|
|
7
|
+
}
|
|
8
|
+
export declare const ConfigContext: React.Context<Omit<IConfigProviderProps, "children">>;
|
|
9
|
+
export declare function ConfigProvider(props: IConfigProviderProps): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=ConfigProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/config-provider/ConfigProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG5C,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,WAAW,CAAC;CAC/B;AAED,eAAO,MAAM,aAAa,uDAGxB,CAAC;AAEH,wBAAgB,cAAc,CAAC,KAAK,EAAE,oBAAoB,qBAYzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/config-provider/__tests__/index.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/config-provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IConfirmProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Whether the Confirm is visible.
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
visible?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The title of the Confirm.
|
|
11
|
+
*/
|
|
12
|
+
title?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Callback when the Confirm is closed.
|
|
15
|
+
*/
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* Callback when the Confirm is confirmed.
|
|
19
|
+
*/
|
|
20
|
+
onConfirm?: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function Confirm(props: IConfirmProps): React.JSX.Element;
|
|
23
|
+
//# sourceMappingURL=Confirm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Confirm.d.ts","sourceRoot":"","sources":["../../../../src/components/confirm/Confirm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,MAAM,WAAW,aAAa;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,aAAa,qBAqB3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/confirm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IContainerProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
/** Semantic DOM class */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Semantic DOM style */
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
/** Set the handler to handle `click` event */
|
|
9
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
10
|
+
/** Set the handler to handle `onContextMenu` event */
|
|
11
|
+
onContextMenu?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Container Component
|
|
15
|
+
*/
|
|
16
|
+
export declare const Container: React.ForwardRefExoticComponent<IContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../../src/components/container/Container.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,yBAAyB;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B,8CAA8C;IAC9C,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAEpE,sDAAsD;IACtD,aAAa,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;CAC7E;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,wFAQpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/container/__tests__/index.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Palette.d.ts","sourceRoot":"","sources":["../../../../src/components/design-token/Palette.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,MAAM;IACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAUD,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,qBA4LpC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IDialogProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Whether the dialog is visible.
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
visible?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The title of the dialog.
|
|
11
|
+
*/
|
|
12
|
+
title?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Whether the dialog can be dragged.
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
draggable?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The close icon of the dialog.
|
|
20
|
+
*/
|
|
21
|
+
closeIcon?: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* The footer of the dialog.
|
|
24
|
+
*/
|
|
25
|
+
footer?: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Callback when the dialog is closed.
|
|
28
|
+
*/
|
|
29
|
+
onClose?: () => void;
|
|
30
|
+
}
|
|
31
|
+
export declare function Dialog(props: IDialogProps): React.JSX.Element;
|
|
32
|
+
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAMpD,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,YAAY,qBA8CzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ActionType, AlignType } from '@rc-component/trigger';
|
|
2
|
+
import type Placements from 'rc-dropdown/lib/placements';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface IDropdownProps {
|
|
5
|
+
/**
|
|
6
|
+
* The dropdown content
|
|
7
|
+
*/
|
|
8
|
+
children: React.ReactElement;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the dropdown is visible
|
|
11
|
+
*/
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The trigger mode which executes the dropdown action
|
|
15
|
+
* @default ['click']
|
|
16
|
+
*/
|
|
17
|
+
trigger?: ActionType | ActionType[];
|
|
18
|
+
/**
|
|
19
|
+
* The placement of the dropdown
|
|
20
|
+
*/
|
|
21
|
+
placement?: keyof typeof Placements;
|
|
22
|
+
/**
|
|
23
|
+
* The dropdown overlay
|
|
24
|
+
*/
|
|
25
|
+
overlay: React.ReactElement;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the dropdown aligns to the point
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
alignPoint?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The align of the dropdown
|
|
33
|
+
*/
|
|
34
|
+
align?: AlignType;
|
|
35
|
+
/**
|
|
36
|
+
* Triggered after the dropdown visibility changes
|
|
37
|
+
* @param visible
|
|
38
|
+
*/
|
|
39
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
40
|
+
}
|
|
41
|
+
export declare function Dropdown(props: IDropdownProps): React.JSX.Element;
|
|
42
|
+
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAE7B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,CAAC;IAEpC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAEpC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC;IAE5B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,qBAqB7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IInputProps {
|
|
3
|
+
/**
|
|
4
|
+
* The input affix wrapper style
|
|
5
|
+
*/
|
|
6
|
+
affixWrapperStyle?: React.CSSProperties;
|
|
7
|
+
/**
|
|
8
|
+
* The input type
|
|
9
|
+
* @default text
|
|
10
|
+
*/
|
|
11
|
+
type?: 'text' | 'password';
|
|
12
|
+
/**
|
|
13
|
+
* The input placeholder
|
|
14
|
+
*/
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The input content value
|
|
18
|
+
*/
|
|
19
|
+
value?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The input size
|
|
22
|
+
* @default middle
|
|
23
|
+
*/
|
|
24
|
+
size?: 'mini' | 'small' | 'middle' | 'large';
|
|
25
|
+
/**
|
|
26
|
+
* Whether the input is clearable
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
allowClear?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the input is disabled
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Callback when user click
|
|
37
|
+
* @param e
|
|
38
|
+
*/
|
|
39
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Callback when user press a key
|
|
42
|
+
* @param e
|
|
43
|
+
*/
|
|
44
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Callback when user input
|
|
47
|
+
* @param value
|
|
48
|
+
*/
|
|
49
|
+
onChange?: (value: string) => void;
|
|
50
|
+
}
|
|
51
|
+
export declare function Input(props: IInputProps): React.JSX.Element;
|
|
52
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/input/Input.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAExC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAE7C;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAE1D;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAE/D;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,WAAW,qBA+CvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IInputNumberProps {
|
|
3
|
+
/**
|
|
4
|
+
* The className of the input
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The input content value
|
|
9
|
+
*/
|
|
10
|
+
value?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum value of the input
|
|
13
|
+
*/
|
|
14
|
+
max?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The minimum value of the input
|
|
17
|
+
*/
|
|
18
|
+
min?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The step of the input
|
|
21
|
+
* @default 1
|
|
22
|
+
*/
|
|
23
|
+
step?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The precision of the input
|
|
26
|
+
*/
|
|
27
|
+
precision?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the input is disabled
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to show the up and down buttons
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
controls?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Callback when user click
|
|
40
|
+
* @param e
|
|
41
|
+
*/
|
|
42
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Callback when user press a key
|
|
45
|
+
* @param e
|
|
46
|
+
*/
|
|
47
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Callback when user input
|
|
50
|
+
* @param value
|
|
51
|
+
*/
|
|
52
|
+
onChange?: (value: number | null) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Callback when user press enter
|
|
55
|
+
* @param e
|
|
56
|
+
*/
|
|
57
|
+
onPressEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
58
|
+
}
|
|
59
|
+
export declare function InputNumber(props: IInputNumberProps): React.JSX.Element;
|
|
60
|
+
//# sourceMappingURL=InputNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/input-number/InputNumber.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAE1D;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAE/D;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAE1C;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CACrE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,qBAuCnD"}
|