@eightshift/ui-components 1.7.1 → 1.8.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 (112) hide show
  1. package/dist/{Button-VbCAu4hd.js → Button-Xa6Ny0p_.js} +7 -7
  2. package/dist/{Color-BpLubxWI.js → Color-VsesNqCf.js} +5 -17
  3. package/dist/{ColorSwatch-CinC14s3.js → ColorSwatch-xOFAZO_h.js} +4 -4
  4. package/dist/ComboBox-CP_SqnqT.js +1886 -0
  5. package/dist/Dialog-jcIYer1n.js +2177 -0
  6. package/dist/{FieldError-BttM1Nxd.js → FieldError-BPe3YgNH.js} +2 -2
  7. package/dist/{FocusScope-CtCX0OGo.js → FocusScope-uV-xoRHT.js} +8 -9
  8. package/dist/{Group-XzWUooix.js → Group-Bvmb49y7.js} +5 -5
  9. package/dist/{Heading-DZelepHV.js → Heading-Bfhyr4ZC.js} +1 -1
  10. package/dist/{Hidden-CcFqOzrp.js → Hidden-7ZhNuLM9.js} +2 -2
  11. package/dist/{Input-CV1qVS6t.js → Input-C2dTSp9z.js} +10 -10
  12. package/dist/{Label-BwqMVkuV.js → Label-DqNX_sAU.js} +2 -2
  13. package/dist/{List-Bx2anbX-.js → List-C7L49CxW.js} +1 -1
  14. package/dist/{ListBox-DuZPdnkk.js → ListBox-B9r1QoSm.js} +19 -18
  15. package/dist/{NumberFormatter-U_Gx0UDq.js → NumberFormatter-DA8u1Ot7.js} +4 -6
  16. package/dist/OverlayArrow-ClRhYjQu.js +567 -0
  17. package/dist/{Select-c7902d94.esm-DtzFQzf-.js → Select-aab027f3.esm-B8nEum75.js} +4 -4
  18. package/dist/{SelectionManager-x27KqnAT.js → SelectionManager-DP537Pbu.js} +177 -141
  19. package/dist/{Separator-BM58t3PP.js → Separator-Dmxzf3m_.js} +62 -52
  20. package/dist/{Slider-D9Cs6yKr.js → Slider-BgHBCyI7.js} +16 -14
  21. package/dist/{Text-BVIXT8qq.js → Text-DImhB4rT.js} +1 -1
  22. package/dist/{VisuallyHidden-WhC7vZaL.js → VisuallyHidden-wryJF4qQ.js} +2 -2
  23. package/dist/assets/style.css +1 -1
  24. package/dist/assets/wp-ui-enhancements.css +1 -1
  25. package/dist/components/animated-visibility/animated-visibility.js +141 -113
  26. package/dist/components/base-control/base-control.js +1 -1
  27. package/dist/components/button/button.js +10 -7
  28. package/dist/components/checkbox/checkbox.js +19 -11
  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 +2 -2
  32. package/dist/components/color-pickers/solid-color-picker.js +21 -21
  33. package/dist/components/component-toggle/component-toggle.js +1 -1
  34. package/dist/components/draggable/draggable-handle.js +2 -2
  35. package/dist/components/draggable/draggable.js +2 -2
  36. package/dist/components/draggable-list/draggable-list-item.js +2 -2
  37. package/dist/components/draggable-list/draggable-list.js +2 -2
  38. package/dist/components/expandable/expandable.js +3 -3
  39. package/dist/components/index.js +8 -4
  40. package/dist/components/input-field/input-field.js +7 -7
  41. package/dist/components/item-collection/item-collection.js +1 -1
  42. package/dist/components/link-input/link-input.js +10 -1872
  43. package/dist/components/list-box/list-box.js +2 -2
  44. package/dist/components/matrix-align/matrix-align.js +2 -2
  45. package/dist/components/menu/menu.js +7 -974
  46. package/dist/components/modal/modal.js +7 -7
  47. package/dist/components/number-picker/number-picker.js +10 -10
  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 +13 -13
  53. package/dist/components/repeater/repeater-item.js +1 -1
  54. package/dist/components/repeater/repeater.js +2 -2
  55. package/dist/components/responsive/mini-responsive.js +3 -3
  56. package/dist/components/responsive/responsive-legacy.js +2 -2
  57. package/dist/components/responsive/responsive.js +2 -2
  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/single-select.js +2 -2
  66. package/dist/components/select/v2/async-select.js +307 -0
  67. package/dist/components/select/v2/shared.js +24 -0
  68. package/dist/components/select/v2/single-select.js +993 -0
  69. package/dist/components/slider/column-config-slider.js +3 -3
  70. package/dist/components/slider/slider.js +3 -3
  71. package/dist/components/slider/utils.js +1 -1
  72. package/dist/components/tabs/tabs.js +16 -16
  73. package/dist/components/toggle/switch.js +6 -6
  74. package/dist/components/toggle/toggle.js +1 -1
  75. package/dist/components/toggle-button/toggle-button.js +55 -12
  76. package/dist/components/tooltip/tooltip.js +532 -8
  77. package/dist/{context-Cs-ZD1nu.js → context-BI3VdU0Z.js} +2 -2
  78. package/dist/{default-i18n-DRnM8y4w.js → default-i18n-CM1-Xvzf.js} +183 -176
  79. package/dist/{focusSafely-CgFLw4FA.js → focusSafely-Cl9cN7Qx.js} +14 -14
  80. package/dist/icons/icons.js +171 -1
  81. package/dist/icons/jsx-svg.js +16 -3
  82. package/dist/{index-a301f526.esm-BMg114iK.js → index-641ee5b8.esm-BclOH4xf.js} +165 -29
  83. package/dist/{index-BTCzc3zb.js → index-D0mHceYg.js} +81 -17
  84. package/dist/index.js +7 -3
  85. package/dist/{multi-select-components-DTvEidE3.js → multi-select-components-BGQBvx-z.js} +55 -44
  86. package/dist/{react-jsx-parser.min-B5HVwW_W.js → react-jsx-parser.min-CVit0rZn.js} +5620 -7409
  87. package/dist/{react-select-async.esm-CxA8wpeT.js → react-select-async.esm-B8kK0aL4.js} +3 -3
  88. package/dist/{react-select.esm-CeE7o5M9.js → react-select.esm-ucYwBxq5.js} +3 -3
  89. package/dist/{textSelection-CvK0YHTZ.js → textSelection-DDDNsS-g.js} +1 -1
  90. package/dist/{useButton-Cy9eEev7.js → useButton-CRKy9xk2.js} +4 -4
  91. package/dist/{useEvent-LZebwyrb.js → useEvent-D54lIBrO.js} +1 -1
  92. package/dist/{useFocusRing-BMOTWmOx.js → useFocusRing-DKxoCzVD.js} +1 -1
  93. package/dist/{useFocusable-ByyKSVQv.js → useFocusable-CPKTGWPn.js} +4 -4
  94. package/dist/{useFormReset-B8m1uz1J.js → useFormReset-CTp--h9B.js} +1 -1
  95. package/dist/{useFormValidationState-BjMhz_VI.js → useFormValidation-BNBrliSj.js} +92 -88
  96. package/dist/{useLabel-B6uO0wVK.js → useLabel-CzGdEzIq.js} +2 -2
  97. package/dist/{useLabels-5dFkeiXx.js → useLabels-eGSmZC_Z.js} +1 -1
  98. package/dist/{useListState-eKxv7HPC.js → useListState-D7mE1Y00.js} +1 -1
  99. package/dist/{useLocalizedStringFormatter-BaKmjFNp.js → useLocalizedStringFormatter-BBeUyA9l.js} +1 -1
  100. package/dist/{useNumberField-DMMUTZ-h.js → useNumberField-BmEJmL3K.js} +27 -20
  101. package/dist/{useNumberFormatter-Cyx5Dxkf.js → useNumberFormatter-CTY_UZxq.js} +2 -2
  102. package/dist/{usePress-D8nPoIQm.js → usePress-BG9At5Lb.js} +4 -4
  103. package/dist/{useSingleSelectListState-CABciySJ.js → useSingleSelectListState-DeJEr7lC.js} +2 -2
  104. package/dist/{useToggle-BmltE9Zr.js → useToggle-QlyoyPYv.js} +4 -4
  105. package/dist/{useToggleState-DZXLEnA_.js → useToggleState-C1mnFRiI.js} +1 -1
  106. package/dist/utilities/text-helpers.js +6 -0
  107. package/dist/{utils-BCJajCwh.js → utils-BSxcP7tv.js} +15 -14
  108. package/package.json +20 -20
  109. package/dist/Dialog-BN5EE7UH.js +0 -934
  110. package/dist/isScrollable-Dh9D9IOd.js +0 -9
  111. package/dist/tooltip-eKaARDoV.js +0 -1084
  112. package/dist/useMenuTrigger-4fwEmto8.js +0 -246
@@ -7363,6 +7363,7 @@ function requireReactDom_development() {
7363
7363
  }
7364
7364
  switch (typeof value) {
7365
7365
  case "function":
7366
+ // $FlowIssue symbol is perfectly valid here
7366
7367
  case "symbol":
7367
7368
  return true;
7368
7369
  case "boolean": {
@@ -8377,6 +8378,7 @@ function requireReactDom_development() {
8377
8378
  return "SuspenseList";
8378
8379
  case TracingMarkerComponent:
8379
8380
  return "TracingMarker";
8381
+ // The display name for this tags come from the user-provided type:
8380
8382
  case ClassComponent:
8381
8383
  case FunctionComponent:
8382
8384
  case IncompleteClassComponent:
@@ -9374,6 +9376,10 @@ function requireReactDom_development() {
9374
9376
  return typeof props.is === "string";
9375
9377
  }
9376
9378
  switch (tagName) {
9379
+ // These are reserved SVG and MathML elements.
9380
+ // We don't mind this list too much because we expect it to never grow.
9381
+ // The alternative is to track the namespace in a few places which is convoluted.
9382
+ // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
9377
9383
  case "annotation-xml":
9378
9384
  case "color-profile":
9379
9385
  case "font-face":
@@ -12201,6 +12207,7 @@ function requireReactDom_development() {
12201
12207
  }
12202
12208
  function getEventPriority(domEventName) {
12203
12209
  switch (domEventName) {
12210
+ // Used by SimpleEventPlugin:
12204
12211
  case "cancel":
12205
12212
  case "click":
12206
12213
  case "close":
@@ -12236,14 +12243,20 @@ function requireReactDom_development() {
12236
12243
  case "touchend":
12237
12244
  case "touchstart":
12238
12245
  case "volumechange":
12246
+ // Used by polyfills:
12247
+ // eslint-disable-next-line no-fallthrough
12239
12248
  case "change":
12240
12249
  case "selectionchange":
12241
12250
  case "textInput":
12242
12251
  case "compositionstart":
12243
12252
  case "compositionend":
12244
12253
  case "compositionupdate":
12254
+ // Only enableCreateEventHandleAPI:
12255
+ // eslint-disable-next-line no-fallthrough
12245
12256
  case "beforeblur":
12246
12257
  case "afterblur":
12258
+ // Not used by React but could be by user code:
12259
+ // eslint-disable-next-line no-fallthrough
12247
12260
  case "beforeinput":
12248
12261
  case "blur":
12249
12262
  case "fullscreenchange":
@@ -12268,6 +12281,8 @@ function requireReactDom_development() {
12268
12281
  case "toggle":
12269
12282
  case "touchmove":
12270
12283
  case "wheel":
12284
+ // Not used by React but could be by user code:
12285
+ // eslint-disable-next-line no-fallthrough
12271
12286
  case "mouseenter":
12272
12287
  case "mouseleave":
12273
12288
  case "pointerenter":
@@ -13466,6 +13481,7 @@ function requireReactDom_development() {
13466
13481
  function extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
13467
13482
  var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
13468
13483
  switch (domEventName) {
13484
+ // Track the input node that has focus.
13469
13485
  case "focusin":
13470
13486
  if (isTextInputElement(targetNode) || targetNode.contentEditable === "true") {
13471
13487
  activeElement$1 = targetNode;
@@ -13478,6 +13494,8 @@ function requireReactDom_development() {
13478
13494
  activeElementInst$1 = null;
13479
13495
  lastSelection = null;
13480
13496
  break;
13497
+ // Don't fire the event while the user is dragging. This matches the
13498
+ // semantics of the native select event.
13481
13499
  case "mousedown":
13482
13500
  mouseDown = true;
13483
13501
  break;
@@ -13487,10 +13505,20 @@ function requireReactDom_development() {
13487
13505
  mouseDown = false;
13488
13506
  constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
13489
13507
  break;
13508
+ // Chrome and IE fire non-standard event when selection is changed (and
13509
+ // sometimes when it hasn't). IE's event fires out of order with respect
13510
+ // to key and input events on deletion, so we discard it.
13511
+ //
13512
+ // Firefox doesn't support selectionchange, so check selection status
13513
+ // after each key entry. The selection changes after keydown and before
13514
+ // keyup, but we check on keydown as well in the case of holding down a
13515
+ // key, when multiple keydown events are fired but only one keyup is.
13516
+ // This is also our approach for IE handling, for the reason above.
13490
13517
  case "selectionchange":
13491
13518
  if (skipSelectionChangeEvent) {
13492
13519
  break;
13493
13520
  }
13521
+ // falls through
13494
13522
  case "keydown":
13495
13523
  case "keyup":
13496
13524
  constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
@@ -13573,6 +13601,7 @@ function requireReactDom_development() {
13573
13601
  if (getEventCharCode(nativeEvent) === 0) {
13574
13602
  return;
13575
13603
  }
13604
+ /* falls through */
13576
13605
  case "keydown":
13577
13606
  case "keyup":
13578
13607
  SyntheticEventCtor = SyntheticKeyboardEvent;
@@ -13593,11 +13622,14 @@ function requireReactDom_development() {
13593
13622
  if (nativeEvent.button === 2) {
13594
13623
  return;
13595
13624
  }
13625
+ /* falls through */
13596
13626
  case "auxclick":
13597
13627
  case "dblclick":
13598
13628
  case "mousedown":
13599
13629
  case "mousemove":
13600
13630
  case "mouseup":
13631
+ // TODO: Disabled elements should not respond to mouse events
13632
+ /* falls through */
13601
13633
  case "mouseout":
13602
13634
  case "mouseover":
13603
13635
  case "contextmenu":
@@ -14510,6 +14542,8 @@ function requireReactDom_development() {
14510
14542
  for (var _i = 0; _i < attributes.length; _i++) {
14511
14543
  var name = attributes[_i].name.toLowerCase();
14512
14544
  switch (name) {
14545
+ // Controlled attributes are not validated
14546
+ // TODO: Only ignore them on controlled tags.
14513
14547
  case "value":
14514
14548
  break;
14515
14549
  case "checked":
@@ -14777,24 +14811,37 @@ function requireReactDom_development() {
14777
14811
  };
14778
14812
  var isTagValidWithParent = function(tag, parentTag) {
14779
14813
  switch (parentTag) {
14814
+ // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
14780
14815
  case "select":
14781
14816
  return tag === "option" || tag === "optgroup" || tag === "#text";
14782
14817
  case "optgroup":
14783
14818
  return tag === "option" || tag === "#text";
14819
+ // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
14820
+ // but
14784
14821
  case "option":
14785
14822
  return tag === "#text";
14823
+ // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
14824
+ // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
14825
+ // No special behavior since these rules fall back to "in body" mode for
14826
+ // all except special table nodes which cause bad parsing behavior anyway.
14827
+ // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
14786
14828
  case "tr":
14787
14829
  return tag === "th" || tag === "td" || tag === "style" || tag === "script" || tag === "template";
14830
+ // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
14788
14831
  case "tbody":
14789
14832
  case "thead":
14790
14833
  case "tfoot":
14791
14834
  return tag === "tr" || tag === "style" || tag === "script" || tag === "template";
14835
+ // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
14792
14836
  case "colgroup":
14793
14837
  return tag === "col" || tag === "template";
14838
+ // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
14794
14839
  case "table":
14795
14840
  return tag === "caption" || tag === "colgroup" || tag === "tbody" || tag === "tfoot" || tag === "thead" || tag === "style" || tag === "script" || tag === "template";
14841
+ // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
14796
14842
  case "head":
14797
14843
  return tag === "base" || tag === "basefont" || tag === "bgsound" || tag === "link" || tag === "meta" || tag === "title" || tag === "noscript" || tag === "noframes" || tag === "style" || tag === "script" || tag === "template";
14844
+ // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
14798
14845
  case "html":
14799
14846
  return tag === "head" || tag === "body" || tag === "frameset";
14800
14847
  case "frameset":
@@ -17753,6 +17800,7 @@ function requireReactDom_development() {
17753
17800
  case CaptureUpdate: {
17754
17801
  workInProgress2.flags = workInProgress2.flags & ~ShouldCapture | DidCapture;
17755
17802
  }
17803
+ // Intentional fallthrough
17756
17804
  case UpdateState: {
17757
17805
  var _payload = update.payload;
17758
17806
  var partialState;
@@ -24066,6 +24114,7 @@ function requireReactDom_development() {
24066
24114
  insertOrAppendPlacementNodeIntoContainer(finishedWork, _before, _parent);
24067
24115
  break;
24068
24116
  }
24117
+ // eslint-disable-next-line-no-fallthrough
24069
24118
  default:
24070
24119
  throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.");
24071
24120
  }
@@ -24165,6 +24214,7 @@ function requireReactDom_development() {
24165
24214
  safelyDetachRef(deletedFiber, nearestMountedAncestor);
24166
24215
  }
24167
24216
  }
24217
+ // eslint-disable-next-line-no-fallthrough
24168
24218
  case HostText: {
24169
24219
  {
24170
24220
  var prevHostParent = hostParent;
@@ -25420,6 +25470,9 @@ function requireReactDom_development() {
25420
25470
  case RootFatalErrored: {
25421
25471
  throw new Error("Root did not complete. This is a bug in React.");
25422
25472
  }
25473
+ // Flow knows about invariant, so it complains if I add a break
25474
+ // statement, but eslint doesn't know about invariant, so it complains
25475
+ // if I do. eslint-disable-next-line no-fallthrough
25423
25476
  case RootErrored: {
25424
25477
  commitRoot(root2, workInProgressRootRecoverableErrors, workInProgressTransitions);
25425
25478
  break;
@@ -27064,10 +27117,15 @@ function requireReactDom_development() {
27064
27117
  case REACT_OFFSCREEN_TYPE:
27065
27118
  return createFiberFromOffscreen(pendingProps, mode, lanes, key);
27066
27119
  case REACT_LEGACY_HIDDEN_TYPE:
27120
+ // eslint-disable-next-line no-fallthrough
27067
27121
  case REACT_SCOPE_TYPE:
27122
+ // eslint-disable-next-line no-fallthrough
27068
27123
  case REACT_CACHE_TYPE:
27124
+ // eslint-disable-next-line no-fallthrough
27069
27125
  case REACT_TRACING_MARKER_TYPE:
27126
+ // eslint-disable-next-line no-fallthrough
27070
27127
  case REACT_DEBUG_TRACING_MODE_TYPE:
27128
+ // eslint-disable-next-line no-fallthrough
27071
27129
  default: {
27072
27130
  if (typeof type === "object" && type !== null) {
27073
27131
  switch (type.$$typeof) {
@@ -28234,26 +28292,32 @@ function requireReactDom_development() {
28234
28292
  }
28235
28293
  return reactDom_development;
28236
28294
  }
28237
- function checkDCE() {
28238
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
28239
- return;
28240
- }
28241
- if (process.env.NODE_ENV !== "production") {
28242
- throw new Error("^_^");
28295
+ var hasRequiredReactDom;
28296
+ function requireReactDom() {
28297
+ if (hasRequiredReactDom) return reactDom.exports;
28298
+ hasRequiredReactDom = 1;
28299
+ function checkDCE() {
28300
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
28301
+ return;
28302
+ }
28303
+ if (process.env.NODE_ENV !== "production") {
28304
+ throw new Error("^_^");
28305
+ }
28306
+ try {
28307
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
28308
+ } catch (err) {
28309
+ console.error(err);
28310
+ }
28243
28311
  }
28244
- try {
28245
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
28246
- } catch (err) {
28247
- console.error(err);
28312
+ if (process.env.NODE_ENV === "production") {
28313
+ checkDCE();
28314
+ reactDom.exports = requireReactDom_production_min();
28315
+ } else {
28316
+ reactDom.exports = requireReactDom_development();
28248
28317
  }
28318
+ return reactDom.exports;
28249
28319
  }
28250
- if (process.env.NODE_ENV === "production") {
28251
- checkDCE();
28252
- reactDom.exports = requireReactDom_production_min();
28253
- } else {
28254
- reactDom.exports = requireReactDom_development();
28255
- }
28256
- var reactDomExports = reactDom.exports;
28320
+ var reactDomExports = requireReactDom();
28257
28321
  const $dbSRa$reactdom = /* @__PURE__ */ getDefaultExportFromCjs(reactDomExports);
28258
28322
  export {
28259
28323
  $dbSRa$reactdom as $,
package/dist/index.js CHANGED
@@ -38,6 +38,8 @@ import { ResponsiveLegacy } from "./components/responsive/responsive-legacy.js";
38
38
  import { ResponsivePreview } from "./components/responsive-preview/responsive-preview.js";
39
39
  import { AsyncMultiSelect } from "./components/select/async-multi-select.js";
40
40
  import { AsyncSelect } from "./components/select/async-single-select.js";
41
+ import { __ExperimentalAsyncSelect } from "./components/select/v2/async-select.js";
42
+ import { __ExperimentalSelect } from "./components/select/v2/single-select.js";
41
43
  import { Modal } from "./components/modal/modal.js";
42
44
  import { MultiSelect } from "./components/select/multi-select.js";
43
45
  import { RSClearIndicator, RSDropdownIndicator, RSMultiValue, RSMultiValueContainer, RSMultiValueLabel, RSMultiValueRemove, RSOption, RSSingleValue } from "./components/select/react-select-component-wrappers.js";
@@ -51,7 +53,7 @@ import { Tab, TabList, TabPanel, Tabs } from "./components/tabs/tabs.js";
51
53
  import { Toggle } from "./components/toggle/toggle.js";
52
54
  import { Switch } from "./components/toggle/switch.js";
53
55
  import { ToggleButton } from "./components/toggle-button/toggle-button.js";
54
- import { D, T } from "./tooltip-eKaARDoV.js";
56
+ import { DecorativeTooltip, Tooltip } from "./components/tooltip/tooltip.js";
55
57
  import { VStack } from "./components/layout/vstack.js";
56
58
  import { getColumnConfigOutputText } from "./components/slider/utils.js";
57
59
  export {
@@ -69,7 +71,7 @@ export {
69
71
  ColumnConfigSliderOutput,
70
72
  ComponentToggle,
71
73
  ContainerPanel,
72
- D as DecorativeTooltip,
74
+ DecorativeTooltip,
73
75
  Draggable,
74
76
  DraggableContext,
75
77
  DraggableHandle,
@@ -129,8 +131,10 @@ export {
129
131
  Tabs,
130
132
  Toggle,
131
133
  ToggleButton,
132
- T as Tooltip,
134
+ Tooltip,
133
135
  TriggeredPopover,
134
136
  VStack,
137
+ __ExperimentalAsyncSelect,
138
+ __ExperimentalSelect,
135
139
  getColumnConfigOutputText
136
140
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import React__default, { useMemo, useLayoutEffect, useEffect, useRef, useCallback, useState, createContext, memo, useReducer, useContext } from "react";
3
- import { r as reactDomExports } from "./index-BTCzc3zb.js";
3
+ import { r as reactDomExports } from "./index-D0mHceYg.js";
4
4
  import { c as clsx } from "./lite-DVmmD_-j.js";
5
5
  function useCombinedRefs() {
6
6
  for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -296,6 +296,8 @@ function LiveRegion(_ref) {
296
296
  } = _ref;
297
297
  const visuallyHidden = {
298
298
  position: "fixed",
299
+ top: 0,
300
+ left: 0,
299
301
  width: 1,
300
302
  height: 1,
301
303
  margin: -1,
@@ -1331,6 +1333,9 @@ class AbstractPointerSensor {
1331
1333
  passive: false
1332
1334
  });
1333
1335
  this.listeners.add(events2.end.name, this.handleEnd);
1336
+ if (events2.cancel) {
1337
+ this.listeners.add(events2.cancel.name, this.handleCancel);
1338
+ }
1334
1339
  this.windowListeners.add(EventName.Resize, this.handleCancel);
1335
1340
  this.windowListeners.add(EventName.DragStart, preventDefault);
1336
1341
  this.windowListeners.add(EventName.VisibilityChange, this.handleCancel);
@@ -1444,6 +1449,9 @@ class AbstractPointerSensor {
1444
1449
  }
1445
1450
  }
1446
1451
  const events = {
1452
+ cancel: {
1453
+ name: "pointercancel"
1454
+ },
1447
1455
  move: {
1448
1456
  name: "pointermove"
1449
1457
  },
@@ -1514,6 +1522,9 @@ MouseSensor.activators = [{
1514
1522
  }
1515
1523
  }];
1516
1524
  const events$2 = {
1525
+ cancel: {
1526
+ name: "touchcancel"
1527
+ },
1517
1528
  move: {
1518
1529
  name: "touchmove"
1519
1530
  },
@@ -1722,11 +1733,11 @@ function useScrollIntent(_ref2) {
1722
1733
  }, [disabled, delta, previousDelta]);
1723
1734
  }
1724
1735
  function useCachedNode(draggableNodes, id) {
1725
- const draggableNode = id !== null ? draggableNodes.get(id) : void 0;
1736
+ const draggableNode = id != null ? draggableNodes.get(id) : void 0;
1726
1737
  const node = draggableNode ? draggableNode.node.current : null;
1727
1738
  return useLazyMemo((cachedNode) => {
1728
1739
  var _ref;
1729
- if (id === null) {
1740
+ if (id == null) {
1730
1741
  return null;
1731
1742
  }
1732
1743
  return (_ref = node != null ? node : cachedNode) != null ? _ref : null;
@@ -1926,7 +1937,23 @@ function useRect(element, measure, fallbackRect) {
1926
1937
  if (measure === void 0) {
1927
1938
  measure = defaultMeasure;
1928
1939
  }
1929
- const [rect, measureRect] = useReducer(reducer2, null);
1940
+ const [rect, setRect] = useState(null);
1941
+ function measureRect() {
1942
+ setRect((currentRect) => {
1943
+ if (!element) {
1944
+ return null;
1945
+ }
1946
+ if (element.isConnected === false) {
1947
+ var _ref;
1948
+ return (_ref = currentRect != null ? currentRect : fallbackRect) != null ? _ref : null;
1949
+ }
1950
+ const newRect = measure(element);
1951
+ if (JSON.stringify(currentRect) === JSON.stringify(newRect)) {
1952
+ return currentRect;
1953
+ }
1954
+ return newRect;
1955
+ });
1956
+ }
1930
1957
  const mutationObserver = useMutationObserver({
1931
1958
  callback(records) {
1932
1959
  if (!element) {
@@ -1961,20 +1988,6 @@ function useRect(element, measure, fallbackRect) {
1961
1988
  }
1962
1989
  }, [element]);
1963
1990
  return rect;
1964
- function reducer2(currentRect) {
1965
- if (!element) {
1966
- return null;
1967
- }
1968
- if (element.isConnected === false) {
1969
- var _ref;
1970
- return (_ref = currentRect != null ? currentRect : fallbackRect) != null ? _ref : null;
1971
- }
1972
- const newRect = measure(element);
1973
- if (JSON.stringify(currentRect) === JSON.stringify(newRect)) {
1974
- return currentRect;
1975
- }
1976
- return newRect;
1977
- }
1978
1991
  }
1979
1992
  function useRectDelta(rect) {
1980
1993
  const initialRect = useInitialValue(rect);
@@ -2123,28 +2136,24 @@ function useRects(elements, measure) {
2123
2136
  }
2124
2137
  const [firstElement] = elements;
2125
2138
  const windowRect = useWindowRect(firstElement ? getWindow(firstElement) : null);
2126
- const [rects, measureRects] = useReducer(reducer2, defaultValue$2);
2139
+ const [rects, setRects] = useState(defaultValue$2);
2140
+ function measureRects() {
2141
+ setRects(() => {
2142
+ if (!elements.length) {
2143
+ return defaultValue$2;
2144
+ }
2145
+ return elements.map((element) => isDocumentScrollingElement(element) ? windowRect : new Rect(measure(element), element));
2146
+ });
2147
+ }
2127
2148
  const resizeObserver = useResizeObserver({
2128
2149
  callback: measureRects
2129
2150
  });
2130
- if (elements.length > 0 && rects === defaultValue$2) {
2131
- measureRects();
2132
- }
2133
2151
  useIsomorphicLayoutEffect(() => {
2134
- if (elements.length) {
2135
- elements.forEach((element) => resizeObserver == null ? void 0 : resizeObserver.observe(element));
2136
- } else {
2137
- resizeObserver == null ? void 0 : resizeObserver.disconnect();
2138
- measureRects();
2139
- }
2152
+ resizeObserver == null ? void 0 : resizeObserver.disconnect();
2153
+ measureRects();
2154
+ elements.forEach((element) => resizeObserver == null ? void 0 : resizeObserver.observe(element));
2140
2155
  }, [elements]);
2141
2156
  return rects;
2142
- function reducer2() {
2143
- if (!elements.length) {
2144
- return defaultValue$2;
2145
- }
2146
- return elements.map((element) => isDocumentScrollingElement(element) ? windowRect : new Rect(measure(element), element));
2147
- }
2148
2157
  }
2149
2158
  function getMeasurableNode(node) {
2150
2159
  if (!node) {
@@ -2311,7 +2320,7 @@ function reducer(state, action) {
2311
2320
  }
2312
2321
  };
2313
2322
  case Action.DragMove:
2314
- if (!state.draggable.active) {
2323
+ if (state.draggable.active == null) {
2315
2324
  return state;
2316
2325
  }
2317
2326
  return {
@@ -2573,7 +2582,7 @@ const DndContext = /* @__PURE__ */ memo(function DndContext2(_ref) {
2573
2582
  containers: droppableContainers
2574
2583
  }
2575
2584
  } = state;
2576
- const node = activeId ? draggableNodes.get(activeId) : null;
2585
+ const node = activeId != null ? draggableNodes.get(activeId) : null;
2577
2586
  const activeRects = useRef({
2578
2587
  initial: null,
2579
2588
  translated: null
@@ -2608,7 +2617,7 @@ const DndContext = /* @__PURE__ */ memo(function DndContext2(_ref) {
2608
2617
  const autoScrollOptions = getAutoScrollerOptions();
2609
2618
  const initialActiveNodeRect = useInitialRect(activeNode, measuringConfiguration.draggable.measure);
2610
2619
  useLayoutShiftScrollCompensation({
2611
- activeNode: activeId ? draggableNodes.get(activeId) : null,
2620
+ activeNode: activeId != null ? draggableNodes.get(activeId) : null,
2612
2621
  config: autoScrollOptions.layoutShiftCompensation,
2613
2622
  initialRect: initialActiveNodeRect,
2614
2623
  measure: measuringConfiguration.draggable.measure
@@ -2676,6 +2685,7 @@ const DndContext = /* @__PURE__ */ memo(function DndContext2(_ref) {
2676
2685
  const [over, setOver] = useState(null);
2677
2686
  const appliedTranslate = usesDragOverlay ? modifiedTranslate : add(modifiedTranslate, activeNodeScrollDelta);
2678
2687
  const transform = adjustScale(appliedTranslate, (_over$rect = over == null ? void 0 : over.rect) != null ? _over$rect : null, activeNodeRect);
2688
+ const activeSensorRef = useRef(null);
2679
2689
  const instantiateSensor = useCallback(
2680
2690
  (event, _ref2) => {
2681
2691
  let {
@@ -2711,6 +2721,7 @@ const DndContext = /* @__PURE__ */ memo(function DndContext2(_ref) {
2711
2721
  onDragStart
2712
2722
  } = latestProps.current;
2713
2723
  const event2 = {
2724
+ activatorEvent: activatorEvent2,
2714
2725
  active: {
2715
2726
  id: id2,
2716
2727
  data: draggableNode.data,
@@ -2729,6 +2740,8 @@ const DndContext = /* @__PURE__ */ memo(function DndContext2(_ref) {
2729
2740
  type: "onDragStart",
2730
2741
  event: event2
2731
2742
  });
2743
+ setActiveSensor(activeSensorRef.current);
2744
+ setActivatorEvent(activatorEvent2);
2732
2745
  });
2733
2746
  },
2734
2747
  onMove(coordinates) {
@@ -2740,10 +2753,7 @@ const DndContext = /* @__PURE__ */ memo(function DndContext2(_ref) {
2740
2753
  onEnd: createHandler(Action.DragEnd),
2741
2754
  onCancel: createHandler(Action.DragCancel)
2742
2755
  });
2743
- reactDomExports.unstable_batchedUpdates(() => {
2744
- setActiveSensor(sensorInstance);
2745
- setActivatorEvent(event.nativeEvent);
2746
- });
2756
+ activeSensorRef.current = sensorInstance;
2747
2757
  function createHandler(type) {
2748
2758
  return async function handler() {
2749
2759
  const {
@@ -2780,6 +2790,7 @@ const DndContext = /* @__PURE__ */ memo(function DndContext2(_ref) {
2780
2790
  setOver(null);
2781
2791
  setActiveSensor(null);
2782
2792
  setActivatorEvent(null);
2793
+ activeSensorRef.current = null;
2783
2794
  const eventName = type === Action.DragEnd ? "onDragEnd" : "onDragCancel";
2784
2795
  if (event2) {
2785
2796
  const handler2 = latestProps.current[eventName];
@@ -3005,7 +3016,7 @@ const DndContext = /* @__PURE__ */ memo(function DndContext2(_ref) {
3005
3016
  });
3006
3017
  const NullContext = /* @__PURE__ */ createContext(null);
3007
3018
  const defaultRole = "button";
3008
- const ID_PREFIX$1 = "Droppable";
3019
+ const ID_PREFIX$1 = "Draggable";
3009
3020
  function useDraggable(_ref) {
3010
3021
  let {
3011
3022
  id,
@@ -3154,7 +3165,7 @@ function useDroppable(_ref) {
3154
3165
  resizeObserverConnected.current = false;
3155
3166
  resizeObserver.observe(nodeRef.current);
3156
3167
  }, [nodeRef, resizeObserver]);
3157
- useIsomorphicLayoutEffect(
3168
+ useEffect(
3158
3169
  () => {
3159
3170
  dispatch({
3160
3171
  type: Action.RegisterDroppable,
@@ -3536,7 +3547,7 @@ function useSortable(_ref) {
3536
3547
  if (activeId === previous.current.activeId) {
3537
3548
  return;
3538
3549
  }
3539
- if (activeId && !previous.current.activeId) {
3550
+ if (activeId != null && previous.current.activeId == null) {
3540
3551
  previous.current.activeId = activeId;
3541
3552
  return;
3542
3553
  }