@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.
- 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-2RRTDU3N.js → chunk-EJ23MVR6.js} +3 -18
- package/dist/chunk-EJDPRAU2.js +36 -0
- package/dist/{chunk-IMZT6VCU.js → chunk-IHTODT53.js} +8 -5
- package/dist/{chunk-R4OWKIXJ.js → chunk-MJUTLEEE.js} +20 -8
- package/dist/{chunk-OQLDEVCF.js → chunk-PX6BOFTW.js} +10 -3
- package/dist/{chunk-OAC7BSUR.js → chunk-R7BVDN3Q.js} +91 -43
- package/dist/{chunk-Q4XNFMUH.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 +275 -210
- package/dist/core.css +294 -41
- package/dist/core.d.cts +3 -2
- package/dist/core.d.ts +3 -2
- package/dist/core.js +6 -5
- package/dist/index.cjs +2709 -2434
- package/dist/index.css +295 -42
- package/dist/index.d.cts +23 -9
- package/dist/index.d.ts +23 -9
- package/dist/index.js +414 -224
- 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 +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 };
|
package/dist/rich-text-editor.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RichTextContent,
|
|
3
3
|
RichTextEditor
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-PX6BOFTW.js";
|
|
5
|
+
import "./chunk-IHTODT53.js";
|
|
6
6
|
import "./chunk-MBS2HXLZ.js";
|
|
7
|
-
import "./chunk-
|
|
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 {
|
|
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 {
|
|
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 };
|