@sia.soul/sia-react-ui 0.1.40 → 0.1.42

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/index.css CHANGED
@@ -121,6 +121,16 @@ fieldset:disabled .sia-input-number__floating-placeholder {
121
121
  min-width: 0;
122
122
  height: 100%;
123
123
  }
124
+ .sia-picker-range-control__field.is-active::after {
125
+ content: "";
126
+ position: absolute;
127
+ right: 0;
128
+ bottom: -1px;
129
+ left: 0;
130
+ height: 3px;
131
+ background: var(--sia-color-primary);
132
+ pointer-events: none;
133
+ }
124
134
  .sia-picker-range-control__field.sia-placeholder-floating > .is-placeholder {
125
135
  color: transparent;
126
136
  }
@@ -405,7 +415,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
405
415
  --sia-control-height-large: 38px;
406
416
  --sia-control-height: var(--sia-control-height-medium);
407
417
  --sia-spacing: 16px;
408
- --sia-font-size: 16px;
418
+ --sia-font-size: 13px;
409
419
  --sia-font-size-small: 13px;
410
420
  --sia-control-font-size: 13px;
411
421
  --sia-font-size-large: 18px;
@@ -4855,7 +4865,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
4855
4865
  display: flex;
4856
4866
  flex-wrap: wrap;
4857
4867
  align-items: center;
4858
- gap: var(--sia-query-field-gap, 12px);
4868
+ gap: var(--sia-query-field-gap, 6px);
4859
4869
  padding-top: 8px;
4860
4870
  }
4861
4871
  .sia-query-form__field {
@@ -4866,7 +4876,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
4866
4876
  max-width: 100%;
4867
4877
  }
4868
4878
  .sia-query-form__field:has(.sia-picker-range-control, .sia-time-range, .sia-select-date-range, .sia-space-compact:not(.sia-space-compact--vertical) > :nth-child(2)) {
4869
- --sia-query-item-width: calc(var(--sia-query-field-width, 220px) + var(--sia-query-field-width, 220px) + var(--sia-query-field-gap, 12px));
4879
+ --sia-query-item-width: calc(var(--sia-query-field-width, 220px) + var(--sia-query-field-width, 220px) + var(--sia-query-field-gap, 6px));
4870
4880
  }
4871
4881
  .sia-query-form__field :is(.sia-picker-range-control, .sia-time-range, .sia-select-date-range, .sia-space-compact:not(.sia-space-compact--vertical)) {
4872
4882
  width: 100%;
@@ -7380,6 +7390,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
7380
7390
  .sia-form-item__label {
7381
7391
  padding-top: 8px;
7382
7392
  text-align: right;
7393
+ font-size: 13px;
7383
7394
  line-height: 1.45;
7384
7395
  }
7385
7396
  .sia-form-item__required-mark {
@@ -9075,13 +9086,17 @@ body > .sia-popup-portal[data-sia-popup-layer] {
9075
9086
  border-top-width: 1px;
9076
9087
  border-left-width: 1px;
9077
9088
  }
9078
- .sia-floating__overlay--left .sia-floating__arrow {
9089
+ .sia-floating__overlay--left .sia-floating__arrow,
9090
+ .sia-floating__overlay--left-start .sia-floating__arrow,
9091
+ .sia-floating__overlay--left-end .sia-floating__arrow {
9079
9092
  top: var(--sia-floating-arrow-y, calc(50% - 4px));
9080
9093
  right: -4px;
9081
9094
  border-top-width: 1px;
9082
9095
  border-right-width: 1px;
9083
9096
  }
9084
- .sia-floating__overlay--right .sia-floating__arrow {
9097
+ .sia-floating__overlay--right .sia-floating__arrow,
9098
+ .sia-floating__overlay--right-start .sia-floating__arrow,
9099
+ .sia-floating__overlay--right-end .sia-floating__arrow {
9085
9100
  top: var(--sia-floating-arrow-y, calc(50% - 4px));
9086
9101
  left: -4px;
9087
9102
  border-bottom-width: 1px;
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { T as TagStatus, B as BadgeProps } from './core-BAHoW7_e.cjs';
2
- export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-BAHoW7_e.cjs';
1
+ import { T as TagStatus, B as BadgeProps } from './core-C2IieVNm.cjs';
2
+ export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-C2IieVNm.cjs';
3
3
  import * as react from 'react';
4
4
  import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
5
5
  import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
6
6
  import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult, B as ButtonProps, e as ButtonSize } from './Select-YJbT-MF1.cjs';
7
7
  export { f as Button, g as ButtonVariant, h as Modal, i as ModalProps, j as ModalType, k as Select, l as SelectMode, m as SelectValue } from './Select-YJbT-MF1.cjs';
8
- 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-CtA-B8DB.cjs';
8
+ 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-2galnCvZ.cjs';
9
9
  export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.cjs';
10
10
  export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.cjs';
11
11
  import * as Monaco from 'monaco-editor';
@@ -2839,8 +2839,8 @@ declare const SIA_THEME: {
2839
2839
  readonly controlHeight: 32;
2840
2840
  /** 默认布局间距,单位为像素。 */
2841
2841
  readonly spacing: 16;
2842
- /** 默认字号,单位为像素。 */
2843
- readonly fontSize: 16;
2842
+ /** 默认基础字号为 13 像素,对应 --sia-font-size;业务可通过 CSS 变量覆盖。 */
2843
+ readonly fontSize: 13;
2844
2844
  /** 默认小号文字尺寸为 13 像素,对应 --sia-font-size-small;业务可通过 CSS 变量覆盖。 */
2845
2845
  readonly fontSizeSmall: 13;
2846
2846
  /** 大号文字尺寸,单位为像素。 */
@@ -3080,7 +3080,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
3080
3080
  */
3081
3081
  loading?: boolean;
3082
3082
  /**
3083
- * 单列查询字段的默认宽度,数值单位为像素,可传 CSS 尺寸字符串。区间及横向组合控件默认为两倍此宽度加列间距;列间距可通过 --sia-query-field-gap 调整(默认 12px)。
3083
+ * 单列查询字段的默认宽度,数值单位为像素,可传 CSS 尺寸字符串。区间及横向组合控件默认为两倍此宽度加列间距;行列间距可通过 --sia-query-field-gap 调整(默认 6px)。
3084
3084
  * @defaultValue 220
3085
3085
  */
3086
3086
  fieldWidth?: number | string;
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { T as TagStatus, B as BadgeProps } from './core-fn8h4yRg.js';
2
- export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-fn8h4yRg.js';
1
+ import { T as TagStatus, B as BadgeProps } from './core-ZmKnvCFV.js';
2
+ export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-ZmKnvCFV.js';
3
3
  import * as react from 'react';
4
4
  import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
5
5
  import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.js';
6
6
  import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult, B as ButtonProps, e as ButtonSize } from './Select-CCrPqULn.js';
7
7
  export { f as Button, g as ButtonVariant, h as Modal, i as ModalProps, j as ModalType, k as Select, l as SelectMode, m as SelectValue } from './Select-CCrPqULn.js';
8
- 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-D9W_mmMq.js';
8
+ 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-Dtj6XF9I.js';
9
9
  export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.js';
10
10
  export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.js';
11
11
  import * as Monaco from 'monaco-editor';
@@ -2839,8 +2839,8 @@ declare const SIA_THEME: {
2839
2839
  readonly controlHeight: 32;
2840
2840
  /** 默认布局间距,单位为像素。 */
2841
2841
  readonly spacing: 16;
2842
- /** 默认字号,单位为像素。 */
2843
- readonly fontSize: 16;
2842
+ /** 默认基础字号为 13 像素,对应 --sia-font-size;业务可通过 CSS 变量覆盖。 */
2843
+ readonly fontSize: 13;
2844
2844
  /** 默认小号文字尺寸为 13 像素,对应 --sia-font-size-small;业务可通过 CSS 变量覆盖。 */
2845
2845
  readonly fontSizeSmall: 13;
2846
2846
  /** 大号文字尺寸,单位为像素。 */
@@ -3080,7 +3080,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
3080
3080
  */
3081
3081
  loading?: boolean;
3082
3082
  /**
3083
- * 单列查询字段的默认宽度,数值单位为像素,可传 CSS 尺寸字符串。区间及横向组合控件默认为两倍此宽度加列间距;列间距可通过 --sia-query-field-gap 调整(默认 12px)。
3083
+ * 单列查询字段的默认宽度,数值单位为像素,可传 CSS 尺寸字符串。区间及横向组合控件默认为两倍此宽度加列间距;行列间距可通过 --sia-query-field-gap 调整(默认 6px)。
3084
3084
  * @defaultValue 220
3085
3085
  */
3086
3086
  fieldWidth?: number | string;
package/dist/index.js CHANGED
@@ -80,7 +80,7 @@ import {
80
80
  Watermark,
81
81
  message,
82
82
  notification
83
- } from "./chunk-CEZ4GW3X.js";
83
+ } from "./chunk-IPDCEXQO.js";
84
84
  import {
85
85
  TextArea
86
86
  } from "./chunk-SMCYEPBL.js";
@@ -95,7 +95,7 @@ import {
95
95
  DatePicker,
96
96
  SelectDateRange,
97
97
  TimePanel
98
- } from "./chunk-6TLANQVX.js";
98
+ } from "./chunk-LWVZEUGJ.js";
99
99
  import {
100
100
  Checkbox,
101
101
  FloatingScrollbarProvider,
@@ -110,7 +110,7 @@ import {
110
110
  Tree,
111
111
  useOverlayLifecycle,
112
112
  useScrollbarProximity
113
- } from "./chunk-ZTJUFVJO.js";
113
+ } from "./chunk-3Q3S6CDZ.js";
114
114
  import {
115
115
  Dropdown,
116
116
  FILLED_ICON_NAMES,
@@ -7985,8 +7985,8 @@ var SIA_THEME = {
7985
7985
  controlHeight: 32,
7986
7986
  /** 默认布局间距,单位为像素。 */
7987
7987
  spacing: 16,
7988
- /** 默认字号,单位为像素。 */
7989
- fontSize: 16,
7988
+ /** 默认基础字号为 13 像素,对应 --sia-font-size;业务可通过 CSS 变量覆盖。 */
7989
+ fontSize: 13,
7990
7990
  /** 默认小号文字尺寸为 13 像素,对应 --sia-font-size-small;业务可通过 CSS 变量覆盖。 */
7991
7991
  fontSizeSmall: 13,
7992
7992
  /** 大号文字尺寸,单位为像素。 */
@@ -68,10 +68,10 @@ interface DatePickerProps extends SharedDatePickerProps {
68
68
  * @defaultValue false
69
69
  */
70
70
  multiple?: boolean;
71
- /** 选择后需要点击确定才提交 */
71
+ /** 选择后需要点击确定才提交;带时间的范围必须确认后保存;纯日期范围点选后立即保存合法值,此属性仅控制是否保留面板供确认关闭。 */
72
72
  needConfirm?: boolean;
73
73
  /**
74
- * 组合时间面板,可显示秒;范围选择会在宽屏并排显示起止面板,在窄屏分步选择
74
+ * 组合时间面板,可显示秒;范围选择始终显示单个面板,点击起止输入区域直接编辑对应端点;先确认当前端点,再切换到另一端点,两个端点确认后提交并关闭;锁定端点无需再次确认,快捷范围只需一次确认
75
75
  * @defaultValue false
76
76
  */
77
77
  showTime?: DatePickerShowTime;
@@ -125,11 +125,15 @@ interface DateRangePickerProps extends Omit<DatePickerProps, "value" | "defaultV
125
125
  * @defaultValue "→"
126
126
  */
127
127
  separator?: ReactNode;
128
- /** 预设候选值或快捷选项集合。 */
128
+ /** 在面板左侧按配置顺序纵向显示的快捷范围;带时间时点击仅回填暂存值,再点击一次确定即提交并关闭,无需逐端确认;手动修改后恢复分步确认。 */
129
129
  presets?: readonly DateRangePickerPreset[];
130
130
  /** 日期区间允许的最大天数。 */
131
131
  maxRangeDays?: number;
132
- /** 允许单独保留起点或终点;需要点击确定提交未完整的范围。 */
132
+ /**
133
+ * 按开始、结束顺序指定端点是否允许为空。任一端允许为空时,展开期间输入框即时显示暂存的日期时间;两端均必填时保留已提交值,完整确认后一起更新。
134
+ * 纯日期点选后立即通过 onChange 保存合法值,收起后保留;带时间仅即时显示暂存值,必须点击确定保存,未确认就收起则恢复已提交值。缺少必填端点或范围不合法时不保存。
135
+ * @defaultValue [false, false]
136
+ */
133
137
  allowEmpty?: readonly [boolean, boolean];
134
138
  /** 锁定指定端点,编辑和清空时保留其值。 */
135
139
  endpointDisabled?: readonly [boolean, boolean];
@@ -138,11 +142,12 @@ interface DateRangePickerProps extends Omit<DatePickerProps, "value" | "defaultV
138
142
  /** 值发生变化时调用;参数为新值及类型声明中列出的关联信息。 */
139
143
  onChange?: (value: readonly [string, string]) => void;
140
144
  }
145
+ /** 日期范围选择;纯日期按两次点击组成范围,带时间时使用单面板分步设置起止值并确认提交。 */
141
146
  declare function DateRangePicker({ value, defaultValue, placeholder, placeholderMode, separator, presets, maxRangeDays, allowEmpty, endpointDisabled, size: sizeProp, status, allowClear, needConfirm, showTime, showToday, open, defaultOpen, suffixIcon, minDate, maxDate, disabledDate, disabled, className, onCalendarChange, onChange, onOpenChange, formatValue, renderExtraFooter, ...props }: DateRangePickerProps): react.JSX.Element;
142
147
  /** 日期选择组件。 */
143
148
  declare function DatePicker({ value, defaultValue, picker, size: sizeProp, 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;
144
149
  declare namespace DatePicker {
145
- /** 日期区间选择器。 */
150
+ /** 日期区间选择器;带时间时可从任一端开始,点击确定切换到另一端,两端确认后提交;锁定端点无需再次确认,快捷范围只需一次确认。纯日期支持在任一日历连续点选起止日期。 */
146
151
  const RangePicker: typeof DateRangePicker;
147
152
  }
148
153
 
@@ -68,10 +68,10 @@ interface DatePickerProps extends SharedDatePickerProps {
68
68
  * @defaultValue false
69
69
  */
70
70
  multiple?: boolean;
71
- /** 选择后需要点击确定才提交 */
71
+ /** 选择后需要点击确定才提交;带时间的范围必须确认后保存;纯日期范围点选后立即保存合法值,此属性仅控制是否保留面板供确认关闭。 */
72
72
  needConfirm?: boolean;
73
73
  /**
74
- * 组合时间面板,可显示秒;范围选择会在宽屏并排显示起止面板,在窄屏分步选择
74
+ * 组合时间面板,可显示秒;范围选择始终显示单个面板,点击起止输入区域直接编辑对应端点;先确认当前端点,再切换到另一端点,两个端点确认后提交并关闭;锁定端点无需再次确认,快捷范围只需一次确认
75
75
  * @defaultValue false
76
76
  */
77
77
  showTime?: DatePickerShowTime;
@@ -125,11 +125,15 @@ interface DateRangePickerProps extends Omit<DatePickerProps, "value" | "defaultV
125
125
  * @defaultValue "→"
126
126
  */
127
127
  separator?: ReactNode;
128
- /** 预设候选值或快捷选项集合。 */
128
+ /** 在面板左侧按配置顺序纵向显示的快捷范围;带时间时点击仅回填暂存值,再点击一次确定即提交并关闭,无需逐端确认;手动修改后恢复分步确认。 */
129
129
  presets?: readonly DateRangePickerPreset[];
130
130
  /** 日期区间允许的最大天数。 */
131
131
  maxRangeDays?: number;
132
- /** 允许单独保留起点或终点;需要点击确定提交未完整的范围。 */
132
+ /**
133
+ * 按开始、结束顺序指定端点是否允许为空。任一端允许为空时,展开期间输入框即时显示暂存的日期时间;两端均必填时保留已提交值,完整确认后一起更新。
134
+ * 纯日期点选后立即通过 onChange 保存合法值,收起后保留;带时间仅即时显示暂存值,必须点击确定保存,未确认就收起则恢复已提交值。缺少必填端点或范围不合法时不保存。
135
+ * @defaultValue [false, false]
136
+ */
133
137
  allowEmpty?: readonly [boolean, boolean];
134
138
  /** 锁定指定端点,编辑和清空时保留其值。 */
135
139
  endpointDisabled?: readonly [boolean, boolean];
@@ -138,11 +142,12 @@ interface DateRangePickerProps extends Omit<DatePickerProps, "value" | "defaultV
138
142
  /** 值发生变化时调用;参数为新值及类型声明中列出的关联信息。 */
139
143
  onChange?: (value: readonly [string, string]) => void;
140
144
  }
145
+ /** 日期范围选择;纯日期按两次点击组成范围,带时间时使用单面板分步设置起止值并确认提交。 */
141
146
  declare function DateRangePicker({ value, defaultValue, placeholder, placeholderMode, separator, presets, maxRangeDays, allowEmpty, endpointDisabled, size: sizeProp, status, allowClear, needConfirm, showTime, showToday, open, defaultOpen, suffixIcon, minDate, maxDate, disabledDate, disabled, className, onCalendarChange, onChange, onOpenChange, formatValue, renderExtraFooter, ...props }: DateRangePickerProps): react.JSX.Element;
142
147
  /** 日期选择组件。 */
143
148
  declare function DatePicker({ value, defaultValue, picker, size: sizeProp, 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;
144
149
  declare namespace DatePicker {
145
- /** 日期区间选择器。 */
150
+ /** 日期区间选择器;带时间时可从任一端开始,点击确定切换到另一端,两端确认后提交;锁定端点无需再次确认,快捷范围只需一次确认。纯日期支持在任一日历连续点选起止日期。 */
146
151
  const RangePicker: typeof DateRangePicker;
147
152
  }
148
153