@sia.soul/sia-react-ui 0.1.3 → 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.
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 +211 -27
  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 +2531 -2412
  24. package/dist/index.css +212 -28
  25. package/dist/index.d.cts +17 -9
  26. package/dist/index.d.ts +17 -9
  27. package/dist/index.js +224 -190
  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,5 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { HTMLAttributes, ReactNode } from 'react';
3
+ import { I as InputPlaceholderMode } from './shared-DAYZvZVu.cjs';
3
4
 
4
5
  type RichTextImagePasteHandler = (file: File) => string | Promise<string>;
5
6
  type RichTextContentFormat = "html" | "markdown";
@@ -10,6 +11,7 @@ interface RichTextEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, "chil
10
11
  contentFormat?: RichTextContentFormat;
11
12
  toolbar?: RichTextToolbar;
12
13
  placeholder?: string;
14
+ placeholderMode?: InputPlaceholderMode;
13
15
  disabled?: boolean;
14
16
  minHeight?: number | string;
15
17
  pasteImageHint?: ReactNode;
@@ -22,6 +24,6 @@ interface RichTextContentProps extends Omit<HTMLAttributes<HTMLElement>, "childr
22
24
  emptyText?: ReactNode;
23
25
  }
24
26
  declare function RichTextContent({ content, emptyText, className, ...props }: RichTextContentProps): react.JSX.Element;
25
- declare function RichTextEditor({ value, defaultValue, contentFormat, toolbar, placeholder, disabled, minHeight, pasteImageHint, onChange, onPasteImage, saveShortcut, className, id, style, "aria-label": ariaLabel, ...props }: RichTextEditorProps): react.JSX.Element;
27
+ declare function RichTextEditor({ value, defaultValue, contentFormat, toolbar, placeholder, placeholderMode, disabled, minHeight, pasteImageHint, onChange, onPasteImage, saveShortcut, className, id, style, "aria-label": ariaLabel, ...props }: RichTextEditorProps): react.JSX.Element;
26
28
 
27
29
  export { RichTextContent, type RichTextContentFormat, type RichTextContentProps, RichTextEditor, type RichTextEditorProps, type RichTextImagePasteHandler, type RichTextToolbar };
@@ -1,5 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { HTMLAttributes, ReactNode } from 'react';
3
+ import { I as InputPlaceholderMode } from './shared-DAYZvZVu.js';
3
4
 
4
5
  type RichTextImagePasteHandler = (file: File) => string | Promise<string>;
5
6
  type RichTextContentFormat = "html" | "markdown";
@@ -10,6 +11,7 @@ interface RichTextEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, "chil
10
11
  contentFormat?: RichTextContentFormat;
11
12
  toolbar?: RichTextToolbar;
12
13
  placeholder?: string;
14
+ placeholderMode?: InputPlaceholderMode;
13
15
  disabled?: boolean;
14
16
  minHeight?: number | string;
15
17
  pasteImageHint?: ReactNode;
@@ -22,6 +24,6 @@ interface RichTextContentProps extends Omit<HTMLAttributes<HTMLElement>, "childr
22
24
  emptyText?: ReactNode;
23
25
  }
24
26
  declare function RichTextContent({ content, emptyText, className, ...props }: RichTextContentProps): react.JSX.Element;
25
- declare function RichTextEditor({ value, defaultValue, contentFormat, toolbar, placeholder, disabled, minHeight, pasteImageHint, onChange, onPasteImage, saveShortcut, className, id, style, "aria-label": ariaLabel, ...props }: RichTextEditorProps): react.JSX.Element;
27
+ declare function RichTextEditor({ value, defaultValue, contentFormat, toolbar, placeholder, placeholderMode, disabled, minHeight, pasteImageHint, onChange, onPasteImage, saveShortcut, className, id, style, "aria-label": ariaLabel, ...props }: RichTextEditorProps): react.JSX.Element;
26
28
 
27
29
  export { RichTextContent, type RichTextContentFormat, type RichTextContentProps, RichTextEditor, type RichTextEditorProps, type RichTextImagePasteHandler, type RichTextToolbar };
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  RichTextContent,
3
3
  RichTextEditor
4
- } from "./chunk-OQLDEVCF.js";
5
- import "./chunk-IMZT6VCU.js";
4
+ } from "./chunk-PX6BOFTW.js";
5
+ import "./chunk-IHTODT53.js";
6
6
  import "./chunk-MBS2HXLZ.js";
7
- import "./chunk-2RRTDU3N.js";
7
+ import "./chunk-EJ23MVR6.js";
8
+ import "./chunk-EJDPRAU2.js";
8
9
  export {
9
10
  RichTextContent,
10
11
  RichTextEditor
@@ -1,6 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { InputHTMLAttributes, ReactNode, HTMLAttributes, CSSProperties } from 'react';
3
- import { C as ControlSize, a as ControlStatus, d as SelectOption, f as SelectValue } from './Select-CJJ5LQap.js';
3
+ import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-DAYZvZVu.js';
4
+ import { c as SelectOption, e as SelectValue } from './Select-rtDktLYY.js';
4
5
 
5
6
  type DatePickerShowTime = boolean | {
6
7
  showSecond?: boolean;
@@ -23,6 +24,7 @@ type DatePickerDisabledInfo = {
23
24
  };
24
25
  type SharedDatePickerProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "value" | "defaultValue" | "onChange" | "multiple">;
25
26
  interface DatePickerProps extends SharedDatePickerProps {
27
+ placeholderMode?: InputPlaceholderMode;
26
28
  value?: DatePickerValue;
27
29
  defaultValue?: DatePickerValue;
28
30
  picker?: DatePickerType;
@@ -60,8 +62,8 @@ interface DateRangePickerProps extends Omit<DatePickerProps, "value" | "defaultV
60
62
  onCalendarChange?: (value: readonly [string, string]) => void;
61
63
  onChange?: (value: readonly [string, string]) => void;
62
64
  }
63
- declare function DateRangePicker({ value, defaultValue, placeholder, separator, presets, maxRangeDays, allowEmpty, endpointDisabled, size, status, allowClear, needConfirm, showTime, showToday, open, defaultOpen, suffixIcon, minDate, maxDate, disabledDate, disabled, className, onCalendarChange, onChange, onOpenChange, formatValue, renderExtraFooter, ...props }: DateRangePickerProps): react.JSX.Element;
64
- declare function DatePicker({ value, defaultValue, picker, size, status, allowClear, multiple, needConfirm, showTime, showToday, open, defaultOpen, suffixIcon, minDate, maxDate, presets, disabledDate, disabled, className, onChange, onOpenChange, placeholder, formatValue, renderExtraFooter, ...props }: DatePickerProps): react.JSX.Element;
65
+ declare function DateRangePicker({ value, defaultValue, placeholder, placeholderMode, separator, presets, maxRangeDays, allowEmpty, endpointDisabled, size, status, allowClear, needConfirm, showTime, showToday, open, defaultOpen, suffixIcon, minDate, maxDate, disabledDate, disabled, className, onCalendarChange, onChange, onOpenChange, formatValue, renderExtraFooter, ...props }: DateRangePickerProps): react.JSX.Element;
66
+ declare function DatePicker({ value, defaultValue, picker, size, status, allowClear, multiple, needConfirm, showTime, showToday, open, defaultOpen, suffixIcon, minDate, maxDate, presets, disabledDate, disabled, className, onChange, onOpenChange, placeholder, placeholderMode, formatValue, renderExtraFooter, ...props }: DatePickerProps): react.JSX.Element;
65
67
  declare namespace DatePicker {
66
68
  const RangePicker: typeof DateRangePicker;
67
69
  }
@@ -75,6 +77,7 @@ interface SelectDateRangeProps extends Omit<HTMLAttributes<HTMLDivElement>, "def
75
77
  value?: SelectDateRangeValue;
76
78
  defaultValue?: SelectDateRangeValue;
77
79
  selectPlaceholder?: ReactNode;
80
+ placeholderMode?: InputPlaceholderMode;
78
81
  /** 左侧选择器宽度,数字单位为 px;右侧日期范围自动填充剩余宽度。 */
79
82
  selectWidth?: CSSProperties["width"];
80
83
  rangePlaceholder?: readonly [string, string];
@@ -86,6 +89,6 @@ interface SelectDateRangeProps extends Omit<HTMLAttributes<HTMLDivElement>, "def
86
89
  disabled?: boolean;
87
90
  onChange?: (value: SelectDateRangeValue) => void;
88
91
  }
89
- declare function SelectDateRange({ options, value, defaultValue, selectPlaceholder, selectWidth, rangePlaceholder, selectAriaLabel, rangeAriaLabel, presets, size, status, disabled, onChange, className, style, ...props }: SelectDateRangeProps): react.JSX.Element;
92
+ declare function SelectDateRange({ options, value, defaultValue, selectPlaceholder, placeholderMode, selectWidth, rangePlaceholder, selectAriaLabel, rangeAriaLabel, presets, size, status, disabled, onChange, className, style, ...props }: SelectDateRangeProps): react.JSX.Element;
90
93
 
91
94
  export { DatePicker as D, SelectDateRange as S, type DatePickerDisabledInfo as a, type DatePickerPreset as b, type DatePickerProps as c, type DatePickerShowTime as d, type DatePickerType as e, type DatePickerValue as f, type DateRangePickerPreset as g, type DateRangePickerProps as h, type SelectDateRangeProps as i, type SelectDateRangeValue as j };
@@ -1,6 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { InputHTMLAttributes, ReactNode, HTMLAttributes, CSSProperties } from 'react';
3
- import { C as ControlSize, a as ControlStatus, d as SelectOption, f as SelectValue } from './Select-CJJ5LQap.cjs';
3
+ import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-DAYZvZVu.cjs';
4
+ import { c as SelectOption, e as SelectValue } from './Select-GiTHMScg.cjs';
4
5
 
5
6
  type DatePickerShowTime = boolean | {
6
7
  showSecond?: boolean;
@@ -23,6 +24,7 @@ type DatePickerDisabledInfo = {
23
24
  };
24
25
  type SharedDatePickerProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "value" | "defaultValue" | "onChange" | "multiple">;
25
26
  interface DatePickerProps extends SharedDatePickerProps {
27
+ placeholderMode?: InputPlaceholderMode;
26
28
  value?: DatePickerValue;
27
29
  defaultValue?: DatePickerValue;
28
30
  picker?: DatePickerType;
@@ -60,8 +62,8 @@ interface DateRangePickerProps extends Omit<DatePickerProps, "value" | "defaultV
60
62
  onCalendarChange?: (value: readonly [string, string]) => void;
61
63
  onChange?: (value: readonly [string, string]) => void;
62
64
  }
63
- declare function DateRangePicker({ value, defaultValue, placeholder, separator, presets, maxRangeDays, allowEmpty, endpointDisabled, size, status, allowClear, needConfirm, showTime, showToday, open, defaultOpen, suffixIcon, minDate, maxDate, disabledDate, disabled, className, onCalendarChange, onChange, onOpenChange, formatValue, renderExtraFooter, ...props }: DateRangePickerProps): react.JSX.Element;
64
- declare function DatePicker({ value, defaultValue, picker, size, status, allowClear, multiple, needConfirm, showTime, showToday, open, defaultOpen, suffixIcon, minDate, maxDate, presets, disabledDate, disabled, className, onChange, onOpenChange, placeholder, formatValue, renderExtraFooter, ...props }: DatePickerProps): react.JSX.Element;
65
+ declare function DateRangePicker({ value, defaultValue, placeholder, placeholderMode, separator, presets, maxRangeDays, allowEmpty, endpointDisabled, size, status, allowClear, needConfirm, showTime, showToday, open, defaultOpen, suffixIcon, minDate, maxDate, disabledDate, disabled, className, onCalendarChange, onChange, onOpenChange, formatValue, renderExtraFooter, ...props }: DateRangePickerProps): react.JSX.Element;
66
+ declare function DatePicker({ value, defaultValue, picker, size, status, allowClear, multiple, needConfirm, showTime, showToday, open, defaultOpen, suffixIcon, minDate, maxDate, presets, disabledDate, disabled, className, onChange, onOpenChange, placeholder, placeholderMode, formatValue, renderExtraFooter, ...props }: DatePickerProps): react.JSX.Element;
65
67
  declare namespace DatePicker {
66
68
  const RangePicker: typeof DateRangePicker;
67
69
  }
@@ -75,6 +77,7 @@ interface SelectDateRangeProps extends Omit<HTMLAttributes<HTMLDivElement>, "def
75
77
  value?: SelectDateRangeValue;
76
78
  defaultValue?: SelectDateRangeValue;
77
79
  selectPlaceholder?: ReactNode;
80
+ placeholderMode?: InputPlaceholderMode;
78
81
  /** 左侧选择器宽度,数字单位为 px;右侧日期范围自动填充剩余宽度。 */
79
82
  selectWidth?: CSSProperties["width"];
80
83
  rangePlaceholder?: readonly [string, string];
@@ -86,6 +89,6 @@ interface SelectDateRangeProps extends Omit<HTMLAttributes<HTMLDivElement>, "def
86
89
  disabled?: boolean;
87
90
  onChange?: (value: SelectDateRangeValue) => void;
88
91
  }
89
- declare function SelectDateRange({ options, value, defaultValue, selectPlaceholder, selectWidth, rangePlaceholder, selectAriaLabel, rangeAriaLabel, presets, size, status, disabled, onChange, className, style, ...props }: SelectDateRangeProps): react.JSX.Element;
92
+ declare function SelectDateRange({ options, value, defaultValue, selectPlaceholder, placeholderMode, selectWidth, rangePlaceholder, selectAriaLabel, rangeAriaLabel, presets, size, status, disabled, onChange, className, style, ...props }: SelectDateRangeProps): react.JSX.Element;
90
93
 
91
94
  export { DatePicker as D, SelectDateRange as S, type DatePickerDisabledInfo as a, type DatePickerPreset as b, type DatePickerProps as c, type DatePickerShowTime as d, type DatePickerType as e, type DatePickerValue as f, type DateRangePickerPreset as g, type DateRangePickerProps as h, type SelectDateRangeProps as i, type SelectDateRangeValue as j };