@eightshift/ui-components 8.4.0 → 8.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 (95) hide show
  1. package/dist/{Autocomplete-Dqkum3dO.js → Autocomplete-DWofaS1k.js} +3 -3
  2. package/dist/{Button-DHgs_rCq.js → Button-DcI8gSfH.js} +5 -5
  3. package/dist/{Dialog-CldDJ_4u.js → Dialog-CSqjSLlO.js} +119 -47
  4. package/dist/{Disclosure-BHNgL5Is.js → Disclosure-CkaUMe7J.js} +5 -5
  5. package/dist/{FocusScope-CUuL5wjz.js → FocusScope-DLpr7Rq0.js} +1 -1
  6. package/dist/{ListBox-CZXso3mJ.js → ListBox-D8_U8eBS.js} +8 -8
  7. package/dist/{NumberFormatter-Bwdv413k.js → NumberFormatter-BbOYa3Kg.js} +0 -34
  8. package/dist/{RadioGroup-BTByPMrl.js → RadioGroup-BZkgf6tl.js} +8 -8
  9. package/dist/{SearchField-DkX1vqMN.js → SearchField-N1nXzeWK.js} +5 -5
  10. package/dist/{Slider-Dw-JjfLx.js → Slider-Dryu0gH7.js} +7 -7
  11. package/dist/{VisuallyHidden-ZZwHZDro.js → VisuallyHidden-2DfCzdKo.js} +1 -1
  12. package/dist/animation-COu1iBGW.js +65 -0
  13. package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
  14. package/dist/{button-ldR_tlvk.js → button-NgEJ1eT2.js} +5 -5
  15. package/dist/{checkbox-DDyLJRY8.js → checkbox-DfZDR444.js} +7 -7
  16. package/dist/{color-swatch-DmhdOhe4.js → color-swatch-CEYPwPsn.js} +6 -5
  17. package/dist/components/button/button.js +1 -1
  18. package/dist/components/checkbox/checkbox.js +1 -1
  19. package/dist/components/color-pickers/color-picker.js +1 -1
  20. package/dist/components/color-pickers/color-swatch.js +1 -1
  21. package/dist/components/color-pickers/gradient-editor.js +1 -1
  22. package/dist/components/color-pickers/solid-color-picker.js +1 -1
  23. package/dist/components/component-toggle/component-toggle.js +3 -3
  24. package/dist/components/container-panel/container-panel.js +3 -3
  25. package/dist/components/contextual-help/contextual-help.js +2 -2
  26. package/dist/components/draggable/draggable.js +1 -1
  27. package/dist/components/expandable/expandable.js +2 -2
  28. package/dist/components/index.js +14 -14
  29. package/dist/components/input-field/input-field.js +1 -1
  30. package/dist/components/link-input/link-input.js +1 -1
  31. package/dist/components/matrix-align/matrix-align.js +1 -1
  32. package/dist/components/menu/menu.js +2 -2
  33. package/dist/components/modal/modal.js +1 -1
  34. package/dist/components/number-picker/number-picker.js +1 -1
  35. package/dist/components/option-select/option-select.js +2 -2
  36. package/dist/components/popover/popover.js +3 -3
  37. package/dist/components/prompt-popover/prompt-popover.js +1 -1
  38. package/dist/components/radio/radio.js +1 -1
  39. package/dist/components/repeater/repeater-item.js +1 -1
  40. package/dist/components/repeater/repeater.js +1 -1
  41. package/dist/components/responsive/mini-responsive.js +2 -2
  42. package/dist/components/responsive/responsive-legacy.js +3 -3
  43. package/dist/components/responsive/responsive.js +3 -3
  44. package/dist/components/select/async-multi-select.js +8 -8
  45. package/dist/components/select/async-select.js +8 -8
  46. package/dist/components/select/multi-select.js +9 -9
  47. package/dist/components/select/shared.js +1 -1
  48. package/dist/components/select/single-select.js +9 -9
  49. package/dist/components/slider/column-config-slider.js +2 -2
  50. package/dist/components/slider/slider.js +3 -3
  51. package/dist/components/smart-image/smart-image.js +2 -2
  52. package/dist/components/tabs/tabs.js +1 -1
  53. package/dist/components/toggle/switch.js +1 -1
  54. package/dist/components/toggle/toggle.js +1 -1
  55. package/dist/components/toggle-button/toggle-button.js +1 -1
  56. package/dist/components/tooltip/tooltip.js +1 -1
  57. package/dist/{draggable-oS68xcYX.js → draggable-CE4MJU75.js} +248 -85
  58. package/dist/{filterDOMProps-CgeMQsGa.js → filterDOMProps-BV6v3Ytq.js} +2 -1
  59. package/dist/getMetaValue-Cpc6U0mQ.js +18 -0
  60. package/dist/{gradient-editor-DP8ioFX1.js → gradient-editor-CO1iXPM9.js} +4 -4
  61. package/dist/icons/icon.d.ts +2 -2
  62. package/dist/icons/icon.js +6 -10
  63. package/dist/index.js +14 -14
  64. package/dist/{input-field-C-XvZeCZ.js → input-field-msAE2llt.js} +5 -5
  65. package/dist/keyboard-DwWaJveG.js +205 -0
  66. package/dist/{link-input-DdwuqoMg.js → link-input-D1BWznvA.js} +27 -17
  67. package/dist/{modal-DZco5MDu.js → modal-DPHjb2V4.js} +81 -33
  68. package/dist/{number-picker-XqKW0BNi.js → number-picker-Dqwxp_2B.js} +5 -5
  69. package/dist/{react-O71mlJXS.js → react-c-t8odpE.js} +6723 -5493
  70. package/dist/{shared-YXMIX2ka.js → shared-s7XUBOVx.js} +12 -12
  71. package/dist/{solid-color-picker-D5LEdmDM.js → solid-color-picker-CDrcphjC.js} +10 -10
  72. package/dist/{switch-Bo6nmed_.js → switch-bqIILR_c.js} +6 -6
  73. package/dist/{tabs-DE-qb7Kt.js → tabs-DvGKX3V7.js} +7 -7
  74. package/dist/{textSelection-C17LWYmO.js → textSelection-BYhA9uWK.js} +1 -1
  75. package/dist/{toggle-button-Cb4yCEua.js → toggle-button-g3dLI2F1.js} +6 -6
  76. package/dist/{tooltip-CT-vzIdz.js → tooltip-Dd1nNj0_.js} +4 -4
  77. package/dist/{useButton-V65TBDGM.js → useButton-BO_4n6_e.js} +3 -3
  78. package/dist/{useCollection-DqUS7tjk.js → useCollection-BVUc8URe.js} +17 -7
  79. package/dist/{useEvent-C9zwSNzZ.js → useEvent-5yhOs2HC.js} +1 -1
  80. package/dist/{useFilter-C75IzdIZ.js → useFilter-Yp-QyW1S.js} +1 -1
  81. package/dist/{useFocusRing-JidySWlU.js → useFocusRing-DxPoGWMJ.js} +1 -1
  82. package/dist/{useFormReset-Sp8-miDa.js → useFormReset-DFy_BhX1.js} +1 -1
  83. package/dist/{useFormValidation-CpmQEh8J.js → useFormValidation-CZPIMeNw.js} +1 -1
  84. package/dist/{useHover-CaY3sRjL.js → useHover-DgudzTcf.js} +54 -90
  85. package/dist/{useListState-CzB3v6M9.js → useListState-DTn91yqB.js} +1 -1
  86. package/dist/{useNumberFieldState-DC3XY3DQ.js → useNumberFieldState-D-Bsp98Z.js} +10 -10
  87. package/dist/{useNumberFormatter-DbAt_fC_.js → useNumberFormatter-DNUGdm93.js} +1 -1
  88. package/dist/{useOverlayTriggerState-BKmSTK_5.js → useOverlayTriggerState-uzs8mam6.js} +2 -2
  89. package/dist/{usePress-CUCWcP-m.js → usePress-BpGYwCwy.js} +3 -18
  90. package/dist/{useTextField-C3QIkMON.js → useTextField-C9dxy3po.js} +5 -5
  91. package/dist/{useToggle-bbGRUbo4.js → useToggle-CudcGIyz.js} +5 -5
  92. package/dist/{useToggleState-D_rLMrVW.js → useToggleState-CYfSFy4b.js} +1 -1
  93. package/package.json +21 -21
  94. package/dist/animation-COc9P6ap.js +0 -60
  95. package/dist/keyboard-Cdqi5ZQQ.js +0 -55
@@ -1,6 +1,6 @@
1
1
  import { t as clsx } from "../../clsx-DQoRUQAf.js";
2
2
  import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-C4bJkVti.js";
3
- import { t as Switch } from "../../switch-Bo6nmed_.js";
3
+ import { t as Switch } from "../../switch-bqIILR_c.js";
4
4
  import { RichLabel } from "../rich-label/rich-label.js";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { t as ToggleButton } from "../../toggle-button-Cb4yCEua.js";
1
+ import { t as ToggleButton } from "../../toggle-button-g3dLI2F1.js";
2
2
  export { ToggleButton };
@@ -1,2 +1,2 @@
1
- import { n as Tooltip, t as DecorativeTooltip } from "../../tooltip-CT-vzIdz.js";
1
+ import { n as Tooltip, t as DecorativeTooltip } from "../../tooltip-Dd1nNj0_.js";
2
2
  export { DecorativeTooltip, Tooltip };
@@ -1664,7 +1664,7 @@ var _init3$1;
1664
1664
  var _type;
1665
1665
  var _modifiers;
1666
1666
  var _status;
1667
- var Draggable$2 = class extends (_c$1 = Entity, _type_dec = [reactive], _modifiers_dec = [reactive], _status_dec = [reactive], _isDropping_dec = [derived], _isDragging_dec = [derived], _isDragSource_dec = [derived], _c$1) {
1667
+ var Draggable$1 = class extends (_c$1 = Entity, _type_dec = [reactive], _modifiers_dec = [reactive], _status_dec = [reactive], _isDropping_dec = [derived], _isDragging_dec = [derived], _isDragSource_dec = [derived], _c$1) {
1668
1668
  constructor(_a, manager) {
1669
1669
  var _b = _a, { modifiers, type, sensors, plugins, effects: effects6 } = _b, input = __objRest$3(_b, [
1670
1670
  "modifiers",
@@ -1719,13 +1719,13 @@ _init3$1 = __decoratorStart$3(_c$1);
1719
1719
  _type = new WeakMap();
1720
1720
  _modifiers = new WeakMap();
1721
1721
  _status = new WeakMap();
1722
- __decorateElement$3(_init3$1, 4, "type", _type_dec, Draggable$2, _type);
1723
- __decorateElement$3(_init3$1, 4, "modifiers", _modifiers_dec, Draggable$2, _modifiers);
1724
- __decorateElement$3(_init3$1, 4, "status", _status_dec, Draggable$2, _status);
1725
- __decorateElement$3(_init3$1, 2, "isDropping", _isDropping_dec, Draggable$2);
1726
- __decorateElement$3(_init3$1, 2, "isDragging", _isDragging_dec, Draggable$2);
1727
- __decorateElement$3(_init3$1, 2, "isDragSource", _isDragSource_dec, Draggable$2);
1728
- __decoratorMetadata$3(_init3$1, Draggable$2);
1722
+ __decorateElement$3(_init3$1, 4, "type", _type_dec, Draggable$1, _type);
1723
+ __decorateElement$3(_init3$1, 4, "modifiers", _modifiers_dec, Draggable$1, _modifiers);
1724
+ __decorateElement$3(_init3$1, 4, "status", _status_dec, Draggable$1, _status);
1725
+ __decorateElement$3(_init3$1, 2, "isDropping", _isDropping_dec, Draggable$1);
1726
+ __decorateElement$3(_init3$1, 2, "isDragging", _isDragging_dec, Draggable$1);
1727
+ __decorateElement$3(_init3$1, 2, "isDragSource", _isDragSource_dec, Draggable$1);
1728
+ __decoratorMetadata$3(_init3$1, Draggable$1);
1729
1729
  var _isDropTarget_dec;
1730
1730
  var _shape_dec;
1731
1731
  var _collisionPriority_dec;
@@ -1920,12 +1920,13 @@ var _dropped_dec;
1920
1920
  var _dragging_dec;
1921
1921
  var _initialized_dec;
1922
1922
  var _initializing_dec;
1923
+ var _initializationPending_dec;
1923
1924
  var _idle_dec;
1924
1925
  var _current_dec;
1925
1926
  var _value_dec = [reactive];
1926
1927
  var _init5$1;
1927
1928
  var _value;
1928
- _current_dec = [derived], _idle_dec = [derived], _initializing_dec = [derived], _initialized_dec = [derived], _dragging_dec = [derived], _dropped_dec = [derived];
1929
+ _current_dec = [derived], _idle_dec = [derived], _initializationPending_dec = [derived], _initializing_dec = [derived], _initialized_dec = [derived], _dragging_dec = [derived], _dropped_dec = [derived];
1929
1930
  var Status = class {
1930
1931
  constructor() {
1931
1932
  __runInitializers$3(_init5$1, 5, this);
@@ -1937,6 +1938,9 @@ var Status = class {
1937
1938
  get idle() {
1938
1939
  return this.value === "idle";
1939
1940
  }
1941
+ get initializationPending() {
1942
+ return this.value === "initialization-pending";
1943
+ }
1940
1944
  get initializing() {
1941
1945
  return this.value === "initializing";
1942
1946
  }
@@ -1964,6 +1968,7 @@ _value = new WeakMap();
1964
1968
  __decorateElement$3(_init5$1, 4, "value", _value_dec, Status, _value);
1965
1969
  __decorateElement$3(_init5$1, 2, "current", _current_dec, Status);
1966
1970
  __decorateElement$3(_init5$1, 2, "idle", _idle_dec, Status);
1971
+ __decorateElement$3(_init5$1, 2, "initializationPending", _initializationPending_dec, Status);
1967
1972
  __decorateElement$3(_init5$1, 2, "initializing", _initializing_dec, Status);
1968
1973
  __decorateElement$3(_init5$1, 2, "initialized", _initialized_dec, Status);
1969
1974
  __decorateElement$3(_init5$1, 2, "dragging", _dragging_dec, Status);
@@ -2251,7 +2256,7 @@ var DragDropRegistry = class {
2251
2256
  this.modifiers = new PluginRegistry(manager);
2252
2257
  }
2253
2258
  register(input, options) {
2254
- if (input instanceof Draggable$2) return this.draggables.register(input.id, input);
2259
+ if (input instanceof Draggable$1) return this.draggables.register(input.id, input);
2255
2260
  if (input instanceof Droppable$1) return this.droppables.register(input.id, input);
2256
2261
  if (input.prototype instanceof Modifier) return this.modifiers.register(input, options);
2257
2262
  if (input.prototype instanceof Sensor) return this.sensors.register(input, options);
@@ -2260,7 +2265,7 @@ var DragDropRegistry = class {
2260
2265
  }
2261
2266
  unregister(input) {
2262
2267
  if (input instanceof Entity) {
2263
- if (input instanceof Draggable$2) return this.draggables.unregister(input.id, input);
2268
+ if (input instanceof Draggable$1) return this.draggables.unregister(input.id, input);
2264
2269
  if (input instanceof Droppable$1) return this.droppables.unregister(input.id, input);
2265
2270
  return () => {};
2266
2271
  }
@@ -2948,7 +2953,7 @@ function isVisible(element, boundingClientRect = element.getBoundingClientRect()
2948
2953
  const { width, height } = getVisibleBoundingRectangle(element, boundingClientRect);
2949
2954
  return width > 0 && height > 0;
2950
2955
  }
2951
- var Observer = canUseDOM ? ResizeObserver : class MockResizeObserver {
2956
+ var Observer = typeof ResizeObserver !== "undefined" ? ResizeObserver : class MockResizeObserver {
2952
2957
  observe() {}
2953
2958
  unobserve() {}
2954
2959
  disconnect() {}
@@ -3237,8 +3242,8 @@ function getScrollPosition(scrollableElement) {
3237
3242
  isRight: position.current.x >= position.max.x
3238
3243
  };
3239
3244
  }
3240
- function canScroll(scrollableElement, by) {
3241
- const { isTop, isBottom, isLeft, isRight, position } = getScrollPosition(scrollableElement);
3245
+ function canScroll(scrollableElement, by, scrollPosition = getScrollPosition(scrollableElement)) {
3246
+ const { isTop, isBottom, isLeft, isRight, position } = scrollPosition;
3242
3247
  const { x, y } = by != null ? by : {
3243
3248
  x: 0,
3244
3249
  y: 0
@@ -3469,9 +3474,9 @@ var defaultTolerance = {
3469
3474
  x: 10,
3470
3475
  y: 10
3471
3476
  };
3472
- function detectScrollIntent(scrollableElement, coordinates, intent, acceleration = 25, thresholdPercentage = defaultThreshold, tolerance = defaultTolerance) {
3477
+ function detectScrollIntent(scrollableElement, coordinates, intent, acceleration = 25, thresholdPercentage = defaultThreshold, tolerance = defaultTolerance, scrollPosition = getScrollPosition(scrollableElement)) {
3473
3478
  const { x, y } = coordinates;
3474
- const { rect, isTop, isBottom, isLeft, isRight } = getScrollPosition(scrollableElement);
3479
+ const { rect, isTop, isBottom, isLeft, isRight } = scrollPosition;
3475
3480
  const frameTransform = getFrameTransform(scrollableElement);
3476
3481
  const parsedTransform = parseTransform(getComputedStyles(scrollableElement, true));
3477
3482
  const isXAxisInverted = parsedTransform !== null ? (parsedTransform == null ? void 0 : parsedTransform.scaleX) < 0 : false;
@@ -4059,6 +4064,10 @@ function isFocusable(element) {
4059
4064
  "button"
4060
4065
  ].includes(tagName);
4061
4066
  }
4067
+ function supportsPressedState(element) {
4068
+ var _a5;
4069
+ return ((_a5 = element.getAttribute("role")) != null ? _a5 : "button") === "button";
4070
+ }
4062
4071
  function createHiddenText(id, value) {
4063
4072
  const element = document.createElement("div");
4064
4073
  element.id = id;
@@ -4145,7 +4154,8 @@ var Accessibility = class extends Plugin {
4145
4154
  if (!activator.hasAttribute("role") && !(activator.tagName.toLowerCase() === "button")) mutations.add(() => activator.setAttribute("role", defaultAttributes.role));
4146
4155
  if (!activator.hasAttribute("aria-roledescription")) mutations.add(() => activator.setAttribute("aria-roledescription", defaultAttributes.roleDescription));
4147
4156
  if (!activator.hasAttribute("aria-describedby")) mutations.add(() => activator.setAttribute("aria-describedby", descriptionId));
4148
- for (const key of ["aria-pressed", "aria-grabbed"]) {
4157
+ const stateAttributes = supportsPressedState(activator) ? ["aria-pressed", "aria-grabbed"] : ["aria-grabbed"];
4158
+ for (const key of stateAttributes) {
4149
4159
  const value = String(draggable.isDragging);
4150
4160
  if (activator.getAttribute(key) !== value) mutations.add(() => activator.setAttribute(key, value));
4151
4161
  }
@@ -4173,26 +4183,38 @@ function debounce(fn, wait) {
4173
4183
  return debounced;
4174
4184
  }
4175
4185
  var styleRegistry = new Map();
4186
+ function isAttached(root) {
4187
+ return isShadowRoot(root) ? root.host.isConnected : root.defaultView != null;
4188
+ }
4176
4189
  var _roots_dec;
4177
4190
  var _targetRoot_dec;
4178
4191
  var _sourceRoot_dec;
4179
4192
  var _additionalRoots_dec;
4193
+ var _registeredRules_dec;
4180
4194
  var _a$1;
4181
- var _registeredRules;
4182
4195
  var _init$2;
4196
+ var _registeredRules;
4183
4197
  var _additionalRoots;
4198
+ var _retainedRoots;
4199
+ var _injections;
4184
4200
  var _StyleInjector_instances;
4185
4201
  var syncStyles_fn;
4186
4202
  var inject_fn;
4187
4203
  var injectStyleElement_fn;
4188
4204
  var injectAdoptedSheet_fn;
4189
- var _StyleInjector = class _StyleInjector extends (_a$1 = CorePlugin, _additionalRoots_dec = [reactive], _sourceRoot_dec = [derived], _targetRoot_dec = [derived], _roots_dec = [derived], _a$1) {
4205
+ var _StyleInjector = class _StyleInjector extends (_a$1 = CorePlugin, _registeredRules_dec = [reactive], _additionalRoots_dec = [reactive], _sourceRoot_dec = [derived], _targetRoot_dec = [derived], _roots_dec = [derived], _a$1) {
4190
4206
  constructor(manager, options) {
4191
4207
  super(manager, options);
4192
4208
  __runInitializers$2(_init$2, 5, this);
4193
4209
  __privateAdd$2(this, _StyleInjector_instances);
4194
- __privateAdd$2(this, _registeredRules, new Set());
4195
- __privateAdd$2(this, _additionalRoots, __runInitializers$2(_init$2, 8, this, new Set())), __runInitializers$2(_init$2, 11, this);
4210
+ __privateAdd$2(this, _registeredRules, __runInitializers$2(_init$2, 8, this, new Map())), __runInitializers$2(_init$2, 11, this);
4211
+ __privateAdd$2(this, _additionalRoots, __runInitializers$2(_init$2, 12, this, new Set())), __runInitializers$2(_init$2, 15, this);
4212
+ /**
4213
+ * Roots that have taken part in a drag operation, where retained rules stay
4214
+ * injected between drag operations.
4215
+ */
4216
+ __privateAdd$2(this, _retainedRoots, new Set());
4217
+ __privateAdd$2(this, _injections, new Map());
4196
4218
  this.registerEffect(__privateMethod(this, _StyleInjector_instances, syncStyles_fn));
4197
4219
  }
4198
4220
  /**
@@ -4202,10 +4224,19 @@ var _StyleInjector = class _StyleInjector extends (_a$1 = CorePlugin, _additiona
4202
4224
  *
4203
4225
  * Returns a cleanup function that unregisters the rules.
4204
4226
  */
4205
- register(cssRules) {
4206
- __privateGet$2(this, _registeredRules).add(cssRules);
4227
+ register(cssRules, options) {
4228
+ f(() => {
4229
+ var _a5;
4230
+ const rules = new Map(this.registeredRules);
4231
+ rules.set(cssRules, (_a5 = options == null ? void 0 : options.retain) != null ? _a5 : false);
4232
+ this.registeredRules = rules;
4233
+ });
4207
4234
  return () => {
4208
- __privateGet$2(this, _registeredRules).delete(cssRules);
4235
+ f(() => {
4236
+ const rules = new Map(this.registeredRules);
4237
+ rules.delete(cssRules);
4238
+ this.registeredRules = rules;
4239
+ });
4209
4240
  };
4210
4241
  }
4211
4242
  /**
@@ -4244,18 +4275,60 @@ var _StyleInjector = class _StyleInjector extends (_a$1 = CorePlugin, _additiona
4244
4275
  }
4245
4276
  return new Set();
4246
4277
  }
4278
+ destroy() {
4279
+ for (const injected of __privateGet$2(this, _injections).values()) for (const cleanup of injected.values()) cleanup();
4280
+ __privateGet$2(this, _injections).clear();
4281
+ __privateGet$2(this, _retainedRoots).clear();
4282
+ super.destroy();
4283
+ }
4247
4284
  };
4248
4285
  _init$2 = __decoratorStart$2(_a$1);
4249
4286
  _registeredRules = new WeakMap();
4250
4287
  _additionalRoots = new WeakMap();
4288
+ _retainedRoots = new WeakMap();
4289
+ _injections = new WeakMap();
4251
4290
  _StyleInjector_instances = new WeakSet();
4291
+ /**
4292
+ * Injects and removes only the rules whose target roots changed, so that a
4293
+ * stylesheet that is still needed is never removed and added back.
4294
+ */
4252
4295
  syncStyles_fn = function() {
4253
- const { roots } = this;
4254
- const cleanups = [];
4255
- for (const root of roots) for (const cssRules of __privateGet$2(this, _registeredRules)) cleanups.push(__privateMethod(this, _StyleInjector_instances, inject_fn).call(this, root, cssRules));
4256
- return () => {
4257
- for (const cleanup of cleanups) cleanup();
4258
- };
4296
+ const { roots, registeredRules } = this;
4297
+ for (const root of roots) __privateGet$2(this, _retainedRoots).add(root);
4298
+ const wanted = new Map();
4299
+ for (const root of __privateGet$2(this, _retainedRoots)) {
4300
+ const active = roots.has(root);
4301
+ if (!active && !isAttached(root)) {
4302
+ __privateGet$2(this, _retainedRoots).delete(root);
4303
+ continue;
4304
+ }
4305
+ for (const [cssRules, retain] of registeredRules) {
4306
+ if (!active && !retain) continue;
4307
+ let rules = wanted.get(root);
4308
+ if (!rules) {
4309
+ rules = new Set();
4310
+ wanted.set(root, rules);
4311
+ }
4312
+ rules.add(cssRules);
4313
+ }
4314
+ }
4315
+ for (const [root, injected] of __privateGet$2(this, _injections)) {
4316
+ const rules = wanted.get(root);
4317
+ for (const [cssRules, cleanup] of injected) {
4318
+ if (rules == null ? void 0 : rules.has(cssRules)) continue;
4319
+ cleanup();
4320
+ injected.delete(cssRules);
4321
+ }
4322
+ if (injected.size === 0) __privateGet$2(this, _injections).delete(root);
4323
+ }
4324
+ for (const [root, rules] of wanted) {
4325
+ let injected = __privateGet$2(this, _injections).get(root);
4326
+ if (!injected) {
4327
+ injected = new Map();
4328
+ __privateGet$2(this, _injections).set(root, injected);
4329
+ }
4330
+ for (const cssRules of rules) if (!injected.has(cssRules)) injected.set(cssRules, __privateMethod(this, _StyleInjector_instances, inject_fn).call(this, root, cssRules));
4331
+ }
4259
4332
  };
4260
4333
  inject_fn = function(root, cssRules) {
4261
4334
  let rootStyles = styleRegistry.get(root);
@@ -4336,6 +4409,7 @@ injectAdoptedSheet_fn = function(root, rootStyles, cssRules) {
4336
4409
  }
4337
4410
  };
4338
4411
  };
4412
+ __decorateElement$2(_init$2, 4, "registeredRules", _registeredRules_dec, _StyleInjector, _registeredRules);
4339
4413
  __decorateElement$2(_init$2, 4, "additionalRoots", _additionalRoots_dec, _StyleInjector, _additionalRoots);
4340
4414
  __decorateElement$2(_init$2, 2, "sourceRoot", _sourceRoot_dec, _StyleInjector);
4341
4415
  __decorateElement$2(_init$2, 2, "targetRoot", _targetRoot_dec, _StyleInjector);
@@ -4675,7 +4749,7 @@ var _Feedback = class _Feedback extends (_a2 = Plugin, _overlay_dec = [reactive]
4675
4749
  current: {}
4676
4750
  };
4677
4751
  const styleInjector = manager.registry.plugins.get(StyleInjector);
4678
- const unregisterStyles = styleInjector == null ? void 0 : styleInjector.register(CSS_RULES);
4752
+ const unregisterStyles = styleInjector == null ? void 0 : styleInjector.register(CSS_RULES, { retain: true });
4679
4753
  if (unregisterStyles) {
4680
4754
  const originalDestroy = this.destroy.bind(this);
4681
4755
  this.destroy = () => {
@@ -5089,9 +5163,10 @@ var Scroller = class extends (_a4 = CorePlugin, _autoScrolling_dec = [reactive],
5089
5163
  const scrollIntent = intent ? void 0 : this.scrollIntentTracker.current;
5090
5164
  if (scrollIntent == null ? void 0 : scrollIntent.isLocked()) return false;
5091
5165
  for (const scrollableElement of elements) {
5092
- const elementCanScroll = canScroll(scrollableElement, by);
5166
+ const scrollPosition = getScrollPosition(scrollableElement);
5167
+ const elementCanScroll = canScroll(scrollableElement, by, scrollPosition);
5093
5168
  if (elementCanScroll.x || elementCanScroll.y) {
5094
- const { speed, direction } = detectScrollIntent(scrollableElement, currentPosition, intent, scrollOptions == null ? void 0 : scrollOptions.acceleration, scrollOptions == null ? void 0 : scrollOptions.threshold);
5169
+ const { speed, direction } = detectScrollIntent(scrollableElement, currentPosition, intent, scrollOptions == null ? void 0 : scrollOptions.acceleration, scrollOptions == null ? void 0 : scrollOptions.threshold, void 0, scrollPosition);
5095
5170
  if (scrollIntent) {
5096
5171
  for (const axis of Axes) if (scrollIntent[axis].isLocked(direction[axis])) {
5097
5172
  speed[axis] = 0;
@@ -5293,6 +5368,55 @@ function removeSelection() {
5293
5368
  var _a5;
5294
5369
  (_a5 = document.getSelection()) == null || _a5.removeAllRanges();
5295
5370
  }
5371
+ function isKeyboardKey(event, codes) {
5372
+ const eventKey = normalizeKey(event.key);
5373
+ return codes.some((code) => normalizeKey(code) === eventKey);
5374
+ }
5375
+ var namedKeys = new Set([
5376
+ "alt",
5377
+ "altgraph",
5378
+ "backspace",
5379
+ "capslock",
5380
+ "control",
5381
+ "delete",
5382
+ "end",
5383
+ "enter",
5384
+ "escape",
5385
+ "home",
5386
+ "insert",
5387
+ "meta",
5388
+ "pagedown",
5389
+ "pageup",
5390
+ "pause",
5391
+ "printscreen",
5392
+ "shift",
5393
+ "space",
5394
+ "tab",
5395
+ "arrowdown",
5396
+ "arrowleft",
5397
+ "arrowright",
5398
+ "arrowup",
5399
+ "f1",
5400
+ "f2",
5401
+ "f3",
5402
+ "f4",
5403
+ "f5",
5404
+ "f6",
5405
+ "f7",
5406
+ "f8",
5407
+ "f9",
5408
+ "f10",
5409
+ "f11",
5410
+ "f12"
5411
+ ]);
5412
+ function normalizeKey(key) {
5413
+ if (key === " " || key === "Spacebar") return "space";
5414
+ if (/^Key[A-Z]$/.test(key)) return key.slice(3).toLowerCase();
5415
+ if (/^Digit[0-9]$/.test(key)) return key.slice(5);
5416
+ if (key.length === 1) return key.toLowerCase();
5417
+ const lowerCaseKey = key.toLowerCase();
5418
+ return namedKeys.has(lowerCaseKey) ? lowerCaseKey : key;
5419
+ }
5296
5420
  var defaults = Object.freeze({
5297
5421
  offset: 10,
5298
5422
  keyboardCodes: {
@@ -5327,7 +5451,7 @@ var _KeyboardSensor = class _KeyboardSensor extends Sensor {
5327
5451
  if (!isElement(event.target)) return;
5328
5452
  if (source.disabled) return;
5329
5453
  const { keyboardCodes = defaults.keyboardCodes, preventActivation = defaults.preventActivation } = options != null ? options : {};
5330
- if (!keyboardCodes.start.includes(event.code)) return;
5454
+ if (!isKeyboardKey(event, keyboardCodes.start)) return;
5331
5455
  if (!this.manager.dragOperation.status.idle) return;
5332
5456
  if (preventActivation == null ? void 0 : preventActivation(event, source)) return;
5333
5457
  this.handleStart(event, source, options);
@@ -5374,16 +5498,16 @@ var _KeyboardSensor = class _KeyboardSensor extends Sensor {
5374
5498
  }
5375
5499
  handleKeyDown(event, _source, options) {
5376
5500
  const { keyboardCodes = defaults.keyboardCodes } = options != null ? options : {};
5377
- if (isKeycode(event, [...keyboardCodes.end, ...keyboardCodes.cancel])) {
5501
+ if (isKeyboardKey(event, [...keyboardCodes.end, ...keyboardCodes.cancel])) {
5378
5502
  event.preventDefault();
5379
- const canceled = isKeycode(event, keyboardCodes.cancel);
5503
+ const canceled = isKeyboardKey(event, keyboardCodes.cancel);
5380
5504
  this.handleEnd(event, canceled);
5381
5505
  return;
5382
5506
  }
5383
- if (isKeycode(event, keyboardCodes.up)) this.handleMove("up", event);
5384
- else if (isKeycode(event, keyboardCodes.down)) this.handleMove("down", event);
5385
- if (isKeycode(event, keyboardCodes.left)) this.handleMove("left", event);
5386
- else if (isKeycode(event, keyboardCodes.right)) this.handleMove("right", event);
5507
+ if (isKeyboardKey(event, keyboardCodes.up)) this.handleMove("up", event);
5508
+ else if (isKeyboardKey(event, keyboardCodes.down)) this.handleMove("down", event);
5509
+ if (isKeyboardKey(event, keyboardCodes.left)) this.handleMove("left", event);
5510
+ else if (isKeyboardKey(event, keyboardCodes.right)) this.handleMove("right", event);
5387
5511
  }
5388
5512
  handleEnd(event, canceled) {
5389
5513
  this.manager.actions.stop({
@@ -5460,9 +5584,6 @@ _cleanupFunctions = new WeakMap();
5460
5584
  _KeyboardSensor.configure = configurator(_KeyboardSensor);
5461
5585
  _KeyboardSensor.defaults = defaults;
5462
5586
  var KeyboardSensor = _KeyboardSensor;
5463
- function isKeycode(event, codes) {
5464
- return codes.includes(event.code);
5465
- }
5466
5587
  var _coordinates;
5467
5588
  var DistanceConstraint = class extends ActivationConstraint {
5468
5589
  constructor() {
@@ -5661,11 +5782,9 @@ var _PointerSensor = class _PointerSensor extends Sensor {
5661
5782
  }
5662
5783
  handlePointerMove(event, source) {
5663
5784
  var _a5, _b2;
5664
- if (((_a5 = this.controller) == null ? void 0 : _a5.activated) === false) {
5665
- (_b2 = this.controller) == null || _b2.onEvent(event);
5666
- return;
5667
- }
5668
- if (this.manager.dragOperation.status.dragging) {
5785
+ if (((_a5 = this.controller) == null ? void 0 : _a5.activated) === false) (_b2 = this.controller) == null || _b2.onEvent(event);
5786
+ const { status } = this.manager.dragOperation;
5787
+ if (status.initializing || status.dragging) {
5669
5788
  const coordinates = getEventCoordinates(event);
5670
5789
  const offset = getFrameTransform(source.element);
5671
5790
  coordinates.x = coordinates.x * offset.scaleX + offset.x;
@@ -5674,7 +5793,7 @@ var _PointerSensor = class _PointerSensor extends Sensor {
5674
5793
  event.stopPropagation();
5675
5794
  this.latest.event = event;
5676
5795
  this.latest.coordinates = coordinates;
5677
- scheduler.schedule(this.handleMove);
5796
+ if (status.dragging) scheduler.schedule(this.handleMove);
5678
5797
  }
5679
5798
  }
5680
5799
  handlePointerUp(event) {
@@ -5683,6 +5802,20 @@ var _PointerSensor = class _PointerSensor extends Sensor {
5683
5802
  event.preventDefault();
5684
5803
  event.stopPropagation();
5685
5804
  const canceled = !status.initialized;
5805
+ const ownerDocument = getDocument(event.target);
5806
+ const ownerWindow = ownerDocument.defaultView;
5807
+ if (!canceled && ownerWindow) {
5808
+ const suppressClick = (clickEvent) => {
5809
+ if (clickEvent.target === ownerDocument.body && clickEvent.detail > 0) {
5810
+ clickEvent.preventDefault();
5811
+ clickEvent.stopImmediatePropagation();
5812
+ }
5813
+ };
5814
+ ownerWindow.addEventListener("click", suppressClick, true);
5815
+ ownerWindow.setTimeout(() => {
5816
+ ownerWindow.removeEventListener("click", suppressClick, true);
5817
+ }, 0);
5818
+ }
5686
5819
  this.manager.actions.stop({
5687
5820
  event,
5688
5821
  canceled
@@ -5700,11 +5833,12 @@ var _PointerSensor = class _PointerSensor extends Sensor {
5700
5833
  const { manager, initialCoordinates } = this;
5701
5834
  if (!initialCoordinates || !manager.dragOperation.status.idle) return;
5702
5835
  if (event.defaultPrevented) return;
5703
- if (manager.actions.start({
5836
+ const controller = manager.actions.start({
5704
5837
  coordinates: initialCoordinates,
5705
5838
  event,
5706
5839
  source
5707
- }).signal.aborted) return this.cleanup();
5840
+ });
5841
+ if (controller.signal.aborted) return this.cleanup();
5708
5842
  event.preventDefault();
5709
5843
  const pointerCaptureTarget = getDocument(event.target).body;
5710
5844
  try {
@@ -5734,6 +5868,9 @@ var _PointerSensor = class _PointerSensor extends Sensor {
5734
5868
  }
5735
5869
  ]);
5736
5870
  __privateGet$2(this, _cleanup).add(unbind);
5871
+ manager.renderer.rendering.then(() => {
5872
+ if (!controller.signal.aborted && manager.dragOperation.status.dragging) scheduler.schedule(this.handleMove);
5873
+ });
5737
5874
  }
5738
5875
  handleCancel(event) {
5739
5876
  const { dragOperation } = this.manager;
@@ -5813,7 +5950,7 @@ var _c;
5813
5950
  var _init5;
5814
5951
  var _handle;
5815
5952
  var _element$1;
5816
- var Draggable$1 = class extends (_c = Draggable$2, _handle_dec = [reactive], _element_dec = [reactive], _c) {
5953
+ var Draggable$2 = class extends (_c = Draggable$1, _handle_dec = [reactive], _element_dec = [reactive], _c) {
5817
5954
  constructor(_a5, manager) {
5818
5955
  var _b2 = _a5, { element, effects: effects2 = () => [], handle } = _b2, input = __objRest$2(_b2, [
5819
5956
  "element",
@@ -5842,9 +5979,9 @@ var Draggable$1 = class extends (_c = Draggable$2, _handle_dec = [reactive], _el
5842
5979
  _init5 = __decoratorStart$2(_c);
5843
5980
  _handle = new WeakMap();
5844
5981
  _element$1 = new WeakMap();
5845
- __decorateElement$2(_init5, 4, "handle", _handle_dec, Draggable$1, _handle);
5846
- __decorateElement$2(_init5, 4, "element", _element_dec, Draggable$1, _element$1);
5847
- __decoratorMetadata$2(_init5, Draggable$1);
5982
+ __decorateElement$2(_init5, 4, "handle", _handle_dec, Draggable$2, _handle);
5983
+ __decorateElement$2(_init5, 4, "element", _element_dec, Draggable$2, _element$1);
5984
+ __decoratorMetadata$2(_init5, Draggable$2);
5848
5985
  var _proxy_dec;
5849
5986
  var _element_dec2;
5850
5987
  var _c2;
@@ -5943,50 +6080,73 @@ function useForceUpdate() {
5943
6080
  setState((value) => value + 1);
5944
6081
  }, [setState]);
5945
6082
  }
6083
+ function useLatest(value) {
6084
+ const valueRef = useRef(value);
6085
+ useIsomorphicLayoutEffect(() => {
6086
+ valueRef.current = value;
6087
+ }, [value]);
6088
+ return valueRef;
6089
+ }
5946
6090
  function useDeepSignal(target, synchronous) {
5947
- const tracked = useRef(new Map());
5948
6091
  const forceUpdate = useForceUpdate();
6092
+ const synchronousRef = useLatest(synchronous);
6093
+ const tracker = useMemo(() => {
6094
+ const tracked = new Map();
6095
+ return {
6096
+ tracked,
6097
+ propertyCount: y(0),
6098
+ active: false,
6099
+ proxy: target ? new Proxy(target, { get(target2, key) {
6100
+ const value = target2[key];
6101
+ if (!tracked.has(key)) tracked.set(key, value);
6102
+ return value;
6103
+ } }) : target
6104
+ };
6105
+ }, [target]);
5949
6106
  useIsomorphicLayoutEffect(() => {
5950
- if (!target) {
5951
- tracked.current.clear();
5952
- return;
5953
- }
5954
- return j(() => {
5955
- var _a;
6107
+ tracker.propertyCount.value = tracker.tracked.size;
6108
+ });
6109
+ useIsomorphicLayoutEffect(() => {
6110
+ if (!target) return;
6111
+ const { tracked, propertyCount } = tracker;
6112
+ tracker.active = true;
6113
+ const dispose = j(() => {
6114
+ propertyCount.value;
5956
6115
  let stale = false;
5957
6116
  let sync = false;
5958
- for (const entry of tracked.current) {
5959
- const [key] = entry;
5960
- const value = f(() => entry[1]);
6117
+ for (const [key, value] of tracked) {
5961
6118
  const latestValue = target[key];
5962
- if (value !== latestValue) {
6119
+ if (!Object.is(value, latestValue)) {
5963
6120
  stale = true;
5964
- tracked.current.set(key, latestValue);
5965
- sync = (_a = synchronous == null ? void 0 : synchronous(key, value, latestValue)) != null ? _a : false;
6121
+ tracked.set(key, latestValue);
6122
+ sync = f(() => {
6123
+ var _a;
6124
+ return (_a = synchronousRef.current) == null ? void 0 : _a.call(synchronousRef, key, value, latestValue);
6125
+ }) === true || sync;
5966
6126
  }
5967
6127
  }
5968
6128
  if (stale) {
5969
- if (sync) queueMicrotask(() => flushSync(forceUpdate));
6129
+ if (sync) queueMicrotask(() => {
6130
+ if (tracker.active) flushSync(forceUpdate);
6131
+ });
5970
6132
  else forceUpdate();
5971
6133
  }
5972
6134
  });
5973
- }, [target]);
5974
- return useMemo(() => target ? new Proxy(target, { get(target2, key) {
5975
- const value = target2[key];
5976
- tracked.current.set(key, value);
5977
- return value;
5978
- } }) : target, [target]);
6135
+ return () => {
6136
+ tracker.active = false;
6137
+ dispose();
6138
+ };
6139
+ }, [
6140
+ target,
6141
+ tracker,
6142
+ forceUpdate,
6143
+ synchronousRef
6144
+ ]);
6145
+ return tracker.proxy;
5979
6146
  }
5980
6147
  function useImmediateEffect(callback, _) {
5981
6148
  callback();
5982
6149
  }
5983
- function useLatest(value) {
5984
- const valueRef = useRef(value);
5985
- useIsomorphicLayoutEffect(() => {
5986
- valueRef.current = value;
5987
- }, [value]);
5988
- return valueRef;
5989
- }
5990
6150
  function useOnValueChange(value, onChange, effect3 = useEffect, compare = Object.is) {
5991
6151
  const tracked = useRef(value);
5992
6152
  effect3(() => {
@@ -6786,6 +6946,9 @@ var defaultSortableTransition = {
6786
6946
  easing: "cubic-bezier(0.25, 1, 0.5, 1)",
6787
6947
  idle: false
6788
6948
  };
6949
+ function resolveSortableTransition(transition) {
6950
+ return transition === null ? null : __spreadValues$1(__spreadValues$1({}, defaultSortableTransition), transition);
6951
+ }
6789
6952
  function normalizeDisabled(disabled) {
6790
6953
  var _a, _b;
6791
6954
  if (typeof disabled === "boolean") return {
@@ -6855,7 +7018,7 @@ var Sortable2 = class {
6855
7018
  () => {
6856
7019
  var _a2, _b2, _c;
6857
7020
  const status = (_a2 = this.manager) == null ? void 0 : _a2.dragOperation.status;
6858
- if ((status == null ? void 0 : status.initializing) && this.id === ((_c = (_b2 = this.manager) == null ? void 0 : _b2.dragOperation.source) == null ? void 0 : _c.id)) store.clear(this.manager);
7021
+ if ((status == null ? void 0 : status.initializationPending) && this.id === ((_c = (_b2 = this.manager) == null ? void 0 : _b2.dragOperation.source) == null ? void 0 : _c.id)) store.clear(this.manager);
6859
7022
  if (status == null ? void 0 : status.dragging) store.set(this.manager, this.id, f(() => ({
6860
7023
  initialIndex: this.index,
6861
7024
  initialGroup: this.group
@@ -7076,7 +7239,7 @@ _element = new WeakMap();
7076
7239
  __decorateElement(_init, 4, "index", _index_dec, Sortable2, _index);
7077
7240
  __decorateElement(_init, 4, "group", _group_dec, Sortable2, _group);
7078
7241
  __decoratorMetadata(_init, Sortable2);
7079
- var SortableDraggable = class extends Draggable$1 {
7242
+ var SortableDraggable = class extends Draggable$2 {
7080
7243
  constructor(input, manager, sortable) {
7081
7244
  super(input, manager);
7082
7245
  this.sortable = sortable;
@@ -7130,7 +7293,7 @@ var __spreadValues = (a, b) => {
7130
7293
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7131
7294
  function useSortable(input) {
7132
7295
  const { accept, collisionDetector, collisionPriority, id, data, element, handle, index, group, disabled, modifiers, sensors, target, type, plugins } = input;
7133
- const transition = __spreadValues(__spreadValues({}, defaultSortableTransition), input.transition);
7296
+ const transition = resolveSortableTransition(input.transition);
7134
7297
  const sortable = useInstance((manager) => {
7135
7298
  return new Sortable2(__spreadProps(__spreadValues({}, input), {
7136
7299
  transition,
@@ -20,7 +20,8 @@ var $8e9d2fae0ecb9001$var$globalAttrs = new Set([
20
20
  "lang",
21
21
  "hidden",
22
22
  "inert",
23
- "translate"
23
+ "translate",
24
+ "suppressHydrationWarning"
24
25
  ]);
25
26
  var $8e9d2fae0ecb9001$var$globalEvents = new Set([
26
27
  "onClick",
@@ -0,0 +1,18 @@
1
+ import { J as $d447af545b77c9f1$export$f21a1ffae260145a, q as $d447af545b77c9f1$export$b204af158042fbac } from "./useHover-DgudzTcf.js";
2
+ //#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
3
+ function $7096878c21af5e66$export$a929f3f93e2cc67e(key, doc) {
4
+ let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a(doc);
5
+ let ownerDocument = $d447af545b77c9f1$export$b204af158042fbac(doc);
6
+ if (ownerDocument == null || ownerWindow == null) return;
7
+ let content = void 0;
8
+ let selector = `meta[name="${CSS.escape(key)}"], meta[property="${CSS.escape(key)}"]`;
9
+ let meta = ownerDocument.querySelector(selector);
10
+ if (meta && meta instanceof ownerWindow.HTMLMetaElement) {
11
+ if (key === "csp-nonce" && meta.nonce) content ??= meta.nonce || void 0;
12
+ if (meta.content) content ??= meta.content || void 0;
13
+ }
14
+ if (key === "csp-nonce") content ??= ownerWindow.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0;
15
+ return content;
16
+ }
17
+ //#endregion
18
+ export { $7096878c21af5e66$export$a929f3f93e2cc67e as t };