@eightshift/ui-components 7.2.0 → 7.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/Autocomplete-pLMPWMFq.js +451 -0
- package/dist/Button-Biwg7zwt.js +223 -0
- package/dist/Dialog-C1sh8jbh.js +2474 -0
- package/dist/{Disclosure-NYWFw9RJ.js → Disclosure-B_SHgiUz.js} +50 -51
- package/dist/FocusScope-lGkM8AO8.js +734 -0
- package/dist/Form-BxIJCHYd.js +5 -0
- package/dist/Heading-B2EsUuu6.js +16 -0
- package/dist/{Hidden-8TB37dpK.js → Hidden-DYY00jLm.js} +10 -10
- package/dist/I18nProvider-Cm6dj5jY.js +93 -0
- package/dist/Label-B1TkoVOG.js +17 -0
- package/dist/ListBox-BquE0m8z.js +584 -0
- package/dist/{NumberFormatter-m5VW6MTK.js → NumberFormatter-JHF0Tadk.js} +24 -26
- package/dist/PortalProvider-BYcv24il.js +13 -0
- package/dist/RadioGroup-BxjLooWU.js +324 -0
- package/dist/SearchField-BkAU0HLm.js +322 -0
- package/dist/SelectionIndicator-Bx_EYBXD.js +13 -0
- package/dist/{Slider-DW1RuMVp.js → Slider-DSv6fyZ6.js} +321 -363
- package/dist/Text-C8pfwn0W.js +16 -0
- package/dist/{VisuallyHidden-CfsnJHZb.js → VisuallyHidden-KcXlGa5p.js} +12 -12
- package/dist/{animation-Bd2peown.js → animation-BJ-2VKdB.js} +12 -12
- package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-symbols-full-normal.woff2 +0 -0
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/{button-D9cbyHeZ.js → button-CawAzlko.js} +21 -73
- package/dist/{checkbox-BO5RZmO8.js → checkbox-t7VrqXv2.js} +59 -62
- package/dist/{color-swatch-D2ZBkuTt.js → color-swatch-gU09x9Ga.js} +417 -414
- package/dist/components/base-control/base-control.js +2 -2
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +5 -5
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/index.js +15 -15
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -5
- package/dist/components/menu/menu.js +11 -11
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/options-panel/options-panel.js +3 -3
- package/dist/components/placeholders/file-picker-shell.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +6 -6
- package/dist/components/portal-provider/portal-provider.js +2 -2
- package/dist/components/radio/radio.js +9 -9
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +6 -6
- package/dist/components/responsive/responsive-legacy.js +5 -5
- package/dist/components/responsive/responsive.js +5 -5
- package/dist/components/responsive-preview/responsive-preview.js +2 -2
- package/dist/components/select/async-multi-select.js +27 -26
- package/dist/components/select/async-select.js +27 -26
- package/dist/components/select/multi-select.js +33 -32
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +33 -32
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +8 -8
- package/dist/components/slider/slider.js +8 -8
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-CTDVJ4zd.js → draggable-Cxv-OueQ.js} +1 -1
- package/dist/filterDOMProps-BfW758QC.js +69 -0
- package/dist/{gradient-editor-xfxA_s9a.js → gradient-editor-CInqVF8v.js} +6 -11
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +15 -15
- package/dist/{input-field-_OCWbftf.js → input-field-BdFrxQ-R.js} +46 -47
- package/dist/{jsx-svg-BRJ4n3pD.js → jsx-svg-DT1SBWuP.js} +6 -12
- package/dist/keyboard-CT41mQzR.js +55 -0
- package/dist/{link-input-Bh8G7Urm.js → link-input-BDFhSSvH.js} +324 -356
- package/dist/{modal-snrElwty.js → modal-CJDaBdPh.js} +100 -92
- package/dist/{number-ZZIxJukn.js → number-MWRvGfyE.js} +10 -10
- package/dist/{number-picker-Dhtx4409.js → number-picker-BrxrB-xq.js} +43 -42
- package/dist/{shared-BiWZjrGF.js → shared-CI4kcnm8.js} +482 -502
- package/dist/{smart-image-CBNbxJ57.js → smart-image-eGdMu9s9.js} +2 -2
- package/dist/{solid-color-picker-DukArNH-.js → solid-color-picker-DXgX-OAm.js} +926 -935
- package/dist/{switch-DmsvyQPa.js → switch-DNHFoCCx.js} +28 -28
- package/dist/{tabs-DaIUEc0g.js → tabs-C2tPOEYr.js} +150 -153
- package/dist/textSelection-BhX_2zV9.js +45 -0
- package/dist/{toggle-button-BlzUGfGy.js → toggle-button-DYDp11rq.js} +35 -35
- package/dist/{tooltip-BzJzYlcc.js → tooltip-C-hT6tN9.js} +162 -162
- package/dist/{useAsyncList-BNzwKoX4.js → useAsyncList-DsOh1xIx.js} +54 -74
- package/dist/{useButton-ra1ZSZ4z.js → useButton-BMZc4fTX.js} +11 -11
- package/dist/{SelectionManager-B8lLv6Ue.js → useCollection-CBVYSuGz.js} +1689 -1777
- package/dist/{useEvent-DkZVfgsS.js → useEvent-ypAU33vv.js} +5 -5
- package/dist/useField-BXf__jxy.js +32 -0
- package/dist/{useFilter-OiMnf6sb.js → useFilter-CfKEbIwL.js} +5 -5
- package/dist/{useFocusRing-DuYL4cdO.js → useFocusRing-BgYY-7ko.js} +23 -23
- package/dist/useFormReset-BuMc_O4y.js +17 -0
- package/dist/{FieldError-BWDbP5Db.js → useFormValidation-BcME9D0E.js} +63 -66
- package/dist/useHover-lyApu3ba.js +975 -0
- package/dist/{useLabel-2EohW5l6.js → useLabel-Rv8cIIKk.js} +8 -8
- package/dist/{useLabels-B2p7RXi5.js → useLabels-xOYtkA8o.js} +5 -5
- package/dist/useListState-u6DfeXHi.js +135 -0
- package/dist/{useLocalizedStringFormatter-Dv2diN3k.js → useLocalizedStringFormatter-CR-bmorj.js} +45 -45
- package/dist/{useNumberField-2xbi3jRV.js → useNumberFieldState-xL-ecwNz.js} +665 -619
- package/dist/useNumberFormatter-CR1PAFPG.js +10 -0
- package/dist/useOverlayTriggerState-AeCx45Gv.js +551 -0
- package/dist/usePress-Dnx5rBoD.js +593 -0
- package/dist/useTextField-BW3ZwGyz.js +159 -0
- package/dist/{useToggle-ecIirvIM.js → useToggle-BF5wptMP.js} +19 -20
- package/dist/useToggleState-D5P01lch.js +22 -0
- package/dist/useToolbar-BT25-MJg.js +55 -0
- package/dist/utilities/debounce-throttle.js +1 -1
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +3 -3
- package/dist/{utils-B_uiqNa4.js → utils-JFcCNFzy.js} +121 -122
- package/package.json +18 -18
- package/dist/Button-h6xF_WrP.js +0 -225
- package/dist/Dialog-i5VLQw1o.js +0 -2488
- package/dist/FocusScope-CgwbGOBB.js +0 -746
- package/dist/Form-DTMkbrQY.js +0 -5
- package/dist/Heading-Hol-wS_B.js +0 -16
- package/dist/Input-BURqyJXW.js +0 -161
- package/dist/Label-DFXXxMKY.js +0 -17
- package/dist/ListBox-B21SgugS.js +0 -601
- package/dist/OverlayArrow-BoloUPQM.js +0 -573
- package/dist/PortalProvider-DinZZCKX.js +0 -14
- package/dist/RSPContexts-C_z0bI8W.js +0 -12
- package/dist/RadioGroup-BwlGtCja.js +0 -329
- package/dist/SearchField-DR_I4_yn.js +0 -765
- package/dist/SelectionIndicator-31L6EI9F.js +0 -13
- package/dist/Text-O6VBBDlP.js +0 -16
- package/dist/context-C-XNeJ_l.js +0 -93
- package/dist/filterDOMProps-_2_3GD-K.js +0 -69
- package/dist/textSelection-Dv6WPj0Z.js +0 -45
- package/dist/useField-D0WrzR2F.js +0 -32
- package/dist/useFormReset-DdkykzAn.js +0 -18
- package/dist/useHover-qaMm3XFO.js +0 -982
- package/dist/useListState-CD_5vfyy.js +0 -147
- package/dist/useNumberFormatter-C2Cm2mNj.js +0 -10
- package/dist/usePress-ZP1TjkFf.js +0 -678
- package/dist/useToggleState-IIDbiKPl.js +0 -23
- /package/dist/{List-DWlgW2Ex.js → List---tsVJlI.js} +0 -0
- /package/dist/{build-module-Bsx62nlm.js → build-module-K6vi4xE0.js} +0 -0
- /package/dist/{debounce-throttle-DXxSAKpq.js → debounce-throttle-LSPAPFtq.js} +0 -0
- /package/dist/{dist-2gkv7_1U.js → dist-jw8wvxoG.js} +0 -0
- /package/dist/{es-dash-HqXWZZ3_.js → es-dash-BuShf_ht.js} +0 -0
- /package/dist/{utilities-lwX686oD.js → utilities-DV0KKJNR.js} +0 -0
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, d as $4064df0d6f9620e1$export$c9058316764c140e, h as $c4867b2f328c2698$export$e5c5a5f917a5871c, l as $03e8ab2d84d7657a$export$4338b53315abf666, p as $390e54f620492c70$export$f680877a34711e37, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-JFcCNFzy.js";
|
|
2
|
+
import { a as $b72f3f7b3b5f42c6$export$759df0d867455a91, c as $8b2399d051d06d4c$export$831c820ad60f9d12, i as $b72f3f7b3b5f42c6$export$6c5dc7e81d2cc29a, o as $b72f3f7b3b5f42c6$export$76e4e37e5339496d, r as $b72f3f7b3b5f42c6$export$2b35b76d2e30e129, s as $8b2399d051d06d4c$export$447a38995de2c711, t as $bb39c0fc1c19b34c$export$16792effe837dba3 } from "./keyboard-CT41mQzR.js";
|
|
3
|
+
import { H as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, W as $d447af545b77c9f1$export$b204af158042fbac, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, h as $8f5a2122b0992be3$export$887a228355cf7d95, j as $2add3ce32c6007eb$export$fedb369cb70207f1, k as $2add3ce32c6007eb$export$a11b0059900ceec8, p as $8f5a2122b0992be3$export$630ff653c5ada6a9 } from "./useHover-lyApu3ba.js";
|
|
4
|
+
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-ypAU33vv.js";
|
|
5
|
+
import { t as $e8ac3c3f5d4bae7f$export$d6875122194c7b44 } from "./useLabels-xOYtkA8o.js";
|
|
6
|
+
import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CR-bmorj.js";
|
|
7
|
+
import React, { createContext, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
8
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/ar-AE.mjs
|
|
9
|
+
var $18e231809643ee60$exports = {};
|
|
10
|
+
$18e231809643ee60$exports = { "collectionLabel": `\u{645}\u{642}\u{62A}\u{631}\u{62D}\u{627}\u{62A}` };
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/bg-BG.mjs
|
|
13
|
+
var $efe95218d340c8fc$exports = {};
|
|
14
|
+
$efe95218d340c8fc$exports = { "collectionLabel": `\u{41F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}` };
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/cs-CZ.mjs
|
|
17
|
+
var $0e28f2b8b6d36dfd$exports = {};
|
|
18
|
+
$0e28f2b8b6d36dfd$exports = { "collectionLabel": `N\xe1vrhy` };
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/da-DK.mjs
|
|
21
|
+
var $a2115d90ea08917b$exports = {};
|
|
22
|
+
$a2115d90ea08917b$exports = { "collectionLabel": `Forslag` };
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/de-DE.mjs
|
|
25
|
+
var $2006053c58f5ea3d$exports = {};
|
|
26
|
+
$2006053c58f5ea3d$exports = { "collectionLabel": `Empfehlungen` };
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/el-GR.mjs
|
|
29
|
+
var $a6ca37a0a86010d1$exports = {};
|
|
30
|
+
$a6ca37a0a86010d1$exports = { "collectionLabel": `\u{3A0}\u{3C1}\u{3BF}\u{3C4}\u{3AC}\u{3C3}\u{3B5}\u{3B9}\u{3C2}` };
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/en-US.mjs
|
|
33
|
+
var $9dd2209c22b301e2$exports = {};
|
|
34
|
+
$9dd2209c22b301e2$exports = { "collectionLabel": `Suggestions` };
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/es-ES.mjs
|
|
37
|
+
var $aeaf8a1d8cee2bf2$exports = {};
|
|
38
|
+
$aeaf8a1d8cee2bf2$exports = { "collectionLabel": `Sugerencias` };
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/et-EE.mjs
|
|
41
|
+
var $fd75d77379af10ab$exports = {};
|
|
42
|
+
$fd75d77379af10ab$exports = { "collectionLabel": `Soovitused` };
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/fi-FI.mjs
|
|
45
|
+
var $605efe37fc0917d3$exports = {};
|
|
46
|
+
$605efe37fc0917d3$exports = { "collectionLabel": `Ehdotukset` };
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/fr-FR.mjs
|
|
49
|
+
var $6e034876d49a8abb$exports = {};
|
|
50
|
+
$6e034876d49a8abb$exports = { "collectionLabel": `Suggestions` };
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/he-IL.mjs
|
|
53
|
+
var $360057ace2262932$exports = {};
|
|
54
|
+
$360057ace2262932$exports = { "collectionLabel": `\u{5D4}\u{5E6}\u{5E2}\u{5D5}\u{5EA}` };
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/hr-HR.mjs
|
|
57
|
+
var $52731caf9b0efb5b$exports = {};
|
|
58
|
+
$52731caf9b0efb5b$exports = { "collectionLabel": `Prijedlozi` };
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/hu-HU.mjs
|
|
61
|
+
var $63160cfb5ee507f0$exports = {};
|
|
62
|
+
$63160cfb5ee507f0$exports = { "collectionLabel": `Javaslatok` };
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/it-IT.mjs
|
|
65
|
+
var $b542014dd6f00ba1$exports = {};
|
|
66
|
+
$b542014dd6f00ba1$exports = { "collectionLabel": `Suggerimenti` };
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/ja-JP.mjs
|
|
69
|
+
var $4b247c3a68c0be9b$exports = {};
|
|
70
|
+
$4b247c3a68c0be9b$exports = { "collectionLabel": `\u{5019}\u{88DC}` };
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/ko-KR.mjs
|
|
73
|
+
var $8209822dd94e7701$exports = {};
|
|
74
|
+
$8209822dd94e7701$exports = { "collectionLabel": `\u{C81C}\u{C548}` };
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/lt-LT.mjs
|
|
77
|
+
var $4e4f59529c29e701$exports = {};
|
|
78
|
+
$4e4f59529c29e701$exports = { "collectionLabel": `Pasi\u{16B}lymai` };
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/lv-LV.mjs
|
|
81
|
+
var $6fa8837a63df4f12$exports = {};
|
|
82
|
+
$6fa8837a63df4f12$exports = { "collectionLabel": `Ieteikumi` };
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/nb-NO.mjs
|
|
85
|
+
var $ec41eb3cc4866d2c$exports = {};
|
|
86
|
+
$ec41eb3cc4866d2c$exports = { "collectionLabel": `Forslag` };
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/nl-NL.mjs
|
|
89
|
+
var $2b35eba0f962bae7$exports = {};
|
|
90
|
+
$2b35eba0f962bae7$exports = { "collectionLabel": `Suggesties` };
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/pl-PL.mjs
|
|
93
|
+
var $e59b93b4e4946a8d$exports = {};
|
|
94
|
+
$e59b93b4e4946a8d$exports = { "collectionLabel": `Sugestie` };
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/pt-BR.mjs
|
|
97
|
+
var $1299194a1aff68b3$exports = {};
|
|
98
|
+
$1299194a1aff68b3$exports = { "collectionLabel": `Sugest\xf5es` };
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/pt-PT.mjs
|
|
101
|
+
var $364e0798cc413123$exports = {};
|
|
102
|
+
$364e0798cc413123$exports = { "collectionLabel": `Sugest\xf5es` };
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/ro-RO.mjs
|
|
105
|
+
var $8d6b4a0f50df4fc5$exports = {};
|
|
106
|
+
$8d6b4a0f50df4fc5$exports = { "collectionLabel": `Sugestii` };
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/ru-RU.mjs
|
|
109
|
+
var $f8e62fab04776d30$exports = {};
|
|
110
|
+
$f8e62fab04776d30$exports = { "collectionLabel": `\u{41F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}` };
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/sk-SK.mjs
|
|
113
|
+
var $535c41866ee7cefd$exports = {};
|
|
114
|
+
$535c41866ee7cefd$exports = { "collectionLabel": `N\xe1vrhy` };
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/sl-SI.mjs
|
|
117
|
+
var $cc1bf99c20c38a3a$exports = {};
|
|
118
|
+
$cc1bf99c20c38a3a$exports = { "collectionLabel": `Predlogi` };
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/sr-SP.mjs
|
|
121
|
+
var $a5b1f2a26d35179f$exports = {};
|
|
122
|
+
$a5b1f2a26d35179f$exports = { "collectionLabel": `Predlozi` };
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/sv-SE.mjs
|
|
125
|
+
var $25a3025fd66e8119$exports = {};
|
|
126
|
+
$25a3025fd66e8119$exports = { "collectionLabel": `F\xf6rslag` };
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/tr-TR.mjs
|
|
129
|
+
var $3a93a0373b3c5cc8$exports = {};
|
|
130
|
+
$3a93a0373b3c5cc8$exports = { "collectionLabel": `\xd6neriler` };
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/uk-UA.mjs
|
|
133
|
+
var $e53d39a7f163580b$exports = {};
|
|
134
|
+
$e53d39a7f163580b$exports = { "collectionLabel": `\u{41F}\u{440}\u{43E}\u{43F}\u{43E}\u{437}\u{438}\u{446}\u{456}\u{457}` };
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/zh-CN.mjs
|
|
137
|
+
var $e00b505c063926a4$exports = {};
|
|
138
|
+
$e00b505c063926a4$exports = { "collectionLabel": `\u{5EFA}\u{8BAE}` };
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region node_modules/react-aria/dist/private/intl/autocomplete/zh-TW.mjs
|
|
141
|
+
var $00beea4d53fc8dba$exports = {};
|
|
142
|
+
$00beea4d53fc8dba$exports = { "collectionLabel": `\u{5EFA}\u{8B70}` };
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region node_modules/react-aria/dist/private/autocomplete/intlStrings.mjs
|
|
145
|
+
var $f4ee495ec2e82b79$exports = {};
|
|
146
|
+
$f4ee495ec2e82b79$exports = {
|
|
147
|
+
"ar-AE": $18e231809643ee60$exports,
|
|
148
|
+
"bg-BG": $efe95218d340c8fc$exports,
|
|
149
|
+
"cs-CZ": $0e28f2b8b6d36dfd$exports,
|
|
150
|
+
"da-DK": $a2115d90ea08917b$exports,
|
|
151
|
+
"de-DE": $2006053c58f5ea3d$exports,
|
|
152
|
+
"el-GR": $a6ca37a0a86010d1$exports,
|
|
153
|
+
"en-US": $9dd2209c22b301e2$exports,
|
|
154
|
+
"es-ES": $aeaf8a1d8cee2bf2$exports,
|
|
155
|
+
"et-EE": $fd75d77379af10ab$exports,
|
|
156
|
+
"fi-FI": $605efe37fc0917d3$exports,
|
|
157
|
+
"fr-FR": $6e034876d49a8abb$exports,
|
|
158
|
+
"he-IL": $360057ace2262932$exports,
|
|
159
|
+
"hr-HR": $52731caf9b0efb5b$exports,
|
|
160
|
+
"hu-HU": $63160cfb5ee507f0$exports,
|
|
161
|
+
"it-IT": $b542014dd6f00ba1$exports,
|
|
162
|
+
"ja-JP": $4b247c3a68c0be9b$exports,
|
|
163
|
+
"ko-KR": $8209822dd94e7701$exports,
|
|
164
|
+
"lt-LT": $4e4f59529c29e701$exports,
|
|
165
|
+
"lv-LV": $6fa8837a63df4f12$exports,
|
|
166
|
+
"nb-NO": $ec41eb3cc4866d2c$exports,
|
|
167
|
+
"nl-NL": $2b35eba0f962bae7$exports,
|
|
168
|
+
"pl-PL": $e59b93b4e4946a8d$exports,
|
|
169
|
+
"pt-BR": $1299194a1aff68b3$exports,
|
|
170
|
+
"pt-PT": $364e0798cc413123$exports,
|
|
171
|
+
"ro-RO": $8d6b4a0f50df4fc5$exports,
|
|
172
|
+
"ru-RU": $f8e62fab04776d30$exports,
|
|
173
|
+
"sk-SK": $535c41866ee7cefd$exports,
|
|
174
|
+
"sl-SI": $cc1bf99c20c38a3a$exports,
|
|
175
|
+
"sr-SP": $a5b1f2a26d35179f$exports,
|
|
176
|
+
"sv-SE": $25a3025fd66e8119$exports,
|
|
177
|
+
"tr-TR": $3a93a0373b3c5cc8$exports,
|
|
178
|
+
"uk-UA": $e53d39a7f163580b$exports,
|
|
179
|
+
"zh-CN": $e00b505c063926a4$exports,
|
|
180
|
+
"zh-TW": $00beea4d53fc8dba$exports
|
|
181
|
+
};
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region node_modules/react-aria/dist/private/autocomplete/useAutocomplete.mjs
|
|
184
|
+
function $parcel$interopDefault(a) {
|
|
185
|
+
return a && a.__esModule ? a.default : a;
|
|
186
|
+
}
|
|
187
|
+
function $134103e19bdfd846$export$1e40b3ca02d92d21(props, state) {
|
|
188
|
+
let { inputRef, collectionRef, filter, disableAutoFocusFirst = false, disableVirtualFocus = false } = props;
|
|
189
|
+
let collectionId = $390e54f620492c70$export$f680877a34711e37();
|
|
190
|
+
let timeout = useRef(void 0);
|
|
191
|
+
let delayNextActiveDescendant = useRef(false);
|
|
192
|
+
let queuedActiveDescendant = useRef(null);
|
|
193
|
+
let [shouldUseVirtualFocus, setShouldUseVirtualFocus] = useState(!($8f5a2122b0992be3$export$630ff653c5ada6a9() === "virtual" && ($2add3ce32c6007eb$export$fedb369cb70207f1() || $2add3ce32c6007eb$export$a11b0059900ceec8())) && !disableVirtualFocus);
|
|
194
|
+
let [hasCollection, setHasCollection] = useState(false);
|
|
195
|
+
useEffect(() => {
|
|
196
|
+
return () => clearTimeout(timeout.current);
|
|
197
|
+
}, []);
|
|
198
|
+
let updateActiveDescendantEvent = $fe16bffc7a557bf0$export$7f54fc3180508a52((e) => {
|
|
199
|
+
if (!e.isTrusted && shouldUseVirtualFocus && inputRef.current && $23f2114a1b82827e$export$cd4e5573fbe2b576($d447af545b77c9f1$export$b204af158042fbac(inputRef.current)) !== inputRef.current && $8f5a2122b0992be3$export$887a228355cf7d95() !== "touch") inputRef.current.focus();
|
|
200
|
+
let target = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
201
|
+
if (e.isTrusted || !target || queuedActiveDescendant.current === target.id) return;
|
|
202
|
+
clearTimeout(timeout.current);
|
|
203
|
+
if (target !== collectionRef.current) if (delayNextActiveDescendant.current) {
|
|
204
|
+
queuedActiveDescendant.current = target.id;
|
|
205
|
+
timeout.current = setTimeout(() => {
|
|
206
|
+
state.setFocusedNodeId(target.id);
|
|
207
|
+
}, 500);
|
|
208
|
+
} else {
|
|
209
|
+
queuedActiveDescendant.current = target.id;
|
|
210
|
+
state.setFocusedNodeId(target.id);
|
|
211
|
+
}
|
|
212
|
+
else if (queuedActiveDescendant.current && !document.getElementById(queuedActiveDescendant.current)) {
|
|
213
|
+
queuedActiveDescendant.current = null;
|
|
214
|
+
state.setFocusedNodeId(null);
|
|
215
|
+
}
|
|
216
|
+
delayNextActiveDescendant.current = false;
|
|
217
|
+
});
|
|
218
|
+
let [collectionNode, setCollectionNode] = useState(null);
|
|
219
|
+
let callbackRef = useCallback((node) => {
|
|
220
|
+
setCollectionNode(node);
|
|
221
|
+
if (node != null) {
|
|
222
|
+
if (node.getAttribute("tabindex") != null) setShouldUseVirtualFocus(false);
|
|
223
|
+
setHasCollection(true);
|
|
224
|
+
} else setHasCollection(false);
|
|
225
|
+
}, []);
|
|
226
|
+
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
227
|
+
if (collectionNode != null) collectionNode.addEventListener("focusin", updateActiveDescendantEvent);
|
|
228
|
+
return () => {
|
|
229
|
+
collectionNode?.removeEventListener("focusin", updateActiveDescendantEvent);
|
|
230
|
+
};
|
|
231
|
+
}, [collectionNode]);
|
|
232
|
+
let mergedCollectionRef = $03e8ab2d84d7657a$export$4338b53315abf666(useMemo(() => $4064df0d6f9620e1$export$c9058316764c140e(collectionRef, callbackRef), [collectionRef, callbackRef]));
|
|
233
|
+
let focusFirstItem = useCallback(() => {
|
|
234
|
+
delayNextActiveDescendant.current = true;
|
|
235
|
+
collectionRef.current?.dispatchEvent(new CustomEvent($8b2399d051d06d4c$export$831c820ad60f9d12, {
|
|
236
|
+
cancelable: true,
|
|
237
|
+
bubbles: true,
|
|
238
|
+
detail: { focusStrategy: "first" }
|
|
239
|
+
}));
|
|
240
|
+
}, [collectionRef]);
|
|
241
|
+
let clearVirtualFocus = useCallback((clearFocusKey) => {
|
|
242
|
+
$b72f3f7b3b5f42c6$export$76e4e37e5339496d($23f2114a1b82827e$export$cd4e5573fbe2b576());
|
|
243
|
+
queuedActiveDescendant.current = null;
|
|
244
|
+
state.setFocusedNodeId(null);
|
|
245
|
+
let clearFocusEvent = new CustomEvent($8b2399d051d06d4c$export$447a38995de2c711, {
|
|
246
|
+
cancelable: true,
|
|
247
|
+
bubbles: true,
|
|
248
|
+
detail: { clearFocusKey }
|
|
249
|
+
});
|
|
250
|
+
clearTimeout(timeout.current);
|
|
251
|
+
delayNextActiveDescendant.current = false;
|
|
252
|
+
collectionRef.current?.dispatchEvent(clearFocusEvent);
|
|
253
|
+
}, [collectionRef, state]);
|
|
254
|
+
let lastInputType = useRef("");
|
|
255
|
+
$600b3cf69ae46262$export$90fc3a17d93f704c(inputRef, "input", (e) => {
|
|
256
|
+
let { inputType } = e;
|
|
257
|
+
lastInputType.current = inputType;
|
|
258
|
+
});
|
|
259
|
+
let onChange = (value) => {
|
|
260
|
+
if (lastInputType.current === "insertText" && !disableAutoFocusFirst) focusFirstItem();
|
|
261
|
+
else if (lastInputType.current && (lastInputType.current.includes("insert") || lastInputType.current.includes("delete") || lastInputType.current.includes("history"))) {
|
|
262
|
+
clearVirtualFocus(true);
|
|
263
|
+
if ($b72f3f7b3b5f42c6$export$759df0d867455a91(document) === inputRef.current) $b72f3f7b3b5f42c6$export$2b35b76d2e30e129(inputRef.current, null);
|
|
264
|
+
}
|
|
265
|
+
state.setInputValue(value);
|
|
266
|
+
};
|
|
267
|
+
let keyDownTarget = useRef(null);
|
|
268
|
+
let onKeyDown = (e) => {
|
|
269
|
+
keyDownTarget.current = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
270
|
+
if (e.nativeEvent.isComposing) return;
|
|
271
|
+
let focusedNodeId = queuedActiveDescendant.current;
|
|
272
|
+
if (focusedNodeId !== null && $d447af545b77c9f1$export$b204af158042fbac(inputRef.current).getElementById(focusedNodeId) == null) {
|
|
273
|
+
queuedActiveDescendant.current = null;
|
|
274
|
+
focusedNodeId = null;
|
|
275
|
+
}
|
|
276
|
+
switch (e.key) {
|
|
277
|
+
case "a":
|
|
278
|
+
if ($bb39c0fc1c19b34c$export$16792effe837dba3(e)) return;
|
|
279
|
+
break;
|
|
280
|
+
case "Escape":
|
|
281
|
+
if (e.isDefaultPrevented()) return;
|
|
282
|
+
break;
|
|
283
|
+
case " ": return;
|
|
284
|
+
case "Tab":
|
|
285
|
+
if ("continuePropagation" in e) e.continuePropagation();
|
|
286
|
+
return;
|
|
287
|
+
case "Home":
|
|
288
|
+
case "End":
|
|
289
|
+
case "PageDown":
|
|
290
|
+
case "PageUp":
|
|
291
|
+
case "ArrowUp":
|
|
292
|
+
case "ArrowDown":
|
|
293
|
+
case "ArrowRight":
|
|
294
|
+
case "ArrowLeft": {
|
|
295
|
+
if ((e.key === "Home" || e.key === "End") && focusedNodeId == null && e.shiftKey) return;
|
|
296
|
+
if ((e.key === "ArrowRight" || e.key === "ArrowLeft") && state.inputValue.length > 0) {
|
|
297
|
+
if (focusedNodeId == null) {
|
|
298
|
+
if (!e.isPropagationStopped()) e.stopPropagation();
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
e.preventDefault();
|
|
304
|
+
let focusCollection = new CustomEvent($8b2399d051d06d4c$export$831c820ad60f9d12, {
|
|
305
|
+
cancelable: true,
|
|
306
|
+
bubbles: true
|
|
307
|
+
});
|
|
308
|
+
collectionRef.current?.dispatchEvent(focusCollection);
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
if (!e.isPropagationStopped()) e.stopPropagation();
|
|
313
|
+
let shouldPerformDefaultAction = true;
|
|
314
|
+
if (collectionRef.current !== null) if (focusedNodeId == null) shouldPerformDefaultAction = collectionRef.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)) || false;
|
|
315
|
+
else {
|
|
316
|
+
let item = document.getElementById(focusedNodeId);
|
|
317
|
+
if (item) shouldPerformDefaultAction = item?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)) || false;
|
|
318
|
+
}
|
|
319
|
+
if (shouldPerformDefaultAction) switch (e.key) {
|
|
320
|
+
case "ArrowLeft":
|
|
321
|
+
case "ArrowRight":
|
|
322
|
+
clearVirtualFocus();
|
|
323
|
+
break;
|
|
324
|
+
case "Enter":
|
|
325
|
+
if (focusedNodeId != null) document.getElementById(focusedNodeId)?.dispatchEvent(new PointerEvent("click", e.nativeEvent));
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
else e.preventDefault();
|
|
329
|
+
};
|
|
330
|
+
let onKeyUpCapture = $fe16bffc7a557bf0$export$7f54fc3180508a52((e) => {
|
|
331
|
+
if ($23f2114a1b82827e$export$e58f029f0fbfdb29(e) === keyDownTarget.current) {
|
|
332
|
+
e.stopImmediatePropagation();
|
|
333
|
+
let focusedNodeId = queuedActiveDescendant.current;
|
|
334
|
+
if (focusedNodeId == null) collectionRef.current?.dispatchEvent(new KeyboardEvent(e.type, e));
|
|
335
|
+
else document.getElementById(focusedNodeId)?.dispatchEvent(new KeyboardEvent(e.type, e));
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
useEffect(() => {
|
|
339
|
+
document.addEventListener("keyup", onKeyUpCapture, true);
|
|
340
|
+
return () => {
|
|
341
|
+
document.removeEventListener("keyup", onKeyUpCapture, true);
|
|
342
|
+
};
|
|
343
|
+
}, []);
|
|
344
|
+
let collectionProps = $e8ac3c3f5d4bae7f$export$d6875122194c7b44({
|
|
345
|
+
id: collectionId,
|
|
346
|
+
"aria-label": $cf2482eff2eeeec2$export$f12b703ca79dfbb1($parcel$interopDefault($f4ee495ec2e82b79$exports), "@react-aria/autocomplete").format("collectionLabel")
|
|
347
|
+
});
|
|
348
|
+
let filterFn = useCallback((nodeTextValue, node) => {
|
|
349
|
+
if (filter) return filter(nodeTextValue, state.inputValue, node);
|
|
350
|
+
return true;
|
|
351
|
+
}, [state.inputValue, filter]);
|
|
352
|
+
let onBlur = (e) => {
|
|
353
|
+
if (!e.isTrusted) return;
|
|
354
|
+
let lastFocusedNode = queuedActiveDescendant.current ? document.getElementById(queuedActiveDescendant.current) : null;
|
|
355
|
+
if (lastFocusedNode) $b72f3f7b3b5f42c6$export$6c5dc7e81d2cc29a(lastFocusedNode, e.relatedTarget);
|
|
356
|
+
};
|
|
357
|
+
let onFocus = (e) => {
|
|
358
|
+
if (!e.isTrusted) return;
|
|
359
|
+
if (queuedActiveDescendant.current ? document.getElementById(queuedActiveDescendant.current) : null) {
|
|
360
|
+
let target = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
361
|
+
queueMicrotask(() => {
|
|
362
|
+
$b72f3f7b3b5f42c6$export$6c5dc7e81d2cc29a(target, collectionRef.current);
|
|
363
|
+
$b72f3f7b3b5f42c6$export$2b35b76d2e30e129(collectionRef.current, target);
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
let onPointerDown = (e) => {
|
|
368
|
+
if (e.button !== 0 || e.pointerType === "touch" || queuedActiveDescendant.current == null || inputRef.current == null) return;
|
|
369
|
+
if ($23f2114a1b82827e$export$e58f029f0fbfdb29(e) === inputRef.current) clearVirtualFocus();
|
|
370
|
+
};
|
|
371
|
+
let inputProps = {
|
|
372
|
+
value: state.inputValue,
|
|
373
|
+
onChange
|
|
374
|
+
};
|
|
375
|
+
let virtualFocusProps = {
|
|
376
|
+
onKeyDown,
|
|
377
|
+
"aria-activedescendant": state.focusedNodeId ?? void 0,
|
|
378
|
+
onBlur,
|
|
379
|
+
onFocus,
|
|
380
|
+
onPointerDown
|
|
381
|
+
};
|
|
382
|
+
if (hasCollection) inputProps = {
|
|
383
|
+
...inputProps,
|
|
384
|
+
...shouldUseVirtualFocus && virtualFocusProps,
|
|
385
|
+
enterKeyHint: "go",
|
|
386
|
+
"aria-controls": collectionId,
|
|
387
|
+
"aria-autocomplete": "list",
|
|
388
|
+
autoCorrect: "off",
|
|
389
|
+
spellCheck: "false",
|
|
390
|
+
autoComplete: "off"
|
|
391
|
+
};
|
|
392
|
+
return {
|
|
393
|
+
inputProps,
|
|
394
|
+
collectionProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(collectionProps, {
|
|
395
|
+
shouldUseVirtualFocus,
|
|
396
|
+
disallowTypeAhead: shouldUseVirtualFocus
|
|
397
|
+
}),
|
|
398
|
+
collectionRef: mergedCollectionRef,
|
|
399
|
+
filter: filter != null ? filterFn : void 0
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region node_modules/react-stately/dist/private/autocomplete/useAutocompleteState.mjs
|
|
404
|
+
function $436a01f8a2730afd$export$ce1595f6e1a63433(props) {
|
|
405
|
+
let { onInputChange: propsOnInputChange, inputValue: propsInputValue, defaultInputValue: propsDefaultInputValue = "" } = props;
|
|
406
|
+
let onInputChange = (value) => {
|
|
407
|
+
if (propsOnInputChange) propsOnInputChange(value);
|
|
408
|
+
};
|
|
409
|
+
let [focusedNodeId, setFocusedNodeId] = useState(null);
|
|
410
|
+
let [inputValue, setInputValue] = $3e6197669829fe11$export$40bfa8c7b0832715(propsInputValue, propsDefaultInputValue, onInputChange);
|
|
411
|
+
return {
|
|
412
|
+
inputValue,
|
|
413
|
+
setInputValue,
|
|
414
|
+
focusedNodeId,
|
|
415
|
+
setFocusedNodeId
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region node_modules/react-aria-components/dist/private/Autocomplete.mjs
|
|
420
|
+
var $4b38b5b75ecc6208$export$36e687af51cd0967 = createContext(null);
|
|
421
|
+
var $4b38b5b75ecc6208$export$68ee3368b6d68148 = createContext(null);
|
|
422
|
+
var $4b38b5b75ecc6208$export$b0d3ecf7112093a7 = createContext(null);
|
|
423
|
+
var $4b38b5b75ecc6208$export$698f465ec27e93df = createContext(null);
|
|
424
|
+
function $4b38b5b75ecc6208$export$2f2b9559550c7bbc(props) {
|
|
425
|
+
props = $bbaa08b3cd72f041$export$9d1611c77c2fe928($7230ffa83bc0c2cf$export$fabf2dc03a41866e($4b38b5b75ecc6208$export$36e687af51cd0967, props.slot), props);
|
|
426
|
+
let { filter, disableAutoFocusFirst } = props;
|
|
427
|
+
let state = $436a01f8a2730afd$export$ce1595f6e1a63433(props);
|
|
428
|
+
let inputRef = useRef(null);
|
|
429
|
+
let collectionRef = useRef(null);
|
|
430
|
+
let { inputProps, collectionProps, collectionRef: mergedCollectionRef, filter: filterFn } = $134103e19bdfd846$export$1e40b3ca02d92d21({
|
|
431
|
+
...$7230ffa83bc0c2cf$export$ef03459518577ad4(props),
|
|
432
|
+
filter,
|
|
433
|
+
disableAutoFocusFirst,
|
|
434
|
+
inputRef,
|
|
435
|
+
collectionRef
|
|
436
|
+
}, state);
|
|
437
|
+
return React.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [
|
|
438
|
+
[$4b38b5b75ecc6208$export$68ee3368b6d68148, state],
|
|
439
|
+
[$4b38b5b75ecc6208$export$698f465ec27e93df, {
|
|
440
|
+
...inputProps,
|
|
441
|
+
ref: inputRef
|
|
442
|
+
}],
|
|
443
|
+
[$4b38b5b75ecc6208$export$b0d3ecf7112093a7, {
|
|
444
|
+
...collectionProps,
|
|
445
|
+
filter: filterFn,
|
|
446
|
+
ref: mergedCollectionRef
|
|
447
|
+
}]
|
|
448
|
+
] }, props.children);
|
|
449
|
+
}
|
|
450
|
+
//#endregion
|
|
451
|
+
export { $4b38b5b75ecc6208$export$698f465ec27e93df as n, $4b38b5b75ecc6208$export$b0d3ecf7112093a7 as r, $4b38b5b75ecc6208$export$2f2b9559550c7bbc as t };
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, p as $390e54f620492c70$export$f680877a34711e37, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-JFcCNFzy.js";
|
|
2
|
+
import { t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-lyApu3ba.js";
|
|
3
|
+
import { t as $d7f64c32b702fe2c$export$86427a43e3e48ebb } from "./Hidden-DYY00jLm.js";
|
|
4
|
+
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-BfW758QC.js";
|
|
5
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-BgYY-7ko.js";
|
|
6
|
+
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-B1TkoVOG.js";
|
|
7
|
+
import { t as $0beb20c9744a2065$export$8467354a121f1b9f } from "./useLabel-Rv8cIIKk.js";
|
|
8
|
+
import { t as $bd90acf18e792be6$export$b7a616150fdb9f44 } from "./useNumberFormatter-CR1PAFPG.js";
|
|
9
|
+
import { t as $240e9101ba2842f5$export$7d15b64cf5a3a4c4 } from "./number-MWRvGfyE.js";
|
|
10
|
+
import { t as $ac4318a9c075bb9f$export$ea18c227d4417cc3 } from "./useButton-BMZc4fTX.js";
|
|
11
|
+
import React, { createContext, forwardRef, useEffect, useRef } from "react";
|
|
12
|
+
//#region node_modules/react-aria/dist/private/progress/useProgressBar.mjs
|
|
13
|
+
function $723aca2821613fe7$export$ed5abd763a836edc(props) {
|
|
14
|
+
let { value = 0, minValue = 0, maxValue = 100, valueLabel, isIndeterminate, formatOptions = { style: "percent" } } = props;
|
|
15
|
+
let domProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { labelable: true });
|
|
16
|
+
let { labelProps, fieldProps } = $0beb20c9744a2065$export$8467354a121f1b9f({
|
|
17
|
+
...props,
|
|
18
|
+
labelElementType: "span"
|
|
19
|
+
});
|
|
20
|
+
value = $240e9101ba2842f5$export$7d15b64cf5a3a4c4(value, minValue, maxValue);
|
|
21
|
+
let percentage = (value - minValue) / (maxValue - minValue);
|
|
22
|
+
let formatter = $bd90acf18e792be6$export$b7a616150fdb9f44(formatOptions);
|
|
23
|
+
if (!isIndeterminate && !valueLabel) {
|
|
24
|
+
let valueToFormat = formatOptions.style === "percent" ? percentage : value;
|
|
25
|
+
valueLabel = formatter.format(valueToFormat);
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
progressBarProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(domProps, {
|
|
29
|
+
...fieldProps,
|
|
30
|
+
"aria-valuenow": isIndeterminate ? void 0 : value,
|
|
31
|
+
"aria-valuemin": minValue,
|
|
32
|
+
"aria-valuemax": maxValue,
|
|
33
|
+
"aria-valuetext": isIndeterminate ? void 0 : valueLabel,
|
|
34
|
+
role: "progressbar"
|
|
35
|
+
}),
|
|
36
|
+
labelProps
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region node_modules/react-aria-components/dist/private/ProgressBar.mjs
|
|
41
|
+
var $6c0095e7e99364f2$export$e9f3bf65a26ce129 = createContext(null);
|
|
42
|
+
var $6c0095e7e99364f2$export$c17561cb55d4db30 = forwardRef(function ProgressBar(props, ref) {
|
|
43
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $6c0095e7e99364f2$export$e9f3bf65a26ce129);
|
|
44
|
+
let { value = 0, minValue = 0, maxValue = 100, isIndeterminate = false } = props;
|
|
45
|
+
value = $240e9101ba2842f5$export$7d15b64cf5a3a4c4(value, minValue, maxValue);
|
|
46
|
+
let [labelRef, label] = $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
47
|
+
let { progressBarProps, labelProps } = $723aca2821613fe7$export$ed5abd763a836edc({
|
|
48
|
+
...props,
|
|
49
|
+
label
|
|
50
|
+
});
|
|
51
|
+
let percentage = isIndeterminate ? void 0 : (value - minValue) / (maxValue - minValue) * 100;
|
|
52
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
53
|
+
...props,
|
|
54
|
+
defaultClassName: "react-aria-ProgressBar",
|
|
55
|
+
values: {
|
|
56
|
+
percentage,
|
|
57
|
+
valueText: progressBarProps["aria-valuetext"],
|
|
58
|
+
isIndeterminate
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
let DOMProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { global: true });
|
|
62
|
+
return React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
63
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(DOMProps, renderProps, progressBarProps),
|
|
64
|
+
ref,
|
|
65
|
+
slot: props.slot || void 0
|
|
66
|
+
}, React.createElement($43a3b93638fe5db9$export$75b6ee27786ba447.Provider, { value: {
|
|
67
|
+
...labelProps,
|
|
68
|
+
ref: labelRef,
|
|
69
|
+
elementType: "span"
|
|
70
|
+
} }, renderProps.children));
|
|
71
|
+
});
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region node_modules/react-aria/dist/private/live-announcer/LiveAnnouncer.mjs
|
|
74
|
+
var $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY = 7e3;
|
|
75
|
+
var $a46cf152bb926da5$var$liveAnnouncer = null;
|
|
76
|
+
function $a46cf152bb926da5$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {
|
|
77
|
+
if (!$a46cf152bb926da5$var$liveAnnouncer) {
|
|
78
|
+
$a46cf152bb926da5$var$liveAnnouncer = new $a46cf152bb926da5$var$LiveAnnouncer();
|
|
79
|
+
if (!(typeof IS_REACT_ACT_ENVIRONMENT === "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== "undefined")) setTimeout(() => {
|
|
80
|
+
if ($a46cf152bb926da5$var$liveAnnouncer?.isAttached()) $a46cf152bb926da5$var$liveAnnouncer?.announce(message, assertiveness, timeout);
|
|
81
|
+
}, 100);
|
|
82
|
+
else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);
|
|
83
|
+
} else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);
|
|
84
|
+
}
|
|
85
|
+
function $a46cf152bb926da5$export$d10ae4f68404609a(assertiveness) {
|
|
86
|
+
if ($a46cf152bb926da5$var$liveAnnouncer) $a46cf152bb926da5$var$liveAnnouncer.clear(assertiveness);
|
|
87
|
+
}
|
|
88
|
+
var $a46cf152bb926da5$var$LiveAnnouncer = class {
|
|
89
|
+
constructor() {
|
|
90
|
+
this.node = null;
|
|
91
|
+
this.assertiveLog = null;
|
|
92
|
+
this.politeLog = null;
|
|
93
|
+
if (typeof document !== "undefined") {
|
|
94
|
+
this.node = document.createElement("div");
|
|
95
|
+
this.node.dataset.liveAnnouncer = "true";
|
|
96
|
+
Object.assign(this.node.style, {
|
|
97
|
+
border: 0,
|
|
98
|
+
clip: "rect(0 0 0 0)",
|
|
99
|
+
clipPath: "inset(50%)",
|
|
100
|
+
height: "1px",
|
|
101
|
+
margin: "-1px",
|
|
102
|
+
overflow: "hidden",
|
|
103
|
+
padding: 0,
|
|
104
|
+
position: "absolute",
|
|
105
|
+
width: "1px",
|
|
106
|
+
whiteSpace: "nowrap"
|
|
107
|
+
});
|
|
108
|
+
this.assertiveLog = this.createLog("assertive");
|
|
109
|
+
this.node.appendChild(this.assertiveLog);
|
|
110
|
+
this.politeLog = this.createLog("polite");
|
|
111
|
+
this.node.appendChild(this.politeLog);
|
|
112
|
+
document.body.prepend(this.node);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
isAttached() {
|
|
116
|
+
return this.node?.isConnected;
|
|
117
|
+
}
|
|
118
|
+
createLog(ariaLive) {
|
|
119
|
+
let node = document.createElement("div");
|
|
120
|
+
node.setAttribute("role", "log");
|
|
121
|
+
node.setAttribute("aria-live", ariaLive);
|
|
122
|
+
node.setAttribute("aria-relevant", "additions");
|
|
123
|
+
return node;
|
|
124
|
+
}
|
|
125
|
+
destroy() {
|
|
126
|
+
if (!this.node) return;
|
|
127
|
+
document.body.removeChild(this.node);
|
|
128
|
+
this.node = null;
|
|
129
|
+
}
|
|
130
|
+
announce(message, assertiveness = "assertive", timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {
|
|
131
|
+
if (!this.node) return;
|
|
132
|
+
let node = document.createElement("div");
|
|
133
|
+
if (typeof message === "object") {
|
|
134
|
+
node.setAttribute("role", "img");
|
|
135
|
+
node.setAttribute("aria-labelledby", message["aria-labelledby"]);
|
|
136
|
+
} else node.textContent = message;
|
|
137
|
+
if (assertiveness === "assertive") this.assertiveLog?.appendChild(node);
|
|
138
|
+
else this.politeLog?.appendChild(node);
|
|
139
|
+
if (message !== "") setTimeout(() => {
|
|
140
|
+
node.remove();
|
|
141
|
+
}, timeout);
|
|
142
|
+
}
|
|
143
|
+
clear(assertiveness) {
|
|
144
|
+
if (!this.node) return;
|
|
145
|
+
if ((!assertiveness || assertiveness === "assertive") && this.assertiveLog) this.assertiveLog.innerHTML = "";
|
|
146
|
+
if ((!assertiveness || assertiveness === "polite") && this.politeLog) this.politeLog.innerHTML = "";
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region node_modules/react-aria-components/dist/private/Button.mjs
|
|
151
|
+
var $7705c033048f6da7$export$24d547caef80ccd1 = createContext({});
|
|
152
|
+
var $7705c033048f6da7$export$353f5b6fc5456de1 = $d7f64c32b702fe2c$export$86427a43e3e48ebb(function Button(props, ref) {
|
|
153
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $7705c033048f6da7$export$24d547caef80ccd1);
|
|
154
|
+
let ctx = props;
|
|
155
|
+
let { isPending } = ctx;
|
|
156
|
+
let { buttonProps, isPressed } = $ac4318a9c075bb9f$export$ea18c227d4417cc3(props, ref);
|
|
157
|
+
buttonProps = $7705c033048f6da7$var$useDisableInteractions(buttonProps, isPending);
|
|
158
|
+
let { focusProps, isFocused, isFocusVisible } = $0c4a58759813079a$export$4e328f61c538687f(props);
|
|
159
|
+
let { hoverProps, isHovered } = $e969f22b6713ca4a$export$ae780daf29e6d456({
|
|
160
|
+
...props,
|
|
161
|
+
isDisabled: props.isDisabled || isPending
|
|
162
|
+
});
|
|
163
|
+
let renderValues = {
|
|
164
|
+
isHovered,
|
|
165
|
+
isPressed: (ctx.isPressed || isPressed) && !isPending,
|
|
166
|
+
isFocused,
|
|
167
|
+
isFocusVisible,
|
|
168
|
+
isDisabled: props.isDisabled || false,
|
|
169
|
+
isPending: isPending ?? false
|
|
170
|
+
};
|
|
171
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
172
|
+
...props,
|
|
173
|
+
values: renderValues,
|
|
174
|
+
defaultClassName: "react-aria-Button"
|
|
175
|
+
});
|
|
176
|
+
let buttonId = $390e54f620492c70$export$f680877a34711e37(buttonProps.id);
|
|
177
|
+
let progressId = $390e54f620492c70$export$f680877a34711e37();
|
|
178
|
+
let ariaLabelledby = buttonProps["aria-labelledby"];
|
|
179
|
+
if (isPending) {
|
|
180
|
+
if (ariaLabelledby) ariaLabelledby = `${ariaLabelledby} ${progressId}`;
|
|
181
|
+
else if (buttonProps["aria-label"]) ariaLabelledby = `${buttonId} ${progressId}`;
|
|
182
|
+
}
|
|
183
|
+
let wasPending = useRef(isPending);
|
|
184
|
+
useEffect(() => {
|
|
185
|
+
let message = { "aria-labelledby": ariaLabelledby || buttonId };
|
|
186
|
+
if (!wasPending.current && isFocused && isPending) $a46cf152bb926da5$export$a9b970dcc4ae71a9(message, "assertive");
|
|
187
|
+
else if (wasPending.current && isFocused && !isPending) $a46cf152bb926da5$export$a9b970dcc4ae71a9(message, "assertive");
|
|
188
|
+
wasPending.current = isPending;
|
|
189
|
+
}, [
|
|
190
|
+
isPending,
|
|
191
|
+
isFocused,
|
|
192
|
+
ariaLabelledby,
|
|
193
|
+
buttonId
|
|
194
|
+
]);
|
|
195
|
+
let DOMProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { global: true });
|
|
196
|
+
delete DOMProps.onClick;
|
|
197
|
+
return React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.button, {
|
|
198
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(DOMProps, renderProps, buttonProps, focusProps, hoverProps),
|
|
199
|
+
type: buttonProps.type === "submit" && isPending ? "button" : buttonProps.type,
|
|
200
|
+
id: buttonId,
|
|
201
|
+
ref,
|
|
202
|
+
"aria-labelledby": ariaLabelledby,
|
|
203
|
+
slot: props.slot || void 0,
|
|
204
|
+
"aria-disabled": isPending ? "true" : buttonProps["aria-disabled"],
|
|
205
|
+
"data-disabled": props.isDisabled || void 0,
|
|
206
|
+
"data-pressed": renderValues.isPressed || void 0,
|
|
207
|
+
"data-hovered": isHovered || void 0,
|
|
208
|
+
"data-focused": isFocused || void 0,
|
|
209
|
+
"data-pending": isPending || void 0,
|
|
210
|
+
"data-focus-visible": isFocusVisible || void 0
|
|
211
|
+
}, React.createElement($6c0095e7e99364f2$export$e9f3bf65a26ce129.Provider, { value: { id: progressId } }, renderProps.children));
|
|
212
|
+
});
|
|
213
|
+
var $7705c033048f6da7$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
|
|
214
|
+
function $7705c033048f6da7$var$useDisableInteractions(props, isPending) {
|
|
215
|
+
if (isPending) {
|
|
216
|
+
for (const key in props) if (key.startsWith("on") && !$7705c033048f6da7$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = void 0;
|
|
217
|
+
props.href = void 0;
|
|
218
|
+
props.target = void 0;
|
|
219
|
+
}
|
|
220
|
+
return props;
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
export { $6c0095e7e99364f2$export$c17561cb55d4db30 as a, $a46cf152bb926da5$export$d10ae4f68404609a as i, $7705c033048f6da7$export$353f5b6fc5456de1 as n, $a46cf152bb926da5$export$a9b970dcc4ae71a9 as r, $7705c033048f6da7$export$24d547caef80ccd1 as t };
|