@eightshift/ui-components 1.9.0 → 2.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 (123) hide show
  1. package/README.md +0 -7
  2. package/dist/{Button-BMFbEXg1.js → Button-OQ5EIPvt.js} +8 -8
  3. package/dist/{SelectionManager-D-89MUJW.js → Collection-CJM_asJz.js} +345 -197
  4. package/dist/{Color-B-cqXgPz.js → Color-B0HgM8f4.js} +1 -1
  5. package/dist/{ColorSwatch-B6s54Jb3.js → ColorSwatch-Dv3Wxdl_.js} +6 -7
  6. package/dist/{ComboBox-VR9-vNZv.js → ComboBox-BnlZjJ3T.js} +21 -22
  7. package/dist/{Dialog-BlYTPzgB.js → Dialog-CIh-hX93.js} +77 -65
  8. package/dist/{FieldError-DKicm3R0.js → FieldError-D7A6s7O5.js} +2 -2
  9. package/dist/{FocusScope-EoLYfbMp.js → FocusScope-Cs5_OoeA.js} +6 -4
  10. package/dist/{Group-D96edUPC.js → Group-D6tr3U_n.js} +5 -6
  11. package/dist/{Heading-GytTjUsy.js → Heading-DiYTXoIW.js} +3 -4
  12. package/dist/{Hidden-D3hHnmPI.js → Hidden-DnOd_jPX.js} +2 -2
  13. package/dist/{Input-BXSxJ_44.js → Input-Se0m3ubj.js} +13 -11
  14. package/dist/{Label-BtoiUpt8.js → Label-Ca9uelsn.js} +4 -5
  15. package/dist/{List-Ct3nzFZG.js → List-Br274SP1.js} +16 -8
  16. package/dist/{ListBox-BMpo-Cem.js → ListBox-D9dFEh5A.js} +36 -23
  17. package/dist/{OverlayArrow-4epQ99-E.js → OverlayArrow-1jx-ZyCR.js} +75 -13
  18. package/dist/{Select-aab027f3.esm-C7BxKjSc.js → Select-aab027f3.esm-HFNIFFya.js} +4 -4
  19. package/dist/{Separator-DUhFmbD-.js → Separator-BhZycTUp.js} +9 -7
  20. package/dist/{Slider-QNPrj4N9.js → Slider-BZNaJylD.js} +20 -24
  21. package/dist/{Text-DNDWaukZ.js → Text-aOUPPvTO.js} +3 -4
  22. package/dist/{VisuallyHidden-BHNhi-ls.js → VisuallyHidden-ClTQo25k.js} +2 -2
  23. package/dist/assets/index.css +37 -0
  24. package/dist/assets/style-editor.css +5287 -0
  25. package/dist/assets/style.css +5293 -1
  26. package/dist/assets/wp-font-enhancements.css +8 -1
  27. package/dist/assets/wp-ui-enhancements.css +299 -1
  28. package/dist/components/animated-visibility/animated-visibility.js +17 -21
  29. package/dist/components/base-control/base-control.js +7 -7
  30. package/dist/components/breakpoint-preview/breakpoint-preview.js +50 -50
  31. package/dist/components/button/button.js +190 -86
  32. package/dist/components/checkbox/checkbox.js +44 -27
  33. package/dist/components/color-pickers/color-picker.js +13 -9
  34. package/dist/components/color-pickers/color-swatch.js +4 -4
  35. package/dist/components/color-pickers/gradient-editor.js +25 -24
  36. package/dist/components/color-pickers/solid-color-picker.js +197 -229
  37. package/dist/components/component-toggle/component-toggle.js +3 -3
  38. package/dist/components/container-panel/container-panel.js +17 -17
  39. package/dist/components/draggable/draggable-handle.js +6 -6
  40. package/dist/components/draggable/draggable.js +1414 -699
  41. package/dist/components/draggable-list/draggable-list-item.js +3 -3
  42. package/dist/components/draggable-list/draggable-list.js +12 -12
  43. package/dist/components/expandable/expandable.js +66 -78
  44. package/dist/components/index.js +2 -3
  45. package/dist/components/input-field/input-field.js +35 -22
  46. package/dist/components/layout/hstack.js +1 -1
  47. package/dist/components/layout/vstack.js +1 -1
  48. package/dist/components/link-input/link-input.js +69 -57
  49. package/dist/components/matrix-align/matrix-align.js +34 -86
  50. package/dist/components/menu/menu.js +22 -23
  51. package/dist/components/modal/modal.js +24 -25
  52. package/dist/components/notice/notice.js +32 -32
  53. package/dist/components/number-picker/number-picker.js +41 -40
  54. package/dist/components/option-select/option-select.js +9 -4
  55. package/dist/components/options-panel/options-panel.js +63 -28
  56. package/dist/components/placeholders/file-placeholder.js +6 -17
  57. package/dist/components/placeholders/image-placeholder.js +17 -17
  58. package/dist/components/placeholders/media-placeholder.js +12 -12
  59. package/dist/components/popover/popover.js +6 -5
  60. package/dist/components/radio/radio.js +60 -43
  61. package/dist/components/repeater/repeater-item.js +10 -10
  62. package/dist/components/repeater/repeater.js +8 -8
  63. package/dist/components/responsive/mini-responsive.js +41 -41
  64. package/dist/components/responsive/responsive-legacy.js +33 -33
  65. package/dist/components/responsive/responsive.js +48 -48
  66. package/dist/components/responsive-preview/responsive-preview.js +4 -4
  67. package/dist/components/rich-label/rich-label.js +13 -11
  68. package/dist/components/select/async-multi-select.js +3 -3
  69. package/dist/components/select/async-single-select.js +2 -2
  70. package/dist/components/select/custom-select-default-components.js +3 -3
  71. package/dist/components/select/multi-select-components.js +1 -1
  72. package/dist/components/select/multi-select.js +3 -3
  73. package/dist/components/select/react-select-component-wrappers.js +1 -1
  74. package/dist/components/select/single-select.js +2 -2
  75. package/dist/components/select/styles.js +21 -21
  76. package/dist/components/select/v2/async-select.js +37 -47
  77. package/dist/components/select/v2/shared.js +8 -8
  78. package/dist/components/select/v2/single-select.js +44 -48
  79. package/dist/components/slider/column-config-slider.js +25 -25
  80. package/dist/components/slider/slider.js +173 -182
  81. package/dist/components/spacer/spacer.js +21 -21
  82. package/dist/components/tabs/tabs.js +111 -63
  83. package/dist/components/toggle/switch.js +27 -21
  84. package/dist/components/toggle/toggle.js +1 -1
  85. package/dist/components/toggle-button/toggle-button.js +160 -83
  86. package/dist/components/tooltip/tooltip.js +25 -28
  87. package/dist/{context-KeRYAbEi.js → context-CDOs-GuR.js} +1 -1
  88. package/dist/{focusSafely-CZY36ssv.js → focusSafely-CiqTTjWy.js} +18 -17
  89. package/dist/icons/icons.js +52 -0
  90. package/dist/{index-641ee5b8.esm-DEB-c58F.js → index-641ee5b8.esm-DbdaYaxR.js} +45 -45
  91. package/dist/index-BRp93Yfa.js +28318 -0
  92. package/dist/index-CcCn9HWX.js +44 -0
  93. package/dist/index.js +2 -3
  94. package/dist/{multi-select-components-DM3GsNfb.js → multi-select-components-CkF3LyTF.js} +4 -4
  95. package/dist/{react-select-async.esm-Bq3N1-Wi.js → react-select-async.esm-DcVLw9X5.js} +3 -3
  96. package/dist/{react-select.esm-B38nY7_U.js → react-select.esm-OZ0cmTjg.js} +3 -3
  97. package/dist/style-editor.js +1 -0
  98. package/dist/style.js +1 -1
  99. package/dist/{textSelection-G2G-nukT.js → textSelection-BlTDSskG.js} +2 -2
  100. package/dist/{useButton-CFtcz1T6.js → useButton-CmLbE5vg.js} +3 -3
  101. package/dist/{useEvent-B0yfN_Zu.js → useEvent-cLDJlznQ.js} +1 -1
  102. package/dist/{useFocusRing-DMAlRYjX.js → useFocusRing-CGp3guTX.js} +1 -1
  103. package/dist/{useFocusable-BlkOMLma.js → useFocusable-087cO5Ct.js} +9 -6
  104. package/dist/{useFormReset-BAEM0o25.js → useFormReset-NpLM2e3G.js} +1 -1
  105. package/dist/{useFormValidation-BNzOc2t9.js → useFormValidation-BWwmZQE2.js} +3 -3
  106. package/dist/{useLabel-D6FSp5_M.js → useLabel-C85N3Hzw.js} +2 -2
  107. package/dist/{useLabels-CraZ2Sej.js → useLabels-C_2wWraB.js} +1 -1
  108. package/dist/{useListState-C3dnPq2F.js → useListState-Z7FB_NzO.js} +1 -1
  109. package/dist/{useLocalizedStringFormatter-B73fhEA7.js → useLocalizedStringFormatter-BQ4TF72x.js} +1 -1
  110. package/dist/{useNumberField-CQP9-nH5.js → useNumberField-Bm6_BVl9.js} +10 -10
  111. package/dist/{useNumberFormatter-Cdctl6fg.js → useNumberFormatter-DlUVKkO7.js} +1 -1
  112. package/dist/{usePress-xTkcGUkt.js → usePress-rg_OQIGW.js} +15 -14
  113. package/dist/{useSingleSelectListState-BGXQSTy7.js → useSingleSelectListState-Cu3xtEJS.js} +2 -2
  114. package/dist/{useToggle-Dpw3WpSw.js → useToggle-DzlgBLAJ.js} +4 -4
  115. package/dist/{useToggleState-BSKwCUIW.js → useToggleState-DhSBQxkp.js} +1 -1
  116. package/dist/{utils-BSLBwuuO.js → utils-39D0mStj.js} +41 -93
  117. package/package.json +43 -41
  118. package/dist/GeistMonoVF.woff2 +0 -0
  119. package/dist/GeistVF.woff2 +0 -0
  120. package/dist/assets/fonts.css +0 -1
  121. package/dist/components/list-box/list-box.js +0 -157
  122. package/dist/fonts.js +0 -1
  123. package/dist/index-BYHhzLf-.js +0 -444
@@ -1,11 +1,11 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-BMFbEXg1.js";
3
- import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66, a as $d01f2c01039c0eec$export$72b9695b8216309a } from "../../ComboBox-VR9-vNZv.js";
4
- import { $ as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-D96edUPC.js";
5
- import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BXSxJ_44.js";
6
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BtoiUpt8.js";
7
- import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-BMpo-Cem.js";
8
- import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-BlYTPzgB.js";
2
+ import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-OQ5EIPvt.js";
3
+ import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66, a as $d01f2c01039c0eec$export$72b9695b8216309a } from "../../ComboBox-BnlZjJ3T.js";
4
+ import { $ as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-D6tr3U_n.js";
5
+ import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-Se0m3ubj.js";
6
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Ca9uelsn.js";
7
+ import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-D9dFEh5A.js";
8
+ import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-CIh-hX93.js";
9
9
  import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
10
10
  import { icons } from "../../icons/icons.js";
11
11
  import { c as clsx } from "../../lite-DVmmD_-j.js";
@@ -83,6 +83,7 @@ const LinkInput = (props) => {
83
83
  }
84
84
  });
85
85
  const [shouldShowSuggestions, setShouldShowSuggestions] = useState(false);
86
+ useState(false);
86
87
  useEffect(() => {
87
88
  suggestionList.setFilterText(url);
88
89
  if (!canShowSuggestions) {
@@ -126,17 +127,23 @@ const LinkInput = (props) => {
126
127
  children: /* @__PURE__ */ jsxs(
127
128
  $a049562f99e7db0e$export$eb2fcfdbd7ba97d4,
128
129
  {
129
- className: "es-uic-relative",
130
+ className: "es:relative",
130
131
  ref: triggerRef,
131
132
  children: [
132
133
  /* @__PURE__ */ jsx(
133
134
  $3985021b0ad6602f$export$f5b8910cec6cf069,
134
135
  {
135
- placeholder,
136
+ placeholder: !disabled && placeholder,
136
137
  className: clsx(
137
- "es-uic-min-h-10 es-uic-w-full es-uic-rounded-md es-uic-border es-uic-border-gray-300 es-uic-py-2 es-uic-pl-2 es-uic-pr-1 es-uic-text-sm es-uic-shadow-sm es-uic-transition selection:es-uic-bg-teal-500/20 selection:es-uic-text-teal-950",
138
- "focus:es-uic-outline-none focus-visible:es-uic-outline-none focus-visible:es-uic-ring focus-visible:es-uic-ring-teal-500 focus-visible:es-uic-ring-opacity-50",
139
- (url == null ? void 0 : url.length) > 0 && "es-uic-pr-10",
138
+ "es:min-h-10 es:w-full es:rounded-t-lg es:border es:border-secondary-300 es:py-2 es:pl-2 es:pr-1 es:text-sm es:shadow-xs es:transition es:selection:bg-accent-500/20 es:selection:text-accent-950",
139
+ "es:any-focus:outline-hidden",
140
+ "es:focus-visible:ring-2 es:focus-visible:ring-accent-500/50",
141
+ "es:focus-visible:border-accent-500",
142
+ "es:inset-ring es:inset-ring-secondary-100",
143
+ "es:disabled:shadow-none! es:disabled:border-secondary-200 es:disabled:bg-secondary-50 es:disabled:text-secondary-500 es:disabled:cursor-default es:readonly:bg-secondary-50",
144
+ !suggestionList.isLoading && "es:aria-[expanded=false]:rounded-b-lg",
145
+ suggestionList.isLoading && "es:rounded-b-lg",
146
+ (url == null ? void 0 : url.length) > 0 && "es:pr-10",
140
147
  className
141
148
  )
142
149
  }
@@ -144,10 +151,10 @@ const LinkInput = (props) => {
144
151
  /* @__PURE__ */ jsx(
145
152
  AnimatedVisibility,
146
153
  {
147
- visible: (url == null ? void 0 : url.length) > 0,
148
- className: "es-uic-absolute es-uic-inset-y-1 es-uic-right-1",
154
+ visible: !disabled && (url == null ? void 0 : url.length) > 0,
155
+ className: "es:absolute es:inset-y-1 es:right-1",
149
156
  transition: "fade",
150
- children: /* @__PURE__ */ jsx(
157
+ children: /* @__PURE__ */ jsxs(
151
158
  $d2b4bc8c273e7be6$export$353f5b6fc5456de1,
152
159
  {
153
160
  slot: null,
@@ -155,18 +162,21 @@ const LinkInput = (props) => {
155
162
  suggestionList.setFilterText("");
156
163
  onChange({ url: void 0, isAnchor: false });
157
164
  },
158
- className: "focus:es-uic-outline-none",
159
- children: /* @__PURE__ */ jsx(Tooltip, { text: __("Clear", "eightshift-ui-components"), children: /* @__PURE__ */ jsx(
160
- "div",
161
- {
162
- className: clsx(
163
- "es-uic-flex es-uic-size-8 es-uic-items-center es-uic-justify-center es-uic-rounded es-uic-bg-white/85 es-uic-text-gray-600 es-uic-backdrop-blur es-uic-transition",
164
- "hover:es-uic-bg-red-50 hover:es-uic-text-red-500",
165
- "[&>svg]:es-uic-size-6"
166
- ),
167
- children: removeIcon
168
- }
169
- ) })
165
+ className: "es:focus:outline-hidden",
166
+ children: [
167
+ !(shouldShowSuggestions && suggestionList.isLoading) && /* @__PURE__ */ jsx(Tooltip, { text: __("Clear", "eightshift-ui-components"), children: /* @__PURE__ */ jsx(
168
+ "div",
169
+ {
170
+ className: clsx(
171
+ "es:flex es:size-8 es:items-center es:justify-center es:rounded es:bg-white/85 es:text-secondary-600 es:backdrop-blur es:transition es:cursor-pointer",
172
+ "es:hover:bg-red-600/5 es:hover:text-red-600",
173
+ "es:icon:size-6"
174
+ ),
175
+ children: removeIcon
176
+ }
177
+ ) }),
178
+ shouldShowSuggestions && suggestionList.isLoading && /* @__PURE__ */ jsx("div", { className: "es:p-1.5", children: cloneElement(icons.loader, { className: "es:text-accent-600! es:stroke-2 es:motion-preset-spin es:motion-duration-1500" }) })
179
+ ]
170
180
  }
171
181
  )
172
182
  }
@@ -176,39 +186,32 @@ const LinkInput = (props) => {
176
186
  )
177
187
  }
178
188
  ),
179
- canShowSuggestions && shouldShowSuggestions && /* @__PURE__ */ jsxs(
189
+ canShowSuggestions && shouldShowSuggestions && !suggestionList.isLoading && /* @__PURE__ */ jsxs(
180
190
  $07b14b47974efb58$export$5b6b19405a83ff9d,
181
191
  {
182
192
  "aria-label": __("URL suggestions", "eightshift-ui-components"),
183
193
  className: ({ isEntering, isExiting }) => clsx(
184
- "es-uic-rounded-md es-uic-border es-uic-border-gray-200 es-uic-bg-white es-uic-shadow-lg es-uic-outline-none",
185
- isEntering && "es-uic-animate-in es-uic-fade-in-0 es-uic-slide-in-from-top-3 es-uic-fill-mode-forwards",
186
- isExiting && "es-uic-animate-out es-uic-fade-out-0 es-uic-slide-out-to-top-2 es-uic-fill-mode-forwards",
187
- !shouldShowSuggestions && suggestionList.items.length < 1 && "es-uic-invisible"
194
+ "es:rounded-b-lg es:border es:border-secondary-300 es:bg-white es:shadow-lg es:outline-hidden",
195
+ isEntering && "es:not-motion-reduce:motion-preset-slide-down-sm es:motion-reduce:motion-preset-fade es:motion-duration-300",
196
+ isExiting && "es:not-motion-reduce:motion-translate-y-out-[-2.5%] es:motion-opacity-out-0 es:motion-duration-200",
197
+ !shouldShowSuggestions && suggestionList.items.length < 1 && "es:invisible"
188
198
  ),
199
+ offset: -2,
189
200
  style: {
190
201
  width: `${(_a = triggerRef.current) == null ? void 0 : _a.offsetWidth}px`
191
202
  },
192
203
  children: [
193
- shouldShowSuggestions && suggestionList.isLoading && /* @__PURE__ */ jsx(
194
- RichLabel,
195
- {
196
- icon: cloneElement(icons.emptyCircle, { className: "es-uic-animate-spin" }),
197
- label: __("Loading suggestions", "eightshift-ui-components"),
198
- className: "es-uic-min-h-12 es-uic-p-2"
199
- }
200
- ),
201
204
  shouldShowSuggestions && !suggestionList.isLoading && suggestionList.items.length === 0 && /* @__PURE__ */ jsx(
202
205
  RichLabel,
203
206
  {
204
207
  icon: icons.searchEmpty,
205
208
  label: __("No results", "eightshift-ui-components"),
206
209
  subtitle: __("Try a different search term.", "eightshift-ui-components"),
207
- className: "es-uic-min-h-12 es-uic-p-2"
210
+ className: "es:min-h-12 es:p-2"
208
211
  }
209
212
  ),
210
213
  !suggestionList.isLoading && suggestionList.items.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
211
- /* @__PURE__ */ jsx($eed445e0843c11d0$export$41f133550aa26f48, { className: "es-uic-space-y-1 es-uic-p-1", children: (item) => {
214
+ /* @__PURE__ */ jsx($eed445e0843c11d0$export$41f133550aa26f48, { className: "es:space-y-1 es:p-1", children: (item) => {
212
215
  const {
213
216
  label: title,
214
217
  value: url2,
@@ -238,10 +241,10 @@ const LinkInput = (props) => {
238
241
  {
239
242
  id: item.value,
240
243
  className: clsx(
241
- "es-uic-rounded es-uic-p-1 es-uic-text-sm es-uic-transition",
242
- "hover:es-uic-border-gray-300 hover:es-uic-bg-gray-100",
243
- "focus-visible:es-uic-border-gray-300 focus-visible:es-uic-bg-gray-100",
244
- "selected:es-uic-bg-teal-600/10 selected:es-uic-text-teal-900 selected:focus-visible:es-uic-bg-teal-600/15"
244
+ "es:rounded es:p-1 es:text-sm es:transition",
245
+ "es:hover:border-secondary-300 es:hover:bg-secondary-100",
246
+ "es:focus-visible:border-secondary-300 es:focus-visible:bg-secondary-100",
247
+ "selected:es:bg-accent-600/10 selected:es:text-accent-900 selected:focus-visible:es:bg-accent-600/15"
245
248
  ),
246
249
  textValue: url2,
247
250
  children: /* @__PURE__ */ jsx(
@@ -256,18 +259,27 @@ const LinkInput = (props) => {
256
259
  }
257
260
  );
258
261
  } }),
259
- /* @__PURE__ */ jsx(Spacer, { border: true }),
260
- /* @__PURE__ */ jsxs("div", { className: "es-uic-grid es-uic-select-none es-uic-grid-cols-[auto,_1fr] es-uic-items-center es-uic-gap-x-1.5 es-uic-gap-y-1 es-uic-p-2 es-uic-text-sm es-uic-text-gray-500", children: [
261
- /* @__PURE__ */ jsxs("div", { className: "es-uic-flex es-uic-gap-0.5 es-uic-justify-self-center", children: [
262
- /* @__PURE__ */ jsx("kbd", { className: "es-uic-flex es-uic-size-5 es-uic-items-center es-uic-justify-center es-uic-rounded es-uic-border es-uic-p-0.5 es-uic-font-sans es-uic-text-xs es-uic-text-gray-400", children: "↓" }),
263
- /* @__PURE__ */ jsx("kbd", { className: "es-uic-flex es-uic-size-5 es-uic-items-center es-uic-justify-center es-uic-rounded es-uic-border es-uic-p-0.5 es-uic-font-sans es-uic-text-xs es-uic-text-gray-400", children: "↑" })
262
+ /* @__PURE__ */ jsx(
263
+ Spacer,
264
+ {
265
+ border: true,
266
+ className: "es:opacity-40"
267
+ }
268
+ ),
269
+ /* @__PURE__ */ jsxs("div", { className: "es:flex es:flex-wrap es:items-center es:justify-end es:gap-x-3 es:gap-y-1.5 es:p-2 es:text-sm es:text-secondary-500", children: [
270
+ /* @__PURE__ */ jsxs("div", { className: "es:flex es:gap-1", children: [
271
+ /* @__PURE__ */ jsx("kbd", { className: "es:flex es:size-4 es:items-center es:justify-center es:rounded es:bg-radial es:from-secondary-100 es:to-secondary-200 es:font-mono es:text-xs es:text-secondary-600", children: "↓" }),
272
+ /* @__PURE__ */ jsx("kbd", { className: "es:flex es:size-4 es:items-center es:justify-center es:rounded es:bg-radial es:from-secondary-100 es:to-secondary-200 es:font-mono es:text-xs es:text-secondary-600", children: "↑" }),
273
+ __("Navigate", "eightshift-ui-components")
274
+ ] }),
275
+ /* @__PURE__ */ jsxs("div", { className: "es:flex es:gap-1", children: [
276
+ /* @__PURE__ */ jsx("kbd", { className: "es:flex es:size-4 es:items-center es:justify-center es:rounded es:bg-radial es:from-secondary-100 es:to-secondary-200 es:font-mono es:text-xs es:text-secondary-600", children: "↵" }),
277
+ __("Select", "eightshift-ui-components")
264
278
  ] }),
265
- __("Navigate", "eightshift-ui-components"),
266
- /* @__PURE__ */ jsx("div", { className: "es-uic-flex es-uic-gap-0.5 es-uic-justify-self-center", children: /* @__PURE__ */ jsx("kbd", { className: "es-uic-flex es-uic-size-5 es-uic-items-center es-uic-justify-center es-uic-justify-self-center es-uic-rounded es-uic-border es-uic-p-0.5 es-uic-font-sans es-uic-text-xs es-uic-text-gray-400", children: "" }) }),
267
- __("Select", "eightshift-ui-components"),
268
- /* @__PURE__ */ jsx("kbd", { className: "es-uic-flex es-uic-h-5 es-uic-min-w-5 es-uic-items-center es-uic-justify-center es-uic-justify-self-center es-uic-rounded es-uic-border es-uic-p-0.5 es-uic-font-sans es-uic-text-xs es-uic-text-gray-400", children: "Esc" }),
269
- " ",
270
- __("Hide suggestions", "eightshift-ui-components")
279
+ /* @__PURE__ */ jsxs("div", { className: "es:flex es:gap-1", children: [
280
+ /* @__PURE__ */ jsx("kbd", { className: "es:flex es:h-4 es:items-center es:justify-center es:rounded es:bg-radial es:from-secondary-100 es:to-secondary-200 es:font-mono es:text-xs es:tracking-tighter es:px-0.5 es:text-secondary-600", children: "Esc" }),
281
+ __("Hide", "eightshift-ui-components")
282
+ ] })
271
283
  ] })
272
284
  ] })
273
285
  ]
@@ -1,12 +1,8 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { useState, useRef } from "react";
1
+ import { jsx } from "react/jsx-runtime";
3
2
  import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
4
- import { Popover } from "../popover/popover.js";
5
- import { Button } from "../button/button.js";
6
3
  import { icons } from "../../icons/icons.js";
7
- import { upperFirst, camelCase } from "../../utilities/es-dash.js";
8
- import { c as clsx } from "../../lite-DVmmD_-j.js";
9
- import { Tooltip } from "../tooltip/tooltip.js";
4
+ import { upperFirst, camelCase, pascalCase } from "../../utilities/es-dash.js";
5
+ import { Menu, MenuItem } from "../menu/menu.js";
10
6
  import { BaseControl } from "../base-control/base-control.js";
11
7
  /**
12
8
  * A component that can provide a 3x3 or a 2x2 grid of positions to pick from.
@@ -48,14 +44,8 @@ const MatrixAlign = (props) => {
48
44
  icon,
49
45
  subtitle,
50
46
  "aria-label": ariaLabel,
51
- popoverPosition,
52
47
  hidden
53
48
  } = props;
54
- const [currentValue, setCurrentValue] = useState(value);
55
- const [tooltipText, setTooltipText] = useState(null);
56
- const [popoverOpen, setPopoverOpen] = useState(false);
57
- const ref = useRef(null);
58
- const innerRef = useRef(null);
59
49
  if (hidden) {
60
50
  return null;
61
51
  }
@@ -106,80 +96,38 @@ const MatrixAlign = (props) => {
106
96
  availableOn: ["3x3", "2x2"]
107
97
  }
108
98
  ];
109
- const sizeOptions = allSizeOptions.filter(({ availableOn }) => availableOn.includes(size)).map((item) => ({
110
- ...item,
111
- icon: item.value === currentValue ? icons.matrixAlignControlDotActive : icons.matrixAlignControlDotInactive
112
- }));
113
- return /* @__PURE__ */ jsxs(Fragment, { children: [
114
- /* @__PURE__ */ jsx(
115
- BaseControl,
116
- {
117
- icon,
118
- label,
119
- subtitle,
120
- inline: true,
121
- children: /* @__PURE__ */ jsx(
122
- Button,
123
- {
124
- icon: icons[`position${size}${upperFirst(camelCase(currentValue))}`],
125
- onPress: () => {
126
- setPopoverOpen(true);
127
- },
128
- forwardedRef: ref,
129
- tooltip,
130
- children: !(icon || subtitle) && label
131
- }
132
- )
133
- }
134
- ),
135
- /* @__PURE__ */ jsx(
136
- Popover,
137
- {
138
- "aria-label": ariaLabel ?? __("Select position", "eightshift-ui-components"),
139
- position: popoverPosition,
140
- triggerRef: ref,
141
- onOpenChange: setPopoverOpen,
142
- isOpen: popoverOpen,
143
- ariaLabel: label ?? tooltip,
144
- children: /* @__PURE__ */ jsx(
145
- Tooltip,
146
- {
147
- text: tooltipText,
148
- placement: "bottom",
149
- delayDuration: 200,
150
- open: popoverOpen && tooltipText !== null,
151
- offset: 10,
152
- triggerRef: innerRef,
153
- className: tooltipText === null ? "es-uic-opacity-0" : "",
154
- children: /* @__PURE__ */ jsx(
155
- "div",
99
+ const sizeOptions = allSizeOptions.filter(({ availableOn }) => availableOn.includes(size));
100
+ return /* @__PURE__ */ jsx(
101
+ BaseControl,
102
+ {
103
+ icon,
104
+ label,
105
+ subtitle,
106
+ inline: true,
107
+ children: /* @__PURE__ */ jsx(
108
+ Menu,
109
+ {
110
+ triggerIcon: icons[`position${size}${upperFirst(camelCase(value))}`],
111
+ triggerProps: { "aria-label": ariaLabel },
112
+ tooltip,
113
+ keepOpen: true,
114
+ children: sizeOptions.map(({ value: itemValue, label: label2 }) => {
115
+ var _a;
116
+ return /* @__PURE__ */ jsx(
117
+ MenuItem,
156
118
  {
157
- ref: innerRef,
158
- className: clsx("es-uic-grid", size === "3x3" && "es-uic-grid-cols-3 es-uic-grid-rows-3", size === "2x2" && "es-uic-grid-cols-2 es-uic-grid-rows-2"),
159
- children: sizeOptions.map(({ value: value2, label: label2, icon: icon2 }) => /* @__PURE__ */ jsx(
160
- Button,
161
- {
162
- icon: icon2,
163
- type: "ghost",
164
- onHoverStart: () => setTooltipText(label2),
165
- onHoverEnd: () => setTooltipText(null),
166
- onFocus: () => setTooltipText(label2),
167
- onPress: () => {
168
- setCurrentValue(value2);
169
- setTooltipText(null);
170
- setPopoverOpen(false);
171
- onChange(value2);
172
- }
173
- },
174
- value2
175
- ))
176
- }
177
- )
178
- }
179
- )
180
- }
181
- )
182
- ] });
119
+ endIcon: (_a = icons) == null ? void 0 : _a[`position${size}${pascalCase(itemValue)}`],
120
+ selected: value === itemValue,
121
+ onClick: () => onChange(itemValue),
122
+ children: label2
123
+ },
124
+ itemValue
125
+ );
126
+ })
127
+ }
128
+ )
129
+ }
130
+ );
183
131
  };
184
132
  export {
185
133
  MatrixAlign
@@ -1,7 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { $ as $72a5793c14baf454$export$8b251419efc915eb, a as $431f98aba6844401$export$1ff3c3f08ae963c0 } from "../../Separator-DUhFmbD-.js";
3
- import { $ as $7135fc7d473fd974$export$6e2c8f0811a474ce } from "../../SelectionManager-D-89MUJW.js";
4
- import { a as $3674c52c6b3c5bce$export$27d2ad3c5815583e, b as $3674c52c6b3c5bce$export$d9b273488cd8ce6f, c as $3674c52c6b3c5bce$export$2ce376c2cc3355c8, d as $3674c52c6b3c5bce$export$ecabc99eeffab7ca } from "../../Dialog-BlYTPzgB.js";
2
+ import { $ as $72a5793c14baf454$export$8b251419efc915eb, a as $431f98aba6844401$export$1ff3c3f08ae963c0 } from "../../Separator-BhZycTUp.js";
3
+ import { a as $3674c52c6b3c5bce$export$27d2ad3c5815583e, b as $3674c52c6b3c5bce$export$d9b273488cd8ce6f, c as $3674c52c6b3c5bce$export$4b1545b4f2016d26, d as $3674c52c6b3c5bce$export$2ce376c2cc3355c8, e as $3674c52c6b3c5bce$export$ecabc99eeffab7ca } from "../../Dialog-CIh-hX93.js";
5
4
  import { icons } from "../../icons/icons.js";
6
5
  import { Button } from "../button/button.js";
7
6
  import { Popover } from "../popover/popover.js";
@@ -113,14 +112,14 @@ const Menu = (props) => {
113
112
  /* @__PURE__ */ jsx(
114
113
  Popover,
115
114
  {
116
- className: "!es-uic-p-0 focus:es-uic-outline-none",
115
+ className: "es:p-0! es:focus:outline-hidden",
117
116
  "aria-label": ariaLabel,
118
- wrapperClassName: clsx(!hasSubmenuItems && "es-uic-overflow-y-auto"),
117
+ wrapperClassName: clsx(!hasSubmenuItems && "es:overflow-y-auto"),
119
118
  ...popoverProps,
120
119
  children: /* @__PURE__ */ jsx(
121
120
  $3674c52c6b3c5bce$export$d9b273488cd8ce6f,
122
121
  {
123
- className: "es-uic-outline-none",
122
+ className: "es:outline-hidden",
124
123
  ...props,
125
124
  ...additionalProps,
126
125
  children
@@ -150,15 +149,15 @@ const Menu = (props) => {
150
149
  const MenuSection = (props) => {
151
150
  const { children, label } = props;
152
151
  return /* @__PURE__ */ jsxs(
153
- $7135fc7d473fd974$export$6e2c8f0811a474ce,
152
+ $3674c52c6b3c5bce$export$4b1545b4f2016d26,
154
153
  {
155
154
  className: clsx(
156
- "es-uic-space-y-1 es-uic-border-b es-uic-border-b-gray-200 es-uic-pb-1 last:es-uic-border-b-0",
157
- label && "es-uic-pt-2 first:es-uic-pt-1.5",
158
- !label && "last:es-uic-pb-1 has-[>_:only-child]:es-uic-pb-0"
155
+ "es:space-y-1 es:border-b es:border-b-secondary-200 es:last:border-b-0",
156
+ label && "es:pt-2 es:first:pt-1.5 es:last:pb-0",
157
+ !label && "es:has-[>_:only-child]:pb-0"
159
158
  ),
160
159
  children: [
161
- label && /* @__PURE__ */ jsx($72a5793c14baf454$export$8b251419efc915eb, { className: "es-uic-ml-1.5 es-uic-text-xs es-uic-font-medium es-uic-text-gray-400", children: label }),
160
+ label && /* @__PURE__ */ jsx($72a5793c14baf454$export$8b251419efc915eb, { className: "es:ml-1.5 es:text-xs es:font-medium es:text-secondary-400", children: label }),
162
161
  children
163
162
  ]
164
163
  }
@@ -174,7 +173,7 @@ const MenuSection = (props) => {
174
173
  * @preserve
175
174
  */
176
175
  const MenuSeparator = () => {
177
- return /* @__PURE__ */ jsx($431f98aba6844401$export$1ff3c3f08ae963c0, { className: "es-uic-mb-1 es-uic-border-b es-uic-border-gray-300" });
176
+ return /* @__PURE__ */ jsx($431f98aba6844401$export$1ff3c3f08ae963c0, { className: "es:mb-1 es:border-b es:border-secondary-200/50" });
178
177
  };
179
178
  /**
180
179
  * A menu item.
@@ -216,12 +215,12 @@ const MenuItem = (props) => {
216
215
  "aria-label": ariaLabel,
217
216
  isDisabled: disabled,
218
217
  className: clsx(
219
- "es-uic-mx-1 es-uic-mb-1 es-uic-flex es-uic-min-w-40 es-uic-items-center es-uic-gap-1.5",
220
- "first:es-uic-mt-1 [&>svg]:es-uic-size-5 [&>svg]:es-uic-text-gray-500",
221
- "es-uic-select-none es-uic-rounded es-uic-border es-uic-border-transparent es-uic-px-1 es-uic-py-1.5 es-uic-text-sm es-uic-transition",
222
- "hover:es-uic-bg-gray-100",
223
- "focus:es-uic-outline-none focus-visible:es-uic-outline-none focus-visible:es-uic-ring focus-visible:es-uic-ring-teal-500 focus-visible:es-uic-ring-opacity-50",
224
- disabled ? "es-uic-text-gray-400" : "es-uic-text-gray-800",
218
+ "es:mx-1 es:mb-1 es:flex es:min-w-44 es:min-h-8 es:items-center es:gap-1.5",
219
+ "es:first:mt-1 es:icon:size-5 es:icon:text-secondary-500",
220
+ "es:select-none es:rounded-md es:p-1.5 es:text-sm es:transition",
221
+ "es:any-focus:outline-hidden",
222
+ !disabled && "es:hover:bg-secondary-100 es:focus-visible:inset-ring es:focus-visible:inset-ring-secondary-100/30 es:focus-visible:bg-secondary-100 es:contrast-more:focus-visible:bg-accent-500/15",
223
+ disabled ? "es:text-secondary-400" : "es:text-secondary-800",
225
224
  className
226
225
  ),
227
226
  onAction: onClick,
@@ -231,8 +230,8 @@ const MenuItem = (props) => {
231
230
  (selected === false || checked === false) && icons.dummySpacer,
232
231
  icon,
233
232
  children,
234
- shortcut && /* @__PURE__ */ jsx("div", { className: "es-uic-ml-auto es-uic-pl-2 es-uic-text-[0.6875rem] es-uic-tracking-tight es-uic-text-gray-400", children: shortcut }),
235
- endIcon && /* @__PURE__ */ jsx("div", { className: clsx(!shortcut && "es-uic-ml-auto es-uic-pl-2"), children: endIcon })
233
+ shortcut && /* @__PURE__ */ jsx("div", { className: "es:ml-auto es:pl-2 es:text-[0.6875rem] es:tracking-tight es:text-secondary-400", children: shortcut }),
234
+ endIcon && /* @__PURE__ */ jsx("div", { className: clsx(!shortcut && "es:ml-auto es:pl-2"), children: endIcon })
236
235
  ]
237
236
  }
238
237
  );
@@ -255,20 +254,20 @@ const SubMenuItem = (props) => {
255
254
  const { children, trigger, popoverProps } = props;
256
255
  return /* @__PURE__ */ jsxs($3674c52c6b3c5bce$export$ecabc99eeffab7ca, { children: [
257
256
  cloneElement(trigger, {
258
- endIcon: /* @__PURE__ */ jsx("span", { className: "es-uic-text-gray-400", children: icons.caretRightFill })
257
+ endIcon: /* @__PURE__ */ jsx("span", { className: "es:text-secondary-400", children: icons.caretRightFill })
259
258
  }),
260
259
  /* @__PURE__ */ jsx(
261
260
  Popover,
262
261
  {
263
262
  "aria-label": props["aria-label"] ?? __("Submenu", "eightshift-ui-components"),
264
- className: "!es-uic-p-0 focus:es-uic-outline-none",
263
+ className: "es:p-0! es:focus:outline-hidden",
265
264
  offset: -1,
266
265
  ...popoverProps,
267
266
  children: /* @__PURE__ */ jsx(
268
267
  $3674c52c6b3c5bce$export$d9b273488cd8ce6f,
269
268
  {
270
269
  "aria-label": props["aria-label"] ?? __("Submenu", "eightshift-ui-components"),
271
- className: "focus:es-uic-outline-none",
270
+ className: "es:focus:outline-hidden",
272
271
  children
273
272
  }
274
273
  )
@@ -1,10 +1,10 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { g as $a11501f3d1d39e6c$export$ea8f71083e90600f, h as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, i as $337b884510726a0d$export$14c98a7594375490, j as $5e3802645cc19319$export$1c3ebcada18427bf, k as $de32f1b87079253c$export$d2f961adcb0afbe, l as $337b884510726a0d$export$c6fdb837b070b4ff, m as $86ea4cb521eb2e37$export$2317d149ed6f78c4, f as $de32f1b87079253c$export$2e1e1122cf0cba88, e as $de32f1b87079253c$export$3ddf2d174ce01153 } from "../../Dialog-BlYTPzgB.js";
3
- import { $ as $5cb03073d3f54797$export$a8a3e93435678ff9 } from "../../Heading-GytTjUsy.js";
4
- import { e as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, m as $df56164dff5785e2$export$4338b53315abf666, p as $64fa3d84918910a7$export$45fda7c47f93fd48, q as $64fa3d84918910a7$export$6d3443f2c48bfc20, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, n as $5dc95899b306f630$export$c9058316764c140e } from "../../utils-BSLBwuuO.js";
2
+ import { h as $a11501f3d1d39e6c$export$ea8f71083e90600f, i as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, j as $337b884510726a0d$export$14c98a7594375490, k as $5e3802645cc19319$export$1c3ebcada18427bf, l as $de32f1b87079253c$export$d2f961adcb0afbe, m as $86ea4cb521eb2e37$export$2317d149ed6f78c4, n as $337b884510726a0d$export$c6fdb837b070b4ff, g as $de32f1b87079253c$export$2e1e1122cf0cba88, f as $de32f1b87079253c$export$3ddf2d174ce01153 } from "../../Dialog-CIh-hX93.js";
3
+ import { $ as $5cb03073d3f54797$export$a8a3e93435678ff9 } from "../../Heading-DiYTXoIW.js";
4
+ import { e as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928, n as $5dc95899b306f630$export$c9058316764c140e, m as $df56164dff5785e2$export$4338b53315abf666, b as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$29f1550f4b0d4415, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-39D0mStj.js";
5
5
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
6
- import React__default, { useState, useEffect, forwardRef, useContext, useRef, useMemo, createContext } from "react";
7
- import { $ as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../OverlayArrow-4epQ99-E.js";
6
+ import React__default, { useState, useEffect, forwardRef, useContext, useMemo, createContext, useRef } from "react";
7
+ import { $ as $d3f049242431219c$export$6d3443f2c48bfc20, a as $fc909762b330b746$export$61c6a8c84e605fb6, b as $d3f049242431219c$export$45fda7c47f93fd48 } from "../../OverlayArrow-1jx-ZyCR.js";
8
8
  import { Button } from "../button/button.js";
9
9
  import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
10
10
  import { c as clsx } from "../../lite-DVmmD_-j.js";
@@ -66,7 +66,7 @@ function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, ref) {
66
66
  }
67
67
  const $f3f84453ead64de5$export$ab57792b9b6974a6 = /* @__PURE__ */ createContext(null);
68
68
  const $f3f84453ead64de5$var$InternalModalContext = /* @__PURE__ */ createContext(null);
69
- function $f3f84453ead64de5$var$Modal(props, ref) {
69
+ const $f3f84453ead64de5$export$2b77a92f1a5ad772 = /* @__PURE__ */ forwardRef(function Modal(props, ref) {
70
70
  let ctx = useContext($f3f84453ead64de5$var$InternalModalContext);
71
71
  if (ctx) return /* @__PURE__ */ React__default.createElement($f3f84453ead64de5$var$ModalContent, {
72
72
  ...props,
@@ -87,8 +87,7 @@ function $f3f84453ead64de5$var$Modal(props, ref) {
87
87
  ...otherProps,
88
88
  modalRef: ref
89
89
  }, children));
90
- }
91
- const $f3f84453ead64de5$export$2b77a92f1a5ad772 = /* @__PURE__ */ forwardRef($f3f84453ead64de5$var$Modal);
90
+ });
92
91
  function $f3f84453ead64de5$var$ModalOverlayWithForwardRef(props, ref) {
93
92
  [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $f3f84453ead64de5$export$ab57792b9b6974a6);
94
93
  let contextState = useContext($de32f1b87079253c$export$d2f961adcb0afbe);
@@ -96,8 +95,8 @@ function $f3f84453ead64de5$var$ModalOverlayWithForwardRef(props, ref) {
96
95
  let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
97
96
  let objectRef = $df56164dff5785e2$export$4338b53315abf666(ref);
98
97
  let modalRef = useRef(null);
99
- let isOverlayExiting = $64fa3d84918910a7$export$45fda7c47f93fd48(objectRef, state.isOpen);
100
- let isModalExiting = $64fa3d84918910a7$export$45fda7c47f93fd48(modalRef, state.isOpen);
98
+ let isOverlayExiting = $d3f049242431219c$export$45fda7c47f93fd48(objectRef, state.isOpen);
99
+ let isModalExiting = $d3f049242431219c$export$45fda7c47f93fd48(modalRef, state.isOpen);
101
100
  let isExiting = isOverlayExiting || isModalExiting || props.isExiting || false;
102
101
  let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
103
102
  if (!state.isOpen && !isExiting || isSSR) return null;
@@ -114,7 +113,7 @@ function $f3f84453ead64de5$var$ModalOverlayInner({ UNSTABLE_portalContainer, ...
114
113
  let modalRef = props.modalRef;
115
114
  let { state } = props;
116
115
  let { modalProps, underlayProps } = $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, modalRef);
117
- let entering = $64fa3d84918910a7$export$6d3443f2c48bfc20(props.overlayRef) || props.isEntering || false;
116
+ let entering = $d3f049242431219c$export$6d3443f2c48bfc20(props.overlayRef) || props.isEntering || false;
118
117
  let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
119
118
  ...props,
120
119
  defaultClassName: "react-aria-ModalOverlay",
@@ -165,7 +164,7 @@ function $f3f84453ead64de5$var$ModalContent(props) {
165
164
  modalRef
166
165
  ]);
167
166
  let ref = $df56164dff5785e2$export$4338b53315abf666(mergedRefs);
168
- let entering = $64fa3d84918910a7$export$6d3443f2c48bfc20(ref);
167
+ let entering = $d3f049242431219c$export$6d3443f2c48bfc20(ref);
169
168
  let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
170
169
  ...props,
171
170
  defaultClassName: "react-aria-Modal",
@@ -213,7 +212,7 @@ function $f3f84453ead64de5$var$ModalContent(props) {
213
212
  *
214
213
  * @preserve
215
214
  */
216
- const Modal = (props) => {
215
+ const Modal2 = (props) => {
217
216
  const {
218
217
  children,
219
218
  shouldCloseOnInteractOutside,
@@ -249,32 +248,32 @@ const Modal = (props) => {
249
248
  isOpen: open,
250
249
  shouldCloseOnInteractOutside,
251
250
  isKeyboardDismissDisabled: noKeyboardDismiss,
252
- className: clsx(
253
- "es-uic-fixed es-uic-inset-0 es-uic-z-10 es-uic-flex es-uic-min-h-full es-uic-items-center es-uic-justify-center es-uic-overflow-y-auto es-uic-bg-black/25 es-uic-p-4 es-uic-text-center es-uic-backdrop-blur",
254
- "entering:es-uic-duration-300 entering:es-uic-ease-out entering:es-uic-animate-in entering:es-uic-fade-in",
255
- "exiting:es-uic-duration-200 exiting:es-uic-ease-in exiting:es-uic-animate-out exiting:es-uic-fade-out",
251
+ className: ({ isEntering, isExiting }) => clsx(
252
+ "es:fixed es:inset-0 es:z-9999 es:flex es:min-h-full es:items-center es:justify-center es:overflow-y-auto es:bg-black/25 es:p-4 es:text-center es:backdrop-blur",
253
+ isEntering && "es:motion-opacity-in es:motion-duration-150",
254
+ isExiting && "es:motion-opacity-out es:motion-duration-150",
256
255
  overlayClassName
257
256
  ),
258
257
  children: /* @__PURE__ */ jsx(
259
258
  $f3f84453ead64de5$export$2b77a92f1a5ad772,
260
259
  {
261
- className: clsx(
262
- "es-uic-w-full es-uic-max-w-lg es-uic-overflow-hidden es-uic-rounded-xl es-uic-border es-uic-border-gray-100 es-uic-bg-white es-uic-p-5 es-uic-text-left es-uic-align-middle es-uic-shadow-xl",
263
- "entering:es-uic-duration-300 entering:es-uic-ease-out entering:es-uic-animate-in entering:es-uic-zoom-in-95",
264
- "exiting:es-uic-duration-200 exiting:es-uic-ease-in exiting:es-uic-animate-out exiting:es-uic-zoom-out-95",
260
+ className: ({ isEntering, isExiting }) => clsx(
261
+ "es:w-full es:max-w-lg es:overflow-hidden es:rounded-xl es:border es:border-secondary-100 es:bg-white es:p-5 es:text-left es:align-middle es:shadow-xl es:inset-ring es:inset-ring-secondary-100",
262
+ isEntering && "es:motion-safe:motion-scale-in-95 es:motion-fade-in es:motion-duration-300 es:motion-ease-spring-smooth/scale",
263
+ isExiting && "es:motion-safe:motion-scale-out-95 es:motion-fade-out es:motion-duration-250 es:motion-ease-spring-smooth/scale",
265
264
  className
266
265
  ),
267
266
  children: /* @__PURE__ */ jsx(
268
267
  $de32f1b87079253c$export$3ddf2d174ce01153,
269
268
  {
270
- className: "es-uic-relative es-uic-text-sm es-uic-outline-none",
269
+ className: "es:relative es:text-sm es:outline-hidden",
271
270
  "aria-label": ariaLabel,
272
271
  children: ({ close }) => /* @__PURE__ */ jsxs(Fragment, { children: [
273
272
  /* @__PURE__ */ jsxs(HStack, { children: [
274
273
  title && /* @__PURE__ */ jsx(
275
274
  $5cb03073d3f54797$export$a8a3e93435678ff9,
276
275
  {
277
- className: "es-uic-text-balance es-uic-text-base",
276
+ className: "es:text-balance es:text-base",
278
277
  slot: "title",
279
278
  children: title
280
279
  }
@@ -282,7 +281,7 @@ const Modal = (props) => {
282
281
  !noCloseButton && /* @__PURE__ */ jsx(
283
282
  Button,
284
283
  {
285
- className: "es-uic-ml-auto",
284
+ className: "es:ml-auto",
286
285
  onPress: close,
287
286
  type: "ghost",
288
287
  size: "small",
@@ -302,5 +301,5 @@ const Modal = (props) => {
302
301
  ] });
303
302
  };
304
303
  export {
305
- Modal
304
+ Modal2 as Modal
306
305
  };