@eightshift/ui-components 1.3.2 → 1.4.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 (110) hide show
  1. package/dist/{Button-DTARR6Ff.js → Button-uYE9D_E3.js} +6 -5
  2. package/dist/{ColorSwatch-5bZ_yIMB.js → ColorSwatch-Bev-9Vbr.js} +4 -4
  3. package/dist/{Dialog-DJgS0mAg.js → Dialog-CGE2ficT.js} +17 -15
  4. package/dist/{FieldError-CviphIN5.js → FieldError-CBPJ4Xx8.js} +2 -2
  5. package/dist/{FocusScope-BjM5iOQC.js → FocusScope-CVd6C65L.js} +24 -8
  6. package/dist/{GridList-DjRnMEae.js → GridList-PBJsm70G.js} +156 -116
  7. package/dist/{Group-BQu67pVS.js → Group-WZgNv9RE.js} +3 -3
  8. package/dist/Hidden-YSmyVF_5.js +45 -0
  9. package/dist/{Input-DWRQF0ro.js → Input-CaS4qmLb.js} +10 -9
  10. package/dist/{Label-BXvY41yE.js → Label-yZgqvhXc.js} +3 -2
  11. package/dist/ListBox-MZyPpwvj.js +567 -0
  12. package/dist/{Select-49a62830.esm-BnlXlUnT.js → Select-49a62830.esm-CqLHaIei.js} +1 -1
  13. package/dist/{SelectionManager-JxXmb3-k.js → SelectionManager-CvRaua4m.js} +1580 -1484
  14. package/dist/{Separator-CX64zwq8.js → Separator-C7Few7L6.js} +80 -62
  15. package/dist/{Slider-Clme2C36.js → Slider-D8a63VhT.js} +14 -12
  16. package/dist/{Text-qjognpzK.js → Text-D8qh3_U7.js} +1 -1
  17. package/dist/{VisuallyHidden-BZPezMV5.js → VisuallyHidden-DD480kAb.js} +2 -2
  18. package/dist/_commonjsHelpers-CUmg6egw.js +6 -0
  19. package/dist/{ariaHideOutside-BZ5z6iCD.js → ariaHideOutside-BzxkODNq.js} +1 -9
  20. package/dist/assets/style.css +1 -1
  21. package/dist/assets/wp-ui-enhancements.css +1 -1
  22. package/dist/components/animated-visibility/animated-visibility.js +311 -198
  23. package/dist/components/base-control/base-control.js +1 -1
  24. package/dist/components/button/button.js +274 -9
  25. package/dist/components/checkbox/checkbox.js +171 -1
  26. package/dist/components/color-pickers/color-picker.js +1 -1
  27. package/dist/components/color-pickers/color-swatch.js +3 -3
  28. package/dist/components/color-pickers/gradient-editor.js +3 -3
  29. package/dist/components/color-pickers/solid-color-picker.js +46 -32
  30. package/dist/components/component-toggle/component-toggle.js +2 -2
  31. package/dist/components/container-panel/container-panel.js +2 -2
  32. package/dist/components/draggable-list/draggable-list-item.js +3 -3
  33. package/dist/components/draggable-list/draggable-list.js +3671 -6
  34. package/dist/components/expandable/expandable.js +7 -4
  35. package/dist/components/index.js +4 -4
  36. package/dist/components/input-field/input-field.js +7 -7
  37. package/dist/components/link-input/link-input.js +1519 -489
  38. package/dist/components/list-box/list-box.js +2 -2
  39. package/dist/components/matrix-align/matrix-align.js +3 -3
  40. package/dist/components/menu/menu.js +164 -466
  41. package/dist/components/modal/modal.js +7 -7
  42. package/dist/components/number-picker/number-picker.js +22 -17
  43. package/dist/components/option-select/option-select.js +2 -2
  44. package/dist/components/placeholders/file-placeholder.js +1 -1
  45. package/dist/components/popover/popover.js +3 -3
  46. package/dist/components/radio/radio.js +13 -13
  47. package/dist/components/repeater/repeater-context.js +5 -0
  48. package/dist/components/repeater/repeater-item.js +46 -91
  49. package/dist/components/repeater/repeater.js +5130 -175
  50. package/dist/components/responsive/responsive-legacy.js +3 -3
  51. package/dist/components/responsive/responsive.js +3 -3
  52. package/dist/components/responsive-preview/responsive-preview.js +1 -1
  53. package/dist/components/select/async-multi-select.js +3 -3
  54. package/dist/components/select/async-single-select.js +2 -2
  55. package/dist/components/select/custom-select-default-components.js +1 -1
  56. package/dist/components/select/multi-select-components.js +1 -1
  57. package/dist/components/select/multi-select.js +5 -5
  58. package/dist/components/select/react-select-component-wrappers.js +1 -1
  59. package/dist/components/select/single-select.js +2 -2
  60. package/dist/components/select/styles.js +1 -1
  61. package/dist/components/slider/column-config-slider.js +3 -3
  62. package/dist/components/slider/slider.js +3 -3
  63. package/dist/components/slider/utils.js +1 -1
  64. package/dist/components/tabs/tabs.js +46 -71
  65. package/dist/components/toggle/switch.js +6 -6
  66. package/dist/components/toggle/toggle.js +1 -1
  67. package/dist/components/toggle-button/toggle-button.js +7 -7
  68. package/dist/components/tooltip/tooltip.js +3 -3
  69. package/dist/{context-BG_1RnbC.js → context-Bon2Gyx5.js} +1 -1
  70. package/dist/{default-i18n-BqwLkgZv.js → default-i18n-BqWys-1G.js} +1 -1
  71. package/dist/{focusSafely-DGZ4R5fj.js → focusSafely-PMGZgZ9-.js} +33 -26
  72. package/dist/getScrollParent-B3XgpXBL.js +10 -0
  73. package/dist/icons/icons.js +205 -0
  74. package/dist/icons/jsx-svg.js +2 -2
  75. package/dist/{index-CAPcSs9K.js → index-BTCzc3zb.js} +1 -1
  76. package/dist/{index-a301f526.esm-ByOfDxiG.js → index-a301f526.esm-B9tWL9yi.js} +80 -603
  77. package/dist/index.js +4 -4
  78. package/dist/{intlStrings-CkuKCPkT.js → intlStrings-KQxgp5tS.js} +14 -9
  79. package/dist/{multi-select-components-7vKCF8dG.js → multi-select-components-DTvEidE3.js} +1 -1
  80. package/dist/react-jsx-parser.min-CAGfntg1.js +13425 -0
  81. package/dist/{react-select-async.esm-5zW9Dv9E.js → react-select-async.esm-8Rba_3KV.js} +3 -3
  82. package/dist/{react-select.esm-Bi6uzjbT.js → react-select.esm-DkSeQzOP.js} +3 -3
  83. package/dist/{textSelection-BLyBtNe2.js → textSelection-DS7-670U.js} +1 -1
  84. package/dist/{tooltip-DSk8I1SO.js → tooltip-C9mg1CP5.js} +54 -18
  85. package/dist/{useButton-EJ9c8fmq.js → useButton-BPY4yXUo.js} +3 -3
  86. package/dist/{useEvent-Cxq_BzP_.js → useEvent-DDLT851Z.js} +1 -1
  87. package/dist/{useFocusRing-Dg5Y_10S.js → useFocusRing-DsxEaA2J.js} +1 -1
  88. package/dist/{useFocusable-CQZyQp4q.js → useFocusable-BFKHuYS9.js} +2 -2
  89. package/dist/{useFormReset-DJMtIgSL.js → useFormReset-BCPbwfnH.js} +1 -1
  90. package/dist/{useFormValidationState-DDC_nImg.js → useFormValidationState-DC5jbhBW.js} +2 -2
  91. package/dist/{useHasTabbableChild-M3O3VIil.js → useHasTabbableChild-Byd7ylXD.js} +2 -2
  92. package/dist/{useLabel-6NqYraET.js → useLabel-DuJhImKc.js} +2 -2
  93. package/dist/{useLabels-D2RG7TdI.js → useLabels-JaBafrnV.js} +1 -1
  94. package/dist/{useListData-BpYQj7kK.js → useListData-B5Pk32vd.js} +6 -3
  95. package/dist/{useListState-IllYYnXV.js → useListState-Csx05BmT.js} +6 -3
  96. package/dist/{useLocalizedStringFormatter-Cwm_siat.js → useLocalizedStringFormatter-CVIIVTgz.js} +1 -1
  97. package/dist/useMenuTrigger-CMgzyMKW.js +246 -0
  98. package/dist/{useNumberFieldState-CVJOJnF1.js → useNumberFieldState-BVFqhboT.js} +12 -11
  99. package/dist/{useNumberFormatter-DVZRQXk3.js → useNumberFormatter-BEeBSV-N.js} +1 -1
  100. package/dist/{usePress-CiXj8dLE.js → usePress-CY8MpqYD.js} +58 -16
  101. package/dist/useSingleSelectListState-CzZUgAt0.js +37 -0
  102. package/dist/{useToggle-CV-IX6nL.js → useToggle-CJp2Fh_L.js} +4 -4
  103. package/dist/{useToggleState-DHIdITtQ.js → useToggleState-B4--Ski0.js} +1 -1
  104. package/dist/{utils-DC-UMp1n.js → utils-B4IdLYb8.js} +48 -85
  105. package/package.json +24 -21
  106. package/dist/Checkbox-CiJIVbAP.js +0 -174
  107. package/dist/ListBox-DTKMdjQC.js +0 -4216
  108. package/dist/_commonjsHelpers-DWwsNxpa.js +0 -8
  109. package/dist/button-IxfzzzbP.js +0 -277
  110. package/dist/react-jsx-parser.min-DhrYeqLL.js +0 -4563
@@ -1,8 +1,8 @@
1
- import { c as $ae20dd8cbca75726$export$d6daf82dcd84e87c, d as $c5a24bc478652b5f$export$1005530eda016c13, e as $7135fc7d473fd974$export$aeba0b1fb3dcd8b8 } from "./SelectionManager-JxXmb3-k.js";
1
+ import { i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, k as $c5a24bc478652b5f$export$1005530eda016c13, d as $e1995378a142960e$export$18af5c7a9e9b3664 } from "./SelectionManager-CvRaua4m.js";
2
2
  import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-Dh9D9IOd.js";
3
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BG_1RnbC.js";
4
- import React__default, { useMemo, forwardRef, createContext } from "react";
5
- import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-DC-UMp1n.js";
3
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-Bon2Gyx5.js";
4
+ import React__default, { useMemo, createContext } from "react";
5
+ import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-B4IdLYb8.js";
6
6
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
7
7
  let $325a3faab7a68acd$var$cache = /* @__PURE__ */ new Map();
8
8
  function $325a3faab7a68acd$export$a16aca283550c30d(options) {
@@ -13,6 +13,40 @@ function $325a3faab7a68acd$export$a16aca283550c30d(options) {
13
13
  $325a3faab7a68acd$var$cache.set(cacheKey, formatter);
14
14
  return formatter;
15
15
  }
16
+ class $657e4dc4a6e88df0$export$8f5ed9ff9f511381 {
17
+ getItemRect(key) {
18
+ let container = this.ref.current;
19
+ let item = key != null ? container.querySelector(`[data-key="${CSS.escape(key.toString())}"]`) : null;
20
+ if (!item) return null;
21
+ let containerRect = container.getBoundingClientRect();
22
+ let itemRect = item.getBoundingClientRect();
23
+ return {
24
+ x: itemRect.left - containerRect.left + container.scrollLeft,
25
+ y: itemRect.top - containerRect.top + container.scrollTop,
26
+ width: itemRect.width,
27
+ height: itemRect.height
28
+ };
29
+ }
30
+ getContentSize() {
31
+ let container = this.ref.current;
32
+ return {
33
+ width: container.scrollWidth,
34
+ height: container.scrollHeight
35
+ };
36
+ }
37
+ getVisibleRect() {
38
+ let container = this.ref.current;
39
+ return {
40
+ x: container.scrollLeft,
41
+ y: container.scrollTop,
42
+ width: container.offsetWidth,
43
+ height: container.offsetHeight
44
+ };
45
+ }
46
+ constructor(ref) {
47
+ this.ref = ref;
48
+ }
49
+ }
16
50
  class $2a25aae57d74318e$export$a05409b8bb224a5a {
17
51
  isDisabled(item) {
18
52
  var _item_props;
@@ -37,20 +71,20 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
37
71
  return null;
38
72
  }
39
73
  findKey(key, nextKey, shouldSkip) {
40
- let item = this.getItem(key);
41
- if (!item) return null;
42
- let prevRect = item.getBoundingClientRect();
74
+ let itemRect = this.layoutDelegate.getItemRect(key);
75
+ if (!itemRect) return null;
76
+ let prevRect = itemRect;
43
77
  do {
44
78
  key = nextKey(key);
45
- item = this.getItem(key);
46
- } while (item && shouldSkip(prevRect, item.getBoundingClientRect()));
79
+ itemRect = this.layoutDelegate.getItemRect(key);
80
+ } while (itemRect && shouldSkip(prevRect, itemRect));
47
81
  return key;
48
82
  }
49
83
  isSameRow(prevRect, itemRect) {
50
- return prevRect.top === itemRect.top || prevRect.left !== itemRect.left;
84
+ return prevRect.y === itemRect.y || prevRect.x !== itemRect.x;
51
85
  }
52
86
  isSameColumn(prevRect, itemRect) {
53
- return prevRect.left === itemRect.left || prevRect.top !== itemRect.top;
87
+ return prevRect.x === itemRect.x || prevRect.y !== itemRect.y;
54
88
  }
55
89
  getKeyBelow(key) {
56
90
  if (this.layout === "grid" && this.orientation === "vertical") return this.findKey(key, (key2) => this.getNextKey(key2), this.isSameRow);
@@ -95,57 +129,42 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
95
129
  }
96
130
  return null;
97
131
  }
98
- getItem(key) {
99
- return key !== null ? this.ref.current.querySelector(`[data-key="${CSS.escape(key.toString())}"]`) : null;
100
- }
101
132
  getKeyPageAbove(key) {
102
133
  let menu = this.ref.current;
103
- let item = this.getItem(key);
104
- if (!item) return null;
134
+ let itemRect = this.layoutDelegate.getItemRect(key);
135
+ if (!itemRect) return null;
105
136
  if (!$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getFirstKey();
106
- let containerRect = menu.getBoundingClientRect();
107
- let itemRect = item.getBoundingClientRect();
108
137
  if (this.orientation === "horizontal") {
109
- let containerX = containerRect.x - menu.scrollLeft;
110
- let pageX = Math.max(0, itemRect.x - containerX + itemRect.width - containerRect.width);
111
- while (item && itemRect.x - containerX > pageX) {
138
+ let pageX = Math.max(0, itemRect.x + itemRect.width - this.layoutDelegate.getVisibleRect().width);
139
+ while (itemRect && itemRect.x > pageX) {
112
140
  key = this.getKeyAbove(key);
113
- item = key == null ? null : this.getItem(key);
114
- itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
141
+ itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);
115
142
  }
116
143
  } else {
117
- let containerY = containerRect.y - menu.scrollTop;
118
- let pageY = Math.max(0, itemRect.y - containerY + itemRect.height - containerRect.height);
119
- while (item && itemRect.y - containerY > pageY) {
144
+ let pageY = Math.max(0, itemRect.y + itemRect.height - this.layoutDelegate.getVisibleRect().height);
145
+ while (itemRect && itemRect.y > pageY) {
120
146
  key = this.getKeyAbove(key);
121
- item = key == null ? null : this.getItem(key);
122
- itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
147
+ itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);
123
148
  }
124
149
  }
125
150
  return key !== null && key !== void 0 ? key : this.getFirstKey();
126
151
  }
127
152
  getKeyPageBelow(key) {
128
153
  let menu = this.ref.current;
129
- let item = this.getItem(key);
130
- if (!item) return null;
154
+ let itemRect = this.layoutDelegate.getItemRect(key);
155
+ if (!itemRect) return null;
131
156
  if (!$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getLastKey();
132
- let containerRect = menu.getBoundingClientRect();
133
- let itemRect = item.getBoundingClientRect();
134
157
  if (this.orientation === "horizontal") {
135
- let containerX = containerRect.x - menu.scrollLeft;
136
- let pageX = Math.min(menu.scrollWidth, itemRect.x - containerX - itemRect.width + containerRect.width);
137
- while (item && itemRect.x - containerX < pageX) {
158
+ let pageX = Math.min(this.layoutDelegate.getContentSize().width, itemRect.y - itemRect.width + this.layoutDelegate.getVisibleRect().width);
159
+ while (itemRect && itemRect.x < pageX) {
138
160
  key = this.getKeyBelow(key);
139
- item = key == null ? null : this.getItem(key);
140
- itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
161
+ itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);
141
162
  }
142
163
  } else {
143
- let containerY = containerRect.y - menu.scrollTop;
144
- let pageY = Math.min(menu.scrollHeight, itemRect.y - containerY - itemRect.height + containerRect.height);
145
- while (item && itemRect.y - containerY < pageY) {
164
+ let pageY = Math.min(this.layoutDelegate.getContentSize().height, itemRect.y - itemRect.height + this.layoutDelegate.getVisibleRect().height);
165
+ while (itemRect && itemRect.y < pageY) {
146
166
  key = this.getKeyBelow(key);
147
- item = key == null ? null : this.getItem(key);
148
- itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
167
+ itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);
149
168
  }
150
169
  }
151
170
  return key !== null && key !== void 0 ? key : this.getLastKey();
@@ -170,9 +189,10 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
170
189
  this.collator = opts.collator;
171
190
  this.disabledKeys = opts.disabledKeys || /* @__PURE__ */ new Set();
172
191
  this.disabledBehavior = opts.disabledBehavior || "all";
173
- this.orientation = opts.orientation;
192
+ this.orientation = opts.orientation || "vertical";
174
193
  this.direction = opts.direction;
175
194
  this.layout = opts.layout || "stack";
195
+ this.layoutDelegate = opts.layoutDelegate || new $657e4dc4a6e88df0$export$8f5ed9ff9f511381(opts.ref);
176
196
  } else {
177
197
  this.collection = args[0];
178
198
  this.disabledKeys = args[1];
@@ -181,6 +201,7 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
181
201
  this.layout = "stack";
182
202
  this.orientation = "vertical";
183
203
  this.disabledBehavior = "all";
204
+ this.layoutDelegate = new $657e4dc4a6e88df0$export$8f5ed9ff9f511381(this.ref);
184
205
  }
185
206
  if (this.layout === "stack" && this.orientation === "vertical") {
186
207
  this.getKeyLeftOf = void 0;
@@ -189,7 +210,7 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
189
210
  }
190
211
  }
191
212
  function $982254629710d113$export$b95089534ab7c1fd(props) {
192
- let { selectionManager, collection, disabledKeys, ref, keyboardDelegate } = props;
213
+ let { selectionManager, collection, disabledKeys, ref, keyboardDelegate, layoutDelegate } = props;
193
214
  let collator = $325a3faab7a68acd$export$a16aca283550c30d({
194
215
  usage: "search",
195
216
  sensitivity: "base"
@@ -200,9 +221,11 @@ function $982254629710d113$export$b95089534ab7c1fd(props) {
200
221
  disabledKeys,
201
222
  disabledBehavior,
202
223
  ref,
203
- collator
224
+ collator,
225
+ layoutDelegate
204
226
  }), [
205
227
  keyboardDelegate,
228
+ layoutDelegate,
206
229
  collection,
207
230
  disabledKeys,
208
231
  ref,
@@ -250,20 +273,17 @@ function $f4b273590fab9f93$export$52210f68a14655d0(props) {
250
273
  };
251
274
  }
252
275
  const $72a5793c14baf454$export$e0e4026c12a8bdbb = /* @__PURE__ */ createContext({});
253
- function $72a5793c14baf454$var$Header(originalProps, originalRef) {
254
- let [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(originalProps, originalRef, $72a5793c14baf454$export$e0e4026c12a8bdbb);
255
- let shallow = $7135fc7d473fd974$export$aeba0b1fb3dcd8b8("header", originalProps, originalRef);
256
- if (shallow) return shallow;
276
+ const $72a5793c14baf454$export$8b251419efc915eb = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664("header", function Header(props, ref) {
277
+ [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $72a5793c14baf454$export$e0e4026c12a8bdbb);
257
278
  return /* @__PURE__ */ React__default.createElement("header", {
258
279
  className: "react-aria-Header",
259
280
  ...props,
260
281
  ref
261
282
  }, props.children);
262
- }
263
- const $72a5793c14baf454$export$8b251419efc915eb = /* @__PURE__ */ forwardRef($72a5793c14baf454$var$Header);
283
+ });
264
284
  const $431f98aba6844401$export$6615d83f6de245ce = /* @__PURE__ */ createContext({});
265
- function $431f98aba6844401$var$Separator(originalProps, originalRef) {
266
- let [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(originalProps, originalRef, $431f98aba6844401$export$6615d83f6de245ce);
285
+ const $431f98aba6844401$export$1ff3c3f08ae963c0 = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664("separator", function Separator(props, ref) {
286
+ [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $431f98aba6844401$export$6615d83f6de245ce);
267
287
  let { elementType, orientation, style, className } = props;
268
288
  let Element = elementType || "hr";
269
289
  if (Element === "hr" && orientation === "vertical") Element = "div";
@@ -271,8 +291,6 @@ function $431f98aba6844401$var$Separator(originalProps, originalRef) {
271
291
  elementType,
272
292
  orientation
273
293
  });
274
- let shallow = $7135fc7d473fd974$export$aeba0b1fb3dcd8b8("separator", originalProps, originalRef);
275
- if (shallow) return shallow;
276
294
  return /* @__PURE__ */ React__default.createElement(Element, {
277
295
  ...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props),
278
296
  ...separatorProps,
@@ -281,14 +299,14 @@ function $431f98aba6844401$var$Separator(originalProps, originalRef) {
281
299
  ref,
282
300
  slot: props.slot || void 0
283
301
  });
284
- }
285
- const $431f98aba6844401$export$1ff3c3f08ae963c0 = /* @__PURE__ */ forwardRef($431f98aba6844401$var$Separator);
302
+ });
286
303
  export {
287
304
  $982254629710d113$export$b95089534ab7c1fd as $,
288
- $2a25aae57d74318e$export$a05409b8bb224a5a as a,
289
- $453cc9f0df89c0a5$export$77d5aafae4e095b2 as b,
290
- $431f98aba6844401$export$1ff3c3f08ae963c0 as c,
305
+ $453cc9f0df89c0a5$export$77d5aafae4e095b2 as a,
306
+ $325a3faab7a68acd$export$a16aca283550c30d as b,
307
+ $2a25aae57d74318e$export$a05409b8bb224a5a as c,
291
308
  $431f98aba6844401$export$6615d83f6de245ce as d,
292
- $72a5793c14baf454$export$8b251419efc915eb as e,
293
- $325a3faab7a68acd$export$a16aca283550c30d as f
309
+ $72a5793c14baf454$export$e0e4026c12a8bdbb as e,
310
+ $72a5793c14baf454$export$8b251419efc915eb as f,
311
+ $431f98aba6844401$export$1ff3c3f08ae963c0 as g
294
312
  };
@@ -1,17 +1,17 @@
1
- import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "./utils-DC-UMp1n.js";
2
- import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-BXvY41yE.js";
1
+ import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, c as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "./utils-B4IdLYb8.js";
2
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-yZgqvhXc.js";
3
3
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
4
4
  import React__default, { useRef, useMemo, useCallback, useEffect, useState, createContext, forwardRef, useContext } from "react";
5
- import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-DVZRQXk3.js";
6
- import { i as $507fabe10e71c6fb$export$8397ddfc504fdb9a, m as $7215afc6de606d6b$export$de79e2c695e052f3, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-DGZ4R5fj.js";
5
+ import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-BEeBSV-N.js";
6
+ import { i as $507fabe10e71c6fb$export$8397ddfc504fdb9a, m as $7215afc6de606d6b$export$de79e2c695e052f3, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-PMGZgZ9-.js";
7
7
  import { $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4, a as $9446cca9a3875146$export$cb6e0bb50bc19463 } from "./number-CHmNj-oR.js";
8
- import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $14c0b72509d70225$export$b0d6fa1ab32e3295, b as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-BLyBtNe2.js";
9
- import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-6NqYraET.js";
10
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BG_1RnbC.js";
11
- import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DJMtIgSL.js";
12
- import { a as $46d819fcbaf35654$export$8f71654801c2f7cd, $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-CQZyQp4q.js";
13
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Dg5Y_10S.js";
14
- import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-BZPezMV5.js";
8
+ import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $14c0b72509d70225$export$b0d6fa1ab32e3295, b as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-DS7-670U.js";
9
+ import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-DuJhImKc.js";
10
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-Bon2Gyx5.js";
11
+ import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BCPbwfnH.js";
12
+ import { a as $46d819fcbaf35654$export$8f71654801c2f7cd, $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-BFKHuYS9.js";
13
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-DsxEaA2J.js";
14
+ import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-DD480kAb.js";
15
15
  function $e8a7022cf87cba2a$export$36da96379f79f245(props) {
16
16
  let { onMoveStart, onMove, onMoveEnd } = props;
17
17
  let state = useRef({
@@ -782,10 +782,12 @@ function $6f909507e6374d18$var$SliderTrack(props, ref) {
782
782
  }
783
783
  const $6f909507e6374d18$export$105594979f116971 = /* @__PURE__ */ forwardRef($6f909507e6374d18$var$SliderTrack);
784
784
  function $6f909507e6374d18$var$SliderThumb(props, ref) {
785
+ let { inputRef: userInputRef = null } = props;
785
786
  let state = useContext($6f909507e6374d18$export$1e7083018727fa60);
786
787
  let { ref: trackRef } = $64fa3d84918910a7$export$fabf2dc03a41866e($6f909507e6374d18$export$f1fce0420cc6d8ee);
787
788
  let { index = 0 } = props;
788
- let inputRef = useRef(null);
789
+ let defaultInputRef = useRef(null);
790
+ let inputRef = userInputRef || defaultInputRef;
789
791
  let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
790
792
  let { thumbProps, inputProps, labelProps, isDragging, isFocused, isDisabled } = $47b897dc8cdb026b$export$8d15029008292ae({
791
793
  ...props,
@@ -1,4 +1,4 @@
1
- import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-DC-UMp1n.js";
1
+ import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-B4IdLYb8.js";
2
2
  import React__default, { forwardRef, createContext } from "react";
3
3
  const $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ createContext({});
4
4
  function $514c0188e459b4c0$var$Text(props, ref) {
@@ -1,6 +1,6 @@
1
- import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-DC-UMp1n.js";
1
+ import { c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B4IdLYb8.js";
2
2
  import React__default, { useState, useMemo } from "react";
3
- import { d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-DGZ4R5fj.js";
3
+ import { d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-PMGZgZ9-.js";
4
4
  const $5c3e21d68f1c4674$var$styles = {
5
5
  border: 0,
6
6
  clip: "rect(0 0 0 0)",
@@ -0,0 +1,6 @@
1
+ function getDefaultExportFromCjs(x) {
2
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
3
+ }
4
+ export {
5
+ getDefaultExportFromCjs as g
6
+ };
@@ -1,10 +1,3 @@
1
- import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-Dh9D9IOd.js";
2
- function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
3
- let scrollableNode = node;
4
- if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
5
- while (scrollableNode && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
6
- return scrollableNode || document.scrollingElement || document.documentElement;
7
- }
8
1
  let $5e3802645cc19319$var$refCountMap = /* @__PURE__ */ new WeakMap();
9
2
  let $5e3802645cc19319$var$observerStack = [];
10
3
  function $5e3802645cc19319$export$1c3ebcada18427bf(targets, root = document.body) {
@@ -92,6 +85,5 @@ function $5e3802645cc19319$export$1c3ebcada18427bf(targets, root = document.body
92
85
  };
93
86
  }
94
87
  export {
95
- $5e3802645cc19319$export$1c3ebcada18427bf as $,
96
- $62d8ded9296f3872$export$cfa2225e87938781 as a
88
+ $5e3802645cc19319$export$1c3ebcada18427bf as $
97
89
  };