@eightshift/ui-components 6.1.1 → 6.3.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.
- package/dist/{Button-CFnNdpNZ.js → Button-DtRmB6b8.js} +7 -6
- package/dist/{Dialog-D0jMcN-a.js → Dialog-DTIxSDhz.js} +115 -52
- package/dist/{FocusScope-BJhC1-1e.js → FocusScope-CjFQ7cbd.js} +16 -16
- package/dist/{Hidden-Rfj-STx7.js → Hidden-DOH36apC.js} +23 -6
- package/dist/{Input-B4X6-x6r.js → Input-BG9DaxYN.js} +6 -6
- package/dist/{Label-BDlf9vIY.js → Label-_aSf9-8u.js} +1 -1
- package/dist/{ListBox-BaN0n5h3.js → ListBox-DXFyyj_r.js} +15 -12
- package/dist/{OverlayArrow-Dy0qw7WL.js → OverlayArrow-Fuxj-1QM.js} +27 -9
- package/dist/{RadioGroup-CjCAbUr4.js → RadioGroup-DCeiLxLK.js} +9 -9
- package/dist/{SearchField-CafsA525.js → SearchField-B_yKFXRk.js} +11 -11
- package/dist/{SelectionManager-oojq6MOy.js → SelectionManager-B02LcxLr.js} +143 -96
- package/dist/{Slider-BIbaMdUE.js → Slider-bR3fAmim.js} +7 -7
- package/dist/{VisuallyHidden-CqnizvzQ.js → VisuallyHidden-DZnWrkn8.js} +1 -1
- package/dist/assets/style-admin.css +637 -327
- package/dist/assets/style-editor.css +637 -327
- package/dist/assets/style.css +637 -327
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -1
- package/dist/assets/wp-overrides/fix-label-text-case.css +1 -1
- package/dist/assets/wp-overrides/increase-sidebar-width.css +1 -1
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +7 -7
- package/dist/assets/wp-overrides/replace-fonts.css +5 -5
- package/dist/assets/wp-overrides/restyle-tooltips.css +3 -3
- package/dist/assets/wp-overrides/round-corners.css +1 -1
- package/dist/assets/wp-overrides/unify-button-sizes.css +1 -1
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/button/button.js +12 -9
- package/dist/components/checkbox/checkbox.js +10 -10
- package/dist/components/color-pickers/solid-color-picker.js +10 -10
- package/dist/components/expandable/expandable.js +5 -5
- package/dist/components/input-field/input-field.js +6 -9
- package/dist/components/link-input/link-input.js +191 -68
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +5 -5
- package/dist/components/modal/modal.js +11 -8
- package/dist/components/notice/notice.js +3 -3
- package/dist/components/number-picker/number-picker.js +7 -7
- package/dist/components/options-panel/options-panel.js +6 -6
- package/dist/components/popover/popover.js +8 -7
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/responsive/mini-responsive.js +81 -70
- package/dist/components/responsive/responsive.js +24 -40
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.js +11 -5
- package/dist/components/select/async-multi-select.js +89 -47
- package/dist/components/select/async-select.js +90 -47
- package/dist/components/select/multi-select.js +161 -117
- package/dist/components/select/shared.js +5 -4
- package/dist/components/select/single-select.js +159 -115
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/tabs/tabs.js +39 -8
- package/dist/components/toggle/switch.js +5 -5
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +11 -9
- package/dist/{proxy-DFlYXk07.js → proxy-CNEXmkdK.js} +205 -137
- package/dist/{shared-CMLCUova.js → shared-CNH8QfV9.js} +50 -15
- package/dist/{textSelection-CeoEP4rL.js → textSelection-DA3VcKpG.js} +1 -1
- package/dist/{useButton-5YL_nmpZ.js → useButton-DyMX0EVr.js} +2 -2
- package/dist/{useEvent-Zze2g7CX.js → useEvent-Bfy68GHZ.js} +1 -1
- package/dist/{useFilter-8S94U4xM.js → useFilter-Bg5C34XC.js} +1 -1
- package/dist/{useFocusRing-rUOwLdTK.js → useFocusRing-B2glEZ25.js} +9 -7
- package/dist/{useFormReset-BxtOoO5Q.js → useFormReset-BoxsKyJ9.js} +1 -1
- package/dist/{useFormValidation-DTmPrTD8.js → useFormValidation-BrbMhS2N.js} +4 -3
- package/dist/{useHover-CmyvqeWX.js → useHover-DkmPQdGE.js} +76 -58
- package/dist/{useListState-B22CApJO.js → useListState-BjnzKozj.js} +3 -3
- package/dist/{useNumberField-CTkI-U9a.js → useNumberField-CsygZKz9.js} +45 -15
- package/dist/{usePress-CNefMs8d.js → usePress-Ck5xMtDr.js} +21 -21
- package/dist/{useToggle-CFFOmZWi.js → useToggle-Ddc7N8pR.js} +4 -4
- package/dist/{useToggleState-BWrKKisg.js → useToggleState-H_lORSWO.js} +1 -1
- package/package.json +22 -21
- package/dist/useSingleSelectListState-CDZGQDLC.js +0 -38
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import $
|
|
2
|
-
import
|
|
1
|
+
import { E as $c87311424ea30a05$export$9ac100e40613ea10, d as $c87311424ea30a05$export$fedb369cb70207f1, t as $c87311424ea30a05$export$6446a186d09e379e, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, e as $431fbd86ca7dc216$export$b204af158042fbac, A as $7215afc6de606d6b$export$de79e2c695e052f3, j as $d4ee10de306f2510$export$cd4e5573fbe2b576, L as $c87311424ea30a05$export$e1865c3bedcd822b, h as $d4ee10de306f2510$export$4282f70798064fe0, b as $d4ee10de306f2510$export$e58f029f0fbfdb29, M as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, u as $3ad3f6e1647bc98d$export$80f3e147d781571c, v as $507fabe10e71c6fb$export$630ff653c5ada6a9, D as $d4ee10de306f2510$export$b4f377a2b6254582, q as $b4b717babfbb907b$export$bebd5a1431fec25d, K as $ea8dcbcb9ea1b556$export$95185d699e05d4d7, N as $f645667febf57a63$export$f9762fab77588ecb, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-DkmPQdGE.js";
|
|
2
|
+
import $dbSRa$react__default, { useRef, useState, useEffect, useMemo, cloneElement, useContext, createContext, forwardRef, useCallback, isValidElement } from "react";
|
|
3
3
|
import { c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, b as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, o as $ff5963eb1fccf552$export$e08e3b67e392101e, m as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-Cr3pLd9c.js";
|
|
4
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
5
|
-
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-
|
|
4
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-Bfy68GHZ.js";
|
|
5
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-CjFQ7cbd.js";
|
|
6
6
|
import { r as reactDomExports } from "./index-BL5gdWX4.js";
|
|
7
7
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-iUFQCK8m.js";
|
|
8
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
9
|
-
import { a as $f39a9eba43920ace$export$8dc98ba7eadeaa56 } from "./Hidden-
|
|
8
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-Ck5xMtDr.js";
|
|
9
|
+
import { a as $f39a9eba43920ace$export$8dc98ba7eadeaa56 } from "./Hidden-DOH36apC.js";
|
|
10
10
|
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
11
11
|
const isInitialMount = useRef(true);
|
|
12
12
|
const lastDeps = useRef(null);
|
|
@@ -25,17 +25,20 @@ function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
|
25
25
|
function $cc38e7bd3fc7b213$export$2bb74740c4e19def(node, checkForOverflow) {
|
|
26
26
|
if (!node) return false;
|
|
27
27
|
let style = window.getComputedStyle(node);
|
|
28
|
+
let root = document.scrollingElement || document.documentElement;
|
|
28
29
|
let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
|
|
30
|
+
if (node === root && style.overflow !== "hidden") isScrollable = true;
|
|
29
31
|
if (isScrollable && checkForOverflow) isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;
|
|
30
32
|
return isScrollable;
|
|
31
33
|
}
|
|
32
34
|
function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
let parentElements = [];
|
|
36
|
+
let root = document.scrollingElement || document.documentElement;
|
|
37
|
+
do {
|
|
38
|
+
if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(node, checkForOverflow)) parentElements.push(node);
|
|
36
39
|
node = node.parentElement;
|
|
37
|
-
}
|
|
38
|
-
return
|
|
40
|
+
} while (node && node !== root);
|
|
41
|
+
return parentElements;
|
|
39
42
|
}
|
|
40
43
|
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
|
41
44
|
if ($c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
@@ -90,48 +93,80 @@ function $ef06256079686ba0$export$f8aeda7b10753fa1(description) {
|
|
|
90
93
|
"aria-describedby": description ? id : void 0
|
|
91
94
|
};
|
|
92
95
|
}
|
|
93
|
-
function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
|
|
94
|
-
let
|
|
95
|
-
|
|
96
|
-
let width = element.offsetWidth;
|
|
97
|
-
let height = element.offsetHeight;
|
|
98
|
-
let x = scrollView.scrollLeft;
|
|
96
|
+
function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element, opts = {}) {
|
|
97
|
+
let { block = "nearest", inline = "nearest" } = opts;
|
|
98
|
+
if (scrollView === element) return;
|
|
99
99
|
let y = scrollView.scrollTop;
|
|
100
|
-
let
|
|
101
|
-
let
|
|
102
|
-
let
|
|
103
|
-
let
|
|
104
|
-
let
|
|
105
|
-
let
|
|
106
|
-
let
|
|
107
|
-
let
|
|
108
|
-
let
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
let
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
100
|
+
let x = scrollView.scrollLeft;
|
|
101
|
+
let target = element.getBoundingClientRect();
|
|
102
|
+
let view = scrollView.getBoundingClientRect();
|
|
103
|
+
let itemStyle = window.getComputedStyle(element);
|
|
104
|
+
let viewStyle = window.getComputedStyle(scrollView);
|
|
105
|
+
let root = document.scrollingElement || document.documentElement;
|
|
106
|
+
let viewTop = scrollView === root ? 0 : view.top;
|
|
107
|
+
let viewBottom = scrollView === root ? scrollView.clientHeight : view.bottom;
|
|
108
|
+
let viewLeft = scrollView === root ? 0 : view.left;
|
|
109
|
+
let viewRight = scrollView === root ? scrollView.clientWidth : view.right;
|
|
110
|
+
let scrollMarginTop = parseInt(itemStyle.scrollMarginTop, 10) || 0;
|
|
111
|
+
let scrollMarginBottom = parseInt(itemStyle.scrollMarginBottom, 10) || 0;
|
|
112
|
+
let scrollMarginLeft = parseInt(itemStyle.scrollMarginLeft, 10) || 0;
|
|
113
|
+
let scrollMarginRight = parseInt(itemStyle.scrollMarginRight, 10) || 0;
|
|
114
|
+
let scrollPaddingTop = parseInt(viewStyle.scrollPaddingTop, 10) || 0;
|
|
115
|
+
let scrollPaddingBottom = parseInt(viewStyle.scrollPaddingBottom, 10) || 0;
|
|
116
|
+
let scrollPaddingLeft = parseInt(viewStyle.scrollPaddingLeft, 10) || 0;
|
|
117
|
+
let scrollPaddingRight = parseInt(viewStyle.scrollPaddingRight, 10) || 0;
|
|
118
|
+
let borderTopWidth = parseInt(viewStyle.borderTopWidth, 10) || 0;
|
|
119
|
+
let borderBottomWidth = parseInt(viewStyle.borderBottomWidth, 10) || 0;
|
|
120
|
+
let borderLeftWidth = parseInt(viewStyle.borderLeftWidth, 10) || 0;
|
|
121
|
+
let borderRightWidth = parseInt(viewStyle.borderRightWidth, 10) || 0;
|
|
122
|
+
let scrollAreaTop = target.top - scrollMarginTop;
|
|
123
|
+
let scrollAreaBottom = target.bottom + scrollMarginBottom;
|
|
124
|
+
let scrollAreaLeft = target.left - scrollMarginLeft;
|
|
125
|
+
let scrollAreaRight = target.right + scrollMarginRight;
|
|
126
|
+
let scrollBarOffsetX = scrollView === root ? 0 : borderLeftWidth + borderRightWidth;
|
|
127
|
+
let scrollBarOffsetY = scrollView === root ? 0 : borderTopWidth + borderBottomWidth;
|
|
128
|
+
let scrollBarWidth = scrollView.offsetWidth - scrollView.clientWidth - scrollBarOffsetX;
|
|
129
|
+
let scrollBarHeight = scrollView.offsetHeight - scrollView.clientHeight - scrollBarOffsetY;
|
|
130
|
+
let scrollPortTop = viewTop + borderTopWidth + scrollPaddingTop;
|
|
131
|
+
let scrollPortBottom = viewBottom - borderBottomWidth - scrollPaddingBottom - scrollBarHeight;
|
|
132
|
+
let scrollPortLeft = viewLeft + borderLeftWidth + scrollPaddingLeft;
|
|
133
|
+
let scrollPortRight = viewRight - borderRightWidth - scrollPaddingRight;
|
|
134
|
+
if (viewStyle.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1()) scrollPortLeft += scrollBarWidth;
|
|
135
|
+
else scrollPortRight -= scrollBarWidth;
|
|
136
|
+
let shouldScrollBlock = scrollAreaTop < scrollPortTop || scrollAreaBottom > scrollPortBottom;
|
|
137
|
+
let shouldScrollInline = scrollAreaLeft < scrollPortLeft || scrollAreaRight > scrollPortRight;
|
|
138
|
+
if (shouldScrollBlock && block === "start") y += scrollAreaTop - scrollPortTop;
|
|
139
|
+
else if (shouldScrollBlock && block === "center") y += (scrollAreaTop + scrollAreaBottom) / 2 - (scrollPortTop + scrollPortBottom) / 2;
|
|
140
|
+
else if (shouldScrollBlock && block === "end") y += scrollAreaBottom - scrollPortBottom;
|
|
141
|
+
else if (shouldScrollBlock && block === "nearest") {
|
|
142
|
+
let start = scrollAreaTop - scrollPortTop;
|
|
143
|
+
let end = scrollAreaBottom - scrollPortBottom;
|
|
144
|
+
y += Math.abs(start) <= Math.abs(end) ? start : end;
|
|
145
|
+
}
|
|
146
|
+
if (shouldScrollInline && inline === "start") x += scrollAreaLeft - scrollPortLeft;
|
|
147
|
+
else if (shouldScrollInline && inline === "center") x += (scrollAreaLeft + scrollAreaRight) / 2 - (scrollPortLeft + scrollPortRight) / 2;
|
|
148
|
+
else if (shouldScrollInline && inline === "end") x += scrollAreaRight - scrollPortRight;
|
|
149
|
+
else if (shouldScrollInline && inline === "nearest") {
|
|
150
|
+
let start = scrollAreaLeft - scrollPortLeft;
|
|
151
|
+
let end = scrollAreaRight - scrollPortRight;
|
|
152
|
+
x += Math.abs(start) <= Math.abs(end) ? start : end;
|
|
153
|
+
}
|
|
154
|
+
if (process.env.NODE_ENV === "test") {
|
|
155
|
+
scrollView.scrollLeft = x;
|
|
156
|
+
scrollView.scrollTop = y;
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
scrollView.scrollTo({
|
|
160
|
+
left: x,
|
|
161
|
+
top: y
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts = {}) {
|
|
165
|
+
let { containingElement } = opts;
|
|
166
|
+
if (targetElement && targetElement.isConnected) {
|
|
132
167
|
let root = document.scrollingElement || document.documentElement;
|
|
133
168
|
let isScrollPrevented = window.getComputedStyle(root).overflow === "hidden";
|
|
134
|
-
if (!isScrollPrevented) {
|
|
169
|
+
if (!isScrollPrevented && !$c87311424ea30a05$export$6446a186d09e379e()) {
|
|
135
170
|
var _targetElement_scrollIntoView;
|
|
136
171
|
let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
|
|
137
172
|
targetElement === null || targetElement === void 0 ? void 0 : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 ? void 0 : _targetElement_scrollIntoView.call(targetElement, {
|
|
@@ -139,8 +174,8 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
|
|
|
139
174
|
});
|
|
140
175
|
let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
|
|
141
176
|
if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
|
|
142
|
-
var
|
|
143
|
-
|
|
177
|
+
var _containingElement_scrollIntoView, _targetElement_scrollIntoView1;
|
|
178
|
+
containingElement === null || containingElement === void 0 ? void 0 : (_containingElement_scrollIntoView = containingElement.scrollIntoView) === null || _containingElement_scrollIntoView === void 0 ? void 0 : _containingElement_scrollIntoView.call(containingElement, {
|
|
144
179
|
block: "center",
|
|
145
180
|
inline: "center"
|
|
146
181
|
});
|
|
@@ -149,9 +184,17 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
|
|
|
149
184
|
});
|
|
150
185
|
}
|
|
151
186
|
} else {
|
|
152
|
-
let
|
|
153
|
-
|
|
187
|
+
let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
|
|
188
|
+
let scrollParents = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(targetElement, true);
|
|
154
189
|
for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);
|
|
190
|
+
let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
|
|
191
|
+
if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
|
|
192
|
+
scrollParents = containingElement ? $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(containingElement, true) : [];
|
|
193
|
+
for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, containingElement, {
|
|
194
|
+
block: "center",
|
|
195
|
+
inline: "center"
|
|
196
|
+
});
|
|
197
|
+
}
|
|
155
198
|
}
|
|
156
199
|
}
|
|
157
200
|
}
|
|
@@ -271,7 +314,7 @@ function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
|
|
|
271
314
|
}).current;
|
|
272
315
|
let onKeyDown = (e) => {
|
|
273
316
|
let character = $fb3050f43d946246$var$getStringForKey(e.key);
|
|
274
|
-
if (!character || e.ctrlKey || e.metaKey || !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e
|
|
317
|
+
if (!character || e.ctrlKey || e.metaKey || !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e)) || state.search.length === 0 && character === " ") return;
|
|
275
318
|
if (character === " " && state.search.trim().length > 0) {
|
|
276
319
|
e.preventDefault();
|
|
277
320
|
if (!("continuePropagation" in e)) e.stopPropagation();
|
|
@@ -308,7 +351,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
308
351
|
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
309
352
|
let onKeyDown = (e) => {
|
|
310
353
|
if (e.altKey && e.key === "Tab") e.preventDefault();
|
|
311
|
-
if (!ref.current || !$d4ee10de306f2510$export$4282f70798064fe0(ref.current, e
|
|
354
|
+
if (!ref.current || !$d4ee10de306f2510$export$4282f70798064fe0(ref.current, $d4ee10de306f2510$export$e58f029f0fbfdb29(e))) return;
|
|
312
355
|
const navigateToKey = (key, childFocus) => {
|
|
313
356
|
if (key != null) {
|
|
314
357
|
if (manager.isLink(key) && linkBehavior === "selection" && selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e)) {
|
|
@@ -439,7 +482,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
439
482
|
last = walker.lastChild();
|
|
440
483
|
if (last) next = last;
|
|
441
484
|
} while (last);
|
|
442
|
-
|
|
485
|
+
let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576();
|
|
486
|
+
if (next && (!$d4ee10de306f2510$export$b4f377a2b6254582(next) || activeElement && !$b4b717babfbb907b$export$bebd5a1431fec25d(activeElement))) $7215afc6de606d6b$export$de79e2c695e052f3(next);
|
|
443
487
|
}
|
|
444
488
|
break;
|
|
445
489
|
}
|
|
@@ -459,10 +503,10 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
459
503
|
});
|
|
460
504
|
let onFocus = (e) => {
|
|
461
505
|
if (manager.isFocused) {
|
|
462
|
-
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e
|
|
506
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e))) manager.setFocused(false);
|
|
463
507
|
return;
|
|
464
508
|
}
|
|
465
|
-
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e
|
|
509
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e))) return;
|
|
466
510
|
manager.setFocused(true);
|
|
467
511
|
if (manager.focusedKey == null) {
|
|
468
512
|
var _delegate_getLastKey, _delegate_getFirstKey;
|
|
@@ -483,7 +527,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
483
527
|
if (manager.focusedKey != null && scrollRef.current) {
|
|
484
528
|
let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
485
529
|
if (element instanceof HTMLElement) {
|
|
486
|
-
if (!$d4ee10de306f2510$export$
|
|
530
|
+
if (!$d4ee10de306f2510$export$b4f377a2b6254582(element) && !shouldUseVirtualFocus) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
487
531
|
let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
488
532
|
if (modality === "keyboard") $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
|
|
489
533
|
containingElement: ref.current
|
|
@@ -594,7 +638,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
594
638
|
onFocus,
|
|
595
639
|
onBlur,
|
|
596
640
|
onMouseDown(e) {
|
|
597
|
-
if (scrollRef.current === e
|
|
641
|
+
if (scrollRef.current === $d4ee10de306f2510$export$e58f029f0fbfdb29(e))
|
|
598
642
|
e.preventDefault();
|
|
599
643
|
}
|
|
600
644
|
};
|
|
@@ -643,7 +687,7 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
643
687
|
if (isFocused && manager.isFocused) {
|
|
644
688
|
if (!shouldUseVirtualFocus) {
|
|
645
689
|
if (focus) focus();
|
|
646
|
-
else if (
|
|
690
|
+
else if ($d4ee10de306f2510$export$cd4e5573fbe2b576() !== ref.current && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
647
691
|
} else $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current);
|
|
648
692
|
}
|
|
649
693
|
}, [
|
|
@@ -659,7 +703,7 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
659
703
|
if (!shouldUseVirtualFocus && !isDisabled) itemProps = {
|
|
660
704
|
tabIndex: key === manager.focusedKey ? 0 : -1,
|
|
661
705
|
onFocus(e) {
|
|
662
|
-
if (e
|
|
706
|
+
if ($d4ee10de306f2510$export$e58f029f0fbfdb29(e) === ref.current) manager.setFocusedKey(key);
|
|
663
707
|
}
|
|
664
708
|
};
|
|
665
709
|
else if (isDisabled) itemProps.onMouseDown = (e) => {
|
|
@@ -1443,8 +1487,8 @@ class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export
|
|
|
1443
1487
|
this.ownerDocument.markDirty(this);
|
|
1444
1488
|
}
|
|
1445
1489
|
get level() {
|
|
1446
|
-
var
|
|
1447
|
-
if (this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd) return this.parentNode.level + (((
|
|
1490
|
+
var _this_parentNode_node;
|
|
1491
|
+
if (this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd) return this.parentNode.level + (((_this_parentNode_node = this.parentNode.node) === null || _this_parentNode_node === void 0 ? void 0 : _this_parentNode_node.type) === "item" ? 1 : 0);
|
|
1448
1492
|
return 0;
|
|
1449
1493
|
}
|
|
1450
1494
|
/**
|
|
@@ -1568,7 +1612,7 @@ class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export
|
|
|
1568
1612
|
}
|
|
1569
1613
|
/** Finalizes the collection update, updating all nodes and freezing the collection. */
|
|
1570
1614
|
getCollection() {
|
|
1571
|
-
if (this.inSubscription) return this.collection
|
|
1615
|
+
if (this.inSubscription) return this.collection;
|
|
1572
1616
|
this.queuedRender = false;
|
|
1573
1617
|
this.updateCollection();
|
|
1574
1618
|
return this.collection;
|
|
@@ -1598,6 +1642,7 @@ class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export
|
|
|
1598
1642
|
if (this.dirtyNodes.size === 0 || this.queuedRender) return;
|
|
1599
1643
|
this.queuedRender = true;
|
|
1600
1644
|
this.inSubscription = true;
|
|
1645
|
+
if (!this.isSSR) this.collection = this.collection.clone();
|
|
1601
1646
|
for (let fn of this.subscriptions) fn();
|
|
1602
1647
|
this.inSubscription = false;
|
|
1603
1648
|
}
|
|
@@ -1981,6 +2026,7 @@ function $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDro
|
|
|
1981
2026
|
renderDropIndicator
|
|
1982
2027
|
],
|
|
1983
2028
|
children(node) {
|
|
2029
|
+
if (node.type === "content") return /* @__PURE__ */ $dbSRa$react__default.createElement($dbSRa$react__default.Fragment, null);
|
|
1984
2030
|
let rendered = node.render(node);
|
|
1985
2031
|
if (!renderDropIndicator || node.type !== "item") return rendered;
|
|
1986
2032
|
return /* @__PURE__ */ $dbSRa$react__default.createElement($dbSRa$react__default.Fragment, null, renderDropIndicator({
|
|
@@ -2425,34 +2471,35 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
|
2425
2471
|
}
|
|
2426
2472
|
}
|
|
2427
2473
|
export {
|
|
2428
|
-
$
|
|
2429
|
-
$
|
|
2430
|
-
$
|
|
2431
|
-
$
|
|
2432
|
-
$
|
|
2433
|
-
$
|
|
2434
|
-
$
|
|
2435
|
-
$
|
|
2436
|
-
$
|
|
2437
|
-
$
|
|
2438
|
-
$
|
|
2439
|
-
$e1995378a142960e$export$
|
|
2440
|
-
$
|
|
2441
|
-
$
|
|
2442
|
-
$
|
|
2443
|
-
$23b9f4fcf0fe224b$export$
|
|
2444
|
-
$
|
|
2445
|
-
$
|
|
2446
|
-
$
|
|
2447
|
-
$
|
|
2448
|
-
$
|
|
2449
|
-
$
|
|
2450
|
-
$
|
|
2451
|
-
$
|
|
2452
|
-
$55f9b1ae81f22853$export$
|
|
2453
|
-
$
|
|
2454
|
-
$
|
|
2455
|
-
$
|
|
2456
|
-
$
|
|
2457
|
-
$
|
|
2474
|
+
$e1995378a142960e$export$fb8073518f34e6ec as $,
|
|
2475
|
+
$55f9b1ae81f22853$export$759df0d867455a91 as A,
|
|
2476
|
+
$feb5ffebff200149$export$c3d8340acf92597f as B,
|
|
2477
|
+
$8a26561d2877236e$export$c24ed0104d07eab9 as C,
|
|
2478
|
+
$23b9f4fcf0fe224b$export$5ae2504e948afce5 as D,
|
|
2479
|
+
$7af3f5b51489e0b5$export$253fe78d46329472 as a,
|
|
2480
|
+
$7613b1592d41b092$export$6cd28814d92fa9c9 as b,
|
|
2481
|
+
$d496c0a20b6e58ec$export$6c8a5aaad13c9852 as c,
|
|
2482
|
+
$21f1aa98acb08317$export$c57958e35f31ed73 as d,
|
|
2483
|
+
$cc38e7bd3fc7b213$export$2bb74740c4e19def as e,
|
|
2484
|
+
$880e95eb8b93ba9a$export$ecf600387e221c37 as f,
|
|
2485
|
+
$e1995378a142960e$export$bf788dd355e3a401 as g,
|
|
2486
|
+
$e1995378a142960e$export$e953bb1cd0f19726 as h,
|
|
2487
|
+
$23b9f4fcf0fe224b$export$437f11dc9b403b78 as i,
|
|
2488
|
+
$e1995378a142960e$export$18af5c7a9e9b3664 as j,
|
|
2489
|
+
$23b9f4fcf0fe224b$export$fd11f34e1d07f134 as k,
|
|
2490
|
+
$7135fc7d473fd974$export$4feb769f8ddf26c5 as l,
|
|
2491
|
+
$7135fc7d473fd974$export$d40e14dec8b060a8 as m,
|
|
2492
|
+
$23b9f4fcf0fe224b$export$8258a0665a675899 as n,
|
|
2493
|
+
$ae20dd8cbca75726$export$d6daf82dcd84e87c as o,
|
|
2494
|
+
$23b9f4fcf0fe224b$export$d68d59712b04d9d1 as p,
|
|
2495
|
+
$7135fc7d473fd974$export$90e00781bc59d8f9 as q,
|
|
2496
|
+
$7135fc7d473fd974$export$a164736487e3f0ae as r,
|
|
2497
|
+
$c5a24bc478652b5f$export$1005530eda016c13 as s,
|
|
2498
|
+
$55f9b1ae81f22853$export$2b35b76d2e30e129 as t,
|
|
2499
|
+
$fb3050f43d946246$export$e32c88dfddc6e1d8 as u,
|
|
2500
|
+
$5671b20cf9b562b2$export$831c820ad60f9d12 as v,
|
|
2501
|
+
$55f9b1ae81f22853$export$76e4e37e5339496d as w,
|
|
2502
|
+
$5671b20cf9b562b2$export$447a38995de2c711 as x,
|
|
2503
|
+
$55f9b1ae81f22853$export$6c5dc7e81d2cc29a as y,
|
|
2504
|
+
$21f1aa98acb08317$export$16792effe837dba3 as z
|
|
2458
2505
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, b as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, f as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$df3a06d6289f983e, e as $64fa3d84918910a7$export$fabf2dc03a41866e } from "./utils-Cr3pLd9c.js";
|
|
2
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-
|
|
2
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-_aSf9-8u.js";
|
|
3
3
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
4
4
|
import $dbSRa$react__default, { useRef, useCallback, useState, useMemo, useEffect, forwardRef, useContext, createContext } from "react";
|
|
5
5
|
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-CG_IQXp9.js";
|
|
6
|
-
import {
|
|
6
|
+
import { g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, c as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, x as $507fabe10e71c6fb$export$8397ddfc504fdb9a, A as $7215afc6de606d6b$export$de79e2c695e052f3, B as $46d819fcbaf35654$export$8f71654801c2f7cd, $ as $f645667febf57a63$export$4c014de7c8940b4c, b as $d4ee10de306f2510$export$e58f029f0fbfdb29, y as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-DkmPQdGE.js";
|
|
7
7
|
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-7sOvrqo0.js";
|
|
8
|
-
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-
|
|
8
|
+
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-DA3VcKpG.js";
|
|
9
9
|
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-DzXzKZZZ.js";
|
|
10
10
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-iUFQCK8m.js";
|
|
11
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
12
|
-
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
13
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
11
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BoxsKyJ9.js";
|
|
12
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-B2glEZ25.js";
|
|
13
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-DZnWrkn8.js";
|
|
14
14
|
function $e8a7022cf87cba2a$export$36da96379f79f245(props) {
|
|
15
15
|
let { onMoveStart, onMove, onMoveEnd } = props;
|
|
16
16
|
let state = useRef({
|
|
@@ -687,7 +687,7 @@ function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) {
|
|
|
687
687
|
opts["aria-details"]
|
|
688
688
|
].filter(Boolean).join(" "),
|
|
689
689
|
onChange: (e) => {
|
|
690
|
-
state.setThumbValue(index, parseFloat(e.
|
|
690
|
+
state.setThumbValue(index, parseFloat($d4ee10de306f2510$export$e58f029f0fbfdb29(e).value));
|
|
691
691
|
}
|
|
692
692
|
}),
|
|
693
693
|
thumbProps: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-Cr3pLd9c.js";
|
|
2
2
|
import $dbSRa$react__default, { useState, useMemo } from "react";
|
|
3
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-
|
|
3
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-B2glEZ25.js";
|
|
4
4
|
const $5c3e21d68f1c4674$var$styles = {
|
|
5
5
|
border: 0,
|
|
6
6
|
clip: "rect(0 0 0 0)",
|