@eightshift/ui-components 1.9.1 → 2.0.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 (124) hide show
  1. package/README.md +0 -7
  2. package/dist/{Button-BEIi9mB_.js → Button-OQ5EIPvt.js} +8 -8
  3. package/dist/{SelectionManager-DGbP8Ntl.js → Collection-CJM_asJz.js} +345 -197
  4. package/dist/{Color-CZxTZUqH.js → Color-B0HgM8f4.js} +1 -1
  5. package/dist/{ColorSwatch-Iijp9hzP.js → ColorSwatch-Dv3Wxdl_.js} +6 -7
  6. package/dist/{ComboBox-DVPU5XzU.js → ComboBox-BnlZjJ3T.js} +21 -22
  7. package/dist/{Dialog-17uxPRe5.js → Dialog-CIh-hX93.js} +77 -65
  8. package/dist/{FieldError-huHsqqMP.js → FieldError-D7A6s7O5.js} +2 -2
  9. package/dist/{FocusScope-7r2_SUa9.js → FocusScope-Cs5_OoeA.js} +6 -4
  10. package/dist/{Group-k_oyd3Te.js → Group-D6tr3U_n.js} +5 -6
  11. package/dist/{Heading-DRBzKYHb.js → Heading-DiYTXoIW.js} +3 -4
  12. package/dist/{Hidden-5cXbU70C.js → Hidden-DnOd_jPX.js} +2 -2
  13. package/dist/{Input-DCmTv_Qw.js → Input-Se0m3ubj.js} +13 -11
  14. package/dist/{Label-D8G0GMsc.js → Label-Ca9uelsn.js} +4 -5
  15. package/dist/{List-C7L49CxW.js → List-Br274SP1.js} +16 -8
  16. package/dist/{ListBox-BxZwDp9o.js → ListBox-D9dFEh5A.js} +36 -23
  17. package/dist/{OverlayArrow-Dca2JXYU.js → OverlayArrow-1jx-ZyCR.js} +75 -13
  18. package/dist/{Select-aab027f3.esm-OvJ8lZs8.js → Select-aab027f3.esm-HFNIFFya.js} +4 -4
  19. package/dist/{Separator-B_VdRHCf.js → Separator-BhZycTUp.js} +9 -7
  20. package/dist/{Slider-CgEZmlNY.js → Slider-BZNaJylD.js} +20 -24
  21. package/dist/{Text-Cld9rkzJ.js → Text-aOUPPvTO.js} +3 -4
  22. package/dist/{VisuallyHidden-D0lsNfi4.js → VisuallyHidden-ClTQo25k.js} +2 -2
  23. package/dist/assets/index.css +37 -0
  24. package/dist/assets/style-admin.css +5287 -0
  25. package/dist/assets/style-editor.css +5287 -0
  26. package/dist/assets/style.css +5293 -1
  27. package/dist/assets/wp-font-enhancements.css +8 -1
  28. package/dist/assets/wp-ui-enhancements.css +299 -1
  29. package/dist/components/animated-visibility/animated-visibility.js +17 -21
  30. package/dist/components/base-control/base-control.js +7 -7
  31. package/dist/components/breakpoint-preview/breakpoint-preview.js +50 -50
  32. package/dist/components/button/button.js +190 -86
  33. package/dist/components/checkbox/checkbox.js +44 -27
  34. package/dist/components/color-pickers/color-picker.js +13 -9
  35. package/dist/components/color-pickers/color-swatch.js +4 -4
  36. package/dist/components/color-pickers/gradient-editor.js +25 -24
  37. package/dist/components/color-pickers/solid-color-picker.js +197 -229
  38. package/dist/components/component-toggle/component-toggle.js +3 -3
  39. package/dist/components/container-panel/container-panel.js +17 -17
  40. package/dist/components/draggable/draggable-handle.js +6 -6
  41. package/dist/components/draggable/draggable.js +1414 -699
  42. package/dist/components/draggable-list/draggable-list-item.js +3 -3
  43. package/dist/components/draggable-list/draggable-list.js +12 -12
  44. package/dist/components/expandable/expandable.js +66 -78
  45. package/dist/components/index.js +2 -3
  46. package/dist/components/input-field/input-field.js +35 -22
  47. package/dist/components/layout/hstack.js +1 -1
  48. package/dist/components/layout/vstack.js +1 -1
  49. package/dist/components/link-input/link-input.js +69 -57
  50. package/dist/components/matrix-align/matrix-align.js +34 -86
  51. package/dist/components/menu/menu.js +22 -23
  52. package/dist/components/modal/modal.js +24 -25
  53. package/dist/components/notice/notice.js +32 -32
  54. package/dist/components/number-picker/number-picker.js +41 -40
  55. package/dist/components/option-select/option-select.js +9 -4
  56. package/dist/components/options-panel/options-panel.js +63 -28
  57. package/dist/components/placeholders/file-placeholder.js +6 -17
  58. package/dist/components/placeholders/image-placeholder.js +17 -17
  59. package/dist/components/placeholders/media-placeholder.js +12 -12
  60. package/dist/components/popover/popover.js +6 -5
  61. package/dist/components/radio/radio.js +60 -43
  62. package/dist/components/repeater/repeater-item.js +10 -10
  63. package/dist/components/repeater/repeater.js +8 -8
  64. package/dist/components/responsive/mini-responsive.js +41 -41
  65. package/dist/components/responsive/responsive-legacy.js +33 -33
  66. package/dist/components/responsive/responsive.js +48 -48
  67. package/dist/components/responsive-preview/responsive-preview.js +4 -4
  68. package/dist/components/rich-label/rich-label.js +13 -11
  69. package/dist/components/select/async-multi-select.js +3 -3
  70. package/dist/components/select/async-single-select.js +2 -2
  71. package/dist/components/select/custom-select-default-components.js +3 -3
  72. package/dist/components/select/multi-select-components.js +1 -1
  73. package/dist/components/select/multi-select.js +3 -3
  74. package/dist/components/select/react-select-component-wrappers.js +1 -1
  75. package/dist/components/select/single-select.js +2 -2
  76. package/dist/components/select/styles.js +21 -21
  77. package/dist/components/select/v2/async-select.js +37 -47
  78. package/dist/components/select/v2/shared.js +8 -8
  79. package/dist/components/select/v2/single-select.js +44 -48
  80. package/dist/components/slider/column-config-slider.js +25 -25
  81. package/dist/components/slider/slider.js +173 -182
  82. package/dist/components/spacer/spacer.js +21 -21
  83. package/dist/components/tabs/tabs.js +111 -63
  84. package/dist/components/toggle/switch.js +27 -21
  85. package/dist/components/toggle/toggle.js +1 -1
  86. package/dist/components/toggle-button/toggle-button.js +160 -83
  87. package/dist/components/tooltip/tooltip.js +25 -28
  88. package/dist/{context-DtrQ3I5U.js → context-CDOs-GuR.js} +1 -1
  89. package/dist/{focusSafely-ChK5oW-0.js → focusSafely-CiqTTjWy.js} +18 -17
  90. package/dist/icons/icons.js +52 -0
  91. package/dist/{index-641ee5b8.esm-DRaWil7u.js → index-641ee5b8.esm-DbdaYaxR.js} +45 -45
  92. package/dist/{index-D0mHceYg.js → index-BRp93Yfa.js} +24 -31
  93. package/dist/index-CcCn9HWX.js +44 -0
  94. package/dist/index.js +2 -3
  95. package/dist/{multi-select-components-2Ax71j9a.js → multi-select-components-CkF3LyTF.js} +4 -4
  96. package/dist/{react-select-async.esm-BZwl7Ddb.js → react-select-async.esm-DcVLw9X5.js} +3 -3
  97. package/dist/{react-select.esm-DI0eSkd8.js → react-select.esm-OZ0cmTjg.js} +3 -3
  98. package/dist/style-admin.js +1 -0
  99. package/dist/style-editor.js +1 -0
  100. package/dist/style.js +1 -1
  101. package/dist/{textSelection-CdZPiDxh.js → textSelection-BlTDSskG.js} +2 -2
  102. package/dist/{useButton-C5e_EJlC.js → useButton-CmLbE5vg.js} +3 -3
  103. package/dist/{useEvent-BW_vevRp.js → useEvent-cLDJlznQ.js} +1 -1
  104. package/dist/{useFocusRing-Dbj6MsFR.js → useFocusRing-CGp3guTX.js} +1 -1
  105. package/dist/{useFocusable-C2xrPFl6.js → useFocusable-087cO5Ct.js} +9 -6
  106. package/dist/{useFormReset-DDCE2RPv.js → useFormReset-NpLM2e3G.js} +1 -1
  107. package/dist/{useFormValidation-BxnASugK.js → useFormValidation-BWwmZQE2.js} +3 -3
  108. package/dist/{useLabel-C3sAYsiC.js → useLabel-C85N3Hzw.js} +2 -2
  109. package/dist/{useLabels-WnPbJUyQ.js → useLabels-C_2wWraB.js} +1 -1
  110. package/dist/{useListState-BmTFGt2_.js → useListState-Z7FB_NzO.js} +1 -1
  111. package/dist/{useLocalizedStringFormatter-BurzRhbk.js → useLocalizedStringFormatter-BQ4TF72x.js} +1 -1
  112. package/dist/{useNumberField-D_Azw6A1.js → useNumberField-Bm6_BVl9.js} +10 -10
  113. package/dist/{useNumberFormatter-B58dTQ-c.js → useNumberFormatter-DlUVKkO7.js} +1 -1
  114. package/dist/{usePress-DZ9pn6Jl.js → usePress-rg_OQIGW.js} +15 -14
  115. package/dist/{useSingleSelectListState-Dr843geC.js → useSingleSelectListState-Cu3xtEJS.js} +2 -2
  116. package/dist/{useToggle-Dq9VpeCd.js → useToggle-DzlgBLAJ.js} +4 -4
  117. package/dist/{useToggleState-DA_b3LG_.js → useToggleState-DhSBQxkp.js} +1 -1
  118. package/dist/{utils-BmaSD6gC.js → utils-39D0mStj.js} +41 -93
  119. package/package.json +41 -38
  120. package/dist/GeistMonoVF.woff2 +0 -0
  121. package/dist/GeistVF.woff2 +0 -0
  122. package/dist/assets/fonts.css +0 -1
  123. package/dist/components/list-box/list-box.js +0 -157
  124. package/dist/fonts.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-BmaSD6gC.js";
3
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5, a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-D8G0GMsc.js";
4
- import { $ as $6f909507e6374d18$export$472062a354075cee, c as $6f909507e6374d18$export$a590f758a961cb5b, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, d as $6f909507e6374d18$export$1e7083018727fa60 } from "../../Slider-CgEZmlNY.js";
2
+ import { $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-39D0mStj.js";
3
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5, a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-Ca9uelsn.js";
4
+ import { $ as $6f909507e6374d18$export$472062a354075cee, c as $6f909507e6374d18$export$a590f758a961cb5b, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, d as $6f909507e6374d18$export$1e7083018727fa60 } from "../../Slider-BZNaJylD.js";
5
5
  import { BaseControl } from "../base-control/base-control.js";
6
6
  import { c as clsx } from "../../lite-DVmmD_-j.js";
7
7
  import { NumberPicker } from "../number-picker/number-picker.js";
@@ -101,7 +101,7 @@ const Slider = (props) => {
101
101
  step,
102
102
  isDisabled: disabled,
103
103
  orientation: vertical ? "vertical" : "horizontal",
104
- className: clsx("es-uic-w-full", (markerEntries == null ? void 0 : markerEntries.some(([_, value2]) => (value2 == null ? void 0 : value2.length) > 0)) && "es-uic-pb-3.5"),
104
+ className: clsx("es:w-full", (markerEntries == null ? void 0 : markerEntries.some(([_, value2]) => (value2 == null ? void 0 : value2.length) > 0)) && "es:pb-3.5"),
105
105
  onChangeEnd,
106
106
  ...other,
107
107
  children: /* @__PURE__ */ jsx(
@@ -113,7 +113,7 @@ const Slider = (props) => {
113
113
  help,
114
114
  actions: /* @__PURE__ */ jsxs(Fragment, { children: [
115
115
  actions,
116
- !inputField && /* @__PURE__ */ jsx($6f909507e6374d18$export$a590f758a961cb5b, { className: clsx("es-uic-text-xs es-uic-tabular-nums es-uic-text-gray-600"), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" – ") }),
116
+ !inputField && /* @__PURE__ */ jsx($6f909507e6374d18$export$a590f758a961cb5b, { className: clsx("es:text-xs es:tabular-nums es:text-secondary-600"), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" – ") }),
117
117
  inputField && /* @__PURE__ */ jsx(
118
118
  NumberInputField,
119
119
  {
@@ -128,190 +128,181 @@ const Slider = (props) => {
128
128
  ] }),
129
129
  labelAs: $01b77f81d0f07f68$export$b04be29aa201d4f5,
130
130
  className: labelClassName,
131
- children: /* @__PURE__ */ jsxs("div", { className: clsx("es-uic-flex es-uic-items-center es-uic-gap-2.5 !es-uic-space-y-0", vertical && "es-uic-flex-col"), children: [
132
- before && /* @__PURE__ */ jsx("div", { className: "es-uic-flex es-uic-shrink-0 es-uic-items-center es-uic-gap-1", children: before }),
133
- /* @__PURE__ */ jsx(
134
- $6f909507e6374d18$export$105594979f116971,
135
- {
136
- className: clsx(
137
- "es-uic-isolate es-uic-grid es-uic-grid-cols-1 es-uic-grid-rows-1",
138
- vertical ? "es-uic-mx-auto es-uic-h-40 es-uic-w-4" : "es-uic-h-4 es-uic-w-full es-uic-grow"
131
+ children: /* @__PURE__ */ jsxs("div", { className: clsx("es:flex es:items-center es:gap-2.5 es:space-y-0!", vertical && "es:flex-col"), children: [
132
+ before && /* @__PURE__ */ jsx("div", { className: "es:flex es:shrink-0 es:items-center es:gap-1", children: before }),
133
+ /* @__PURE__ */ jsx($6f909507e6374d18$export$105594979f116971, { className: clsx("es:isolate es:grid es:grid-cols-1 es:grid-rows-1", vertical ? "es:mx-auto es:h-40 es:w-4" : "es:h-4 es:w-full es:grow"), children: ({ state }) => {
134
+ let activeBarLeft;
135
+ let activeBarBottom;
136
+ let activeBarWidth;
137
+ let activeBarHeight;
138
+ let activeBarOffset = false;
139
+ let shouldRoundStart = false;
140
+ let shouldRoundEnd = false;
141
+ const currValue = state.getThumbValue(0);
142
+ if (vertical && !noActiveHighlight) {
143
+ if (Array.isArray(value)) {
144
+ activeBarBottom = state.getThumbPercent(0) * 100;
145
+ activeBarHeight = state.getThumbPercent(value.length - 1) * 100 - activeBarBottom;
146
+ } else if (startPoint && currValue >= startPoint) {
147
+ activeBarBottom = state.getValuePercent(startPoint) * 100;
148
+ activeBarHeight = state.getThumbPercent(0) * 100 - activeBarBottom;
149
+ activeBarOffset = true;
150
+ } else if (startPoint && currValue < startPoint) {
151
+ activeBarBottom = state.getThumbPercent(0) * 100;
152
+ activeBarHeight = state.getValuePercent(startPoint) * 100 - activeBarBottom;
153
+ } else if (min < 0 && currValue >= 0) {
154
+ activeBarBottom = state.getValuePercent(0) * 100;
155
+ activeBarHeight = state.getThumbPercent(0) * 100 - activeBarBottom;
156
+ } else if (min < 0 && currValue < 0) {
157
+ activeBarBottom = state.getThumbPercent(0) * 100;
158
+ activeBarHeight = state.getValuePercent(0) * 100 - activeBarBottom;
159
+ } else {
160
+ activeBarBottom = state.getValuePercent(min) * 100;
161
+ activeBarHeight = state.getThumbPercent(0) * 100;
162
+ shouldRoundEnd = true;
163
+ }
164
+ } else if (!noActiveHighlight) {
165
+ if (Array.isArray(value)) {
166
+ activeBarLeft = state.getThumbPercent(0) * 100;
167
+ activeBarWidth = state.getThumbPercent(value.length - 1) * 100 - activeBarLeft;
168
+ } else if (startPoint && currValue >= startPoint) {
169
+ activeBarLeft = state.getValuePercent(startPoint) * 100;
170
+ activeBarWidth = state.getThumbPercent(0) * 100 - activeBarLeft;
171
+ } else if (startPoint && currValue < startPoint) {
172
+ activeBarLeft = state.getThumbPercent(0) * 100;
173
+ activeBarWidth = state.getValuePercent(startPoint) * 100 - activeBarLeft;
174
+ } else if (min < 0 && currValue >= 0) {
175
+ activeBarLeft = state.getValuePercent(0) * 100;
176
+ activeBarWidth = state.getThumbPercent(0) * 100 - activeBarLeft;
177
+ activeBarOffset = true;
178
+ } else if (min < 0 && currValue < 0) {
179
+ activeBarLeft = state.getThumbPercent(0) * 100;
180
+ activeBarWidth = state.getValuePercent(0) * 100 - activeBarLeft;
181
+ } else {
182
+ activeBarLeft = state.getValuePercent(min) * 100;
183
+ activeBarWidth = state.getThumbPercent(0) * 100;
184
+ shouldRoundStart = true;
185
+ }
186
+ }
187
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
188
+ /* @__PURE__ */ jsx(
189
+ "div",
190
+ {
191
+ className: clsx(
192
+ "es:relative es:col-start-1 es:row-start-1 es:rounded-full es:border",
193
+ !vertical && "es:h-1.5 es:w-full es:self-center",
194
+ vertical && "es:h-full es:w-1.5 es:flex-col es:justify-self-center",
195
+ disabled ? "es:border-secondary-200 es:bg-white" : "es:border-secondary-300 es:bg-secondary-50 es:shadow-xs"
196
+ ),
197
+ style: trackStyle
198
+ }
139
199
  ),
140
- children: ({ state }) => {
141
- let activeBarLeft;
142
- let activeBarBottom;
143
- let activeBarWidth;
144
- let activeBarHeight;
145
- let activeBarOffset = false;
146
- let shouldRoundStart = false;
147
- let shouldRoundEnd = false;
148
- const currValue = state.getThumbValue(0);
149
- if (vertical && !noActiveHighlight) {
150
- if (Array.isArray(value)) {
151
- activeBarBottom = state.getThumbPercent(0) * 100;
152
- activeBarHeight = state.getThumbPercent(value.length - 1) * 100 - activeBarBottom;
153
- } else if (startPoint && currValue >= startPoint) {
154
- activeBarBottom = state.getValuePercent(startPoint) * 100;
155
- activeBarHeight = state.getThumbPercent(0) * 100 - activeBarBottom;
156
- activeBarOffset = true;
157
- } else if (startPoint && currValue < startPoint) {
158
- activeBarBottom = state.getThumbPercent(0) * 100;
159
- activeBarHeight = state.getValuePercent(startPoint) * 100 - activeBarBottom;
160
- } else if (min < 0 && currValue >= 0) {
161
- activeBarBottom = state.getValuePercent(0) * 100;
162
- activeBarHeight = state.getThumbPercent(0) * 100 - activeBarBottom;
163
- } else if (min < 0 && currValue < 0) {
164
- activeBarBottom = state.getThumbPercent(0) * 100;
165
- activeBarHeight = state.getValuePercent(0) * 100 - activeBarBottom;
166
- } else {
167
- activeBarBottom = state.getValuePercent(min) * 100;
168
- activeBarHeight = state.getThumbPercent(0) * 100;
169
- shouldRoundEnd = true;
170
- }
171
- } else if (!noActiveHighlight) {
172
- if (Array.isArray(value)) {
173
- activeBarLeft = state.getThumbPercent(0) * 100;
174
- activeBarWidth = state.getThumbPercent(value.length - 1) * 100 - activeBarLeft;
175
- } else if (startPoint && currValue >= startPoint) {
176
- activeBarLeft = state.getValuePercent(startPoint) * 100;
177
- activeBarWidth = state.getThumbPercent(0) * 100 - activeBarLeft;
178
- } else if (startPoint && currValue < startPoint) {
179
- activeBarLeft = state.getThumbPercent(0) * 100;
180
- activeBarWidth = state.getValuePercent(startPoint) * 100 - activeBarLeft;
181
- } else if (min < 0 && currValue >= 0) {
182
- activeBarLeft = state.getValuePercent(0) * 100;
183
- activeBarWidth = state.getThumbPercent(0) * 100 - activeBarLeft;
184
- activeBarOffset = true;
185
- } else if (min < 0 && currValue < 0) {
186
- activeBarLeft = state.getThumbPercent(0) * 100;
187
- activeBarWidth = state.getValuePercent(0) * 100 - activeBarLeft;
188
- } else {
189
- activeBarLeft = state.getValuePercent(min) * 100;
190
- activeBarWidth = state.getThumbPercent(0) * 100;
191
- shouldRoundStart = true;
200
+ !noActiveHighlight && /* @__PURE__ */ jsx(
201
+ "div",
202
+ {
203
+ className: clsx(
204
+ "es:absolute es:col-start-1 es:row-start-1 es:border",
205
+ !vertical && "es:h-1.5 es:w-full es:self-center",
206
+ vertical && "es:h-full es:w-1.5 es:flex-col es:justify-self-center",
207
+ !vertical && shouldRoundStart && "es:rounded-l-full",
208
+ !vertical && shouldRoundEnd && "es:rounded-r-full",
209
+ vertical && shouldRoundStart && "es:rounded-t-full",
210
+ vertical && shouldRoundEnd && "es:rounded-b-full",
211
+ !vertical && activeBarOffset && "es:-translate-x-px",
212
+ vertical && activeBarOffset && "es:translate-y-px",
213
+ disabled ? "es:border-secondary-200 es:bg-secondary-50" : "es:border-accent-500 es:bg-accent-500/30"
214
+ ),
215
+ style: {
216
+ bottom: vertical ? `${activeBarBottom}%` : null,
217
+ height: vertical ? `${activeBarHeight}%` : null,
218
+ width: vertical ? null : `${activeBarWidth}%`,
219
+ left: vertical ? null : `${activeBarLeft}%`
192
220
  }
193
221
  }
194
- return /* @__PURE__ */ jsxs(Fragment, { children: [
195
- /* @__PURE__ */ jsx(
196
- "div",
197
- {
198
- className: clsx(
199
- "es-uic-relative es-uic-col-start-1 es-uic-row-start-1 es-uic-rounded-full es-uic-border",
200
- !vertical && "es-uic-h-1.5 es-uic-w-full es-uic-self-center",
201
- vertical && "es-uic-h-full es-uic-w-1.5 es-uic-flex-col es-uic-justify-self-center",
202
- disabled ? "es-uic-border-gray-200 es-uic-bg-white" : "es-uic-border-gray-300 es-uic-bg-gray-50 es-uic-shadow-sm"
203
- ),
204
- style: trackStyle
205
- }
222
+ ),
223
+ markers && /* @__PURE__ */ jsx(
224
+ "div",
225
+ {
226
+ className: clsx(
227
+ "es:relative es:col-start-1 es:row-start-1",
228
+ !vertical && "es:h-1 es:w-full es:self-center",
229
+ vertical && "es:h-full es:w-1 es:flex-col es:justify-self-center"
206
230
  ),
207
- !noActiveHighlight && /* @__PURE__ */ jsx(
208
- "div",
209
- {
210
- className: clsx(
211
- "es-uic-absolute es-uic-col-start-1 es-uic-row-start-1 es-uic-border",
212
- !vertical && "es-uic-h-1.5 es-uic-w-full es-uic-self-center",
213
- vertical && "es-uic-h-full es-uic-w-1.5 es-uic-flex-col es-uic-justify-self-center",
214
- !vertical && shouldRoundStart && "es-uic-rounded-l-full",
215
- !vertical && shouldRoundEnd && "es-uic-rounded-r-full",
216
- vertical && shouldRoundStart && "es-uic-rounded-t-full",
217
- vertical && shouldRoundEnd && "es-uic-rounded-b-full",
218
- !vertical && activeBarOffset && "-es-uic-translate-x-px",
219
- vertical && activeBarOffset && "es-uic-translate-y-px",
220
- disabled ? "es-uic-border-gray-200 es-uic-bg-gray-50" : "es-uic-border-teal-500 es-uic-bg-teal-500/30"
221
- ),
222
- style: {
223
- bottom: vertical ? `${activeBarBottom}%` : null,
224
- height: vertical ? `${activeBarHeight}%` : null,
225
- width: vertical ? null : `${activeBarWidth}%`,
226
- left: vertical ? null : `${activeBarLeft}%`
227
- }
231
+ children: markerData.map(([rawDotValue, labelData], index) => {
232
+ const dotValue = parseFloat(rawDotValue);
233
+ let isWithinActiveBar = false;
234
+ if (Array.isArray(value)) {
235
+ isWithinActiveBar = value[0] <= dotValue && dotValue <= value[value.length - 1];
236
+ } else if (startPoint && dotValue >= startPoint) {
237
+ isWithinActiveBar = dotValue >= startPoint && dotValue <= currValue && dotValue !== startPoint;
238
+ } else if (startPoint && dotValue < startPoint) {
239
+ isWithinActiveBar = dotValue <= startPoint && dotValue >= currValue && dotValue !== startPoint;
240
+ } else if (min < 0 && dotValue >= 0) {
241
+ isWithinActiveBar = dotValue >= 0 && dotValue <= currValue && dotValue !== 0;
242
+ } else if (min < 0 && dotValue < 0) {
243
+ isWithinActiveBar = dotValue <= 0 && dotValue >= currValue && dotValue !== 0;
244
+ } else {
245
+ isWithinActiveBar = dotValue <= currValue && dotValue > min && dotValue < max;
228
246
  }
229
- ),
230
- markers && /* @__PURE__ */ jsx(
231
- "div",
232
- {
233
- className: clsx(
234
- "es-uic-relative es-uic-col-start-1 es-uic-row-start-1",
235
- !vertical && "es-uic-h-1 es-uic-w-full es-uic-self-center",
236
- vertical && "es-uic-h-full es-uic-w-1 es-uic-flex-col es-uic-justify-self-center"
237
- ),
238
- children: markerData.map(([rawDotValue, labelData], index) => {
239
- const dotValue = parseFloat(rawDotValue);
240
- let isWithinActiveBar = false;
241
- if (Array.isArray(value)) {
242
- isWithinActiveBar = value[0] <= dotValue && dotValue <= value[value.length - 1];
243
- } else if (startPoint && dotValue >= startPoint) {
244
- isWithinActiveBar = dotValue >= startPoint && dotValue <= currValue && dotValue !== startPoint;
245
- } else if (startPoint && dotValue < startPoint) {
246
- isWithinActiveBar = dotValue <= startPoint && dotValue >= currValue && dotValue !== startPoint;
247
- } else if (min < 0 && dotValue >= 0) {
248
- isWithinActiveBar = dotValue >= 0 && dotValue <= currValue && dotValue !== 0;
249
- } else if (min < 0 && dotValue < 0) {
250
- isWithinActiveBar = dotValue <= 0 && dotValue >= currValue && dotValue !== 0;
251
- } else {
252
- isWithinActiveBar = dotValue <= currValue && dotValue > min && dotValue < max;
253
- }
254
- return /* @__PURE__ */ jsx(
255
- "div",
247
+ return /* @__PURE__ */ jsx(
248
+ "div",
249
+ {
250
+ className: clsx(
251
+ "es:absolute",
252
+ vertical ? "es:h-px es:w-1" : "es:h-1 es:w-px es:translate-x-1/2",
253
+ !(dotValue === min || dotValue === max || dotValue === startPoint && !noActiveHighlight || min < 0 && dotValue === 0 && !noActiveHighlight || isWithinActiveBar) && "es:bg-secondary-300",
254
+ !noActiveHighlight && isWithinActiveBar && "es:bg-accent-500/75"
255
+ ),
256
+ style: {
257
+ left: vertical ? null : `${state.getValuePercent(dotValue) * 100}%`,
258
+ top: vertical ? `calc(${state.getValuePercent(dotValue) * 100}%)` : null
259
+ },
260
+ children: /* @__PURE__ */ jsx(
261
+ "span",
256
262
  {
257
263
  className: clsx(
258
- "es-uic-absolute",
259
- vertical ? "es-uic-h-px es-uic-w-1" : "es-uic-h-1 es-uic-w-px es-uic-translate-x-1/2",
260
- !(dotValue === min || dotValue === max || dotValue === startPoint && !noActiveHighlight || min < 0 && dotValue === 0 && !noActiveHighlight || isWithinActiveBar) && "es-uic-bg-gray-300",
261
- !noActiveHighlight && isWithinActiveBar && "es-uic-bg-teal-500/75"
264
+ "es:absolute es:select-none es:text-xs es:transition-colors",
265
+ vertical ? "es:left-3.5 es:top-0 es:-translate-y-1/2" : "es:left-0 es:top-2.5 es:-translate-x-1/2",
266
+ (Array.isArray(value) ? value.includes(Number(dotValue)) : value === Number(dotValue) && !disabled) ? "es:text-accent-700" : "es:text-secondary-300"
262
267
  ),
263
- style: {
264
- left: vertical ? null : `${state.getValuePercent(dotValue) * 100}%`,
265
- top: vertical ? `calc(${state.getValuePercent(dotValue) * 100}%)` : null
266
- },
267
- children: /* @__PURE__ */ jsx(
268
- "span",
269
- {
270
- className: clsx(
271
- "es-uic-absolute es-uic-select-none es-uic-text-xs es-uic-transition-colors",
272
- vertical ? "es-uic-left-3.5 es-uic-top-0 -es-uic-translate-y-1/2" : "es-uic-left-0 es-uic-top-2.5 -es-uic-translate-x-1/2",
273
- (Array.isArray(value) ? value.includes(Number(dotValue)) : value === Number(dotValue) && !disabled) ? "es-uic-text-teal-700" : "es-uic-text-gray-300"
274
- ),
275
- children: markers && markers !== "dots" && labelData
276
- }
277
- )
278
- },
279
- index
280
- );
281
- })
282
- }
283
- ),
284
- /* @__PURE__ */ jsx("div", { className: "es-uic-relative es-uic-col-start-1 es-uic-row-start-1 es-uic-p-px", children: state.values.map((_, i) => /* @__PURE__ */ jsxs(
285
- $6f909507e6374d18$export$2c1b491743890dec,
286
- {
287
- index: i,
288
- "aria-label": thumbLabels == null ? void 0 : thumbLabels[i],
289
- className: clsx(
290
- "es-uic-absolute es-uic-size-3.5 es-uic-rounded-full es-uic-border es-uic-transition es-uic-duration-300",
291
- vertical ? "!-es-uic-translate-y-1/2 !es-uic-translate-x-0" : "!-es-uic-translate-x-1/2 !es-uic-translate-y-0",
292
- "es-uic-shadow dragging:es-uic-bg-teal-600 disabled:es-uic-border-gray-200 disabled:es-uic-bg-gray-100 disabled:es-uic-shadow-none",
293
- "focus-visible:es-uic-ring focus-visible:es-uic-ring-teal-500 focus-visible:es-uic-ring-opacity-50",
294
- "es-uic-border-teal-600 es-uic-bg-teal-500 es-uic-shadow-teal-600/50",
295
- "hover:es-uic-cursor-grab dragging:es-uic-cursor-grabbing"
296
- ),
297
- onFocus: () => {
298
- if (state.values.length < 2) {
299
- return;
300
- }
301
- setCurrentThumbIndex(i);
268
+ children: markers && markers !== "dots" && labelData
269
+ }
270
+ )
302
271
  },
303
- children: [
304
- inputField && state.values.length > 1 && currentThumbIndex === i && /* @__PURE__ */ jsx("div", { className: "es-uic-m-0.5 es-uic-size-2 es-uic-rounded-full es-uic-bg-teal-100" }),
305
- thumbContent && thumbContent(i)
306
- ]
307
- },
308
- i
309
- )) })
310
- ] });
311
- }
312
- }
313
- ),
314
- after && /* @__PURE__ */ jsx("div", { className: "es-uic-flex es-uic-shrink-0 es-uic-items-center es-uic-gap-1", children: after })
272
+ index
273
+ );
274
+ })
275
+ }
276
+ ),
277
+ /* @__PURE__ */ jsx("div", { className: "es:relative es:col-start-1 es:row-start-1 es:p-px", children: state.values.map((_, i) => /* @__PURE__ */ jsxs(
278
+ $6f909507e6374d18$export$2c1b491743890dec,
279
+ {
280
+ index: i,
281
+ "aria-label": thumbLabels == null ? void 0 : thumbLabels[i],
282
+ className: clsx(
283
+ "es:absolute es:size-3.5 es:rounded-full es:border es:transition es:duration-300",
284
+ vertical ? "es:translate-x-1/2!" : "es:translate-y-1/2!",
285
+ "es:shadow dragging:es:bg-accent-600 es:disabled:border-secondary-200 es:disabled:bg-secondary-100 es:disabled:shadow-none",
286
+ "es:focus-visible:ring es:focus-visible:ring-accent-500/50",
287
+ "es:border-accent-600 es:bg-accent-500 es:shadow-accent-600/50",
288
+ "es:hover:cursor-grab dragging:es:cursor-grabbing"
289
+ ),
290
+ onFocus: () => {
291
+ if (state.values.length < 2) {
292
+ return;
293
+ }
294
+ setCurrentThumbIndex(i);
295
+ },
296
+ children: [
297
+ inputField && state.values.length > 1 && currentThumbIndex === i && /* @__PURE__ */ jsx("div", { className: "es:m-0.5 es:size-2 es:rounded-full es:bg-accent-100" }),
298
+ thumbContent && thumbContent(i)
299
+ ]
300
+ },
301
+ i
302
+ )) })
303
+ ] });
304
+ } }),
305
+ after && /* @__PURE__ */ jsx("div", { className: "es:flex es:shrink-0 es:items-center es:gap-1", children: after })
315
306
  ] })
316
307
  }
317
308
  )
@@ -340,11 +331,11 @@ const NumberInputField = (props) => {
340
331
  }
341
332
  props.setFocusedThumb(-1);
342
333
  },
343
- className: fieldIndex === -1 && !isSingleValue ? "es-uic-invisible" : "",
334
+ className: fieldIndex === -1 && !isSingleValue ? "es:invisible" : "",
344
335
  ...other
345
336
  }
346
337
  ),
347
- fieldIndex === -1 && !isSingleValue && /* @__PURE__ */ jsx($6f909507e6374d18$export$a590f758a961cb5b, { className: clsx("es-uic-text-xs es-uic-tabular-nums es-uic-text-gray-600"), children: ({ state: state2 }) => state2.values.map((_, i) => state2.getThumbValueLabel(i)).join(" – ") })
338
+ fieldIndex === -1 && !isSingleValue && /* @__PURE__ */ jsx($6f909507e6374d18$export$a590f758a961cb5b, { className: clsx("es:text-xs es:tabular-nums es:text-secondary-600"), children: ({ state: state2 }) => state2.values.map((_, i) => state2.getThumbValueLabel(i)).join(" – ") })
348
339
  ] });
349
340
  };
350
341
  export {
@@ -38,55 +38,55 @@ const Spacer = (props) => {
38
38
  }
39
39
  const sizes = {
40
40
  px: {
41
- sizeHorizontal: "es-uic-h-px",
42
- sizeHorizontalBorder: "es-uic-h-px",
43
- sizeVertical: "es-uic-w-px",
44
- sizeVerticalBorder: "es-uic-w-px"
41
+ sizeHorizontal: "es:h-px",
42
+ sizeHorizontalBorder: "es:h-px",
43
+ sizeVertical: "es:w-px",
44
+ sizeVerticalBorder: "es:w-px"
45
45
  },
46
46
  xs: {
47
- sizeHorizontal: "es-uic-h-1",
48
- sizeHorizontalBorder: "es-uic-h-0.5",
49
- sizeVertical: "es-uic-w-1",
50
- sizeVerticalBorder: "es-uic-w-0.5"
47
+ sizeHorizontal: "es:h-1",
48
+ sizeHorizontalBorder: "es:h-0.5",
49
+ sizeVertical: "es:w-1",
50
+ sizeVerticalBorder: "es:w-0.5"
51
51
  },
52
52
  s: {
53
- sizeHorizontal: "es-uic-h-2.5",
54
- sizeHorizontalBorder: "es-uic-h-1",
55
- sizeVertical: "es-uic-w-2.5",
56
- sizeVerticalBorder: "es-uic-w-1"
53
+ sizeHorizontal: "es:h-2.5",
54
+ sizeHorizontalBorder: "es:h-1",
55
+ sizeVertical: "es:w-2.5",
56
+ sizeVerticalBorder: "es:w-1"
57
57
  },
58
58
  m: {
59
- sizeHorizontal: "es-uic-h-5",
60
- sizeHorizontalBorder: "es-uic-h-2",
61
- sizeVertical: "es-uic-w-5",
62
- sizeVerticalBorder: "es-uic-w-2"
59
+ sizeHorizontal: "es:h-5",
60
+ sizeHorizontalBorder: "es:h-2",
61
+ sizeVertical: "es:w-5",
62
+ sizeVerticalBorder: "es:w-2"
63
63
  }
64
64
  };
65
65
  const spaceClass = clsx(
66
- vertical ? "es-uic-h-full" : "es-uic-w-full",
66
+ vertical ? "es:h-full" : "es:w-full",
67
67
  !vertical && !border && sizes[size].sizeHorizontal,
68
68
  !vertical && border && sizes[size].sizeHorizontalBorder,
69
69
  vertical && !border && sizes[size].sizeVertical,
70
70
  vertical && border && sizes[size].sizeVerticalBorder
71
71
  );
72
72
  if (text || icon) {
73
- return /* @__PURE__ */ jsxs("div", { className: clsx("es-uic-flex es-uic-items-center es-uic-gap-1.5", className), children: [
73
+ return /* @__PURE__ */ jsxs("div", { className: clsx("es:flex es:items-center es:gap-1.5", className), children: [
74
74
  /* @__PURE__ */ jsx(
75
75
  RichLabel,
76
76
  {
77
77
  icon,
78
78
  label: text,
79
79
  subtitle,
80
- className: "es-uic-shrink-0 es-uic-text-slate-500"
80
+ className: "es:shrink-0 es:text-secondary-500"
81
81
  }
82
82
  ),
83
- border && /* @__PURE__ */ jsx("div", { className: "es-uic-h-px es-uic-w-full es-uic-bg-slate-300 es-uic-leading-3" })
83
+ border && /* @__PURE__ */ jsx("div", { className: "es:h-px es:w-full es:bg-secondary-300 es:leading-3" })
84
84
  ] });
85
85
  }
86
86
  if (border) {
87
87
  return /* @__PURE__ */ jsxs("div", { className, children: [
88
88
  size !== "px" && /* @__PURE__ */ jsx("div", { className: spaceClass }),
89
- /* @__PURE__ */ jsx("div", { className: clsx("es-uic-bg-gray-300", vertical ? "es-uic-h-full es-uic-w-px" : "es-uic-h-px es-uic-w-full") }),
89
+ /* @__PURE__ */ jsx("div", { className: clsx("es:bg-secondary-300", vertical ? "es:h-full es:w-px" : "es:h-px es:w-full") }),
90
90
  size !== "px" && /* @__PURE__ */ jsx("div", { className: spaceClass })
91
91
  ] });
92
92
  }