@eightshift/ui-components 1.4.7 → 1.5.1

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.
Files changed (94) hide show
  1. package/dist/{Button-uYE9D_E3.js → Button-CYX0D6At.js} +5 -5
  2. package/dist/{ColorSwatch-Bev-9Vbr.js → ColorSwatch-BNX2quma.js} +4 -4
  3. package/dist/{Dialog-CGE2ficT.js → Dialog-DSquJZb-.js} +110 -18
  4. package/dist/{FieldError-CBPJ4Xx8.js → FieldError-ClB3-XvF.js} +2 -2
  5. package/dist/{FocusScope-CVd6C65L.js → FocusScope-B5L3qI3N.js} +4 -4
  6. package/dist/{Group-WZgNv9RE.js → Group-ubPTwji_.js} +3 -3
  7. package/dist/{Hidden-YSmyVF_5.js → Hidden-CupIZhlF.js} +1 -1
  8. package/dist/{Input-CaS4qmLb.js → Input-BoNEjaXM.js} +8 -8
  9. package/dist/{Label-yZgqvhXc.js → Label-BqW0M3HN.js} +2 -2
  10. package/dist/{ListBox-MZyPpwvj.js → ListBox-civ86c_v.js} +13 -18
  11. package/dist/{Select-49a62830.esm-CqLHaIei.js → Select-49a62830.esm-D8voKavK.js} +1 -1
  12. package/dist/{SelectionManager-CvRaua4m.js → SelectionManager-Ctbzoj1E.js} +12 -21
  13. package/dist/{Separator-C7Few7L6.js → Separator-CDhAddZc.js} +3 -3
  14. package/dist/{Slider-D8a63VhT.js → Slider-Dkj8Slw3.js} +11 -11
  15. package/dist/{Text-D8qh3_U7.js → Text-CdwRBXol.js} +1 -1
  16. package/dist/{VisuallyHidden-DD480kAb.js → VisuallyHidden-DsMLX-RC.js} +2 -2
  17. package/dist/assets/style.css +1 -1
  18. package/dist/components/animated-visibility/animated-visibility.js +5794 -5751
  19. package/dist/components/base-control/base-control.js +1 -1
  20. package/dist/components/button/button.js +5 -5
  21. package/dist/components/checkbox/checkbox.js +7 -7
  22. package/dist/components/color-pickers/color-swatch.js +2 -2
  23. package/dist/components/color-pickers/gradient-editor.js +1 -1
  24. package/dist/components/color-pickers/solid-color-picker.js +18 -18
  25. package/dist/components/component-toggle/component-toggle.js +43 -4
  26. package/dist/components/draggable/draggable-context.js +5 -0
  27. package/dist/components/draggable/draggable-item.js +66 -0
  28. package/dist/components/draggable/draggable.js +159 -0
  29. package/dist/components/draggable-list/draggable-list-context.js +5 -0
  30. package/dist/components/draggable-list/draggable-list-item.js +51 -39
  31. package/dist/components/draggable-list/draggable-list.js +93 -3736
  32. package/dist/components/expandable/expandable.js +2 -2
  33. package/dist/components/index.js +10 -2
  34. package/dist/components/input-field/input-field.js +7 -7
  35. package/dist/components/item-collection/item-collection.js +54 -0
  36. package/dist/components/link-input/link-input.js +216 -31
  37. package/dist/components/list-box/list-box.js +1 -1
  38. package/dist/components/matrix-align/matrix-align.js +1 -1
  39. package/dist/components/menu/menu.js +14 -13
  40. package/dist/components/modal/modal.js +3 -4
  41. package/dist/components/number-picker/number-picker.js +9 -9
  42. package/dist/components/popover/popover.js +1 -1
  43. package/dist/components/radio/radio.js +13 -13
  44. package/dist/components/repeater/repeater.js +51 -47
  45. package/dist/components/responsive/responsive-legacy.js +1 -1
  46. package/dist/components/responsive/responsive.js +1 -1
  47. package/dist/components/select/async-multi-select.js +2 -2
  48. package/dist/components/select/async-single-select.js +2 -2
  49. package/dist/components/select/custom-select-default-components.js +1 -1
  50. package/dist/components/select/multi-select.js +2 -2
  51. package/dist/components/select/react-select-component-wrappers.js +1 -1
  52. package/dist/components/select/single-select.js +2 -2
  53. package/dist/components/select/styles.js +1 -1
  54. package/dist/components/slider/column-config-slider.js +2 -2
  55. package/dist/components/slider/slider.js +3 -3
  56. package/dist/components/tabs/tabs.js +46 -12
  57. package/dist/components/toggle/switch.js +7 -7
  58. package/dist/components/toggle/toggle.js +1 -1
  59. package/dist/components/toggle-button/toggle-button.js +6 -6
  60. package/dist/components/tooltip/tooltip.js +3 -3
  61. package/dist/{context-Bon2Gyx5.js → context-kCEA3M_y.js} +1 -1
  62. package/dist/{focusSafely-PMGZgZ9-.js → focusSafely-xMzk3syC.js} +1 -1
  63. package/dist/{index-a301f526.esm-B9tWL9yi.js → index-a301f526.esm-BMg114iK.js} +8 -3
  64. package/dist/index.js +10 -2
  65. package/dist/{intlStrings-KQxgp5tS.js → intlStrings-BxJIrC6b.js} +1 -1
  66. package/dist/{react-select-async.esm-8Rba_3KV.js → react-select-async.esm-DY-cP0QK.js} +2 -2
  67. package/dist/{react-select.esm-DkSeQzOP.js → react-select.esm-DNlXj0hV.js} +2 -2
  68. package/dist/swapy-qb4t7itb.js +3059 -0
  69. package/dist/{textSelection-DS7-670U.js → textSelection-D5Bit8i8.js} +1 -1
  70. package/dist/{tooltip-C9mg1CP5.js → tooltip-srrt1p-b.js} +9 -8
  71. package/dist/{useButton-BPY4yXUo.js → useButton-6H5k2W5N.js} +3 -3
  72. package/dist/{useEvent-DDLT851Z.js → useEvent-BY-3vfxa.js} +1 -1
  73. package/dist/{useFocusRing-DsxEaA2J.js → useFocusRing-rz8eyzby.js} +1 -1
  74. package/dist/{useFocusable-BFKHuYS9.js → useFocusable-Bu2Ovohk.js} +2 -2
  75. package/dist/{useFormReset-BCPbwfnH.js → useFormReset-fUHUaaR6.js} +1 -1
  76. package/dist/{useFormValidationState-DC5jbhBW.js → useFormValidationState-DAan_XbC.js} +2 -2
  77. package/dist/{useLabel-DuJhImKc.js → useLabel-Bk7iP__W.js} +2 -2
  78. package/dist/{useLabels-JaBafrnV.js → useLabels-DmsOywGg.js} +1 -1
  79. package/dist/{useListState-Csx05BmT.js → useListState-GXSJsAgz.js} +1 -1
  80. package/dist/{useLocalizedStringFormatter-CVIIVTgz.js → useLocalizedStringFormatter-m03yY3xi.js} +1 -1
  81. package/dist/{useMenuTrigger-CMgzyMKW.js → useMenuTrigger-BbwpSVmh.js} +4 -4
  82. package/dist/{useNumberFieldState-BVFqhboT.js → useNumberFieldState-CpmU88xz.js} +9 -9
  83. package/dist/{useNumberFormatter-BEeBSV-N.js → useNumberFormatter-B-20GQ2u.js} +1 -1
  84. package/dist/{usePress-CY8MpqYD.js → usePress-Cs8K7gKw.js} +4 -16
  85. package/dist/{useSingleSelectListState-CzZUgAt0.js → useSingleSelectListState-C1ddMCq3.js} +2 -2
  86. package/dist/{useToggle-CJp2Fh_L.js → useToggle-Cn2nQUNS.js} +4 -4
  87. package/dist/{useToggleState-B4--Ski0.js → useToggleState-Dj0JhD9W.js} +1 -1
  88. package/dist/{utils-B4IdLYb8.js → utils-Du2x3YVu.js} +4 -4
  89. package/package.json +19 -18
  90. package/dist/GridList-PBJsm70G.js +0 -1268
  91. package/dist/ariaHideOutside-BzxkODNq.js +0 -89
  92. package/dist/getScrollParent-B3XgpXBL.js +0 -10
  93. package/dist/useHasTabbableChild-Byd7ylXD.js +0 -37
  94. package/dist/useListData-B5Pk32vd.js +0 -200
@@ -6,8 +6,8 @@ import { Button } from "../button/button.js";
6
6
  import { icons } from "../../icons/icons.js";
7
7
  import { c as clsx } from "../../lite-DVmmD_-j.js";
8
8
  import { _ as __ } from "../../default-i18n-BqWys-1G.js";
9
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-yZgqvhXc.js";
10
- import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "../../FocusScope-CVd6C65L.js";
9
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BqW0M3HN.js";
10
+ import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "../../FocusScope-B5L3qI3N.js";
11
11
  /**
12
12
  * A component that allows hiding content in an expandable panel, to declutter the UI.
13
13
  *
@@ -9,7 +9,9 @@ import { ColorSwatch } from "./color-pickers/color-swatch.js";
9
9
  import { ColorPicker } from "./color-pickers/color-picker.js";
10
10
  import { ColumnConfigSlider, ColumnConfigSliderOutput } from "./slider/column-config-slider.js";
11
11
  import { DraggableList } from "./draggable-list/draggable-list.js";
12
- import { DraggableListItem } from "./draggable-list/draggable-list-item.js";
12
+ import { DraggableListItem, DraggableListItemHandle } from "./draggable-list/draggable-list-item.js";
13
+ import { Draggable } from "./draggable/draggable.js";
14
+ import { DraggableItem, DraggableItemHandle } from "./draggable/draggable-item.js";
13
15
  import { Expandable } from "./expandable/expandable.js";
14
16
  import { FilePlaceholder } from "./placeholders/file-placeholder.js";
15
17
  import { GradientEditor } from "./color-pickers/gradient-editor.js";
@@ -17,6 +19,7 @@ import { HStack } from "./layout/hstack.js";
17
19
  import { RichLabel } from "./rich-label/rich-label.js";
18
20
  import { InputField } from "./input-field/input-field.js";
19
21
  import { ImagePlaceholder } from "./placeholders/image-placeholder.js";
22
+ import { ItemCollection } from "./item-collection/item-collection.js";
20
23
  import { LinkInput } from "./link-input/link-input.js";
21
24
  import { ListBox } from "./list-box/list-box.js";
22
25
  import { MatrixAlign } from "./matrix-align/matrix-align.js";
@@ -46,7 +49,7 @@ import { Tab, TabList, TabPanel, Tabs } from "./tabs/tabs.js";
46
49
  import { Toggle } from "./toggle/toggle.js";
47
50
  import { Switch } from "./toggle/switch.js";
48
51
  import { ToggleButton } from "./toggle-button/toggle-button.js";
49
- import { D, T } from "../tooltip-C9mg1CP5.js";
52
+ import { D, T } from "../tooltip-srrt1p-b.js";
50
53
  import { VStack } from "./layout/vstack.js";
51
54
  export {
52
55
  AnimatedVisibility,
@@ -64,14 +67,19 @@ export {
64
67
  ComponentToggle,
65
68
  ContainerPanel,
66
69
  D as DecorativeTooltip,
70
+ Draggable,
71
+ DraggableItem,
72
+ DraggableItemHandle,
67
73
  DraggableList,
68
74
  DraggableListItem,
75
+ DraggableListItemHandle,
69
76
  Expandable,
70
77
  FilePlaceholder,
71
78
  GradientEditor,
72
79
  HStack,
73
80
  ImagePlaceholder,
74
81
  InputField,
82
+ ItemCollection,
75
83
  LinkInput,
76
84
  ListBox,
77
85
  MatrixAlign,
@@ -1,13 +1,13 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-CaS4qmLb.js";
3
- import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-yZgqvhXc.js";
4
- import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, c as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-B4IdLYb8.js";
2
+ import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BoNEjaXM.js";
3
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BqW0M3HN.js";
4
+ import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, c as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$ef03459518577ad4, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-Du2x3YVu.js";
5
5
  import React__default, { forwardRef, createContext, useRef, useState, useCallback } from "react";
6
- import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-PMGZgZ9-.js";
7
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-DsxEaA2J.js";
8
- import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-CBPJ4Xx8.js";
6
+ import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-xMzk3syC.js";
7
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-rz8eyzby.js";
8
+ import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-ClB3-XvF.js";
9
9
  import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
10
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-D8qh3_U7.js";
10
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-CdwRBXol.js";
11
11
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
12
12
  import { BaseControl } from "../base-control/base-control.js";
13
13
  import { c as clsx } from "../../lite-DVmmD_-j.js";
@@ -0,0 +1,54 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Fragment } from "react";
3
+ /**
4
+ * A simple component to manage a collection of items.
5
+ *
6
+ * @component
7
+ * @param {Object} props - Component props.
8
+ * @param {Object<string, any>[]} props.items - Items to show.
9
+ * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
10
+ *
11
+ * @returns {JSX.Element} The ItemCollection component.
12
+ *
13
+ * @example
14
+ * <ItemCollection
15
+ * items={items}
16
+ * onChange={setItems}
17
+ * >
18
+ * {({ title, updateData, deleteItem }) => (
19
+ * <div>
20
+ * <InputField
21
+ * label={__('Title', 'demo')}
22
+ * value={title}
23
+ * onChange={(title) => updateData({ title })}
24
+ * />
25
+ * </div>
26
+ * )}
27
+ * </ItemCollection>
28
+ *
29
+ * @preserve
30
+ */
31
+ const ItemCollection = (props) => {
32
+ const { children, items, onChange, hidden } = props;
33
+ if (hidden) {
34
+ return null;
35
+ }
36
+ return items.map((item, index) => /* @__PURE__ */ jsx(Fragment, { children: children({
37
+ ...item,
38
+ updateData: (newValue) => {
39
+ const updated = [...items];
40
+ updated[index] = {
41
+ ...updated[index],
42
+ ...newValue
43
+ };
44
+ onChange(updated);
45
+ },
46
+ itemIndex: index,
47
+ deleteItem: () => {
48
+ onChange([...items].filter((_, i) => i !== index));
49
+ }
50
+ }) }, index));
51
+ };
52
+ export {
53
+ ItemCollection
54
+ };
@@ -1,29 +1,28 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1, a as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-uYE9D_E3.js";
3
- import { n as $ff5963eb1fccf552$export$e08e3b67e392101e, c as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-B4IdLYb8.js";
4
- import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-CBPJ4Xx8.js";
2
+ import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1, a as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-CYX0D6At.js";
3
+ import { n as $ff5963eb1fccf552$export$e08e3b67e392101e, c as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-Du2x3YVu.js";
4
+ import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-ClB3-XvF.js";
5
5
  import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
6
- import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-WZgNv9RE.js";
7
- import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-CaS4qmLb.js";
8
- import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-yZgqvhXc.js";
9
- import { b as $b1f0cad8af73213b$export$3585ede4d035bf14, c as $b1f0cad8af73213b$export$9145995848b05025, d as $eed445e0843c11d0$export$7ff8f37d2d81a48d, e as $eed445e0843c11d0$export$7c5906fe4f1f2af2, $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-MZyPpwvj.js";
10
- import { f as $de32f1b87079253c$export$d2f961adcb0afbe, i as $07b14b47974efb58$export$9b9a0cd73afb7ca4, $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-CGE2ficT.js";
11
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-D8qh3_U7.js";
12
- import { i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, k as $c5a24bc478652b5f$export$1005530eda016c13, e as $e1995378a142960e$export$bf788dd355e3a401 } from "../../SelectionManager-CvRaua4m.js";
6
+ import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-ubPTwji_.js";
7
+ import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BoNEjaXM.js";
8
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BqW0M3HN.js";
9
+ import { b as $b1f0cad8af73213b$export$3585ede4d035bf14, c as $b1f0cad8af73213b$export$9145995848b05025, d as $eed445e0843c11d0$export$7ff8f37d2d81a48d, e as $eed445e0843c11d0$export$7c5906fe4f1f2af2, $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-civ86c_v.js";
10
+ import { f as $5e3802645cc19319$export$1c3ebcada18427bf, g as $de32f1b87079253c$export$d2f961adcb0afbe, j as $07b14b47974efb58$export$9b9a0cd73afb7ca4, $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-DSquJZb-.js";
11
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-CdwRBXol.js";
12
+ import { i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, j as $c5a24bc478652b5f$export$1005530eda016c13, e as $e1995378a142960e$export$bf788dd355e3a401 } from "../../SelectionManager-Ctbzoj1E.js";
13
13
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
14
- import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, a as $9daab02d461809db$export$683480f191c0e3ea, T as Tooltip } from "../../tooltip-C9mg1CP5.js";
14
+ import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, a as $9daab02d461809db$export$683480f191c0e3ea, T as Tooltip } from "../../tooltip-srrt1p-b.js";
15
15
  import React__default, { useCallback, useMemo, useRef, useEffect, useState, useReducer, forwardRef, createContext, cloneElement } from "react";
16
- import { b as $325a3faab7a68acd$export$a16aca283550c30d, c as $2a25aae57d74318e$export$a05409b8bb224a5a, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "../../Separator-C7Few7L6.js";
17
- import { c as $e5be200c675c3b3a$export$a763b9476acd3eb, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidationState-DC5jbhBW.js";
18
- import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../../useSingleSelectListState-CzZUgAt0.js";
19
- import { a as $a02d57049d202695$export$d085fb9e920b5ca7 } from "../../useListState-Csx05BmT.js";
20
- import { w as $c87311424ea30a05$export$e1865c3bedcd822b, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-PMGZgZ9-.js";
16
+ import { b as $325a3faab7a68acd$export$a16aca283550c30d, c as $2a25aae57d74318e$export$a05409b8bb224a5a, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "../../Separator-CDhAddZc.js";
17
+ import { c as $e5be200c675c3b3a$export$a763b9476acd3eb, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidationState-DAan_XbC.js";
18
+ import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../../useSingleSelectListState-C1ddMCq3.js";
19
+ import { a as $a02d57049d202695$export$d085fb9e920b5ca7 } from "../../useListState-GXSJsAgz.js";
20
+ import { w as $c87311424ea30a05$export$e1865c3bedcd822b, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-xMzk3syC.js";
21
21
  import { $ as $319e236875307eab$export$a9b970dcc4ae71a9 } from "../../LiveAnnouncer-D8h-3GrG.js";
22
- import { $ as $5e3802645cc19319$export$1c3ebcada18427bf } from "../../ariaHideOutside-BzxkODNq.js";
23
- import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572 } from "../../usePress-CY8MpqYD.js";
24
- import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-JaBafrnV.js";
25
- import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-CVIIVTgz.js";
26
- import { $ as $168583247155ddda$export$dc9c12ed27dd1b49 } from "../../useMenuTrigger-CMgzyMKW.js";
22
+ import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572 } from "../../usePress-Cs8K7gKw.js";
23
+ import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-DmsOywGg.js";
24
+ import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-m03yY3xi.js";
25
+ import { $ as $168583247155ddda$export$dc9c12ed27dd1b49 } from "../../useMenuTrigger-BbwpSVmh.js";
27
26
  import { _ as __ } from "../../default-i18n-BqWys-1G.js";
28
27
  import { icons } from "../../icons/icons.js";
29
28
  import { c as clsx } from "../../lite-DVmmD_-j.js";
@@ -31,7 +30,6 @@ import { Spacer } from "../spacer/spacer.js";
31
30
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
32
31
  import { BaseControl } from "../base-control/base-control.js";
33
32
  import { RichLabel } from "../rich-label/rich-label.js";
34
- import { $ as $0d86e9c8f07f9a7b$export$79c0c687a5963b0a } from "../../useListData-B5Pk32vd.js";
35
33
  function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
36
34
  let collator = $325a3faab7a68acd$export$a16aca283550c30d({
37
35
  usage: "search",
@@ -998,6 +996,8 @@ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
998
996
  ...menuTriggerProps,
999
997
  ...triggerLabelProps,
1000
998
  excludeFromTabOrder: true,
999
+ // @ts-ignore - undocumented
1000
+ preventFocusOnPress: true,
1001
1001
  onPress,
1002
1002
  onPressStart,
1003
1003
  isDisabled: isDisabled || isReadOnly
@@ -1264,6 +1264,175 @@ function $a9e7382a7d111cb5$var$filterNodes(collection, nodes, inputValue, filter
1264
1264
  }
1265
1265
  return filteredNode;
1266
1266
  }
1267
+ function $0d86e9c8f07f9a7b$export$79c0c687a5963b0a(opts, dispatch) {
1268
+ let { cursor, getKey } = opts;
1269
+ return {
1270
+ setSelectedKeys(selectedKeys) {
1271
+ dispatch((state) => ({
1272
+ ...state,
1273
+ selectedKeys
1274
+ }));
1275
+ },
1276
+ setFilterText(filterText) {
1277
+ dispatch((state) => ({
1278
+ ...state,
1279
+ filterText
1280
+ }));
1281
+ },
1282
+ insert(index, ...values) {
1283
+ dispatch((state) => $0d86e9c8f07f9a7b$var$insert(state, index, ...values));
1284
+ },
1285
+ insertBefore(key, ...values) {
1286
+ dispatch((state) => {
1287
+ let index = state.items.findIndex((item) => getKey(item) === key);
1288
+ if (index === -1) {
1289
+ if (state.items.length === 0) index = 0;
1290
+ else return state;
1291
+ }
1292
+ return $0d86e9c8f07f9a7b$var$insert(state, index, ...values);
1293
+ });
1294
+ },
1295
+ insertAfter(key, ...values) {
1296
+ dispatch((state) => {
1297
+ let index = state.items.findIndex((item) => getKey(item) === key);
1298
+ if (index === -1) {
1299
+ if (state.items.length === 0) index = 0;
1300
+ else return state;
1301
+ }
1302
+ return $0d86e9c8f07f9a7b$var$insert(state, index + 1, ...values);
1303
+ });
1304
+ },
1305
+ prepend(...values) {
1306
+ dispatch((state) => $0d86e9c8f07f9a7b$var$insert(state, 0, ...values));
1307
+ },
1308
+ append(...values) {
1309
+ dispatch((state) => $0d86e9c8f07f9a7b$var$insert(state, state.items.length, ...values));
1310
+ },
1311
+ remove(...keys) {
1312
+ dispatch((state) => {
1313
+ let keySet = new Set(keys);
1314
+ let items = state.items.filter((item) => !keySet.has(getKey(item)));
1315
+ let selection = "all";
1316
+ if (state.selectedKeys !== "all") {
1317
+ selection = new Set(state.selectedKeys);
1318
+ for (let key of keys) selection.delete(key);
1319
+ }
1320
+ if (cursor == null && items.length === 0) selection = /* @__PURE__ */ new Set();
1321
+ return {
1322
+ ...state,
1323
+ items,
1324
+ selectedKeys: selection
1325
+ };
1326
+ });
1327
+ },
1328
+ removeSelectedItems() {
1329
+ dispatch((state) => {
1330
+ if (state.selectedKeys === "all") return {
1331
+ ...state,
1332
+ items: [],
1333
+ selectedKeys: /* @__PURE__ */ new Set()
1334
+ };
1335
+ let selectedKeys = state.selectedKeys;
1336
+ let items = state.items.filter((item) => !selectedKeys.has(getKey(item)));
1337
+ return {
1338
+ ...state,
1339
+ items,
1340
+ selectedKeys: /* @__PURE__ */ new Set()
1341
+ };
1342
+ });
1343
+ },
1344
+ move(key, toIndex) {
1345
+ dispatch((state) => {
1346
+ let index = state.items.findIndex((item2) => getKey(item2) === key);
1347
+ if (index === -1) return state;
1348
+ let copy = state.items.slice();
1349
+ let [item] = copy.splice(index, 1);
1350
+ copy.splice(toIndex, 0, item);
1351
+ return {
1352
+ ...state,
1353
+ items: copy
1354
+ };
1355
+ });
1356
+ },
1357
+ moveBefore(key, keys) {
1358
+ dispatch((state) => {
1359
+ let toIndex = state.items.findIndex((item) => getKey(item) === key);
1360
+ if (toIndex === -1) return state;
1361
+ let keyArray = Array.isArray(keys) ? keys : [
1362
+ ...keys
1363
+ ];
1364
+ let indices = keyArray.map((key2) => state.items.findIndex((item) => getKey(item) === key2)).sort((a, b) => a - b);
1365
+ return $0d86e9c8f07f9a7b$var$move(state, indices, toIndex);
1366
+ });
1367
+ },
1368
+ moveAfter(key, keys) {
1369
+ dispatch((state) => {
1370
+ let toIndex = state.items.findIndex((item) => getKey(item) === key);
1371
+ if (toIndex === -1) return state;
1372
+ let keyArray = Array.isArray(keys) ? keys : [
1373
+ ...keys
1374
+ ];
1375
+ let indices = keyArray.map((key2) => state.items.findIndex((item) => getKey(item) === key2)).sort((a, b) => a - b);
1376
+ return $0d86e9c8f07f9a7b$var$move(state, indices, toIndex + 1);
1377
+ });
1378
+ },
1379
+ update(key, newValue) {
1380
+ dispatch((state) => {
1381
+ let index = state.items.findIndex((item) => getKey(item) === key);
1382
+ if (index === -1) return state;
1383
+ return {
1384
+ ...state,
1385
+ items: [
1386
+ ...state.items.slice(0, index),
1387
+ newValue,
1388
+ ...state.items.slice(index + 1)
1389
+ ]
1390
+ };
1391
+ });
1392
+ }
1393
+ };
1394
+ }
1395
+ function $0d86e9c8f07f9a7b$var$insert(state, index, ...values) {
1396
+ return {
1397
+ ...state,
1398
+ items: [
1399
+ ...state.items.slice(0, index),
1400
+ ...values,
1401
+ ...state.items.slice(index)
1402
+ ]
1403
+ };
1404
+ }
1405
+ function $0d86e9c8f07f9a7b$var$move(state, indices, toIndex) {
1406
+ toIndex -= indices.filter((index) => index < toIndex).length;
1407
+ let moves = indices.map((from) => ({
1408
+ from,
1409
+ to: toIndex++
1410
+ }));
1411
+ for (let i = 0; i < moves.length; i++) {
1412
+ let a = moves[i].from;
1413
+ for (let j = i; j < moves.length; j++) {
1414
+ let b = moves[j].from;
1415
+ if (b > a) moves[j].from--;
1416
+ }
1417
+ }
1418
+ for (let i = 0; i < moves.length; i++) {
1419
+ let a = moves[i];
1420
+ for (let j = moves.length - 1; j > i; j--) {
1421
+ let b = moves[j];
1422
+ if (b.from < a.to) a.to++;
1423
+ else b.from++;
1424
+ }
1425
+ }
1426
+ let copy = state.items.slice();
1427
+ for (let move of moves) {
1428
+ let [item] = copy.splice(move.from, 1);
1429
+ copy.splice(move.to, 0, item);
1430
+ }
1431
+ return {
1432
+ ...state,
1433
+ items: copy
1434
+ };
1435
+ }
1267
1436
  function $f86e6c1ec7da6ebb$var$reducer(data, action) {
1268
1437
  let selectedKeys;
1269
1438
  switch (data.state) {
@@ -1723,6 +1892,7 @@ const $d01f2c01039c0eec$export$72b9695b8216309a = /* @__PURE__ */ forwardRef($d0
1723
1892
  * @param {string} [props.className] - Classes to pass to the input field.
1724
1893
  * @param {number} [props.inputDebounceDelay=500] - The delay in milliseconds before the input value is considered final.
1725
1894
  * @param {Function} [props.suggestionTypeIconOverride] - Allows overriding the default icon for the suggestion type, e.g. when using CPTs. Should be in the format: `(type) => icon or React component`.
1895
+ * @param {boolean} [props.showSuggestionsWhenEmpty] - If `true`, the suggestion list will be shown when down arrow is pressed even the input is empty.
1726
1896
  * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
1727
1897
  *
1728
1898
  * @returns {JSX.Element} The LinkInput component.
@@ -1738,7 +1908,7 @@ const $d01f2c01039c0eec$export$72b9695b8216309a = /* @__PURE__ */ forwardRef($d0
1738
1908
  const LinkInput = (props) => {
1739
1909
  var _a;
1740
1910
  const {
1741
- url,
1911
+ url = "",
1742
1912
  onChange,
1743
1913
  label = __("Link", "eightshift-ui-components"),
1744
1914
  subtitle,
@@ -1749,27 +1919,42 @@ const LinkInput = (props) => {
1749
1919
  removeIcon = icons.clearAlt,
1750
1920
  disabled = false,
1751
1921
  suggestionTypeIconOverride,
1922
+ showSuggestionsWhenEmpty,
1752
1923
  fetchSuggestions,
1753
1924
  className,
1754
1925
  hidden
1755
1926
  } = props;
1927
+ const canShowSuggestions = typeof fetchSuggestions !== "undefined";
1756
1928
  const triggerRef = useRef(null);
1757
1929
  const suggestionList = $f86e6c1ec7da6ebb$export$bc3384a35de93d66({
1758
1930
  initialFilterText: url,
1759
1931
  async load({ signal, filterText }) {
1932
+ if (!canShowSuggestions) {
1933
+ return {
1934
+ items: []
1935
+ };
1936
+ }
1760
1937
  const items = await fetchSuggestions(filterText, signal);
1761
1938
  return {
1762
1939
  items: items ?? []
1763
1940
  };
1764
1941
  }
1765
1942
  });
1766
- const shouldShowSuggestions = (() => {
1767
- var _a2;
1768
- if (!url) {
1769
- return false;
1943
+ const [shouldShowSuggestions, setShouldShowSuggestions] = useState(false);
1944
+ useEffect(() => {
1945
+ suggestionList.setFilterText(url);
1946
+ if (!canShowSuggestions) {
1947
+ setShouldShowSuggestions(false);
1948
+ return;
1949
+ }
1950
+ if (!showSuggestionsWhenEmpty && url.length < 1) {
1951
+ setShouldShowSuggestions(false);
1952
+ return;
1770
1953
  }
1771
- return !(((_a2 = url == null ? void 0 : url.trim()) == null ? void 0 : _a2.length) < 4 || (url == null ? void 0 : url.startsWith("#")) || (url == null ? void 0 : url.startsWith(":")) || (url == null ? void 0 : url.startsWith("mailto")) || (url == null ? void 0 : url.startsWith("tel")) || (url == null ? void 0 : url.startsWith("http")) || (url == null ? void 0 : url.startsWith("www")));
1772
- })();
1954
+ setShouldShowSuggestions(
1955
+ !(showSuggestionsWhenEmpty !== true && url.trim().length < 4 || url.startsWith("#") || url.startsWith(":") || url.startsWith("mailto") || url.startsWith("tel") || url.startsWith("http") || url.startsWith("www"))
1956
+ );
1957
+ }, [url]);
1773
1958
  if (hidden) {
1774
1959
  return null;
1775
1960
  }
@@ -1783,7 +1968,7 @@ const LinkInput = (props) => {
1783
1968
  suggestionList.setFilterText(value);
1784
1969
  },
1785
1970
  allowsCustomValue: true,
1786
- allowsEmptyCollection: shouldShowSuggestions,
1971
+ allowsEmptyCollection: canShowSuggestions && shouldShowSuggestions,
1787
1972
  isDisabled: disabled,
1788
1973
  children: [
1789
1974
  /* @__PURE__ */ jsx(
@@ -1849,7 +2034,7 @@ const LinkInput = (props) => {
1849
2034
  )
1850
2035
  }
1851
2036
  ),
1852
- /* @__PURE__ */ jsxs(
2037
+ canShowSuggestions && shouldShowSuggestions && /* @__PURE__ */ jsxs(
1853
2038
  $07b14b47974efb58$export$5b6b19405a83ff9d,
1854
2039
  {
1855
2040
  "aria-label": __("URL suggestions", "eightshift-ui-components"),
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-MZyPpwvj.js";
2
+ import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-civ86c_v.js";
3
3
  import { c as clsx } from "../../lite-DVmmD_-j.js";
4
4
  import { BaseControl } from "../base-control/base-control.js";
5
5
  import { _ as __ } from "../../default-i18n-BqWys-1G.js";
@@ -6,7 +6,7 @@ import { Button } from "../button/button.js";
6
6
  import { icons } from "../../icons/icons.js";
7
7
  import { upperFirst, camelCase } from "../../utilities/es-dash.js";
8
8
  import { c as clsx } from "../../lite-DVmmD_-j.js";
9
- import { T as Tooltip } from "../../tooltip-C9mg1CP5.js";
9
+ import { T as Tooltip } from "../../tooltip-srrt1p-b.js";
10
10
  import { BaseControl } from "../base-control/base-control.js";
11
11
  /**
12
12
  * A component that can provide a 3x3 or a 2x2 grid of positions to pick from.
@@ -1,19 +1,19 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { $ as $982254629710d113$export$b95089534ab7c1fd, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2, d as $431f98aba6844401$export$6615d83f6de245ce, e as $72a5793c14baf454$export$e0e4026c12a8bdbb, f as $72a5793c14baf454$export$8b251419efc915eb, g as $431f98aba6844401$export$1ff3c3f08ae963c0 } from "../../Separator-C7Few7L6.js";
3
- import { c as $880e95eb8b93ba9a$export$ecf600387e221c37, $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, l as $e1995378a142960e$export$e953bb1cd0f19726, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, d as $e1995378a142960e$export$18af5c7a9e9b3664, e as $e1995378a142960e$export$bf788dd355e3a401, f as $e1995378a142960e$export$fb8073518f34e6ec, h as $7135fc7d473fd974$export$d40e14dec8b060a8, j as $7135fc7d473fd974$export$90e00781bc59d8f9, m as $7135fc7d473fd974$export$6e2c8f0811a474ce } from "../../SelectionManager-CvRaua4m.js";
4
- import { c as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, e as $bdb11010cef70236$export$f680877a34711e37, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, j as $64fa3d84918910a7$export$2881499e37b75b9a, l as $df56164dff5785e2$export$4338b53315abf666, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "../../utils-B4IdLYb8.js";
2
+ import { $ as $982254629710d113$export$b95089534ab7c1fd, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2, d as $431f98aba6844401$export$6615d83f6de245ce, e as $72a5793c14baf454$export$e0e4026c12a8bdbb, f as $72a5793c14baf454$export$8b251419efc915eb, g as $431f98aba6844401$export$1ff3c3f08ae963c0 } from "../../Separator-CDhAddZc.js";
3
+ import { c as $880e95eb8b93ba9a$export$ecf600387e221c37, $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, l as $e1995378a142960e$export$e953bb1cd0f19726, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, d as $e1995378a142960e$export$18af5c7a9e9b3664, e as $e1995378a142960e$export$bf788dd355e3a401, f as $e1995378a142960e$export$fb8073518f34e6ec, h as $7135fc7d473fd974$export$d40e14dec8b060a8, k as $7135fc7d473fd974$export$90e00781bc59d8f9, m as $7135fc7d473fd974$export$6e2c8f0811a474ce } from "../../SelectionManager-Ctbzoj1E.js";
4
+ import { c as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, e as $bdb11010cef70236$export$f680877a34711e37, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, j as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, i as $64fa3d84918910a7$export$2881499e37b75b9a, l as $df56164dff5785e2$export$4338b53315abf666, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "../../utils-Du2x3YVu.js";
5
5
  import React__default, { useRef, useState, useEffect, useCallback, useMemo, createContext, useContext, forwardRef, cloneElement } from "react";
6
- import { f as $de32f1b87079253c$export$d2f961adcb0afbe, i as $07b14b47974efb58$export$9b9a0cd73afb7ca4, j as $f1ab8c75478c6f73$export$3351871ee4b288b8, k as $e0b6e0b68ec7f50f$export$872b660ac5a1ff98 } from "../../Dialog-CGE2ficT.js";
7
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-D8qh3_U7.js";
6
+ import { g as $de32f1b87079253c$export$d2f961adcb0afbe, j as $07b14b47974efb58$export$9b9a0cd73afb7ca4, k as $f1ab8c75478c6f73$export$3351871ee4b288b8, l as $e0b6e0b68ec7f50f$export$872b660ac5a1ff98 } from "../../Dialog-DSquJZb-.js";
7
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-CdwRBXol.js";
8
8
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
9
- import { a as $9daab02d461809db$export$683480f191c0e3ea, $ as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../tooltip-C9mg1CP5.js";
10
- import { $ as $6179b936705e76d3$export$ae780daf29e6d456, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, t as $507fabe10e71c6fb$export$98e20ec92f614cfe, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-PMGZgZ9-.js";
11
- import { $ as $168583247155ddda$export$dc9c12ed27dd1b49 } from "../../useMenuTrigger-CMgzyMKW.js";
12
- import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "../../usePress-CY8MpqYD.js";
13
- import { a as $46d819fcbaf35654$export$8f71654801c2f7cd } from "../../useFocusable-BFKHuYS9.js";
14
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-Bon2Gyx5.js";
15
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-DsxEaA2J.js";
16
- import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "../../FocusScope-CVd6C65L.js";
9
+ import { a as $9daab02d461809db$export$683480f191c0e3ea, $ as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../tooltip-srrt1p-b.js";
10
+ import { $ as $6179b936705e76d3$export$ae780daf29e6d456, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, t as $507fabe10e71c6fb$export$98e20ec92f614cfe, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-xMzk3syC.js";
11
+ import { $ as $168583247155ddda$export$dc9c12ed27dd1b49 } from "../../useMenuTrigger-BbwpSVmh.js";
12
+ import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "../../usePress-Cs8K7gKw.js";
13
+ import { a as $46d819fcbaf35654$export$8f71654801c2f7cd } from "../../useFocusable-Bu2Ovohk.js";
14
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-kCEA3M_y.js";
15
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-rz8eyzby.js";
16
+ import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "../../FocusScope-B5L3qI3N.js";
17
17
  import { icons } from "../../icons/icons.js";
18
18
  import { Button } from "../button/button.js";
19
19
  import { Popover } from "../popover/popover.js";
@@ -67,6 +67,7 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
67
67
  var _item_props;
68
68
  if (isTrigger) return;
69
69
  if (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) item.props.onAction();
70
+ else if (props.onAction) props.onAction(key);
70
71
  if (data.onAction) {
71
72
  let onAction = data.onAction;
72
73
  onAction(key);
@@ -1,11 +1,10 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { c as $a11501f3d1d39e6c$export$ea8f71083e90600f, d as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, e as $337b884510726a0d$export$14c98a7594375490, f as $de32f1b87079253c$export$d2f961adcb0afbe, g as $337b884510726a0d$export$c6fdb837b070b4ff, h as $86ea4cb521eb2e37$export$2317d149ed6f78c4, b as $de32f1b87079253c$export$2e1e1122cf0cba88, a as $de32f1b87079253c$export$3ddf2d174ce01153 } from "../../Dialog-CGE2ficT.js";
2
+ import { c as $a11501f3d1d39e6c$export$ea8f71083e90600f, d as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, e as $337b884510726a0d$export$14c98a7594375490, f as $5e3802645cc19319$export$1c3ebcada18427bf, g as $de32f1b87079253c$export$d2f961adcb0afbe, h as $337b884510726a0d$export$c6fdb837b070b4ff, i as $86ea4cb521eb2e37$export$2317d149ed6f78c4, b as $de32f1b87079253c$export$2e1e1122cf0cba88, a as $de32f1b87079253c$export$3ddf2d174ce01153 } from "../../Dialog-DSquJZb-.js";
3
3
  import { a as $4e85f108e88277b8$export$d688439359537581 } from "../../RSPContexts-DQtGvvpM.js";
4
- import { d as $b5e257d569688ac6$export$535bd6ca7f90a273, c as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, o as $64fa3d84918910a7$export$45fda7c47f93fd48, p as $64fa3d84918910a7$export$6d3443f2c48bfc20, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, m as $5dc95899b306f630$export$c9058316764c140e } from "../../utils-B4IdLYb8.js";
4
+ import { d as $b5e257d569688ac6$export$535bd6ca7f90a273, c as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, o as $64fa3d84918910a7$export$45fda7c47f93fd48, p as $64fa3d84918910a7$export$6d3443f2c48bfc20, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, m as $5dc95899b306f630$export$c9058316764c140e } from "../../utils-Du2x3YVu.js";
5
5
  import React__default, { useState, useEffect, forwardRef, useContext, useRef, useMemo, createContext } from "react";
6
6
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
7
- import { $ as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../tooltip-C9mg1CP5.js";
8
- import { $ as $5e3802645cc19319$export$1c3ebcada18427bf } from "../../ariaHideOutside-BzxkODNq.js";
7
+ import { $ as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../tooltip-srrt1p-b.js";
9
8
  import { Button } from "../button/button.js";
10
9
  import { _ as __ } from "../../default-i18n-BqWys-1G.js";
11
10
  import { c as clsx } from "../../lite-DVmmD_-j.js";
@@ -1,17 +1,17 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import React__default, { forwardRef, useRef, createContext, useState, cloneElement } from "react";
3
3
  import { _ as __ } from "../../default-i18n-BqWys-1G.js";
4
- import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-WZgNv9RE.js";
5
- import { $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-CaS4qmLb.js";
6
- import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-yZgqvhXc.js";
7
- import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-uYE9D_E3.js";
8
- import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-B4IdLYb8.js";
9
- import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-CBPJ4Xx8.js";
4
+ import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-ubPTwji_.js";
5
+ import { $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BoNEjaXM.js";
6
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BqW0M3HN.js";
7
+ import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-CYX0D6At.js";
8
+ import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-Du2x3YVu.js";
9
+ import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-ClB3-XvF.js";
10
10
  import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
11
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-D8qh3_U7.js";
11
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-CdwRBXol.js";
12
12
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
13
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-Bon2Gyx5.js";
14
- import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberFieldState-BVFqhboT.js";
13
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-kCEA3M_y.js";
14
+ import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberFieldState-CpmU88xz.js";
15
15
  import { Button } from "../button/button.js";
16
16
  import { icons } from "../../icons/icons.js";
17
17
  import { c as clsx } from "../../lite-DVmmD_-j.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d, a as $de32f1b87079253c$export$3ddf2d174ce01153, b as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../../Dialog-CGE2ficT.js";
2
+ import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d, a as $de32f1b87079253c$export$3ddf2d174ce01153, b as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../../Dialog-DSquJZb-.js";
3
3
  import { c as clsx } from "../../lite-DVmmD_-j.js";
4
4
  import { _ as __ } from "../../default-i18n-BqWys-1G.js";
5
5
  import { Button } from "../button/button.js";
@@ -1,20 +1,20 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-yZgqvhXc.js";
3
- import { c as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-B4IdLYb8.js";
4
- import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-CBPJ4Xx8.js";
2
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BqW0M3HN.js";
3
+ import { c as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, h as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-Du2x3YVu.js";
4
+ import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-ClB3-XvF.js";
5
5
  import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
6
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-D8qh3_U7.js";
6
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-CdwRBXol.js";
7
7
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
8
8
  import React__default, { useMemo, useState, forwardRef, createContext, cloneElement } from "react";
9
- import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidationState-DC5jbhBW.js";
10
- import { d as $9ab94262bd0047c7$export$420e68273165f4ec, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-PMGZgZ9-.js";
11
- import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-CVd6C65L.js";
12
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-Bon2Gyx5.js";
13
- import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-BCPbwfnH.js";
14
- import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "../../useFocusable-BFKHuYS9.js";
15
- import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-CY8MpqYD.js";
16
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-DsxEaA2J.js";
17
- import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-DD480kAb.js";
9
+ import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidationState-DAan_XbC.js";
10
+ import { d as $9ab94262bd0047c7$export$420e68273165f4ec, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-xMzk3syC.js";
11
+ import { b as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-B5L3qI3N.js";
12
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-kCEA3M_y.js";
13
+ import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-fUHUaaR6.js";
14
+ import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "../../useFocusable-Bu2Ovohk.js";
15
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-Cs8K7gKw.js";
16
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-rz8eyzby.js";
17
+ import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-DsMLX-RC.js";
18
18
  import { c as clsx } from "../../lite-DVmmD_-j.js";
19
19
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
20
20
  import { RichLabel } from "../rich-label/rich-label.js";