@sia.soul/sia-react-ui 0.1.2 → 0.1.4
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-CJJ5LQap.d.ts → Select-GiTHMScg.d.cts} +4 -5
- package/dist/{Select-CJJ5LQap.d.cts → Select-rtDktLYY.d.ts} +4 -5
- package/dist/chart.cjs +731 -707
- package/dist/chart.css +1 -1
- package/dist/chart.js +3 -2
- package/dist/{chunk-6VXOLMKZ.js → chunk-5ZTWY3PG.js} +18 -1
- package/dist/{chunk-YCVXUMGP.js → chunk-EJ23MVR6.js} +5 -20
- package/dist/chunk-EJDPRAU2.js +36 -0
- package/dist/{chunk-DZ45HRVP.js → chunk-IHTODT53.js} +8 -5
- package/dist/{chunk-QEDWRVDA.js → chunk-MJUTLEEE.js} +20 -8
- package/dist/{chunk-OMA75YLM.js → chunk-PX6BOFTW.js} +10 -3
- package/dist/{chunk-JKZGAZMB.js → chunk-R7BVDN3Q.js} +91 -43
- package/dist/{chunk-ZPYGBMBH.js → chunk-S2JAJCLN.js} +6 -4
- package/dist/{chunk-NZAT2RUM.js → chunk-WHARTF2I.js} +10 -1
- package/dist/{chunk-I342FGQY.js → chunk-Z3T6RDQP.js} +1 -1
- package/dist/{core-DFYheaoJ.d.ts → core-CBtbeAms.d.cts} +2 -1
- package/dist/{core-De2pRX5w.d.cts → core-D8BSMfHD.d.ts} +2 -1
- package/dist/core.cjs +277 -212
- package/dist/core.css +238 -38
- package/dist/core.d.cts +3 -2
- package/dist/core.d.ts +3 -2
- package/dist/core.js +6 -5
- package/dist/index.cjs +2538 -2416
- package/dist/index.css +239 -39
- package/dist/index.d.cts +18 -9
- package/dist/index.d.ts +18 -9
- package/dist/index.js +230 -193
- package/dist/markdown-editor.cjs +52 -20
- package/dist/markdown-editor.d.cts +3 -1
- package/dist/markdown-editor.d.ts +3 -1
- package/dist/markdown-editor.js +2 -1
- package/dist/rich-text-editor.cjs +884 -864
- package/dist/rich-text-editor.d.cts +3 -1
- package/dist/rich-text-editor.d.ts +3 -1
- package/dist/rich-text-editor.js +4 -3
- package/dist/{select-date-range-DOyG1DGp.d.ts → select-date-range-CQ1vmze_.d.ts} +7 -4
- package/dist/{select-date-range-UyYrHex6.d.cts → select-date-range-DRmGaEzP.d.cts} +7 -4
- package/dist/select-date-range.cjs +972 -903
- package/dist/select-date-range.d.cts +3 -2
- package/dist/select-date-range.d.ts +3 -2
- package/dist/select-date-range.js +4 -3
- package/dist/shared-DAYZvZVu.d.cts +5 -0
- package/dist/shared-DAYZvZVu.d.ts +5 -0
- package/package.json +129 -129
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
type ControlSize = "small" | "medium" | "large";
|
|
5
|
-
type ControlStatus = "default" | "warning" | "error";
|
|
6
|
-
type InputPlaceholderMode = "default" | "floating";
|
|
3
|
+
import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-DAYZvZVu.cjs';
|
|
7
4
|
|
|
8
5
|
type SelectValue = string | number;
|
|
9
6
|
type SelectMode = "single" | "multiple";
|
|
@@ -20,6 +17,7 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
20
17
|
defaultValue?: SelectChangeValue;
|
|
21
18
|
onChange?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null) => void;
|
|
22
19
|
placeholder?: ReactNode;
|
|
20
|
+
placeholderMode?: InputPlaceholderMode;
|
|
23
21
|
size?: ControlSize;
|
|
24
22
|
status?: ControlStatus;
|
|
25
23
|
allowClear?: boolean;
|
|
@@ -32,6 +30,7 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
32
30
|
onSearch?: (query: string) => void;
|
|
33
31
|
filterOption?: (query: string, option: SelectOption) => boolean;
|
|
34
32
|
showSelectAll?: boolean;
|
|
33
|
+
/** 最多显示的标签数;空间不足时会继续折叠,并为 +N 预留宽度。 */
|
|
35
34
|
maxTagCount?: number;
|
|
36
35
|
virtual?: boolean;
|
|
37
36
|
virtualThreshold?: number;
|
|
@@ -41,4 +40,4 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
41
40
|
}
|
|
42
41
|
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
43
42
|
|
|
44
|
-
export {
|
|
43
|
+
export { Select as S, type SelectChangeValue as a, type SelectMode as b, type SelectOption as c, type SelectProps as d, type SelectValue as e };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
type ControlSize = "small" | "medium" | "large";
|
|
5
|
-
type ControlStatus = "default" | "warning" | "error";
|
|
6
|
-
type InputPlaceholderMode = "default" | "floating";
|
|
3
|
+
import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-DAYZvZVu.js';
|
|
7
4
|
|
|
8
5
|
type SelectValue = string | number;
|
|
9
6
|
type SelectMode = "single" | "multiple";
|
|
@@ -20,6 +17,7 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
20
17
|
defaultValue?: SelectChangeValue;
|
|
21
18
|
onChange?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null) => void;
|
|
22
19
|
placeholder?: ReactNode;
|
|
20
|
+
placeholderMode?: InputPlaceholderMode;
|
|
23
21
|
size?: ControlSize;
|
|
24
22
|
status?: ControlStatus;
|
|
25
23
|
allowClear?: boolean;
|
|
@@ -32,6 +30,7 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
32
30
|
onSearch?: (query: string) => void;
|
|
33
31
|
filterOption?: (query: string, option: SelectOption) => boolean;
|
|
34
32
|
showSelectAll?: boolean;
|
|
33
|
+
/** 最多显示的标签数;空间不足时会继续折叠,并为 +N 预留宽度。 */
|
|
35
34
|
maxTagCount?: number;
|
|
36
35
|
virtual?: boolean;
|
|
37
36
|
virtualThreshold?: number;
|
|
@@ -41,4 +40,4 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
41
40
|
}
|
|
42
41
|
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
43
42
|
|
|
44
|
-
export {
|
|
43
|
+
export { Select as S, type SelectChangeValue as a, type SelectMode as b, type SelectOption as c, type SelectProps as d, type SelectValue as e };
|