@eightshift/ui-components 5.1.3 → 5.2.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 (116) hide show
  1. package/README.md +3 -6
  2. package/dist/{Button-DH22t_SM.js → Button-RTwMSBs-.js} +20 -26
  3. package/dist/{Collection-BRJOMbOa.js → Collection-D_KhdLDC.js} +40 -23
  4. package/dist/{Color-CNqKeT8D.js → Color-WxFE7lQB.js} +2 -2
  5. package/dist/{ColorSwatch-Dt3lRApA.js → ColorSwatch-xVS3rMYS.js} +9 -7
  6. package/dist/{Dialog-D6EdDPeu.js → Dialog-Xf6AsnV-.js} +86 -62
  7. package/dist/{FieldError-DHrSdE_Q.js → FieldError-B8BgFmIQ.js} +2 -2
  8. package/dist/{FocusScope-BEPI2m7u.js → FocusScope-BnwM-e8R.js} +24 -22
  9. package/dist/{Form-Bnyyv3Im.js → Form-BeMxJA29.js} +13 -3
  10. package/dist/{Input-DfSBLhDx.js → Group-C4cXobNT.js} +56 -11
  11. package/dist/{Heading-ba38ScjJ.js → Heading-bh1HU5HH.js} +1 -1
  12. package/dist/{Label-JS_ob-kh.js → Label-DWVaNd2E.js} +1 -1
  13. package/dist/{List-BLeHBkfx.js → List-CwJTORxj.js} +1 -1
  14. package/dist/{ListBox-BY3gwI8c.js → ListBox-BeC97FZ4.js} +62 -38
  15. package/dist/{OverlayArrow-BUfV-5P3.js → OverlayArrow-EZ0v_ljk.js} +6 -6
  16. package/dist/{Select-BebwUgKB.js → Select-DEQf8ZWI.js} +96 -58
  17. package/dist/{Select-aab027f3.esm-BKIJGje-.js → Select-ef7c0426.esm-D6WOCaYm.js} +11 -6
  18. package/dist/{Separator-CTQWg_HO.js → Separator-Fl7qSeN-.js} +37 -20
  19. package/dist/{Slider-uOPcIpqS.js → Slider-BQFSEhvk.js} +28 -21
  20. package/dist/{Text-BuJgePCv.js → Text-AxKZjtFm.js} +1 -1
  21. package/dist/{TextField-o2U-uBWv.js → TextField-x_eEa_qR.js} +20 -10
  22. package/dist/{VisuallyHidden-BYi0pekx.js → VisuallyHidden-D9s7FTtC.js} +2 -2
  23. package/dist/assets/style-admin.css +227 -3
  24. package/dist/assets/style-editor.css +227 -3
  25. package/dist/assets/style.css +227 -3
  26. package/dist/components/base-control/base-control.js +1 -1
  27. package/dist/components/button/button.js +11 -10
  28. package/dist/components/checkbox/checkbox.js +17 -12
  29. package/dist/components/color-pickers/color-picker.js +1 -1
  30. package/dist/components/color-pickers/color-swatch.js +3 -3
  31. package/dist/components/color-pickers/gradient-editor.js +3 -2
  32. package/dist/components/color-pickers/solid-color-picker.js +85 -49
  33. package/dist/components/component-toggle/component-toggle.js +2 -1
  34. package/dist/components/draggable/draggable-handle.js +1 -1
  35. package/dist/components/draggable/draggable.js +191 -170
  36. package/dist/components/draggable-list/draggable-list-item.js +1 -1
  37. package/dist/components/draggable-list/draggable-list.js +2 -2
  38. package/dist/components/expandable/expandable.js +18 -18
  39. package/dist/components/index.js +5 -1
  40. package/dist/components/input-field/input-field.js +3 -3
  41. package/dist/components/item-collection/item-collection.js +1 -1
  42. package/dist/components/link-input/link-input.js +45 -34
  43. package/dist/components/matrix-align/matrix-align.js +1 -1
  44. package/dist/components/menu/menu.js +3 -3
  45. package/dist/components/modal/modal.js +39 -13
  46. package/dist/components/notice/notice.js +1 -1
  47. package/dist/components/number-picker/number-picker.js +15 -13
  48. package/dist/components/option-select/option-select.js +1 -1
  49. package/dist/components/options-panel/options-panel.js +1 -1
  50. package/dist/components/placeholders/file-placeholder.js +1 -1
  51. package/dist/components/popover/popover.js +2 -2
  52. package/dist/components/radio/radio.js +45 -22
  53. package/dist/components/repeater/repeater-item.js +3 -3
  54. package/dist/components/repeater/repeater.js +7 -4
  55. package/dist/components/responsive/mini-responsive.js +3 -2
  56. package/dist/components/responsive/responsive-legacy.js +2 -1
  57. package/dist/components/responsive/responsive.js +2 -1
  58. package/dist/components/responsive-preview/responsive-preview.js +1 -1
  59. package/dist/components/select/async-multi-select.js +3 -3
  60. package/dist/components/select/async-single-select.js +2 -2
  61. package/dist/components/select/custom-select-default-components.js +1 -1
  62. package/dist/components/select/multi-select-components.js +1 -1
  63. package/dist/components/select/multi-select.js +3 -3
  64. package/dist/components/select/react-select-component-wrappers.js +1 -1
  65. package/dist/components/select/shared.js +19 -1
  66. package/dist/components/select/single-select.js +2 -2
  67. package/dist/components/select/v2/async-multi-select.js +421 -0
  68. package/dist/components/select/v2/async-select.js +16 -14
  69. package/dist/components/select/v2/multi-select.js +403 -0
  70. package/dist/components/select/v2/shared.js +44 -8
  71. package/dist/components/select/v2/single-select.js +11 -10
  72. package/dist/components/slider/column-config-slider.js +3 -3
  73. package/dist/components/slider/slider.js +3 -3
  74. package/dist/components/slider/utils.js +2 -1
  75. package/dist/components/tabs/tabs.js +33 -23
  76. package/dist/components/toggle/switch.js +11 -8
  77. package/dist/components/toggle/toggle.js +1 -1
  78. package/dist/components/toggle-button/toggle-button.js +14 -8
  79. package/dist/components/tooltip/tooltip.js +9 -7
  80. package/dist/{context-BbYZoHvX.js → context-DMOmz986.js} +1 -1
  81. package/dist/{default-i18n-OFa3zAyB.js → default-i18n-DY6EfUSA.js} +21 -284
  82. package/dist/filterDOMProps-D2C6R0DK.js +71 -0
  83. package/dist/icons/icons.js +1 -1
  84. package/dist/{index-641ee5b8.esm-BPU8rMZr.js → index-641ee5b8.esm-Bu-mgopl.js} +1 -1
  85. package/dist/{index-CFozsmNS.js → index-CBHA_HDD.js} +3 -1
  86. package/dist/{index-BljRBEr_.js → index-Dq3gT5pW.js} +1 -1
  87. package/dist/index.js +4 -0
  88. package/dist/{multi-select-components-BcKzA24f.js → multi-select-components-rCCyCaKO.js} +1 -1
  89. package/dist/{number-CHmNj-oR.js → number-7sOvrqo0.js} +7 -2
  90. package/dist/{react-select-async.esm-D937XTWW.js → react-select-async.esm-XYrsKYb2.js} +3 -3
  91. package/dist/{react-select.esm-Ciai3aKf.js → react-select.esm-CCSPY6XR.js} +3 -3
  92. package/dist/sprintf-DmNrJSYG.js +51 -0
  93. package/dist/{textSelection-8DpK8fJl.js → textSelection-D5tWX1rJ.js} +1 -1
  94. package/dist/{useAsyncList-fLtZMvJO.js → useAsyncList-ZqaIH2gh.js} +1 -1
  95. package/dist/{useButton-lRcWnvOB.js → useButton-BtJSiQi3.js} +13 -5
  96. package/dist/useDragAndDrop-CddFteYC.js +3917 -0
  97. package/dist/{useEvent-ICdlokG-.js → useEvent-BifIGnVS.js} +1 -1
  98. package/dist/{useFilter-BR5z1A4Q.js → useFilter-Cl2ggwwq.js} +1 -1
  99. package/dist/{useFocusRing-Bv0UJQl8.js → useFocusRing-D5BfOWag.js} +3 -3
  100. package/dist/{useFormReset-D2YaWRIA.js → useFormReset-yV9VVy9R.js} +3 -4
  101. package/dist/{useHover-C2SkI1Fn.js → useHover-44IApaa2.js} +67 -34
  102. package/dist/{useLabel-BPCd5c7-.js → useLabel-C8umX0gk.js} +2 -2
  103. package/dist/{useLabels-B7-lUnAF.js → useLabels-Cdxi6JSa.js} +1 -1
  104. package/dist/{useListState-BrZ2XvDS.js → useListState-BSkHuB7-.js} +1 -1
  105. package/dist/{useLocalizedStringFormatter-C9GO0IDB.js → useLocalizedStringFormatter-eaZiN2tE.js} +1 -1
  106. package/dist/{useNumberField-y0dLc_6m.js → useNumberField-JhWPy1JY.js} +23 -16
  107. package/dist/{useNumberFormatter-CZ9QUnRt.js → useNumberFormatter-BCmkV-7c.js} +1 -1
  108. package/dist/{usePress-DWBuejBp.js → usePress-BnrkvZ7e.js} +20 -5
  109. package/dist/{useSingleSelectListState-Bh46cRXs.js → useSingleSelectListState-CzJFsSHr.js} +2 -2
  110. package/dist/{useToggle-yGuUBU7q.js → useToggle-OaIBlwRu.js} +21 -8
  111. package/dist/{useToggleState-ibcBUHnB.js → useToggleState-BF8hvidm.js} +5 -1
  112. package/dist/{utils-CZt7LCbO.js → utils-cvK1vxO7.js} +9 -7
  113. package/package.json +18 -18
  114. package/dist/Group-LBogWgyp.js +0 -48
  115. package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
  116. package/dist/filterDOMProps-EDDcM64A.js +0 -28
@@ -1,8 +1,8 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useRef, useLayoutEffect, useMemo, useState, useCallback, startTransition, createContext, memo, forwardRef, useImperativeHandle, useContext, useId } from "react";
3
- import { _ as __ } from "../../default-i18n-OFa3zAyB.js";
3
+ import { _ as __ } from "../../default-i18n-DY6EfUSA.js";
4
4
  import { DraggableContext } from "./draggable-context.js";
5
- import { r as reactDomExports } from "../../index-CFozsmNS.js";
5
+ import { r as reactDomExports } from "../../index-CBHA_HDD.js";
6
6
  var i = Symbol.for("preact-signals");
7
7
  function t() {
8
8
  if (!(s > 1)) {
@@ -75,35 +75,49 @@ function e(i2) {
75
75
  }
76
76
  }
77
77
  }
78
- function u(i2) {
78
+ function u(i2, t2) {
79
79
  this.v = i2;
80
80
  this.i = 0;
81
81
  this.n = void 0;
82
82
  this.t = void 0;
83
+ this.W = null == t2 ? void 0 : t2.watched;
84
+ this.Z = null == t2 ? void 0 : t2.unwatched;
83
85
  }
84
86
  u.prototype.brand = i;
85
87
  u.prototype.h = function() {
86
88
  return true;
87
89
  };
88
90
  u.prototype.S = function(i2) {
89
- if (this.t !== i2 && void 0 === i2.e) {
90
- i2.x = this.t;
91
- if (void 0 !== this.t) this.t.e = i2;
91
+ var t2 = this, r2 = this.t;
92
+ if (r2 !== i2 && void 0 === i2.e) {
93
+ i2.x = r2;
92
94
  this.t = i2;
95
+ if (void 0 !== r2) r2.e = i2;
96
+ else n(function() {
97
+ var i3;
98
+ null == (i3 = t2.W) || i3.call(t2);
99
+ });
93
100
  }
94
101
  };
95
102
  u.prototype.U = function(i2) {
103
+ var t2 = this;
96
104
  if (void 0 !== this.t) {
97
- var t2 = i2.e, r2 = i2.x;
98
- if (void 0 !== t2) {
99
- t2.x = r2;
105
+ var r2 = i2.e, o2 = i2.x;
106
+ if (void 0 !== r2) {
107
+ r2.x = o2;
100
108
  i2.e = void 0;
101
109
  }
102
- if (void 0 !== r2) {
103
- r2.e = t2;
110
+ if (void 0 !== o2) {
111
+ o2.e = r2;
104
112
  i2.x = void 0;
105
113
  }
106
- if (i2 === this.t) this.t = r2;
114
+ if (i2 === this.t) {
115
+ this.t = o2;
116
+ if (void 0 === o2) n(function() {
117
+ var i3;
118
+ null == (i3 = t2.Z) || i3.call(t2);
119
+ });
120
+ }
107
121
  }
108
122
  };
109
123
  u.prototype.subscribe = function(i2) {
@@ -154,8 +168,8 @@ Object.defineProperty(u.prototype, "value", { get: function() {
154
168
  }
155
169
  }
156
170
  } });
157
- function d(i2) {
158
- return new u(i2);
171
+ function d(i2, t2) {
172
+ return new u(i2, t2);
159
173
  }
160
174
  function c(i2) {
161
175
  for (var t2 = i2.s; void 0 !== t2; t2 = t2.n) if (t2.S.i !== t2.i || !t2.S.h() || t2.S.i !== t2.i) return true;
@@ -188,14 +202,17 @@ function l(i2) {
188
202
  }
189
203
  i2.s = r2;
190
204
  }
191
- function y(i2) {
205
+ function y(i2, t2) {
192
206
  u.call(this, void 0);
193
207
  this.x = i2;
194
208
  this.s = void 0;
195
209
  this.g = v - 1;
196
210
  this.f = 4;
211
+ this.W = null == t2 ? void 0 : t2.watched;
212
+ this.Z = null == t2 ? void 0 : t2.unwatched;
197
213
  }
198
- (y.prototype = new u()).h = function() {
214
+ y.prototype = new u();
215
+ y.prototype.h = function() {
199
216
  this.f &= -3;
200
217
  if (1 & this.f) return false;
201
218
  if (32 == (36 & this.f)) return true;
@@ -257,8 +274,8 @@ Object.defineProperty(y.prototype, "value", { get: function() {
257
274
  if (16 & this.f) throw this.v;
258
275
  return this.v;
259
276
  } });
260
- function w(i2) {
261
- return new y(i2);
277
+ function w(i2, t2) {
278
+ return new y(i2, t2);
262
279
  }
263
280
  function _(i2) {
264
281
  var r2 = i2.u;
@@ -272,7 +289,7 @@ function _(i2) {
272
289
  } catch (t2) {
273
290
  i2.f &= -2;
274
291
  i2.f |= 8;
275
- g(i2);
292
+ b(i2);
276
293
  throw t2;
277
294
  } finally {
278
295
  o = n2;
@@ -280,28 +297,28 @@ function _(i2) {
280
297
  }
281
298
  }
282
299
  }
283
- function g(i2) {
300
+ function b(i2) {
284
301
  for (var t2 = i2.s; void 0 !== t2; t2 = t2.n) t2.S.U(t2);
285
302
  i2.x = void 0;
286
303
  i2.s = void 0;
287
304
  _(i2);
288
305
  }
289
- function p(i2) {
306
+ function g(i2) {
290
307
  if (o !== this) throw new Error("Out-of-order effect");
291
308
  l(this);
292
309
  o = i2;
293
310
  this.f &= -2;
294
- if (8 & this.f) g(this);
311
+ if (8 & this.f) b(this);
295
312
  t();
296
313
  }
297
- function b(i2) {
314
+ function p(i2) {
298
315
  this.x = i2;
299
316
  this.u = void 0;
300
317
  this.s = void 0;
301
318
  this.o = void 0;
302
319
  this.f = 32;
303
320
  }
304
- b.prototype.c = function() {
321
+ p.prototype.c = function() {
305
322
  var i2 = this.S();
306
323
  try {
307
324
  if (8 & this.f) return;
@@ -312,7 +329,7 @@ b.prototype.c = function() {
312
329
  i2();
313
330
  }
314
331
  };
315
- b.prototype.S = function() {
332
+ p.prototype.S = function() {
316
333
  if (1 & this.f) throw new Error("Cycle detected");
317
334
  this.f |= 1;
318
335
  this.f &= -9;
@@ -321,28 +338,33 @@ b.prototype.S = function() {
321
338
  s++;
322
339
  var i2 = o;
323
340
  o = this;
324
- return p.bind(this, i2);
341
+ return g.bind(this, i2);
325
342
  };
326
- b.prototype.N = function() {
343
+ p.prototype.N = function() {
327
344
  if (!(2 & this.f)) {
328
345
  this.f |= 2;
329
346
  this.o = h;
330
347
  h = this;
331
348
  }
332
349
  };
333
- b.prototype.d = function() {
350
+ p.prototype.d = function() {
334
351
  this.f |= 8;
335
- if (!(1 & this.f)) g(this);
352
+ if (!(1 & this.f)) b(this);
353
+ };
354
+ p.prototype.dispose = function() {
355
+ this.d();
336
356
  };
337
357
  function E(i2) {
338
- var t2 = new b(i2);
358
+ var t2 = new p(i2);
339
359
  try {
340
360
  t2.c();
341
361
  } catch (i3) {
342
362
  t2.d();
343
363
  throw i3;
344
364
  }
345
- return t2.d.bind(t2);
365
+ var r2 = t2.d.bind(t2);
366
+ r2[Symbol.dispose] = r2;
367
+ return r2;
346
368
  }
347
369
  var __create$5 = Object.create;
348
370
  var __defProp$7 = Object.defineProperty;
@@ -458,7 +480,10 @@ function deepEqual(a2, b2) {
458
480
  const aKeys = Object.keys(a2);
459
481
  const bKeys = Object.keys(b2);
460
482
  if (aKeys.length !== bKeys.length) return false;
461
- return aKeys.some((key) => deepEqual(a2[key], b2[key]));
483
+ const hasDifferentValues = aKeys.some(
484
+ (key) => !deepEqual(a2[key], b2[key])
485
+ );
486
+ return !hasDifferentValues;
462
487
  }
463
488
  return false;
464
489
  }
@@ -4132,7 +4157,6 @@ render_fn = function() {
4132
4157
  x: elementFrameTransform.scaleX / frameTransform.scaleX,
4133
4158
  y: elementFrameTransform.scaleY / frameTransform.scaleY
4134
4159
  };
4135
- let cleanup;
4136
4160
  let { width, height, top, left } = shape;
4137
4161
  if (crossFrame) {
4138
4162
  width = width / scaleDelta.x;
@@ -4357,48 +4381,6 @@ render_fn = function() {
4357
4381
  subtree: true
4358
4382
  });
4359
4383
  }
4360
- const cleanupEffect = E(() => {
4361
- var _a5;
4362
- const { transform: transform2, status: status2 } = dragOperation;
4363
- if (!transform2.x && !transform2.y && !state.current.translate) {
4364
- return;
4365
- }
4366
- if (status2.dragging) {
4367
- const initialTranslate2 = (_a5 = initial.translate) != null ? _a5 : { x: 0, y: 0 };
4368
- const translate2 = {
4369
- x: transform2.x / frameTransform.scaleX + initialTranslate2.x,
4370
- y: transform2.y / frameTransform.scaleY + initialTranslate2.y
4371
- };
4372
- const previousTranslate = state.current.translate;
4373
- const modifiers = n(() => dragOperation.modifiers);
4374
- const currentShape = n(() => {
4375
- var _a6;
4376
- return (_a6 = dragOperation.shape) == null ? void 0 : _a6.current;
4377
- });
4378
- const translateTransition = isKeyboardOperation ? "250ms cubic-bezier(0.25, 1, 0.5, 1)" : "0ms linear";
4379
- styles.set(
4380
- {
4381
- transition: `${transition}, translate ${translateTransition}`,
4382
- translate: `${translate2.x}px ${translate2.y}px 0`
4383
- },
4384
- CSS_PREFIX
4385
- );
4386
- elementMutationObserver == null ? void 0 : elementMutationObserver.takeRecords();
4387
- if (currentShape && currentShape !== initialShape && previousTranslate && !modifiers.length) {
4388
- const delta2 = Point$1.delta(translate2, previousTranslate);
4389
- dragOperation.shape = Rectangle.from(
4390
- currentShape.boundingRectangle
4391
- ).translate(
4392
- // Need to take into account frame transform when optimistically updating shape
4393
- delta2.x * frameTransform.scaleX,
4394
- delta2.y * frameTransform.scaleY
4395
- );
4396
- } else {
4397
- dragOperation.shape = new DOMRectangle(feedbackElement);
4398
- }
4399
- state.current.translate = translate2;
4400
- }
4401
- });
4402
4384
  const id = (_c3 = manager.dragOperation.source) == null ? void 0 : _c3.id;
4403
4385
  const restoreFocus = () => {
4404
4386
  var _a5;
@@ -4411,8 +4393,7 @@ render_fn = function() {
4411
4393
  element2.focus();
4412
4394
  }
4413
4395
  };
4414
- let dropEffectCleanup;
4415
- cleanup = () => {
4396
+ const cleanup = () => {
4416
4397
  elementMutationObserver == null ? void 0 : elementMutationObserver.disconnect();
4417
4398
  documentMutationObserver == null ? void 0 : documentMutationObserver.disconnect();
4418
4399
  resizeObserver.disconnect();
@@ -4432,95 +4413,140 @@ render_fn = function() {
4432
4413
  placeholder.replaceWith(feedbackElement);
4433
4414
  }
4434
4415
  placeholder == null ? void 0 : placeholder.remove();
4435
- cleanupEffect();
4436
- dropEffectCleanup == null ? void 0 : dropEffectCleanup();
4437
4416
  };
4438
- dropEffectCleanup = E(() => {
4439
- if (dragOperation.status.dropped) {
4440
- queueMicrotask(() => dropEffectCleanup == null ? void 0 : dropEffectCleanup());
4441
- const onComplete = cleanup;
4442
- cleanup = void 0;
4443
- source.status = "dropping";
4444
- let translate2 = state.current.translate;
4445
- const moved = translate2 != null;
4446
- if (!translate2 && element !== feedbackElement) {
4447
- translate2 = {
4448
- x: 0,
4449
- y: 0
4450
- };
4451
- }
4452
- if (!translate2) {
4453
- onComplete == null ? void 0 : onComplete();
4417
+ const cleanupEffects = effects(
4418
+ // Update transform on move
4419
+ () => {
4420
+ var _a5;
4421
+ const { transform: transform2, status: status2 } = dragOperation;
4422
+ if (!transform2.x && !transform2.y && !state.current.translate) {
4454
4423
  return;
4455
4424
  }
4456
- const dropAnimation = () => {
4457
- var _a5, _b3;
4458
- {
4459
- showPopover(feedbackElement);
4460
- const [, animation] = (_a5 = getFinalKeyframe(
4461
- feedbackElement,
4462
- (keyframe) => "translate" in keyframe
4463
- )) != null ? _a5 : [];
4464
- animation == null ? void 0 : animation.pause();
4465
- const target = placeholder != null ? placeholder : element;
4466
- const options22 = {
4467
- frameTransform: isSameFrame(feedbackElement, target) ? null : void 0
4468
- };
4469
- const current = new DOMRectangle(feedbackElement, options22);
4470
- const currentTranslate = (_b3 = parseTranslate(getComputedStyles(feedbackElement).translate)) != null ? _b3 : translate2;
4471
- const final = new DOMRectangle(target, options22);
4472
- const delta2 = Rectangle.delta(current, final, source.alignment);
4473
- const finalTranslate = {
4474
- x: currentTranslate.x - delta2.x,
4475
- y: currentTranslate.y - delta2.y
4425
+ if (status2.dragging) {
4426
+ const initialTranslate2 = (_a5 = initial.translate) != null ? _a5 : { x: 0, y: 0 };
4427
+ const translate2 = {
4428
+ x: transform2.x / frameTransform.scaleX + initialTranslate2.x,
4429
+ y: transform2.y / frameTransform.scaleY + initialTranslate2.y
4430
+ };
4431
+ const previousTranslate = state.current.translate;
4432
+ const modifiers = n(() => dragOperation.modifiers);
4433
+ const currentShape = n(() => {
4434
+ var _a6;
4435
+ return (_a6 = dragOperation.shape) == null ? void 0 : _a6.current;
4436
+ });
4437
+ const translateTransition = isKeyboardOperation ? "250ms cubic-bezier(0.25, 1, 0.5, 1)" : "0ms linear";
4438
+ styles.set(
4439
+ {
4440
+ transition: `${transition}, translate ${translateTransition}`,
4441
+ translate: `${translate2.x}px ${translate2.y}px 0`
4442
+ },
4443
+ CSS_PREFIX
4444
+ );
4445
+ elementMutationObserver == null ? void 0 : elementMutationObserver.takeRecords();
4446
+ if (currentShape && currentShape !== initialShape && previousTranslate && !modifiers.length) {
4447
+ const delta2 = Point$1.delta(translate2, previousTranslate);
4448
+ dragOperation.shape = Rectangle.from(
4449
+ currentShape.boundingRectangle
4450
+ ).translate(
4451
+ // Need to take into account frame transform when optimistically updating shape
4452
+ delta2.x * frameTransform.scaleX,
4453
+ delta2.y * frameTransform.scaleY
4454
+ );
4455
+ } else {
4456
+ dragOperation.shape = new DOMRectangle(feedbackElement);
4457
+ }
4458
+ state.current.translate = translate2;
4459
+ }
4460
+ },
4461
+ // Drop animation
4462
+ function() {
4463
+ if (dragOperation.status.dropped) {
4464
+ this.dispose();
4465
+ source.status = "dropping";
4466
+ let translate2 = state.current.translate;
4467
+ const moved = translate2 != null;
4468
+ if (!translate2 && element !== feedbackElement) {
4469
+ translate2 = {
4470
+ x: 0,
4471
+ y: 0
4476
4472
  };
4477
- const heightKeyframes = Math.round(current.intrinsicHeight) !== Math.round(final.intrinsicHeight) ? {
4478
- minHeight: [
4479
- `${current.intrinsicHeight}px`,
4480
- `${final.intrinsicHeight}px`
4481
- ],
4482
- maxHeight: [
4483
- `${current.intrinsicHeight}px`,
4484
- `${final.intrinsicHeight}px`
4485
- ]
4486
- } : {};
4487
- const widthKeyframes = Math.round(current.intrinsicWidth) !== Math.round(final.intrinsicWidth) ? {
4488
- minWidth: [
4489
- `${current.intrinsicWidth}px`,
4490
- `${final.intrinsicWidth}px`
4491
- ],
4492
- maxWidth: [
4493
- `${current.intrinsicWidth}px`,
4494
- `${final.intrinsicWidth}px`
4495
- ]
4496
- } : {};
4497
- styles.set({ transition }, CSS_PREFIX);
4498
- feedbackElement.setAttribute(DROPPING_ATTRIBUTE, "");
4499
- elementMutationObserver == null ? void 0 : elementMutationObserver.takeRecords();
4500
- animateTransform({
4501
- element: feedbackElement,
4502
- keyframes: __spreadProps$4(__spreadValues$4(__spreadValues$4({}, heightKeyframes), widthKeyframes), {
4503
- translate: [
4504
- `${currentTranslate.x}px ${currentTranslate.y}px 0`,
4505
- `${finalTranslate.x}px ${finalTranslate.y}px 0`
4506
- ]
4507
- }),
4508
- options: {
4509
- duration: moved || feedbackElement !== element ? 250 : 0,
4510
- easing: "ease"
4511
- }
4512
- }).then(() => {
4513
- feedbackElement.removeAttribute(DROPPING_ATTRIBUTE);
4514
- animation == null ? void 0 : animation.finish();
4515
- onComplete == null ? void 0 : onComplete();
4516
- requestAnimationFrame(restoreFocus);
4517
- });
4518
4473
  }
4519
- };
4520
- manager.renderer.rendering.then(dropAnimation);
4474
+ if (!translate2) {
4475
+ cleanup();
4476
+ return;
4477
+ }
4478
+ const dropAnimation = () => {
4479
+ var _a5, _b3;
4480
+ {
4481
+ showPopover(feedbackElement);
4482
+ const [, animation] = (_a5 = getFinalKeyframe(
4483
+ feedbackElement,
4484
+ (keyframe) => "translate" in keyframe
4485
+ )) != null ? _a5 : [];
4486
+ animation == null ? void 0 : animation.pause();
4487
+ const target = placeholder != null ? placeholder : element;
4488
+ const options22 = {
4489
+ frameTransform: isSameFrame(feedbackElement, target) ? null : void 0
4490
+ };
4491
+ const current = new DOMRectangle(feedbackElement, options22);
4492
+ const currentTranslate = (_b3 = parseTranslate(getComputedStyles(feedbackElement).translate)) != null ? _b3 : translate2;
4493
+ const final = new DOMRectangle(target, options22);
4494
+ const delta2 = Rectangle.delta(current, final, source.alignment);
4495
+ const finalTranslate = {
4496
+ x: currentTranslate.x - delta2.x,
4497
+ y: currentTranslate.y - delta2.y
4498
+ };
4499
+ const heightKeyframes = Math.round(current.intrinsicHeight) !== Math.round(final.intrinsicHeight) ? {
4500
+ minHeight: [
4501
+ `${current.intrinsicHeight}px`,
4502
+ `${final.intrinsicHeight}px`
4503
+ ],
4504
+ maxHeight: [
4505
+ `${current.intrinsicHeight}px`,
4506
+ `${final.intrinsicHeight}px`
4507
+ ]
4508
+ } : {};
4509
+ const widthKeyframes = Math.round(current.intrinsicWidth) !== Math.round(final.intrinsicWidth) ? {
4510
+ minWidth: [
4511
+ `${current.intrinsicWidth}px`,
4512
+ `${final.intrinsicWidth}px`
4513
+ ],
4514
+ maxWidth: [
4515
+ `${current.intrinsicWidth}px`,
4516
+ `${final.intrinsicWidth}px`
4517
+ ]
4518
+ } : {};
4519
+ styles.set({ transition }, CSS_PREFIX);
4520
+ feedbackElement.setAttribute(DROPPING_ATTRIBUTE, "");
4521
+ elementMutationObserver == null ? void 0 : elementMutationObserver.takeRecords();
4522
+ animateTransform({
4523
+ element: feedbackElement,
4524
+ keyframes: __spreadProps$4(__spreadValues$4(__spreadValues$4({}, heightKeyframes), widthKeyframes), {
4525
+ translate: [
4526
+ `${currentTranslate.x}px ${currentTranslate.y}px 0`,
4527
+ `${finalTranslate.x}px ${finalTranslate.y}px 0`
4528
+ ]
4529
+ }),
4530
+ options: {
4531
+ duration: moved || feedbackElement !== element ? 250 : 0,
4532
+ easing: "ease"
4533
+ }
4534
+ }).then(() => {
4535
+ feedbackElement.removeAttribute(DROPPING_ATTRIBUTE);
4536
+ animation == null ? void 0 : animation.finish();
4537
+ cleanup();
4538
+ requestAnimationFrame(restoreFocus);
4539
+ });
4540
+ }
4541
+ };
4542
+ manager.renderer.rendering.then(dropAnimation);
4543
+ }
4521
4544
  }
4522
- });
4523
- return () => cleanup == null ? void 0 : cleanup();
4545
+ );
4546
+ return () => {
4547
+ cleanup();
4548
+ cleanupEffects();
4549
+ };
4524
4550
  };
4525
4551
  injectStyles_fn = function() {
4526
4552
  var _a4, _b2;
@@ -5986,7 +6012,6 @@ var OptimisticSortingPlugin = class extends Plugin {
5986
6012
  );
5987
6013
  if (!initialGroupInstances) return;
5988
6014
  manager2.renderer.rendering.then(() => {
5989
- var _a4;
5990
6015
  for (const [group, sortableInstances] of instances.entries()) {
5991
6016
  const entries = Array.from(sortableInstances).entries();
5992
6017
  for (const [index, sortable] of entries) {
@@ -5997,16 +6022,12 @@ var OptimisticSortingPlugin = class extends Plugin {
5997
6022
  }
5998
6023
  const initialGroup = sort(initialGroupInstances);
5999
6024
  const sourceElement = source.sortable.element;
6000
- const targetElement = (_a4 = initialGroup[source.sortable.initialIndex]) == null ? void 0 : _a4.element;
6001
- if (!targetElement || !sourceElement) {
6025
+ const target = initialGroup[source.sortable.initialIndex];
6026
+ const targetElement = target == null ? void 0 : target.element;
6027
+ if (!target || !targetElement || !sourceElement) {
6002
6028
  return;
6003
6029
  }
6004
- reorder(
6005
- sourceElement,
6006
- source.sortable.initialIndex,
6007
- targetElement,
6008
- source.sortable.initialIndex
6009
- );
6030
+ reorder(sourceElement, target.index, targetElement, source.index);
6010
6031
  r(() => {
6011
6032
  for (const [_2, sortableInstances] of instances.entries()) {
6012
6033
  const entries = Array.from(sortableInstances).values();
@@ -6104,7 +6125,7 @@ var Sortable2 = class {
6104
6125
  if ((status == null ? void 0 : status.initializing) && this.id === ((_c3 = (_b22 = this.manager) == null ? void 0 : _b22.dragOperation.source) == null ? void 0 : _c3.id)) {
6105
6126
  store.clear(this.manager);
6106
6127
  }
6107
- if (status == null ? void 0 : status.initialized) {
6128
+ if (status == null ? void 0 : status.dragging) {
6108
6129
  store.set(
6109
6130
  this.manager,
6110
6131
  this.id,
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { c as clsx } from "../../lite-DVmmD_-j.js";
3
- import "../../default-i18n-OFa3zAyB.js";
3
+ import "../../default-i18n-DY6EfUSA.js";
4
4
  import { BaseControl } from "../base-control/base-control.js";
5
5
  import { icons } from "../../icons/icons.js";
6
6
  import { cloneElement } from "react";
@@ -1,9 +1,9 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
- import { _ as __ } from "../../default-i18n-OFa3zAyB.js";
3
+ import { _ as __ } from "../../default-i18n-DY6EfUSA.js";
4
4
  import { BaseControl } from "../base-control/base-control.js";
5
5
  import { c as clsx } from "../../lite-DVmmD_-j.js";
6
- import { L as List, a as arrayRemove, b as arrayMove } from "../../List-BLeHBkfx.js";
6
+ import { L as List, a as arrayRemove, b as arrayMove } from "../../List-CwJTORxj.js";
7
7
  const fixIds = (items, itemIdBase) => {
8
8
  return items?.map((item, i) => ({
9
9
  ...item,
@@ -5,15 +5,15 @@ import { AnimatedVisibility } from "../animated-visibility/animated-visibility.j
5
5
  import { Button } from "../button/button.js";
6
6
  import { icons } from "../../icons/icons.js";
7
7
  import { c as clsx } from "../../lite-DVmmD_-j.js";
8
- import { _ as __ } from "../../default-i18n-OFa3zAyB.js";
9
- import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-DH22t_SM.js";
10
- import { e as $bdb11010cef70236$export$f680877a34711e37, n as $b5e257d569688ac6$export$535bd6ca7f90a273, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, o as $64fa3d84918910a7$export$c62b8e45d58ddad9, d as $3ef42575df84b30b$export$9d1611c77c2fe928, m as $5dc95899b306f630$export$c9058316764c140e } from "../../utils-CZt7LCbO.js";
11
- import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
12
- import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../useHover-C2SkI1Fn.js";
13
- import { r as reactDomExports } from "../../index-CFozsmNS.js";
14
- import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "../../useEvent-ICdlokG-.js";
15
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-Bv0UJQl8.js";
16
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-JS_ob-kh.js";
8
+ import { _ as __ } from "../../default-i18n-DY6EfUSA.js";
9
+ import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-RTwMSBs-.js";
10
+ import { d as $bdb11010cef70236$export$f680877a34711e37, n as $b5e257d569688ac6$export$535bd6ca7f90a273, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, o as $64fa3d84918910a7$export$c62b8e45d58ddad9, b as $3ef42575df84b30b$export$9d1611c77c2fe928, m as $5dc95899b306f630$export$c9058316764c140e } from "../../utils-cvK1vxO7.js";
11
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-D2C6R0DK.js";
12
+ import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../useHover-44IApaa2.js";
13
+ import { r as reactDomExports } from "../../index-CBHA_HDD.js";
14
+ import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "../../useEvent-BifIGnVS.js";
15
+ import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-D5BfOWag.js";
16
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DWVaNd2E.js";
17
17
  function $5e910fae8e128ead$export$6e3e27031a30522f(props, state, ref) {
18
18
  let { isDisabled } = props;
19
19
  let triggerId = $bdb11010cef70236$export$f680877a34711e37();
@@ -140,7 +140,9 @@ const $28f4fd908f0de97f$export$74a362b31437ec83 = /* @__PURE__ */ forwardRef(fun
140
140
  state
141
141
  }
142
142
  });
143
- let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(otherProps);
143
+ let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(otherProps, {
144
+ global: true
145
+ });
144
146
  return /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
145
147
  values: [
146
148
  [
@@ -165,13 +167,11 @@ const $28f4fd908f0de97f$export$74a362b31437ec83 = /* @__PURE__ */ forwardRef(fun
165
167
  ]
166
168
  ]
167
169
  }, /* @__PURE__ */ React__default.createElement("div", {
170
+ ...$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, renderProps, focusWithinProps),
168
171
  ref,
169
172
  "data-expanded": state.isExpanded || void 0,
170
173
  "data-disabled": isDisabled || void 0,
171
- "data-focus-visible-within": isFocusVisibleWithin || void 0,
172
- ...domProps,
173
- ...focusWithinProps,
174
- ...renderProps
174
+ "data-focus-visible-within": isFocusVisibleWithin || void 0
175
175
  }, renderProps.children));
176
176
  });
177
177
  const $28f4fd908f0de97f$export$feabaa331e1d464c = /* @__PURE__ */ forwardRef(function DisclosurePanel(props, ref) {
@@ -187,12 +187,12 @@ const $28f4fd908f0de97f$export$feabaa331e1d464c = /* @__PURE__ */ forwardRef(fun
187
187
  isFocusVisibleWithin
188
188
  }
189
189
  });
190
- let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
190
+ let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
191
+ global: true
192
+ });
191
193
  return /* @__PURE__ */ React__default.createElement("div", {
192
- ...DOMProps,
194
+ ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, panelProps, focusWithinProps),
193
195
  ref: $5dc95899b306f630$export$c9058316764c140e(ref, panelRef),
194
- ...$3ef42575df84b30b$export$9d1611c77c2fe928(panelProps, focusWithinProps),
195
- ...renderProps,
196
196
  role,
197
197
  "data-focus-visible-within": isFocusVisibleWithin || void 0
198
198
  }, /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
@@ -36,10 +36,12 @@ import { RepeaterItem } from "./repeater/repeater-item.js";
36
36
  import { Responsive } from "./responsive/responsive.js";
37
37
  import { ResponsiveLegacy } from "./responsive/responsive-legacy.js";
38
38
  import { ResponsivePreview } from "./responsive-preview/responsive-preview.js";
39
+ import { __AsyncMultiSelectNext } from "./select/v2/async-multi-select.js";
39
40
  import { AsyncMultiSelect } from "./select/async-multi-select.js";
40
41
  import { AsyncSelect } from "./select/async-single-select.js";
41
42
  import { AsyncSelectNext } from "./select/v2/async-select.js";
42
43
  import { SelectNext } from "./select/v2/single-select.js";
44
+ import { __MultiSelectNext } from "./select/v2/multi-select.js";
43
45
  import { Modal } from "./modal/modal.js";
44
46
  import { MultiSelect } from "./select/multi-select.js";
45
47
  import { RSClearIndicator, RSDropdownIndicator, RSMultiValue, RSMultiValueContainer, RSMultiValueLabel, RSMultiValueRemove, RSOption, RSSingleValue } from "./select/react-select-component-wrappers.js";
@@ -135,5 +137,7 @@ export {
135
137
  ToggleButton,
136
138
  Tooltip,
137
139
  TriggeredPopover,
138
- VStack
140
+ VStack,
141
+ __AsyncMultiSelectNext,
142
+ __MultiSelectNext
139
143
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-DfSBLhDx.js";
3
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-JS_ob-kh.js";
4
- import { $ as $bcdf0525bf22703d$export$2c73285ae9390cec, a as $216918bed6669f72$export$f5c9f3c2c4054eec } from "../../TextField-o2U-uBWv.js";
2
+ import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Group-C4cXobNT.js";
3
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DWVaNd2E.js";
4
+ import { $ as $bcdf0525bf22703d$export$2c73285ae9390cec, a as $216918bed6669f72$export$f5c9f3c2c4054eec } from "../../TextField-x_eEa_qR.js";
5
5
  import { BaseControl } from "../base-control/base-control.js";
6
6
  import { c as clsx } from "../../lite-DVmmD_-j.js";
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Fragment } from "react";
3
- import { _ as __ } from "../../default-i18n-OFa3zAyB.js";
3
+ import { _ as __ } from "../../default-i18n-DY6EfUSA.js";
4
4
  /**
5
5
  * A simple component to manage a collection of items.
6
6
  *