@eightshift/ui-components 1.3.2 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-DTARR6Ff.js → Button-uYE9D_E3.js} +6 -5
- package/dist/{ColorSwatch-5bZ_yIMB.js → ColorSwatch-Bev-9Vbr.js} +4 -4
- package/dist/{Dialog-DJgS0mAg.js → Dialog-CGE2ficT.js} +17 -15
- package/dist/{FieldError-CviphIN5.js → FieldError-CBPJ4Xx8.js} +2 -2
- package/dist/{FocusScope-BjM5iOQC.js → FocusScope-CVd6C65L.js} +24 -8
- package/dist/{GridList-DjRnMEae.js → GridList-PBJsm70G.js} +156 -116
- package/dist/{Group-BQu67pVS.js → Group-WZgNv9RE.js} +3 -3
- package/dist/Hidden-YSmyVF_5.js +45 -0
- package/dist/{Input-DWRQF0ro.js → Input-CaS4qmLb.js} +10 -9
- package/dist/{Label-BXvY41yE.js → Label-yZgqvhXc.js} +3 -2
- package/dist/ListBox-MZyPpwvj.js +567 -0
- package/dist/{Select-49a62830.esm-BnlXlUnT.js → Select-49a62830.esm-CqLHaIei.js} +1 -1
- package/dist/{SelectionManager-JxXmb3-k.js → SelectionManager-CvRaua4m.js} +1580 -1484
- package/dist/{Separator-CX64zwq8.js → Separator-C7Few7L6.js} +80 -62
- package/dist/{Slider-Clme2C36.js → Slider-D8a63VhT.js} +14 -12
- package/dist/{Text-qjognpzK.js → Text-D8qh3_U7.js} +1 -1
- package/dist/{VisuallyHidden-BZPezMV5.js → VisuallyHidden-DD480kAb.js} +2 -2
- package/dist/_commonjsHelpers-CUmg6egw.js +6 -0
- package/dist/{ariaHideOutside-BZ5z6iCD.js → ariaHideOutside-BzxkODNq.js} +1 -9
- package/dist/assets/style.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/components/animated-visibility/animated-visibility.js +311 -198
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +274 -9
- package/dist/components/checkbox/checkbox.js +171 -1
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +3 -3
- package/dist/components/color-pickers/solid-color-picker.js +46 -32
- package/dist/components/component-toggle/component-toggle.js +2 -2
- package/dist/components/container-panel/container-panel.js +2 -2
- package/dist/components/draggable-list/draggable-list-item.js +3 -3
- package/dist/components/draggable-list/draggable-list.js +3671 -6
- package/dist/components/expandable/expandable.js +7 -4
- package/dist/components/index.js +4 -4
- package/dist/components/input-field/input-field.js +7 -7
- package/dist/components/link-input/link-input.js +1519 -489
- package/dist/components/list-box/list-box.js +2 -2
- package/dist/components/matrix-align/matrix-align.js +3 -3
- package/dist/components/menu/menu.js +164 -466
- package/dist/components/modal/modal.js +7 -7
- package/dist/components/number-picker/number-picker.js +22 -17
- package/dist/components/option-select/option-select.js +2 -2
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +3 -3
- package/dist/components/radio/radio.js +13 -13
- package/dist/components/repeater/repeater-context.js +5 -0
- package/dist/components/repeater/repeater-item.js +46 -91
- package/dist/components/repeater/repeater.js +5130 -175
- package/dist/components/responsive/responsive-legacy.js +3 -3
- package/dist/components/responsive/responsive.js +3 -3
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +5 -5
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/tabs/tabs.js +46 -71
- package/dist/components/toggle/switch.js +6 -6
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +7 -7
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/{context-BG_1RnbC.js → context-Bon2Gyx5.js} +1 -1
- package/dist/{default-i18n-BqwLkgZv.js → default-i18n-BqWys-1G.js} +1 -1
- package/dist/{focusSafely-DGZ4R5fj.js → focusSafely-PMGZgZ9-.js} +33 -26
- package/dist/getScrollParent-B3XgpXBL.js +10 -0
- package/dist/icons/icons.js +205 -0
- package/dist/icons/jsx-svg.js +2 -2
- package/dist/{index-CAPcSs9K.js → index-BTCzc3zb.js} +1 -1
- package/dist/{index-a301f526.esm-ByOfDxiG.js → index-a301f526.esm-B9tWL9yi.js} +80 -603
- package/dist/index.js +4 -4
- package/dist/{intlStrings-CkuKCPkT.js → intlStrings-KQxgp5tS.js} +14 -9
- package/dist/{multi-select-components-7vKCF8dG.js → multi-select-components-DTvEidE3.js} +1 -1
- package/dist/react-jsx-parser.min-CAGfntg1.js +13425 -0
- package/dist/{react-select-async.esm-5zW9Dv9E.js → react-select-async.esm-8Rba_3KV.js} +3 -3
- package/dist/{react-select.esm-Bi6uzjbT.js → react-select.esm-DkSeQzOP.js} +3 -3
- package/dist/{textSelection-BLyBtNe2.js → textSelection-DS7-670U.js} +1 -1
- package/dist/{tooltip-DSk8I1SO.js → tooltip-C9mg1CP5.js} +54 -18
- package/dist/{useButton-EJ9c8fmq.js → useButton-BPY4yXUo.js} +3 -3
- package/dist/{useEvent-Cxq_BzP_.js → useEvent-DDLT851Z.js} +1 -1
- package/dist/{useFocusRing-Dg5Y_10S.js → useFocusRing-DsxEaA2J.js} +1 -1
- package/dist/{useFocusable-CQZyQp4q.js → useFocusable-BFKHuYS9.js} +2 -2
- package/dist/{useFormReset-DJMtIgSL.js → useFormReset-BCPbwfnH.js} +1 -1
- package/dist/{useFormValidationState-DDC_nImg.js → useFormValidationState-DC5jbhBW.js} +2 -2
- package/dist/{useHasTabbableChild-M3O3VIil.js → useHasTabbableChild-Byd7ylXD.js} +2 -2
- package/dist/{useLabel-6NqYraET.js → useLabel-DuJhImKc.js} +2 -2
- package/dist/{useLabels-D2RG7TdI.js → useLabels-JaBafrnV.js} +1 -1
- package/dist/{useListData-BpYQj7kK.js → useListData-B5Pk32vd.js} +6 -3
- package/dist/{useListState-IllYYnXV.js → useListState-Csx05BmT.js} +6 -3
- package/dist/{useLocalizedStringFormatter-Cwm_siat.js → useLocalizedStringFormatter-CVIIVTgz.js} +1 -1
- package/dist/useMenuTrigger-CMgzyMKW.js +246 -0
- package/dist/{useNumberFieldState-CVJOJnF1.js → useNumberFieldState-BVFqhboT.js} +12 -11
- package/dist/{useNumberFormatter-DVZRQXk3.js → useNumberFormatter-BEeBSV-N.js} +1 -1
- package/dist/{usePress-CiXj8dLE.js → usePress-CY8MpqYD.js} +58 -16
- package/dist/useSingleSelectListState-CzZUgAt0.js +37 -0
- package/dist/{useToggle-CV-IX6nL.js → useToggle-CJp2Fh_L.js} +4 -4
- package/dist/{useToggleState-DHIdITtQ.js → useToggleState-B4--Ski0.js} +1 -1
- package/dist/{utils-DC-UMp1n.js → utils-B4IdLYb8.js} +48 -85
- package/package.json +24 -21
- package/dist/Checkbox-CiJIVbAP.js +0 -174
- package/dist/ListBox-DTKMdjQC.js +0 -4216
- package/dist/_commonjsHelpers-DWwsNxpa.js +0 -8
- package/dist/button-IxfzzzbP.js +0 -277
- package/dist/react-jsx-parser.min-DhrYeqLL.js +0 -4563
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as _objectWithoutProperties, b as _slicedToArray, h as handleInputChange, d as _objectSpread2, e as _defineProperty, _ as _extends } from "./index-a301f526.esm-
|
|
1
|
+
import { a as _objectWithoutProperties, b as _slicedToArray, h as handleInputChange, d as _objectSpread2, e as _defineProperty, _ as _extends } from "./index-a301f526.esm-B9tWL9yi.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { useRef, useState, useEffect, useCallback, forwardRef } from "react";
|
|
4
|
-
import { u as useStateManager, S as Select } from "./Select-49a62830.esm-
|
|
5
|
-
import "./index-
|
|
4
|
+
import { u as useStateManager, S as Select } from "./Select-49a62830.esm-CqLHaIei.js";
|
|
5
|
+
import "./index-BTCzc3zb.js";
|
|
6
6
|
var _excluded = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
7
7
|
function useAsync(_ref) {
|
|
8
8
|
var _ref$defaultOptions = _ref.defaultOptions, propsDefaultOptions = _ref$defaultOptions === void 0 ? false : _ref$defaultOptions, _ref$cacheOptions = _ref.cacheOptions, cacheOptions = _ref$cacheOptions === void 0 ? false : _ref$cacheOptions, propsLoadOptions = _ref.loadOptions;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useStateManager, S as Select } from "./Select-49a62830.esm-
|
|
2
|
-
import { _ as _extends } from "./index-a301f526.esm-
|
|
1
|
+
import { u as useStateManager, S as Select } from "./Select-49a62830.esm-CqLHaIei.js";
|
|
2
|
+
import { _ as _extends } from "./index-a301f526.esm-B9tWL9yi.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-BTCzc3zb.js";
|
|
6
6
|
var StateManagedSelect = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
7
7
|
var baseSelectProps = useStateManager(props);
|
|
8
8
|
return /* @__PURE__ */ React.createElement(Select, _extends({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef, useCallback, useEffect } from "react";
|
|
2
|
-
import { j as $c87311424ea30a05$export$fedb369cb70207f1, g as $431fbd86ca7dc216$export$b204af158042fbac, k as $bbed8b41f857bcc0$export$24490316f764c430 } from "./focusSafely-
|
|
2
|
+
import { j as $c87311424ea30a05$export$fedb369cb70207f1, g as $431fbd86ca7dc216$export$b204af158042fbac, k as $bbed8b41f857bcc0$export$24490316f764c430 } from "./focusSafely-PMGZgZ9-.js";
|
|
3
3
|
function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
|
|
4
4
|
let globalListeners = useRef(/* @__PURE__ */ new Map());
|
|
5
5
|
let addGlobalListener = useCallback((eventTarget, type, listener, options) => {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c,
|
|
2
|
+
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, d as $b5e257d569688ac6$export$535bd6ca7f90a273, c as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, o as $64fa3d84918910a7$export$45fda7c47f93fd48, p as $64fa3d84918910a7$export$6d3443f2c48bfc20 } from "./utils-B4IdLYb8.js";
|
|
3
3
|
import React__default, { useEffect, useState, useRef, useCallback, useContext, useMemo, forwardRef, createContext } from "react";
|
|
4
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c, b as $e6afbd83fe6ebbd2$export$13f3202a3e5ddd5 } from "./useFocusable-
|
|
5
|
-
import {
|
|
4
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c, b as $e6afbd83fe6ebbd2$export$13f3202a3e5ddd5 } from "./useFocusable-BFKHuYS9.js";
|
|
5
|
+
import { o as $c87311424ea30a05$export$78551043582a6a98, $ as $6179b936705e76d3$export$ae780daf29e6d456, u as $507fabe10e71c6fb$export$630ff653c5ada6a9, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-PMGZgZ9-.js";
|
|
6
6
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
7
|
-
import { $ as $dbSRa$reactdom } from "./index-
|
|
7
|
+
import { $ as $dbSRa$reactdom } from "./index-BTCzc3zb.js";
|
|
8
8
|
import { $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-CHmNj-oR.js";
|
|
9
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
9
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-Bon2Gyx5.js";
|
|
10
10
|
import { c as clsx } from "./lite-DVmmD_-j.js";
|
|
11
11
|
function $9daab02d461809db$var$hasResizeObserver() {
|
|
12
12
|
return typeof window.ResizeObserver !== "undefined";
|
|
13
13
|
}
|
|
14
14
|
function $9daab02d461809db$export$683480f191c0e3ea(options) {
|
|
15
|
-
const { ref, onResize } = options;
|
|
15
|
+
const { ref, box, onResize } = options;
|
|
16
16
|
useEffect(() => {
|
|
17
17
|
let element = ref === null || ref === void 0 ? void 0 : ref.current;
|
|
18
18
|
if (!element) return;
|
|
@@ -26,14 +26,17 @@ function $9daab02d461809db$export$683480f191c0e3ea(options) {
|
|
|
26
26
|
if (!entries.length) return;
|
|
27
27
|
onResize();
|
|
28
28
|
});
|
|
29
|
-
resizeObserverInstance.observe(element
|
|
29
|
+
resizeObserverInstance.observe(element, {
|
|
30
|
+
box
|
|
31
|
+
});
|
|
30
32
|
return () => {
|
|
31
33
|
if (element) resizeObserverInstance.unobserve(element);
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
}, [
|
|
35
37
|
onResize,
|
|
36
|
-
ref
|
|
38
|
+
ref,
|
|
39
|
+
box
|
|
37
40
|
]);
|
|
38
41
|
}
|
|
39
42
|
const $edcf132a9284368a$var$AXIS = {
|
|
@@ -312,6 +315,7 @@ function $dd149f63282afbbf$export$18fc8428861184da(opts) {
|
|
|
312
315
|
let onScroll = (e) => {
|
|
313
316
|
let target = e.target;
|
|
314
317
|
if (!triggerRef.current || target instanceof Node && !target.contains(triggerRef.current)) return;
|
|
318
|
+
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) return;
|
|
315
319
|
let onCloseHandler = onClose || $dd149f63282afbbf$export$f6211563215e3b37.get(triggerRef.current);
|
|
316
320
|
if (onCloseHandler) onCloseHandler();
|
|
317
321
|
};
|
|
@@ -360,8 +364,21 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
|
|
|
360
364
|
isOpen
|
|
361
365
|
]);
|
|
362
366
|
let updatePosition = useCallback(() => {
|
|
363
|
-
if (shouldUpdatePosition === false || !isOpen || !overlayRef.current || !targetRef.current || !
|
|
367
|
+
if (shouldUpdatePosition === false || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement) return;
|
|
364
368
|
if (($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale) !== lastScale.current) return;
|
|
369
|
+
let anchor = null;
|
|
370
|
+
if (scrollRef.current && scrollRef.current.contains(document.activeElement)) {
|
|
371
|
+
let anchorRect = document.activeElement.getBoundingClientRect();
|
|
372
|
+
let scrollRect = scrollRef.current.getBoundingClientRect();
|
|
373
|
+
anchor = {
|
|
374
|
+
type: "top",
|
|
375
|
+
offset: anchorRect.top - scrollRect.top
|
|
376
|
+
};
|
|
377
|
+
if (anchor.offset > scrollRect.height / 2) {
|
|
378
|
+
anchor.type = "bottom";
|
|
379
|
+
anchor.offset = anchorRect.bottom - scrollRect.bottom;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
365
382
|
let overlay = overlayRef.current;
|
|
366
383
|
if (!maxHeight && overlayRef.current) {
|
|
367
384
|
var _window_visualViewport;
|
|
@@ -374,7 +391,7 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
|
|
|
374
391
|
placement: $2a41e45df1593e64$var$translateRTL(placement, direction),
|
|
375
392
|
overlayNode: overlayRef.current,
|
|
376
393
|
targetNode: targetRef.current,
|
|
377
|
-
scrollNode: scrollRef.current,
|
|
394
|
+
scrollNode: scrollRef.current || overlayRef.current,
|
|
378
395
|
padding: containerPadding,
|
|
379
396
|
shouldFlip,
|
|
380
397
|
boundaryElement,
|
|
@@ -386,8 +403,16 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
|
|
|
386
403
|
});
|
|
387
404
|
overlay.style.top = "";
|
|
388
405
|
overlay.style.bottom = "";
|
|
406
|
+
overlay.style.left = "";
|
|
407
|
+
overlay.style.right = "";
|
|
389
408
|
Object.keys(position2.position).forEach((key) => overlay.style[key] = position2.position[key] + "px");
|
|
390
409
|
overlay.style.maxHeight = position2.maxHeight != null ? position2.maxHeight + "px" : void 0;
|
|
410
|
+
if (anchor) {
|
|
411
|
+
let anchorRect = document.activeElement.getBoundingClientRect();
|
|
412
|
+
let scrollRect = scrollRef.current.getBoundingClientRect();
|
|
413
|
+
let newOffset = anchorRect[anchor.type] - scrollRect[anchor.type];
|
|
414
|
+
scrollRef.current.scrollTop += newOffset - anchor.offset;
|
|
415
|
+
}
|
|
391
416
|
setPosition(position2);
|
|
392
417
|
}, deps);
|
|
393
418
|
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(updatePosition, deps);
|
|
@@ -396,6 +421,10 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
|
|
|
396
421
|
ref: overlayRef,
|
|
397
422
|
onResize: updatePosition
|
|
398
423
|
});
|
|
424
|
+
$9daab02d461809db$export$683480f191c0e3ea({
|
|
425
|
+
ref: targetRef,
|
|
426
|
+
onResize: updatePosition
|
|
427
|
+
});
|
|
399
428
|
let isResizing = useRef(false);
|
|
400
429
|
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
401
430
|
let timeout;
|
|
@@ -430,13 +459,14 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
|
|
|
430
459
|
isOpen,
|
|
431
460
|
onClose: onClose && close
|
|
432
461
|
});
|
|
462
|
+
var _position_maxHeight;
|
|
433
463
|
return {
|
|
434
464
|
overlayProps: {
|
|
435
465
|
style: {
|
|
436
466
|
position: "absolute",
|
|
437
467
|
zIndex: 1e5,
|
|
438
468
|
...position.position,
|
|
439
|
-
maxHeight: position.maxHeight
|
|
469
|
+
maxHeight: (_position_maxHeight = position.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : "100vh"
|
|
440
470
|
}
|
|
441
471
|
},
|
|
442
472
|
placement: position.placement,
|
|
@@ -653,7 +683,8 @@ function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {
|
|
|
653
683
|
let { delay = $8796f90736e175cb$var$TOOLTIP_DELAY, closeDelay = $8796f90736e175cb$var$TOOLTIP_COOLDOWN } = props;
|
|
654
684
|
let { isOpen, open, close } = $fc909762b330b746$export$61c6a8c84e605fb6(props);
|
|
655
685
|
let id = useMemo(() => `${++$8796f90736e175cb$var$tooltipId}`, []);
|
|
656
|
-
let closeTimeout = useRef();
|
|
686
|
+
let closeTimeout = useRef(void 0);
|
|
687
|
+
let closeCallback = useRef(close);
|
|
657
688
|
let ensureTooltipEntry = () => {
|
|
658
689
|
$8796f90736e175cb$var$tooltips[id] = hideTooltip;
|
|
659
690
|
};
|
|
@@ -683,10 +714,10 @@ function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {
|
|
|
683
714
|
if (immediate || closeDelay <= 0) {
|
|
684
715
|
clearTimeout(closeTimeout.current);
|
|
685
716
|
closeTimeout.current = null;
|
|
686
|
-
|
|
717
|
+
closeCallback.current();
|
|
687
718
|
} else if (!closeTimeout.current) closeTimeout.current = setTimeout(() => {
|
|
688
719
|
closeTimeout.current = null;
|
|
689
|
-
|
|
720
|
+
closeCallback.current();
|
|
690
721
|
}, closeDelay);
|
|
691
722
|
if ($8796f90736e175cb$var$globalWarmUpTimeout) {
|
|
692
723
|
clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout);
|
|
@@ -711,6 +742,11 @@ function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {
|
|
|
711
742
|
}, delay);
|
|
712
743
|
else if (!isOpen) showTooltip();
|
|
713
744
|
};
|
|
745
|
+
useEffect(() => {
|
|
746
|
+
closeCallback.current = close;
|
|
747
|
+
}, [
|
|
748
|
+
close
|
|
749
|
+
]);
|
|
714
750
|
useEffect(() => {
|
|
715
751
|
return () => {
|
|
716
752
|
clearTimeout(closeTimeout.current);
|
|
@@ -1040,8 +1076,8 @@ export {
|
|
|
1040
1076
|
$fc909762b330b746$export$61c6a8c84e605fb6 as $,
|
|
1041
1077
|
DecorativeTooltip as D,
|
|
1042
1078
|
Tooltip as T,
|
|
1043
|
-
$
|
|
1044
|
-
$
|
|
1045
|
-
$
|
|
1046
|
-
$
|
|
1079
|
+
$9daab02d461809db$export$683480f191c0e3ea as a,
|
|
1080
|
+
$dd149f63282afbbf$export$f6211563215e3b37 as b,
|
|
1081
|
+
$2a41e45df1593e64$export$d39e1813b3bdd0e1 as c,
|
|
1082
|
+
$44f671af83e7d9e0$export$2de4954e8ae13b9f as d
|
|
1047
1083
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B4IdLYb8.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
3
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
4
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
3
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-BFKHuYS9.js";
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-CY8MpqYD.js";
|
|
5
5
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
6
6
|
let {
|
|
7
7
|
elementType = "button",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-
|
|
1
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-B4IdLYb8.js";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
|
|
4
4
|
let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as $507fabe10e71c6fb$export$b9b3dfddab17db27, b as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-
|
|
1
|
+
import { a as $507fabe10e71c6fb$export$b9b3dfddab17db27, b as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-PMGZgZ9-.js";
|
|
2
2
|
import { useRef, useState, useCallback } from "react";
|
|
3
3
|
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
4
4
|
let { autoFocus = false, isTextInput, within } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, h as $6a99195332edec8b$export$80f3e147d781571c, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-
|
|
2
|
-
import { l as $df56164dff5785e2$export$4338b53315abf666,
|
|
1
|
+
import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, h as $6a99195332edec8b$export$80f3e147d781571c, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-PMGZgZ9-.js";
|
|
2
|
+
import { l as $df56164dff5785e2$export$4338b53315abf666, c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B4IdLYb8.js";
|
|
3
3
|
import React__default, { useRef, useEffect, useContext } from "react";
|
|
4
4
|
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
5
5
|
if (!handler) return void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-
|
|
1
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-B4IdLYb8.js";
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
3
|
function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
|
|
4
4
|
let resetValue = useRef(initialValue);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { i as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./focusSafely-PMGZgZ9-.js";
|
|
1
2
|
import { useEffect, createContext, useMemo, useContext, useState, useRef } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-DC-UMp1n.js";
|
|
3
|
+
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-B4IdLYb8.js";
|
|
4
4
|
function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
|
|
5
5
|
let { validationBehavior, focus } = props;
|
|
6
6
|
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-
|
|
1
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-CVd6C65L.js";
|
|
2
|
+
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-B4IdLYb8.js";
|
|
2
3
|
import { useState } from "react";
|
|
3
|
-
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-DC-UMp1n.js";
|
|
4
4
|
function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
|
|
5
5
|
let isDisabled = options === null || options === void 0 ? void 0 : options.isDisabled;
|
|
6
6
|
let [hasTabbableChild, setHasTabbableChild] = useState(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-
|
|
2
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
1
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-B4IdLYb8.js";
|
|
2
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-JaBafrnV.js";
|
|
3
3
|
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
4
4
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
5
5
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-
|
|
1
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-B4IdLYb8.js";
|
|
2
2
|
function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
|
|
3
3
|
let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
|
|
4
4
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { useState, useMemo } from "react";
|
|
2
2
|
function $0d86e9c8f07f9a7b$export$762f73dccccd255d(options) {
|
|
3
|
-
let { initialItems = [], initialSelectedKeys, getKey = (item) =>
|
|
3
|
+
let { initialItems = [], initialSelectedKeys, getKey = (item) => {
|
|
4
|
+
var _item_id;
|
|
5
|
+
return (_item_id = item.id) !== null && _item_id !== void 0 ? _item_id : item.key;
|
|
6
|
+
}, filter, initialFilterText = "" } = options;
|
|
4
7
|
let [state, setState] = useState({
|
|
5
8
|
items: initialItems,
|
|
6
9
|
selectedKeys: initialSelectedKeys === "all" ? "all" : new Set(initialSelectedKeys || []),
|
|
@@ -192,6 +195,6 @@ function $0d86e9c8f07f9a7b$var$move(state, indices, toIndex) {
|
|
|
192
195
|
};
|
|
193
196
|
}
|
|
194
197
|
export {
|
|
195
|
-
$0d86e9c8f07f9a7b$export$
|
|
196
|
-
$0d86e9c8f07f9a7b$export$
|
|
198
|
+
$0d86e9c8f07f9a7b$export$79c0c687a5963b0a as $,
|
|
199
|
+
$0d86e9c8f07f9a7b$export$762f73dccccd255d as a
|
|
197
200
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-
|
|
1
|
+
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-CvRaua4m.js";
|
|
2
2
|
import { useMemo, useCallback, useRef, useEffect } from "react";
|
|
3
3
|
class $a02d57049d202695$export$d085fb9e920b5ca7 {
|
|
4
4
|
*[Symbol.iterator]() {
|
|
@@ -100,13 +100,15 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
|
|
|
100
100
|
const diff = cachedItemNodes.length - itemNodes.length;
|
|
101
101
|
let index = Math.min(diff > 1 ? Math.max(startItem.index - diff + 1, 0) : startItem.index, itemNodes.length - 1);
|
|
102
102
|
let newNode;
|
|
103
|
+
let isReverseSearching = false;
|
|
103
104
|
while (index >= 0) {
|
|
104
105
|
if (!selectionManager.isDisabled(itemNodes[index].key)) {
|
|
105
106
|
newNode = itemNodes[index];
|
|
106
107
|
break;
|
|
107
108
|
}
|
|
108
|
-
if (index < itemNodes.length - 1) index++;
|
|
109
|
+
if (index < itemNodes.length - 1 && !isReverseSearching) index++;
|
|
109
110
|
else {
|
|
111
|
+
isReverseSearching = true;
|
|
110
112
|
if (index > startItem.index) index = startItem.index;
|
|
111
113
|
index--;
|
|
112
114
|
}
|
|
@@ -127,5 +129,6 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
|
|
|
127
129
|
};
|
|
128
130
|
}
|
|
129
131
|
export {
|
|
130
|
-
$e72dd72e1c76a225$export$2f645645f7bca764 as
|
|
132
|
+
$e72dd72e1c76a225$export$2f645645f7bca764 as $,
|
|
133
|
+
$a02d57049d202695$export$d085fb9e920b5ca7 as a
|
|
131
134
|
};
|
package/dist/{useLocalizedStringFormatter-Cwm_siat.js → useLocalizedStringFormatter-CVIIVTgz.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-Bon2Gyx5.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
const $5b160d28a433310d$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
|
|
4
4
|
const $5b160d28a433310d$var$stringsSymbol = Symbol.for("react-aria.i18n.strings");
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-B4IdLYb8.js";
|
|
2
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CVIIVTgz.js";
|
|
3
|
+
import { n as $8a26561d2877236e$export$c24ed0104d07eab9 } from "./SelectionManager-CvRaua4m.js";
|
|
4
|
+
import { l as $628037886ba31236$export$f9d5c8beee7d008d } from "./Dialog-CGE2ficT.js";
|
|
5
|
+
var $c0398ad35c3639b7$exports = {};
|
|
6
|
+
$c0398ad35c3639b7$exports = {
|
|
7
|
+
"longPressMessage": `اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`
|
|
8
|
+
};
|
|
9
|
+
var $7af657c4165927c3$exports = {};
|
|
10
|
+
$7af657c4165927c3$exports = {
|
|
11
|
+
"longPressMessage": `Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`
|
|
12
|
+
};
|
|
13
|
+
var $d95d4da6d531ab81$exports = {};
|
|
14
|
+
$d95d4da6d531ab81$exports = {
|
|
15
|
+
"longPressMessage": `Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku`
|
|
16
|
+
};
|
|
17
|
+
var $24ebda9c775dca17$exports = {};
|
|
18
|
+
$24ebda9c775dca17$exports = {
|
|
19
|
+
"longPressMessage": `Langt tryk eller tryk på Alt + pil ned for at åbne menuen`
|
|
20
|
+
};
|
|
21
|
+
var $743e0dfca6cab1e9$exports = {};
|
|
22
|
+
$743e0dfca6cab1e9$exports = {
|
|
23
|
+
"longPressMessage": `Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen`
|
|
24
|
+
};
|
|
25
|
+
var $a2f41026e05f1c84$exports = {};
|
|
26
|
+
$a2f41026e05f1c84$exports = {
|
|
27
|
+
"longPressMessage": `Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`
|
|
28
|
+
};
|
|
29
|
+
var $43b800e97c901737$exports = {};
|
|
30
|
+
$43b800e97c901737$exports = {
|
|
31
|
+
"longPressMessage": `Long press or press Alt + ArrowDown to open menu`
|
|
32
|
+
};
|
|
33
|
+
var $442f5f6ac211e29f$exports = {};
|
|
34
|
+
$442f5f6ac211e29f$exports = {
|
|
35
|
+
"longPressMessage": `Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú`
|
|
36
|
+
};
|
|
37
|
+
var $dff280acfeb2d8ac$exports = {};
|
|
38
|
+
$dff280acfeb2d8ac$exports = {
|
|
39
|
+
"longPressMessage": `Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool`
|
|
40
|
+
};
|
|
41
|
+
var $51608325613944d7$exports = {};
|
|
42
|
+
$51608325613944d7$exports = {
|
|
43
|
+
"longPressMessage": `Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`
|
|
44
|
+
};
|
|
45
|
+
var $c4a1b1eabeaa87be$exports = {};
|
|
46
|
+
$c4a1b1eabeaa87be$exports = {
|
|
47
|
+
"longPressMessage": `Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu.`
|
|
48
|
+
};
|
|
49
|
+
var $8c74815cdee18d1b$exports = {};
|
|
50
|
+
$8c74815cdee18d1b$exports = {
|
|
51
|
+
"longPressMessage": `לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`
|
|
52
|
+
};
|
|
53
|
+
var $fd0e9ef6a7fe0ec9$exports = {};
|
|
54
|
+
$fd0e9ef6a7fe0ec9$exports = {
|
|
55
|
+
"longPressMessage": `Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`
|
|
56
|
+
};
|
|
57
|
+
var $a89a74a39eba465a$exports = {};
|
|
58
|
+
$a89a74a39eba465a$exports = {
|
|
59
|
+
"longPressMessage": `Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához`
|
|
60
|
+
};
|
|
61
|
+
var $edc7c66594a0ae8a$exports = {};
|
|
62
|
+
$edc7c66594a0ae8a$exports = {
|
|
63
|
+
"longPressMessage": `Premere a lungo o premere Alt + Freccia giù per aprire il menu`
|
|
64
|
+
};
|
|
65
|
+
var $f1ab51510712db52$exports = {};
|
|
66
|
+
$f1ab51510712db52$exports = {
|
|
67
|
+
"longPressMessage": `長押しまたは Alt+下矢印キーでメニューを開く`
|
|
68
|
+
};
|
|
69
|
+
var $f9b672d9b82fa3d6$exports = {};
|
|
70
|
+
$f9b672d9b82fa3d6$exports = {
|
|
71
|
+
"longPressMessage": `길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`
|
|
72
|
+
};
|
|
73
|
+
var $a385f3910feda499$exports = {};
|
|
74
|
+
$a385f3910feda499$exports = {
|
|
75
|
+
"longPressMessage": `Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`
|
|
76
|
+
};
|
|
77
|
+
var $4f1bde932c441789$exports = {};
|
|
78
|
+
$4f1bde932c441789$exports = {
|
|
79
|
+
"longPressMessage": `Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`
|
|
80
|
+
};
|
|
81
|
+
var $914a51a8a594d5be$exports = {};
|
|
82
|
+
$914a51a8a594d5be$exports = {
|
|
83
|
+
"longPressMessage": `Langt trykk eller trykk Alt + PilNed for å åpne menyen`
|
|
84
|
+
};
|
|
85
|
+
var $89aaf803103bb500$exports = {};
|
|
86
|
+
$89aaf803103bb500$exports = {
|
|
87
|
+
"longPressMessage": `Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`
|
|
88
|
+
};
|
|
89
|
+
var $c685891476dbaaca$exports = {};
|
|
90
|
+
$c685891476dbaaca$exports = {
|
|
91
|
+
"longPressMessage": `Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu`
|
|
92
|
+
};
|
|
93
|
+
var $885879b9b10c2959$exports = {};
|
|
94
|
+
$885879b9b10c2959$exports = {
|
|
95
|
+
"longPressMessage": `Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`
|
|
96
|
+
};
|
|
97
|
+
var $6b39616688a51692$exports = {};
|
|
98
|
+
$6b39616688a51692$exports = {
|
|
99
|
+
"longPressMessage": `Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`
|
|
100
|
+
};
|
|
101
|
+
var $f26362aed63f47e2$exports = {};
|
|
102
|
+
$f26362aed63f47e2$exports = {
|
|
103
|
+
"longPressMessage": `Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul`
|
|
104
|
+
};
|
|
105
|
+
var $06cbade644558bf0$exports = {};
|
|
106
|
+
$06cbade644558bf0$exports = {
|
|
107
|
+
"longPressMessage": `Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`
|
|
108
|
+
};
|
|
109
|
+
var $0a391ff68f9d59b1$exports = {};
|
|
110
|
+
$0a391ff68f9d59b1$exports = {
|
|
111
|
+
"longPressMessage": `Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol`
|
|
112
|
+
};
|
|
113
|
+
var $8193cf0e649c7928$exports = {};
|
|
114
|
+
$8193cf0e649c7928$exports = {
|
|
115
|
+
"longPressMessage": `Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`
|
|
116
|
+
};
|
|
117
|
+
var $f398debcce5a5c55$exports = {};
|
|
118
|
+
$f398debcce5a5c55$exports = {
|
|
119
|
+
"longPressMessage": `Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`
|
|
120
|
+
};
|
|
121
|
+
var $9e9fef000aa4c013$exports = {};
|
|
122
|
+
$9e9fef000aa4c013$exports = {
|
|
123
|
+
"longPressMessage": `Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn`
|
|
124
|
+
};
|
|
125
|
+
var $c016c8183bbe3d68$exports = {};
|
|
126
|
+
$c016c8183bbe3d68$exports = {
|
|
127
|
+
"longPressMessage": `Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın`
|
|
128
|
+
};
|
|
129
|
+
var $ca4f6c8462244e62$exports = {};
|
|
130
|
+
$ca4f6c8462244e62$exports = {
|
|
131
|
+
"longPressMessage": `Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`
|
|
132
|
+
};
|
|
133
|
+
var $2d9960c02ccac927$exports = {};
|
|
134
|
+
$2d9960c02ccac927$exports = {
|
|
135
|
+
"longPressMessage": `长按或按 Alt + 向下方向键以打开菜单`
|
|
136
|
+
};
|
|
137
|
+
var $f1b682a4c8c5631c$exports = {};
|
|
138
|
+
$f1b682a4c8c5631c$exports = {
|
|
139
|
+
"longPressMessage": `長按或按 Alt+向下鍵以開啟功能表`
|
|
140
|
+
};
|
|
141
|
+
var $2cbb7ca666678a14$exports = {};
|
|
142
|
+
$2cbb7ca666678a14$exports = {
|
|
143
|
+
"ar-AE": $c0398ad35c3639b7$exports,
|
|
144
|
+
"bg-BG": $7af657c4165927c3$exports,
|
|
145
|
+
"cs-CZ": $d95d4da6d531ab81$exports,
|
|
146
|
+
"da-DK": $24ebda9c775dca17$exports,
|
|
147
|
+
"de-DE": $743e0dfca6cab1e9$exports,
|
|
148
|
+
"el-GR": $a2f41026e05f1c84$exports,
|
|
149
|
+
"en-US": $43b800e97c901737$exports,
|
|
150
|
+
"es-ES": $442f5f6ac211e29f$exports,
|
|
151
|
+
"et-EE": $dff280acfeb2d8ac$exports,
|
|
152
|
+
"fi-FI": $51608325613944d7$exports,
|
|
153
|
+
"fr-FR": $c4a1b1eabeaa87be$exports,
|
|
154
|
+
"he-IL": $8c74815cdee18d1b$exports,
|
|
155
|
+
"hr-HR": $fd0e9ef6a7fe0ec9$exports,
|
|
156
|
+
"hu-HU": $a89a74a39eba465a$exports,
|
|
157
|
+
"it-IT": $edc7c66594a0ae8a$exports,
|
|
158
|
+
"ja-JP": $f1ab51510712db52$exports,
|
|
159
|
+
"ko-KR": $f9b672d9b82fa3d6$exports,
|
|
160
|
+
"lt-LT": $a385f3910feda499$exports,
|
|
161
|
+
"lv-LV": $4f1bde932c441789$exports,
|
|
162
|
+
"nb-NO": $914a51a8a594d5be$exports,
|
|
163
|
+
"nl-NL": $89aaf803103bb500$exports,
|
|
164
|
+
"pl-PL": $c685891476dbaaca$exports,
|
|
165
|
+
"pt-BR": $885879b9b10c2959$exports,
|
|
166
|
+
"pt-PT": $6b39616688a51692$exports,
|
|
167
|
+
"ro-RO": $f26362aed63f47e2$exports,
|
|
168
|
+
"ru-RU": $06cbade644558bf0$exports,
|
|
169
|
+
"sk-SK": $0a391ff68f9d59b1$exports,
|
|
170
|
+
"sl-SI": $8193cf0e649c7928$exports,
|
|
171
|
+
"sr-SP": $f398debcce5a5c55$exports,
|
|
172
|
+
"sv-SE": $9e9fef000aa4c013$exports,
|
|
173
|
+
"tr-TR": $c016c8183bbe3d68$exports,
|
|
174
|
+
"uk-UA": $ca4f6c8462244e62$exports,
|
|
175
|
+
"zh-CN": $2d9960c02ccac927$exports,
|
|
176
|
+
"zh-TW": $f1b682a4c8c5631c$exports
|
|
177
|
+
};
|
|
178
|
+
function $parcel$interopDefault(a) {
|
|
179
|
+
return a && a.__esModule ? a.default : a;
|
|
180
|
+
}
|
|
181
|
+
function $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {
|
|
182
|
+
let { type = "menu", isDisabled, trigger = "press" } = props;
|
|
183
|
+
let menuTriggerId = $bdb11010cef70236$export$f680877a34711e37();
|
|
184
|
+
let { triggerProps, overlayProps } = $628037886ba31236$export$f9d5c8beee7d008d({
|
|
185
|
+
type
|
|
186
|
+
}, state, ref);
|
|
187
|
+
let onKeyDown = (e) => {
|
|
188
|
+
if (isDisabled) return;
|
|
189
|
+
if (trigger === "longPress" && !e.altKey) return;
|
|
190
|
+
if (ref && ref.current) switch (e.key) {
|
|
191
|
+
case "Enter":
|
|
192
|
+
case " ":
|
|
193
|
+
if (trigger === "longPress") return;
|
|
194
|
+
case "ArrowDown":
|
|
195
|
+
if (!("continuePropagation" in e)) e.stopPropagation();
|
|
196
|
+
e.preventDefault();
|
|
197
|
+
state.toggle("first");
|
|
198
|
+
break;
|
|
199
|
+
case "ArrowUp":
|
|
200
|
+
if (!("continuePropagation" in e)) e.stopPropagation();
|
|
201
|
+
e.preventDefault();
|
|
202
|
+
state.toggle("last");
|
|
203
|
+
break;
|
|
204
|
+
default:
|
|
205
|
+
if ("continuePropagation" in e) e.continuePropagation();
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($2cbb7ca666678a14$exports), "@react-aria/menu");
|
|
209
|
+
let { longPressProps } = $8a26561d2877236e$export$c24ed0104d07eab9({
|
|
210
|
+
isDisabled: isDisabled || trigger !== "longPress",
|
|
211
|
+
accessibilityDescription: stringFormatter.format("longPressMessage"),
|
|
212
|
+
onLongPressStart() {
|
|
213
|
+
state.close();
|
|
214
|
+
},
|
|
215
|
+
onLongPress() {
|
|
216
|
+
state.open("first");
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
let pressProps = {
|
|
220
|
+
onPressStart(e) {
|
|
221
|
+
if (e.pointerType !== "touch" && e.pointerType !== "keyboard" && !isDisabled)
|
|
222
|
+
state.open(e.pointerType === "virtual" ? "first" : null);
|
|
223
|
+
},
|
|
224
|
+
onPress(e) {
|
|
225
|
+
if (e.pointerType === "touch" && !isDisabled) state.toggle();
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
delete triggerProps.onPress;
|
|
229
|
+
return {
|
|
230
|
+
menuTriggerProps: {
|
|
231
|
+
...triggerProps,
|
|
232
|
+
...trigger === "press" ? pressProps : longPressProps,
|
|
233
|
+
id: menuTriggerId,
|
|
234
|
+
onKeyDown
|
|
235
|
+
},
|
|
236
|
+
menuProps: {
|
|
237
|
+
...overlayProps,
|
|
238
|
+
"aria-labelledby": menuTriggerId,
|
|
239
|
+
autoFocus: state.focusStrategy || true,
|
|
240
|
+
onClose: state.close
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
export {
|
|
245
|
+
$168583247155ddda$export$dc9c12ed27dd1b49 as $
|
|
246
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52,
|
|
1
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, c as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, n as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-B4IdLYb8.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
3
|
-
import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec, x as $c87311424ea30a05$export$186c6964ca17d99,
|
|
4
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
3
|
+
import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec, x as $c87311424ea30a05$export$186c6964ca17d99, v as $c87311424ea30a05$export$a11b0059900ceec8, j as $c87311424ea30a05$export$fedb369cb70207f1, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-PMGZgZ9-.js";
|
|
4
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BCPbwfnH.js";
|
|
5
5
|
import { useCallback, useEffect, useRef, useMemo, useState } from "react";
|
|
6
|
-
import { c as $e5be200c675c3b3a$export$a763b9476acd3eb, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidationState-
|
|
7
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
8
|
-
import { b as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-
|
|
9
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
10
|
-
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-
|
|
6
|
+
import { c as $e5be200c675c3b3a$export$a763b9476acd3eb, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidationState-DC5jbhBW.js";
|
|
7
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-DDLT851Z.js";
|
|
8
|
+
import { b as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-CaS4qmLb.js";
|
|
9
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CVIIVTgz.js";
|
|
10
|
+
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-BEeBSV-N.js";
|
|
11
11
|
import { a as $319e236875307eab$export$d10ae4f68404609a, $ as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./LiveAnnouncer-D8h-3GrG.js";
|
|
12
|
-
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./textSelection-
|
|
12
|
+
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./textSelection-DS7-670U.js";
|
|
13
13
|
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-CHmNj-oR.js";
|
|
14
14
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-U_Gx0UDq.js";
|
|
15
15
|
function $7d0a636d7a4dcefd$export$2123ff2b87c81ca(props, ref) {
|
|
@@ -485,7 +485,7 @@ function $parcel$interopDefault$1(a) {
|
|
|
485
485
|
return a && a.__esModule ? a.default : a;
|
|
486
486
|
}
|
|
487
487
|
function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
488
|
-
const _async = useRef();
|
|
488
|
+
const _async = useRef(void 0);
|
|
489
489
|
let { value, textValue, minValue, maxValue, isDisabled, isReadOnly, isRequired, onIncrement, onIncrementPage, onDecrement, onDecrementPage, onDecrementToMin, onIncrementToMax } = props;
|
|
490
490
|
const stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$1($a99895ee3dc79e61$exports), "@react-aria/spinbutton");
|
|
491
491
|
const clearAsync = () => clearTimeout(_async.current);
|
|
@@ -907,7 +907,8 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
907
907
|
onScroll: onWheel,
|
|
908
908
|
isDisabled: scrollingDisabled
|
|
909
909
|
}, inputRef);
|
|
910
|
-
|
|
910
|
+
var _intlOptions_maximumFractionDigits;
|
|
911
|
+
let hasDecimals = ((_intlOptions_maximumFractionDigits = intlOptions.maximumFractionDigits) !== null && _intlOptions_maximumFractionDigits !== void 0 ? _intlOptions_maximumFractionDigits : 0) > 0;
|
|
911
912
|
let hasNegative = state.minValue === void 0 || isNaN(state.minValue) || state.minValue < 0;
|
|
912
913
|
let inputMode = "numeric";
|
|
913
914
|
if ($c87311424ea30a05$export$186c6964ca17d99()) {
|