@sia.soul/sia-react-ui 0.1.56 → 0.1.58

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/core.css CHANGED
@@ -5022,6 +5022,9 @@ fieldset:disabled .sia-input-number__floating-placeholder {
5022
5022
  .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)) {
5023
5023
  --sia-query-item-width: calc(var(--sia-query-field-width, 220px) + var(--sia-query-field-width, 220px) + var(--sia-query-field-gap, 6px));
5024
5024
  }
5025
+ .sia-query-form .sia-query-form__fields > .sia-query-form__field:has(.sia-select-date-range) {
5026
+ --sia-query-item-width: calc(var(--sia-query-field-width, 220px) * 3 + var(--sia-query-field-gap, 6px) * 2);
5027
+ }
5025
5028
  .sia-query-form__field :is(.sia-picker-range-control, .sia-time-range, .sia-select-date-range, .sia-space-compact:not(.sia-space-compact--vertical)) {
5026
5029
  width: 100%;
5027
5030
  }
@@ -6639,7 +6642,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
6639
6642
  box-sizing: border-box;
6640
6643
  display: inline-flex;
6641
6644
  align-items: stretch;
6642
- width: min(560px, 100%);
6645
+ width: min(calc(var(--sia-query-field-width, 220px) * 3 + var(--sia-query-field-gap, 6px) * 2), 100%);
6643
6646
  min-width: 0;
6644
6647
  vertical-align: middle;
6645
6648
  }
package/dist/index.css CHANGED
@@ -5022,6 +5022,9 @@ fieldset:disabled .sia-input-number__floating-placeholder {
5022
5022
  .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)) {
5023
5023
  --sia-query-item-width: calc(var(--sia-query-field-width, 220px) + var(--sia-query-field-width, 220px) + var(--sia-query-field-gap, 6px));
5024
5024
  }
5025
+ .sia-query-form .sia-query-form__fields > .sia-query-form__field:has(.sia-select-date-range) {
5026
+ --sia-query-item-width: calc(var(--sia-query-field-width, 220px) * 3 + var(--sia-query-field-gap, 6px) * 2);
5027
+ }
5025
5028
  .sia-query-form__field :is(.sia-picker-range-control, .sia-time-range, .sia-select-date-range, .sia-space-compact:not(.sia-space-compact--vertical)) {
5026
5029
  width: 100%;
5027
5030
  }
@@ -6639,7 +6642,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
6639
6642
  box-sizing: border-box;
6640
6643
  display: inline-flex;
6641
6644
  align-items: stretch;
6642
- width: min(560px, 100%);
6645
+ width: min(calc(var(--sia-query-field-width, 220px) * 3 + var(--sia-query-field-gap, 6px) * 2), 100%);
6643
6646
  min-width: 0;
6644
6647
  vertical-align: middle;
6645
6648
  }
package/dist/index.d.cts CHANGED
@@ -5,7 +5,7 @@ import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttribut
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-CyfCT32j.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-BkoYagct.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';
@@ -3070,7 +3070,7 @@ declare const InputSelect: react.ForwardRefExoticComponent<InputSelectProps & re
3070
3070
  interface QueryFormField extends FormItemProps {
3071
3071
  /** 字段布局的稳定唯一标识;用于 React 渲染,不替代 Form.Item 的 name 字段路径。 */
3072
3072
  key: string;
3073
- /** 字段占用宽度,优先于自动布局。未指定时普通控件占一列,日期/时间区间及横向组合控件占两列(含列间距)。 */
3073
+ /** 字段占用宽度,优先于自动布局。未指定时普通控件占一列,日期/时间区间及横向组合控件占两列,SelectDateRange 占三列,均包含跨列间距。 */
3074
3074
  width?: number | string;
3075
3075
  }
3076
3076
  /** 预设或已保存的快捷查询,包含名称、条件、颜色和可选数量徽标。 */
@@ -3113,7 +3113,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
3113
3113
  */
3114
3114
  loading?: boolean;
3115
3115
  /**
3116
- * 单列查询字段的默认宽度,数值单位为像素,可传 CSS 尺寸字符串。区间及横向组合控件默认为两倍此宽度加列间距;行列间距可通过 --sia-query-field-gap 调整(默认 6px)。
3116
+ * 单列查询字段的默认宽度,数值单位为像素,可传 CSS 尺寸字符串。区间及横向组合控件默认占两列,SelectDateRange 占三列,均包含跨列间距;行列间距可通过 --sia-query-field-gap 调整(默认 6px)。
3117
3117
  * @defaultValue 220
3118
3118
  */
3119
3119
  fieldWidth?: number | string;
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttribut
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-B1ZWIHoe.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-DcgrrpHQ.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';
@@ -3070,7 +3070,7 @@ declare const InputSelect: react.ForwardRefExoticComponent<InputSelectProps & re
3070
3070
  interface QueryFormField extends FormItemProps {
3071
3071
  /** 字段布局的稳定唯一标识;用于 React 渲染,不替代 Form.Item 的 name 字段路径。 */
3072
3072
  key: string;
3073
- /** 字段占用宽度,优先于自动布局。未指定时普通控件占一列,日期/时间区间及横向组合控件占两列(含列间距)。 */
3073
+ /** 字段占用宽度,优先于自动布局。未指定时普通控件占一列,日期/时间区间及横向组合控件占两列,SelectDateRange 占三列,均包含跨列间距。 */
3074
3074
  width?: number | string;
3075
3075
  }
3076
3076
  /** 预设或已保存的快捷查询,包含名称、条件、颜色和可选数量徽标。 */
@@ -3113,7 +3113,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
3113
3113
  */
3114
3114
  loading?: boolean;
3115
3115
  /**
3116
- * 单列查询字段的默认宽度,数值单位为像素,可传 CSS 尺寸字符串。区间及横向组合控件默认为两倍此宽度加列间距;行列间距可通过 --sia-query-field-gap 调整(默认 6px)。
3116
+ * 单列查询字段的默认宽度,数值单位为像素,可传 CSS 尺寸字符串。区间及横向组合控件默认占两列,SelectDateRange 占三列,均包含跨列间距;行列间距可通过 --sia-query-field-gap 调整(默认 6px)。
3117
3117
  * @defaultValue 220
3118
3118
  */
3119
3119
  fieldWidth?: number | string;
@@ -207,7 +207,7 @@ interface SelectDateRangeProps extends Omit<HTMLAttributes<HTMLDivElement>, "def
207
207
  /** 值发生变化时调用;参数为新值及类型声明中列出的关联信息。 */
208
208
  onChange?: (value: SelectDateRangeValue) => void;
209
209
  }
210
- /** 类型与日期区间组合选择组件。 */
210
+ /** 类型与日期区间组合选择组件;默认宽度为三个查询字段宽度加两处列间距(默认 672px),不超过容器宽度,可通过 style.width 覆盖。 */
211
211
  declare function SelectDateRange({ options, value, defaultValue, selectPlaceholder, placeholderMode, selectWidth, rangePlaceholder, selectAriaLabel, rangeAriaLabel, presets, size: sizeProp, status, disabled, onChange, className, style, ...props }: SelectDateRangeProps): react.JSX.Element;
212
212
 
213
213
  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 };
@@ -207,7 +207,7 @@ interface SelectDateRangeProps extends Omit<HTMLAttributes<HTMLDivElement>, "def
207
207
  /** 值发生变化时调用;参数为新值及类型声明中列出的关联信息。 */
208
208
  onChange?: (value: SelectDateRangeValue) => void;
209
209
  }
210
- /** 类型与日期区间组合选择组件。 */
210
+ /** 类型与日期区间组合选择组件;默认宽度为三个查询字段宽度加两处列间距(默认 672px),不超过容器宽度,可通过 style.width 覆盖。 */
211
211
  declare function SelectDateRange({ options, value, defaultValue, selectPlaceholder, placeholderMode, selectWidth, rangePlaceholder, selectAriaLabel, rangeAriaLabel, presets, size: sizeProp, status, disabled, onChange, className, style, ...props }: SelectDateRangeProps): react.JSX.Element;
212
212
 
213
213
  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,4 +1,4 @@
1
- export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-CyfCT32j.cjs';
1
+ export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-BkoYagct.cjs';
2
2
  import 'react';
3
3
  import './shared-Bx4B28Wh.cjs';
4
4
  import './Select-YJbT-MF1.cjs';
@@ -1,4 +1,4 @@
1
- export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-B1ZWIHoe.js';
1
+ export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-DcgrrpHQ.js';
2
2
  import 'react';
3
3
  import './shared-Bx4B28Wh.js';
4
4
  import './Select-CCrPqULn.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sia.soul/sia-react-ui",
3
- "version": "0.1.56",
3
+ "version": "0.1.58",
4
4
  "description": "Sia Design components and tokens for React",
5
5
  "publishConfig": {
6
6
  "access": "public",