@sia.soul/sia-react-ui 0.1.3 → 0.1.5

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 (44) hide show
  1. package/dist/{Select-CJJ5LQap.d.ts → Select-GiTHMScg.d.cts} +4 -5
  2. package/dist/{Select-CJJ5LQap.d.cts → Select-rtDktLYY.d.ts} +4 -5
  3. package/dist/chart.cjs +731 -707
  4. package/dist/chart.css +1 -1
  5. package/dist/chart.js +3 -2
  6. package/dist/{chunk-6VXOLMKZ.js → chunk-5ZTWY3PG.js} +18 -1
  7. package/dist/{chunk-2RRTDU3N.js → chunk-EJ23MVR6.js} +3 -18
  8. package/dist/chunk-EJDPRAU2.js +36 -0
  9. package/dist/{chunk-IMZT6VCU.js → chunk-IHTODT53.js} +8 -5
  10. package/dist/{chunk-R4OWKIXJ.js → chunk-MJUTLEEE.js} +20 -8
  11. package/dist/{chunk-OQLDEVCF.js → chunk-PX6BOFTW.js} +10 -3
  12. package/dist/{chunk-OAC7BSUR.js → chunk-R7BVDN3Q.js} +91 -43
  13. package/dist/{chunk-Q4XNFMUH.js → chunk-S2JAJCLN.js} +6 -4
  14. package/dist/{chunk-NZAT2RUM.js → chunk-WHARTF2I.js} +10 -1
  15. package/dist/{chunk-I342FGQY.js → chunk-Z3T6RDQP.js} +1 -1
  16. package/dist/{core-DFYheaoJ.d.ts → core-CBtbeAms.d.cts} +2 -1
  17. package/dist/{core-De2pRX5w.d.cts → core-D8BSMfHD.d.ts} +2 -1
  18. package/dist/core.cjs +275 -210
  19. package/dist/core.css +294 -41
  20. package/dist/core.d.cts +3 -2
  21. package/dist/core.d.ts +3 -2
  22. package/dist/core.js +6 -5
  23. package/dist/index.cjs +2709 -2434
  24. package/dist/index.css +295 -42
  25. package/dist/index.d.cts +23 -9
  26. package/dist/index.d.ts +23 -9
  27. package/dist/index.js +414 -224
  28. package/dist/markdown-editor.cjs +52 -20
  29. package/dist/markdown-editor.d.cts +3 -1
  30. package/dist/markdown-editor.d.ts +3 -1
  31. package/dist/markdown-editor.js +2 -1
  32. package/dist/rich-text-editor.cjs +884 -864
  33. package/dist/rich-text-editor.d.cts +3 -1
  34. package/dist/rich-text-editor.d.ts +3 -1
  35. package/dist/rich-text-editor.js +4 -3
  36. package/dist/{select-date-range-DOyG1DGp.d.ts → select-date-range-CQ1vmze_.d.ts} +7 -4
  37. package/dist/{select-date-range-UyYrHex6.d.cts → select-date-range-DRmGaEzP.d.cts} +7 -4
  38. package/dist/select-date-range.cjs +972 -903
  39. package/dist/select-date-range.d.cts +3 -2
  40. package/dist/select-date-range.d.ts +3 -2
  41. package/dist/select-date-range.js +4 -3
  42. package/dist/shared-DAYZvZVu.d.cts +5 -0
  43. package/dist/shared-DAYZvZVu.d.ts +5 -0
  44. package/package.json +1 -1
@@ -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 { type ControlSize as C, type InputPlaceholderMode as I, Select as S, type ControlStatus as a, type SelectChangeValue as b, type SelectMode as c, type SelectOption as d, type SelectProps as e, type SelectValue as f };
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 { type ControlSize as C, type InputPlaceholderMode as I, Select as S, type ControlStatus as a, type SelectChangeValue as b, type SelectMode as c, type SelectOption as d, type SelectProps as e, type SelectValue as f };
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 };