react-aria-components 1.0.0-rc.0 → 1.0.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/README.md +8 -13
- package/dist/ar-AE.main.js +8 -0
- package/dist/ar-AE.main.js.map +1 -0
- package/dist/ar-AE.mjs +10 -0
- package/dist/ar-AE.module.js +10 -0
- package/dist/ar-AE.module.js.map +1 -0
- package/dist/bg-BG.main.js +8 -0
- package/dist/bg-BG.main.js.map +1 -0
- package/dist/bg-BG.mjs +10 -0
- package/dist/bg-BG.module.js +10 -0
- package/dist/bg-BG.module.js.map +1 -0
- package/dist/cs-CZ.main.js +8 -0
- package/dist/cs-CZ.main.js.map +1 -0
- package/dist/cs-CZ.mjs +10 -0
- package/dist/cs-CZ.module.js +10 -0
- package/dist/cs-CZ.module.js.map +1 -0
- package/dist/da-DK.main.js +8 -0
- package/dist/da-DK.main.js.map +1 -0
- package/dist/da-DK.mjs +10 -0
- package/dist/da-DK.module.js +10 -0
- package/dist/da-DK.module.js.map +1 -0
- package/dist/de-DE.main.js +8 -0
- package/dist/de-DE.main.js.map +1 -0
- package/dist/de-DE.mjs +10 -0
- package/dist/de-DE.module.js +10 -0
- package/dist/de-DE.module.js.map +1 -0
- package/dist/el-GR.main.js +8 -0
- package/dist/el-GR.main.js.map +1 -0
- package/dist/el-GR.mjs +10 -0
- package/dist/el-GR.module.js +10 -0
- package/dist/el-GR.module.js.map +1 -0
- package/dist/en-US.main.js +8 -0
- package/dist/en-US.main.js.map +1 -0
- package/dist/en-US.mjs +10 -0
- package/dist/en-US.module.js +10 -0
- package/dist/en-US.module.js.map +1 -0
- package/dist/es-ES.main.js +8 -0
- package/dist/es-ES.main.js.map +1 -0
- package/dist/es-ES.mjs +10 -0
- package/dist/es-ES.module.js +10 -0
- package/dist/es-ES.module.js.map +1 -0
- package/dist/et-EE.main.js +8 -0
- package/dist/et-EE.main.js.map +1 -0
- package/dist/et-EE.mjs +10 -0
- package/dist/et-EE.module.js +10 -0
- package/dist/et-EE.module.js.map +1 -0
- package/dist/fi-FI.main.js +8 -0
- package/dist/fi-FI.main.js.map +1 -0
- package/dist/fi-FI.mjs +10 -0
- package/dist/fi-FI.module.js +10 -0
- package/dist/fi-FI.module.js.map +1 -0
- package/dist/fr-FR.main.js +8 -0
- package/dist/fr-FR.main.js.map +1 -0
- package/dist/fr-FR.mjs +10 -0
- package/dist/fr-FR.module.js +10 -0
- package/dist/fr-FR.module.js.map +1 -0
- package/dist/he-IL.main.js +8 -0
- package/dist/he-IL.main.js.map +1 -0
- package/dist/he-IL.mjs +10 -0
- package/dist/he-IL.module.js +10 -0
- package/dist/he-IL.module.js.map +1 -0
- package/dist/hr-HR.main.js +8 -0
- package/dist/hr-HR.main.js.map +1 -0
- package/dist/hr-HR.mjs +10 -0
- package/dist/hr-HR.module.js +10 -0
- package/dist/hr-HR.module.js.map +1 -0
- package/dist/hu-HU.main.js +8 -0
- package/dist/hu-HU.main.js.map +1 -0
- package/dist/hu-HU.mjs +10 -0
- package/dist/hu-HU.module.js +10 -0
- package/dist/hu-HU.module.js.map +1 -0
- package/dist/import.mjs +277 -309
- package/dist/it-IT.main.js +8 -0
- package/dist/it-IT.main.js.map +1 -0
- package/dist/it-IT.mjs +10 -0
- package/dist/it-IT.module.js +10 -0
- package/dist/it-IT.module.js.map +1 -0
- package/dist/ja-JP.main.js +8 -0
- package/dist/ja-JP.main.js.map +1 -0
- package/dist/ja-JP.mjs +10 -0
- package/dist/ja-JP.module.js +10 -0
- package/dist/ja-JP.module.js.map +1 -0
- package/dist/ko-KR.main.js +8 -0
- package/dist/ko-KR.main.js.map +1 -0
- package/dist/ko-KR.mjs +10 -0
- package/dist/ko-KR.module.js +10 -0
- package/dist/ko-KR.module.js.map +1 -0
- package/dist/lt-LT.main.js +8 -0
- package/dist/lt-LT.main.js.map +1 -0
- package/dist/lt-LT.mjs +10 -0
- package/dist/lt-LT.module.js +10 -0
- package/dist/lt-LT.module.js.map +1 -0
- package/dist/lv-LV.main.js +8 -0
- package/dist/lv-LV.main.js.map +1 -0
- package/dist/lv-LV.mjs +10 -0
- package/dist/lv-LV.module.js +10 -0
- package/dist/lv-LV.module.js.map +1 -0
- package/dist/main.js +271 -301
- package/dist/main.js.map +1 -1
- package/dist/module.js +277 -309
- package/dist/module.js.map +1 -1
- package/dist/nb-NO.main.js +8 -0
- package/dist/nb-NO.main.js.map +1 -0
- package/dist/nb-NO.mjs +10 -0
- package/dist/nb-NO.module.js +10 -0
- package/dist/nb-NO.module.js.map +1 -0
- package/dist/nl-NL.main.js +8 -0
- package/dist/nl-NL.main.js.map +1 -0
- package/dist/nl-NL.mjs +10 -0
- package/dist/nl-NL.module.js +10 -0
- package/dist/nl-NL.module.js.map +1 -0
- package/dist/pl-PL.main.js +8 -0
- package/dist/pl-PL.main.js.map +1 -0
- package/dist/pl-PL.mjs +10 -0
- package/dist/pl-PL.module.js +10 -0
- package/dist/pl-PL.module.js.map +1 -0
- package/dist/pt-BR.main.js +8 -0
- package/dist/pt-BR.main.js.map +1 -0
- package/dist/pt-BR.mjs +10 -0
- package/dist/pt-BR.module.js +10 -0
- package/dist/pt-BR.module.js.map +1 -0
- package/dist/pt-PT.main.js +8 -0
- package/dist/pt-PT.main.js.map +1 -0
- package/dist/pt-PT.mjs +10 -0
- package/dist/pt-PT.module.js +10 -0
- package/dist/pt-PT.module.js.map +1 -0
- package/dist/ro-RO.main.js +8 -0
- package/dist/ro-RO.main.js.map +1 -0
- package/dist/ro-RO.mjs +10 -0
- package/dist/ro-RO.module.js +10 -0
- package/dist/ro-RO.module.js.map +1 -0
- package/dist/ru-RU.main.js +8 -0
- package/dist/ru-RU.main.js.map +1 -0
- package/dist/ru-RU.mjs +10 -0
- package/dist/ru-RU.module.js +10 -0
- package/dist/ru-RU.module.js.map +1 -0
- package/dist/sk-SK.main.js +8 -0
- package/dist/sk-SK.main.js.map +1 -0
- package/dist/sk-SK.mjs +10 -0
- package/dist/sk-SK.module.js +10 -0
- package/dist/sk-SK.module.js.map +1 -0
- package/dist/sl-SI.main.js +8 -0
- package/dist/sl-SI.main.js.map +1 -0
- package/dist/sl-SI.mjs +10 -0
- package/dist/sl-SI.module.js +10 -0
- package/dist/sl-SI.module.js.map +1 -0
- package/dist/sr-SP.main.js +8 -0
- package/dist/sr-SP.main.js.map +1 -0
- package/dist/sr-SP.mjs +10 -0
- package/dist/sr-SP.module.js +10 -0
- package/dist/sr-SP.module.js.map +1 -0
- package/dist/sv-SE.main.js +8 -0
- package/dist/sv-SE.main.js.map +1 -0
- package/dist/sv-SE.mjs +10 -0
- package/dist/sv-SE.module.js +10 -0
- package/dist/sv-SE.module.js.map +1 -0
- package/dist/tr-TR.main.js +8 -0
- package/dist/tr-TR.main.js.map +1 -0
- package/dist/tr-TR.mjs +10 -0
- package/dist/tr-TR.module.js +10 -0
- package/dist/tr-TR.module.js.map +1 -0
- package/dist/types.d.ts +126 -79
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.main.js +8 -0
- package/dist/uk-UA.main.js.map +1 -0
- package/dist/uk-UA.mjs +10 -0
- package/dist/uk-UA.module.js +10 -0
- package/dist/uk-UA.module.js.map +1 -0
- package/dist/zh-CN.main.js +8 -0
- package/dist/zh-CN.main.js.map +1 -0
- package/dist/zh-CN.mjs +10 -0
- package/dist/zh-CN.module.js +10 -0
- package/dist/zh-CN.module.js.map +1 -0
- package/dist/zh-TW.main.js +8 -0
- package/dist/zh-TW.main.js.map +1 -0
- package/dist/zh-TW.mjs +10 -0
- package/dist/zh-TW.module.js +10 -0
- package/dist/zh-TW.module.js.map +1 -0
- package/i18n/ar-AE.js +1 -0
- package/i18n/ar-AE.mjs +1 -0
- package/i18n/bg-BG.js +1 -0
- package/i18n/bg-BG.mjs +1 -0
- package/i18n/cs-CZ.js +1 -0
- package/i18n/cs-CZ.mjs +1 -0
- package/i18n/da-DK.js +1 -0
- package/i18n/da-DK.mjs +1 -0
- package/i18n/de-DE.js +1 -0
- package/i18n/de-DE.mjs +1 -0
- package/i18n/el-GR.js +1 -0
- package/i18n/el-GR.mjs +1 -0
- package/i18n/en-US.js +1 -0
- package/i18n/en-US.mjs +1 -0
- package/i18n/es-ES.js +1 -0
- package/i18n/es-ES.mjs +1 -0
- package/i18n/et-EE.js +1 -0
- package/i18n/et-EE.mjs +1 -0
- package/i18n/fi-FI.js +1 -0
- package/i18n/fi-FI.mjs +1 -0
- package/i18n/fr-FR.js +1 -0
- package/i18n/fr-FR.mjs +1 -0
- package/i18n/he-IL.js +1 -0
- package/i18n/he-IL.mjs +1 -0
- package/i18n/hr-HR.js +1 -0
- package/i18n/hr-HR.mjs +1 -0
- package/i18n/hu-HU.js +1 -0
- package/i18n/hu-HU.mjs +1 -0
- package/i18n/index.d.ts +12 -0
- package/i18n/index.js +118 -0
- package/i18n/index.mjs +115 -0
- package/i18n/it-IT.js +1 -0
- package/i18n/it-IT.mjs +1 -0
- package/i18n/ja-JP.js +1 -0
- package/i18n/ja-JP.mjs +1 -0
- package/i18n/ko-KR.js +1 -0
- package/i18n/ko-KR.mjs +1 -0
- package/i18n/lang.d.ts +7 -0
- package/i18n/lt-LT.js +1 -0
- package/i18n/lt-LT.mjs +1 -0
- package/i18n/lv-LV.js +1 -0
- package/i18n/lv-LV.mjs +1 -0
- package/i18n/nb-NO.js +1 -0
- package/i18n/nb-NO.mjs +1 -0
- package/i18n/nl-NL.js +1 -0
- package/i18n/nl-NL.mjs +1 -0
- package/i18n/pl-PL.js +1 -0
- package/i18n/pl-PL.mjs +1 -0
- package/i18n/pt-BR.js +1 -0
- package/i18n/pt-BR.mjs +1 -0
- package/i18n/pt-PT.js +1 -0
- package/i18n/pt-PT.mjs +1 -0
- package/i18n/ro-RO.js +1 -0
- package/i18n/ro-RO.mjs +1 -0
- package/i18n/ru-RU.js +1 -0
- package/i18n/ru-RU.mjs +1 -0
- package/i18n/sk-SK.js +1 -0
- package/i18n/sk-SK.mjs +1 -0
- package/i18n/sl-SI.js +1 -0
- package/i18n/sl-SI.mjs +1 -0
- package/i18n/sr-SP.js +1 -0
- package/i18n/sr-SP.mjs +1 -0
- package/i18n/sv-SE.js +1 -0
- package/i18n/sv-SE.mjs +1 -0
- package/i18n/tr-TR.js +1 -0
- package/i18n/tr-TR.mjs +1 -0
- package/i18n/uk-UA.js +1 -0
- package/i18n/uk-UA.mjs +1 -0
- package/i18n/zh-CN.js +1 -0
- package/i18n/zh-CN.mjs +1 -0
- package/i18n/zh-TW.js +1 -0
- package/i18n/zh-TW.mjs +1 -0
- package/package.json +30 -16
- package/src/Breadcrumbs.tsx +3 -2
- package/src/Calendar.tsx +7 -7
- package/src/Checkbox.tsx +14 -31
- package/src/Collection.tsx +40 -27
- package/src/ComboBox.tsx +3 -0
- package/src/DateField.tsx +5 -5
- package/src/DatePicker.tsx +5 -5
- package/src/Dialog.tsx +1 -1
- package/src/DropZone.tsx +1 -1
- package/src/FileTrigger.tsx +10 -4
- package/src/GridList.tsx +6 -4
- package/src/Heading.tsx +1 -1
- package/src/ListBox.tsx +8 -13
- package/src/Menu.tsx +23 -5
- package/src/Modal.tsx +11 -4
- package/src/OverlayArrow.tsx +7 -2
- package/src/Popover.tsx +26 -5
- package/src/RadioGroup.tsx +13 -31
- package/src/SearchField.tsx +2 -0
- package/src/Select.tsx +2 -1
- package/src/Slider.tsx +1 -1
- package/src/Switch.tsx +12 -29
- package/src/Table.tsx +34 -37
- package/src/Tabs.tsx +4 -3
- package/src/TagGroup.tsx +2 -2
- package/src/Tooltip.tsx +9 -4
- package/src/index.ts +2 -2
- package/src/useDragAndDrop.tsx +6 -6
- package/src/utils.tsx +20 -3
package/dist/main.js
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
var $7e3b9f6c0d3f98a7$exports = require("./ar-AE.main.js");
|
|
4
|
+
var $7c11c8bafabff514$exports = require("./bg-BG.main.js");
|
|
5
|
+
var $d55d6a46d896aa4e$exports = require("./cs-CZ.main.js");
|
|
6
|
+
var $0bf85a6224525466$exports = require("./da-DK.main.js");
|
|
7
|
+
var $3cffc1bd30a143a7$exports = require("./de-DE.main.js");
|
|
8
|
+
var $af25cfd8212114c4$exports = require("./el-GR.main.js");
|
|
9
|
+
var $4f0d6cca330ebbae$exports = require("./en-US.main.js");
|
|
10
|
+
var $1e942d208b3f081e$exports = require("./es-ES.main.js");
|
|
11
|
+
var $7ecf22cba6524ed5$exports = require("./et-EE.main.js");
|
|
12
|
+
var $4c3e2c694f8954f2$exports = require("./fi-FI.main.js");
|
|
13
|
+
var $5c093d840945be34$exports = require("./fr-FR.main.js");
|
|
14
|
+
var $54ebe5cc44e081ca$exports = require("./he-IL.main.js");
|
|
15
|
+
var $c87f289edc3c8208$exports = require("./hr-HR.main.js");
|
|
16
|
+
var $6752ef148a3dc43f$exports = require("./hu-HU.main.js");
|
|
17
|
+
var $58fa24283081b65c$exports = require("./it-IT.main.js");
|
|
18
|
+
var $770533c19d7b553a$exports = require("./ja-JP.main.js");
|
|
19
|
+
var $de8f7b8ad7f54d6d$exports = require("./ko-KR.main.js");
|
|
20
|
+
var $de235b5235305f02$exports = require("./lt-LT.main.js");
|
|
21
|
+
var $1badb5b4b4fa9042$exports = require("./lv-LV.main.js");
|
|
22
|
+
var $e0e47ca0931d41e2$exports = require("./nb-NO.main.js");
|
|
23
|
+
var $adb96033a361a81b$exports = require("./nl-NL.main.js");
|
|
24
|
+
var $96ebda5b7b663ef6$exports = require("./pl-PL.main.js");
|
|
25
|
+
var $010ef53c23794e08$exports = require("./pt-BR.main.js");
|
|
26
|
+
var $a0d0918dbe8cd238$exports = require("./pt-PT.main.js");
|
|
27
|
+
var $b73baeec3a0b138d$exports = require("./ro-RO.main.js");
|
|
28
|
+
var $aed1f56161d4731e$exports = require("./ru-RU.main.js");
|
|
29
|
+
var $3ff95b3a8291cbd7$exports = require("./sk-SK.main.js");
|
|
30
|
+
var $c7459bccfcc668d8$exports = require("./sl-SI.main.js");
|
|
31
|
+
var $d4deb497858acd42$exports = require("./sr-SP.main.js");
|
|
32
|
+
var $f07511ec9106f700$exports = require("./sv-SE.main.js");
|
|
33
|
+
var $8ecd910775d75b2a$exports = require("./tr-TR.main.js");
|
|
34
|
+
var $db0c53fb82554560$exports = require("./uk-UA.main.js");
|
|
35
|
+
var $c6fb62cc552205b8$exports = require("./zh-CN.main.js");
|
|
36
|
+
var $1830911445b53dbf$exports = require("./zh-TW.main.js");
|
|
1
37
|
var $bzgmy$reactaria = require("react-aria");
|
|
2
38
|
var $bzgmy$reactstately = require("react-stately");
|
|
3
39
|
var $bzgmy$reactariautils = require("@react-aria/utils");
|
|
@@ -43,6 +79,10 @@ $parcel$export(module.exports, "CheckboxGroupStateContext", () => $e733553516d84
|
|
|
43
79
|
$parcel$export(module.exports, "ComboBox", () => $1d716ce69f118fad$export$72b9695b8216309a);
|
|
44
80
|
$parcel$export(module.exports, "ComboBoxContext", () => $1d716ce69f118fad$export$d414ccceff7063c3);
|
|
45
81
|
$parcel$export(module.exports, "ComboBoxStateContext", () => $1d716ce69f118fad$export$c02625b26074192c);
|
|
82
|
+
$parcel$export(module.exports, "composeRenderProps", () => $c5ccf687772c0422$export$c245e6201fed2f75);
|
|
83
|
+
$parcel$export(module.exports, "Provider", () => $c5ccf687772c0422$export$2881499e37b75b9a);
|
|
84
|
+
$parcel$export(module.exports, "useContextProps", () => $c5ccf687772c0422$export$29f1550f4b0d4415);
|
|
85
|
+
$parcel$export(module.exports, "useSlottedContext", () => $c5ccf687772c0422$export$fabf2dc03a41866e);
|
|
46
86
|
$parcel$export(module.exports, "DateField", () => $9eb4e1c2268ca198$export$d9781c7894a82487);
|
|
47
87
|
$parcel$export(module.exports, "DateInput", () => $9eb4e1c2268ca198$export$7edc06cf1783b30f);
|
|
48
88
|
$parcel$export(module.exports, "DateSegment", () => $9eb4e1c2268ca198$export$336ab7fa954c4b5f);
|
|
@@ -107,9 +147,6 @@ $parcel$export(module.exports, "Popover", () => $61e2b7078adb18bc$export$5b6b194
|
|
|
107
147
|
$parcel$export(module.exports, "PopoverContext", () => $61e2b7078adb18bc$export$9b9a0cd73afb7ca4);
|
|
108
148
|
$parcel$export(module.exports, "ProgressBar", () => $0d6436f6a1b0b001$export$c17561cb55d4db30);
|
|
109
149
|
$parcel$export(module.exports, "ProgressBarContext", () => $0d6436f6a1b0b001$export$e9f3bf65a26ce129);
|
|
110
|
-
$parcel$export(module.exports, "Provider", () => $c5ccf687772c0422$export$2881499e37b75b9a);
|
|
111
|
-
$parcel$export(module.exports, "useContextProps", () => $c5ccf687772c0422$export$29f1550f4b0d4415);
|
|
112
|
-
$parcel$export(module.exports, "useSlottedContext", () => $c5ccf687772c0422$export$fabf2dc03a41866e);
|
|
113
150
|
$parcel$export(module.exports, "RadioGroup", () => $1456b76f687bd4ed$export$a98f0dcb43a68a25);
|
|
114
151
|
$parcel$export(module.exports, "Radio", () => $1456b76f687bd4ed$export$d7b12c4107be0d61);
|
|
115
152
|
$parcel$export(module.exports, "RadioGroupContext", () => $1456b76f687bd4ed$export$a79eda4ff50e30b6);
|
|
@@ -182,6 +219,7 @@ $parcel$export(module.exports, "isTextDropItem", () => $bzgmy$reactaria.isTextDr
|
|
|
182
219
|
$parcel$export(module.exports, "SSRProvider", () => $bzgmy$reactaria.SSRProvider);
|
|
183
220
|
$parcel$export(module.exports, "RouterProvider", () => $bzgmy$reactaria.RouterProvider);
|
|
184
221
|
$parcel$export(module.exports, "I18nProvider", () => $bzgmy$reactaria.I18nProvider);
|
|
222
|
+
$parcel$export(module.exports, "useLocale", () => $bzgmy$reactaria.useLocale);
|
|
185
223
|
$parcel$export(module.exports, "FormValidationContext", () => $bzgmy$reactstately.FormValidationContext);
|
|
186
224
|
/*
|
|
187
225
|
* Copyright 2022 Adobe. All rights reserved.
|
|
@@ -302,6 +340,10 @@ class $3114c2382242bdc0$export$f5d856d854e74713 {
|
|
|
302
340
|
this._parentNode = parentNode;
|
|
303
341
|
this.ownerDocument.markDirty(this);
|
|
304
342
|
}
|
|
343
|
+
get isConnected() {
|
|
344
|
+
var _this_parentNode;
|
|
345
|
+
return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || false;
|
|
346
|
+
}
|
|
305
347
|
appendChild(child) {
|
|
306
348
|
this.ownerDocument.startTransaction();
|
|
307
349
|
if (child.parentNode) child.parentNode.removeChild(child);
|
|
@@ -542,6 +584,9 @@ class $3114c2382242bdc0$export$408d25a4e12db025 {
|
|
|
542
584
|
}
|
|
543
585
|
}
|
|
544
586
|
class $3114c2382242bdc0$export$b34a105447964f9f extends $3114c2382242bdc0$var$BaseNode {
|
|
587
|
+
get isConnected() {
|
|
588
|
+
return true;
|
|
589
|
+
}
|
|
545
590
|
createElement(type) {
|
|
546
591
|
return new $3114c2382242bdc0$export$dc064fe9e59310fd(type, this);
|
|
547
592
|
}
|
|
@@ -583,10 +628,7 @@ class $3114c2382242bdc0$export$b34a105447964f9f extends $3114c2382242bdc0$var$Ba
|
|
|
583
628
|
this.markDirty(element);
|
|
584
629
|
}
|
|
585
630
|
removeNode(node) {
|
|
586
|
-
for (let child of node)
|
|
587
|
-
child.parentNode = null;
|
|
588
|
-
this.removeNode(child);
|
|
589
|
-
}
|
|
631
|
+
for (let child of node)this.removeNode(child);
|
|
590
632
|
let collection = this.getMutableCollection();
|
|
591
633
|
collection.removeNode(node.node.key);
|
|
592
634
|
this.markDirty(node);
|
|
@@ -597,12 +639,12 @@ class $3114c2382242bdc0$export$b34a105447964f9f extends $3114c2382242bdc0$var$Ba
|
|
|
597
639
|
return this.collection;
|
|
598
640
|
}
|
|
599
641
|
updateCollection() {
|
|
600
|
-
for (let element of this.dirtyNodes)if (element instanceof $3114c2382242bdc0$export$dc064fe9e59310fd && element.
|
|
642
|
+
for (let element of this.dirtyNodes)if (element instanceof $3114c2382242bdc0$export$dc064fe9e59310fd && element.isConnected) element.updateNode();
|
|
601
643
|
this.dirtyNodes.clear();
|
|
602
644
|
if (this.mutatedNodes.size) {
|
|
603
645
|
var _this_firstChild, _this_lastChild;
|
|
604
646
|
let collection = this.getMutableCollection();
|
|
605
|
-
for (let element of this.mutatedNodes)if (element.
|
|
647
|
+
for (let element of this.mutatedNodes)if (element.isConnected) collection.addNode(element.node);
|
|
606
648
|
var _this_firstChild_node_key, _this_lastChild_node_key;
|
|
607
649
|
collection.commit((_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null, (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null, this.isSSR);
|
|
608
650
|
this.mutatedNodes.clear();
|
|
@@ -645,8 +687,9 @@ class $3114c2382242bdc0$export$b34a105447964f9f extends $3114c2382242bdc0$var$Ba
|
|
|
645
687
|
}
|
|
646
688
|
}
|
|
647
689
|
function $3114c2382242bdc0$export$727c8fc270210f13(props) {
|
|
648
|
-
let { children: children, items: items, idScope: idScope, addIdAndValue: addIdAndValue } = props;
|
|
649
|
-
|
|
690
|
+
let { children: children, items: items, idScope: idScope, addIdAndValue: addIdAndValue, dependencies: dependencies = [] } = props;
|
|
691
|
+
// Invalidate the cache whenever the parent value changes.
|
|
692
|
+
let cache = (0, $bzgmy$react.useMemo)(()=>new WeakMap(), dependencies);
|
|
650
693
|
return (0, $bzgmy$react.useMemo)(()=>{
|
|
651
694
|
if (items && typeof children === "function") {
|
|
652
695
|
let res = [];
|
|
@@ -654,23 +697,21 @@ function $3114c2382242bdc0$export$727c8fc270210f13(props) {
|
|
|
654
697
|
let rendered = cache.get(item);
|
|
655
698
|
if (!rendered) {
|
|
656
699
|
rendered = children(item);
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
});
|
|
673
|
-
}
|
|
700
|
+
var _rendered_props_id, _ref;
|
|
701
|
+
// @ts-ignore
|
|
702
|
+
let key = (_ref = (_rendered_props_id = rendered.props.id) !== null && _rendered_props_id !== void 0 ? _rendered_props_id : item.key) !== null && _ref !== void 0 ? _ref : item.id;
|
|
703
|
+
// eslint-disable-next-line max-depth
|
|
704
|
+
if (key == null) throw new Error("Could not determine key for item");
|
|
705
|
+
// eslint-disable-next-line max-depth
|
|
706
|
+
if (idScope) key = idScope + ":" + key;
|
|
707
|
+
// Note: only works if wrapped Item passes through id...
|
|
708
|
+
rendered = /*#__PURE__*/ (0, $bzgmy$react.cloneElement)(rendered, addIdAndValue ? {
|
|
709
|
+
key: key,
|
|
710
|
+
id: key,
|
|
711
|
+
value: item
|
|
712
|
+
} : {
|
|
713
|
+
key: key
|
|
714
|
+
});
|
|
674
715
|
cache.set(item, rendered);
|
|
675
716
|
}
|
|
676
717
|
res.push(rendered);
|
|
@@ -825,6 +866,7 @@ const $3114c2382242bdc0$export$4feb769f8ddf26c5 = /*#__PURE__*/ (0, $bzgmy$react
|
|
|
825
866
|
function $3114c2382242bdc0$export$fb8073518f34e6ec(props) {
|
|
826
867
|
let ctx = (0, $bzgmy$react.useContext)($3114c2382242bdc0$export$db36075d98ba73d3);
|
|
827
868
|
props = (0, $bzgmy$reactaria.mergeProps)(ctx, props);
|
|
869
|
+
props.dependencies = ((ctx === null || ctx === void 0 ? void 0 : ctx.dependencies) || []).concat(props.dependencies);
|
|
828
870
|
let renderer = typeof props.children === "function" ? props.children : null;
|
|
829
871
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement($3114c2382242bdc0$export$4feb769f8ddf26c5.Provider, {
|
|
830
872
|
value: renderer
|
|
@@ -883,6 +925,10 @@ function $c5ccf687772c0422$export$4d86445c2cf5e3(props) {
|
|
|
883
925
|
values
|
|
884
926
|
]);
|
|
885
927
|
}
|
|
928
|
+
function $c5ccf687772c0422$export$c245e6201fed2f75(// https://stackoverflow.com/questions/60898079/typescript-type-t-or-function-t-usage
|
|
929
|
+
value, wrap) {
|
|
930
|
+
return (renderProps)=>wrap(typeof value === "function" ? value(renderProps) : value, renderProps);
|
|
931
|
+
}
|
|
886
932
|
function $c5ccf687772c0422$export$fabf2dc03a41866e(context, slot) {
|
|
887
933
|
let ctx = (0, $bzgmy$react.useContext)(context);
|
|
888
934
|
if (slot === null) // An explicit `null` slot means don't use context.
|
|
@@ -1158,6 +1204,7 @@ function $afa44b644f65ed30$var$BreadcrumbItem({ node: node, isCurrent: isCurrent
|
|
|
1158
1204
|
var _node_props_className;
|
|
1159
1205
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("li", {
|
|
1160
1206
|
...(0, $bzgmy$reactariautils.filterDOMProps)(node.props),
|
|
1207
|
+
ref: node.props.ref,
|
|
1161
1208
|
style: node.props.style,
|
|
1162
1209
|
className: (_node_props_className = node.props.className) !== null && _node_props_className !== void 0 ? _node_props_className : "react-aria-Breadcrumb"
|
|
1163
1210
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement((0, $c87397ee936d2bda$export$e2509388b49734e7).Provider, {
|
|
@@ -1263,6 +1310,7 @@ function $1063ac64677bb13f$var$Heading(props, ref) {
|
|
|
1263
1310
|
let Element = `h${level}`;
|
|
1264
1311
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement(Element, {
|
|
1265
1312
|
...domProps,
|
|
1313
|
+
ref: ref,
|
|
1266
1314
|
className: className !== null && className !== void 0 ? className : "react-aria-Heading"
|
|
1267
1315
|
}, children);
|
|
1268
1316
|
}
|
|
@@ -1527,10 +1575,10 @@ function $3f539f26b167ddde$var$CalendarCell({ date: date, ...otherProps }, ref)
|
|
|
1527
1575
|
let { startDate: currentMonth } = (_useContext = (0, $bzgmy$react.useContext)($3f539f26b167ddde$var$InternalCalendarGridContext)) !== null && _useContext !== void 0 ? _useContext : {
|
|
1528
1576
|
startDate: state.visibleRange.start
|
|
1529
1577
|
};
|
|
1530
|
-
let
|
|
1578
|
+
let buttonRef = (0, $bzgmy$react.useRef)(null);
|
|
1531
1579
|
let { cellProps: cellProps, buttonProps: buttonProps, ...states } = (0, $bzgmy$reactaria.useCalendarCell)({
|
|
1532
1580
|
date: date
|
|
1533
|
-
}, state,
|
|
1581
|
+
}, state, buttonRef);
|
|
1534
1582
|
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $bzgmy$reactaria.useHover)({
|
|
1535
1583
|
...otherProps,
|
|
1536
1584
|
isDisabled: states.isDisabled
|
|
@@ -1571,9 +1619,12 @@ function $3f539f26b167ddde$var$CalendarCell({ date: date, ...otherProps }, ref)
|
|
|
1571
1619
|
"data-selection-end": isSelectionEnd || undefined,
|
|
1572
1620
|
"data-invalid": states.isInvalid || undefined
|
|
1573
1621
|
};
|
|
1574
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("td",
|
|
1622
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("td", {
|
|
1623
|
+
...cellProps,
|
|
1624
|
+
ref: ref
|
|
1625
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("div", {
|
|
1575
1626
|
...(0, $bzgmy$reactaria.mergeProps)((0, $bzgmy$reactariautils.filterDOMProps)(otherProps), buttonProps, focusProps, hoverProps, dataAttrs, renderProps),
|
|
1576
|
-
ref:
|
|
1627
|
+
ref: buttonRef
|
|
1577
1628
|
}));
|
|
1578
1629
|
}
|
|
1579
1630
|
/**
|
|
@@ -1733,9 +1784,10 @@ function $e733553516d848a9$var$CheckboxGroup(props, ref) {
|
|
|
1733
1784
|
const $e733553516d848a9$export$b085522c77523c51 = /*#__PURE__*/ (0, $bzgmy$react.createContext)(null);
|
|
1734
1785
|
function $e733553516d848a9$var$Checkbox(props, ref) {
|
|
1735
1786
|
[props, ref] = (0, $c5ccf687772c0422$export$29f1550f4b0d4415)(props, ref, $e733553516d848a9$export$b085522c77523c51);
|
|
1787
|
+
let inputRef = (0, $bzgmy$react.useRef)(null);
|
|
1736
1788
|
let groupState = (0, $bzgmy$react.useContext)($e733553516d848a9$export$139c5b8563afc1fc);
|
|
1737
1789
|
var _props_validationBehavior;
|
|
1738
|
-
let { inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed:
|
|
1790
|
+
let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed: isPressed, isInvalid: isInvalid } = groupState ? (0, $bzgmy$reactaria.useCheckboxGroupItem)({
|
|
1739
1791
|
...props,
|
|
1740
1792
|
// Value is optional for standalone checkboxes, but required for CheckboxGroup items;
|
|
1741
1793
|
// it's passed explicitly here to avoid typescript error (requires ignore).
|
|
@@ -1743,30 +1795,17 @@ function $e733553516d848a9$var$Checkbox(props, ref) {
|
|
|
1743
1795
|
value: props.value,
|
|
1744
1796
|
// ReactNode type doesn't allow function children.
|
|
1745
1797
|
children: typeof props.children === "function" ? true : props.children
|
|
1746
|
-
}, groupState,
|
|
1798
|
+
}, groupState, inputRef) : (0, $bzgmy$reactaria.useCheckbox)({
|
|
1747
1799
|
...props,
|
|
1748
1800
|
children: typeof props.children === "function" ? true : props.children,
|
|
1749
1801
|
validationBehavior: (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : "native"
|
|
1750
|
-
}, (0, $bzgmy$reactstately.useToggleState)(props),
|
|
1802
|
+
}, (0, $bzgmy$reactstately.useToggleState)(props), inputRef);
|
|
1751
1803
|
let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $bzgmy$reactaria.useFocusRing)();
|
|
1752
1804
|
let isInteractionDisabled = isDisabled || isReadOnly;
|
|
1753
|
-
// Handle press state for full label. Keyboard press state is returned by useCheckbox
|
|
1754
|
-
// since it is handled on the <input> element itself.
|
|
1755
|
-
let [isPressed, setPressed] = (0, $bzgmy$react.useState)(false);
|
|
1756
|
-
let { pressProps: pressProps } = (0, $bzgmy$reactaria.usePress)({
|
|
1757
|
-
isDisabled: isInteractionDisabled,
|
|
1758
|
-
onPressStart (e) {
|
|
1759
|
-
if (e.pointerType !== "keyboard") setPressed(true);
|
|
1760
|
-
},
|
|
1761
|
-
onPressEnd (e) {
|
|
1762
|
-
if (e.pointerType !== "keyboard") setPressed(false);
|
|
1763
|
-
}
|
|
1764
|
-
});
|
|
1765
1805
|
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $bzgmy$reactaria.useHover)({
|
|
1766
1806
|
...props,
|
|
1767
1807
|
isDisabled: isInteractionDisabled
|
|
1768
1808
|
});
|
|
1769
|
-
let pressed = isInteractionDisabled ? false : isPressed || isPressedKeyboard;
|
|
1770
1809
|
let renderProps = (0, $c5ccf687772c0422$export$4d86445c2cf5e3)({
|
|
1771
1810
|
// TODO: should data attrs go on the label or on the <input>? useCheckbox passes them to the input...
|
|
1772
1811
|
...props,
|
|
@@ -1774,7 +1813,7 @@ function $e733553516d848a9$var$Checkbox(props, ref) {
|
|
|
1774
1813
|
values: {
|
|
1775
1814
|
isSelected: isSelected,
|
|
1776
1815
|
isIndeterminate: props.isIndeterminate || false,
|
|
1777
|
-
isPressed:
|
|
1816
|
+
isPressed: isPressed,
|
|
1778
1817
|
isHovered: isHovered,
|
|
1779
1818
|
isFocused: isFocused,
|
|
1780
1819
|
isFocusVisible: isFocusVisible,
|
|
@@ -1787,11 +1826,12 @@ function $e733553516d848a9$var$Checkbox(props, ref) {
|
|
|
1787
1826
|
let DOMProps = (0, $bzgmy$reactariautils.filterDOMProps)(props);
|
|
1788
1827
|
delete DOMProps.id;
|
|
1789
1828
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("label", {
|
|
1790
|
-
...(0, $bzgmy$reactaria.mergeProps)(DOMProps,
|
|
1829
|
+
...(0, $bzgmy$reactaria.mergeProps)(DOMProps, labelProps, hoverProps, renderProps),
|
|
1830
|
+
ref: ref,
|
|
1791
1831
|
slot: props.slot || undefined,
|
|
1792
1832
|
"data-selected": isSelected || undefined,
|
|
1793
1833
|
"data-indeterminate": props.isIndeterminate || undefined,
|
|
1794
|
-
"data-pressed":
|
|
1834
|
+
"data-pressed": isPressed || undefined,
|
|
1795
1835
|
"data-hovered": isHovered || undefined,
|
|
1796
1836
|
"data-focused": isFocused || undefined,
|
|
1797
1837
|
"data-focus-visible": isFocusVisible || undefined,
|
|
@@ -1804,7 +1844,7 @@ function $e733553516d848a9$var$Checkbox(props, ref) {
|
|
|
1804
1844
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("input", {
|
|
1805
1845
|
...inputProps,
|
|
1806
1846
|
...focusProps,
|
|
1807
|
-
ref:
|
|
1847
|
+
ref: inputRef
|
|
1808
1848
|
})), renderProps.children);
|
|
1809
1849
|
}
|
|
1810
1850
|
/**
|
|
@@ -1833,6 +1873,64 @@ function $e733553516d848a9$var$Checkbox(props, ref) {
|
|
|
1833
1873
|
|
|
1834
1874
|
|
|
1835
1875
|
|
|
1876
|
+
/*
|
|
1877
|
+
* Copyright 2022 Adobe. All rights reserved.
|
|
1878
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1879
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1880
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1881
|
+
*
|
|
1882
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1883
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1884
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1885
|
+
* governing permissions and limitations under the License.
|
|
1886
|
+
*/
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
const $dcae72abc18c0045$export$f9c6924e160136d1 = /*#__PURE__*/ (0, $bzgmy$react.createContext)({});
|
|
1890
|
+
function $dcae72abc18c0045$var$Group(props, ref) {
|
|
1891
|
+
[props, ref] = (0, $c5ccf687772c0422$export$29f1550f4b0d4415)(props, ref, $dcae72abc18c0045$export$f9c6924e160136d1);
|
|
1892
|
+
let { isDisabled: isDisabled, isInvalid: isInvalid, onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;
|
|
1893
|
+
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $bzgmy$reactaria.useHover)({
|
|
1894
|
+
onHoverStart: onHoverStart,
|
|
1895
|
+
onHoverChange: onHoverChange,
|
|
1896
|
+
onHoverEnd: onHoverEnd,
|
|
1897
|
+
isDisabled: isDisabled
|
|
1898
|
+
});
|
|
1899
|
+
let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $bzgmy$reactaria.useFocusRing)({
|
|
1900
|
+
within: true
|
|
1901
|
+
});
|
|
1902
|
+
isDisabled !== null && isDisabled !== void 0 ? isDisabled : isDisabled = !!props["aria-disabled"] && props["aria-disabled"] !== "false";
|
|
1903
|
+
isInvalid !== null && isInvalid !== void 0 ? isInvalid : isInvalid = !!props["aria-invalid"] && props["aria-invalid"] !== "false";
|
|
1904
|
+
let renderProps = (0, $c5ccf687772c0422$export$4d86445c2cf5e3)({
|
|
1905
|
+
...props,
|
|
1906
|
+
values: {
|
|
1907
|
+
isHovered: isHovered,
|
|
1908
|
+
isFocusWithin: isFocused,
|
|
1909
|
+
isFocusVisible: isFocusVisible,
|
|
1910
|
+
isDisabled: isDisabled,
|
|
1911
|
+
isInvalid: isInvalid
|
|
1912
|
+
},
|
|
1913
|
+
defaultClassName: "react-aria-Group"
|
|
1914
|
+
});
|
|
1915
|
+
var _props_role, _props_slot;
|
|
1916
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("div", {
|
|
1917
|
+
...(0, $bzgmy$reactaria.mergeProps)(otherProps, focusProps, hoverProps),
|
|
1918
|
+
...renderProps,
|
|
1919
|
+
ref: ref,
|
|
1920
|
+
role: (_props_role = props.role) !== null && _props_role !== void 0 ? _props_role : "group",
|
|
1921
|
+
slot: (_props_slot = props.slot) !== null && _props_slot !== void 0 ? _props_slot : undefined,
|
|
1922
|
+
"data-focus-within": isFocused || undefined,
|
|
1923
|
+
"data-hovered": isHovered || undefined,
|
|
1924
|
+
"data-focus-visible": isFocusVisible || undefined,
|
|
1925
|
+
"data-disabled": isDisabled || undefined,
|
|
1926
|
+
"data-invalid": isInvalid || undefined
|
|
1927
|
+
}, renderProps.children);
|
|
1928
|
+
}
|
|
1929
|
+
/**
|
|
1930
|
+
* A group represents a set of related UI controls, and supports interactive states for styling.
|
|
1931
|
+
*/ const $dcae72abc18c0045$export$eb2fcfdbd7ba97d4 = /*#__PURE__*/ (0, $bzgmy$react.forwardRef)($dcae72abc18c0045$var$Group);
|
|
1932
|
+
|
|
1933
|
+
|
|
1836
1934
|
/*
|
|
1837
1935
|
* Copyright 2022 Adobe. All rights reserved.
|
|
1838
1936
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -2208,6 +2306,7 @@ function $a03b42240404b420$var$ListBoxInner({ state: state, props: props, listBo
|
|
|
2208
2306
|
...renderProps,
|
|
2209
2307
|
ref: listBoxRef,
|
|
2210
2308
|
slot: props.slot || undefined,
|
|
2309
|
+
onScroll: props.onScroll,
|
|
2211
2310
|
"data-drop-target": isRootDropTarget || undefined,
|
|
2212
2311
|
"data-empty": state.collection.size === 0 || undefined,
|
|
2213
2312
|
"data-focused": isFocused || undefined,
|
|
@@ -2251,10 +2350,10 @@ function $a03b42240404b420$var$ListBoxSection({ section: section, className: cla
|
|
|
2251
2350
|
var _section_props, _section_props1;
|
|
2252
2351
|
let state = (0, $bzgmy$react.useContext)($a03b42240404b420$export$7c5906fe4f1f2af2);
|
|
2253
2352
|
let [headingRef, heading] = (0, $c5ccf687772c0422$export$9d4c57ee4c6ffdd8)();
|
|
2254
|
-
var
|
|
2353
|
+
var _section_props_arialabel;
|
|
2255
2354
|
let { headingProps: headingProps, groupProps: groupProps } = (0, $bzgmy$reactaria.useListBoxSection)({
|
|
2256
2355
|
heading: heading,
|
|
2257
|
-
"aria-label": (
|
|
2356
|
+
"aria-label": (_section_props_arialabel = section.props["aria-label"]) !== null && _section_props_arialabel !== void 0 ? _section_props_arialabel : undefined
|
|
2258
2357
|
});
|
|
2259
2358
|
let children = (0, $3114c2382242bdc0$export$727c8fc270210f13)({
|
|
2260
2359
|
items: state.collection.getChildren(section.key),
|
|
@@ -2301,18 +2400,13 @@ function $a03b42240404b420$var$ListBoxItem(props, ref) {
|
|
|
2301
2400
|
function $a03b42240404b420$var$Option({ item: item }) {
|
|
2302
2401
|
let ref = (0, $bzgmy$reactariautils.useObjectRef)(item.props.ref);
|
|
2303
2402
|
let state = (0, $bzgmy$react.useContext)($a03b42240404b420$export$7c5906fe4f1f2af2);
|
|
2304
|
-
let { shouldFocusOnHover: shouldFocusOnHover } = (0, $c5ccf687772c0422$export$fabf2dc03a41866e)($a03b42240404b420$export$7ff8f37d2d81a48d);
|
|
2305
2403
|
let { dragAndDropHooks: dragAndDropHooks, dragState: dragState, dropState: dropState } = (0, $bzgmy$react.useContext)((0, $368d79437ab76c11$export$d188a835a7bc5783));
|
|
2306
2404
|
let { optionProps: optionProps, labelProps: labelProps, descriptionProps: descriptionProps, ...states } = (0, $bzgmy$reactaria.useOption)({
|
|
2307
2405
|
key: item.key
|
|
2308
2406
|
}, state, ref);
|
|
2309
2407
|
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $bzgmy$reactaria.useHover)({
|
|
2310
|
-
isDisabled:
|
|
2408
|
+
isDisabled: !states.allowsSelection && !states.hasAction
|
|
2311
2409
|
});
|
|
2312
|
-
if (shouldFocusOnHover) {
|
|
2313
|
-
hoverProps = {};
|
|
2314
|
-
isHovered = states.isFocused;
|
|
2315
|
-
}
|
|
2316
2410
|
let draggableItem = null;
|
|
2317
2411
|
if (dragState && dragAndDropHooks) draggableItem = dragAndDropHooks.useDraggableItem({
|
|
2318
2412
|
key: item.key
|
|
@@ -2478,12 +2572,15 @@ function $ee5958cbdc6becc1$var$OverlayArrow(props, ref) {
|
|
|
2478
2572
|
placement: placement
|
|
2479
2573
|
}
|
|
2480
2574
|
});
|
|
2575
|
+
// remove undefined values from renderProps.style object so that it can be
|
|
2576
|
+
// spread merged with the other style object
|
|
2577
|
+
if (renderProps.style) Object.keys(renderProps.style).forEach((key)=>renderProps.style[key] === undefined && delete renderProps.style[key]);
|
|
2481
2578
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("div", {
|
|
2482
2579
|
...props,
|
|
2483
2580
|
...renderProps,
|
|
2484
2581
|
style: {
|
|
2485
|
-
...
|
|
2486
|
-
...style
|
|
2582
|
+
...style,
|
|
2583
|
+
...renderProps.style
|
|
2487
2584
|
},
|
|
2488
2585
|
ref: ref,
|
|
2489
2586
|
"data-placement": placement
|
|
@@ -2510,6 +2607,7 @@ function $61e2b7078adb18bc$var$Popover(props, ref) {
|
|
|
2510
2607
|
if (isHidden) {
|
|
2511
2608
|
let children = props.children;
|
|
2512
2609
|
if (typeof children === "function") children = children({
|
|
2610
|
+
trigger: props.trigger || null,
|
|
2513
2611
|
placement: "bottom",
|
|
2514
2612
|
isEntering: false,
|
|
2515
2613
|
isExiting: false
|
|
@@ -2528,7 +2626,7 @@ function $61e2b7078adb18bc$var$Popover(props, ref) {
|
|
|
2528
2626
|
/**
|
|
2529
2627
|
* A popover is an overlay element positioned relative to a trigger.
|
|
2530
2628
|
*/ const $61e2b7078adb18bc$export$5b6b19405a83ff9d = /*#__PURE__*/ (0, $bzgmy$react.forwardRef)($61e2b7078adb18bc$var$Popover);
|
|
2531
|
-
function $61e2b7078adb18bc$var$PopoverInner({ state: state, isExiting: isExiting, ...props }) {
|
|
2629
|
+
function $61e2b7078adb18bc$var$PopoverInner({ state: state, isExiting: isExiting, UNSTABLE_portalContainer: UNSTABLE_portalContainer, ...props }) {
|
|
2532
2630
|
var _props_offset;
|
|
2533
2631
|
let { popoverProps: popoverProps, underlayProps: underlayProps, arrowProps: arrowProps, placement: placement } = (0, $bzgmy$reactaria.usePopover)({
|
|
2534
2632
|
...props,
|
|
@@ -2540,17 +2638,19 @@ function $61e2b7078adb18bc$var$PopoverInner({ state: state, isExiting: isExiting
|
|
|
2540
2638
|
...props,
|
|
2541
2639
|
defaultClassName: "react-aria-Popover",
|
|
2542
2640
|
values: {
|
|
2641
|
+
trigger: props.trigger || null,
|
|
2543
2642
|
placement: placement,
|
|
2544
2643
|
isEntering: isEntering,
|
|
2545
2644
|
isExiting: isExiting
|
|
2546
2645
|
}
|
|
2547
2646
|
});
|
|
2548
2647
|
let style = {
|
|
2549
|
-
...
|
|
2550
|
-
...
|
|
2648
|
+
...popoverProps.style,
|
|
2649
|
+
...renderProps.style
|
|
2551
2650
|
};
|
|
2552
2651
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement((0, $bzgmy$reactaria.Overlay), {
|
|
2553
|
-
isExiting: isExiting
|
|
2652
|
+
isExiting: isExiting,
|
|
2653
|
+
portalContainer: UNSTABLE_portalContainer
|
|
2554
2654
|
}, !props.isNonModal && state.isOpen && /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("div", {
|
|
2555
2655
|
...underlayProps,
|
|
2556
2656
|
style: {
|
|
@@ -2563,6 +2663,7 @@ function $61e2b7078adb18bc$var$PopoverInner({ state: state, isExiting: isExiting
|
|
|
2563
2663
|
ref: ref,
|
|
2564
2664
|
slot: props.slot || undefined,
|
|
2565
2665
|
style: style,
|
|
2666
|
+
"data-trigger": props.trigger,
|
|
2566
2667
|
"data-placement": placement,
|
|
2567
2668
|
"data-entering": isEntering || undefined,
|
|
2568
2669
|
"data-exiting": isExiting || undefined
|
|
@@ -2608,6 +2709,7 @@ function $2979ab89b336194b$export$2e1e1122cf0cba88(props) {
|
|
|
2608
2709
|
[
|
|
2609
2710
|
(0, $61e2b7078adb18bc$export$9b9a0cd73afb7ca4),
|
|
2610
2711
|
{
|
|
2712
|
+
trigger: "DialogTrigger",
|
|
2611
2713
|
triggerRef: buttonRef
|
|
2612
2714
|
}
|
|
2613
2715
|
]
|
|
@@ -2818,6 +2920,7 @@ function $1d716ce69f118fad$var$ComboBoxInner({ props: props, collection: collect
|
|
|
2818
2920
|
triggerRef: inputRef,
|
|
2819
2921
|
placement: "bottom start",
|
|
2820
2922
|
isNonModal: true,
|
|
2923
|
+
trigger: "ComboBox",
|
|
2821
2924
|
style: {
|
|
2822
2925
|
"--trigger-width": menuWidth
|
|
2823
2926
|
}
|
|
@@ -2843,6 +2946,13 @@ function $1d716ce69f118fad$var$ComboBoxInner({ props: props, collection: collect
|
|
|
2843
2946
|
}
|
|
2844
2947
|
}
|
|
2845
2948
|
],
|
|
2949
|
+
[
|
|
2950
|
+
(0, $dcae72abc18c0045$export$f9c6924e160136d1),
|
|
2951
|
+
{
|
|
2952
|
+
isInvalid: validation.isInvalid,
|
|
2953
|
+
isDisabled: props.isDisabled || false
|
|
2954
|
+
}
|
|
2955
|
+
],
|
|
2846
2956
|
[
|
|
2847
2957
|
(0, $846a838139f2ac6b$export$ff05c3ac10437e03),
|
|
2848
2958
|
validation
|
|
@@ -2869,6 +2979,7 @@ function $1d716ce69f118fad$var$ComboBoxInner({ props: props, collection: collect
|
|
|
2869
2979
|
*/ const $1d716ce69f118fad$export$72b9695b8216309a = /*#__PURE__*/ (0, $bzgmy$react.forwardRef)($1d716ce69f118fad$var$ComboBox);
|
|
2870
2980
|
|
|
2871
2981
|
|
|
2982
|
+
|
|
2872
2983
|
/*
|
|
2873
2984
|
* Copyright 2022 Adobe. All rights reserved.
|
|
2874
2985
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -2885,63 +2996,6 @@ function $1d716ce69f118fad$var$ComboBoxInner({ props: props, collection: collect
|
|
|
2885
2996
|
|
|
2886
2997
|
|
|
2887
2998
|
|
|
2888
|
-
/*
|
|
2889
|
-
* Copyright 2022 Adobe. All rights reserved.
|
|
2890
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
2891
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
2892
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
2893
|
-
*
|
|
2894
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
2895
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
2896
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
2897
|
-
* governing permissions and limitations under the License.
|
|
2898
|
-
*/
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
const $dcae72abc18c0045$export$f9c6924e160136d1 = /*#__PURE__*/ (0, $bzgmy$react.createContext)({});
|
|
2902
|
-
function $dcae72abc18c0045$var$Group(props, ref) {
|
|
2903
|
-
[props, ref] = (0, $c5ccf687772c0422$export$29f1550f4b0d4415)(props, ref, $dcae72abc18c0045$export$f9c6924e160136d1);
|
|
2904
|
-
let { isDisabled: isDisabled, isInvalid: isInvalid, onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;
|
|
2905
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $bzgmy$reactaria.useHover)({
|
|
2906
|
-
onHoverStart: onHoverStart,
|
|
2907
|
-
onHoverChange: onHoverChange,
|
|
2908
|
-
onHoverEnd: onHoverEnd,
|
|
2909
|
-
isDisabled: isDisabled
|
|
2910
|
-
});
|
|
2911
|
-
let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $bzgmy$reactaria.useFocusRing)({
|
|
2912
|
-
within: true
|
|
2913
|
-
});
|
|
2914
|
-
isDisabled !== null && isDisabled !== void 0 ? isDisabled : isDisabled = !!props["aria-disabled"] && props["aria-disabled"] !== "false";
|
|
2915
|
-
isInvalid !== null && isInvalid !== void 0 ? isInvalid : isInvalid = !!props["aria-invalid"] && props["aria-invalid"] !== "false";
|
|
2916
|
-
let renderProps = (0, $c5ccf687772c0422$export$4d86445c2cf5e3)({
|
|
2917
|
-
...props,
|
|
2918
|
-
values: {
|
|
2919
|
-
isHovered: isHovered,
|
|
2920
|
-
isFocusWithin: isFocused,
|
|
2921
|
-
isFocusVisible: isFocusVisible,
|
|
2922
|
-
isDisabled: isDisabled,
|
|
2923
|
-
isInvalid: isInvalid
|
|
2924
|
-
},
|
|
2925
|
-
defaultClassName: "react-aria-Group"
|
|
2926
|
-
});
|
|
2927
|
-
var _props_role, _props_slot;
|
|
2928
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("div", {
|
|
2929
|
-
...(0, $bzgmy$reactaria.mergeProps)(otherProps, focusProps, hoverProps),
|
|
2930
|
-
...renderProps,
|
|
2931
|
-
ref: ref,
|
|
2932
|
-
role: (_props_role = props.role) !== null && _props_role !== void 0 ? _props_role : "group",
|
|
2933
|
-
slot: (_props_slot = props.slot) !== null && _props_slot !== void 0 ? _props_slot : undefined,
|
|
2934
|
-
"data-focus-within": isFocused || undefined,
|
|
2935
|
-
"data-hovered": isHovered || undefined,
|
|
2936
|
-
"data-focus-visible": isFocusVisible || undefined,
|
|
2937
|
-
"data-disabled": isDisabled || undefined,
|
|
2938
|
-
"data-invalid": isInvalid || undefined
|
|
2939
|
-
}, renderProps.children);
|
|
2940
|
-
}
|
|
2941
|
-
/**
|
|
2942
|
-
* A group represents a set of related UI controls, and supports interactive states for styling.
|
|
2943
|
-
*/ const $dcae72abc18c0045$export$eb2fcfdbd7ba97d4 = /*#__PURE__*/ (0, $bzgmy$react.forwardRef)($dcae72abc18c0045$var$Group);
|
|
2944
|
-
|
|
2945
2999
|
|
|
2946
3000
|
|
|
2947
3001
|
|
|
@@ -2992,7 +3046,8 @@ function $9eb4e1c2268ca198$var$DateField(props, ref) {
|
|
|
2992
3046
|
(0, $dcae72abc18c0045$export$f9c6924e160136d1),
|
|
2993
3047
|
{
|
|
2994
3048
|
...fieldProps,
|
|
2995
|
-
ref: fieldRef
|
|
3049
|
+
ref: fieldRef,
|
|
3050
|
+
isInvalid: state.isInvalid
|
|
2996
3051
|
}
|
|
2997
3052
|
],
|
|
2998
3053
|
[
|
|
@@ -3076,7 +3131,8 @@ function $9eb4e1c2268ca198$var$TimeField(props, ref) {
|
|
|
3076
3131
|
(0, $dcae72abc18c0045$export$f9c6924e160136d1),
|
|
3077
3132
|
{
|
|
3078
3133
|
...fieldProps,
|
|
3079
|
-
ref: fieldRef
|
|
3134
|
+
ref: fieldRef,
|
|
3135
|
+
isInvalid: state.isInvalid
|
|
3080
3136
|
}
|
|
3081
3137
|
],
|
|
3082
3138
|
[
|
|
@@ -3165,7 +3221,8 @@ const $9eb4e1c2268ca198$var$DateInputStandalone = /*#__PURE__*/ (0, $bzgmy$react
|
|
|
3165
3221
|
(0, $dcae72abc18c0045$export$f9c6924e160136d1),
|
|
3166
3222
|
{
|
|
3167
3223
|
...fieldProps,
|
|
3168
|
-
ref: fieldRef
|
|
3224
|
+
ref: fieldRef,
|
|
3225
|
+
isInvalid: state.isInvalid
|
|
3169
3226
|
}
|
|
3170
3227
|
]
|
|
3171
3228
|
]
|
|
@@ -3302,7 +3359,8 @@ function $adfe8d3f75d5162e$var$DatePicker(props, ref) {
|
|
|
3302
3359
|
(0, $dcae72abc18c0045$export$f9c6924e160136d1),
|
|
3303
3360
|
{
|
|
3304
3361
|
...groupProps,
|
|
3305
|
-
ref: groupRef
|
|
3362
|
+
ref: groupRef,
|
|
3363
|
+
isInvalid: state.isInvalid
|
|
3306
3364
|
}
|
|
3307
3365
|
],
|
|
3308
3366
|
[
|
|
@@ -3335,6 +3393,7 @@ function $adfe8d3f75d5162e$var$DatePicker(props, ref) {
|
|
|
3335
3393
|
[
|
|
3336
3394
|
(0, $61e2b7078adb18bc$export$9b9a0cd73afb7ca4),
|
|
3337
3395
|
{
|
|
3396
|
+
trigger: "DatePicker",
|
|
3338
3397
|
triggerRef: groupRef,
|
|
3339
3398
|
placement: "bottom start"
|
|
3340
3399
|
}
|
|
@@ -3415,7 +3474,8 @@ function $adfe8d3f75d5162e$var$DateRangePicker(props, ref) {
|
|
|
3415
3474
|
(0, $dcae72abc18c0045$export$f9c6924e160136d1),
|
|
3416
3475
|
{
|
|
3417
3476
|
...groupProps,
|
|
3418
|
-
ref: groupRef
|
|
3477
|
+
ref: groupRef,
|
|
3478
|
+
isInvalid: state.isInvalid
|
|
3419
3479
|
}
|
|
3420
3480
|
],
|
|
3421
3481
|
[
|
|
@@ -3444,6 +3504,7 @@ function $adfe8d3f75d5162e$var$DateRangePicker(props, ref) {
|
|
|
3444
3504
|
[
|
|
3445
3505
|
(0, $61e2b7078adb18bc$export$9b9a0cd73afb7ca4),
|
|
3446
3506
|
{
|
|
3507
|
+
trigger: "DateRangePicker",
|
|
3447
3508
|
triggerRef: groupRef,
|
|
3448
3509
|
placement: "bottom start"
|
|
3449
3510
|
}
|
|
@@ -3509,140 +3570,38 @@ function $adfe8d3f75d5162e$var$DateRangePicker(props, ref) {
|
|
|
3509
3570
|
|
|
3510
3571
|
|
|
3511
3572
|
var $d72d752ea1c67b9a$exports = {};
|
|
3512
|
-
var $7e3b9f6c0d3f98a7$exports = {};
|
|
3513
|
-
$7e3b9f6c0d3f98a7$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u062D\u062F\u062F \u0639\u0646\u0635\u0631\u064B\u0627","tableResizer":"\u0623\u062F\u0627\u0629 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645"}');
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
var $7c11c8bafabff514$exports = {};
|
|
3517
|
-
$7c11c8bafabff514$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442","tableResizer":"\u041F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u0438\u0442\u0435\u043B"}');
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
var $d55d6a46d896aa4e$exports = {};
|
|
3521
|
-
$d55d6a46d896aa4e$exports = JSON.parse('{"dropzoneLabel":"M\xedsto pro p\u0159eta\u017Een\xed","selectPlaceholder":"Vyberte polo\u017Eku","tableResizer":"Zm\u011Bna velikosti"}');
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
var $0bf85a6224525466$exports = {};
|
|
3525
|
-
$0bf85a6224525466$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"V\xe6lg et element","tableResizer":"St\xf8rrelses\xe6ndring"}');
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
var $3cffc1bd30a143a7$exports = {};
|
|
3529
|
-
$3cffc1bd30a143a7$exports = JSON.parse('{"dropzoneLabel":"Ablegebereich","selectPlaceholder":"Element w\xe4hlen","tableResizer":"Gr\xf6\xdfenanpassung"}');
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
var $af25cfd8212114c4$exports = {};
|
|
3533
|
-
$af25cfd8212114c4$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF","tableResizer":"\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2"}');
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
var $4f0d6cca330ebbae$exports = {};
|
|
3537
|
-
$4f0d6cca330ebbae$exports = JSON.parse('{"selectPlaceholder":"Select an item","tableResizer":"Resizer","dropzoneLabel":"DropZone"}');
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
var $1e942d208b3f081e$exports = {};
|
|
3541
|
-
$1e942d208b3f081e$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Seleccionar un art\xedculo","tableResizer":"Cambiador de tama\xf1o"}');
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
var $7ecf22cba6524ed5$exports = {};
|
|
3545
|
-
$7ecf22cba6524ed5$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Valige \xfcksus","tableResizer":"Suuruse muutja"}');
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
var $4c3e2c694f8954f2$exports = {};
|
|
3549
|
-
$4c3e2c694f8954f2$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Valitse kohde","tableResizer":"Koon muuttaja"}');
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
var $5c093d840945be34$exports = {};
|
|
3553
|
-
$5c093d840945be34$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"S\xe9lectionner un \xe9l\xe9ment","tableResizer":"Redimensionneur"}');
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
var $54ebe5cc44e081ca$exports = {};
|
|
3557
|
-
$54ebe5cc44e081ca$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u05D1\u05D7\u05E8 \u05E4\u05E8\u05D9\u05D8","tableResizer":"\u05E9\u05D9\u05E0\u05D5\u05D9 \u05D2\u05D5\u05D3\u05DC"}');
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
var $c87f289edc3c8208$exports = {};
|
|
3561
|
-
$c87f289edc3c8208$exports = JSON.parse('{"dropzoneLabel":"Zona spu\u0161tanja","selectPlaceholder":"Odaberite stavku","tableResizer":"Promjena veli\u010Dine"}');
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
var $6752ef148a3dc43f$exports = {};
|
|
3565
|
-
$6752ef148a3dc43f$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"V\xe1lasszon ki egy elemet","tableResizer":"\xc1tm\xe9retez\u0151"}');
|
|
3566
3573
|
|
|
3567
3574
|
|
|
3568
|
-
var $58fa24283081b65c$exports = {};
|
|
3569
|
-
$58fa24283081b65c$exports = JSON.parse('{"dropzoneLabel":"Zona di rilascio","selectPlaceholder":"Seleziona un elemento","tableResizer":"Ridimensionamento"}');
|
|
3570
3575
|
|
|
3571
3576
|
|
|
3572
|
-
var $770533c19d7b553a$exports = {};
|
|
3573
|
-
$770533c19d7b553a$exports = JSON.parse('{"dropzoneLabel":"\u30C9\u30ED\u30C3\u30D7\u30BE\u30FC\u30F3","selectPlaceholder":"\u9805\u76EE\u3092\u9078\u629E","tableResizer":"\u30B5\u30A4\u30BA\u5909\u66F4\u30C4\u30FC\u30EB"}');
|
|
3574
3577
|
|
|
3575
3578
|
|
|
3576
|
-
var $de8f7b8ad7f54d6d$exports = {};
|
|
3577
|
-
$de8f7b8ad7f54d6d$exports = JSON.parse('{"dropzoneLabel":"\uB4DC\uB86D \uC601\uC5ED","selectPlaceholder":"\uD56D\uBAA9 \uC120\uD0DD","tableResizer":"\uD06C\uAE30 \uC870\uC815\uAE30"}');
|
|
3578
3579
|
|
|
3579
3580
|
|
|
3580
|
-
var $de235b5235305f02$exports = {};
|
|
3581
|
-
$de235b5235305f02$exports = JSON.parse('{"dropzoneLabel":"\u201EDropZone\u201C","selectPlaceholder":"Pasirinkite element\u0105","tableResizer":"Dyd\u017Eio keitiklis"}');
|
|
3582
3581
|
|
|
3583
3582
|
|
|
3584
|
-
var $1badb5b4b4fa9042$exports = {};
|
|
3585
|
-
$1badb5b4b4fa9042$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Izv\u0113l\u0113ties vienumu","tableResizer":"Izm\u0113ra main\u012Bt\u0101js"}');
|
|
3586
3583
|
|
|
3587
3584
|
|
|
3588
|
-
var $e0e47ca0931d41e2$exports = {};
|
|
3589
|
-
$e0e47ca0931d41e2$exports = JSON.parse('{"dropzoneLabel":"Droppsone","selectPlaceholder":"Velg et element","tableResizer":"St\xf8rrelsesendrer"}');
|
|
3590
3585
|
|
|
3591
3586
|
|
|
3592
|
-
var $adb96033a361a81b$exports = {};
|
|
3593
|
-
$adb96033a361a81b$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Selecteer een item","tableResizer":"Resizer"}');
|
|
3594
3587
|
|
|
3595
3588
|
|
|
3596
|
-
var $96ebda5b7b663ef6$exports = {};
|
|
3597
|
-
$96ebda5b7b663ef6$exports = JSON.parse('{"dropzoneLabel":"Strefa upuszczania","selectPlaceholder":"Wybierz element","tableResizer":"Zmiana rozmiaru"}');
|
|
3598
3589
|
|
|
3599
3590
|
|
|
3600
|
-
var $010ef53c23794e08$exports = {};
|
|
3601
|
-
$010ef53c23794e08$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Selecione um item","tableResizer":"Redimensionador"}');
|
|
3602
3591
|
|
|
3603
3592
|
|
|
3604
|
-
var $a0d0918dbe8cd238$exports = {};
|
|
3605
|
-
$a0d0918dbe8cd238$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Selecione um item","tableResizer":"Redimensionador"}');
|
|
3606
3593
|
|
|
3607
3594
|
|
|
3608
|
-
var $b73baeec3a0b138d$exports = {};
|
|
3609
|
-
$b73baeec3a0b138d$exports = JSON.parse('{"dropzoneLabel":"Zon\u0103 de plasare","selectPlaceholder":"Selecta\u021Bi un element","tableResizer":"Instrument de redimensionare"}');
|
|
3610
3595
|
|
|
3611
3596
|
|
|
3612
|
-
var $aed1f56161d4731e$exports = {};
|
|
3613
|
-
$aed1f56161d4731e$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442","tableResizer":"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u0430"}');
|
|
3614
3597
|
|
|
3615
3598
|
|
|
3616
|
-
var $3ff95b3a8291cbd7$exports = {};
|
|
3617
|
-
$3ff95b3a8291cbd7$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Vyberte polo\u017Eku","tableResizer":"N\xe1stroj na zmenu ve\u013Ekosti"}');
|
|
3618
3599
|
|
|
3619
3600
|
|
|
3620
|
-
var $c7459bccfcc668d8$exports = {};
|
|
3621
|
-
$c7459bccfcc668d8$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Izberite element","tableResizer":"Spreminjanje velikosti"}');
|
|
3622
3601
|
|
|
3623
3602
|
|
|
3624
|
-
var $d4deb497858acd42$exports = {};
|
|
3625
|
-
$d4deb497858acd42$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Izaberite stavku","tableResizer":"Promena veli\u010Dine"}');
|
|
3626
3603
|
|
|
3627
3604
|
|
|
3628
|
-
var $f07511ec9106f700$exports = {};
|
|
3629
|
-
$f07511ec9106f700$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"V\xe4lj en artikel","tableResizer":"Storleks\xe4ndrare"}');
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
var $8ecd910775d75b2a$exports = {};
|
|
3633
|
-
$8ecd910775d75b2a$exports = JSON.parse('{"dropzoneLabel":"B\u0131rakma B\xf6lgesi","selectPlaceholder":"Bir \xf6\u011Fe se\xe7in","tableResizer":"Yeniden boyutland\u0131r\u0131c\u0131"}');
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
var $db0c53fb82554560$exports = {};
|
|
3637
|
-
$db0c53fb82554560$exports = JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0435\u043B\u0435\u043C\u0435\u043D\u0442","tableResizer":"\u0417\u0430\u0441\u0456\u0431 \u0437\u043C\u0456\u043D\u0435\u043D\u043D\u044F \u0440\u043E\u0437\u043C\u0456\u0440\u0443"}');
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
var $c6fb62cc552205b8$exports = {};
|
|
3641
|
-
$c6fb62cc552205b8$exports = JSON.parse('{"dropzoneLabel":"\u653E\u7F6E\u533A\u57DF","selectPlaceholder":"\u9009\u62E9\u4E00\u4E2A\u9879\u76EE","tableResizer":"\u5C3A\u5BF8\u8C03\u6574\u5668"}');
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
var $1830911445b53dbf$exports = {};
|
|
3645
|
-
$1830911445b53dbf$exports = JSON.parse('{"dropzoneLabel":"\u653E\u7F6E\u5340","selectPlaceholder":"\u9078\u53D6\u9805\u76EE","tableResizer":"\u5927\u5C0F\u8ABF\u6574\u5668"}');
|
|
3646
3605
|
|
|
3647
3606
|
|
|
3648
3607
|
$d72d752ea1c67b9a$exports = {
|
|
@@ -3696,7 +3655,7 @@ function $80a65baccb138f12$var$DropZone(props, ref) {
|
|
|
3696
3655
|
});
|
|
3697
3656
|
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $bzgmy$reactaria.useHover)(props);
|
|
3698
3657
|
let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $bzgmy$reactaria.useFocusRing)();
|
|
3699
|
-
let stringFormatter = (0, $bzgmy$reactaria.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($d72d752ea1c67b9a$exports))));
|
|
3658
|
+
let stringFormatter = (0, $bzgmy$reactaria.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($d72d752ea1c67b9a$exports))), "react-aria-components");
|
|
3700
3659
|
let textId = (0, $bzgmy$reactariautils.useSlotId)();
|
|
3701
3660
|
let dropzoneId = (0, $bzgmy$reactariautils.useSlotId)();
|
|
3702
3661
|
let ariaLabel = props["aria-label"] || stringFormatter.format("dropzoneLabel");
|
|
@@ -3786,7 +3745,7 @@ function $80a65baccb138f12$var$DropZone(props, ref) {
|
|
|
3786
3745
|
|
|
3787
3746
|
|
|
3788
3747
|
function $8e055a19745f522c$var$FileTrigger(props, ref) {
|
|
3789
|
-
let { onSelect: onSelect, acceptedFileTypes: acceptedFileTypes, allowsMultiple: allowsMultiple, defaultCamera: defaultCamera, children: children, ...rest } = props;
|
|
3748
|
+
let { onSelect: onSelect, acceptedFileTypes: acceptedFileTypes, allowsMultiple: allowsMultiple, defaultCamera: defaultCamera, children: children, acceptDirectory: acceptDirectory, ...rest } = props;
|
|
3790
3749
|
let inputRef = (0, $bzgmy$reactariautils.useObjectRef)(ref);
|
|
3791
3750
|
let domProps = (0, $bzgmy$reactariautils.filterDOMProps)(rest);
|
|
3792
3751
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement((0, ($parcel$interopDefault($bzgmy$react))).Fragment, null, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement((0, $bzgmy$reactariainteractions.PressResponder), {
|
|
@@ -3805,7 +3764,9 @@ function $8e055a19745f522c$var$FileTrigger(props, ref) {
|
|
|
3805
3764
|
accept: acceptedFileTypes === null || acceptedFileTypes === void 0 ? void 0 : acceptedFileTypes.toString(),
|
|
3806
3765
|
onChange: (e)=>onSelect === null || onSelect === void 0 ? void 0 : onSelect(e.target.files),
|
|
3807
3766
|
capture: defaultCamera,
|
|
3808
|
-
multiple: allowsMultiple
|
|
3767
|
+
multiple: allowsMultiple,
|
|
3768
|
+
// @ts-expect-error
|
|
3769
|
+
webkitdirectory: acceptDirectory ? "" : undefined
|
|
3809
3770
|
}));
|
|
3810
3771
|
}
|
|
3811
3772
|
/**
|
|
@@ -3975,6 +3936,7 @@ function $132cbde493282f82$var$GridListInner({ props: props, collection: collect
|
|
|
3975
3936
|
...(0, $bzgmy$reactaria.mergeProps)(gridProps, focusProps, droppableCollection === null || droppableCollection === void 0 ? void 0 : droppableCollection.collectionProps, emptyStatePropOverrides),
|
|
3976
3937
|
ref: ref,
|
|
3977
3938
|
slot: props.slot || undefined,
|
|
3939
|
+
onScroll: props.onScroll,
|
|
3978
3940
|
"data-drop-target": isRootDropTarget || undefined,
|
|
3979
3941
|
"data-empty": state.collection.size === 0 || undefined,
|
|
3980
3942
|
"data-focused": isFocused || undefined,
|
|
@@ -4184,7 +4146,7 @@ function $132cbde493282f82$var$GridListDropIndicator(props, ref) {
|
|
|
4184
4146
|
role: "button",
|
|
4185
4147
|
...dropIndicatorProps,
|
|
4186
4148
|
ref: buttonRef
|
|
4187
|
-
})));
|
|
4149
|
+
}), renderProps.children));
|
|
4188
4150
|
}
|
|
4189
4151
|
const $132cbde493282f82$var$GridListDropIndicatorForwardRef = /*#__PURE__*/ (0, $bzgmy$react.forwardRef)($132cbde493282f82$var$GridListDropIndicator);
|
|
4190
4152
|
function $132cbde493282f82$var$RootDropIndicator() {
|
|
@@ -4281,6 +4243,17 @@ function $a8f6e7d095d1cc86$export$27d2ad3c5815583e(props) {
|
|
|
4281
4243
|
...props,
|
|
4282
4244
|
type: "menu"
|
|
4283
4245
|
}, state, ref);
|
|
4246
|
+
// Allows menu width to match button
|
|
4247
|
+
let [buttonWidth, setButtonWidth] = (0, $bzgmy$react.useState)(null);
|
|
4248
|
+
let onResize = (0, $bzgmy$react.useCallback)(()=>{
|
|
4249
|
+
if (ref.current) setButtonWidth(ref.current.offsetWidth + "px");
|
|
4250
|
+
}, [
|
|
4251
|
+
ref
|
|
4252
|
+
]);
|
|
4253
|
+
(0, $bzgmy$reactariautils.useResizeObserver)({
|
|
4254
|
+
ref: ref,
|
|
4255
|
+
onResize: onResize
|
|
4256
|
+
});
|
|
4284
4257
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement((0, $c5ccf687772c0422$export$2881499e37b75b9a), {
|
|
4285
4258
|
values: [
|
|
4286
4259
|
[
|
|
@@ -4294,8 +4267,12 @@ function $a8f6e7d095d1cc86$export$27d2ad3c5815583e(props) {
|
|
|
4294
4267
|
[
|
|
4295
4268
|
(0, $61e2b7078adb18bc$export$9b9a0cd73afb7ca4),
|
|
4296
4269
|
{
|
|
4270
|
+
trigger: "MenuTrigger",
|
|
4297
4271
|
triggerRef: ref,
|
|
4298
|
-
placement: "bottom start"
|
|
4272
|
+
placement: "bottom start",
|
|
4273
|
+
style: {
|
|
4274
|
+
"--trigger-width": buttonWidth
|
|
4275
|
+
}
|
|
4299
4276
|
}
|
|
4300
4277
|
]
|
|
4301
4278
|
]
|
|
@@ -4347,6 +4324,7 @@ function $a8f6e7d095d1cc86$var$MenuInner({ props: props, collection: collection,
|
|
|
4347
4324
|
...menuProps,
|
|
4348
4325
|
ref: ref,
|
|
4349
4326
|
slot: props.slot || undefined,
|
|
4327
|
+
onScroll: props.onScroll,
|
|
4350
4328
|
style: props.style,
|
|
4351
4329
|
className: (_props_className = props.className) !== null && _props_className !== void 0 ? _props_className : "react-aria-Menu"
|
|
4352
4330
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement((0, $c5ccf687772c0422$export$2881499e37b75b9a), {
|
|
@@ -4540,7 +4518,7 @@ function $71899cff63e14b82$var$Modal(props, ref) {
|
|
|
4540
4518
|
...props,
|
|
4541
4519
|
modalRef: ref
|
|
4542
4520
|
}, props.children);
|
|
4543
|
-
let { isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled, isOpen: isOpen, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: children, isEntering: isEntering, isExiting: isExiting, ...otherProps } = props;
|
|
4521
|
+
let { isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled, isOpen: isOpen, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: children, isEntering: isEntering, isExiting: isExiting, UNSTABLE_portalContainer: UNSTABLE_portalContainer, ...otherProps } = props;
|
|
4544
4522
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement($71899cff63e14b82$export$8948f78d83984c69, {
|
|
4545
4523
|
isDismissable: isDismissable,
|
|
4546
4524
|
isKeyboardDismissDisabled: isKeyboardDismissDisabled,
|
|
@@ -4548,7 +4526,8 @@ function $71899cff63e14b82$var$Modal(props, ref) {
|
|
|
4548
4526
|
defaultOpen: defaultOpen,
|
|
4549
4527
|
onOpenChange: onOpenChange,
|
|
4550
4528
|
isEntering: isEntering,
|
|
4551
|
-
isExiting: isExiting
|
|
4529
|
+
isExiting: isExiting,
|
|
4530
|
+
UNSTABLE_portalContainer: UNSTABLE_portalContainer
|
|
4552
4531
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement($71899cff63e14b82$var$ModalContent, {
|
|
4553
4532
|
...otherProps,
|
|
4554
4533
|
modalRef: ref
|
|
@@ -4578,7 +4557,7 @@ function $71899cff63e14b82$var$ModalOverlayWithForwardRef(props, ref) {
|
|
|
4578
4557
|
});
|
|
4579
4558
|
}
|
|
4580
4559
|
const $71899cff63e14b82$export$8948f78d83984c69 = /*#__PURE__*/ (0, $bzgmy$react.forwardRef)($71899cff63e14b82$var$ModalOverlayWithForwardRef);
|
|
4581
|
-
function $71899cff63e14b82$var$ModalOverlayInner(props) {
|
|
4560
|
+
function $71899cff63e14b82$var$ModalOverlayInner({ UNSTABLE_portalContainer: UNSTABLE_portalContainer, ...props }) {
|
|
4582
4561
|
let modalRef = props.modalRef;
|
|
4583
4562
|
let { state: state } = props;
|
|
4584
4563
|
let { modalProps: modalProps, underlayProps: underlayProps } = (0, $bzgmy$reactaria.useModalOverlay)(props, state, modalRef);
|
|
@@ -4598,7 +4577,8 @@ function $71899cff63e14b82$var$ModalOverlayInner(props) {
|
|
|
4598
4577
|
"--visual-viewport-height": viewport.height + "px"
|
|
4599
4578
|
};
|
|
4600
4579
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement((0, $bzgmy$reactaria.Overlay), {
|
|
4601
|
-
isExiting: props.isExiting
|
|
4580
|
+
isExiting: props.isExiting,
|
|
4581
|
+
portalContainer: UNSTABLE_portalContainer
|
|
4602
4582
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("div", {
|
|
4603
4583
|
...(0, $bzgmy$reactariautils.mergeProps)((0, $bzgmy$reactariautils.filterDOMProps)(props), underlayProps),
|
|
4604
4584
|
...renderProps,
|
|
@@ -4825,7 +4805,6 @@ function $0d6436f6a1b0b001$var$ProgressBar(props, ref) {
|
|
|
4825
4805
|
*/ const $0d6436f6a1b0b001$export$c17561cb55d4db30 = /*#__PURE__*/ (0, $bzgmy$react.forwardRef)($0d6436f6a1b0b001$var$ProgressBar);
|
|
4826
4806
|
|
|
4827
4807
|
|
|
4828
|
-
|
|
4829
4808
|
/*
|
|
4830
4809
|
* Copyright 2022 Adobe. All rights reserved.
|
|
4831
4810
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -4916,37 +4895,24 @@ function $1456b76f687bd4ed$var$RadioGroup(props, ref) {
|
|
|
4916
4895
|
function $1456b76f687bd4ed$var$Radio(props, ref) {
|
|
4917
4896
|
[props, ref] = (0, $c5ccf687772c0422$export$29f1550f4b0d4415)(props, ref, $1456b76f687bd4ed$export$b118023277d4a5c3);
|
|
4918
4897
|
let state = (0, ($parcel$interopDefault($bzgmy$react))).useContext($1456b76f687bd4ed$export$29d84393af70866c);
|
|
4919
|
-
let
|
|
4920
|
-
let { inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isPressed:
|
|
4898
|
+
let inputRef = (0, $bzgmy$react.useRef)(null);
|
|
4899
|
+
let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isPressed: isPressed } = (0, $bzgmy$reactaria.useRadio)({
|
|
4921
4900
|
...(0, $c5ccf687772c0422$export$ef03459518577ad4)(props),
|
|
4922
4901
|
// ReactNode type doesn't allow function children.
|
|
4923
4902
|
children: typeof props.children === "function" ? true : props.children
|
|
4924
|
-
}, state,
|
|
4903
|
+
}, state, inputRef);
|
|
4925
4904
|
let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $bzgmy$reactaria.useFocusRing)();
|
|
4926
4905
|
let interactionDisabled = isDisabled || state.isReadOnly;
|
|
4927
|
-
// Handle press state for full label. Keyboard press state is returned by useRadio
|
|
4928
|
-
// since it is handled on the <input> element itself.
|
|
4929
|
-
let [isPressed, setPressed] = (0, $bzgmy$react.useState)(false);
|
|
4930
|
-
let { pressProps: pressProps } = (0, $bzgmy$reactaria.usePress)({
|
|
4931
|
-
isDisabled: interactionDisabled,
|
|
4932
|
-
onPressStart (e) {
|
|
4933
|
-
if (e.pointerType !== "keyboard") setPressed(true);
|
|
4934
|
-
},
|
|
4935
|
-
onPressEnd (e) {
|
|
4936
|
-
if (e.pointerType !== "keyboard") setPressed(false);
|
|
4937
|
-
}
|
|
4938
|
-
});
|
|
4939
4906
|
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $bzgmy$reactaria.useHover)({
|
|
4940
4907
|
...props,
|
|
4941
4908
|
isDisabled: interactionDisabled
|
|
4942
4909
|
});
|
|
4943
|
-
let pressed = interactionDisabled ? false : isPressed || isPressedKeyboard;
|
|
4944
4910
|
let renderProps = (0, $c5ccf687772c0422$export$4d86445c2cf5e3)({
|
|
4945
4911
|
...props,
|
|
4946
4912
|
defaultClassName: "react-aria-Radio",
|
|
4947
4913
|
values: {
|
|
4948
4914
|
isSelected: isSelected,
|
|
4949
|
-
isPressed:
|
|
4915
|
+
isPressed: isPressed,
|
|
4950
4916
|
isHovered: isHovered,
|
|
4951
4917
|
isFocused: isFocused,
|
|
4952
4918
|
isFocusVisible: isFocusVisible,
|
|
@@ -4959,9 +4925,10 @@ function $1456b76f687bd4ed$var$Radio(props, ref) {
|
|
|
4959
4925
|
let DOMProps = (0, $bzgmy$reactariautils.filterDOMProps)(props);
|
|
4960
4926
|
delete DOMProps.id;
|
|
4961
4927
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("label", {
|
|
4962
|
-
...(0, $bzgmy$reactariautils.mergeProps)(DOMProps,
|
|
4928
|
+
...(0, $bzgmy$reactariautils.mergeProps)(DOMProps, labelProps, hoverProps, renderProps),
|
|
4929
|
+
ref: ref,
|
|
4963
4930
|
"data-selected": isSelected || undefined,
|
|
4964
|
-
"data-pressed":
|
|
4931
|
+
"data-pressed": isPressed || undefined,
|
|
4965
4932
|
"data-hovered": isHovered || undefined,
|
|
4966
4933
|
"data-focused": isFocused || undefined,
|
|
4967
4934
|
"data-focus-visible": isFocusVisible || undefined,
|
|
@@ -4973,7 +4940,7 @@ function $1456b76f687bd4ed$var$Radio(props, ref) {
|
|
|
4973
4940
|
elementType: "span"
|
|
4974
4941
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("input", {
|
|
4975
4942
|
...(0, $bzgmy$reactariautils.mergeProps)(inputProps, focusProps),
|
|
4976
|
-
ref:
|
|
4943
|
+
ref: inputRef
|
|
4977
4944
|
})), renderProps.children);
|
|
4978
4945
|
}
|
|
4979
4946
|
/**
|
|
@@ -5004,6 +4971,7 @@ function $1456b76f687bd4ed$var$Radio(props, ref) {
|
|
|
5004
4971
|
|
|
5005
4972
|
|
|
5006
4973
|
|
|
4974
|
+
|
|
5007
4975
|
const $a83c69b310385d53$export$d1c4e4c63cb03a11 = /*#__PURE__*/ (0, $bzgmy$react.createContext)(null);
|
|
5008
4976
|
function $a83c69b310385d53$var$SearchField(props, ref) {
|
|
5009
4977
|
[props, ref] = (0, $c5ccf687772c0422$export$29f1550f4b0d4415)(props, ref, $a83c69b310385d53$export$d1c4e4c63cb03a11);
|
|
@@ -5069,6 +5037,13 @@ function $a83c69b310385d53$var$SearchField(props, ref) {
|
|
|
5069
5037
|
}
|
|
5070
5038
|
}
|
|
5071
5039
|
],
|
|
5040
|
+
[
|
|
5041
|
+
(0, $dcae72abc18c0045$export$f9c6924e160136d1),
|
|
5042
|
+
{
|
|
5043
|
+
isInvalid: validation.isInvalid,
|
|
5044
|
+
isDisabled: props.isDisabled || false
|
|
5045
|
+
}
|
|
5046
|
+
],
|
|
5072
5047
|
[
|
|
5073
5048
|
(0, $846a838139f2ac6b$export$ff05c3ac10437e03),
|
|
5074
5049
|
validation
|
|
@@ -5215,6 +5190,7 @@ function $17f0ecdc17674b23$var$Select(props, ref) {
|
|
|
5215
5190
|
[
|
|
5216
5191
|
(0, $61e2b7078adb18bc$export$9b9a0cd73afb7ca4),
|
|
5217
5192
|
{
|
|
5193
|
+
trigger: "Select",
|
|
5218
5194
|
triggerRef: buttonRef,
|
|
5219
5195
|
placement: "bottom start",
|
|
5220
5196
|
style: {
|
|
@@ -5289,7 +5265,7 @@ function $17f0ecdc17674b23$var$SelectValue(props, ref) {
|
|
|
5289
5265
|
selectionBehavior: "toggle"
|
|
5290
5266
|
});
|
|
5291
5267
|
}
|
|
5292
|
-
let stringFormatter = (0, $bzgmy$reactaria.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($d72d752ea1c67b9a$exports))));
|
|
5268
|
+
let stringFormatter = (0, $bzgmy$reactaria.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($d72d752ea1c67b9a$exports))), "react-aria-components");
|
|
5293
5269
|
var _state_selectedItem_value, _state_selectedItem_textValue;
|
|
5294
5270
|
let renderProps = (0, $c5ccf687772c0422$export$4d86445c2cf5e3)({
|
|
5295
5271
|
...props,
|
|
@@ -5538,37 +5514,25 @@ function $b7152ce4839d0838$var$SliderThumb(props, ref) {
|
|
|
5538
5514
|
const $8d81efc5c2ff8011$export$8699e3b644d5a28a = /*#__PURE__*/ (0, $bzgmy$react.createContext)(null);
|
|
5539
5515
|
function $8d81efc5c2ff8011$var$Switch(props, ref) {
|
|
5540
5516
|
[props, ref] = (0, $c5ccf687772c0422$export$29f1550f4b0d4415)(props, ref, $8d81efc5c2ff8011$export$8699e3b644d5a28a);
|
|
5517
|
+
let inputRef = (0, $bzgmy$react.useRef)(null);
|
|
5541
5518
|
let state = (0, $bzgmy$reactstately.useToggleState)(props);
|
|
5542
|
-
let { inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed:
|
|
5519
|
+
let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed: isPressed } = (0, $bzgmy$reactaria.useSwitch)({
|
|
5543
5520
|
...(0, $c5ccf687772c0422$export$ef03459518577ad4)(props),
|
|
5544
5521
|
// ReactNode type doesn't allow function children.
|
|
5545
5522
|
children: typeof props.children === "function" ? true : props.children
|
|
5546
|
-
}, state,
|
|
5523
|
+
}, state, inputRef);
|
|
5547
5524
|
let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $bzgmy$reactaria.useFocusRing)();
|
|
5548
5525
|
let isInteractionDisabled = props.isDisabled || props.isReadOnly;
|
|
5549
|
-
// Handle press state for full label. Keyboard press state is returned by useSwitch
|
|
5550
|
-
// since it is handled on the <input> element itself.
|
|
5551
|
-
let [isPressed, setPressed] = (0, $bzgmy$react.useState)(false);
|
|
5552
|
-
let { pressProps: pressProps } = (0, $bzgmy$reactaria.usePress)({
|
|
5553
|
-
isDisabled: isInteractionDisabled,
|
|
5554
|
-
onPressStart (e) {
|
|
5555
|
-
if (e.pointerType !== "keyboard") setPressed(true);
|
|
5556
|
-
},
|
|
5557
|
-
onPressEnd (e) {
|
|
5558
|
-
if (e.pointerType !== "keyboard") setPressed(false);
|
|
5559
|
-
}
|
|
5560
|
-
});
|
|
5561
5526
|
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $bzgmy$reactaria.useHover)({
|
|
5562
5527
|
...props,
|
|
5563
5528
|
isDisabled: isInteractionDisabled
|
|
5564
5529
|
});
|
|
5565
|
-
let pressed = isInteractionDisabled ? false : isPressed || isPressedKeyboard;
|
|
5566
5530
|
let renderProps = (0, $c5ccf687772c0422$export$4d86445c2cf5e3)({
|
|
5567
5531
|
...props,
|
|
5568
5532
|
defaultClassName: "react-aria-Switch",
|
|
5569
5533
|
values: {
|
|
5570
5534
|
isSelected: isSelected,
|
|
5571
|
-
isPressed:
|
|
5535
|
+
isPressed: isPressed,
|
|
5572
5536
|
isHovered: isHovered,
|
|
5573
5537
|
isFocused: isFocused,
|
|
5574
5538
|
isFocusVisible: isFocusVisible,
|
|
@@ -5580,10 +5544,11 @@ function $8d81efc5c2ff8011$var$Switch(props, ref) {
|
|
|
5580
5544
|
let DOMProps = (0, $bzgmy$reactariautils.filterDOMProps)(props);
|
|
5581
5545
|
delete DOMProps.id;
|
|
5582
5546
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("label", {
|
|
5583
|
-
...(0, $bzgmy$reactaria.mergeProps)(DOMProps,
|
|
5547
|
+
...(0, $bzgmy$reactaria.mergeProps)(DOMProps, labelProps, hoverProps, renderProps),
|
|
5548
|
+
ref: ref,
|
|
5584
5549
|
slot: props.slot || undefined,
|
|
5585
5550
|
"data-selected": isSelected || undefined,
|
|
5586
|
-
"data-pressed":
|
|
5551
|
+
"data-pressed": isPressed || undefined,
|
|
5587
5552
|
"data-hovered": isHovered || undefined,
|
|
5588
5553
|
"data-focused": isFocused || undefined,
|
|
5589
5554
|
"data-focus-visible": isFocusVisible || undefined,
|
|
@@ -5594,7 +5559,7 @@ function $8d81efc5c2ff8011$var$Switch(props, ref) {
|
|
|
5594
5559
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement("input", {
|
|
5595
5560
|
...inputProps,
|
|
5596
5561
|
...focusProps,
|
|
5597
|
-
ref:
|
|
5562
|
+
ref: inputRef
|
|
5598
5563
|
})), renderProps.children);
|
|
5599
5564
|
}
|
|
5600
5565
|
/**
|
|
@@ -5765,7 +5730,8 @@ function $37b9a5d4bd0d4ded$var$ResizableTableContainer(props, ref) {
|
|
|
5765
5730
|
...(0, $bzgmy$reactariautils.filterDOMProps)(props),
|
|
5766
5731
|
ref: objectRef,
|
|
5767
5732
|
className: props.className || "react-aria-ResizableTableContainer",
|
|
5768
|
-
style: props.style
|
|
5733
|
+
style: props.style,
|
|
5734
|
+
onScroll: props.onScroll
|
|
5769
5735
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement($37b9a5d4bd0d4ded$var$ResizableTableContainerContext.Provider, {
|
|
5770
5736
|
value: ctx
|
|
5771
5737
|
}, props.children));
|
|
@@ -5901,6 +5867,7 @@ function $37b9a5d4bd0d4ded$var$Table(props, ref) {
|
|
|
5901
5867
|
style: style,
|
|
5902
5868
|
ref: ref,
|
|
5903
5869
|
slot: props.slot || undefined,
|
|
5870
|
+
onScroll: props.onScroll,
|
|
5904
5871
|
"data-allows-dragging": isListDraggable || undefined,
|
|
5905
5872
|
"data-drop-target": isRootDropTarget || undefined,
|
|
5906
5873
|
"data-focused": isFocused || undefined,
|
|
@@ -5923,7 +5890,8 @@ function $37b9a5d4bd0d4ded$export$fddc468cd8cb4db9() {
|
|
|
5923
5890
|
function $37b9a5d4bd0d4ded$var$TableHeader(props, ref) {
|
|
5924
5891
|
let children = (0, $3114c2382242bdc0$export$901dbff4e54a6dd0)({
|
|
5925
5892
|
children: props.children,
|
|
5926
|
-
items: props.columns
|
|
5893
|
+
items: props.columns,
|
|
5894
|
+
dependencies: props.dependencies
|
|
5927
5895
|
});
|
|
5928
5896
|
let renderer = typeof props.children === "function" ? props.children : null;
|
|
5929
5897
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement((0, $3114c2382242bdc0$export$4feb769f8ddf26c5).Provider, {
|
|
@@ -5934,16 +5902,7 @@ function $37b9a5d4bd0d4ded$var$TableHeader(props, ref) {
|
|
|
5934
5902
|
* A header within a `<Table>`, containing the table columns.
|
|
5935
5903
|
*/ const $37b9a5d4bd0d4ded$export$f850895b287ef28e = /*#__PURE__*/ (0, $bzgmy$react.forwardRef)($37b9a5d4bd0d4ded$var$TableHeader);
|
|
5936
5904
|
function $37b9a5d4bd0d4ded$var$Column(props, ref) {
|
|
5937
|
-
|
|
5938
|
-
let childColumns;
|
|
5939
|
-
if (typeof render === "function") childColumns = render;
|
|
5940
|
-
else if (typeof props.children !== "function") childColumns = props.children;
|
|
5941
|
-
let children = (0, $3114c2382242bdc0$export$901dbff4e54a6dd0)({
|
|
5942
|
-
children: props.title || props.childColumns ? childColumns : null,
|
|
5943
|
-
items: props.childColumns
|
|
5944
|
-
});
|
|
5945
|
-
var _props_title;
|
|
5946
|
-
return (0, $3114c2382242bdc0$export$e7c29ae2353b16ea)("column", props, ref, (_props_title = props.title) !== null && _props_title !== void 0 ? _props_title : props.children, children);
|
|
5905
|
+
return (0, $3114c2382242bdc0$export$e7c29ae2353b16ea)("column", props, ref, props.children);
|
|
5947
5906
|
}
|
|
5948
5907
|
/**
|
|
5949
5908
|
* A column within a `<Table>`.
|
|
@@ -5956,15 +5915,21 @@ function $37b9a5d4bd0d4ded$var$TableBody(props, ref) {
|
|
|
5956
5915
|
* The body of a `<Table>`, containing the table rows.
|
|
5957
5916
|
*/ const $37b9a5d4bd0d4ded$export$76ccd210b9029917 = /*#__PURE__*/ (0, $bzgmy$react.forwardRef)($37b9a5d4bd0d4ded$var$TableBody);
|
|
5958
5917
|
function $37b9a5d4bd0d4ded$var$Row(props, ref) {
|
|
5918
|
+
let dependencies = [
|
|
5919
|
+
props.value
|
|
5920
|
+
].concat(props.dependencies);
|
|
5959
5921
|
let children = (0, $3114c2382242bdc0$export$901dbff4e54a6dd0)({
|
|
5922
|
+
dependencies: dependencies,
|
|
5960
5923
|
children: props.children,
|
|
5961
5924
|
items: props.columns,
|
|
5962
5925
|
idScope: props.id
|
|
5963
5926
|
});
|
|
5964
5927
|
let ctx = (0, $bzgmy$react.useMemo)(()=>({
|
|
5965
|
-
idScope: props.id
|
|
5928
|
+
idScope: props.id,
|
|
5929
|
+
dependencies: dependencies
|
|
5966
5930
|
}), [
|
|
5967
|
-
props.id
|
|
5931
|
+
props.id,
|
|
5932
|
+
...dependencies
|
|
5968
5933
|
]);
|
|
5969
5934
|
return (0, $3114c2382242bdc0$export$e7c29ae2353b16ea)("item", props, ref, null, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement((0, $3114c2382242bdc0$export$db36075d98ba73d3).Provider, {
|
|
5970
5935
|
value: ctx
|
|
@@ -6096,7 +6061,6 @@ function $37b9a5d4bd0d4ded$var$TableColumnHeader({ column: column }) {
|
|
|
6096
6061
|
node: column
|
|
6097
6062
|
}, state, ref);
|
|
6098
6063
|
let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $bzgmy$reactaria.useFocusRing)();
|
|
6099
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $bzgmy$reactaria.useHover)({});
|
|
6100
6064
|
let layoutState = (0, $bzgmy$react.useContext)($37b9a5d4bd0d4ded$export$a2680a798823803c);
|
|
6101
6065
|
let isResizing = false;
|
|
6102
6066
|
if (layoutState) isResizing = layoutState.resizingColumn === column.key;
|
|
@@ -6109,6 +6073,9 @@ function $37b9a5d4bd0d4ded$var$TableColumnHeader({ column: column }) {
|
|
|
6109
6073
|
])if (prop in column.props) console.warn(`The ${prop} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);
|
|
6110
6074
|
}
|
|
6111
6075
|
let props = column.props;
|
|
6076
|
+
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $bzgmy$reactaria.useHover)({
|
|
6077
|
+
isDisabled: !props.allowsSorting
|
|
6078
|
+
});
|
|
6112
6079
|
let renderProps = (0, $c5ccf687772c0422$export$4d86445c2cf5e3)({
|
|
6113
6080
|
...props,
|
|
6114
6081
|
id: undefined,
|
|
@@ -6143,6 +6110,7 @@ function $37b9a5d4bd0d4ded$var$TableColumnHeader({ column: column }) {
|
|
|
6143
6110
|
style: style,
|
|
6144
6111
|
colSpan: column.colspan,
|
|
6145
6112
|
ref: ref,
|
|
6113
|
+
"data-hovered": isHovered || undefined,
|
|
6146
6114
|
"data-focused": isFocused || undefined,
|
|
6147
6115
|
"data-focus-visible": isFocusVisible || undefined,
|
|
6148
6116
|
"data-resizing": isResizing || undefined,
|
|
@@ -6158,7 +6126,7 @@ function $37b9a5d4bd0d4ded$var$TableColumnHeader({ column: column }) {
|
|
|
6158
6126
|
function $37b9a5d4bd0d4ded$var$ColumnResizer(props, ref) {
|
|
6159
6127
|
let layoutState = (0, $bzgmy$react.useContext)($37b9a5d4bd0d4ded$export$a2680a798823803c);
|
|
6160
6128
|
if (!layoutState) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
6161
|
-
let stringFormatter = (0, $bzgmy$reactaria.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($d72d752ea1c67b9a$exports))));
|
|
6129
|
+
let stringFormatter = (0, $bzgmy$reactaria.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($d72d752ea1c67b9a$exports))), "react-aria-components");
|
|
6162
6130
|
let { onResizeStart: onResizeStart, onResize: onResize, onResizeEnd: onResizeEnd } = (0, $bzgmy$react.useContext)($37b9a5d4bd0d4ded$var$ResizableTableContainerContext);
|
|
6163
6131
|
let { column: column, triggerRef: triggerRef } = (0, $bzgmy$react.useContext)($37b9a5d4bd0d4ded$var$ColumnResizerContext);
|
|
6164
6132
|
let inputRef = (0, $bzgmy$react.useRef)(null);
|
|
@@ -6441,7 +6409,7 @@ function $37b9a5d4bd0d4ded$var$TableDropIndicator(props, ref) {
|
|
|
6441
6409
|
role: "button",
|
|
6442
6410
|
...dropIndicatorProps,
|
|
6443
6411
|
ref: buttonRef
|
|
6444
|
-
})));
|
|
6412
|
+
}), renderProps.children));
|
|
6445
6413
|
}
|
|
6446
6414
|
const $37b9a5d4bd0d4ded$var$TableDropIndicatorForwardRef = /*#__PURE__*/ (0, $bzgmy$react.forwardRef)($37b9a5d4bd0d4ded$var$TableDropIndicator);
|
|
6447
6415
|
function $37b9a5d4bd0d4ded$var$RootDropIndicator() {
|
|
@@ -7172,14 +7140,16 @@ function $f9dd4061eb43ac38$export$8c610744efcf8a1d(props) {
|
|
|
7172
7140
|
ref: ref
|
|
7173
7141
|
}, props.children));
|
|
7174
7142
|
}
|
|
7175
|
-
function $f9dd4061eb43ac38$var$Tooltip(props, ref) {
|
|
7143
|
+
function $f9dd4061eb43ac38$var$Tooltip({ UNSTABLE_portalContainer: UNSTABLE_portalContainer, ...props }, ref) {
|
|
7176
7144
|
[props, ref] = (0, $c5ccf687772c0422$export$29f1550f4b0d4415)(props, ref, $f9dd4061eb43ac38$export$39ae08fa83328b12);
|
|
7177
7145
|
let contextState = (0, $bzgmy$react.useContext)($f9dd4061eb43ac38$export$7a7623236eec67fa);
|
|
7178
7146
|
let localState = (0, $bzgmy$reactstately.useTooltipTriggerState)(props);
|
|
7179
7147
|
let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
7180
7148
|
let isExiting = (0, $c5ccf687772c0422$export$45fda7c47f93fd48)(ref, state.isOpen) || props.isExiting || false;
|
|
7181
7149
|
if (!state.isOpen && !isExiting) return null;
|
|
7182
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement((0, $bzgmy$reactaria.OverlayContainer),
|
|
7150
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement((0, $bzgmy$reactaria.OverlayContainer), {
|
|
7151
|
+
portalContainer: UNSTABLE_portalContainer
|
|
7152
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($bzgmy$react))).createElement($f9dd4061eb43ac38$var$TooltipInner, {
|
|
7183
7153
|
...props,
|
|
7184
7154
|
tooltipRef: ref,
|
|
7185
7155
|
isExiting: isExiting
|
|
@@ -7216,8 +7186,8 @@ function $f9dd4061eb43ac38$var$TooltipInner(props) {
|
|
|
7216
7186
|
ref: props.tooltipRef,
|
|
7217
7187
|
...renderProps,
|
|
7218
7188
|
style: {
|
|
7219
|
-
...
|
|
7220
|
-
...
|
|
7189
|
+
...overlayProps.style,
|
|
7190
|
+
...renderProps.style
|
|
7221
7191
|
},
|
|
7222
7192
|
"data-placement": placement,
|
|
7223
7193
|
"data-entering": isEntering || undefined,
|