@sia.soul/sia-react-ui 0.1.12 → 0.1.14

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 (35) hide show
  1. package/dist/chart.cjs +21 -13
  2. package/dist/chart.js +4 -4
  3. package/dist/{chunk-RLTG3IK7.js → chunk-25BU7YTB.js} +21 -11
  4. package/dist/{chunk-EJDPRAU2.js → chunk-3VJ4CZDQ.js} +7 -0
  5. package/dist/{chunk-JJVD2ITI.js → chunk-ALWHRV4L.js} +7 -4
  6. package/dist/{chunk-MOOMDRAN.js → chunk-K3XRTEIO.js} +9 -7
  7. package/dist/{chunk-F3VH6LJH.js → chunk-MUTJVDM6.js} +3 -3
  8. package/dist/{chunk-Z3T6RDQP.js → chunk-OKP4DIQH.js} +2 -2
  9. package/dist/{chunk-5ZTWY3PG.js → chunk-QJ4OQNQ4.js} +3 -3
  10. package/dist/{chunk-BUMS62NO.js → chunk-R3TYVU53.js} +14 -8
  11. package/dist/{chunk-MBS2HXLZ.js → chunk-TZGUBGA4.js} +6 -1
  12. package/dist/{chunk-WHARTF2I.js → chunk-YT6E3X2K.js} +5 -2
  13. package/dist/{core-y0w5PBO2.d.cts → core-BK8AXc12.d.cts} +3 -2
  14. package/dist/{core-VmiEI1Jp.d.ts → core-CJK3_KTQ.d.ts} +3 -2
  15. package/dist/core.cjs +54 -40
  16. package/dist/core.css +344 -40
  17. package/dist/core.d.cts +1 -1
  18. package/dist/core.d.ts +1 -1
  19. package/dist/core.js +6 -6
  20. package/dist/index.cjs +312 -123
  21. package/dist/index.css +344 -40
  22. package/dist/index.d.cts +27 -14
  23. package/dist/index.d.ts +27 -14
  24. package/dist/index.js +255 -88
  25. package/dist/markdown-editor.cjs +3 -2
  26. package/dist/markdown-editor.js +2 -2
  27. package/dist/rich-text-editor.cjs +9 -2
  28. package/dist/rich-text-editor.js +4 -4
  29. package/dist/{select-date-range-D-JMfpwD.d.ts → select-date-range-Bdb-hi9c.d.ts} +3 -3
  30. package/dist/{select-date-range-l-xgB959.d.cts → select-date-range-shDQ5uJA.d.cts} +3 -3
  31. package/dist/select-date-range.cjs +35 -15
  32. package/dist/select-date-range.d.cts +1 -1
  33. package/dist/select-date-range.d.ts +1 -1
  34. package/dist/select-date-range.js +5 -5
  35. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes } from 'react';
3
- import { O as OverlayContainer, a as OverlayApiHandle, B as ButtonProps } from './core-y0w5PBO2.cjs';
4
- export { b as Badge, c as BadgeProps, d as BadgeRibbonProps, e as BadgeStatus, f as Breadcrumb, g as BreadcrumbItem, h as BreadcrumbProps, i as Button, j as ButtonSize, k as ButtonVariant, C as Calendar, l as CalendarProps, m as Card, n as CardAccent, o as CardProps, p as Carousel, q as CarouselProps, r as CarouselRef, s as Collapse, t as CollapseItem, u as CollapseKey, v as CollapseProps, D as Dropdown, w as DropdownButtonProps, x as DropdownMenuProps, y as DropdownOpenSource, z as DropdownPlacement, A as DropdownProps, E as DropdownTrigger, F as FILLED_ICON_NAMES, G as FilledIconName, H as FloatButton, I as FloatButtonBackTopProps, J as FloatButtonGroupProps, K as FloatButtonProps, L as FloatButtonShape, M as FloatingPlacement, N as FloatingTrigger, P as ICON_NAMES, Q as Icon, R as IconName, S as IconProps, T as IconVariant, U as Image, V as ImagePreview, W as ImagePreviewConfig, X as ImagePreviewProps, Y as ImageProps, Z as Input, _ as InputProps, $ as Menu, a0 as MenuClickInfo, a1 as MenuItem, a2 as MenuMode, a3 as MenuProps, a4 as MenuTheme, a5 as MessageConfig, a6 as MessageHandle, a7 as MessageKey, a8 as MessageType, a9 as Modal, aa as ModalActionResult, ab as ModalOpenConfig, ac as ModalProps, ad as ModalType, ae as NotificationConfig, af as NotificationPlacement, ag as NotificationType, ah as Popconfirm, ai as PopconfirmProps, aj as Popover, ak as PopoverProps, al as Progress, am as ProgressProps, an as ProgressStatus, ao as Rate, ap as RateProps, aq as Segmented, ar as SegmentedOption, as as SegmentedProps, at as SegmentedValue, au as Spin, av as SpinProps, aw as StepItem, ax as StepStatus, ay as Steps, az as StepsProps, aA as TabItem, aB as Tabs, aC as TabsContextMenuClickInfo, aD as TabsOrientation, aE as TabsPosition, aF as TabsProps, aG as TabsType, aH as Tag, aI as TagProps, aJ as TagStatus, aK as TagVariant, aL as Timeline, aM as TimelineItem, aN as TimelineProps, aO as Tooltip, aP as TooltipProps, aQ as Tour, aR as TourProps, aS as TourStep, aT as Tree, aU as TreeDropPosition, aV as TreeKey, aW as TreeNode, aX as TreeProps, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, b8 as Watermark, b9 as WatermarkFont, ba as WatermarkProps, bb as message, bc as notification } from './core-y0w5PBO2.cjs';
5
- import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-DAYZvZVu.cjs';
6
- export { D as DatePicker, a as DatePickerDisabledInfo, b as DatePickerPreset, c as DatePickerProps, d as DatePickerShowTime, e as DatePickerType, f as DatePickerValue, g as DateRangePickerPreset, h as DateRangePickerProps, S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-l-xgB959.cjs';
3
+ import { O as OverlayContainer, a as OverlayApiHandle, B as ButtonProps } from './core-BK8AXc12.cjs';
4
+ export { b as Badge, c as BadgeProps, d as BadgeRibbonProps, e as BadgeStatus, f as Breadcrumb, g as BreadcrumbItem, h as BreadcrumbProps, i as Button, j as ButtonSize, k as ButtonVariant, C as Calendar, l as CalendarProps, m as Card, n as CardAccent, o as CardProps, p as Carousel, q as CarouselProps, r as CarouselRef, s as Collapse, t as CollapseItem, u as CollapseKey, v as CollapseProps, D as Dropdown, w as DropdownButtonProps, x as DropdownMenuProps, y as DropdownOpenSource, z as DropdownPlacement, A as DropdownProps, E as DropdownTrigger, F as FILLED_ICON_NAMES, G as FilledIconName, H as FloatButton, I as FloatButtonBackTopProps, J as FloatButtonGroupProps, K as FloatButtonProps, L as FloatButtonShape, M as FloatingPlacement, N as FloatingTrigger, P as ICON_NAMES, Q as Icon, R as IconName, S as IconProps, T as IconVariant, U as Image, V as ImagePreview, W as ImagePreviewConfig, X as ImagePreviewProps, Y as ImageProps, Z as Input, _ as InputProps, $ as Menu, a0 as MenuClickInfo, a1 as MenuItem, a2 as MenuMode, a3 as MenuProps, a4 as MenuTheme, a5 as MessageConfig, a6 as MessageHandle, a7 as MessageKey, a8 as MessageType, a9 as Modal, aa as ModalActionResult, ab as ModalOpenConfig, ac as ModalProps, ad as ModalType, ae as NotificationConfig, af as NotificationPlacement, ag as NotificationType, ah as Popconfirm, ai as PopconfirmProps, aj as Popover, ak as PopoverProps, al as Progress, am as ProgressProps, an as ProgressStatus, ao as Rate, ap as RateProps, aq as Segmented, ar as SegmentedOption, as as SegmentedProps, at as SegmentedValue, au as Spin, av as SpinProps, aw as StepItem, ax as StepStatus, ay as Steps, az as StepsProps, aA as TabItem, aB as Tabs, aC as TabsContextMenuClickInfo, aD as TabsOrientation, aE as TabsPosition, aF as TabsProps, aG as TabsType, aH as Tag, aI as TagProps, aJ as TagStatus, aK as TagVariant, aL as Timeline, aM as TimelineItem, aN as TimelineProps, aO as Tooltip, aP as TooltipProps, aQ as Tour, aR as TourProps, aS as TourStep, aT as Tree, aU as TreeDropPosition, aV as TreeKey, aW as TreeNode, aX as TreeProps, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, b8 as Watermark, b9 as WatermarkFont, ba as WatermarkProps, bb as message, bc as notification } from './core-BK8AXc12.cjs';
5
+ import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-DAYZvZVu.cjs';
6
+ export { D as DatePicker, a as DatePickerDisabledInfo, b as DatePickerPreset, c as DatePickerProps, d as DatePickerShowTime, e as DatePickerType, f as DatePickerValue, g as DateRangePickerPreset, h as DateRangePickerProps, S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-shDQ5uJA.cjs';
7
7
  export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.cjs';
8
8
  export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.cjs';
9
9
  import * as Monaco from 'monaco-editor';
@@ -30,6 +30,7 @@ declare function Alert({ status, type, title, message, description, action, show
30
30
 
31
31
  declare const DEFAULT_PAGE_SIZE_OPTIONS: readonly [10, 25, 50, 100, 200, 500, 1000, 2000, 5000];
32
32
  interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange"> {
33
+ size?: ControlSize;
33
34
  total?: number;
34
35
  current?: number;
35
36
  defaultCurrent?: number;
@@ -45,7 +46,7 @@ interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange">
45
46
  onChange?: (page: number, pageSize: number) => void;
46
47
  onShowSizeChange?: (current: number, pageSize: number) => void;
47
48
  }
48
- declare function Pagination({ total, current, defaultCurrent, pageSize, defaultPageSize, pageSizeOptions, showSizeChanger, showTotal, disabled, hideOnSinglePage, refreshing, onRefreshTotal, onChange, onShowSizeChange, className, ...props }: PaginationProps): react.JSX.Element | null;
49
+ declare function Pagination({ size: sizeProp, total, current, defaultCurrent, pageSize, defaultPageSize, pageSizeOptions, showSizeChanger, showTotal, disabled, hideOnSinglePage, refreshing, onRefreshTotal, onChange, onShowSizeChange, className, ...props }: PaginationProps): react.JSX.Element | null;
49
50
 
50
51
  type CascaderValue = string | number;
51
52
  interface CascaderOption {
@@ -62,6 +63,7 @@ interface CascaderFieldNames {
62
63
  children?: string;
63
64
  }
64
65
  interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> {
66
+ size?: ControlSize;
65
67
  options: readonly CascaderOption[];
66
68
  value?: readonly CascaderValue[] | readonly (readonly CascaderValue[])[];
67
69
  defaultValue?: readonly CascaderValue[] | readonly (readonly CascaderValue[])[];
@@ -78,7 +80,7 @@ interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultVal
78
80
  loadData?: (selectedOptions: CascaderOption[]) => void | Promise<void>;
79
81
  onChange?: (value: readonly CascaderValue[] | readonly (readonly CascaderValue[])[] | undefined, selectedOptions: CascaderOption[] | CascaderOption[][]) => void;
80
82
  }
81
- declare function Cascader({ options, value, defaultValue, multiple, showSearch, allowClear, changeOnSelect, expandTrigger, placeholder, placeholderMode, disabled, fieldNames, displayRender, loadData, onChange, className, ...props }: CascaderProps): react.JSX.Element;
83
+ declare function Cascader({ options, value, defaultValue, size: sizeProp, multiple, showSearch, allowClear, changeOnSelect, expandTrigger, placeholder, placeholderMode, disabled, fieldNames, displayRender, loadData, onChange, className, ...props }: CascaderProps): react.JSX.Element;
82
84
 
83
85
  type LayoutGap = "small" | "medium" | "large" | number | string;
84
86
  type FlexAlign = "normal" | "start" | "center" | "end" | "stretch" | "baseline";
@@ -271,6 +273,7 @@ declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & react.RefAtt
271
273
 
272
274
  type SwitchVariant = "standard" | "segmented";
273
275
  interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
276
+ size?: ControlSize;
274
277
  label?: ReactNode;
275
278
  variant?: SwitchVariant;
276
279
  checkedContent?: ReactNode;
@@ -309,6 +312,7 @@ interface FormInstance {
309
312
  }
310
313
  declare function useForm(form?: FormInstance): readonly [FormInstance];
311
314
  interface FormProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit"> {
315
+ size?: ControlSize;
312
316
  form?: FormInstance;
313
317
  initialValues?: FormValues;
314
318
  layout?: "horizontal" | "vertical" | "inline";
@@ -322,7 +326,7 @@ interface FormProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit"
322
326
  }) => void;
323
327
  onValuesChange?: (changedValues: FormValues, values: FormValues) => void;
324
328
  }
325
- declare function FormRoot({ form, initialValues, layout, placeholderMode, disabled, requiredMark, className, onFinish, onFinishFailed, onValuesChange, children, ...props }: FormProps): react.JSX.Element;
329
+ declare function FormRoot({ form, initialValues, layout, size: sizeProp, placeholderMode, disabled, requiredMark, className, onFinish, onFinishFailed, onValuesChange, children, ...props }: FormProps): react.JSX.Element;
326
330
  interface FormItemProps {
327
331
  name?: NamePath;
328
332
  label?: ReactNode;
@@ -367,7 +371,8 @@ declare const Form: typeof FormRoot & {
367
371
  };
368
372
 
369
373
  type CheckboxValue = string | number;
370
- interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> {
374
+ interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "value" | "onChange"> {
375
+ size?: ControlSize;
371
376
  value?: CheckboxValue;
372
377
  indeterminate?: boolean;
373
378
  children?: ReactNode;
@@ -379,6 +384,7 @@ interface CheckboxOption {
379
384
  disabled?: boolean;
380
385
  }
381
386
  interface CheckboxGroupProps {
387
+ size?: ControlSize;
382
388
  value?: readonly CheckboxValue[];
383
389
  defaultValue?: readonly CheckboxValue[];
384
390
  options?: readonly (CheckboxOption | CheckboxValue)[];
@@ -388,13 +394,14 @@ interface CheckboxGroupProps {
388
394
  children?: ReactNode;
389
395
  onChange?: (values: readonly CheckboxValue[]) => void;
390
396
  }
391
- declare function CheckboxGroup({ value, defaultValue, options, disabled, name, className, children, onChange, }: CheckboxGroupProps): react.JSX.Element;
397
+ declare function CheckboxGroup({ size: sizeProp, value, defaultValue, options, disabled, name, className, children, onChange, }: CheckboxGroupProps): react.JSX.Element;
392
398
  declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>> & {
393
399
  Group: typeof CheckboxGroup;
394
400
  };
395
401
 
396
402
  type RadioValue = string | number;
397
- interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> {
403
+ interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "value" | "onChange"> {
404
+ size?: ControlSize;
398
405
  value: RadioValue;
399
406
  children?: ReactNode;
400
407
  onChange?: (checked: boolean, event: ChangeEvent<HTMLInputElement>) => void;
@@ -405,6 +412,7 @@ interface RadioOption {
405
412
  disabled?: boolean;
406
413
  }
407
414
  interface RadioGroupProps {
415
+ size?: ControlSize;
408
416
  value?: RadioValue;
409
417
  defaultValue?: RadioValue;
410
418
  options?: readonly (RadioOption | RadioValue)[];
@@ -417,7 +425,7 @@ interface RadioGroupProps {
417
425
  onChange?: (value: RadioValue) => void;
418
426
  }
419
427
  declare function RadioButton(props: RadioProps): react.JSX.Element;
420
- declare function RadioGroup({ value, defaultValue, options, optionType, buttonStyle, disabled, name, className, children, onChange, }: RadioGroupProps): react.JSX.Element;
428
+ declare function RadioGroup({ size: sizeProp, value, defaultValue, options, optionType, buttonStyle, disabled, name, className, children, onChange, }: RadioGroupProps): react.JSX.Element;
421
429
  declare const Radio: react.ForwardRefExoticComponent<RadioProps & {
422
430
  button?: boolean;
423
431
  } & react.RefAttributes<HTMLInputElement>> & {
@@ -456,6 +464,7 @@ interface ColorPickerPreset {
456
464
  colors: readonly string[];
457
465
  }
458
466
  interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> {
467
+ size?: ControlSize;
459
468
  value?: string;
460
469
  defaultValue?: string;
461
470
  mode?: ColorPickerMode;
@@ -471,7 +480,7 @@ interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "default
471
480
  onModeChange?: (mode: ColorPickerMode) => void;
472
481
  onClear?: () => void;
473
482
  }
474
- declare function ColorPicker({ value, defaultValue, mode, defaultMode, modes, disabled, allowClear, showText, showAlpha, presets, className, onChange, onChangeComplete, onModeChange, onClear, ...props }: ColorPickerProps): react.JSX.Element;
483
+ declare function ColorPicker({ size: sizeProp, value, defaultValue, mode, defaultMode, modes, disabled, allowClear, showText, showAlpha, presets, className, onChange, onChangeComplete, onModeChange, onClear, ...props }: ColorPickerProps): react.JSX.Element;
475
484
 
476
485
  interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "value" | "defaultValue" | "onChange"> {
477
486
  placeholderMode?: InputPlaceholderMode;
@@ -495,7 +504,7 @@ interface TimeRangePickerProps extends Omit<TimePickerProps, "value" | "defaultV
495
504
  onChange?: (value: readonly [string, string]) => void;
496
505
  }
497
506
  declare function TimeRangePicker({ value, defaultValue, placeholder, separator, onChange, className, style, ...props }: TimeRangePickerProps): react.JSX.Element;
498
- declare function TimePicker({ value, defaultValue, size, status, allowClear, use12Hours, showSecond, suffixIcon, disabledTime, disabled, readOnly, className, style, onChange, onOpenChange, placeholder, placeholderMode, min, max, step, ...props }: TimePickerProps): react.JSX.Element;
507
+ declare function TimePicker({ value, defaultValue, size: sizeProp, status, allowClear, use12Hours, showSecond, suffixIcon, disabledTime, disabled, readOnly, className, style, onChange, onOpenChange, placeholder, placeholderMode, min, max, step, ...props }: TimePickerProps): react.JSX.Element;
499
508
  declare namespace TimePicker {
500
509
  const RangePicker: typeof TimeRangePicker;
501
510
  }
@@ -556,7 +565,7 @@ interface TreeSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultV
556
565
  onSearch?: (value: string) => void;
557
566
  onDropdownVisibleChange?: (open: boolean) => void;
558
567
  }
559
- declare function TreeSelect({ treeData, value, defaultValue, multiple, treeCheckable, showSearch, allowClear, treeDefaultExpandAll, placeholder, placeholderMode, searchPlaceholder, maxTagCount, disabled, size, status, className, onChange, onSearch, onDropdownVisibleChange, open: controlledOpen, defaultOpen, searchValue, treeExpandedKeys, treeDefaultExpandedKeys, onTreeExpand, filterTreeNode, treeCheckStrictly, showCheckedStrategy, loading, listHeight, popupClassName, popupStyle, dropdownFooter, displayRender, renderTrigger, onClear, onSelect, onDeselect, ...props }: TreeSelectProps): react.JSX.Element;
568
+ declare function TreeSelect({ treeData, value, defaultValue, multiple, treeCheckable, showSearch, allowClear, treeDefaultExpandAll, placeholder, placeholderMode, searchPlaceholder, maxTagCount, disabled, size: sizeProp, status, className, onChange, onSearch, onDropdownVisibleChange, open: controlledOpen, defaultOpen, searchValue, treeExpandedKeys, treeDefaultExpandedKeys, onTreeExpand, filterTreeNode, treeCheckStrictly, showCheckedStrategy, loading, listHeight, popupClassName, popupStyle, dropdownFooter, displayRender, renderTrigger, onClear, onSelect, onDeselect, ...props }: TreeSelectProps): react.JSX.Element;
560
569
 
561
570
  interface FlatTreeOptions {
562
571
  idField?: string;
@@ -570,6 +579,7 @@ type FlatTreeNode<T> = T & {
570
579
  declare function buildFlatTree<T extends Record<string, any>>(items: readonly T[], options?: FlatTreeOptions): FlatTreeNode<T>[];
571
580
 
572
581
  interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
582
+ size?: ControlSize;
573
583
  label?: ReactNode;
574
584
  hint?: ReactNode;
575
585
  status?: ControlStatus;
@@ -1209,6 +1219,9 @@ interface ColumnSettingState {
1209
1219
  open: boolean;
1210
1220
  items: readonly TableColumnSettingItem[];
1211
1221
  loaded: boolean;
1222
+ loading?: boolean;
1223
+ loadError?: boolean;
1224
+ loadToken?: symbol;
1212
1225
  pageSize?: number;
1213
1226
  }
1214
1227
  interface TableColumnSettingApi {
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes } from 'react';
3
- import { O as OverlayContainer, a as OverlayApiHandle, B as ButtonProps } from './core-VmiEI1Jp.js';
4
- export { b as Badge, c as BadgeProps, d as BadgeRibbonProps, e as BadgeStatus, f as Breadcrumb, g as BreadcrumbItem, h as BreadcrumbProps, i as Button, j as ButtonSize, k as ButtonVariant, C as Calendar, l as CalendarProps, m as Card, n as CardAccent, o as CardProps, p as Carousel, q as CarouselProps, r as CarouselRef, s as Collapse, t as CollapseItem, u as CollapseKey, v as CollapseProps, D as Dropdown, w as DropdownButtonProps, x as DropdownMenuProps, y as DropdownOpenSource, z as DropdownPlacement, A as DropdownProps, E as DropdownTrigger, F as FILLED_ICON_NAMES, G as FilledIconName, H as FloatButton, I as FloatButtonBackTopProps, J as FloatButtonGroupProps, K as FloatButtonProps, L as FloatButtonShape, M as FloatingPlacement, N as FloatingTrigger, P as ICON_NAMES, Q as Icon, R as IconName, S as IconProps, T as IconVariant, U as Image, V as ImagePreview, W as ImagePreviewConfig, X as ImagePreviewProps, Y as ImageProps, Z as Input, _ as InputProps, $ as Menu, a0 as MenuClickInfo, a1 as MenuItem, a2 as MenuMode, a3 as MenuProps, a4 as MenuTheme, a5 as MessageConfig, a6 as MessageHandle, a7 as MessageKey, a8 as MessageType, a9 as Modal, aa as ModalActionResult, ab as ModalOpenConfig, ac as ModalProps, ad as ModalType, ae as NotificationConfig, af as NotificationPlacement, ag as NotificationType, ah as Popconfirm, ai as PopconfirmProps, aj as Popover, ak as PopoverProps, al as Progress, am as ProgressProps, an as ProgressStatus, ao as Rate, ap as RateProps, aq as Segmented, ar as SegmentedOption, as as SegmentedProps, at as SegmentedValue, au as Spin, av as SpinProps, aw as StepItem, ax as StepStatus, ay as Steps, az as StepsProps, aA as TabItem, aB as Tabs, aC as TabsContextMenuClickInfo, aD as TabsOrientation, aE as TabsPosition, aF as TabsProps, aG as TabsType, aH as Tag, aI as TagProps, aJ as TagStatus, aK as TagVariant, aL as Timeline, aM as TimelineItem, aN as TimelineProps, aO as Tooltip, aP as TooltipProps, aQ as Tour, aR as TourProps, aS as TourStep, aT as Tree, aU as TreeDropPosition, aV as TreeKey, aW as TreeNode, aX as TreeProps, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, b8 as Watermark, b9 as WatermarkFont, ba as WatermarkProps, bb as message, bc as notification } from './core-VmiEI1Jp.js';
5
- import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-DAYZvZVu.js';
6
- export { D as DatePicker, a as DatePickerDisabledInfo, b as DatePickerPreset, c as DatePickerProps, d as DatePickerShowTime, e as DatePickerType, f as DatePickerValue, g as DateRangePickerPreset, h as DateRangePickerProps, S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-D-JMfpwD.js';
3
+ import { O as OverlayContainer, a as OverlayApiHandle, B as ButtonProps } from './core-CJK3_KTQ.js';
4
+ export { b as Badge, c as BadgeProps, d as BadgeRibbonProps, e as BadgeStatus, f as Breadcrumb, g as BreadcrumbItem, h as BreadcrumbProps, i as Button, j as ButtonSize, k as ButtonVariant, C as Calendar, l as CalendarProps, m as Card, n as CardAccent, o as CardProps, p as Carousel, q as CarouselProps, r as CarouselRef, s as Collapse, t as CollapseItem, u as CollapseKey, v as CollapseProps, D as Dropdown, w as DropdownButtonProps, x as DropdownMenuProps, y as DropdownOpenSource, z as DropdownPlacement, A as DropdownProps, E as DropdownTrigger, F as FILLED_ICON_NAMES, G as FilledIconName, H as FloatButton, I as FloatButtonBackTopProps, J as FloatButtonGroupProps, K as FloatButtonProps, L as FloatButtonShape, M as FloatingPlacement, N as FloatingTrigger, P as ICON_NAMES, Q as Icon, R as IconName, S as IconProps, T as IconVariant, U as Image, V as ImagePreview, W as ImagePreviewConfig, X as ImagePreviewProps, Y as ImageProps, Z as Input, _ as InputProps, $ as Menu, a0 as MenuClickInfo, a1 as MenuItem, a2 as MenuMode, a3 as MenuProps, a4 as MenuTheme, a5 as MessageConfig, a6 as MessageHandle, a7 as MessageKey, a8 as MessageType, a9 as Modal, aa as ModalActionResult, ab as ModalOpenConfig, ac as ModalProps, ad as ModalType, ae as NotificationConfig, af as NotificationPlacement, ag as NotificationType, ah as Popconfirm, ai as PopconfirmProps, aj as Popover, ak as PopoverProps, al as Progress, am as ProgressProps, an as ProgressStatus, ao as Rate, ap as RateProps, aq as Segmented, ar as SegmentedOption, as as SegmentedProps, at as SegmentedValue, au as Spin, av as SpinProps, aw as StepItem, ax as StepStatus, ay as Steps, az as StepsProps, aA as TabItem, aB as Tabs, aC as TabsContextMenuClickInfo, aD as TabsOrientation, aE as TabsPosition, aF as TabsProps, aG as TabsType, aH as Tag, aI as TagProps, aJ as TagStatus, aK as TagVariant, aL as Timeline, aM as TimelineItem, aN as TimelineProps, aO as Tooltip, aP as TooltipProps, aQ as Tour, aR as TourProps, aS as TourStep, aT as Tree, aU as TreeDropPosition, aV as TreeKey, aW as TreeNode, aX as TreeProps, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, b8 as Watermark, b9 as WatermarkFont, ba as WatermarkProps, bb as message, bc as notification } from './core-CJK3_KTQ.js';
5
+ import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-DAYZvZVu.js';
6
+ export { D as DatePicker, a as DatePickerDisabledInfo, b as DatePickerPreset, c as DatePickerProps, d as DatePickerShowTime, e as DatePickerType, f as DatePickerValue, g as DateRangePickerPreset, h as DateRangePickerProps, S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-Bdb-hi9c.js';
7
7
  export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.js';
8
8
  export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.js';
9
9
  import * as Monaco from 'monaco-editor';
@@ -30,6 +30,7 @@ declare function Alert({ status, type, title, message, description, action, show
30
30
 
31
31
  declare const DEFAULT_PAGE_SIZE_OPTIONS: readonly [10, 25, 50, 100, 200, 500, 1000, 2000, 5000];
32
32
  interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange"> {
33
+ size?: ControlSize;
33
34
  total?: number;
34
35
  current?: number;
35
36
  defaultCurrent?: number;
@@ -45,7 +46,7 @@ interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange">
45
46
  onChange?: (page: number, pageSize: number) => void;
46
47
  onShowSizeChange?: (current: number, pageSize: number) => void;
47
48
  }
48
- declare function Pagination({ total, current, defaultCurrent, pageSize, defaultPageSize, pageSizeOptions, showSizeChanger, showTotal, disabled, hideOnSinglePage, refreshing, onRefreshTotal, onChange, onShowSizeChange, className, ...props }: PaginationProps): react.JSX.Element | null;
49
+ declare function Pagination({ size: sizeProp, total, current, defaultCurrent, pageSize, defaultPageSize, pageSizeOptions, showSizeChanger, showTotal, disabled, hideOnSinglePage, refreshing, onRefreshTotal, onChange, onShowSizeChange, className, ...props }: PaginationProps): react.JSX.Element | null;
49
50
 
50
51
  type CascaderValue = string | number;
51
52
  interface CascaderOption {
@@ -62,6 +63,7 @@ interface CascaderFieldNames {
62
63
  children?: string;
63
64
  }
64
65
  interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> {
66
+ size?: ControlSize;
65
67
  options: readonly CascaderOption[];
66
68
  value?: readonly CascaderValue[] | readonly (readonly CascaderValue[])[];
67
69
  defaultValue?: readonly CascaderValue[] | readonly (readonly CascaderValue[])[];
@@ -78,7 +80,7 @@ interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultVal
78
80
  loadData?: (selectedOptions: CascaderOption[]) => void | Promise<void>;
79
81
  onChange?: (value: readonly CascaderValue[] | readonly (readonly CascaderValue[])[] | undefined, selectedOptions: CascaderOption[] | CascaderOption[][]) => void;
80
82
  }
81
- declare function Cascader({ options, value, defaultValue, multiple, showSearch, allowClear, changeOnSelect, expandTrigger, placeholder, placeholderMode, disabled, fieldNames, displayRender, loadData, onChange, className, ...props }: CascaderProps): react.JSX.Element;
83
+ declare function Cascader({ options, value, defaultValue, size: sizeProp, multiple, showSearch, allowClear, changeOnSelect, expandTrigger, placeholder, placeholderMode, disabled, fieldNames, displayRender, loadData, onChange, className, ...props }: CascaderProps): react.JSX.Element;
82
84
 
83
85
  type LayoutGap = "small" | "medium" | "large" | number | string;
84
86
  type FlexAlign = "normal" | "start" | "center" | "end" | "stretch" | "baseline";
@@ -271,6 +273,7 @@ declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & react.RefAtt
271
273
 
272
274
  type SwitchVariant = "standard" | "segmented";
273
275
  interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
276
+ size?: ControlSize;
274
277
  label?: ReactNode;
275
278
  variant?: SwitchVariant;
276
279
  checkedContent?: ReactNode;
@@ -309,6 +312,7 @@ interface FormInstance {
309
312
  }
310
313
  declare function useForm(form?: FormInstance): readonly [FormInstance];
311
314
  interface FormProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit"> {
315
+ size?: ControlSize;
312
316
  form?: FormInstance;
313
317
  initialValues?: FormValues;
314
318
  layout?: "horizontal" | "vertical" | "inline";
@@ -322,7 +326,7 @@ interface FormProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit"
322
326
  }) => void;
323
327
  onValuesChange?: (changedValues: FormValues, values: FormValues) => void;
324
328
  }
325
- declare function FormRoot({ form, initialValues, layout, placeholderMode, disabled, requiredMark, className, onFinish, onFinishFailed, onValuesChange, children, ...props }: FormProps): react.JSX.Element;
329
+ declare function FormRoot({ form, initialValues, layout, size: sizeProp, placeholderMode, disabled, requiredMark, className, onFinish, onFinishFailed, onValuesChange, children, ...props }: FormProps): react.JSX.Element;
326
330
  interface FormItemProps {
327
331
  name?: NamePath;
328
332
  label?: ReactNode;
@@ -367,7 +371,8 @@ declare const Form: typeof FormRoot & {
367
371
  };
368
372
 
369
373
  type CheckboxValue = string | number;
370
- interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> {
374
+ interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "value" | "onChange"> {
375
+ size?: ControlSize;
371
376
  value?: CheckboxValue;
372
377
  indeterminate?: boolean;
373
378
  children?: ReactNode;
@@ -379,6 +384,7 @@ interface CheckboxOption {
379
384
  disabled?: boolean;
380
385
  }
381
386
  interface CheckboxGroupProps {
387
+ size?: ControlSize;
382
388
  value?: readonly CheckboxValue[];
383
389
  defaultValue?: readonly CheckboxValue[];
384
390
  options?: readonly (CheckboxOption | CheckboxValue)[];
@@ -388,13 +394,14 @@ interface CheckboxGroupProps {
388
394
  children?: ReactNode;
389
395
  onChange?: (values: readonly CheckboxValue[]) => void;
390
396
  }
391
- declare function CheckboxGroup({ value, defaultValue, options, disabled, name, className, children, onChange, }: CheckboxGroupProps): react.JSX.Element;
397
+ declare function CheckboxGroup({ size: sizeProp, value, defaultValue, options, disabled, name, className, children, onChange, }: CheckboxGroupProps): react.JSX.Element;
392
398
  declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>> & {
393
399
  Group: typeof CheckboxGroup;
394
400
  };
395
401
 
396
402
  type RadioValue = string | number;
397
- interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> {
403
+ interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "value" | "onChange"> {
404
+ size?: ControlSize;
398
405
  value: RadioValue;
399
406
  children?: ReactNode;
400
407
  onChange?: (checked: boolean, event: ChangeEvent<HTMLInputElement>) => void;
@@ -405,6 +412,7 @@ interface RadioOption {
405
412
  disabled?: boolean;
406
413
  }
407
414
  interface RadioGroupProps {
415
+ size?: ControlSize;
408
416
  value?: RadioValue;
409
417
  defaultValue?: RadioValue;
410
418
  options?: readonly (RadioOption | RadioValue)[];
@@ -417,7 +425,7 @@ interface RadioGroupProps {
417
425
  onChange?: (value: RadioValue) => void;
418
426
  }
419
427
  declare function RadioButton(props: RadioProps): react.JSX.Element;
420
- declare function RadioGroup({ value, defaultValue, options, optionType, buttonStyle, disabled, name, className, children, onChange, }: RadioGroupProps): react.JSX.Element;
428
+ declare function RadioGroup({ size: sizeProp, value, defaultValue, options, optionType, buttonStyle, disabled, name, className, children, onChange, }: RadioGroupProps): react.JSX.Element;
421
429
  declare const Radio: react.ForwardRefExoticComponent<RadioProps & {
422
430
  button?: boolean;
423
431
  } & react.RefAttributes<HTMLInputElement>> & {
@@ -456,6 +464,7 @@ interface ColorPickerPreset {
456
464
  colors: readonly string[];
457
465
  }
458
466
  interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> {
467
+ size?: ControlSize;
459
468
  value?: string;
460
469
  defaultValue?: string;
461
470
  mode?: ColorPickerMode;
@@ -471,7 +480,7 @@ interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "default
471
480
  onModeChange?: (mode: ColorPickerMode) => void;
472
481
  onClear?: () => void;
473
482
  }
474
- declare function ColorPicker({ value, defaultValue, mode, defaultMode, modes, disabled, allowClear, showText, showAlpha, presets, className, onChange, onChangeComplete, onModeChange, onClear, ...props }: ColorPickerProps): react.JSX.Element;
483
+ declare function ColorPicker({ size: sizeProp, value, defaultValue, mode, defaultMode, modes, disabled, allowClear, showText, showAlpha, presets, className, onChange, onChangeComplete, onModeChange, onClear, ...props }: ColorPickerProps): react.JSX.Element;
475
484
 
476
485
  interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "value" | "defaultValue" | "onChange"> {
477
486
  placeholderMode?: InputPlaceholderMode;
@@ -495,7 +504,7 @@ interface TimeRangePickerProps extends Omit<TimePickerProps, "value" | "defaultV
495
504
  onChange?: (value: readonly [string, string]) => void;
496
505
  }
497
506
  declare function TimeRangePicker({ value, defaultValue, placeholder, separator, onChange, className, style, ...props }: TimeRangePickerProps): react.JSX.Element;
498
- declare function TimePicker({ value, defaultValue, size, status, allowClear, use12Hours, showSecond, suffixIcon, disabledTime, disabled, readOnly, className, style, onChange, onOpenChange, placeholder, placeholderMode, min, max, step, ...props }: TimePickerProps): react.JSX.Element;
507
+ declare function TimePicker({ value, defaultValue, size: sizeProp, status, allowClear, use12Hours, showSecond, suffixIcon, disabledTime, disabled, readOnly, className, style, onChange, onOpenChange, placeholder, placeholderMode, min, max, step, ...props }: TimePickerProps): react.JSX.Element;
499
508
  declare namespace TimePicker {
500
509
  const RangePicker: typeof TimeRangePicker;
501
510
  }
@@ -556,7 +565,7 @@ interface TreeSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultV
556
565
  onSearch?: (value: string) => void;
557
566
  onDropdownVisibleChange?: (open: boolean) => void;
558
567
  }
559
- declare function TreeSelect({ treeData, value, defaultValue, multiple, treeCheckable, showSearch, allowClear, treeDefaultExpandAll, placeholder, placeholderMode, searchPlaceholder, maxTagCount, disabled, size, status, className, onChange, onSearch, onDropdownVisibleChange, open: controlledOpen, defaultOpen, searchValue, treeExpandedKeys, treeDefaultExpandedKeys, onTreeExpand, filterTreeNode, treeCheckStrictly, showCheckedStrategy, loading, listHeight, popupClassName, popupStyle, dropdownFooter, displayRender, renderTrigger, onClear, onSelect, onDeselect, ...props }: TreeSelectProps): react.JSX.Element;
568
+ declare function TreeSelect({ treeData, value, defaultValue, multiple, treeCheckable, showSearch, allowClear, treeDefaultExpandAll, placeholder, placeholderMode, searchPlaceholder, maxTagCount, disabled, size: sizeProp, status, className, onChange, onSearch, onDropdownVisibleChange, open: controlledOpen, defaultOpen, searchValue, treeExpandedKeys, treeDefaultExpandedKeys, onTreeExpand, filterTreeNode, treeCheckStrictly, showCheckedStrategy, loading, listHeight, popupClassName, popupStyle, dropdownFooter, displayRender, renderTrigger, onClear, onSelect, onDeselect, ...props }: TreeSelectProps): react.JSX.Element;
560
569
 
561
570
  interface FlatTreeOptions {
562
571
  idField?: string;
@@ -570,6 +579,7 @@ type FlatTreeNode<T> = T & {
570
579
  declare function buildFlatTree<T extends Record<string, any>>(items: readonly T[], options?: FlatTreeOptions): FlatTreeNode<T>[];
571
580
 
572
581
  interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
582
+ size?: ControlSize;
573
583
  label?: ReactNode;
574
584
  hint?: ReactNode;
575
585
  status?: ControlStatus;
@@ -1209,6 +1219,9 @@ interface ColumnSettingState {
1209
1219
  open: boolean;
1210
1220
  items: readonly TableColumnSettingItem[];
1211
1221
  loaded: boolean;
1222
+ loading?: boolean;
1223
+ loadError?: boolean;
1224
+ loadToken?: symbol;
1212
1225
  pageSize?: number;
1213
1226
  }
1214
1227
  interface TableColumnSettingApi {