@zjpcy/simple-design 1.3.1 → 1.3.3

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.
Files changed (135) hide show
  1. package/dist/cjs/index.css +1 -1
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/es/Layout/styles.js +1 -1
  4. package/dist/es/Menu/index.js +1 -1
  5. package/dist/es/index.css +1 -1
  6. package/dist/types/components/index.d.ts +1 -1
  7. package/package.json +1 -1
  8. package/dist/types/Anchor/index.d.ts +0 -7
  9. package/dist/types/Anchor/types.d.ts +0 -23
  10. package/dist/types/Breadcrumb/index.d.ts +0 -5
  11. package/dist/types/Breadcrumb/types.d.ts +0 -9
  12. package/dist/types/Button/Button.d.ts +0 -17
  13. package/dist/types/Button/index.d.ts +0 -2
  14. package/dist/types/Carousel/index.d.ts +0 -5
  15. package/dist/types/Carousel/styles.d.ts +0 -12
  16. package/dist/types/Carousel/types.d.ts +0 -72
  17. package/dist/types/Cascader/index.d.ts +0 -5
  18. package/dist/types/Cascader/types.d.ts +0 -36
  19. package/dist/types/Checkbox/index.d.ts +0 -8
  20. package/dist/types/Checkbox/types.d.ts +0 -37
  21. package/dist/types/ColorPicker/index.d.ts +0 -5
  22. package/dist/types/ColorPicker/types.d.ts +0 -15
  23. package/dist/types/CopyToClipboard/index.d.ts +0 -7
  24. package/dist/types/CopyToClipboard/types.d.ts +0 -5
  25. package/dist/types/DatePicker/RangePicker.d.ts +0 -4
  26. package/dist/types/DatePicker/index.d.ts +0 -9
  27. package/dist/types/DatePicker/styles.d.ts +0 -186
  28. package/dist/types/DatePicker/types.d.ts +0 -228
  29. package/dist/types/Divider/index.d.ts +0 -11
  30. package/dist/types/Drawer/index.d.ts +0 -6
  31. package/dist/types/Drawer/styles.d.ts +0 -0
  32. package/dist/types/Drawer/types.d.ts +0 -71
  33. package/dist/types/Dropdown/index.d.ts +0 -5
  34. package/dist/types/Dropdown/types.d.ts +0 -25
  35. package/dist/types/Empty/index.d.ts +0 -5
  36. package/dist/types/Empty/types.d.ts +0 -17
  37. package/dist/types/Flex/index.d.ts +0 -5
  38. package/dist/types/Flex/types.d.ts +0 -11
  39. package/dist/types/Form/index.d.ts +0 -12
  40. package/dist/types/Form/styles.d.ts +0 -22
  41. package/dist/types/Form/types.d.ts +0 -87
  42. package/dist/types/Grid/index.d.ts +0 -14
  43. package/dist/types/Grid/styles.d.ts +0 -22
  44. package/dist/types/Grid/types.d.ts +0 -49
  45. package/dist/types/Hooks/useClickOutside.d.ts +0 -4
  46. package/dist/types/Hooks/useCopy.d.ts +0 -2
  47. package/dist/types/Icon/Icon.d.ts +0 -18
  48. package/dist/types/Icon/index.d.ts +0 -3
  49. package/dist/types/Icon/path.d.ts +0 -16
  50. package/dist/types/Input/AutoComplete.d.ts +0 -0
  51. package/dist/types/Input/InputBase.d.ts +0 -36
  52. package/dist/types/Input/Number.d.ts +0 -12
  53. package/dist/types/Input/Password.d.ts +0 -13
  54. package/dist/types/Input/Search.d.ts +0 -8
  55. package/dist/types/Input/Textarea.d.ts +0 -51
  56. package/dist/types/Input/index.d.ts +0 -16
  57. package/dist/types/Label/index.d.ts +0 -5
  58. package/dist/types/Label/styles.d.ts +0 -1
  59. package/dist/types/Label/types.d.ts +0 -9
  60. package/dist/types/Layout/LayoutContext.d.ts +0 -15
  61. package/dist/types/Layout/index.d.ts +0 -86
  62. package/dist/types/Layout/styles.d.ts +0 -40
  63. package/dist/types/Layout/types.d.ts +0 -112
  64. package/dist/types/Marquee/index.d.ts +0 -15
  65. package/dist/types/Masonry/index.d.ts +0 -5
  66. package/dist/types/Masonry/types.d.ts +0 -26
  67. package/dist/types/Menu/index.d.ts +0 -11
  68. package/dist/types/Menu/styles.d.ts +0 -7
  69. package/dist/types/Menu/types.d.ts +0 -73
  70. package/dist/types/Message/Message.d.ts +0 -5
  71. package/dist/types/Message/index.d.ts +0 -25
  72. package/dist/types/Message/types.d.ts +0 -16
  73. package/dist/types/Modal/index.d.ts +0 -5
  74. package/dist/types/Modal/types.d.ts +0 -34
  75. package/dist/types/Notice/Notice.d.ts +0 -18
  76. package/dist/types/Notification/Notification.d.ts +0 -5
  77. package/dist/types/Notification/types.d.ts +0 -12
  78. package/dist/types/Pagination/index.d.ts +0 -5
  79. package/dist/types/Pagination/types.d.ts +0 -38
  80. package/dist/types/Popconfirm/index.d.ts +0 -6
  81. package/dist/types/Popconfirm/types.d.ts +0 -30
  82. package/dist/types/Progress/index.d.ts +0 -6
  83. package/dist/types/Progress/styles.d.ts +0 -0
  84. package/dist/types/Progress/types.d.ts +0 -59
  85. package/dist/types/Radio/index.d.ts +0 -8
  86. package/dist/types/Radio/types.d.ts +0 -30
  87. package/dist/types/Rate/index.d.ts +0 -5
  88. package/dist/types/Rate/types.d.ts +0 -27
  89. package/dist/types/Select/index.d.ts +0 -28
  90. package/dist/types/Select/styles.d.ts +0 -45
  91. package/dist/types/Select/types.d.ts +0 -134
  92. package/dist/types/Slider/index.d.ts +0 -5
  93. package/dist/types/Slider/types.d.ts +0 -28
  94. package/dist/types/Space/index.d.ts +0 -5
  95. package/dist/types/Space/types.d.ts +0 -31
  96. package/dist/types/Spin/index.d.ts +0 -6
  97. package/dist/types/Spin/types.d.ts +0 -44
  98. package/dist/types/Splitter/index.d.ts +0 -9
  99. package/dist/types/Splitter/styles.d.ts +0 -61
  100. package/dist/types/Splitter/types.d.ts +0 -115
  101. package/dist/types/Steps/index.d.ts +0 -5
  102. package/dist/types/Steps/types.d.ts +0 -31
  103. package/dist/types/Switch/index.d.ts +0 -16
  104. package/dist/types/Switch/styles.d.ts +0 -36
  105. package/dist/types/Switch/types.d.ts +0 -81
  106. package/dist/types/Table/SortableRow.d.ts +0 -26
  107. package/dist/types/Table/index.d.ts +0 -53
  108. package/dist/types/Tabs/index.d.ts +0 -5
  109. package/dist/types/Tabs/types.d.ts +0 -32
  110. package/dist/types/Tag/index.d.ts +0 -6
  111. package/dist/types/Tag/styles.d.ts +0 -52
  112. package/dist/types/Tag/types.d.ts +0 -46
  113. package/dist/types/TimePicker/RangePicker.d.ts +0 -4
  114. package/dist/types/TimePicker/TimePickerPanel.d.ts +0 -4
  115. package/dist/types/TimePicker/index.d.ts +0 -10
  116. package/dist/types/TimePicker/styles.d.ts +0 -33
  117. package/dist/types/TimePicker/types.d.ts +0 -151
  118. package/dist/types/Tooltip/Tooltip.d.ts +0 -15
  119. package/dist/types/Tooltip/index.d.ts +0 -2
  120. package/dist/types/Top/index.d.ts +0 -16
  121. package/dist/types/Transfer/index.d.ts +0 -21
  122. package/dist/types/Transfer/styles.d.ts +0 -104
  123. package/dist/types/Transfer/types.d.ts +0 -232
  124. package/dist/types/Tree/index.d.ts +0 -12
  125. package/dist/types/Tree/styles.d.ts +0 -54
  126. package/dist/types/Tree/types.d.ts +0 -202
  127. package/dist/types/TreeSelect/index.d.ts +0 -24
  128. package/dist/types/TreeSelect/styles.d.ts +0 -56
  129. package/dist/types/TreeSelect/types.d.ts +0 -107
  130. package/dist/types/Typography/index.d.ts +0 -5
  131. package/dist/types/Typography/types.d.ts +0 -13
  132. package/dist/types/Upload/index.d.ts +0 -6
  133. package/dist/types/Upload/styles.d.ts +0 -28
  134. package/dist/types/Upload/types.d.ts +0 -90
  135. package/dist/types/index.d.ts +0 -63
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import './Notice.css';
3
- export type NoticeType = 'primary' | 'success' | 'warning' | 'error' | 'info' | 'dark';
4
- export interface NoticeProps {
5
- text?: string | React.ReactNode | React.ReactElement | React.ReactElement[] | (string | React.ReactNode)[];
6
- speed?: number;
7
- height?: number;
8
- styles?: React.CSSProperties;
9
- icon?: React.ReactNode | null;
10
- showCloseButton?: boolean;
11
- closeStyle?: React.CSSProperties;
12
- floatingTop?: boolean;
13
- pauseOnHover?: boolean;
14
- type?: NoticeType;
15
- className?: string;
16
- }
17
- declare const Notice: React.FC<NoticeProps>;
18
- export default Notice;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import './Notification.css';
3
- import { NotificationProps } from './types';
4
- declare const Notification: React.FC<NotificationProps>;
5
- export default Notification;
@@ -1,12 +0,0 @@
1
- export type NotificationPosition = 'top-left' | 'top-center' | 'top-right' | 'center' | 'bottom-left' | 'bottom-center' | 'bottom-right';
2
- export interface NotificationProps {
3
- message: string;
4
- duration?: number;
5
- type?: 'info' | 'success' | 'warning' | 'error';
6
- position?: NotificationPosition;
7
- color?: string;
8
- top?: number;
9
- open?: boolean;
10
- clickOutsideToClose?: boolean;
11
- onClose?: () => void;
12
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import './Pagination.css';
3
- import type { PaginationProps } from './types';
4
- declare const Pagination: React.FC<PaginationProps>;
5
- export default Pagination;
@@ -1,38 +0,0 @@
1
- export interface PaginationProps {
2
- total?: number;
3
- current?: number;
4
- defaultCurrent?: number;
5
- pageSize?: number;
6
- defaultPageSize?: number;
7
- onChange?: (current: number, pageSize: number) => void;
8
- pageSizeOptions?: (string | number)[];
9
- showSizeChanger?: boolean;
10
- showQuickJumper?: boolean;
11
- showTotal?: (total: number, range: [number, number]) => React.ReactNode;
12
- size?: 'default' | 'small';
13
- /**
14
- * 简洁模式
15
- */
16
- simple?: boolean;
17
- /**
18
- * 禁用状态
19
- */
20
- disabled?: boolean;
21
- /**
22
- * 只有一页时隐藏
23
- */
24
- hideOnSinglePage?: boolean;
25
- /**
26
- * 分页组件位置对齐方式
27
- */
28
- align?: 'flex-start' | 'center' | 'flex-end';
29
- /**
30
- * 自定义CSS类名
31
- */
32
- className?: string;
33
- /**
34
- * 自定义内联样式
35
- */
36
- style?: React.CSSProperties;
37
- }
38
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { PopconfirmProps } from './types';
3
- import './Popconfirm.css';
4
- declare const Popconfirm: React.FC<PopconfirmProps>;
5
- export default Popconfirm;
6
- export type { PopconfirmProps, PopconfirmPlacement } from './types';
@@ -1,30 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type PopconfirmPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
3
- export type PopconfirmType = 'info' | 'success' | 'warning' | 'error' | 'danger';
4
- export interface PopconfirmProps {
5
- title?: ReactNode;
6
- description?: ReactNode;
7
- okText?: string;
8
- cancelText?: string;
9
- okButtonProps?: {
10
- variant?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'link';
11
- loading?: boolean;
12
- disabled?: boolean;
13
- };
14
- cancelButtonProps?: {
15
- variant?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'link';
16
- disabled?: boolean;
17
- };
18
- onConfirm?: () => void | Promise<void>;
19
- onCancel?: () => void;
20
- disabled?: boolean;
21
- icon?: ReactNode;
22
- type?: PopconfirmType;
23
- placement?: PopconfirmPlacement;
24
- showCancel?: boolean;
25
- getContainer?: HTMLElement | (() => HTMLElement) | false;
26
- className?: string;
27
- style?: React.CSSProperties;
28
- children: React.ReactElement;
29
- }
30
- export default PopconfirmProps;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ProgressProps, ProgressStatus, ProgressType, ProgressSegment } from './types';
3
- import './Progress.css';
4
- declare const Progress: React.FC<ProgressProps>;
5
- export default Progress;
6
- export type { ProgressProps, ProgressType, ProgressStatus, ProgressSegment };
File without changes
@@ -1,59 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type ProgressType = 'line' | 'circle' | 'dashboard';
3
- export type ProgressStatus = 'success' | 'exception' | 'active' | 'normal';
4
- /** 渐变色配置 */
5
- export interface GradientConfig {
6
- from: string;
7
- to: string;
8
- direction?: 'to right' | 'to left' | 'to top' | 'to bottom' | 'to bottom right' | 'to top right' | 'to bottom left' | 'to top left';
9
- /** 是否启用波浪动画 */
10
- animated?: boolean;
11
- }
12
- /** 进度段配置 - 用于多段颜色展示 */
13
- export interface ProgressSegment {
14
- /** 该段的颜色 */
15
- color: string | GradientConfig;
16
- /** 该段占总的百分比(0-100) */
17
- percent: number;
18
- }
19
- export interface ProgressProps {
20
- /** 百分比 */
21
- percent?: number;
22
- /** 类型 */
23
- type?: ProgressType;
24
- /** 状态 */
25
- status?: ProgressStatus;
26
- /** 是否显示百分比文字 */
27
- showInfo?: boolean;
28
- /** 自定义显示文字 */
29
- format?: (percent?: number, successPercent?: number) => ReactNode;
30
- /** 进度条颜色,支持纯色字符串或渐变对象 */
31
- strokeColor?: string | GradientConfig;
32
- /** 背景颜色 */
33
- trailColor?: string;
34
- /** 线条粗细 */
35
- strokeWidth?: number;
36
- /** 线条宽度,type=line 时生效 */
37
- size?: 'small' | 'default' | 'large';
38
- /** 是否开启动画 */
39
- transition?: boolean;
40
- /** 步骤进度条的总步数 */
41
- steps?: number;
42
- /** 多段颜色配置,用于展示多个进度段 */
43
- segments?: ProgressSegment[];
44
- /** 是否开启仪表盘样式 */
45
- gapDegree?: number;
46
- /** 仪表盘缺口位置 */
47
- gapPosition?: 'top' | 'bottom' | 'left' | 'right';
48
- /** 前缀图标 */
49
- icon?: ReactNode;
50
- /** 前缀文字 */
51
- prefix?: string;
52
- /** 后缀文字 */
53
- suffix?: string;
54
- /** 自定义内部内容,支持 ReactNode,优先级高于默认的进度显示 */
55
- children?: ReactNode;
56
- className?: string;
57
- style?: React.CSSProperties;
58
- }
59
- export default ProgressProps;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { RadioProps, RadioGroupProps } from './types';
3
- import './Radio.css';
4
- declare const Radio: React.FC<RadioProps> & {
5
- Group: React.FC<RadioGroupProps>;
6
- };
7
- export default Radio;
8
- export * from './types';
@@ -1,30 +0,0 @@
1
- export interface RadioProps {
2
- value?: any;
3
- checked?: boolean;
4
- defaultChecked?: boolean;
5
- onChange?: (checked: boolean, value: any) => void;
6
- disabled?: boolean;
7
- size?: 'large' | 'middle' | 'small';
8
- children?: React.ReactNode;
9
- className?: string;
10
- style?: React.CSSProperties;
11
- /** 标签文案,显示在单选按钮前面 */
12
- label?: string | React.ReactNode;
13
- /** 标签到单选按钮的距离 */
14
- labelGap?: string | number;
15
- /** 标签的CSS类名 */
16
- labelClassName?: string;
17
- /** 标签的样式 */
18
- labelStyle?: React.CSSProperties;
19
- }
20
- export interface RadioGroupProps {
21
- value?: any;
22
- defaultValue?: any;
23
- onChange?: (value: any) => void;
24
- disabled?: boolean;
25
- type?: 'button' | 'radio';
26
- size?: 'large' | 'middle' | 'small';
27
- className?: string;
28
- style?: React.CSSProperties;
29
- children?: React.ReactNode;
30
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import './Rate.css';
3
- import { RateProps } from './types';
4
- export declare const Rate: React.FC<RateProps>;
5
- export default Rate;
@@ -1,27 +0,0 @@
1
- export interface RateProps {
2
- /** 当前评分值 */
3
- value: string | number;
4
- /** 星星总数 */
5
- count?: number;
6
- /** 是否允许半星 */
7
- allowHalf?: boolean;
8
- /** 是否只读 */
9
- disabled?: boolean;
10
- /** 自定义颜色,默认 #1677ff */
11
- color?: string;
12
- /** 评分变化回调 */
13
- onChange?: (value: string) => void;
14
- /** 自定义类名 */
15
- className?: string;
16
- /** 星星大小 */
17
- size?: number;
18
- /**
19
- * 自定义字符数组,优先级最高,隐藏默认图标,只支持整星
20
- * 注意:chats 数组中的每个元素必须是单个字符
21
- * @example
22
- * // 正确:每个元素都是单个字符
23
- * chats={['A', 'B', 'C', 'D', 'E']}
24
- * chats={['差', '较差', '一般', '良好', '优秀']} // 错误!不支持多字符
25
- */
26
- chats?: string[];
27
- }
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { SelectProps, SelectOption, TagRenderProps } from './types';
3
- import './Select.css';
4
- /**
5
- * Select 下拉选择组件
6
- * 用于从一组选项中选择一项或多项
7
- *
8
- * @example
9
- * ```tsx
10
- * // 基础用法
11
- * <Select
12
- * options={[
13
- * { value: '1', label: '选项1' },
14
- * { value: '2', label: '选项2' }
15
- * ]}
16
- * onChange={(value) => console.log(value)}
17
- * />
18
- *
19
- * // 多选模式
20
- * <Select mode="multiple" options={options} />
21
- *
22
- * // 可搜索
23
- * <Select searchable options={options} />
24
- * ```
25
- */
26
- declare const Select: React.FC<SelectProps>;
27
- export default Select;
28
- export type { SelectProps, SelectOption, TagRenderProps };
@@ -1,45 +0,0 @@
1
- import { SelectStyles } from './types';
2
- export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
- $styles?: SelectStyles["wrapper"];
4
- }>> & string;
5
- export declare const LabelWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
- export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
- export declare const Selector: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
8
- $disabled: boolean;
9
- $loading: boolean;
10
- $size: "small" | "default" | "large";
11
- $open: boolean;
12
- $styles?: SelectStyles["selector"];
13
- }>> & string;
14
- export declare const SelectorContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
15
- export declare const Placeholder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
16
- export declare const SingleValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
17
- export declare const TagsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
18
- export declare const Tag: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
19
- $disabled: boolean;
20
- $styles?: SelectStyles["tag"];
21
- }>> & string;
22
- export declare const TagClose: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
23
- export declare const SearchInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
24
- export declare const SuffixArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
25
- export declare const ClearButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
26
- export declare const Arrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
27
- $open: boolean;
28
- }>> & string;
29
- export declare const LoadingIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
30
- export declare const Dropdown: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
31
- $open: boolean;
32
- $styles?: SelectStyles["dropdown"];
33
- }>> & string;
34
- export declare const OptionList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
35
- $maxHeight?: number;
36
- }>> & string;
37
- export declare const Option: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
38
- $selected: boolean;
39
- $active: boolean;
40
- $disabled: boolean;
41
- $styles?: SelectStyles["option"];
42
- }>> & string;
43
- export declare const CheckIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
44
- export declare const Empty: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
45
- export declare const injectGlobalStyles: () => void;
@@ -1,134 +0,0 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- /**
3
- * Select 选项数据类型
4
- */
5
- export interface SelectOption {
6
- /** 选项值 */
7
- value: string | number;
8
- /** 选项显示文本 */
9
- label: string | ReactNode;
10
- /** 是否禁用 */
11
- disabled?: boolean;
12
- /** 自定义样式 */
13
- style?: CSSProperties;
14
- /** 自定义类名 */
15
- className?: string;
16
- }
17
- /**
18
- * Select 组件属性接口
19
- */
20
- export interface SelectProps {
21
- /** 当前选中的值(受控模式) */
22
- value?: string | number | (string | number)[];
23
- /** 默认选中的值(非受控模式) */
24
- defaultValue?: string | number | (string | number)[];
25
- /** 选项列表 */
26
- options?: SelectOption[];
27
- /** 是否禁用 */
28
- disabled?: boolean;
29
- /** 加载中状态 */
30
- loading?: boolean;
31
- /** 是否多选 */
32
- mode?: 'single' | 'multiple';
33
- /** 占位符文本 */
34
- placeholder?: string;
35
- /** 是否可搜索 */
36
- searchable?: boolean;
37
- /** 是否可清除 */
38
- clearable?: boolean;
39
- /** 组件尺寸 */
40
- size?: 'small' | 'default' | 'large';
41
- /** 组件宽度 */
42
- width?: string | number;
43
- /** 自定义样式 */
44
- styles?: SelectStyles;
45
- /** 外层容器样式 */
46
- style?: CSSProperties;
47
- /** 变化时的回调函数 */
48
- onChange?: (value: string | number | (string | number)[], option?: SelectOption | SelectOption[]) => void;
49
- /** 展开/收起时的回调函数 */
50
- onOpenChange?: (open: boolean) => void;
51
- /** 搜索时的回调函数 */
52
- onSearch?: (value: string) => void;
53
- /** 自定义选项渲染 */
54
- optionRender?: (option: SelectOption) => ReactNode;
55
- /** 自定义选中项渲染 */
56
- tagRender?: (props: TagRenderProps) => ReactNode;
57
- /** 标签文案,显示在选择框前面 */
58
- label?: string | ReactNode;
59
- /** 标签到选择框的距离 */
60
- labelGap?: string | number;
61
- /** 标签的CSS类名 */
62
- labelClassName?: string;
63
- /** 标签的样式 */
64
- labelStyle?: CSSProperties;
65
- /** 自定义类名 */
66
- className?: string;
67
- /** 是否显示下拉箭头 */
68
- showArrow?: boolean;
69
- /** 下拉菜单的最大高度 */
70
- maxHeight?: number;
71
- /** 空状态显示内容 */
72
- emptyContent?: ReactNode;
73
- /** 获取弹出层容器 */
74
- getPopupContainer?: () => HTMLElement;
75
- }
76
- /**
77
- * 标签渲染属性
78
- */
79
- export interface TagRenderProps {
80
- /** 选项值 */
81
- value: string | number;
82
- /** 选项标签 */
83
- label: string | ReactNode;
84
- /** 关闭回调 */
85
- onClose: (e?: React.MouseEvent) => void;
86
- /** 是否禁用 */
87
- disabled?: boolean;
88
- }
89
- /**
90
- * 样式配置接口
91
- */
92
- export interface SelectStyles {
93
- /** 外层容器样式 */
94
- wrapper?: CSSProperties;
95
- /** 选择器样式 */
96
- selector?: CSSProperties;
97
- /** 下拉菜单样式 */
98
- dropdown?: CSSProperties;
99
- /** 选项样式 */
100
- option?: CSSProperties;
101
- /** 选中标签样式(多选模式) */
102
- tag?: CSSProperties;
103
- }
104
- /**
105
- * 尺寸配置接口
106
- */
107
- export interface SelectSizeConfig {
108
- height: string;
109
- padding: string;
110
- fontSize: string;
111
- tagHeight: string;
112
- }
113
- /**
114
- * Select 主题配置接口
115
- */
116
- export interface SelectThemeConfig {
117
- colors: {
118
- primary: string;
119
- text: string;
120
- textSecondary: string;
121
- textDisabled: string;
122
- border: string;
123
- borderHover: string;
124
- borderFocus: string;
125
- bg: string;
126
- bgHover: string;
127
- bgSelected: string;
128
- };
129
- sizes: {
130
- small: SelectSizeConfig;
131
- default: SelectSizeConfig;
132
- large: SelectSizeConfig;
133
- };
134
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import './Slider.css';
3
- import { SliderProps } from './types';
4
- export declare const Slider: React.FC<SliderProps>;
5
- export default Slider;
@@ -1,28 +0,0 @@
1
- export interface MarkConfig {
2
- trackColor?: string;
3
- handleColor?: string;
4
- mark: React.ReactNode;
5
- }
6
- export type MarksTypes = Record<number, MarkConfig | string>;
7
- export interface GradientConfig {
8
- startColor: string;
9
- endColor: string;
10
- }
11
- export interface SliderProps {
12
- min?: number;
13
- max?: number;
14
- step?: number;
15
- value?: number;
16
- defaultValue?: number;
17
- disabled?: boolean;
18
- marks?: MarksTypes;
19
- showValue?: boolean;
20
- transitionSpeed?: number;
21
- trackColor?: string;
22
- handleColor?: string;
23
- onChange?: (value: number) => void;
24
- onAfterChange?: (value: number) => void;
25
- className?: string;
26
- style?: React.CSSProperties;
27
- gradient?: GradientConfig;
28
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { SpaceProps } from './types';
3
- import './Space.css';
4
- declare const Space: React.FC<SpaceProps>;
5
- export default Space;
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- export interface SpaceProps {
3
- /**
4
- * 子元素
5
- */
6
- children?: React.ReactNode;
7
- /**
8
- * 间距大小,可以是数字(px)或字符串
9
- */
10
- gap?: number | string;
11
- /**
12
- * 水平对齐方式
13
- */
14
- align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
15
- /**
16
- * 包裹方式
17
- */
18
- wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
19
- /**
20
- * 类名
21
- */
22
- className?: string;
23
- /**
24
- * 样式
25
- */
26
- style?: React.CSSProperties;
27
- /**
28
- * 是否为内联元素
29
- */
30
- inline?: boolean;
31
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { SpinProps, SpinSize } from './types';
3
- import './Spin.css';
4
- declare const Spin: React.FC<SpinProps>;
5
- export default Spin;
6
- export type { SpinProps, SpinSize };
@@ -1,44 +0,0 @@
1
- import { ReactNode, CSSProperties } from 'react';
2
- export type SpinSize = 'small' | 'default' | 'large';
3
- export interface SpinProps {
4
- /**
5
- * 是否为加载状态
6
- * @default true
7
- */
8
- spinning?: boolean;
9
- /**
10
- * 加载指示符
11
- */
12
- indicator?: ReactNode;
13
- /**
14
- * 当作为包裹元素时,可以自定义描述文案
15
- */
16
- tip?: ReactNode;
17
- /**
18
- * 组件大小
19
- * @default 'default'
20
- */
21
- size?: SpinSize;
22
- /**
23
- * 延迟显示加载效果的时间(防止闪烁)
24
- * @default 0
25
- */
26
- delay?: number;
27
- /**
28
- * 自定义类名
29
- */
30
- className?: string;
31
- /**
32
- * 自定义样式
33
- */
34
- style?: CSSProperties;
35
- /**
36
- * 包裹的子元素
37
- */
38
- children?: ReactNode;
39
- /**
40
- * 是否全屏显示
41
- * @default false
42
- */
43
- fullscreen?: boolean;
44
- }
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import './Splitter.css';
3
- import { SplitterProps } from './types';
4
- /**
5
- * Splitter 主组件 - 自由切分指定区域为多部分
6
- * 支持水平和垂直分隔,可拖拽调整各区域大小,支持多面板
7
- */
8
- export declare const Splitter: React.FC<SplitterProps>;
9
- export default Splitter;