@zjpcy/simple-design 1.6.0 → 1.8.2
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/README.md +178 -26
- package/dist/cjs/components/Anchor/index.js +1 -0
- package/dist/cjs/components/Breadcrumb/index.js +1 -0
- package/dist/cjs/components/Button/Button.js +1 -0
- package/dist/cjs/components/Calendar/index.js +1 -0
- package/dist/cjs/components/Carousel/index.js +1 -0
- package/dist/cjs/components/Cascader/index.js +1 -0
- package/dist/cjs/components/Checkbox/index.js +1 -0
- package/dist/cjs/components/ColorPicker/ColorPickerPanel.js +1 -0
- package/dist/cjs/components/ColorPicker/index.js +1 -0
- package/dist/cjs/components/CopyToClipboard/index.js +1 -0
- package/dist/cjs/components/DatePicker/RangePicker.js +1 -0
- package/dist/cjs/components/DatePicker/index.js +1 -0
- package/dist/cjs/components/DatePicker/styles.js +1 -0
- package/dist/cjs/components/Divider/index.js +1 -0
- package/dist/cjs/components/Drawer/index.js +1 -0
- package/dist/cjs/components/Dropdown/index.js +1 -0
- package/dist/cjs/components/Empty/index.js +1 -0
- package/dist/cjs/components/Flex/index.js +1 -0
- package/dist/cjs/components/Form/index.js +1 -0
- package/dist/cjs/components/Form/styles.js +1 -0
- package/dist/cjs/components/Grid/index.js +1 -0
- package/dist/cjs/components/Grid/styles.js +1 -0
- package/dist/cjs/components/Hooks/useClickOutside.js +1 -0
- package/dist/cjs/components/Hooks/useCopy.js +1 -0
- package/dist/cjs/components/Icon/Icon.js +1 -0
- package/dist/cjs/components/Icon/index.js +1 -0
- package/dist/cjs/components/Icon/path.js +1 -0
- package/dist/cjs/components/Input/InputBase.js +1 -0
- package/dist/cjs/components/Input/Number.js +1 -0
- package/dist/cjs/components/Input/Password.js +1 -0
- package/dist/cjs/components/Input/Search.js +1 -0
- package/dist/cjs/components/Input/Textarea.js +1 -0
- package/dist/cjs/components/Input/index.js +1 -0
- package/dist/cjs/components/Label/index.js +1 -0
- package/dist/cjs/components/Label/styles.js +1 -0
- package/dist/cjs/components/Layout/LayoutContext.js +1 -0
- package/dist/cjs/components/Layout/index.js +1 -0
- package/dist/cjs/components/Layout/styles.js +1 -0
- package/dist/cjs/components/Marquee/index.js +1 -0
- package/dist/cjs/components/Masonry/index.js +1 -0
- package/dist/cjs/components/Menu/index.js +1 -0
- package/dist/cjs/components/Message/Message.js +1 -0
- package/dist/cjs/components/Message/index.js +1 -0
- package/dist/cjs/components/Modal/index.js +1 -0
- package/dist/cjs/components/Notification/Notification.js +1 -0
- package/dist/cjs/components/Pagination/index.js +1 -0
- package/dist/cjs/components/Popconfirm/index.js +1 -0
- package/dist/cjs/components/Progress/index.js +1 -0
- package/dist/cjs/components/Radio/index.js +1 -0
- package/dist/cjs/components/Rate/index.js +1 -0
- package/dist/cjs/components/Select/index.js +1 -0
- package/dist/cjs/components/Select/styles.js +1 -0
- package/dist/cjs/components/Slider/index.js +1 -0
- package/dist/cjs/components/Space/index.js +1 -0
- package/dist/cjs/components/Spin/index.js +1 -0
- package/dist/cjs/components/Splitter/index.js +1 -0
- package/dist/cjs/components/Splitter/styles.js +1 -0
- package/dist/cjs/components/Steps/index.js +1 -0
- package/dist/cjs/components/Switch/index.js +1 -0
- package/dist/cjs/components/Switch/styles.js +1 -0
- package/dist/cjs/components/Table/SortableRow.js +1 -0
- package/dist/cjs/components/Table/index.js +1 -0
- package/dist/cjs/components/Tabs/index.js +1 -0
- package/dist/cjs/components/Tag/index.js +1 -0
- package/dist/cjs/components/TimePicker/RangePicker.js +1 -0
- package/dist/cjs/components/TimePicker/TimePickerPanel.js +1 -0
- package/dist/cjs/components/TimePicker/index.js +1 -0
- package/dist/cjs/components/Tooltip/Tooltip.js +1 -0
- package/dist/cjs/components/Top/index.js +1 -0
- package/dist/cjs/components/Transfer/index.js +1 -0
- package/dist/cjs/components/Transfer/styles.js +1 -0
- package/dist/cjs/components/Tree/index.js +1 -0
- package/dist/cjs/components/TreeSelect/index.js +1 -0
- package/dist/cjs/components/TreeSelect/styles.js +1 -0
- package/dist/cjs/components/Typography/index.js +1 -0
- package/dist/cjs/components/Upload/index.js +1 -0
- package/dist/cjs/components/Upload/useChunkUpload.js +1 -0
- package/dist/cjs/components/index.js +1 -0
- package/dist/cjs/i18n/I18nProvider.js +1 -0
- package/dist/cjs/i18n/index.js +1 -0
- package/dist/cjs/i18n/locales/en-US.json.js +1 -0
- package/dist/cjs/i18n/locales/zh-CN.json.js +1 -0
- package/dist/cjs/index.css +11725 -6076
- package/dist/es/components/Anchor/index.js +1 -0
- package/dist/es/components/Button/Button.js +1 -0
- package/dist/es/components/Calendar/index.js +1 -0
- package/dist/es/components/Carousel/index.js +1 -0
- package/dist/es/components/Cascader/index.js +1 -0
- package/dist/es/components/Checkbox/index.js +1 -0
- package/dist/es/components/ColorPicker/ColorPickerPanel.js +1 -0
- package/dist/es/components/ColorPicker/index.js +1 -0
- package/dist/es/components/CopyToClipboard/index.js +1 -0
- package/dist/es/components/DatePicker/RangePicker.js +1 -0
- package/dist/es/components/DatePicker/index.js +1 -0
- package/dist/es/components/DatePicker/styles.js +1 -0
- package/dist/es/components/Divider/index.js +1 -0
- package/dist/es/components/Drawer/index.js +1 -0
- package/dist/es/components/Flex/index.js +1 -0
- package/dist/es/components/Form/index.js +1 -0
- package/dist/es/components/Form/styles.js +1 -0
- package/dist/es/components/Grid/index.js +1 -0
- package/dist/es/components/Grid/styles.js +1 -0
- package/dist/es/components/Hooks/useCopy.js +1 -0
- package/dist/es/components/Icon/Icon.js +1 -0
- package/dist/es/components/Input/InputBase.js +1 -0
- package/dist/es/components/Input/Number.js +1 -0
- package/dist/es/components/Input/Password.js +1 -0
- package/dist/es/components/Input/Search.js +1 -0
- package/dist/es/components/Input/Textarea.js +1 -0
- package/dist/es/components/Label/index.js +1 -0
- package/dist/es/components/Label/styles.js +1 -0
- package/dist/es/components/Layout/index.js +1 -0
- package/dist/es/components/Layout/styles.js +1 -0
- package/dist/es/components/Marquee/index.js +1 -0
- package/dist/es/components/Masonry/index.js +1 -0
- package/dist/es/components/Menu/index.js +1 -0
- package/dist/es/components/Message/index.js +1 -0
- package/dist/es/components/Modal/index.js +1 -0
- package/dist/es/components/Notification/Notification.js +1 -0
- package/dist/es/components/Popconfirm/index.js +1 -0
- package/dist/es/components/Progress/index.js +1 -0
- package/dist/es/components/Radio/index.js +1 -0
- package/dist/es/components/Select/index.js +1 -0
- package/dist/es/components/Select/styles.js +1 -0
- package/dist/es/components/Slider/index.js +1 -0
- package/dist/es/components/Space/index.js +1 -0
- package/dist/es/components/Splitter/index.js +1 -0
- package/dist/es/components/Splitter/styles.js +1 -0
- package/dist/es/components/Switch/index.js +1 -0
- package/dist/es/components/Switch/styles.js +1 -0
- package/dist/es/components/Table/SortableRow.js +1 -0
- package/dist/es/components/Table/index.js +1 -0
- package/dist/es/components/Tabs/index.js +1 -0
- package/dist/es/components/Tag/index.js +1 -0
- package/dist/es/components/TimePicker/RangePicker.js +1 -0
- package/dist/es/components/TimePicker/TimePickerPanel.js +1 -0
- package/dist/es/components/TimePicker/index.js +1 -0
- package/dist/es/components/Tooltip/Tooltip.js +1 -0
- package/dist/es/components/Top/index.js +1 -0
- package/dist/es/components/Transfer/index.js +1 -0
- package/dist/es/components/Transfer/styles.js +1 -0
- package/dist/es/components/Tree/index.js +1 -0
- package/dist/es/components/TreeSelect/index.js +1 -0
- package/dist/es/components/TreeSelect/styles.js +1 -0
- package/dist/es/components/Typography/index.js +1 -0
- package/dist/es/components/Upload/index.js +1 -0
- package/dist/es/components/Upload/useChunkUpload.js +1 -0
- package/dist/es/components/index.js +1 -0
- package/dist/es/i18n/I18nProvider.js +1 -0
- package/dist/es/i18n/index.js +1 -0
- package/dist/es/i18n/locales/en-US.json.js +1 -0
- package/dist/es/i18n/locales/zh-CN.json.js +1 -0
- package/dist/es/index.css +11725 -6076
- package/dist/i18n/locales/en-US.json +2 -3
- package/dist/i18n/locales/zh-CN.json +1 -1
- package/dist/types/components/ColorPicker/ColorPickerPanel.d.ts +21 -0
- package/dist/types/components/DatePicker/styles.d.ts +118 -152
- package/dist/types/components/Form/styles.d.ts +84 -22
- package/dist/types/components/Grid/styles.d.ts +36 -6
- package/dist/types/components/Label/styles.d.ts +16 -1
- package/dist/types/components/Label/types.d.ts +1 -0
- package/dist/types/components/Layout/styles.d.ts +131 -41
- package/dist/types/components/Marquee/index.d.ts +1 -1
- package/dist/types/components/Message/index.d.ts +1 -1
- package/dist/types/components/Select/styles.d.ts +254 -44
- package/dist/types/components/Switch/index.d.ts +1 -0
- package/dist/types/components/Switch/styles.d.ts +116 -35
- package/dist/types/components/Switch/types.d.ts +4 -0
- package/dist/types/components/TimePicker/styles.d.ts +153 -25
- package/dist/types/components/Top/index.d.ts +1 -1
- package/dist/types/components/Transfer/styles.d.ts +205 -66
- package/dist/types/components/TreeSelect/index.d.ts +1 -0
- package/dist/types/components/TreeSelect/styles.d.ts +295 -55
- package/dist/types/components/TreeSelect/types.d.ts +3 -1
- package/dist/types/components/Upload/index.d.ts +2 -2
- package/dist/types/components/Upload/styles.d.ts +150 -24
- package/dist/types/components/Upload/types.d.ts +279 -15
- package/dist/types/components/Upload/useChunkUpload.d.ts +27 -0
- package/dist/types/components/index.d.ts +4 -3
- package/dist/types/i18n/index.d.ts +1 -1
- package/dist/types/utils/dnd-kit-adapter.d.ts +2 -0
- package/dist/types/utils/i18n-adapter.d.ts +5 -0
- package/dist/types/utils/lunar-adapter.d.ts +2 -0
- package/package.json +29 -13
- package/dist/cjs/index.js +0 -1
- package/dist/es/Anchor/index.js +0 -1
- package/dist/es/Button/Button.js +0 -1
- package/dist/es/Calendar/index.js +0 -1
- package/dist/es/Carousel/index.js +0 -1
- package/dist/es/Cascader/index.js +0 -1
- package/dist/es/Checkbox/index.js +0 -1
- package/dist/es/ColorPicker/index.js +0 -1
- package/dist/es/CopyToClipboard/index.js +0 -1
- package/dist/es/DatePicker/RangePicker.js +0 -1
- package/dist/es/DatePicker/index.js +0 -1
- package/dist/es/DatePicker/styles.js +0 -1
- package/dist/es/Divider/index.js +0 -1
- package/dist/es/Drawer/index.js +0 -1
- package/dist/es/Flex/index.js +0 -1
- package/dist/es/Form/index.js +0 -1
- package/dist/es/Form/styles.js +0 -1
- package/dist/es/Grid/index.js +0 -1
- package/dist/es/Grid/styles.js +0 -1
- package/dist/es/Hooks/useCopy.js +0 -1
- package/dist/es/Icon/Icon.js +0 -1
- package/dist/es/Input/InputBase.js +0 -1
- package/dist/es/Input/Number.js +0 -1
- package/dist/es/Input/Password.js +0 -1
- package/dist/es/Input/Search.js +0 -1
- package/dist/es/Input/Textarea.js +0 -1
- package/dist/es/Label/index.js +0 -1
- package/dist/es/Label/styles.js +0 -1
- package/dist/es/Layout/index.js +0 -1
- package/dist/es/Layout/styles.js +0 -1
- package/dist/es/Marquee/index.js +0 -1
- package/dist/es/Masonry/index.js +0 -1
- package/dist/es/Menu/index.js +0 -1
- package/dist/es/Message/index.js +0 -1
- package/dist/es/Modal/index.js +0 -1
- package/dist/es/Notice/Notice.js +0 -1
- package/dist/es/Notification/Notification.js +0 -1
- package/dist/es/Popconfirm/index.js +0 -1
- package/dist/es/Progress/index.js +0 -1
- package/dist/es/Radio/index.js +0 -1
- package/dist/es/Select/index.js +0 -1
- package/dist/es/Select/styles.js +0 -1
- package/dist/es/Slider/index.js +0 -1
- package/dist/es/Space/index.js +0 -1
- package/dist/es/Splitter/index.js +0 -1
- package/dist/es/Splitter/styles.js +0 -1
- package/dist/es/Switch/index.js +0 -1
- package/dist/es/Switch/styles.js +0 -1
- package/dist/es/Table/SortableRow.js +0 -1
- package/dist/es/Table/index.js +0 -1
- package/dist/es/Tabs/index.js +0 -1
- package/dist/es/Tag/index.js +0 -1
- package/dist/es/TimePicker/RangePicker.js +0 -1
- package/dist/es/TimePicker/TimePickerPanel.js +0 -1
- package/dist/es/TimePicker/index.js +0 -1
- package/dist/es/Tooltip/Tooltip.js +0 -1
- package/dist/es/Top/index.js +0 -1
- package/dist/es/Transfer/index.js +0 -1
- package/dist/es/Transfer/styles.js +0 -1
- package/dist/es/Tree/index.js +0 -1
- package/dist/es/TreeSelect/index.js +0 -1
- package/dist/es/TreeSelect/styles.js +0 -1
- package/dist/es/Typography/index.js +0 -1
- package/dist/es/Upload/index.js +0 -1
- package/dist/es/_virtual/index.js +0 -1
- package/dist/es/_virtual/index2.js +0 -1
- package/dist/es/_virtual/use-sync-external-store-shim.development.js +0 -1
- package/dist/es/_virtual/use-sync-external-store-shim.production.js +0 -1
- package/dist/es/index.js +0 -1
- package/dist/es/node_modules/i18next/dist/esm/i18next.js +0 -1
- package/dist/es/node_modules/react-fast-marquee/dist/index.js +0 -1
- package/dist/es/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -1
- package/dist/es/node_modules/react-i18next/dist/es/context.js +0 -1
- package/dist/es/node_modules/react-i18next/dist/es/defaults.js +0 -1
- package/dist/es/node_modules/react-i18next/dist/es/i18nInstance.js +0 -1
- package/dist/es/node_modules/react-i18next/dist/es/initReactI18next.js +0 -1
- package/dist/es/node_modules/react-i18next/dist/es/unescape.js +0 -1
- package/dist/es/node_modules/react-i18next/dist/es/useTranslation.js +0 -1
- package/dist/es/node_modules/react-i18next/dist/es/utils.js +0 -1
- package/dist/es/node_modules/react-icons/fa/index.js +0 -1
- package/dist/es/node_modules/react-icons/io5/index.js +0 -1
- package/dist/es/node_modules/react-icons/lib/iconBase.js +0 -1
- package/dist/es/node_modules/react-icons/lib/iconContext.js +0 -1
- package/dist/es/node_modules/tslib/tslib.es6.js +0 -1
- package/dist/es/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -1
- package/dist/es/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -1
- package/dist/es/node_modules/use-sync-external-store/shim/index.js +0 -1
- package/dist/es/src/i18n/I18nProvider.js +0 -1
- package/dist/es/src/i18n/index.js +0 -1
- package/dist/es/src/i18n/locales/en-US.json.js +0 -1
- package/dist/es/src/i18n/locales/zh-CN.json.js +0 -1
- package/dist/types/components/Drawer/styles.d.ts +0 -0
- package/dist/types/components/Menu/styles.d.ts +0 -7
- package/dist/types/components/Notice/Notice.d.ts +0 -18
- package/dist/types/components/Progress/styles.d.ts +0 -0
- /package/dist/es/{Breadcrumb → components/Breadcrumb}/index.js +0 -0
- /package/dist/es/{Dropdown → components/Dropdown}/index.js +0 -0
- /package/dist/es/{Empty → components/Empty}/index.js +0 -0
- /package/dist/es/{Hooks → components/Hooks}/useClickOutside.js +0 -0
- /package/dist/es/{Icon → components/Icon}/index.js +0 -0
- /package/dist/es/{Icon → components/Icon}/path.js +0 -0
- /package/dist/es/{Input → components/Input}/index.js +0 -0
- /package/dist/es/{Layout → components/Layout}/LayoutContext.js +0 -0
- /package/dist/es/{Message → components/Message}/Message.js +0 -0
- /package/dist/es/{Pagination → components/Pagination}/index.js +0 -0
- /package/dist/es/{Rate → components/Rate}/index.js +0 -0
- /package/dist/es/{Spin → components/Spin}/index.js +0 -0
- /package/dist/es/{Steps → components/Steps}/index.js +0 -0
|
@@ -1,41 +1,131 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
/**
|
|
2
|
+
* 获取 Layout 类名
|
|
3
|
+
*/
|
|
4
|
+
export declare const getLayoutClassName: (options: {
|
|
5
|
+
hasSider?: boolean;
|
|
6
|
+
theme?: "light" | "dark";
|
|
7
|
+
mounted?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}) => string;
|
|
10
|
+
/**
|
|
11
|
+
* 获取 Layout 样式
|
|
12
|
+
*/
|
|
13
|
+
export declare const getLayoutStyle: (options: {
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
}) => React.CSSProperties;
|
|
16
|
+
/**
|
|
17
|
+
* 获取 Header 类名
|
|
18
|
+
*/
|
|
19
|
+
export declare const getHeaderClassName: (options: {
|
|
20
|
+
fixed?: boolean;
|
|
21
|
+
theme?: "light" | "dark";
|
|
22
|
+
className?: string;
|
|
23
|
+
}) => string;
|
|
24
|
+
/**
|
|
25
|
+
* 获取 Header 样式
|
|
26
|
+
*/
|
|
27
|
+
export declare const getHeaderStyle: (options: {
|
|
28
|
+
height?: string | number;
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
}) => React.CSSProperties;
|
|
31
|
+
/**
|
|
32
|
+
* 获取 Sider 类名
|
|
33
|
+
*/
|
|
34
|
+
export declare const getSiderClassName: (options: {
|
|
35
|
+
fixed?: boolean;
|
|
36
|
+
theme?: "light" | "dark";
|
|
37
|
+
collapsed?: boolean;
|
|
38
|
+
className?: string;
|
|
39
|
+
}) => string;
|
|
40
|
+
/**
|
|
41
|
+
* 获取 Sider 样式
|
|
42
|
+
*/
|
|
43
|
+
export declare const getSiderStyle: (options: {
|
|
44
|
+
width?: string | number;
|
|
45
|
+
collapsedWidth?: number;
|
|
46
|
+
collapsed?: boolean;
|
|
47
|
+
style?: React.CSSProperties;
|
|
48
|
+
}) => React.CSSProperties;
|
|
49
|
+
/**
|
|
50
|
+
* 获取 SiderContent 类名
|
|
51
|
+
*/
|
|
52
|
+
export declare const getSiderContentClassName: (options: {
|
|
53
|
+
collapsed?: boolean;
|
|
54
|
+
className?: string;
|
|
55
|
+
}) => string;
|
|
56
|
+
/**
|
|
57
|
+
* 获取 SiderContent 样式
|
|
58
|
+
*/
|
|
59
|
+
export declare const getSiderContentStyle: (options: {
|
|
60
|
+
style?: React.CSSProperties;
|
|
61
|
+
}) => React.CSSProperties;
|
|
62
|
+
/**
|
|
63
|
+
* 获取 SiderTrigger 类名
|
|
64
|
+
*/
|
|
65
|
+
export declare const getSiderTriggerClassName: (options: {
|
|
66
|
+
collapsed?: boolean;
|
|
67
|
+
placement?: "top" | "bottom";
|
|
68
|
+
zeroWidthMode?: boolean;
|
|
69
|
+
theme?: "light" | "dark";
|
|
70
|
+
className?: string;
|
|
71
|
+
}) => string;
|
|
72
|
+
/**
|
|
73
|
+
* 获取 SiderTrigger 样式
|
|
74
|
+
*/
|
|
75
|
+
export declare const getSiderTriggerStyle: (options: {
|
|
76
|
+
style?: React.CSSProperties;
|
|
77
|
+
}) => React.CSSProperties;
|
|
78
|
+
/**
|
|
79
|
+
* 获取 ZeroWidthTrigger 类名
|
|
80
|
+
*/
|
|
81
|
+
export declare const getZeroWidthTriggerClassName: (options: {
|
|
82
|
+
className?: string;
|
|
83
|
+
}) => string;
|
|
84
|
+
/**
|
|
85
|
+
* 获取 ZeroWidthTrigger 样式
|
|
86
|
+
*/
|
|
87
|
+
export declare const getZeroWidthTriggerStyle: (options: {
|
|
88
|
+
style?: React.CSSProperties;
|
|
89
|
+
}) => React.CSSProperties;
|
|
90
|
+
/**
|
|
91
|
+
* 获取 LayoutInner 类名
|
|
92
|
+
*/
|
|
93
|
+
export declare const getLayoutInnerClassName: (options: {
|
|
94
|
+
hasSider?: boolean;
|
|
95
|
+
className?: string;
|
|
96
|
+
}) => string;
|
|
97
|
+
/**
|
|
98
|
+
* 获取 LayoutInner 样式
|
|
99
|
+
*/
|
|
100
|
+
export declare const getLayoutInnerStyle: (options: {
|
|
101
|
+
style?: React.CSSProperties;
|
|
102
|
+
}) => React.CSSProperties;
|
|
103
|
+
/**
|
|
104
|
+
* 获取 Content 类名
|
|
105
|
+
*/
|
|
106
|
+
export declare const getContentClassName: (options: {
|
|
107
|
+
fixed?: boolean;
|
|
108
|
+
theme?: "light" | "dark";
|
|
109
|
+
className?: string;
|
|
110
|
+
}) => string;
|
|
111
|
+
/**
|
|
112
|
+
* 获取 Content 样式
|
|
113
|
+
*/
|
|
114
|
+
export declare const getContentStyle: (options: {
|
|
115
|
+
style?: React.CSSProperties;
|
|
116
|
+
}) => React.CSSProperties;
|
|
117
|
+
/**
|
|
118
|
+
* 获取 Footer 类名
|
|
119
|
+
*/
|
|
120
|
+
export declare const getFooterClassName: (options: {
|
|
121
|
+
fixed?: boolean;
|
|
122
|
+
theme?: "light" | "dark";
|
|
123
|
+
className?: string;
|
|
124
|
+
}) => string;
|
|
125
|
+
/**
|
|
126
|
+
* 获取 Footer 样式
|
|
127
|
+
*/
|
|
128
|
+
export declare const getFooterStyle: (options: {
|
|
129
|
+
height?: string | number;
|
|
130
|
+
style?: React.CSSProperties;
|
|
131
|
+
}) => React.CSSProperties;
|
|
@@ -1,45 +1,255 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
1
2
|
import { SelectStyles } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export declare const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export declare const
|
|
45
|
-
|
|
3
|
+
/**
|
|
4
|
+
* 获取 Wrapper 类名
|
|
5
|
+
*/
|
|
6
|
+
export declare const getWrapperClassName: (options: {
|
|
7
|
+
className?: string;
|
|
8
|
+
}) => string;
|
|
9
|
+
/**
|
|
10
|
+
* 获取 Wrapper 样式
|
|
11
|
+
*/
|
|
12
|
+
export declare const getWrapperStyle: (options: {
|
|
13
|
+
width?: string | number;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
customStyles?: SelectStyles["wrapper"];
|
|
16
|
+
}) => CSSProperties;
|
|
17
|
+
/**
|
|
18
|
+
* 获取 LabelWrapper 类名
|
|
19
|
+
*/
|
|
20
|
+
export declare const getLabelWrapperClassName: (options: {
|
|
21
|
+
className?: string;
|
|
22
|
+
}) => string;
|
|
23
|
+
/**
|
|
24
|
+
* 获取 LabelWrapper 样式
|
|
25
|
+
*/
|
|
26
|
+
export declare const getLabelWrapperStyle: (options: {
|
|
27
|
+
style?: CSSProperties;
|
|
28
|
+
}) => CSSProperties;
|
|
29
|
+
/**
|
|
30
|
+
* 获取 Label 类名
|
|
31
|
+
*/
|
|
32
|
+
export declare const getLabelClassName: (options: {
|
|
33
|
+
labelClassName?: string;
|
|
34
|
+
}) => string;
|
|
35
|
+
/**
|
|
36
|
+
* 获取 Label 样式
|
|
37
|
+
*/
|
|
38
|
+
export declare const getLabelStyle: (options: {
|
|
39
|
+
labelGap?: string | number;
|
|
40
|
+
labelStyle?: CSSProperties;
|
|
41
|
+
}) => CSSProperties;
|
|
42
|
+
/**
|
|
43
|
+
* 获取 Selector 类名
|
|
44
|
+
*/
|
|
45
|
+
export declare const getSelectorClassName: (options: {
|
|
46
|
+
size?: "small" | "default" | "large";
|
|
47
|
+
open?: boolean;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
className?: string;
|
|
50
|
+
}) => string;
|
|
51
|
+
/**
|
|
52
|
+
* 获取 Selector 样式
|
|
53
|
+
*/
|
|
54
|
+
export declare const getSelectorStyle: (options: {
|
|
55
|
+
customStyles?: SelectStyles["selector"];
|
|
56
|
+
}) => CSSProperties;
|
|
57
|
+
/**
|
|
58
|
+
* 获取 SelectorContent 类名
|
|
59
|
+
*/
|
|
60
|
+
export declare const getSelectorContentClassName: (options: {
|
|
61
|
+
className?: string;
|
|
62
|
+
}) => string;
|
|
63
|
+
/**
|
|
64
|
+
* 获取 SelectorContent 样式
|
|
65
|
+
*/
|
|
66
|
+
export declare const getSelectorContentStyle: (options: {
|
|
67
|
+
style?: CSSProperties;
|
|
68
|
+
}) => CSSProperties;
|
|
69
|
+
/**
|
|
70
|
+
* 获取 Placeholder 类名
|
|
71
|
+
*/
|
|
72
|
+
export declare const getPlaceholderClassName: (options: {
|
|
73
|
+
className?: string;
|
|
74
|
+
}) => string;
|
|
75
|
+
/**
|
|
76
|
+
* 获取 Placeholder 样式
|
|
77
|
+
*/
|
|
78
|
+
export declare const getPlaceholderStyle: (options: {
|
|
79
|
+
style?: CSSProperties;
|
|
80
|
+
}) => CSSProperties;
|
|
81
|
+
/**
|
|
82
|
+
* 获取 SingleValue 类名
|
|
83
|
+
*/
|
|
84
|
+
export declare const getSingleValueClassName: (options: {
|
|
85
|
+
className?: string;
|
|
86
|
+
}) => string;
|
|
87
|
+
/**
|
|
88
|
+
* 获取 SingleValue 样式
|
|
89
|
+
*/
|
|
90
|
+
export declare const getSingleValueStyle: (options: {
|
|
91
|
+
style?: CSSProperties;
|
|
92
|
+
}) => CSSProperties;
|
|
93
|
+
/**
|
|
94
|
+
* 获取 TagsContainer 类名
|
|
95
|
+
*/
|
|
96
|
+
export declare const getTagsContainerClassName: (options: {
|
|
97
|
+
className?: string;
|
|
98
|
+
}) => string;
|
|
99
|
+
/**
|
|
100
|
+
* 获取 TagsContainer 样式
|
|
101
|
+
*/
|
|
102
|
+
export declare const getTagsContainerStyle: (options: {
|
|
103
|
+
style?: CSSProperties;
|
|
104
|
+
}) => CSSProperties;
|
|
105
|
+
/**
|
|
106
|
+
* 获取 Tag 类名
|
|
107
|
+
*/
|
|
108
|
+
export declare const getTagClassName: (options: {
|
|
109
|
+
disabled?: boolean;
|
|
110
|
+
className?: string;
|
|
111
|
+
}) => string;
|
|
112
|
+
/**
|
|
113
|
+
* 获取 Tag 样式
|
|
114
|
+
*/
|
|
115
|
+
export declare const getTagStyle: (options: {
|
|
116
|
+
customStyles?: SelectStyles["tag"];
|
|
117
|
+
}) => CSSProperties;
|
|
118
|
+
/**
|
|
119
|
+
* 获取 TagClose 类名
|
|
120
|
+
*/
|
|
121
|
+
export declare const getTagCloseClassName: (options: {
|
|
122
|
+
className?: string;
|
|
123
|
+
}) => string;
|
|
124
|
+
/**
|
|
125
|
+
* 获取 TagClose 样式
|
|
126
|
+
*/
|
|
127
|
+
export declare const getTagCloseStyle: (options: {
|
|
128
|
+
style?: CSSProperties;
|
|
129
|
+
}) => CSSProperties;
|
|
130
|
+
/**
|
|
131
|
+
* 获取 SearchInput 类名
|
|
132
|
+
*/
|
|
133
|
+
export declare const getSearchInputClassName: (options: {
|
|
134
|
+
className?: string;
|
|
135
|
+
}) => string;
|
|
136
|
+
/**
|
|
137
|
+
* 获取 SearchInput 样式
|
|
138
|
+
*/
|
|
139
|
+
export declare const getSearchInputStyle: (options: {
|
|
140
|
+
style?: CSSProperties;
|
|
141
|
+
}) => CSSProperties;
|
|
142
|
+
/**
|
|
143
|
+
* 获取 SuffixArea 类名
|
|
144
|
+
*/
|
|
145
|
+
export declare const getSuffixAreaClassName: (options: {
|
|
146
|
+
className?: string;
|
|
147
|
+
}) => string;
|
|
148
|
+
/**
|
|
149
|
+
* 获取 SuffixArea 样式
|
|
150
|
+
*/
|
|
151
|
+
export declare const getSuffixAreaStyle: (options: {
|
|
152
|
+
style?: CSSProperties;
|
|
153
|
+
}) => CSSProperties;
|
|
154
|
+
/**
|
|
155
|
+
* 获取 ClearButton 类名
|
|
156
|
+
*/
|
|
157
|
+
export declare const getClearButtonClassName: (options: {
|
|
158
|
+
className?: string;
|
|
159
|
+
}) => string;
|
|
160
|
+
/**
|
|
161
|
+
* 获取 ClearButton 样式
|
|
162
|
+
*/
|
|
163
|
+
export declare const getClearButtonStyle: (options: {
|
|
164
|
+
style?: CSSProperties;
|
|
165
|
+
}) => CSSProperties;
|
|
166
|
+
/**
|
|
167
|
+
* 获取 Arrow 类名
|
|
168
|
+
*/
|
|
169
|
+
export declare const getArrowClassName: (options: {
|
|
170
|
+
open?: boolean;
|
|
171
|
+
className?: string;
|
|
172
|
+
}) => string;
|
|
173
|
+
/**
|
|
174
|
+
* 获取 Arrow 样式
|
|
175
|
+
*/
|
|
176
|
+
export declare const getArrowStyle: (options: {
|
|
177
|
+
style?: CSSProperties;
|
|
178
|
+
}) => CSSProperties;
|
|
179
|
+
/**
|
|
180
|
+
* 获取 LoadingIcon 类名
|
|
181
|
+
*/
|
|
182
|
+
export declare const getLoadingIconClassName: (options: {
|
|
183
|
+
className?: string;
|
|
184
|
+
}) => string;
|
|
185
|
+
/**
|
|
186
|
+
* 获取 LoadingIcon 样式
|
|
187
|
+
*/
|
|
188
|
+
export declare const getLoadingIconStyle: (options: {
|
|
189
|
+
style?: CSSProperties;
|
|
190
|
+
}) => CSSProperties;
|
|
191
|
+
/**
|
|
192
|
+
* 获取 Dropdown 类名
|
|
193
|
+
*/
|
|
194
|
+
export declare const getDropdownClassName: (options: {
|
|
195
|
+
open?: boolean;
|
|
196
|
+
className?: string;
|
|
197
|
+
}) => string;
|
|
198
|
+
/**
|
|
199
|
+
* 获取 Dropdown 样式
|
|
200
|
+
*/
|
|
201
|
+
export declare const getDropdownStyle: (options: {
|
|
202
|
+
customStyles?: SelectStyles["dropdown"];
|
|
203
|
+
}) => CSSProperties;
|
|
204
|
+
/**
|
|
205
|
+
* 获取 OptionList 类名
|
|
206
|
+
*/
|
|
207
|
+
export declare const getOptionListClassName: (options: {
|
|
208
|
+
className?: string;
|
|
209
|
+
}) => string;
|
|
210
|
+
/**
|
|
211
|
+
* 获取 OptionList 样式
|
|
212
|
+
*/
|
|
213
|
+
export declare const getOptionListStyle: (options: {
|
|
214
|
+
maxHeight?: number;
|
|
215
|
+
style?: CSSProperties;
|
|
216
|
+
}) => CSSProperties;
|
|
217
|
+
/**
|
|
218
|
+
* 获取 Option 类名
|
|
219
|
+
*/
|
|
220
|
+
export declare const getOptionClassName: (options: {
|
|
221
|
+
selected?: boolean;
|
|
222
|
+
active?: boolean;
|
|
223
|
+
disabled?: boolean;
|
|
224
|
+
className?: string;
|
|
225
|
+
}) => string;
|
|
226
|
+
/**
|
|
227
|
+
* 获取 Option 样式
|
|
228
|
+
*/
|
|
229
|
+
export declare const getOptionStyle: (options: {
|
|
230
|
+
customStyles?: SelectStyles["option"];
|
|
231
|
+
}) => CSSProperties;
|
|
232
|
+
/**
|
|
233
|
+
* 获取 CheckIcon 类名
|
|
234
|
+
*/
|
|
235
|
+
export declare const getCheckIconClassName: (options: {
|
|
236
|
+
className?: string;
|
|
237
|
+
}) => string;
|
|
238
|
+
/**
|
|
239
|
+
* 获取 CheckIcon 样式
|
|
240
|
+
*/
|
|
241
|
+
export declare const getCheckIconStyle: (options: {
|
|
242
|
+
style?: CSSProperties;
|
|
243
|
+
}) => CSSProperties;
|
|
244
|
+
/**
|
|
245
|
+
* 获取 Empty 类名
|
|
246
|
+
*/
|
|
247
|
+
export declare const getEmptyClassName: (options: {
|
|
248
|
+
className?: string;
|
|
249
|
+
}) => string;
|
|
250
|
+
/**
|
|
251
|
+
* 获取 Empty 样式
|
|
252
|
+
*/
|
|
253
|
+
export declare const getEmptyStyle: (options: {
|
|
254
|
+
style?: CSSProperties;
|
|
255
|
+
}) => CSSProperties;
|
|
@@ -1,36 +1,117 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
1
2
|
import { SwitchStyles } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export declare const
|
|
3
|
+
/**
|
|
4
|
+
* 获取 Wrapper 类名
|
|
5
|
+
*/
|
|
6
|
+
export declare const getWrapperClassName: (options: {
|
|
7
|
+
className?: string;
|
|
8
|
+
}) => string;
|
|
9
|
+
/**
|
|
10
|
+
* 获取 Wrapper 样式
|
|
11
|
+
*/
|
|
12
|
+
export declare const getWrapperStyle: (options: {
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
customStyles?: SwitchStyles["wrapper"];
|
|
15
|
+
}) => CSSProperties;
|
|
16
|
+
/**
|
|
17
|
+
* 获取 LabelWrapper 类名
|
|
18
|
+
*/
|
|
19
|
+
export declare const getLabelWrapperClassName: (options: {
|
|
20
|
+
className?: string;
|
|
21
|
+
}) => string;
|
|
22
|
+
/**
|
|
23
|
+
* 获取 LabelWrapper 样式
|
|
24
|
+
*/
|
|
25
|
+
export declare const getLabelWrapperStyle: (options: {
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
}) => CSSProperties;
|
|
28
|
+
/**
|
|
29
|
+
* 获取 Label 类名
|
|
30
|
+
*/
|
|
31
|
+
export declare const getLabelClassName: (options: {
|
|
32
|
+
labelClassName?: string;
|
|
33
|
+
}) => string;
|
|
34
|
+
/**
|
|
35
|
+
* 获取 Label 样式
|
|
36
|
+
*/
|
|
37
|
+
export declare const getLabelStyle: (options: {
|
|
38
|
+
labelGap?: string | number;
|
|
39
|
+
labelStyle?: CSSProperties;
|
|
40
|
+
}) => CSSProperties;
|
|
41
|
+
/**
|
|
42
|
+
* 获取 Track 类名
|
|
43
|
+
*/
|
|
44
|
+
export declare const getTrackClassName: (options: {
|
|
45
|
+
checked?: boolean;
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
loading?: boolean;
|
|
48
|
+
className?: string;
|
|
49
|
+
}) => string;
|
|
50
|
+
/**
|
|
51
|
+
* 获取 Track 样式
|
|
52
|
+
*/
|
|
53
|
+
export declare const getTrackStyle: (options: {
|
|
54
|
+
size?: "default" | "small";
|
|
55
|
+
width?: number;
|
|
56
|
+
hasChildren?: boolean;
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
customStyles?: SwitchStyles["track"];
|
|
59
|
+
}) => CSSProperties;
|
|
60
|
+
/**
|
|
61
|
+
* 获取 Thumb 类名
|
|
62
|
+
*/
|
|
63
|
+
export declare const getThumbClassName: (options: {
|
|
64
|
+
checked?: boolean;
|
|
65
|
+
loading?: boolean;
|
|
66
|
+
className?: string;
|
|
67
|
+
}) => string;
|
|
68
|
+
/**
|
|
69
|
+
* 获取 Thumb 样式
|
|
70
|
+
*/
|
|
71
|
+
export declare const getThumbStyle: (options: {
|
|
72
|
+
size?: "default" | "small";
|
|
73
|
+
checked?: boolean;
|
|
74
|
+
width?: number;
|
|
75
|
+
customStyles?: SwitchStyles["thumb"];
|
|
76
|
+
}) => CSSProperties;
|
|
77
|
+
/**
|
|
78
|
+
* 获取 LoadingIcon 类名
|
|
79
|
+
*/
|
|
80
|
+
export declare const getLoadingIconClassName: (options: {
|
|
81
|
+
className?: string;
|
|
82
|
+
}) => string;
|
|
83
|
+
/**
|
|
84
|
+
* 获取 LoadingIcon 样式
|
|
85
|
+
*/
|
|
86
|
+
export declare const getLoadingIconStyle: (options: {
|
|
87
|
+
size?: "default" | "small";
|
|
88
|
+
checked?: boolean;
|
|
89
|
+
width?: number;
|
|
90
|
+
customStyles?: SwitchStyles["loading"];
|
|
91
|
+
}) => CSSProperties;
|
|
92
|
+
/**
|
|
93
|
+
* 获取 CheckedInner 类名
|
|
94
|
+
*/
|
|
95
|
+
export declare const getCheckedInnerClassName: (options: {
|
|
96
|
+
className?: string;
|
|
97
|
+
}) => string;
|
|
98
|
+
/**
|
|
99
|
+
* 获取 CheckedInner 样式
|
|
100
|
+
*/
|
|
101
|
+
export declare const getCheckedInnerStyle: (options: {
|
|
102
|
+
size?: "default" | "small";
|
|
103
|
+
customStyles?: SwitchStyles["inner"];
|
|
104
|
+
}) => CSSProperties;
|
|
105
|
+
/**
|
|
106
|
+
* 获取 UncheckedInner 类名
|
|
107
|
+
*/
|
|
108
|
+
export declare const getUncheckedInnerClassName: (options: {
|
|
109
|
+
className?: string;
|
|
110
|
+
}) => string;
|
|
111
|
+
/**
|
|
112
|
+
* 获取 UncheckedInner 样式
|
|
113
|
+
*/
|
|
114
|
+
export declare const getUncheckedInnerStyle: (options: {
|
|
115
|
+
size?: "default" | "small";
|
|
116
|
+
customStyles?: SwitchStyles["inner"];
|
|
117
|
+
}) => CSSProperties;
|