@sia.soul/sia-react-ui 0.1.67 → 0.1.69
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/{chunk-NKSPPR2A.js → chunk-5IOLMU5Q.js} +2 -2
- package/dist/{chunk-VGIGEDUP.js → chunk-FIYHM6JU.js} +2 -2
- package/dist/{chunk-DTZUBD2O.js → chunk-JPSNW2GV.js} +1 -1
- package/dist/{chunk-B42RCR7O.js → chunk-L3OY6MWS.js} +1 -1
- package/dist/{chunk-IUZ2RSI5.js → chunk-MKGTIW56.js} +5 -3
- package/dist/{core-DBp8QdFE.d.ts → core-Bv6nXYgH.d.ts} +7 -3
- package/dist/{core-BUJuxdGW.d.cts → core-WhigQGy_.d.cts} +7 -3
- package/dist/core.cjs +5 -3
- package/dist/core.css +16 -25
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +3 -3
- package/dist/index.cjs +7 -5
- package/dist/index.css +16 -25
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -7
- package/dist/rich-text-editor.cjs +5 -3
- package/dist/rich-text-editor.js +2 -2
- package/dist/select-date-range.js +3 -3
- package/package.json +1 -1
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
Popover,
|
|
6
6
|
Tooltip,
|
|
7
7
|
useOverlayLifecycle
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-L3OY6MWS.js";
|
|
9
9
|
import {
|
|
10
10
|
Dropdown,
|
|
11
11
|
Icon
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MKGTIW56.js";
|
|
13
13
|
import {
|
|
14
14
|
Button
|
|
15
15
|
} from "./chunk-IKAMZNCK.js";
|
|
@@ -1314,17 +1314,19 @@ function DropdownButton({
|
|
|
1314
1314
|
buttonProps,
|
|
1315
1315
|
onClick,
|
|
1316
1316
|
disabled,
|
|
1317
|
+
buttonDisabled,
|
|
1318
|
+
dropdownDisabled,
|
|
1317
1319
|
trigger = ["click"],
|
|
1318
1320
|
...dropdownProps
|
|
1319
1321
|
}) {
|
|
1320
1322
|
return /* @__PURE__ */ jsxs4("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
|
|
1321
|
-
/* @__PURE__ */ jsx4(Button, { ...buttonProps, disabled, onClick, children }),
|
|
1322
|
-
/* @__PURE__ */ jsx4(DropdownRoot, { ...dropdownProps, disabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ jsx4(
|
|
1323
|
+
/* @__PURE__ */ jsx4(Button, { ...buttonProps, disabled: disabled || buttonDisabled, onClick, children }),
|
|
1324
|
+
/* @__PURE__ */ jsx4(DropdownRoot, { ...dropdownProps, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ jsx4(
|
|
1323
1325
|
Button,
|
|
1324
1326
|
{
|
|
1325
1327
|
...buttonProps,
|
|
1326
1328
|
className: `sia-dropdown-button__arrow ${buttonProps?.className ?? ""}`.trim(),
|
|
1327
|
-
disabled,
|
|
1329
|
+
disabled: disabled || dropdownDisabled,
|
|
1328
1330
|
icon: /* @__PURE__ */ jsx4(Icon, { name: "chevron-down", size: 14 }),
|
|
1329
1331
|
"aria-label": "\u5C55\u5F00\u4E0B\u62C9\u83DC\u5355"
|
|
1330
1332
|
}
|
|
@@ -47,7 +47,7 @@ type CardAccent = "primary" | "success" | "warning" | "error";
|
|
|
47
47
|
/** 卡片的属性配置。 */
|
|
48
48
|
interface CardProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
|
|
49
49
|
/**
|
|
50
|
-
* 是否显示外边框并保留默认内部留白。false
|
|
50
|
+
* 是否显示外边框并保留默认内部留白。false 移除外边框、选中描边、标题区左右留白及说明、悬浮操作区的内边距,正文内边距改为上下 8px、左右 0;保留背景、圆角、内部分割线和键盘焦点提示。
|
|
51
51
|
* 无边框时仍可通过 bodyStyle.padding 自定义正文内边距。
|
|
52
52
|
* @defaultValue true
|
|
53
53
|
*/
|
|
@@ -109,7 +109,7 @@ interface CardProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
|
|
|
109
109
|
* @defaultValue ""
|
|
110
110
|
*/
|
|
111
111
|
bodyClassName?: string;
|
|
112
|
-
/**
|
|
112
|
+
/** 内容区域的内联样式,可覆盖默认内边距:四周均使用 --sia-spacing;bordered 为 false 时默认内边距为上下 8px、左右 0。 */
|
|
113
113
|
bodyStyle?: CSSProperties;
|
|
114
114
|
}
|
|
115
115
|
/** 卡片组件。 */
|
|
@@ -874,10 +874,14 @@ interface DropdownButtonProps extends Omit<DropdownProps, "children" | "classNam
|
|
|
874
874
|
className?: string;
|
|
875
875
|
/** 透传给触发按钮的 Button 属性,可配置样式、尺寸和事件。 */
|
|
876
876
|
buttonProps?: Omit<ButtonProps, "children" | "onClick" | "disabled">;
|
|
877
|
+
/** 仅禁用主操作按钮;整组 disabled 为 true 时仍优先禁用两侧。 */
|
|
878
|
+
buttonDisabled?: boolean;
|
|
879
|
+
/** 仅禁用下拉入口;用于主操作与菜单具有不同业务权限的场景。 */
|
|
880
|
+
dropdownDisabled?: boolean;
|
|
877
881
|
/** 点击时触发,参数为当前点击事件或项目上下文。 */
|
|
878
882
|
onClick?: ButtonProps["onClick"];
|
|
879
883
|
}
|
|
880
|
-
declare function DropdownButton({ children, className, buttonProps, onClick, disabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
|
|
884
|
+
declare function DropdownButton({ children, className, buttonProps, onClick, disabled, buttonDisabled, dropdownDisabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
|
|
881
885
|
/** 下拉菜单组件。 */
|
|
882
886
|
declare const Dropdown: typeof DropdownRoot & {
|
|
883
887
|
/** 组合主操作按钮与下拉菜单的按钮组件。 */
|
|
@@ -47,7 +47,7 @@ type CardAccent = "primary" | "success" | "warning" | "error";
|
|
|
47
47
|
/** 卡片的属性配置。 */
|
|
48
48
|
interface CardProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
|
|
49
49
|
/**
|
|
50
|
-
* 是否显示外边框并保留默认内部留白。false
|
|
50
|
+
* 是否显示外边框并保留默认内部留白。false 移除外边框、选中描边、标题区左右留白及说明、悬浮操作区的内边距,正文内边距改为上下 8px、左右 0;保留背景、圆角、内部分割线和键盘焦点提示。
|
|
51
51
|
* 无边框时仍可通过 bodyStyle.padding 自定义正文内边距。
|
|
52
52
|
* @defaultValue true
|
|
53
53
|
*/
|
|
@@ -109,7 +109,7 @@ interface CardProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
|
|
|
109
109
|
* @defaultValue ""
|
|
110
110
|
*/
|
|
111
111
|
bodyClassName?: string;
|
|
112
|
-
/**
|
|
112
|
+
/** 内容区域的内联样式,可覆盖默认内边距:四周均使用 --sia-spacing;bordered 为 false 时默认内边距为上下 8px、左右 0。 */
|
|
113
113
|
bodyStyle?: CSSProperties;
|
|
114
114
|
}
|
|
115
115
|
/** 卡片组件。 */
|
|
@@ -874,10 +874,14 @@ interface DropdownButtonProps extends Omit<DropdownProps, "children" | "classNam
|
|
|
874
874
|
className?: string;
|
|
875
875
|
/** 透传给触发按钮的 Button 属性,可配置样式、尺寸和事件。 */
|
|
876
876
|
buttonProps?: Omit<ButtonProps, "children" | "onClick" | "disabled">;
|
|
877
|
+
/** 仅禁用主操作按钮;整组 disabled 为 true 时仍优先禁用两侧。 */
|
|
878
|
+
buttonDisabled?: boolean;
|
|
879
|
+
/** 仅禁用下拉入口;用于主操作与菜单具有不同业务权限的场景。 */
|
|
880
|
+
dropdownDisabled?: boolean;
|
|
877
881
|
/** 点击时触发,参数为当前点击事件或项目上下文。 */
|
|
878
882
|
onClick?: ButtonProps["onClick"];
|
|
879
883
|
}
|
|
880
|
-
declare function DropdownButton({ children, className, buttonProps, onClick, disabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
|
|
884
|
+
declare function DropdownButton({ children, className, buttonProps, onClick, disabled, buttonDisabled, dropdownDisabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
|
|
881
885
|
/** 下拉菜单组件。 */
|
|
882
886
|
declare const Dropdown: typeof DropdownRoot & {
|
|
883
887
|
/** 组合主操作按钮与下拉菜单的按钮组件。 */
|
package/dist/core.cjs
CHANGED
|
@@ -1663,17 +1663,19 @@ function DropdownButton({
|
|
|
1663
1663
|
buttonProps,
|
|
1664
1664
|
onClick,
|
|
1665
1665
|
disabled,
|
|
1666
|
+
buttonDisabled,
|
|
1667
|
+
dropdownDisabled,
|
|
1666
1668
|
trigger = ["click"],
|
|
1667
1669
|
...dropdownProps
|
|
1668
1670
|
}) {
|
|
1669
1671
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
|
|
1670
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { ...buttonProps, disabled, onClick, children }),
|
|
1671
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownRoot, { ...dropdownProps, disabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1672
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { ...buttonProps, disabled: disabled || buttonDisabled, onClick, children }),
|
|
1673
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownRoot, { ...dropdownProps, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1672
1674
|
Button,
|
|
1673
1675
|
{
|
|
1674
1676
|
...buttonProps,
|
|
1675
1677
|
className: `sia-dropdown-button__arrow ${buttonProps?.className ?? ""}`.trim(),
|
|
1676
|
-
disabled,
|
|
1678
|
+
disabled: disabled || dropdownDisabled,
|
|
1677
1679
|
icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "chevron-down", size: 14 }),
|
|
1678
1680
|
"aria-label": "\u5C55\u5F00\u4E0B\u62C9\u83DC\u5355"
|
|
1679
1681
|
}
|
package/dist/core.css
CHANGED
|
@@ -425,7 +425,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
425
425
|
--sia-control-height-medium: 30px;
|
|
426
426
|
--sia-control-height-large: 38px;
|
|
427
427
|
--sia-control-height: var(--sia-control-height-medium);
|
|
428
|
-
--sia-spacing:
|
|
428
|
+
--sia-spacing: 8px;
|
|
429
429
|
--sia-font-size: 13px;
|
|
430
430
|
--sia-font-size-small: 13px;
|
|
431
431
|
--sia-control-font-size: 13px;
|
|
@@ -2539,7 +2539,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2539
2539
|
line-height: 1.55;
|
|
2540
2540
|
}
|
|
2541
2541
|
.sia-card__body {
|
|
2542
|
-
padding:
|
|
2542
|
+
padding: var(--sia-spacing);
|
|
2543
2543
|
}
|
|
2544
2544
|
.sia-card__collapse-trigger {
|
|
2545
2545
|
display: flex;
|
|
@@ -2602,10 +2602,12 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2602
2602
|
margin-inline: 0;
|
|
2603
2603
|
}
|
|
2604
2604
|
.sia-card--borderless > .sia-card__description,
|
|
2605
|
-
.sia-card--borderless > .sia-card__body,
|
|
2606
2605
|
.sia-card--borderless > .sia-card__hover-actions {
|
|
2607
2606
|
padding: 0;
|
|
2608
2607
|
}
|
|
2608
|
+
.sia-card--borderless > .sia-card__body {
|
|
2609
|
+
padding: 8px 0;
|
|
2610
|
+
}
|
|
2609
2611
|
.sia-card--selectable:focus-visible {
|
|
2610
2612
|
outline: 2px solid var(--sia-color-primary);
|
|
2611
2613
|
outline-offset: 2px;
|
|
@@ -6866,33 +6868,16 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
6866
6868
|
height: 32px;
|
|
6867
6869
|
}
|
|
6868
6870
|
.sia-date-panel__cell.is-in-range {
|
|
6869
|
-
background:
|
|
6870
|
-
}
|
|
6871
|
-
.sia-date-panel__cell.is-range-start {
|
|
6872
|
-
background:
|
|
6873
|
-
linear-gradient(
|
|
6874
|
-
90deg,
|
|
6875
|
-
transparent 50%,
|
|
6876
|
-
color-mix(in srgb, var(--sia-color-primary) 12%, transparent) 50%);
|
|
6871
|
+
background: var(--sia-color-primary);
|
|
6877
6872
|
}
|
|
6873
|
+
.sia-date-panel__cell.is-range-start,
|
|
6878
6874
|
.sia-date-panel__cell.is-range-end {
|
|
6879
|
-
background:
|
|
6880
|
-
linear-gradient(
|
|
6881
|
-
90deg,
|
|
6882
|
-
color-mix(in srgb, var(--sia-color-primary) 12%, transparent) 50%,
|
|
6883
|
-
transparent 50%);
|
|
6884
|
-
}
|
|
6885
|
-
.sia-date-panel__cell.is-range-start.is-range-end {
|
|
6886
6875
|
background: transparent;
|
|
6887
6876
|
}
|
|
6888
|
-
.sia-date-panel__cell.is-range
|
|
6889
|
-
|
|
6890
|
-
}
|
|
6877
|
+
.sia-date-panel__cell.is-in-range button,
|
|
6878
|
+
.sia-date-panel__cell.is-range-start button,
|
|
6891
6879
|
.sia-date-panel__cell.is-range-end button {
|
|
6892
|
-
border-radius: 0
|
|
6893
|
-
}
|
|
6894
|
-
.sia-date-panel__cell.is-range-start.is-range-end button {
|
|
6895
|
-
border-radius: 7px;
|
|
6880
|
+
border-radius: 0;
|
|
6896
6881
|
}
|
|
6897
6882
|
.sia-date-panel__cell button {
|
|
6898
6883
|
position: relative;
|
|
@@ -6920,6 +6905,12 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
6920
6905
|
color: var(--sia-color-primary-text);
|
|
6921
6906
|
border-color: var(--sia-color-primary);
|
|
6922
6907
|
}
|
|
6908
|
+
.sia-date-panel__cell.is-today:not(.is-selected):not(.is-in-range):not(.is-range-start):not(.is-range-end) button {
|
|
6909
|
+
width: 32px;
|
|
6910
|
+
height: 32px;
|
|
6911
|
+
border-radius: 50%;
|
|
6912
|
+
}
|
|
6913
|
+
.sia-date-panel__cell.is-in-range button,
|
|
6923
6914
|
.sia-date-panel__cell.is-selected button,
|
|
6924
6915
|
.sia-date-panel__cell.is-range-start button,
|
|
6925
6916
|
.sia-date-panel__cell.is-range-end button {
|
package/dist/core.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, aq as TabItem, ar as Tabs, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, T as TagStatus, aA as TagVariant, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, 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, b1 as UploadProps, b5 as UploadRequestOptions, b9 as message } from './core-
|
|
1
|
+
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, aq as TabItem, ar as Tabs, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, T as TagStatus, aA as TagVariant, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, 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, b1 as UploadProps, b5 as UploadRequestOptions, b9 as message } from './core-WhigQGy_.cjs';
|
|
2
2
|
export { f as Button, B as ButtonProps, e as ButtonSize, g as ButtonVariant, h as Modal, d as ModalActionResult, M as ModalOpenConfig, i as ModalProps, j as ModalType, a as OverlayApiHandle, k as Select, S as SelectOption, c as SelectProps, m as SelectValue } from './Select-DBw1N_mj.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './shared-Bx4B28Wh.cjs';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, aq as TabItem, ar as Tabs, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, T as TagStatus, aA as TagVariant, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, 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, b1 as UploadProps, b5 as UploadRequestOptions, b9 as message } from './core-
|
|
1
|
+
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, aq as TabItem, ar as Tabs, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, T as TagStatus, aA as TagVariant, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, 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, b1 as UploadProps, b5 as UploadRequestOptions, b9 as message } from './core-Bv6nXYgH.js';
|
|
2
2
|
export { f as Button, B as ButtonProps, e as ButtonSize, g as ButtonVariant, h as Modal, d as ModalActionResult, M as ModalOpenConfig, i as ModalProps, j as ModalType, a as OverlayApiHandle, k as Select, S as SelectOption, c as SelectProps, m as SelectValue } from './Select-DxrU73F5.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './shared-Bx4B28Wh.js';
|
package/dist/core.js
CHANGED
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
Typography,
|
|
11
11
|
Upload,
|
|
12
12
|
message
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5IOLMU5Q.js";
|
|
14
14
|
import "./chunk-SMCYEPBL.js";
|
|
15
15
|
import {
|
|
16
16
|
Modal,
|
|
17
17
|
Select
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-L3OY6MWS.js";
|
|
19
19
|
import {
|
|
20
20
|
Icon,
|
|
21
21
|
Input,
|
|
22
22
|
Segmented
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MKGTIW56.js";
|
|
24
24
|
import {
|
|
25
25
|
Button
|
|
26
26
|
} from "./chunk-IKAMZNCK.js";
|
package/dist/index.cjs
CHANGED
|
@@ -1832,17 +1832,19 @@ function DropdownButton({
|
|
|
1832
1832
|
buttonProps,
|
|
1833
1833
|
onClick,
|
|
1834
1834
|
disabled,
|
|
1835
|
+
buttonDisabled,
|
|
1836
|
+
dropdownDisabled,
|
|
1835
1837
|
trigger = ["click"],
|
|
1836
1838
|
...dropdownProps
|
|
1837
1839
|
}) {
|
|
1838
1840
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
|
|
1839
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { ...buttonProps, disabled, onClick, children }),
|
|
1840
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownRoot, { ...dropdownProps, disabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1841
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { ...buttonProps, disabled: disabled || buttonDisabled, onClick, children }),
|
|
1842
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownRoot, { ...dropdownProps, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1841
1843
|
Button,
|
|
1842
1844
|
{
|
|
1843
1845
|
...buttonProps,
|
|
1844
1846
|
className: `sia-dropdown-button__arrow ${buttonProps?.className ?? ""}`.trim(),
|
|
1845
|
-
disabled,
|
|
1847
|
+
disabled: disabled || dropdownDisabled,
|
|
1846
1848
|
icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "chevron-down", size: 14 }),
|
|
1847
1849
|
"aria-label": "\u5C55\u5F00\u4E0B\u62C9\u83DC\u5355"
|
|
1848
1850
|
}
|
|
@@ -15725,8 +15727,8 @@ var SIA_THEME = {
|
|
|
15725
15727
|
borderRadius: 6,
|
|
15726
15728
|
/** 默认控件高度,单位为像素。 */
|
|
15727
15729
|
controlHeight: 32,
|
|
15728
|
-
/**
|
|
15729
|
-
spacing:
|
|
15730
|
+
/** 默认布局间距为 8 像素,对应 --sia-spacing;业务可通过容器或组件上的同名 CSS 变量覆盖。 */
|
|
15731
|
+
spacing: 8,
|
|
15730
15732
|
/** 默认基础字号为 13 像素,对应 --sia-font-size;业务可通过 CSS 变量覆盖。 */
|
|
15731
15733
|
fontSize: 13,
|
|
15732
15734
|
/** 默认小号文字尺寸为 13 像素,对应 --sia-font-size-small;业务可通过 CSS 变量覆盖。 */
|
package/dist/index.css
CHANGED
|
@@ -425,7 +425,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
425
425
|
--sia-control-height-medium: 30px;
|
|
426
426
|
--sia-control-height-large: 38px;
|
|
427
427
|
--sia-control-height: var(--sia-control-height-medium);
|
|
428
|
-
--sia-spacing:
|
|
428
|
+
--sia-spacing: 8px;
|
|
429
429
|
--sia-font-size: 13px;
|
|
430
430
|
--sia-font-size-small: 13px;
|
|
431
431
|
--sia-control-font-size: 13px;
|
|
@@ -2539,7 +2539,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2539
2539
|
line-height: 1.55;
|
|
2540
2540
|
}
|
|
2541
2541
|
.sia-card__body {
|
|
2542
|
-
padding:
|
|
2542
|
+
padding: var(--sia-spacing);
|
|
2543
2543
|
}
|
|
2544
2544
|
.sia-card__collapse-trigger {
|
|
2545
2545
|
display: flex;
|
|
@@ -2602,10 +2602,12 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2602
2602
|
margin-inline: 0;
|
|
2603
2603
|
}
|
|
2604
2604
|
.sia-card--borderless > .sia-card__description,
|
|
2605
|
-
.sia-card--borderless > .sia-card__body,
|
|
2606
2605
|
.sia-card--borderless > .sia-card__hover-actions {
|
|
2607
2606
|
padding: 0;
|
|
2608
2607
|
}
|
|
2608
|
+
.sia-card--borderless > .sia-card__body {
|
|
2609
|
+
padding: 8px 0;
|
|
2610
|
+
}
|
|
2609
2611
|
.sia-card--selectable:focus-visible {
|
|
2610
2612
|
outline: 2px solid var(--sia-color-primary);
|
|
2611
2613
|
outline-offset: 2px;
|
|
@@ -6866,33 +6868,16 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
6866
6868
|
height: 32px;
|
|
6867
6869
|
}
|
|
6868
6870
|
.sia-date-panel__cell.is-in-range {
|
|
6869
|
-
background:
|
|
6870
|
-
}
|
|
6871
|
-
.sia-date-panel__cell.is-range-start {
|
|
6872
|
-
background:
|
|
6873
|
-
linear-gradient(
|
|
6874
|
-
90deg,
|
|
6875
|
-
transparent 50%,
|
|
6876
|
-
color-mix(in srgb, var(--sia-color-primary) 12%, transparent) 50%);
|
|
6871
|
+
background: var(--sia-color-primary);
|
|
6877
6872
|
}
|
|
6873
|
+
.sia-date-panel__cell.is-range-start,
|
|
6878
6874
|
.sia-date-panel__cell.is-range-end {
|
|
6879
|
-
background:
|
|
6880
|
-
linear-gradient(
|
|
6881
|
-
90deg,
|
|
6882
|
-
color-mix(in srgb, var(--sia-color-primary) 12%, transparent) 50%,
|
|
6883
|
-
transparent 50%);
|
|
6884
|
-
}
|
|
6885
|
-
.sia-date-panel__cell.is-range-start.is-range-end {
|
|
6886
6875
|
background: transparent;
|
|
6887
6876
|
}
|
|
6888
|
-
.sia-date-panel__cell.is-range
|
|
6889
|
-
|
|
6890
|
-
}
|
|
6877
|
+
.sia-date-panel__cell.is-in-range button,
|
|
6878
|
+
.sia-date-panel__cell.is-range-start button,
|
|
6891
6879
|
.sia-date-panel__cell.is-range-end button {
|
|
6892
|
-
border-radius: 0
|
|
6893
|
-
}
|
|
6894
|
-
.sia-date-panel__cell.is-range-start.is-range-end button {
|
|
6895
|
-
border-radius: 7px;
|
|
6880
|
+
border-radius: 0;
|
|
6896
6881
|
}
|
|
6897
6882
|
.sia-date-panel__cell button {
|
|
6898
6883
|
position: relative;
|
|
@@ -6920,6 +6905,12 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
6920
6905
|
color: var(--sia-color-primary-text);
|
|
6921
6906
|
border-color: var(--sia-color-primary);
|
|
6922
6907
|
}
|
|
6908
|
+
.sia-date-panel__cell.is-today:not(.is-selected):not(.is-in-range):not(.is-range-start):not(.is-range-end) button {
|
|
6909
|
+
width: 32px;
|
|
6910
|
+
height: 32px;
|
|
6911
|
+
border-radius: 50%;
|
|
6912
|
+
}
|
|
6913
|
+
.sia-date-panel__cell.is-in-range button,
|
|
6923
6914
|
.sia-date-panel__cell.is-selected button,
|
|
6924
6915
|
.sia-date-panel__cell.is-range-start button,
|
|
6925
6916
|
.sia-date-panel__cell.is-range-end button {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
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-
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-WhigQGy_.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-WhigQGy_.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';
|
|
@@ -2874,8 +2874,8 @@ declare const SIA_THEME: {
|
|
|
2874
2874
|
readonly borderRadius: 6;
|
|
2875
2875
|
/** 默认控件高度,单位为像素。 */
|
|
2876
2876
|
readonly controlHeight: 32;
|
|
2877
|
-
/**
|
|
2878
|
-
readonly spacing:
|
|
2877
|
+
/** 默认布局间距为 8 像素,对应 --sia-spacing;业务可通过容器或组件上的同名 CSS 变量覆盖。 */
|
|
2878
|
+
readonly spacing: 8;
|
|
2879
2879
|
/** 默认基础字号为 13 像素,对应 --sia-font-size;业务可通过 CSS 变量覆盖。 */
|
|
2880
2880
|
readonly fontSize: 13;
|
|
2881
2881
|
/** 默认小号文字尺寸为 13 像素,对应 --sia-font-size-small;业务可通过 CSS 变量覆盖。 */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
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-
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-Bv6nXYgH.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-Bv6nXYgH.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';
|
|
@@ -2874,8 +2874,8 @@ declare const SIA_THEME: {
|
|
|
2874
2874
|
readonly borderRadius: 6;
|
|
2875
2875
|
/** 默认控件高度,单位为像素。 */
|
|
2876
2876
|
readonly controlHeight: 32;
|
|
2877
|
-
/**
|
|
2878
|
-
readonly spacing:
|
|
2877
|
+
/** 默认布局间距为 8 像素,对应 --sia-spacing;业务可通过容器或组件上的同名 CSS 变量覆盖。 */
|
|
2878
|
+
readonly spacing: 8;
|
|
2879
2879
|
/** 默认基础字号为 13 像素,对应 --sia-font-size;业务可通过 CSS 变量覆盖。 */
|
|
2880
2880
|
readonly fontSize: 13;
|
|
2881
2881
|
/** 默认小号文字尺寸为 13 像素,对应 --sia-font-size-small;业务可通过 CSS 变量覆盖。 */
|
package/dist/index.js
CHANGED
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
Watermark,
|
|
81
81
|
message,
|
|
82
82
|
notification
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-5IOLMU5Q.js";
|
|
84
84
|
import {
|
|
85
85
|
TextArea
|
|
86
86
|
} from "./chunk-SMCYEPBL.js";
|
|
@@ -90,12 +90,12 @@ import {
|
|
|
90
90
|
import {
|
|
91
91
|
RichTextContent,
|
|
92
92
|
RichTextEditor
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-JPSNW2GV.js";
|
|
94
94
|
import {
|
|
95
95
|
DatePicker,
|
|
96
96
|
SelectDateRange,
|
|
97
97
|
TimePanel
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-FIYHM6JU.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-
|
|
113
|
+
} from "./chunk-L3OY6MWS.js";
|
|
114
114
|
import {
|
|
115
115
|
Dropdown,
|
|
116
116
|
FILLED_ICON_NAMES,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
Menu,
|
|
121
121
|
Segmented,
|
|
122
122
|
Steps
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-MKGTIW56.js";
|
|
124
124
|
import {
|
|
125
125
|
Button
|
|
126
126
|
} from "./chunk-IKAMZNCK.js";
|
|
@@ -8352,8 +8352,8 @@ var SIA_THEME = {
|
|
|
8352
8352
|
borderRadius: 6,
|
|
8353
8353
|
/** 默认控件高度,单位为像素。 */
|
|
8354
8354
|
controlHeight: 32,
|
|
8355
|
-
/**
|
|
8356
|
-
spacing:
|
|
8355
|
+
/** 默认布局间距为 8 像素,对应 --sia-spacing;业务可通过容器或组件上的同名 CSS 变量覆盖。 */
|
|
8356
|
+
spacing: 8,
|
|
8357
8357
|
/** 默认基础字号为 13 像素,对应 --sia-font-size;业务可通过 CSS 变量覆盖。 */
|
|
8358
8358
|
fontSize: 13,
|
|
8359
8359
|
/** 默认小号文字尺寸为 13 像素,对应 --sia-font-size-small;业务可通过 CSS 变量覆盖。 */
|
|
@@ -1666,17 +1666,19 @@ function DropdownButton({
|
|
|
1666
1666
|
buttonProps,
|
|
1667
1667
|
onClick,
|
|
1668
1668
|
disabled,
|
|
1669
|
+
buttonDisabled,
|
|
1670
|
+
dropdownDisabled,
|
|
1669
1671
|
trigger = ["click"],
|
|
1670
1672
|
...dropdownProps
|
|
1671
1673
|
}) {
|
|
1672
1674
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
|
|
1673
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { ...buttonProps, disabled, onClick, children }),
|
|
1674
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownRoot, { ...dropdownProps, disabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1675
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { ...buttonProps, disabled: disabled || buttonDisabled, onClick, children }),
|
|
1676
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownRoot, { ...dropdownProps, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1675
1677
|
Button,
|
|
1676
1678
|
{
|
|
1677
1679
|
...buttonProps,
|
|
1678
1680
|
className: `sia-dropdown-button__arrow ${buttonProps?.className ?? ""}`.trim(),
|
|
1679
|
-
disabled,
|
|
1681
|
+
disabled: disabled || dropdownDisabled,
|
|
1680
1682
|
icon: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "chevron-down", size: 14 }),
|
|
1681
1683
|
"aria-label": "\u5C55\u5F00\u4E0B\u62C9\u83DC\u5355"
|
|
1682
1684
|
}
|
package/dist/rich-text-editor.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SelectDateRange
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-FIYHM6JU.js";
|
|
4
|
+
import "./chunk-L3OY6MWS.js";
|
|
5
|
+
import "./chunk-MKGTIW56.js";
|
|
6
6
|
import "./chunk-IKAMZNCK.js";
|
|
7
7
|
import "./chunk-H7IAG72O.js";
|
|
8
8
|
export {
|