@sia.soul/sia-react-ui 0.1.90 → 0.1.92
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-GLXGN5SO.js → chunk-3JCIEB7I.js} +2 -2
- package/dist/{chunk-AG2VFAZR.js → chunk-7MTL2KB5.js} +2 -2
- package/dist/{chunk-G5K72R4O.js → chunk-X5BFQUFX.js} +9 -4
- package/dist/{chunk-OPYA3PMD.js → chunk-YPHUBD4F.js} +1 -1
- package/dist/{chunk-7BJPQCRG.js → chunk-ZY3YKRD4.js} +1 -1
- package/dist/{core-BGA9VB0L.d.ts → core-DBfzPqVR.d.ts} +8 -2
- package/dist/{core-OIIkAeiG.d.cts → core-DV-4tf3K.d.cts} +8 -2
- package/dist/core.cjs +9 -4
- package/dist/core.css +1 -1
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +3 -3
- package/dist/index.cjs +9 -4
- package/dist/index.css +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/rich-text-editor.cjs +9 -4
- package/dist/rich-text-editor.js +2 -2
- package/dist/select-date-range.js +3 -3
- package/package.json +1 -1
|
@@ -1351,7 +1351,8 @@ var placementMap = {
|
|
|
1351
1351
|
topLeft: "top-start",
|
|
1352
1352
|
topRight: "top-end"
|
|
1353
1353
|
};
|
|
1354
|
-
function
|
|
1354
|
+
function DropdownInternal({
|
|
1355
|
+
popupAnchorRef,
|
|
1355
1356
|
menu,
|
|
1356
1357
|
children,
|
|
1357
1358
|
trigger = ["hover"],
|
|
@@ -1564,7 +1565,7 @@ function DropdownRoot({
|
|
|
1564
1565
|
PopupPortal,
|
|
1565
1566
|
{
|
|
1566
1567
|
ref: popupRef,
|
|
1567
|
-
anchorRef: contextPoint ? contextAnchorRef : rootRef,
|
|
1568
|
+
anchorRef: contextPoint ? contextAnchorRef : popupAnchorRef ?? rootRef,
|
|
1568
1569
|
open: mounted,
|
|
1569
1570
|
placement: contextPoint ? "bottom-start" : placementMap[placement],
|
|
1570
1571
|
offset: contextPoint ? 2 : 6,
|
|
@@ -1586,6 +1587,9 @@ function DropdownRoot({
|
|
|
1586
1587
|
}
|
|
1587
1588
|
);
|
|
1588
1589
|
}
|
|
1590
|
+
function DropdownRoot(props) {
|
|
1591
|
+
return /* @__PURE__ */ jsx5(DropdownInternal, { ...props });
|
|
1592
|
+
}
|
|
1589
1593
|
function DropdownButton({
|
|
1590
1594
|
children,
|
|
1591
1595
|
className = "",
|
|
@@ -1597,9 +1601,10 @@ function DropdownButton({
|
|
|
1597
1601
|
trigger = ["click"],
|
|
1598
1602
|
...dropdownProps
|
|
1599
1603
|
}) {
|
|
1600
|
-
|
|
1604
|
+
const groupRef = useRef2(null);
|
|
1605
|
+
return /* @__PURE__ */ jsxs4("span", { ref: groupRef, className: `sia-dropdown-button ${className}`.trim(), children: [
|
|
1601
1606
|
/* @__PURE__ */ jsx5(Button, { ...buttonProps, disabled: disabled || buttonDisabled, onClick, children }),
|
|
1602
|
-
/* @__PURE__ */ jsx5(
|
|
1607
|
+
/* @__PURE__ */ jsx5(DropdownInternal, { ...dropdownProps, popupAnchorRef: groupRef, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ jsx5(
|
|
1603
1608
|
Button,
|
|
1604
1609
|
{
|
|
1605
1610
|
...buttonProps,
|
|
@@ -875,9 +875,15 @@ interface DropdownProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"
|
|
|
875
875
|
source: DropdownOpenSource;
|
|
876
876
|
}) => void;
|
|
877
877
|
}
|
|
878
|
-
|
|
879
|
-
|
|
878
|
+
/** 普通下拉菜单使用自身触发器定位,不对外暴露组合按钮的内部锚点。 */
|
|
879
|
+
declare function DropdownRoot(props: DropdownProps): react.JSX.Element;
|
|
880
|
+
/** 组合下拉按钮的属性配置;菜单相对于整组按钮定位,主操作和箭头触发保持独立。 */
|
|
880
881
|
interface DropdownButtonProps extends Omit<DropdownProps, "children" | "className"> {
|
|
882
|
+
/**
|
|
883
|
+
* 相对于整组按钮的弹出方向和对齐位置;默认优先与主按钮左侧对齐,视口空间不足时自动调整位置。
|
|
884
|
+
* @defaultValue "bottomLeft"
|
|
885
|
+
*/
|
|
886
|
+
placement?: DropdownPlacement;
|
|
881
887
|
/** 子内容;组件嵌套内容或当前节点的子项。 */
|
|
882
888
|
children?: ReactNode;
|
|
883
889
|
/**
|
|
@@ -875,9 +875,15 @@ interface DropdownProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"
|
|
|
875
875
|
source: DropdownOpenSource;
|
|
876
876
|
}) => void;
|
|
877
877
|
}
|
|
878
|
-
|
|
879
|
-
|
|
878
|
+
/** 普通下拉菜单使用自身触发器定位,不对外暴露组合按钮的内部锚点。 */
|
|
879
|
+
declare function DropdownRoot(props: DropdownProps): react.JSX.Element;
|
|
880
|
+
/** 组合下拉按钮的属性配置;菜单相对于整组按钮定位,主操作和箭头触发保持独立。 */
|
|
880
881
|
interface DropdownButtonProps extends Omit<DropdownProps, "children" | "className"> {
|
|
882
|
+
/**
|
|
883
|
+
* 相对于整组按钮的弹出方向和对齐位置;默认优先与主按钮左侧对齐,视口空间不足时自动调整位置。
|
|
884
|
+
* @defaultValue "bottomLeft"
|
|
885
|
+
*/
|
|
886
|
+
placement?: DropdownPlacement;
|
|
881
887
|
/** 子内容;组件嵌套内容或当前节点的子项。 */
|
|
882
888
|
children?: ReactNode;
|
|
883
889
|
/**
|
package/dist/core.cjs
CHANGED
|
@@ -1707,7 +1707,8 @@ var placementMap = {
|
|
|
1707
1707
|
topLeft: "top-start",
|
|
1708
1708
|
topRight: "top-end"
|
|
1709
1709
|
};
|
|
1710
|
-
function
|
|
1710
|
+
function DropdownInternal({
|
|
1711
|
+
popupAnchorRef,
|
|
1711
1712
|
menu,
|
|
1712
1713
|
children,
|
|
1713
1714
|
trigger = ["hover"],
|
|
@@ -1920,7 +1921,7 @@ function DropdownRoot({
|
|
|
1920
1921
|
PopupPortal,
|
|
1921
1922
|
{
|
|
1922
1923
|
ref: popupRef,
|
|
1923
|
-
anchorRef: contextPoint ? contextAnchorRef : rootRef,
|
|
1924
|
+
anchorRef: contextPoint ? contextAnchorRef : popupAnchorRef ?? rootRef,
|
|
1924
1925
|
open: mounted,
|
|
1925
1926
|
placement: contextPoint ? "bottom-start" : placementMap[placement],
|
|
1926
1927
|
offset: contextPoint ? 2 : 6,
|
|
@@ -1942,6 +1943,9 @@ function DropdownRoot({
|
|
|
1942
1943
|
}
|
|
1943
1944
|
);
|
|
1944
1945
|
}
|
|
1946
|
+
function DropdownRoot(props) {
|
|
1947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownInternal, { ...props });
|
|
1948
|
+
}
|
|
1945
1949
|
function DropdownButton({
|
|
1946
1950
|
children,
|
|
1947
1951
|
className = "",
|
|
@@ -1953,9 +1957,10 @@ function DropdownButton({
|
|
|
1953
1957
|
trigger = ["click"],
|
|
1954
1958
|
...dropdownProps
|
|
1955
1959
|
}) {
|
|
1956
|
-
|
|
1960
|
+
const groupRef = (0, import_react8.useRef)(null);
|
|
1961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { ref: groupRef, className: `sia-dropdown-button ${className}`.trim(), children: [
|
|
1957
1962
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { ...buttonProps, disabled: disabled || buttonDisabled, onClick, children }),
|
|
1958
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1963
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownInternal, { ...dropdownProps, popupAnchorRef: groupRef, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1959
1964
|
Button,
|
|
1960
1965
|
{
|
|
1961
1966
|
...buttonProps,
|
package/dist/core.css
CHANGED
|
@@ -3829,7 +3829,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3829
3829
|
}
|
|
3830
3830
|
.sia-table__cell--range-selected::after {
|
|
3831
3831
|
position: absolute;
|
|
3832
|
-
z-index:
|
|
3832
|
+
z-index: 1;
|
|
3833
3833
|
inset: -1px;
|
|
3834
3834
|
content: "";
|
|
3835
3835
|
border: 0 solid var(--sia-color-primary);
|
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-DV-4tf3K.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-Bv2AmXRD.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-DBfzPqVR.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-Cc1owuvN.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './shared-Bx4B28Wh.js';
|
package/dist/core.js
CHANGED
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
Typography,
|
|
11
11
|
Upload,
|
|
12
12
|
message
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7MTL2KB5.js";
|
|
14
14
|
import {
|
|
15
15
|
Select
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZY3YKRD4.js";
|
|
17
17
|
import {
|
|
18
18
|
Icon,
|
|
19
19
|
Input,
|
|
20
20
|
Modal,
|
|
21
21
|
Segmented
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-X5BFQUFX.js";
|
|
23
23
|
import {
|
|
24
24
|
Button
|
|
25
25
|
} from "./chunk-SJFT5OSX.js";
|
package/dist/index.cjs
CHANGED
|
@@ -1877,7 +1877,8 @@ var placementMap = {
|
|
|
1877
1877
|
topLeft: "top-start",
|
|
1878
1878
|
topRight: "top-end"
|
|
1879
1879
|
};
|
|
1880
|
-
function
|
|
1880
|
+
function DropdownInternal({
|
|
1881
|
+
popupAnchorRef,
|
|
1881
1882
|
menu,
|
|
1882
1883
|
children,
|
|
1883
1884
|
trigger = ["hover"],
|
|
@@ -2090,7 +2091,7 @@ function DropdownRoot({
|
|
|
2090
2091
|
PopupPortal,
|
|
2091
2092
|
{
|
|
2092
2093
|
ref: popupRef,
|
|
2093
|
-
anchorRef: contextPoint ? contextAnchorRef : rootRef,
|
|
2094
|
+
anchorRef: contextPoint ? contextAnchorRef : popupAnchorRef ?? rootRef,
|
|
2094
2095
|
open: mounted,
|
|
2095
2096
|
placement: contextPoint ? "bottom-start" : placementMap[placement],
|
|
2096
2097
|
offset: contextPoint ? 2 : 6,
|
|
@@ -2112,6 +2113,9 @@ function DropdownRoot({
|
|
|
2112
2113
|
}
|
|
2113
2114
|
);
|
|
2114
2115
|
}
|
|
2116
|
+
function DropdownRoot(props) {
|
|
2117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownInternal, { ...props });
|
|
2118
|
+
}
|
|
2115
2119
|
function DropdownButton({
|
|
2116
2120
|
children,
|
|
2117
2121
|
className = "",
|
|
@@ -2123,9 +2127,10 @@ function DropdownButton({
|
|
|
2123
2127
|
trigger = ["click"],
|
|
2124
2128
|
...dropdownProps
|
|
2125
2129
|
}) {
|
|
2126
|
-
|
|
2130
|
+
const groupRef = (0, import_react8.useRef)(null);
|
|
2131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { ref: groupRef, className: `sia-dropdown-button ${className}`.trim(), children: [
|
|
2127
2132
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { ...buttonProps, disabled: disabled || buttonDisabled, onClick, children }),
|
|
2128
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
2133
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownInternal, { ...dropdownProps, popupAnchorRef: groupRef, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
2129
2134
|
Button,
|
|
2130
2135
|
{
|
|
2131
2136
|
...buttonProps,
|
package/dist/index.css
CHANGED
|
@@ -3829,7 +3829,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3829
3829
|
}
|
|
3830
3830
|
.sia-table__cell--range-selected::after {
|
|
3831
3831
|
position: absolute;
|
|
3832
|
-
z-index:
|
|
3832
|
+
z-index: 1;
|
|
3833
3833
|
inset: -1px;
|
|
3834
3834
|
content: "";
|
|
3835
3835
|
border: 0 solid var(--sia-color-primary);
|
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-DV-4tf3K.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-DV-4tf3K.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';
|
|
@@ -2196,7 +2196,7 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
2196
2196
|
stickyHeader?: boolean;
|
|
2197
2197
|
/** 是否允许拖拽表头边界调整列宽;默认启用内置列宽调整插件。 */
|
|
2198
2198
|
resizable?: boolean;
|
|
2199
|
-
/**
|
|
2199
|
+
/** 是否启用单元格选择;点击表格空白处或表格外部清除单元格选区,不影响行勾选。滚动时保留选区,正文选区描边由吸顶表头和固定列遮挡。false 时禁用(包括显式传入的插件)。启用时显式传入的单元格选择插件优先于内置默认插件。
|
|
2200
2200
|
* @defaultValue true */
|
|
2201
2201
|
cellSelection?: boolean;
|
|
2202
2202
|
/**
|
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-DBfzPqVR.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-DBfzPqVR.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';
|
|
@@ -2196,7 +2196,7 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
2196
2196
|
stickyHeader?: boolean;
|
|
2197
2197
|
/** 是否允许拖拽表头边界调整列宽;默认启用内置列宽调整插件。 */
|
|
2198
2198
|
resizable?: boolean;
|
|
2199
|
-
/**
|
|
2199
|
+
/** 是否启用单元格选择;点击表格空白处或表格外部清除单元格选区,不影响行勾选。滚动时保留选区,正文选区描边由吸顶表头和固定列遮挡。false 时禁用(包括显式传入的插件)。启用时显式传入的单元格选择插件优先于内置默认插件。
|
|
2200
2200
|
* @defaultValue true */
|
|
2201
2201
|
cellSelection?: boolean;
|
|
2202
2202
|
/**
|
package/dist/index.js
CHANGED
|
@@ -80,19 +80,19 @@ import {
|
|
|
80
80
|
Watermark,
|
|
81
81
|
message,
|
|
82
82
|
notification
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-7MTL2KB5.js";
|
|
84
84
|
import {
|
|
85
85
|
MarkdownEditor
|
|
86
86
|
} from "./chunk-TUXNOSCT.js";
|
|
87
87
|
import {
|
|
88
88
|
RichTextContent,
|
|
89
89
|
RichTextEditor
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-YPHUBD4F.js";
|
|
91
91
|
import {
|
|
92
92
|
DatePicker,
|
|
93
93
|
SelectDateRange,
|
|
94
94
|
TimePanel
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-3JCIEB7I.js";
|
|
96
96
|
import {
|
|
97
97
|
Checkbox,
|
|
98
98
|
FloatingScrollbarProvider,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
Tooltip,
|
|
105
105
|
Tree,
|
|
106
106
|
useScrollbarProximity
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-ZY3YKRD4.js";
|
|
108
108
|
import {
|
|
109
109
|
Dropdown,
|
|
110
110
|
FILLED_ICON_NAMES,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
Segmented,
|
|
118
118
|
Steps,
|
|
119
119
|
useOverlayLifecycle
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-X5BFQUFX.js";
|
|
121
121
|
import {
|
|
122
122
|
Button,
|
|
123
123
|
TextArea
|
|
@@ -1710,7 +1710,8 @@ var placementMap = {
|
|
|
1710
1710
|
topLeft: "top-start",
|
|
1711
1711
|
topRight: "top-end"
|
|
1712
1712
|
};
|
|
1713
|
-
function
|
|
1713
|
+
function DropdownInternal({
|
|
1714
|
+
popupAnchorRef,
|
|
1714
1715
|
menu,
|
|
1715
1716
|
children,
|
|
1716
1717
|
trigger = ["hover"],
|
|
@@ -1923,7 +1924,7 @@ function DropdownRoot({
|
|
|
1923
1924
|
PopupPortal,
|
|
1924
1925
|
{
|
|
1925
1926
|
ref: popupRef,
|
|
1926
|
-
anchorRef: contextPoint ? contextAnchorRef : rootRef,
|
|
1927
|
+
anchorRef: contextPoint ? contextAnchorRef : popupAnchorRef ?? rootRef,
|
|
1927
1928
|
open: mounted,
|
|
1928
1929
|
placement: contextPoint ? "bottom-start" : placementMap[placement],
|
|
1929
1930
|
offset: contextPoint ? 2 : 6,
|
|
@@ -1945,6 +1946,9 @@ function DropdownRoot({
|
|
|
1945
1946
|
}
|
|
1946
1947
|
);
|
|
1947
1948
|
}
|
|
1949
|
+
function DropdownRoot(props) {
|
|
1950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownInternal, { ...props });
|
|
1951
|
+
}
|
|
1948
1952
|
function DropdownButton({
|
|
1949
1953
|
children,
|
|
1950
1954
|
className = "",
|
|
@@ -1956,9 +1960,10 @@ function DropdownButton({
|
|
|
1956
1960
|
trigger = ["click"],
|
|
1957
1961
|
...dropdownProps
|
|
1958
1962
|
}) {
|
|
1959
|
-
|
|
1963
|
+
const groupRef = (0, import_react8.useRef)(null);
|
|
1964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { ref: groupRef, className: `sia-dropdown-button ${className}`.trim(), children: [
|
|
1960
1965
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Button, { ...buttonProps, disabled: disabled || buttonDisabled, onClick, children }),
|
|
1961
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1966
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownInternal, { ...dropdownProps, popupAnchorRef: groupRef, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1962
1967
|
Button,
|
|
1963
1968
|
{
|
|
1964
1969
|
...buttonProps,
|
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-3JCIEB7I.js";
|
|
4
|
+
import "./chunk-ZY3YKRD4.js";
|
|
5
|
+
import "./chunk-X5BFQUFX.js";
|
|
6
6
|
import "./chunk-SJFT5OSX.js";
|
|
7
7
|
import "./chunk-PUZWLIIJ.js";
|
|
8
8
|
export {
|