@eightshift/ui-components 5.6.0 → 6.0.0

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 (150) hide show
  1. package/dist/{Button-BhEIfWLY.js → Button-BXjXzdW_.js} +13 -13
  2. package/dist/{Dialog-B8p4Ymh7.js → Dialog-D8bjn-nh.js} +404 -77
  3. package/dist/{FieldError-B8BgFmIQ.js → FieldError-DwBG6m1U.js} +2 -2
  4. package/dist/{FocusScope-B5vxRkHm.js → FocusScope-BMk5oZCk.js} +8 -8
  5. package/dist/{Heading-B5aEynOM.js → Heading-BmRX4BRL.js} +3 -3
  6. package/dist/{Hidden-rE6uR-lr.js → Hidden-Rfj-STx7.js} +4 -4
  7. package/dist/{Input-8yja_IHC.js → Input-CNNksOWg.js} +11 -11
  8. package/dist/{Label-DWVaNd2E.js → Label-D8a3eYb-.js} +4 -4
  9. package/dist/{List-Bll1lQEW.js → List-BGHOoFf0.js} +8 -8
  10. package/dist/{ListBox-CEpKw7yC.js → ListBox-Dd37zMvs.js} +40 -41
  11. package/dist/{OverlayArrow-DDfa8khI.js → OverlayArrow-DokC40S3.js} +6 -6
  12. package/dist/{PortalProvider---wyKpMr.js → PortalProvider-CHPnqDSH.js} +2 -2
  13. package/dist/RadioGroup-BVFvITWO.js +371 -0
  14. package/dist/{SearchField-D6mPli0i.js → SearchField-CHYnN-jt.js} +16 -16
  15. package/dist/{SelectionManager-D77bfEbg.js → SelectionManager-N8X7T_4D.js} +44 -46
  16. package/dist/{SharedElementTransition-BjRNHsjx.js → SharedElementTransition-BDT84GtD.js} +3 -3
  17. package/dist/{Slider-DfU6bRtH.js → Slider-CL5CM9S8.js} +23 -23
  18. package/dist/{Text-AxKZjtFm.js → Text-ztX6G1zR.js} +3 -3
  19. package/dist/{VisuallyHidden-CgnIuZJ2.js → VisuallyHidden-DTUuKFiI.js} +4 -4
  20. package/dist/assets/style-admin.css +12156 -2
  21. package/dist/assets/style-editor.css +12156 -2
  22. package/dist/assets/style.css +12162 -2
  23. package/dist/assets/wp-overrides/allow-full-width-blocks.css +6 -0
  24. package/dist/assets/wp-overrides/fix-label-text-case.css +29 -0
  25. package/dist/assets/wp-overrides/increase-sidebar-width.css +4 -0
  26. package/dist/assets/wp-overrides/make-block-messages-nicer.css +155 -0
  27. package/dist/assets/wp-overrides/replace-fonts.css +8 -0
  28. package/dist/assets/wp-overrides/restyle-tooltips.css +194 -0
  29. package/dist/assets/wp-overrides/round-corners.css +200 -0
  30. package/dist/assets/wp-overrides/unify-button-sizes.css +5 -0
  31. package/dist/clsx-DgYk2OaC.js +16 -0
  32. package/dist/{Color-WxFE7lQB.js → color-swatch-CFIuSPcO.js} +124 -6
  33. package/dist/components/animated-visibility/animated-visibility.js +25 -17
  34. package/dist/components/base-control/base-control.js +8 -5
  35. package/dist/components/base-control/container.js +204 -0
  36. package/dist/components/breakpoint-preview/breakpoint-preview.js +0 -1
  37. package/dist/components/button/button.js +249 -155
  38. package/dist/components/checkbox/checkbox.js +96 -37
  39. package/dist/components/color-pickers/color-picker.js +16 -7
  40. package/dist/components/color-pickers/color-swatch.js +5 -57
  41. package/dist/components/color-pickers/gradient-editor.js +161 -138
  42. package/dist/components/color-pickers/solid-color-picker.js +308 -206
  43. package/dist/components/component-toggle/component-toggle.js +12 -8
  44. package/dist/components/container-panel/container-panel.js +54 -31
  45. package/dist/components/draggable/draggable-handle.js +8 -7
  46. package/dist/components/draggable/draggable.js +2 -2
  47. package/dist/components/draggable-list/draggable-list-item.js +21 -12
  48. package/dist/components/draggable-list/draggable-list.js +19 -21
  49. package/dist/components/expandable/expandable.js +56 -28
  50. package/dist/components/index.js +7 -21
  51. package/dist/components/input-field/input-field.js +112 -35
  52. package/dist/components/item-collection/item-collection.js +1 -1
  53. package/dist/components/link-input/link-input.js +181 -121
  54. package/dist/components/matrix-align/matrix-align.js +54 -21
  55. package/dist/components/menu/menu.js +26 -34
  56. package/dist/components/modal/modal.js +31 -28
  57. package/dist/components/notice/notice.js +45 -28
  58. package/dist/components/number-picker/number-picker.js +151 -101
  59. package/dist/components/option-select/option-select.js +40 -4
  60. package/dist/components/options-panel/options-panel.js +52 -25
  61. package/dist/components/placeholders/file-picker-shell.js +10 -10
  62. package/dist/components/placeholders/file-placeholder.js +14 -6
  63. package/dist/components/placeholders/image-placeholder.js +14 -4
  64. package/dist/components/placeholders/media-placeholder.js +11 -4
  65. package/dist/components/popover/popover.js +14 -11
  66. package/dist/components/portal-provider/portal-provider.js +1 -1
  67. package/dist/components/radio/radio.js +118 -429
  68. package/dist/components/repeater/repeater-item.js +7 -10
  69. package/dist/components/repeater/repeater.js +9 -15
  70. package/dist/components/responsive/mini-responsive.js +53 -62
  71. package/dist/components/responsive/responsive-legacy.js +1 -2
  72. package/dist/components/responsive/responsive.js +27 -28
  73. package/dist/components/responsive-preview/responsive-preview.js +1 -2
  74. package/dist/components/rich-label/rich-label.js +5 -5
  75. package/dist/components/select/async-multi-select.js +467 -100
  76. package/dist/components/select/{v2/async-select.js → async-select.js} +182 -106
  77. package/dist/components/select/multi-select.js +437 -83
  78. package/dist/components/select/shared.js +14 -42
  79. package/dist/components/select/single-select.js +349 -54
  80. package/dist/components/slider/column-config-slider.js +138 -45
  81. package/dist/components/slider/slider.js +265 -205
  82. package/dist/components/slider/utils.js +32 -1
  83. package/dist/components/smart-image/smart-image.js +27 -6
  84. package/dist/components/smart-image/worker-inline.js +1 -1
  85. package/dist/components/spacer/spacer.js +2 -2
  86. package/dist/components/tabs/tabs.js +370 -101
  87. package/dist/components/toggle/switch.js +174 -39
  88. package/dist/components/toggle/toggle.js +6 -3
  89. package/dist/components/toggle-button/toggle-button.js +140 -56
  90. package/dist/components/tooltip/tooltip.js +27 -26
  91. package/dist/{context-DMOmz986.js → context-BQvmiUqb.js} +3 -3
  92. package/dist/{default-i18n-DBm-GqWM.js → default-i18n-CnQeC5Pl.js} +10 -10
  93. package/dist/{general-6STKQIrk.js → general-B6pOveVp.js} +13 -12
  94. package/dist/icons/icons.js +28 -9
  95. package/dist/icons/jsx-svg.js +1 -1
  96. package/dist/icons/spinner.js +3 -1
  97. package/dist/{index-Dq3gT5pW.js → index-BHpUy2Ix.js} +1 -1
  98. package/dist/{index-DjyEH0Gg.js → index-oFgxU4zs.js} +6 -4
  99. package/dist/index.js +6 -20
  100. package/dist/proxy-0B6wWuDe.js +7409 -0
  101. package/dist/{react-jsx-parser.min-VUl-CuCv.js → react-jsx-parser.min-B_hvYYa1.js} +5 -5
  102. package/dist/{Select-CHzjZxXy.js → shared-DwjRce5e.js} +170 -36
  103. package/dist/{textSelection-DbCKqaw8.js → textSelection-CwHUtNVX.js} +1 -1
  104. package/dist/{useButton-B2EaQJT_.js → useButton-DdZrS1Kz.js} +3 -3
  105. package/dist/{useEvent-BifIGnVS.js → useEvent-BD7Olibq.js} +1 -1
  106. package/dist/{useFilter-BPcJ-Jzv.js → useFilter-bhxeEDg8.js} +1 -1
  107. package/dist/{useFocusRing-Cgm0R4Cf.js → useFocusRing-D3b7Kh4P.js} +1 -1
  108. package/dist/{useFormReset-yV9VVy9R.js → useFormReset-WUv2PdFO.js} +1 -1
  109. package/dist/{useFormValidation-CeNsUGWK.js → useFormValidation-DQeXkyLm.js} +2 -2
  110. package/dist/{useHover-BRDW3y7-.js → useHover-Bycb7BsD.js} +7 -7
  111. package/dist/{useLabel-C8umX0gk.js → useLabel-Bnv4-T24.js} +2 -2
  112. package/dist/{useLabels-Cdxi6JSa.js → useLabels-B49ptFDX.js} +1 -1
  113. package/dist/{useListState-DZycqxCn.js → useListState-ZKhRO8ML.js} +1 -1
  114. package/dist/{useLocalizedStringFormatter-eaZiN2tE.js → useLocalizedStringFormatter-NETP-8H8.js} +1 -1
  115. package/dist/{useNumberField-CEA9Q4w_.js → useNumberField-D2fUHql3.js} +10 -10
  116. package/dist/{useNumberFormatter-BCmkV-7c.js → useNumberFormatter-DGvuRCn7.js} +1 -1
  117. package/dist/{usePress-BCEPS3hl.js → usePress-B8OteQMu.js} +6 -6
  118. package/dist/{useSingleSelectListState-BFZEfeqI.js → useSingleSelectListState-BBTu4shO.js} +2 -2
  119. package/dist/{useToggle-DNoP2bvV.js → useToggle-BZhaYwZl.js} +4 -4
  120. package/dist/{useToggleState-CzN79ary.js → useToggleState-VkXJjsru.js} +1 -1
  121. package/dist/utilities/general.js +2 -2
  122. package/dist/utilities/hash.js +30 -0
  123. package/dist/utilities/index.js +4 -6
  124. package/dist/{utils-cvK1vxO7.js → utils-DGpXyJOJ.js} +29 -42
  125. package/dist/workers/image-analysis.worker.js +3 -3
  126. package/package.json +26 -23
  127. package/dist/ColorSwatch-xVS3rMYS.js +0 -66
  128. package/dist/Select-ef7c0426.esm-BJmjGGzK.js +0 -2474
  129. package/dist/Separator-DcqCdD4k.js +0 -344
  130. package/dist/_commonjsHelpers-BhWcALO8.js +0 -38
  131. package/dist/assets/wp-font-enhancements.css +0 -2
  132. package/dist/assets/wp-ui-enhancements.css +0 -2
  133. package/dist/components/select/async-single-select.js +0 -138
  134. package/dist/components/select/custom-select-default-components.js +0 -38
  135. package/dist/components/select/multi-select-components.js +0 -8
  136. package/dist/components/select/react-select-component-wrappers.js +0 -90
  137. package/dist/components/select/styles.js +0 -49
  138. package/dist/components/select/v2/async-multi-select.js +0 -433
  139. package/dist/components/select/v2/multi-select.js +0 -404
  140. package/dist/components/select/v2/shared.js +0 -69
  141. package/dist/components/select/v2/single-select.js +0 -358
  142. package/dist/index-641ee5b8.esm-DiwvO-RP.js +0 -3139
  143. package/dist/modifiers.esm-BuJQPI1X.js +0 -31
  144. package/dist/multi-select-components-B3KuDyYd.js +0 -3744
  145. package/dist/react-select-async.esm-_4pk-41v.js +0 -107
  146. package/dist/react-select.esm-BeuAkAyY.js +0 -15
  147. package/dist/sha256-C56UDWfQ.js +0 -533
  148. package/dist/useDragAndDrop-DUXKDS0N.js +0 -3925
  149. package/dist/wp/wp-font-enhancements.js +0 -1
  150. package/dist/wp/wp-ui-enhancements.js +0 -1
@@ -1,375 +1,12 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DWVaNd2E.js";
3
- import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, g as $64fa3d84918910a7$export$ef03459518577ad4, h as $64fa3d84918910a7$export$4d86445c2cf5e3, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, f as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-cvK1vxO7.js";
4
- import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-B8BgFmIQ.js";
5
- import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
6
- import { $ as $1d5b8b8664671ef2$export$c9549807523555e0 } from "../../SelectionIndicator-D7WMzeAW.js";
7
- import { $ as $c8a5a149f625efcf$export$758399f318e6385a } from "../../SharedElementTransition-BjRNHsjx.js";
8
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-AxKZjtFm.js";
9
- import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-D2C6R0DK.js";
10
- import React__default, { useMemo, useState, forwardRef, createContext, cloneElement } from "react";
11
- import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-yV9VVy9R.js";
12
- import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-BCEPS3hl.js";
13
- import { $ as $f645667febf57a63$export$4c014de7c8940b4c, x as $431fbd86ca7dc216$export$f21a1ffae260145a, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, w as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-BRDW3y7-.js";
14
- import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidation-CeNsUGWK.js";
15
- import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-B5vxRkHm.js";
16
- import { $ as $9ab94262bd0047c7$export$420e68273165f4ec, a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-Cgm0R4Cf.js";
17
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-DMOmz986.js";
18
- import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-CgnIuZJ2.js";
2
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-D8a3eYb-.js";
3
+ import { a as $b6c3ddc6086f204d$export$d7b12c4107be0d61, $ as $b6c3ddc6086f204d$export$a98f0dcb43a68a25 } from "../../RadioGroup-BVFvITWO.js";
19
4
  import { c as clsx } from "../../lite-DVmmD_-j.js";
20
5
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
21
6
  import { RichLabel } from "../rich-label/rich-label.js";
22
7
  import { BaseControl } from "../base-control/base-control.js";
23
- const $884aeceb3d67f00f$export$37b65e5b5444d35c = /* @__PURE__ */ new WeakMap();
24
- function $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, ref) {
25
- let { value, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, onPressStart, onPressEnd, onPressChange, onPress, onPressUp, onClick } = props;
26
- const isDisabled = props.isDisabled || state.isDisabled;
27
- let hasChildren = children != null;
28
- let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;
29
- if (!hasChildren && !hasAriaLabel && process.env.NODE_ENV !== "production") console.warn("If you do not provide children, you must specify an aria-label for accessibility");
30
- let checked = state.selectedValue === value;
31
- let onChange = (e) => {
32
- e.stopPropagation();
33
- state.setSelectedValue(value);
34
- };
35
- let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
36
- onPressStart,
37
- onPressEnd,
38
- onPressChange,
39
- onPress,
40
- onPressUp,
41
- onClick,
42
- isDisabled
43
- });
44
- let { pressProps: labelProps, isPressed: isLabelPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
45
- onPressStart,
46
- onPressEnd,
47
- onPressChange,
48
- onPressUp,
49
- onClick,
50
- isDisabled,
51
- onPress(e) {
52
- var _ref_current;
53
- onPress === null || onPress === void 0 ? void 0 : onPress(e);
54
- state.setSelectedValue(value);
55
- (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();
56
- }
57
- });
58
- let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c($3ef42575df84b30b$export$9d1611c77c2fe928(props, {
59
- onFocus: () => state.setLastFocusedValue(value)
60
- }), ref);
61
- let interactions = $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, focusableProps);
62
- let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
63
- labelable: true
64
- });
65
- let tabIndex = -1;
66
- if (state.selectedValue != null) {
67
- if (state.selectedValue === value) tabIndex = 0;
68
- } else if (state.lastFocusedValue === value || state.lastFocusedValue == null) tabIndex = 0;
69
- if (isDisabled) tabIndex = void 0;
70
- let { name, form, descriptionId, errorMessageId, validationBehavior } = $884aeceb3d67f00f$export$37b65e5b5444d35c.get(state);
71
- $99facab73266f662$export$5add1d006293d136(ref, state.defaultSelectedValue, state.setSelectedValue);
72
- $e93e671b31057976$export$b8473d3665f3a75a({
73
- validationBehavior
74
- }, state, ref);
75
- return {
76
- labelProps: $3ef42575df84b30b$export$9d1611c77c2fe928(labelProps, useMemo(() => ({
77
- onClick: (e) => e.preventDefault(),
78
- // Prevent label from being focused when mouse down on it.
79
- // Note, this does not prevent the input from being focused in the `click` event.
80
- onMouseDown: (e) => e.preventDefault()
81
- }), [])),
82
- inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, {
83
- ...interactions,
84
- type: "radio",
85
- name,
86
- form,
87
- tabIndex,
88
- disabled: isDisabled,
89
- required: state.isRequired && validationBehavior === "native",
90
- checked,
91
- value,
92
- onChange,
93
- "aria-describedby": [
94
- props["aria-describedby"],
95
- state.isInvalid ? errorMessageId : null,
96
- descriptionId
97
- ].filter(Boolean).join(" ") || void 0
98
- }),
99
- isDisabled,
100
- isSelected: checked,
101
- isPressed: isPressed || isLabelPressed
102
- };
103
- }
104
- function $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {
105
- let { name, form, isReadOnly, isRequired, isDisabled, orientation = "vertical", validationBehavior = "aria" } = props;
106
- let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
107
- let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
108
- let { labelProps, fieldProps, descriptionProps, errorMessageProps } = $2baaea4c71418dea$export$294aa081a6c6f55d({
109
- ...props,
110
- // Radio group is not an HTML input element so it
111
- // shouldn't be labeled by a <label> element.
112
- labelElementType: "span",
113
- isInvalid: state.isInvalid,
114
- errorMessage: props.errorMessage || validationErrors
115
- });
116
- let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
117
- labelable: true
118
- });
119
- let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
120
- onBlurWithin(e) {
121
- var _props_onBlur;
122
- (_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);
123
- if (!state.selectedValue) state.setLastFocusedValue(null);
124
- },
125
- onFocusWithin: props.onFocus,
126
- onFocusWithinChange: props.onFocusChange
127
- });
128
- let onKeyDown = (e) => {
129
- let nextDir;
130
- switch (e.key) {
131
- case "ArrowRight":
132
- if (direction === "rtl" && orientation !== "vertical") nextDir = "prev";
133
- else nextDir = "next";
134
- break;
135
- case "ArrowLeft":
136
- if (direction === "rtl" && orientation !== "vertical") nextDir = "next";
137
- else nextDir = "prev";
138
- break;
139
- case "ArrowDown":
140
- nextDir = "next";
141
- break;
142
- case "ArrowUp":
143
- nextDir = "prev";
144
- break;
145
- default:
146
- return;
147
- }
148
- e.preventDefault();
149
- let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(e.currentTarget, {
150
- from: e.target,
151
- accept: (node) => node instanceof $431fbd86ca7dc216$export$f21a1ffae260145a(node).HTMLInputElement && node.type === "radio"
152
- });
153
- let nextElem;
154
- if (nextDir === "next") {
155
- nextElem = walker.nextNode();
156
- if (!nextElem) {
157
- walker.currentNode = e.currentTarget;
158
- nextElem = walker.firstChild();
159
- }
160
- } else {
161
- nextElem = walker.previousNode();
162
- if (!nextElem) {
163
- walker.currentNode = e.currentTarget;
164
- nextElem = walker.lastChild();
165
- }
166
- }
167
- if (nextElem) {
168
- nextElem.focus();
169
- state.setSelectedValue(nextElem.value);
170
- }
171
- };
172
- let groupName = $bdb11010cef70236$export$f680877a34711e37(name);
173
- $884aeceb3d67f00f$export$37b65e5b5444d35c.set(state, {
174
- name: groupName,
175
- form,
176
- descriptionId: descriptionProps.id,
177
- errorMessageId: errorMessageProps.id,
178
- validationBehavior
179
- });
180
- return {
181
- radioGroupProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, {
182
- // https://www.w3.org/TR/wai-aria-1.2/#radiogroup
183
- role: "radiogroup",
184
- onKeyDown,
185
- "aria-invalid": state.isInvalid || void 0,
186
- "aria-errormessage": props["aria-errormessage"],
187
- "aria-readonly": isReadOnly || void 0,
188
- "aria-required": isRequired || void 0,
189
- "aria-disabled": isDisabled || void 0,
190
- "aria-orientation": orientation,
191
- ...fieldProps,
192
- ...focusWithinProps
193
- }),
194
- labelProps,
195
- descriptionProps,
196
- errorMessageProps,
197
- isInvalid,
198
- validationErrors,
199
- validationDetails
200
- };
201
- }
202
- let $a54cdc5c1942b639$var$instance = Math.round(Math.random() * 1e10);
203
- let $a54cdc5c1942b639$var$i = 0;
204
- function $a54cdc5c1942b639$export$bca9d026f8e704eb(props) {
205
- let name = useMemo(() => props.name || `radio-group-${$a54cdc5c1942b639$var$instance}-${++$a54cdc5c1942b639$var$i}`, [
206
- props.name
207
- ]);
208
- var _props_defaultValue;
209
- let [selectedValue, setSelected] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : null, props.onChange);
210
- let [initialValue] = useState(selectedValue);
211
- let [lastFocusedValue, setLastFocusedValue] = useState(null);
212
- let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
213
- ...props,
214
- value: selectedValue
215
- });
216
- let setSelectedValue = (value) => {
217
- if (!props.isReadOnly && !props.isDisabled) {
218
- setSelected(value);
219
- validation.commitValidation();
220
- }
221
- };
222
- let isInvalid = validation.displayValidation.isInvalid;
223
- var _props_defaultValue1;
224
- return {
225
- ...validation,
226
- name,
227
- selectedValue,
228
- defaultSelectedValue: props.value !== void 0 ? initialValue : (_props_defaultValue1 = props.defaultValue) !== null && _props_defaultValue1 !== void 0 ? _props_defaultValue1 : null,
229
- setSelectedValue,
230
- lastFocusedValue,
231
- setLastFocusedValue,
232
- isDisabled: props.isDisabled || false,
233
- isReadOnly: props.isReadOnly || false,
234
- isRequired: props.isRequired || false,
235
- validationState: props.validationState || (isInvalid ? "invalid" : null),
236
- isInvalid
237
- };
238
- }
239
- const $b6c3ddc6086f204d$export$a79eda4ff50e30b6 = /* @__PURE__ */ createContext(null);
240
- const $b6c3ddc6086f204d$export$b118023277d4a5c3 = /* @__PURE__ */ createContext(null);
241
- const $b6c3ddc6086f204d$export$29d84393af70866c = /* @__PURE__ */ createContext(null);
242
- const $b6c3ddc6086f204d$export$a98f0dcb43a68a25 = /* @__PURE__ */ forwardRef(function RadioGroup(props, ref) {
243
- [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $b6c3ddc6086f204d$export$a79eda4ff50e30b6);
244
- let { validationBehavior: formValidationBehavior } = $64fa3d84918910a7$export$fabf2dc03a41866e($d3e0e05bdfcf66bd$export$c24727297075ec6a) || {};
245
- var _props_validationBehavior, _ref;
246
- let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : "native";
247
- let state = $a54cdc5c1942b639$export$bca9d026f8e704eb({
248
- ...props,
249
- validationBehavior
250
- });
251
- let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
252
- let { radioGroupProps, labelProps, descriptionProps, errorMessageProps, ...validation } = $430f30ed08ec25fa$export$62b9571f283ff5c2({
253
- ...props,
254
- label,
255
- validationBehavior
256
- }, state);
257
- let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
258
- ...props,
259
- values: {
260
- orientation: props.orientation || "vertical",
261
- isDisabled: state.isDisabled,
262
- isReadOnly: state.isReadOnly,
263
- isRequired: state.isRequired,
264
- isInvalid: state.isInvalid,
265
- state
266
- },
267
- defaultClassName: "react-aria-RadioGroup"
268
- });
269
- let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
270
- global: true
271
- });
272
- return /* @__PURE__ */ React__default.createElement("div", {
273
- ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, radioGroupProps),
274
- ref,
275
- slot: props.slot || void 0,
276
- "data-orientation": props.orientation || "vertical",
277
- "data-invalid": state.isInvalid || void 0,
278
- "data-disabled": state.isDisabled || void 0,
279
- "data-readonly": state.isReadOnly || void 0,
280
- "data-required": state.isRequired || void 0
281
- }, /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
282
- values: [
283
- [
284
- $b6c3ddc6086f204d$export$29d84393af70866c,
285
- state
286
- ],
287
- [
288
- $01b77f81d0f07f68$export$75b6ee27786ba447,
289
- {
290
- ...labelProps,
291
- ref: labelRef,
292
- elementType: "span"
293
- }
294
- ],
295
- [
296
- $514c0188e459b4c0$export$9afb8bc826b033ea,
297
- {
298
- slots: {
299
- description: descriptionProps,
300
- errorMessage: errorMessageProps
301
- }
302
- }
303
- ],
304
- [
305
- $ee014567cb39d3f0$export$ff05c3ac10437e03,
306
- validation
307
- ]
308
- ]
309
- }, /* @__PURE__ */ React__default.createElement($c8a5a149f625efcf$export$758399f318e6385a, null, renderProps.children)));
310
- });
311
- const $b6c3ddc6086f204d$export$d7b12c4107be0d61 = /* @__PURE__ */ forwardRef(function Radio(props, ref) {
312
- let { inputRef: userProvidedInputRef = null, ...otherProps } = props;
313
- [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(otherProps, ref, $b6c3ddc6086f204d$export$b118023277d4a5c3);
314
- let state = React__default.useContext($b6c3ddc6086f204d$export$29d84393af70866c);
315
- let inputRef = $df56164dff5785e2$export$4338b53315abf666(useMemo(() => $5dc95899b306f630$export$c9058316764c140e(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null), [
316
- userProvidedInputRef,
317
- props.inputRef
318
- ]));
319
- let { labelProps, inputProps, isSelected, isDisabled, isPressed } = $0d5c49892c1215da$export$37b0961d2f4751e2({
320
- ...$64fa3d84918910a7$export$ef03459518577ad4(props),
321
- // ReactNode type doesn't allow function children.
322
- children: typeof props.children === "function" ? true : props.children
323
- }, state, inputRef);
324
- let { isFocused, isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f();
325
- let interactionDisabled = isDisabled || state.isReadOnly;
326
- let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
327
- ...props,
328
- isDisabled: interactionDisabled
329
- });
330
- let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
331
- ...props,
332
- defaultClassName: "react-aria-Radio",
333
- values: {
334
- isSelected,
335
- isPressed,
336
- isHovered,
337
- isFocused,
338
- isFocusVisible,
339
- isDisabled,
340
- isReadOnly: state.isReadOnly,
341
- isInvalid: state.isInvalid,
342
- isRequired: state.isRequired
343
- }
344
- });
345
- let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
346
- global: true
347
- });
348
- delete DOMProps.id;
349
- delete DOMProps.onClick;
350
- return /* @__PURE__ */ React__default.createElement("label", {
351
- ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, labelProps, hoverProps, renderProps),
352
- ref,
353
- "data-selected": isSelected || void 0,
354
- "data-pressed": isPressed || void 0,
355
- "data-hovered": isHovered || void 0,
356
- "data-focused": isFocused || void 0,
357
- "data-focus-visible": isFocusVisible || void 0,
358
- "data-disabled": isDisabled || void 0,
359
- "data-readonly": state.isReadOnly || void 0,
360
- "data-invalid": state.isInvalid || void 0,
361
- "data-required": state.isRequired || void 0
362
- }, /* @__PURE__ */ React__default.createElement($5c3e21d68f1c4674$export$439d29a4e110a164, {
363
- elementType: "span"
364
- }, /* @__PURE__ */ React__default.createElement("input", {
365
- ...$3ef42575df84b30b$export$9d1611c77c2fe928(inputProps, focusProps),
366
- ref: inputRef
367
- })), /* @__PURE__ */ React__default.createElement($1d5b8b8664671ef2$export$c9549807523555e0.Provider, {
368
- value: {
369
- isSelected
370
- }
371
- }, renderProps.children));
372
- });
8
+ import { cloneElement } from "react";
9
+ import { c as cva } from "../../index-BHpUy2Ix.js";
373
10
  /**
374
11
  * A simple radio button.
375
12
  *
@@ -383,6 +20,7 @@ const $b6c3ddc6086f204d$export$d7b12c4107be0d61 = /* @__PURE__ */ forwardRef(fun
383
20
  * @param {string} [props.labelClassName] - Additional classes to add to the label container.
384
21
  * @param {boolean} [props.alignEnd] - Whether the label should be aligned to the end.
385
22
  * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
23
+ * @param {boolean} [props.flat] - If `true`, component will look more flat. Useful for nested layer of controls.
386
24
  * @param {boolean} [props.inlineSubtitle] - If `true`, the subtitle is shown after the label instead of below it.
387
25
  *
388
26
  * @returns {JSX.Element} The RadioButton component.
@@ -400,6 +38,7 @@ const RadioButton = (props) => {
400
38
  className,
401
39
  labelClassName,
402
40
  design = "default",
41
+ flat,
403
42
  alignEnd,
404
43
  children,
405
44
  inlineSubtitle,
@@ -409,27 +48,104 @@ const RadioButton = (props) => {
409
48
  if (hidden) {
410
49
  return null;
411
50
  }
412
- const styleClassName = {
413
- segmented: clsx(
414
- "es:cursor-pointer es:py-1 es:px-1.5 es:border es:border-secondary-300 es:hover:bg-secondary-100/75 es:transition es:min-h-10",
415
- "es:first:rounded-t-xl es:last:rounded-b-xl",
416
- "es:focus-visible:ring-2 es:focus-visible:border-accent-500 es:focus-visible:ring-accent-500/50 es:focus-visible:z-10",
417
- "es:shadow-sm es:inset-ring es:inset-shadow-xs",
418
- "es:inset-ring-secondary-100 es:inset-shadow-secondary-100/50"
419
- ),
420
- segmentedHorizontal: clsx(
421
- "es:cursor-pointer es:py-1 es:px-1.5 es:border es:border-secondary-300 es:hover:bg-secondary-100/75 es:transition es:grow es:min-h-10",
422
- "es:first:rounded-l-xl es:last:rounded-r-xl",
423
- "es:focus-visible:ring-2 es:focus-visible:border-accent-500 es:focus-visible:ring-accent-500/50 es:focus-visible:z-10",
424
- "es:shadow-sm es:inset-ring es:inset-shadow-xs",
425
- "es:inset-ring-secondary-100 es:inset-shadow-secondary-100/50"
426
- )
427
- };
51
+ const radioClasses = cva(
52
+ [
53
+ "es:size-5 es:shrink-0",
54
+ "es:grid es:place-items-center es:grid-cols-1 es:grid-rows-1",
55
+ "es:*:row-start-1 es:*:col-start-1",
56
+ "es:rounded-full",
57
+ "es:transition-plus es:duration-300 es:ease-spring-smooth",
58
+ "es:inset-ring",
59
+ "es:any-focus:outline-hidden",
60
+ "es:group-focus-visible:ring-2 es:group-focus-visible:ring-accent-500/30"
61
+ ],
62
+ {
63
+ variants: {
64
+ disabled: {
65
+ true: "es:cursor-not-allowed",
66
+ false: "es:inset-shadow-xs es:bg-linear-to-b es:from-25%"
67
+ }
68
+ },
69
+ compoundVariants: [
70
+ { flat: false, disabled: false, class: "es:shadow-xs es:shadow-black/5" },
71
+ //
72
+ {
73
+ checked: false,
74
+ disabled: false,
75
+ class: [
76
+ "es:bg-secondary-50 es:inset-ring-secondary-300/60",
77
+ "es:from-black/1 es:to-black/5",
78
+ "es:hover:bg-surface-100 es:hover:inset-ring-surface-300/60",
79
+ "es:inset-shadow-white/50",
80
+ "es:group-focus-visible:inset-ring-accent-500"
81
+ ]
82
+ },
83
+ {
84
+ checked: true,
85
+ disabled: false,
86
+ class: [
87
+ "es:bg-accent-600 es:inset-ring-accent-800/5 es:text-white",
88
+ "es:from-accent-50/10 es:to-accent-50/2",
89
+ "es:inset-shadow-accent-50/35",
90
+ "es:group-focus-visible:inset-ring-accent-950"
91
+ ]
92
+ },
93
+ //
94
+ {
95
+ checked: true,
96
+ disabled: true,
97
+ class: ["es:bg-secondary-400 es:inset-ring-secondary-400 es:text-white"]
98
+ },
99
+ {
100
+ checked: false,
101
+ disabled: true,
102
+ class: ["es:bg-white es:inset-ring-secondary-300 es:text-secondary-50", "es:bg-linear-to-b es:from-secondary-800/0 es:to-secondary-800/3"]
103
+ }
104
+ ],
105
+ defaultVariants: {
106
+ flat: false,
107
+ checked: false,
108
+ disabled: false
109
+ }
110
+ }
111
+ );
112
+ const radioContainerClass = cva(["es:flex es:gap-2 es:items-center-safe", className], {
113
+ variants: {
114
+ design: {
115
+ default: "es:py-1.5"
116
+ }
117
+ },
118
+ compoundVariants: [
119
+ {
120
+ design: ["segmented", "segmentedHorizontal"],
121
+ class: ["es:px-3 es:py-2 es:w-fill es:inset-ring", "es:transition-plus es:duration-300 es:ease-spring-snappy", !flat && "es:shadow-xs es:shadow-black/5"]
122
+ },
123
+ {
124
+ checked: false,
125
+ design: ["segmented", "segmentedHorizontal"],
126
+ class: "es:bg-secondary-50 es:inset-ring-secondary-200/50 es:rounded-md es:hover:rounded-xl"
127
+ },
128
+ {
129
+ checked: true,
130
+ design: ["segmented", "segmentedHorizontal"],
131
+ class: "es:bg-surface-100 es:text-accent-900 es:inset-ring-accent-600/10 es:rounded-3xl"
132
+ },
133
+ //
134
+ { design: "segmented", checked: false, class: "es:first:rounded-t-xl es:last:rounded-b-xl es:before-current:rounded-b-xl es:after-current:rounded-t-xl" },
135
+ { design: "segmentedHorizontal", checked: false, class: "es:first:rounded-l-xl es:last:rounded-r-xl es:before-current:rounded-l-xl es:after-current:rounded-r-xl" }
136
+ ],
137
+ defaultVariants: {
138
+ design: "default",
139
+ flat: false,
140
+ checked: false,
141
+ disabled: false
142
+ }
143
+ });
428
144
  return /* @__PURE__ */ jsx(
429
145
  $b6c3ddc6086f204d$export$d7b12c4107be0d61,
430
146
  {
431
147
  isDisabled: disabled,
432
- className: clsx("es:group es:flex es:items-center es:gap-1.5 es:text-sm", styleClassName[design], className),
148
+ className: ({ isSelected }) => radioContainerClass({ design, flat, disabled, checked: isSelected }),
433
149
  ...rest,
434
150
  children: ({ isSelected }) => /* @__PURE__ */ jsxs(Fragment, { children: [
435
151
  alignEnd && (label || subtitle || icon) && /* @__PURE__ */ jsx(
@@ -438,54 +154,35 @@ const RadioButton = (props) => {
438
154
  icon,
439
155
  label,
440
156
  subtitle,
441
- className: clsx("es:ml-1", labelClassName),
157
+ className: clsx(subtitle && "es:mt-1.25", labelClassName),
442
158
  inlineSubtitle,
443
159
  fullWidth: true,
444
160
  fullSizeSubtitle: true,
445
- as: $01b77f81d0f07f68$export$b04be29aa201d4f5
161
+ as: $01b77f81d0f07f68$export$b04be29aa201d4f5,
162
+ noColor: true
446
163
  }
447
164
  ),
448
- /* @__PURE__ */ jsx(
449
- "div",
165
+ /* @__PURE__ */ jsx("div", { className: radioClasses({ disabled, flat: design !== "default" ? true : flat, checked: isSelected }), children: /* @__PURE__ */ jsx(
166
+ AnimatedVisibility,
450
167
  {
451
- className: clsx(
452
- "es:size-5 es:flex es:items-center es:justify-center",
453
- "es:transition es:cursor-pointer",
454
- "es:bg-radial es:border es:rounded-full",
455
- "es:shadow-sm es:inset-ring es:inset-shadow-xs",
456
- "es:any-focus:outline-hidden",
457
- !isSelected && "es:border-secondary-300 es:inset-ring-secondary-100 es:inset-shadow-secondary-100/50",
458
- !isSelected && "es:from-secondary-50 es:to-white es:text-secondary-600 es:hover:text-accent-950",
459
- !isSelected && "es:hover:inset-shadow-secondary-100 es:hover:to-secondary-100 es:hover:inset-ring-secondary-100",
460
- isSelected && "es:text-white es:from-accent-500 es:to-accent-600",
461
- isSelected && "es:shadow-accent-600/30 es:border-accent-700 es:inset-ring es:inset-ring-accent-600 es:inset-shadow-accent-400/75",
462
- isSelected && "es:group-focus-visible:inset-ring-accent-600 es:group-focus-visible:inset-shadow-xs es:group-focus-visible:inset-shadow-accent-400",
463
- !design?.startsWith("segmented") && "es:group-focus-visible:ring-2 es:group-focus-visible:ring-accent-500/50",
464
- !design?.startsWith("segmented") && !isSelected && "es:group-focus-visible:border-accent-500",
465
- !design?.startsWith("segmented") && !alignEnd && subtitle && "es:mb-auto"
466
- ),
467
- children: /* @__PURE__ */ jsx(
468
- AnimatedVisibility,
469
- {
470
- transition: "scaleFade",
471
- visible: isSelected,
472
- className: clsx("es:icon:size-3 es:icon:stroke-2", disabled && "es:opacity-55"),
473
- noInitial: true,
474
- children: /* @__PURE__ */ jsx("div", { className: "es:size-2 es:rounded-full es:bg-white es:shadow-sm" })
475
- }
476
- )
168
+ transition: "scaleFade",
169
+ visible: isSelected,
170
+ className: clsx("es:icon:size-3 es:icon:stroke-2", disabled && "es:opacity-55"),
171
+ noInitial: true,
172
+ children: /* @__PURE__ */ jsx("div", { className: clsx("es:size-2 es:rounded-full es:bg-accent-50", !disabled && "es:shadow-xs es:shadow-accent-950/30") })
477
173
  }
478
- ),
174
+ ) }),
479
175
  !alignEnd && /* @__PURE__ */ jsx(
480
176
  RichLabel,
481
177
  {
482
178
  icon: alignEnd && icon,
483
179
  label,
484
180
  subtitle,
485
- className: clsx(labelClassName, subtitle && "es:mt-0.5", "es:[&_>_span_>_svg]:size-5 es:ml-0.5 es:*:space-y-0.5", disabled && "es:opacity-55"),
181
+ className: clsx(labelClassName, disabled && "es:text-secondary-300"),
486
182
  inlineSubtitle,
487
183
  fullSizeSubtitle: true,
488
- as: $01b77f81d0f07f68$export$b04be29aa201d4f5
184
+ as: $01b77f81d0f07f68$export$b04be29aa201d4f5,
185
+ noColor: true
489
186
  }
490
187
  ),
491
188
  !(icon || label || subtitle) && children
@@ -515,6 +212,7 @@ RadioButton.displayName = "RadioButton";
515
212
  * @param {Function} [props.onChange] - Function to call when the value of the selected radio button changes.
516
213
  * @param {string} [props.className] - Additional classes to add to the group container.
517
214
  * @param {string} [props.labelClassName] - Additional classes to add to the label container.
215
+ * @param {boolean} [props.flat] - If `true`, component will look more flat. Useful for nested layer of controls.
518
216
  * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
519
217
  *
520
218
  * @returns {JSX.Element} The RadioButtonGroup component.
@@ -550,6 +248,7 @@ const RadioButtonGroup = (props) => {
550
248
  value,
551
249
  onChange,
552
250
  children,
251
+ flat,
553
252
  className,
554
253
  labelClassName,
555
254
  hidden,
@@ -567,6 +266,7 @@ const RadioButtonGroup = (props) => {
567
266
  return child;
568
267
  }
569
268
  return cloneElement(child, {
269
+ flat,
570
270
  design: orientation === "horizontal" ? `${design}Horizontal` : design,
571
271
  key: child.props.value ?? index
572
272
  });
@@ -591,18 +291,7 @@ const RadioButtonGroup = (props) => {
591
291
  help,
592
292
  labelAs: $01b77f81d0f07f68$export$b04be29aa201d4f5,
593
293
  className: labelClassName,
594
- children: /* @__PURE__ */ jsx(
595
- "div",
596
- {
597
- className: clsx(
598
- design === "default" && orientation === "horizontal" && "es:flex es:flex-wrap es:gap-2.5",
599
- design === "default" && orientation === "vertical" && "es:flex es:flex-col es:gap-2.5",
600
- design === "segmented" && orientation === "vertical" && "es:flex es:flex-col es:-space-y-px",
601
- design === "segmented" && orientation === "horizontal" && "es:nowrap es:flex es:-space-x-px"
602
- ),
603
- children: mappedChildren
604
- }
605
- )
294
+ children: /* @__PURE__ */ jsx("div", { className: clsx(orientation === "horizontal" && "es:flex es:items-stretch es:gap-0.75", orientation === "vertical" && "es:flex es:flex-col es:gap-0.75"), children: mappedChildren })
606
295
  }
607
296
  )
608
297
  }
@@ -5,7 +5,7 @@ import { icons } from "../../icons/icons.js";
5
5
  import { c as clsx } from "../../lite-DVmmD_-j.js";
6
6
  import { useContext } from "react";
7
7
  import { Expandable } from "../expandable/expandable.js";
8
- import { _ as __ } from "../../default-i18n-DBm-GqWM.js";
8
+ import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
9
9
  import { RepeaterContext } from "./repeater-context.js";
10
10
  /**
11
11
  * A Repeater item.
@@ -37,16 +37,12 @@ const RepeaterItem = (props) => {
37
37
  icon: isOutOfBounds ? icons.trash : icon,
38
38
  label: isOutOfBounds ? __("Release to delete", "eightshift-ui-components") : label,
39
39
  subtitle: isOutOfBounds ? null : subtitle,
40
- className: clsx(
41
- "es:transition",
42
- !isItemOpen && isDragged && "es:border es:border-secondary-100 es:bg-white/50 es:shadow-md es:backdrop-blur-lg",
43
- !isItemOpen && isOutOfBounds && "es:border es:border-red-200! es:bg-red-50 es:shadow-red-500/20 es:[&_button]:invisible es:[&_svg_path]:stroke-red-500"
44
- ),
45
40
  labelClassName: clsx(className, isDragged && "es:cursor-grabbing", !isDragged && !isItemOpen && "es:cursor-grab"),
46
41
  headerClassName: clsx(
47
- "es:transition es:rounded-lg es:border es:border-transparent",
48
- isSelected && "es:bg-accent-50 es:border-accent-100",
49
- !isItemOpen && "es:group-focus:outline-hidden es:group-focus:border-accent-500 es:group-focus:ring-2 es:group-focus:ring-accent-500/50"
42
+ "es:transition-plus",
43
+ !isItemOpen && !isDragged && "es:not-group-first:not-group-before-current:rounded-t-md es:not-group-last:not-group-after-current:rounded-b-md",
44
+ !isItemOpen && isOutOfBounds && "es:inset-ring-red-200! es:text-red-900! es:bg-red-50! es:[&_button]:invisible es:[&_svg_path]:stroke-red-600",
45
+ isDragged && "es:rounded-2xl! es:bg-surface-50! es:inset-ring-surface-100"
50
46
  ),
51
47
  open: allOpen,
52
48
  onOpenChange: (open) => {
@@ -96,7 +92,7 @@ const RepeaterItem = (props) => {
96
92
  Button,
97
93
  {
98
94
  type: "ghost",
99
- icon: open ? icons.caretDownFill : icons.caretDown,
95
+ icon: icons.dropdownCaretAlt,
100
96
  onPress: toggleOpen,
101
97
  tooltip,
102
98
  disabled,
@@ -109,6 +105,7 @@ const RepeaterItem = (props) => {
109
105
  actions,
110
106
  headerProps: { "data-movable-handle": true },
111
107
  noFocusHandling: true,
108
+ standalone: true,
112
109
  ...rest,
113
110
  children
114
111
  },