@sia.soul/sia-react-ui 0.1.20 → 0.1.22
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/dist/Select-4hGJt3RJ.d.cts +142 -0
- package/dist/Select-BNSE67xn.d.ts +142 -0
- package/dist/chart.d.cts +2498 -0
- package/dist/chart.d.ts +2498 -0
- package/dist/{chunk-4HB6GC24.js → chunk-3TRRBMXY.js} +37 -8
- package/dist/{chunk-3RWL67CK.js → chunk-7RNS52YG.js} +38 -5
- package/dist/{chunk-SUMXP2SF.js → chunk-KLI65JVD.js} +12 -4
- package/dist/{chunk-I3EF5SF2.js → chunk-RWGSZW32.js} +1 -1
- package/dist/{chunk-LO3BUBWU.js → chunk-VN6PIPP7.js} +2 -2
- package/dist/{core-CdoVqv0o.d.ts → core-C5OnrCi4.d.cts} +1207 -3
- package/dist/{core-CM79w-7A.d.cts → core-DeZknKwc.d.ts} +1207 -3
- package/dist/core.cjs +77 -13
- package/dist/core.css +29 -5
- package/dist/core.d.cts +3 -3
- package/dist/core.d.ts +3 -3
- package/dist/core.js +3 -3
- package/dist/index.cjs +167 -25
- package/dist/index.css +29 -5
- package/dist/index.d.cts +1697 -8
- package/dist/index.d.ts +1697 -8
- package/dist/index.js +89 -17
- package/dist/markdown-editor.d.cts +41 -1
- package/dist/markdown-editor.d.ts +41 -1
- package/dist/rich-text-editor.cjs +11 -3
- package/dist/rich-text-editor.d.cts +46 -1
- package/dist/rich-text-editor.d.ts +46 -1
- package/dist/rich-text-editor.js +2 -2
- package/dist/{select-date-range-4tEYkA5O.d.cts → select-date-range-CGRb3-W8.d.ts} +116 -2
- package/dist/{select-date-range-D-ynrB5k.d.ts → select-date-range-DDmYGDD4.d.cts} +116 -2
- package/dist/select-date-range.cjs +36 -7
- package/dist/select-date-range.d.cts +3 -3
- package/dist/select-date-range.d.ts +3 -3
- package/dist/select-date-range.js +3 -3
- package/dist/{shared-DAYZvZVu.d.cts → shared-Bx4B28Wh.d.cts} +3 -0
- package/dist/{shared-DAYZvZVu.d.ts → shared-Bx4B28Wh.d.ts} +3 -0
- package/package.json +1 -1
- package/dist/Select-Cz3hzQl_.d.ts +0 -57
- package/dist/Select-Da9CLN0X.d.cts +0 -57
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-DAYZvZVu.js';
|
|
4
|
-
|
|
5
|
-
type SelectValue = string | number;
|
|
6
|
-
type SelectMode = "single" | "multiple";
|
|
7
|
-
type SelectChangeValue = SelectValue | SelectValue[] | null;
|
|
8
|
-
type SelectOption = {
|
|
9
|
-
label: ReactNode;
|
|
10
|
-
value: SelectValue;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
/** 弹框模式中的分组标题。 */
|
|
13
|
-
group?: string;
|
|
14
|
-
};
|
|
15
|
-
interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "defaultValue" | "onChange" | "value"> {
|
|
16
|
-
options: readonly SelectOption[];
|
|
17
|
-
mode?: SelectMode;
|
|
18
|
-
popupMode?: "dropdown" | "modal";
|
|
19
|
-
modalConfig?: {
|
|
20
|
-
title?: ReactNode;
|
|
21
|
-
width?: number | string;
|
|
22
|
-
columns?: number;
|
|
23
|
-
maxHeight?: number;
|
|
24
|
-
footerExtra?: ReactNode;
|
|
25
|
-
};
|
|
26
|
-
value?: SelectChangeValue;
|
|
27
|
-
defaultValue?: SelectChangeValue;
|
|
28
|
-
onChange?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null) => void;
|
|
29
|
-
placeholder?: ReactNode;
|
|
30
|
-
placeholderMode?: InputPlaceholderMode;
|
|
31
|
-
size?: ControlSize;
|
|
32
|
-
status?: ControlStatus;
|
|
33
|
-
allowClear?: boolean;
|
|
34
|
-
loading?: boolean;
|
|
35
|
-
showSearch?: boolean;
|
|
36
|
-
/** 在选项名称下方显示对应的 value。 */
|
|
37
|
-
showValue?: boolean;
|
|
38
|
-
/** 允许将搜索框内容作为自定义选项提交。 */
|
|
39
|
-
allowInput?: boolean;
|
|
40
|
-
inputMaxLength?: number;
|
|
41
|
-
searchPlaceholder?: string;
|
|
42
|
-
onSearch?: (query: string) => void;
|
|
43
|
-
filterOption?: (query: string, option: SelectOption) => boolean;
|
|
44
|
-
showSelectAll?: boolean;
|
|
45
|
-
/** 是否显示下拉面板底部的条数统计与操作行;默认单选隐藏、多选显示,不影响弹框模式。 */
|
|
46
|
-
showActions?: boolean;
|
|
47
|
-
/** 最多显示的标签数;空间不足时会继续折叠,并为 +N 预留宽度。 */
|
|
48
|
-
maxTagCount?: number;
|
|
49
|
-
virtual?: boolean;
|
|
50
|
-
virtualThreshold?: number;
|
|
51
|
-
listHeight?: number;
|
|
52
|
-
optionHeight?: number;
|
|
53
|
-
notFoundContent?: ReactNode;
|
|
54
|
-
}
|
|
55
|
-
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
56
|
-
|
|
57
|
-
export { type SelectOption as S, type SelectChangeValue as a, type SelectProps as b, Select as c, type SelectMode as d, type SelectValue as e };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-DAYZvZVu.cjs';
|
|
4
|
-
|
|
5
|
-
type SelectValue = string | number;
|
|
6
|
-
type SelectMode = "single" | "multiple";
|
|
7
|
-
type SelectChangeValue = SelectValue | SelectValue[] | null;
|
|
8
|
-
type SelectOption = {
|
|
9
|
-
label: ReactNode;
|
|
10
|
-
value: SelectValue;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
/** 弹框模式中的分组标题。 */
|
|
13
|
-
group?: string;
|
|
14
|
-
};
|
|
15
|
-
interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "defaultValue" | "onChange" | "value"> {
|
|
16
|
-
options: readonly SelectOption[];
|
|
17
|
-
mode?: SelectMode;
|
|
18
|
-
popupMode?: "dropdown" | "modal";
|
|
19
|
-
modalConfig?: {
|
|
20
|
-
title?: ReactNode;
|
|
21
|
-
width?: number | string;
|
|
22
|
-
columns?: number;
|
|
23
|
-
maxHeight?: number;
|
|
24
|
-
footerExtra?: ReactNode;
|
|
25
|
-
};
|
|
26
|
-
value?: SelectChangeValue;
|
|
27
|
-
defaultValue?: SelectChangeValue;
|
|
28
|
-
onChange?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null) => void;
|
|
29
|
-
placeholder?: ReactNode;
|
|
30
|
-
placeholderMode?: InputPlaceholderMode;
|
|
31
|
-
size?: ControlSize;
|
|
32
|
-
status?: ControlStatus;
|
|
33
|
-
allowClear?: boolean;
|
|
34
|
-
loading?: boolean;
|
|
35
|
-
showSearch?: boolean;
|
|
36
|
-
/** 在选项名称下方显示对应的 value。 */
|
|
37
|
-
showValue?: boolean;
|
|
38
|
-
/** 允许将搜索框内容作为自定义选项提交。 */
|
|
39
|
-
allowInput?: boolean;
|
|
40
|
-
inputMaxLength?: number;
|
|
41
|
-
searchPlaceholder?: string;
|
|
42
|
-
onSearch?: (query: string) => void;
|
|
43
|
-
filterOption?: (query: string, option: SelectOption) => boolean;
|
|
44
|
-
showSelectAll?: boolean;
|
|
45
|
-
/** 是否显示下拉面板底部的条数统计与操作行;默认单选隐藏、多选显示,不影响弹框模式。 */
|
|
46
|
-
showActions?: boolean;
|
|
47
|
-
/** 最多显示的标签数;空间不足时会继续折叠,并为 +N 预留宽度。 */
|
|
48
|
-
maxTagCount?: number;
|
|
49
|
-
virtual?: boolean;
|
|
50
|
-
virtualThreshold?: number;
|
|
51
|
-
listHeight?: number;
|
|
52
|
-
optionHeight?: number;
|
|
53
|
-
notFoundContent?: ReactNode;
|
|
54
|
-
}
|
|
55
|
-
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
56
|
-
|
|
57
|
-
export { type SelectOption as S, type SelectChangeValue as a, type SelectProps as b, Select as c, type SelectMode as d, type SelectValue as e };
|