@sia.soul/sia-react-ui 0.1.91 → 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.
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  FloatingScrollbarProvider,
3
3
  Select
4
- } from "./chunk-7BJPQCRG.js";
4
+ } from "./chunk-ZY3YKRD4.js";
5
5
  import {
6
6
  Icon
7
- } from "./chunk-G5K72R4O.js";
7
+ } from "./chunk-X5BFQUFX.js";
8
8
  import {
9
9
  PopupPortal,
10
10
  useControlSize,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Popover,
3
3
  Tooltip
4
- } from "./chunk-7BJPQCRG.js";
4
+ } from "./chunk-ZY3YKRD4.js";
5
5
  import {
6
6
  Dropdown,
7
7
  Icon,
8
8
  useOverlayLifecycle
9
- } from "./chunk-G5K72R4O.js";
9
+ } from "./chunk-X5BFQUFX.js";
10
10
  import {
11
11
  Button,
12
12
  TextArea
@@ -1351,7 +1351,8 @@ var placementMap = {
1351
1351
  topLeft: "top-start",
1352
1352
  topRight: "top-end"
1353
1353
  };
1354
- function DropdownRoot({
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
- return /* @__PURE__ */ jsxs4("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
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(DropdownRoot, { ...dropdownProps, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__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,
@@ -2,7 +2,7 @@ import {
2
2
  Dropdown,
3
3
  Icon,
4
4
  Input
5
- } from "./chunk-G5K72R4O.js";
5
+ } from "./chunk-X5BFQUFX.js";
6
6
  import {
7
7
  Button
8
8
  } from "./chunk-SJFT5OSX.js";
@@ -3,7 +3,7 @@ import {
3
3
  Icon,
4
4
  Input,
5
5
  Modal
6
- } from "./chunk-G5K72R4O.js";
6
+ } from "./chunk-X5BFQUFX.js";
7
7
  import {
8
8
  Button
9
9
  } from "./chunk-SJFT5OSX.js";
@@ -875,9 +875,15 @@ interface DropdownProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"
875
875
  source: DropdownOpenSource;
876
876
  }) => void;
877
877
  }
878
- declare function DropdownRoot({ menu, children, trigger, placement, open, defaultOpen, disabled, showTriggerIcon, arrow, autoFocus, openDelay, closeDelay, popupClassName, popupStyle, popupRender, onOpenChange, className, onClick, onMouseEnter, onMouseLeave, onContextMenu, onKeyDown, ...props }: DropdownProps): react.JSX.Element;
879
- /** DropdownButton的属性配置。 */
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
- declare function DropdownRoot({ menu, children, trigger, placement, open, defaultOpen, disabled, showTriggerIcon, arrow, autoFocus, openDelay, closeDelay, popupClassName, popupStyle, popupRender, onOpenChange, className, onClick, onMouseEnter, onMouseLeave, onContextMenu, onKeyDown, ...props }: DropdownProps): react.JSX.Element;
879
- /** DropdownButton的属性配置。 */
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 DropdownRoot({
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
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
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)(DropdownRoot, { ...dropdownProps, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__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.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-OIIkAeiG.cjs';
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-BGA9VB0L.js';
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-AG2VFAZR.js";
13
+ } from "./chunk-7MTL2KB5.js";
14
14
  import {
15
15
  Select
16
- } from "./chunk-7BJPQCRG.js";
16
+ } from "./chunk-ZY3YKRD4.js";
17
17
  import {
18
18
  Icon,
19
19
  Input,
20
20
  Modal,
21
21
  Segmented
22
- } from "./chunk-G5K72R4O.js";
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 DropdownRoot({
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
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
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)(DropdownRoot, { ...dropdownProps, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as TagStatus, B as BadgeProps } from './core-OIIkAeiG.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-OIIkAeiG.cjs';
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';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as TagStatus, B as BadgeProps } from './core-BGA9VB0L.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-BGA9VB0L.js';
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';
package/dist/index.js CHANGED
@@ -80,19 +80,19 @@ import {
80
80
  Watermark,
81
81
  message,
82
82
  notification
83
- } from "./chunk-AG2VFAZR.js";
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-OPYA3PMD.js";
90
+ } from "./chunk-YPHUBD4F.js";
91
91
  import {
92
92
  DatePicker,
93
93
  SelectDateRange,
94
94
  TimePanel
95
- } from "./chunk-GLXGN5SO.js";
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-7BJPQCRG.js";
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-G5K72R4O.js";
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 DropdownRoot({
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
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
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)(DropdownRoot, { ...dropdownProps, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__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,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  RichTextContent,
3
3
  RichTextEditor
4
- } from "./chunk-OPYA3PMD.js";
5
- import "./chunk-G5K72R4O.js";
4
+ } from "./chunk-YPHUBD4F.js";
5
+ import "./chunk-X5BFQUFX.js";
6
6
  import "./chunk-SJFT5OSX.js";
7
7
  import "./chunk-PUZWLIIJ.js";
8
8
  export {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  SelectDateRange
3
- } from "./chunk-GLXGN5SO.js";
4
- import "./chunk-7BJPQCRG.js";
5
- import "./chunk-G5K72R4O.js";
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sia.soul/sia-react-ui",
3
- "version": "0.1.91",
3
+ "version": "0.1.92",
4
4
  "description": "Sia Design components and tokens for React",
5
5
  "publishConfig": {
6
6
  "access": "public",