@react-spectrum/listbox 3.0.0-alpha.1 → 3.0.0-nightly-641446f65-240905
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 +3 -0
- package/dist/ListBox.main.js +48 -0
- package/dist/ListBox.main.js.map +1 -0
- package/dist/ListBox.mjs +39 -0
- package/dist/ListBox.module.js +39 -0
- package/dist/ListBox.module.js.map +1 -0
- package/dist/ListBoxBase.main.js +165 -0
- package/dist/ListBoxBase.main.js.map +1 -0
- package/dist/ListBoxBase.mjs +159 -0
- package/dist/ListBoxBase.module.js +159 -0
- package/dist/ListBoxBase.module.js.map +1 -0
- package/dist/ListBoxContext.main.js +27 -0
- package/dist/ListBoxContext.main.js.map +1 -0
- package/dist/ListBoxContext.mjs +18 -0
- package/dist/ListBoxContext.module.js +18 -0
- package/dist/ListBoxContext.module.js.map +1 -0
- package/dist/ListBoxLayout.main.js +79 -0
- package/dist/ListBoxLayout.main.js.map +1 -0
- package/dist/ListBoxLayout.mjs +74 -0
- package/dist/ListBoxLayout.module.js +74 -0
- package/dist/ListBoxLayout.module.js.map +1 -0
- package/dist/ListBoxOption.main.js +105 -0
- package/dist/ListBoxOption.main.js.map +1 -0
- package/dist/ListBoxOption.mjs +100 -0
- package/dist/ListBoxOption.module.js +100 -0
- package/dist/ListBoxOption.module.js.map +1 -0
- package/dist/ListBoxSection.main.js +69 -0
- package/dist/ListBoxSection.main.js.map +1 -0
- package/dist/ListBoxSection.mjs +64 -0
- package/dist/ListBoxSection.module.js +64 -0
- package/dist/ListBoxSection.module.js.map +1 -0
- package/dist/ar-AE.main.js +7 -0
- package/dist/ar-AE.main.js.map +1 -0
- package/dist/ar-AE.mjs +9 -0
- package/dist/ar-AE.module.js +9 -0
- package/dist/ar-AE.module.js.map +1 -0
- package/dist/bg-BG.main.js +7 -0
- package/dist/bg-BG.main.js.map +1 -0
- package/dist/bg-BG.mjs +9 -0
- package/dist/bg-BG.module.js +9 -0
- package/dist/bg-BG.module.js.map +1 -0
- package/dist/cs-CZ.main.js +7 -0
- package/dist/cs-CZ.main.js.map +1 -0
- package/dist/cs-CZ.mjs +9 -0
- package/dist/cs-CZ.module.js +9 -0
- package/dist/cs-CZ.module.js.map +1 -0
- package/dist/da-DK.main.js +7 -0
- package/dist/da-DK.main.js.map +1 -0
- package/dist/da-DK.mjs +9 -0
- package/dist/da-DK.module.js +9 -0
- package/dist/da-DK.module.js.map +1 -0
- package/dist/de-DE.main.js +7 -0
- package/dist/de-DE.main.js.map +1 -0
- package/dist/de-DE.mjs +9 -0
- package/dist/de-DE.module.js +9 -0
- package/dist/de-DE.module.js.map +1 -0
- package/dist/el-GR.main.js +7 -0
- package/dist/el-GR.main.js.map +1 -0
- package/dist/el-GR.mjs +9 -0
- package/dist/el-GR.module.js +9 -0
- package/dist/el-GR.module.js.map +1 -0
- package/dist/en-US.main.js +7 -0
- package/dist/en-US.main.js.map +1 -0
- package/dist/en-US.mjs +9 -0
- package/dist/en-US.module.js +9 -0
- package/dist/en-US.module.js.map +1 -0
- package/dist/es-ES.main.js +7 -0
- package/dist/es-ES.main.js.map +1 -0
- package/dist/es-ES.mjs +9 -0
- package/dist/es-ES.module.js +9 -0
- package/dist/es-ES.module.js.map +1 -0
- package/dist/et-EE.main.js +7 -0
- package/dist/et-EE.main.js.map +1 -0
- package/dist/et-EE.mjs +9 -0
- package/dist/et-EE.module.js +9 -0
- package/dist/et-EE.module.js.map +1 -0
- package/dist/fi-FI.main.js +7 -0
- package/dist/fi-FI.main.js.map +1 -0
- package/dist/fi-FI.mjs +9 -0
- package/dist/fi-FI.module.js +9 -0
- package/dist/fi-FI.module.js.map +1 -0
- package/dist/fr-FR.main.js +7 -0
- package/dist/fr-FR.main.js.map +1 -0
- package/dist/fr-FR.mjs +9 -0
- package/dist/fr-FR.module.js +9 -0
- package/dist/fr-FR.module.js.map +1 -0
- package/dist/he-IL.main.js +7 -0
- package/dist/he-IL.main.js.map +1 -0
- package/dist/he-IL.mjs +9 -0
- package/dist/he-IL.module.js +9 -0
- package/dist/he-IL.module.js.map +1 -0
- package/dist/hr-HR.main.js +7 -0
- package/dist/hr-HR.main.js.map +1 -0
- package/dist/hr-HR.mjs +9 -0
- package/dist/hr-HR.module.js +9 -0
- package/dist/hr-HR.module.js.map +1 -0
- package/dist/hu-HU.main.js +7 -0
- package/dist/hu-HU.main.js.map +1 -0
- package/dist/hu-HU.mjs +9 -0
- package/dist/hu-HU.module.js +9 -0
- package/dist/hu-HU.module.js.map +1 -0
- package/dist/import.mjs +22 -0
- package/dist/intlStrings.main.js +108 -0
- package/dist/intlStrings.main.js.map +1 -0
- package/dist/intlStrings.mjs +110 -0
- package/dist/intlStrings.module.js +110 -0
- package/dist/intlStrings.module.js.map +1 -0
- package/dist/it-IT.main.js +7 -0
- package/dist/it-IT.main.js.map +1 -0
- package/dist/it-IT.mjs +9 -0
- package/dist/it-IT.module.js +9 -0
- package/dist/it-IT.module.js.map +1 -0
- package/dist/ja-JP.main.js +7 -0
- package/dist/ja-JP.main.js.map +1 -0
- package/dist/ja-JP.mjs +9 -0
- package/dist/ja-JP.module.js +9 -0
- package/dist/ja-JP.module.js.map +1 -0
- package/dist/ko-KR.main.js +7 -0
- package/dist/ko-KR.main.js.map +1 -0
- package/dist/ko-KR.mjs +9 -0
- package/dist/ko-KR.module.js +9 -0
- package/dist/ko-KR.module.js.map +1 -0
- package/dist/lt-LT.main.js +7 -0
- package/dist/lt-LT.main.js.map +1 -0
- package/dist/lt-LT.mjs +9 -0
- package/dist/lt-LT.module.js +9 -0
- package/dist/lt-LT.module.js.map +1 -0
- package/dist/lv-LV.main.js +7 -0
- package/dist/lv-LV.main.js.map +1 -0
- package/dist/lv-LV.mjs +9 -0
- package/dist/lv-LV.module.js +9 -0
- package/dist/lv-LV.module.js.map +1 -0
- package/dist/main.js +22 -298
- package/dist/main.js.map +1 -0
- package/dist/menu_vars_css.main.js +177 -0
- package/dist/menu_vars_css.main.js.map +1 -0
- package/dist/menu_vars_css.mjs +179 -0
- package/dist/menu_vars_css.module.js +179 -0
- package/dist/menu_vars_css.module.js.map +1 -0
- package/dist/module.js +16 -250
- package/dist/module.js.map +1 -0
- package/dist/nb-NO.main.js +7 -0
- package/dist/nb-NO.main.js.map +1 -0
- package/dist/nb-NO.mjs +9 -0
- package/dist/nb-NO.module.js +9 -0
- package/dist/nb-NO.module.js.map +1 -0
- package/dist/nl-NL.main.js +7 -0
- package/dist/nl-NL.main.js.map +1 -0
- package/dist/nl-NL.mjs +9 -0
- package/dist/nl-NL.module.js +9 -0
- package/dist/nl-NL.module.js.map +1 -0
- package/dist/pl-PL.main.js +7 -0
- package/dist/pl-PL.main.js.map +1 -0
- package/dist/pl-PL.mjs +9 -0
- package/dist/pl-PL.module.js +9 -0
- package/dist/pl-PL.module.js.map +1 -0
- package/dist/pt-BR.main.js +7 -0
- package/dist/pt-BR.main.js.map +1 -0
- package/dist/pt-BR.mjs +9 -0
- package/dist/pt-BR.module.js +9 -0
- package/dist/pt-BR.module.js.map +1 -0
- package/dist/pt-PT.main.js +7 -0
- package/dist/pt-PT.main.js.map +1 -0
- package/dist/pt-PT.mjs +9 -0
- package/dist/pt-PT.module.js +9 -0
- package/dist/pt-PT.module.js.map +1 -0
- package/dist/ro-RO.main.js +7 -0
- package/dist/ro-RO.main.js.map +1 -0
- package/dist/ro-RO.mjs +9 -0
- package/dist/ro-RO.module.js +9 -0
- package/dist/ro-RO.module.js.map +1 -0
- package/dist/ru-RU.main.js +7 -0
- package/dist/ru-RU.main.js.map +1 -0
- package/dist/ru-RU.mjs +9 -0
- package/dist/ru-RU.module.js +9 -0
- package/dist/ru-RU.module.js.map +1 -0
- package/dist/sk-SK.main.js +7 -0
- package/dist/sk-SK.main.js.map +1 -0
- package/dist/sk-SK.mjs +9 -0
- package/dist/sk-SK.module.js +9 -0
- package/dist/sk-SK.module.js.map +1 -0
- package/dist/sl-SI.main.js +7 -0
- package/dist/sl-SI.main.js.map +1 -0
- package/dist/sl-SI.mjs +9 -0
- package/dist/sl-SI.module.js +9 -0
- package/dist/sl-SI.module.js.map +1 -0
- package/dist/sr-SP.main.js +7 -0
- package/dist/sr-SP.main.js.map +1 -0
- package/dist/sr-SP.mjs +9 -0
- package/dist/sr-SP.module.js +9 -0
- package/dist/sr-SP.module.js.map +1 -0
- package/dist/sv-SE.main.js +7 -0
- package/dist/sv-SE.main.js.map +1 -0
- package/dist/sv-SE.mjs +9 -0
- package/dist/sv-SE.module.js +9 -0
- package/dist/sv-SE.module.js.map +1 -0
- package/dist/tr-TR.main.js +7 -0
- package/dist/tr-TR.main.js.map +1 -0
- package/dist/tr-TR.mjs +9 -0
- package/dist/tr-TR.module.js +9 -0
- package/dist/tr-TR.module.js.map +1 -0
- package/dist/types.d.ts +35 -11
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.main.js +7 -0
- package/dist/uk-UA.main.js.map +1 -0
- package/dist/uk-UA.mjs +9 -0
- package/dist/uk-UA.module.js +9 -0
- package/dist/uk-UA.module.js.map +1 -0
- package/dist/vars.4c57e437.css +568 -0
- package/dist/vars.4c57e437.css.map +1 -0
- package/dist/zh-CN.main.js +7 -0
- package/dist/zh-CN.main.js.map +1 -0
- package/dist/zh-CN.mjs +9 -0
- package/dist/zh-CN.module.js +9 -0
- package/dist/zh-CN.module.js.map +1 -0
- package/dist/zh-TW.main.js +7 -0
- package/dist/zh-TW.main.js.map +1 -0
- package/dist/zh-TW.mjs +9 -0
- package/dist/zh-TW.module.js +9 -0
- package/dist/zh-TW.module.js.map +1 -0
- package/package.json +36 -24
- package/src/ListBox.tsx +42 -0
- package/src/ListBoxBase.tsx +183 -0
- package/src/ListBoxContext.ts +23 -0
- package/src/ListBoxLayout.ts +87 -0
- package/src/ListBoxOption.tsx +113 -0
- package/src/ListBoxSection.tsx +84 -0
- package/src/index.ts +18 -0
- package/LICENSE +0 -201
- package/dist/main.css +0 -295
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import $cuuN1$arAEmodulejs from "./ar-AE.module.js";
|
|
2
|
+
import $cuuN1$bgBGmodulejs from "./bg-BG.module.js";
|
|
3
|
+
import $cuuN1$csCZmodulejs from "./cs-CZ.module.js";
|
|
4
|
+
import $cuuN1$daDKmodulejs from "./da-DK.module.js";
|
|
5
|
+
import $cuuN1$deDEmodulejs from "./de-DE.module.js";
|
|
6
|
+
import $cuuN1$elGRmodulejs from "./el-GR.module.js";
|
|
7
|
+
import $cuuN1$enUSmodulejs from "./en-US.module.js";
|
|
8
|
+
import $cuuN1$esESmodulejs from "./es-ES.module.js";
|
|
9
|
+
import $cuuN1$etEEmodulejs from "./et-EE.module.js";
|
|
10
|
+
import $cuuN1$fiFImodulejs from "./fi-FI.module.js";
|
|
11
|
+
import $cuuN1$frFRmodulejs from "./fr-FR.module.js";
|
|
12
|
+
import $cuuN1$heILmodulejs from "./he-IL.module.js";
|
|
13
|
+
import $cuuN1$hrHRmodulejs from "./hr-HR.module.js";
|
|
14
|
+
import $cuuN1$huHUmodulejs from "./hu-HU.module.js";
|
|
15
|
+
import $cuuN1$itITmodulejs from "./it-IT.module.js";
|
|
16
|
+
import $cuuN1$jaJPmodulejs from "./ja-JP.module.js";
|
|
17
|
+
import $cuuN1$koKRmodulejs from "./ko-KR.module.js";
|
|
18
|
+
import $cuuN1$ltLTmodulejs from "./lt-LT.module.js";
|
|
19
|
+
import $cuuN1$lvLVmodulejs from "./lv-LV.module.js";
|
|
20
|
+
import $cuuN1$nbNOmodulejs from "./nb-NO.module.js";
|
|
21
|
+
import $cuuN1$nlNLmodulejs from "./nl-NL.module.js";
|
|
22
|
+
import $cuuN1$plPLmodulejs from "./pl-PL.module.js";
|
|
23
|
+
import $cuuN1$ptBRmodulejs from "./pt-BR.module.js";
|
|
24
|
+
import $cuuN1$ptPTmodulejs from "./pt-PT.module.js";
|
|
25
|
+
import $cuuN1$roROmodulejs from "./ro-RO.module.js";
|
|
26
|
+
import $cuuN1$ruRUmodulejs from "./ru-RU.module.js";
|
|
27
|
+
import $cuuN1$skSKmodulejs from "./sk-SK.module.js";
|
|
28
|
+
import $cuuN1$slSImodulejs from "./sl-SI.module.js";
|
|
29
|
+
import $cuuN1$srSPmodulejs from "./sr-SP.module.js";
|
|
30
|
+
import $cuuN1$svSEmodulejs from "./sv-SE.module.js";
|
|
31
|
+
import $cuuN1$trTRmodulejs from "./tr-TR.module.js";
|
|
32
|
+
import $cuuN1$ukUAmodulejs from "./uk-UA.module.js";
|
|
33
|
+
import $cuuN1$zhCNmodulejs from "./zh-CN.module.js";
|
|
34
|
+
import $cuuN1$zhTWmodulejs from "./zh-TW.module.js";
|
|
35
|
+
|
|
36
|
+
var $0815878b47e2c7ae$exports = {};
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
$0815878b47e2c7ae$exports = {
|
|
72
|
+
"ar-AE": $cuuN1$arAEmodulejs,
|
|
73
|
+
"bg-BG": $cuuN1$bgBGmodulejs,
|
|
74
|
+
"cs-CZ": $cuuN1$csCZmodulejs,
|
|
75
|
+
"da-DK": $cuuN1$daDKmodulejs,
|
|
76
|
+
"de-DE": $cuuN1$deDEmodulejs,
|
|
77
|
+
"el-GR": $cuuN1$elGRmodulejs,
|
|
78
|
+
"en-US": $cuuN1$enUSmodulejs,
|
|
79
|
+
"es-ES": $cuuN1$esESmodulejs,
|
|
80
|
+
"et-EE": $cuuN1$etEEmodulejs,
|
|
81
|
+
"fi-FI": $cuuN1$fiFImodulejs,
|
|
82
|
+
"fr-FR": $cuuN1$frFRmodulejs,
|
|
83
|
+
"he-IL": $cuuN1$heILmodulejs,
|
|
84
|
+
"hr-HR": $cuuN1$hrHRmodulejs,
|
|
85
|
+
"hu-HU": $cuuN1$huHUmodulejs,
|
|
86
|
+
"it-IT": $cuuN1$itITmodulejs,
|
|
87
|
+
"ja-JP": $cuuN1$jaJPmodulejs,
|
|
88
|
+
"ko-KR": $cuuN1$koKRmodulejs,
|
|
89
|
+
"lt-LT": $cuuN1$ltLTmodulejs,
|
|
90
|
+
"lv-LV": $cuuN1$lvLVmodulejs,
|
|
91
|
+
"nb-NO": $cuuN1$nbNOmodulejs,
|
|
92
|
+
"nl-NL": $cuuN1$nlNLmodulejs,
|
|
93
|
+
"pl-PL": $cuuN1$plPLmodulejs,
|
|
94
|
+
"pt-BR": $cuuN1$ptBRmodulejs,
|
|
95
|
+
"pt-PT": $cuuN1$ptPTmodulejs,
|
|
96
|
+
"ro-RO": $cuuN1$roROmodulejs,
|
|
97
|
+
"ru-RU": $cuuN1$ruRUmodulejs,
|
|
98
|
+
"sk-SK": $cuuN1$skSKmodulejs,
|
|
99
|
+
"sl-SI": $cuuN1$slSImodulejs,
|
|
100
|
+
"sr-SP": $cuuN1$srSPmodulejs,
|
|
101
|
+
"sv-SE": $cuuN1$svSEmodulejs,
|
|
102
|
+
"tr-TR": $cuuN1$trTRmodulejs,
|
|
103
|
+
"uk-UA": $cuuN1$ukUAmodulejs,
|
|
104
|
+
"zh-CN": $cuuN1$zhCNmodulejs,
|
|
105
|
+
"zh-TW": $cuuN1$zhTWmodulejs
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
export {$0815878b47e2c7ae$exports as default};
|
|
110
|
+
//# sourceMappingURL=intlStrings.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX","sources":["packages/@react-spectrum/listbox/src/*.js"],"sourcesContent":["const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}"],"names":[],"version":3,"file":"intlStrings.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,cAAc,CAAC;IAC7C,eAAe,CAAC,oBAAoB,CAAC;AACvC","sources":["packages/@react-spectrum/listbox/intl/it-IT.json"],"sourcesContent":["{\n \"loading\": \"Caricamento...\",\n \"loadingMore\": \"Caricamento altri...\"\n}\n"],"names":[],"version":3,"file":"it-IT.main.js.map"}
|
package/dist/it-IT.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,cAAc,CAAC;IAC7C,eAAe,CAAC,oBAAoB,CAAC;AACvC","sources":["packages/@react-spectrum/listbox/intl/it-IT.json"],"sourcesContent":["{\n \"loading\": \"Caricamento...\",\n \"loadingMore\": \"Caricamento altri...\"\n}\n"],"names":[],"version":3,"file":"it-IT.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,2CAAQ,CAAC;IACvC,eAAe,CAAC,mEAAW,CAAC;AAC9B","sources":["packages/@react-spectrum/listbox/intl/ja-JP.json"],"sourcesContent":["{\n \"loading\": \"読み込み中...\",\n \"loadingMore\": \"さらに読み込み中...\"\n}\n"],"names":[],"version":3,"file":"ja-JP.main.js.map"}
|
package/dist/ja-JP.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var $bc830316669a23f8$exports = {};
|
|
2
|
+
$bc830316669a23f8$exports = {
|
|
3
|
+
"loading": `\u{8AAD}\u{307F}\u{8FBC}\u{307F}\u{4E2D}...`,
|
|
4
|
+
"loadingMore": `\u{3055}\u{3089}\u{306B}\u{8AAD}\u{307F}\u{8FBC}\u{307F}\u{4E2D}...`
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export {$bc830316669a23f8$exports as default};
|
|
9
|
+
//# sourceMappingURL=ja-JP.module.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var $bc830316669a23f8$exports = {};
|
|
2
|
+
$bc830316669a23f8$exports = {
|
|
3
|
+
"loading": `\u{8AAD}\u{307F}\u{8FBC}\u{307F}\u{4E2D}...`,
|
|
4
|
+
"loadingMore": `\u{3055}\u{3089}\u{306B}\u{8AAD}\u{307F}\u{8FBC}\u{307F}\u{4E2D}...`
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export {$bc830316669a23f8$exports as default};
|
|
9
|
+
//# sourceMappingURL=ja-JP.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,2CAAQ,CAAC;IACvC,eAAe,CAAC,mEAAW,CAAC;AAC9B","sources":["packages/@react-spectrum/listbox/intl/ja-JP.json"],"sourcesContent":["{\n \"loading\": \"読み込み中...\",\n \"loadingMore\": \"さらに読み込み中...\"\n}\n"],"names":[],"version":3,"file":"ja-JP.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,iCAAK,CAAC;IACpC,eAAe,CAAC,0CAAO,CAAC;AAC1B","sources":["packages/@react-spectrum/listbox/intl/ko-KR.json"],"sourcesContent":["{\n \"loading\": \"로드 중…\",\n \"loadingMore\": \"추가 로드 중\"\n}\n"],"names":[],"version":3,"file":"ko-KR.main.js.map"}
|
package/dist/ko-KR.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var $7fa23663d4de476d$exports = {};
|
|
2
|
+
$7fa23663d4de476d$exports = {
|
|
3
|
+
"loading": `\u{B85C}\u{B4DC} \u{C911}\u{2026}`,
|
|
4
|
+
"loadingMore": `\u{CD94}\u{AC00} \u{B85C}\u{B4DC} \u{C911}`
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export {$7fa23663d4de476d$exports as default};
|
|
9
|
+
//# sourceMappingURL=ko-KR.module.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var $7fa23663d4de476d$exports = {};
|
|
2
|
+
$7fa23663d4de476d$exports = {
|
|
3
|
+
"loading": `\u{B85C}\u{B4DC} \u{C911}\u{2026}`,
|
|
4
|
+
"loadingMore": `\u{CD94}\u{AC00} \u{B85C}\u{B4DC} \u{C911}`
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export {$7fa23663d4de476d$exports as default};
|
|
9
|
+
//# sourceMappingURL=ko-KR.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,iCAAK,CAAC;IACpC,eAAe,CAAC,0CAAO,CAAC;AAC1B","sources":["packages/@react-spectrum/listbox/intl/ko-KR.json"],"sourcesContent":["{\n \"loading\": \"로드 중…\",\n \"loadingMore\": \"추가 로드 중\"\n}\n"],"names":[],"version":3,"file":"ko-KR.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,iBAAW,CAAC;IAC1C,eAAe,CAAC,yBAAmB,CAAC;AACtC","sources":["packages/@react-spectrum/listbox/intl/lt-LT.json"],"sourcesContent":["{\n \"loading\": \"Įkeliama...\",\n \"loadingMore\": \"Įkeliama daugiau...\"\n}\n"],"names":[],"version":3,"file":"lt-LT.main.js.map"}
|
package/dist/lt-LT.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,iBAAW,CAAC;IAC1C,eAAe,CAAC,yBAAmB,CAAC;AACtC","sources":["packages/@react-spectrum/listbox/intl/lt-LT.json"],"sourcesContent":["{\n \"loading\": \"Įkeliama...\",\n \"loadingMore\": \"Įkeliama daugiau...\"\n}\n"],"names":[],"version":3,"file":"lt-LT.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,sBAAgB,CAAC;IAC/C,eAAe,CAAC,sCAAoB,CAAC;AACvC","sources":["packages/@react-spectrum/listbox/intl/lv-LV.json"],"sourcesContent":["{\n \"loading\": \"Notiek ielāde...\",\n \"loadingMore\": \"Tiek ielādēts vēl...\"\n}\n"],"names":[],"version":3,"file":"lv-LV.main.js.map"}
|
package/dist/lv-LV.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var $6ca653959481d2db$exports = {};
|
|
2
|
+
$6ca653959481d2db$exports = {
|
|
3
|
+
"loading": `Notiek iel\u{101}de...`,
|
|
4
|
+
"loadingMore": `Tiek iel\u{101}d\u{113}ts v\u{113}l...`
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export {$6ca653959481d2db$exports as default};
|
|
9
|
+
//# sourceMappingURL=lv-LV.module.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var $6ca653959481d2db$exports = {};
|
|
2
|
+
$6ca653959481d2db$exports = {
|
|
3
|
+
"loading": `Notiek iel\u{101}de...`,
|
|
4
|
+
"loadingMore": `Tiek iel\u{101}d\u{113}ts v\u{113}l...`
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export {$6ca653959481d2db$exports as default};
|
|
9
|
+
//# sourceMappingURL=lv-LV.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,sBAAgB,CAAC;IAC/C,eAAe,CAAC,sCAAoB,CAAC;AACvC","sources":["packages/@react-spectrum/listbox/intl/lv-LV.json"],"sourcesContent":["{\n \"loading\": \"Notiek ielāde...\",\n \"loadingMore\": \"Tiek ielādēts vēl...\"\n}\n"],"names":[],"version":3,"file":"lv-LV.module.js.map"}
|
package/dist/main.js
CHANGED
|
@@ -1,307 +1,31 @@
|
|
|
1
|
-
require("./main.
|
|
1
|
+
var $582d86e45be55635$exports = require("./ListBox.main.js");
|
|
2
|
+
var $60eb4b34c53310cb$exports = require("./ListBoxBase.main.js");
|
|
3
|
+
var $3Fwf2$reactstatelycollections = require("@react-stately/collections");
|
|
2
4
|
|
|
3
|
-
var _temp = require("@react-stately/collections");
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var Section = _temp.Section;
|
|
8
|
-
exports.Section = Section;
|
|
9
|
-
var ListLayout = _temp.ListLayout;
|
|
10
|
-
|
|
11
|
-
var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends"));
|
|
12
|
-
|
|
13
|
-
var _babelRuntimeHelpersObjectSpread = $parcel$interopDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
14
|
-
|
|
15
|
-
var _temp2 = require("@react-spectrum/utils");
|
|
16
|
-
|
|
17
|
-
var classNames = _temp2.classNames;
|
|
18
|
-
var filterDOMProps = _temp2.filterDOMProps;
|
|
19
|
-
var useStyleProps = _temp2.useStyleProps;
|
|
20
|
-
var SlotProvider = _temp2.SlotProvider;
|
|
21
|
-
var useDOMRef = _temp2.useDOMRef;
|
|
22
|
-
|
|
23
|
-
var _temp3 = require("@react-aria/collections");
|
|
24
|
-
|
|
25
|
-
var CollectionItem = _temp3.CollectionItem;
|
|
26
|
-
var CollectionView = _temp3.CollectionView;
|
|
27
|
-
var layoutInfoToStyle = _temp3.layoutInfoToStyle;
|
|
28
|
-
var useCollectionItem = _temp3.useCollectionItem;
|
|
29
|
-
|
|
30
|
-
var _spectrumIconsUiCheckmarkMedium = $parcel$interopDefault(require("@spectrum-icons/ui/CheckmarkMedium"));
|
|
31
|
-
|
|
32
|
-
var FocusRing = require("@react-aria/focus").FocusRing;
|
|
33
|
-
|
|
34
|
-
var Grid = require("@react-spectrum/layout").Grid;
|
|
35
|
-
|
|
36
|
-
var _react2 = require("react");
|
|
37
|
-
|
|
38
|
-
var _react = $parcel$interopDefault(_react2);
|
|
39
|
-
|
|
40
|
-
var useRef = _react2.useRef;
|
|
41
|
-
var Fragment = _react2.Fragment;
|
|
42
|
-
var useMemo = _react2.useMemo;
|
|
43
|
-
|
|
44
|
-
var Text = require("@react-spectrum/typography").Text;
|
|
45
|
-
|
|
46
|
-
var _temp4 = require("@react-aria/listbox");
|
|
47
|
-
|
|
48
|
-
var useOption = _temp4.useOption;
|
|
49
|
-
var useListBoxSection = _temp4.useListBoxSection;
|
|
50
|
-
var useListBox = _temp4.useListBox;
|
|
51
|
-
|
|
52
|
-
var useSeparator = require("@react-aria/separator").useSeparator;
|
|
53
|
-
|
|
54
|
-
var mergeProps = require("@react-aria/utils").mergeProps;
|
|
55
|
-
|
|
56
|
-
var useCollator = require("@react-aria/i18n").useCollator;
|
|
57
|
-
|
|
58
|
-
var useProvider = require("@react-spectrum/provider").useProvider;
|
|
59
|
-
|
|
60
|
-
var useListState = require("@react-stately/list").useListState;
|
|
61
|
-
|
|
62
|
-
function $parcel$interopDefault(a) {
|
|
63
|
-
return a && a.__esModule ? a.default : a;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// ASSET: /Users/govett/dev/react-spectrum/node_modules/@adobe/spectrum-css-temp/components/menu/vars.css
|
|
67
|
-
var $aa85a6b2839bebf6c38950361ff9cd3$exports = {};
|
|
68
|
-
$aa85a6b2839bebf6c38950361ff9cd3$exports = {
|
|
69
|
-
"spectrum-Menu": "_spectrum-Menu_889ce",
|
|
70
|
-
"spectrum-Menu-sectionHeading": "_spectrum-Menu-sectionHeading_889ce",
|
|
71
|
-
"spectrum-Menu-checkmark": "_spectrum-Menu-checkmark_889ce",
|
|
72
|
-
"spectrum-Menu-item": "_spectrum-Menu-item_889ce",
|
|
73
|
-
"is-selected": "_is-selected_889ce",
|
|
74
|
-
"spectrum-Icon": "_spectrum-Icon_889ce",
|
|
75
|
-
"spectrum-Menu-itemLabel": "_spectrum-Menu-itemLabel_889ce",
|
|
76
|
-
"spectrum-Menu-itemIcon": "_spectrum-Menu-itemIcon_889ce",
|
|
77
|
-
"spectrum-Menu-itemLabel--wrapping": "_spectrum-Menu-itemLabel--wrapping_889ce",
|
|
78
|
-
"spectrum-Menu-divider": "_spectrum-Menu-divider_889ce",
|
|
79
|
-
"spectrum-Menu-itemGrid": "_spectrum-Menu-itemGrid_889ce",
|
|
80
|
-
"is-selectable": "_is-selectable_889ce",
|
|
81
|
-
"spectrum-Menu-end": "_spectrum-Menu-end_889ce",
|
|
82
|
-
"spectrum-Menu-icon": "_spectrum-Menu-icon_889ce",
|
|
83
|
-
"spectrum-Menu-description": "_spectrum-Menu-description_889ce",
|
|
84
|
-
"spectrum-Menu-keyboard": "_spectrum-Menu-keyboard_889ce",
|
|
85
|
-
"focus-ring": "_focus-ring_889ce",
|
|
86
|
-
"is-focused": "_is-focused_889ce",
|
|
87
|
-
"is-highlighted": "_is-highlighted_889ce",
|
|
88
|
-
"is-open": "_is-open_889ce",
|
|
89
|
-
"is-active": "_is-active_889ce",
|
|
90
|
-
"is-disabled": "_is-disabled_889ce"
|
|
91
|
-
};
|
|
92
|
-
var $aa85a6b2839bebf6c38950361ff9cd3$$interop$default = $parcel$interopDefault($aa85a6b2839bebf6c38950361ff9cd3$exports);
|
|
93
|
-
|
|
94
|
-
/** @private */
|
|
95
|
-
function $d809a9db68aba7443c3203a64c80e27c$export$ListBoxOption(props) {
|
|
96
|
-
var item = props.item,
|
|
97
|
-
state = props.state,
|
|
98
|
-
shouldSelectOnPressUp = props.shouldSelectOnPressUp,
|
|
99
|
-
shouldFocusOnHover = props.shouldFocusOnHover;
|
|
100
|
-
var rendered = item.rendered,
|
|
101
|
-
isSelected = item.isSelected,
|
|
102
|
-
isDisabled = item.isDisabled,
|
|
103
|
-
key = item.key;
|
|
104
|
-
var ref = useRef();
|
|
105
|
-
|
|
106
|
-
var _useOption = useOption({
|
|
107
|
-
isSelected: isSelected,
|
|
108
|
-
isDisabled: isDisabled,
|
|
109
|
-
'aria-label': item['aria-label'],
|
|
110
|
-
key: key,
|
|
111
|
-
ref: ref,
|
|
112
|
-
shouldSelectOnPressUp: shouldSelectOnPressUp,
|
|
113
|
-
shouldFocusOnHover: shouldFocusOnHover,
|
|
114
|
-
isVirtualized: true
|
|
115
|
-
}, state),
|
|
116
|
-
optionProps = _useOption.optionProps,
|
|
117
|
-
labelProps = _useOption.labelProps,
|
|
118
|
-
descriptionProps = _useOption.descriptionProps;
|
|
119
|
-
|
|
120
|
-
var contents = typeof rendered === 'string' ? /*#__PURE__*/_react.createElement(Text, null, rendered) : rendered;
|
|
121
|
-
return (/*#__PURE__*/_react.createElement(FocusRing, {
|
|
122
|
-
focusRingClass: classNames($aa85a6b2839bebf6c38950361ff9cd3$$interop$default, 'focus-ring')
|
|
123
|
-
}, /*#__PURE__*/_react.createElement("div", _babelRuntimeHelpersExtends({}, optionProps, {
|
|
124
|
-
ref: ref,
|
|
125
|
-
className: classNames($aa85a6b2839bebf6c38950361ff9cd3$$interop$default, 'spectrum-Menu-item', {
|
|
126
|
-
'is-disabled': isDisabled,
|
|
127
|
-
'is-selected': isSelected,
|
|
128
|
-
'is-selectable': state.selectionManager.selectionMode !== 'none'
|
|
129
|
-
})
|
|
130
|
-
}), /*#__PURE__*/_react.createElement(Grid, {
|
|
131
|
-
UNSAFE_className: classNames($aa85a6b2839bebf6c38950361ff9cd3$$interop$default, 'spectrum-Menu-itemGrid')
|
|
132
|
-
}, /*#__PURE__*/_react.createElement(SlotProvider, {
|
|
133
|
-
slots: {
|
|
134
|
-
text: _babelRuntimeHelpersObjectSpread({
|
|
135
|
-
UNSAFE_className: $aa85a6b2839bebf6c38950361ff9cd3$$interop$default['spectrum-Menu-itemLabel']
|
|
136
|
-
}, labelProps),
|
|
137
|
-
icon: {
|
|
138
|
-
UNSAFE_className: $aa85a6b2839bebf6c38950361ff9cd3$$interop$default['spectrum-Menu-icon']
|
|
139
|
-
},
|
|
140
|
-
description: _babelRuntimeHelpersObjectSpread({
|
|
141
|
-
UNSAFE_className: $aa85a6b2839bebf6c38950361ff9cd3$$interop$default['spectrum-Menu-description']
|
|
142
|
-
}, descriptionProps)
|
|
143
|
-
}
|
|
144
|
-
}, contents, isSelected && /*#__PURE__*/_react.createElement(_spectrumIconsUiCheckmarkMedium, {
|
|
145
|
-
slot: "checkmark",
|
|
146
|
-
UNSAFE_className: classNames($aa85a6b2839bebf6c38950361ff9cd3$$interop$default, 'spectrum-Menu-checkmark')
|
|
147
|
-
})))))
|
|
148
|
-
);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/** @private */
|
|
152
|
-
function $e166372e740b512623238cd2bad60e52$export$ListBoxSection(props) {
|
|
153
|
-
var state = props.state,
|
|
154
|
-
children = props.children,
|
|
155
|
-
reusableView = props.reusableView,
|
|
156
|
-
header = props.header;
|
|
157
|
-
var item = reusableView.content;
|
|
158
|
-
|
|
159
|
-
var _useListBoxSection = useListBoxSection({
|
|
160
|
-
heading: item.rendered,
|
|
161
|
-
'aria-label': item['aria-label']
|
|
162
|
-
}),
|
|
163
|
-
headingProps = _useListBoxSection.headingProps,
|
|
164
|
-
groupProps = _useListBoxSection.groupProps;
|
|
165
|
-
|
|
166
|
-
var _useSeparator = useSeparator({
|
|
167
|
-
elementType: 'li'
|
|
168
|
-
}),
|
|
169
|
-
separatorProps = _useSeparator.separatorProps;
|
|
170
|
-
|
|
171
|
-
var headerRef = useRef();
|
|
172
|
-
useCollectionItem({
|
|
173
|
-
reusableView: header,
|
|
174
|
-
ref: headerRef
|
|
175
|
-
});
|
|
176
|
-
return (/*#__PURE__*/_react.createElement(Fragment, null, /*#__PURE__*/_react.createElement("div", {
|
|
177
|
-
role: "presentation",
|
|
178
|
-
ref: headerRef,
|
|
179
|
-
style: layoutInfoToStyle(header.layoutInfo)
|
|
180
|
-
}, item.key !== state.collection.getFirstKey() && /*#__PURE__*/_react.createElement("div", _babelRuntimeHelpersExtends({}, separatorProps, {
|
|
181
|
-
className: classNames($aa85a6b2839bebf6c38950361ff9cd3$$interop$default, 'spectrum-Menu-divider')
|
|
182
|
-
})), item.rendered && /*#__PURE__*/_react.createElement("div", _babelRuntimeHelpersExtends({}, headingProps, {
|
|
183
|
-
className: classNames($aa85a6b2839bebf6c38950361ff9cd3$$interop$default, 'spectrum-Menu-sectionHeading')
|
|
184
|
-
}), item.rendered)), /*#__PURE__*/_react.createElement("div", _babelRuntimeHelpersExtends({}, groupProps, {
|
|
185
|
-
style: layoutInfoToStyle(reusableView.layoutInfo),
|
|
186
|
-
className: classNames($aa85a6b2839bebf6c38950361ff9cd3$$interop$default, 'spectrum-Menu')
|
|
187
|
-
}), children))
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/** @private */
|
|
192
|
-
function useListBoxLayout(state) {
|
|
193
|
-
var _useProvider = useProvider(),
|
|
194
|
-
scale = _useProvider.scale;
|
|
195
|
-
|
|
196
|
-
var collator = useCollator({
|
|
197
|
-
usage: 'search',
|
|
198
|
-
sensitivity: 'base'
|
|
199
|
-
});
|
|
200
|
-
var layout = useMemo(function () {
|
|
201
|
-
return new ListLayout({
|
|
202
|
-
estimatedRowHeight: scale === 'large' ? 48 : 35,
|
|
203
|
-
estimatedHeadingHeight: scale === 'large' ? 37 : 30,
|
|
204
|
-
padding: scale === 'large' ? 5 : 4,
|
|
205
|
-
// TODO: get from DNA
|
|
206
|
-
collator: collator
|
|
207
|
-
});
|
|
208
|
-
}, [collator, scale]);
|
|
209
|
-
layout.collection = state.collection;
|
|
210
|
-
return layout;
|
|
6
|
+
function $parcel$export(e, n, v, s) {
|
|
7
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
211
8
|
}
|
|
212
|
-
/** @private */
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
exports.useListBoxLayout = useListBoxLayout;
|
|
216
|
-
|
|
217
|
-
function $d83f6b02ce5cc745c8b33666b981890$var$ListBoxBase(props, ref) {
|
|
218
|
-
var layout = props.layout,
|
|
219
|
-
state = props.state,
|
|
220
|
-
shouldSelectOnPressUp = props.shouldSelectOnPressUp,
|
|
221
|
-
focusOnPointerEnter = props.focusOnPointerEnter,
|
|
222
|
-
_props$domProps = props.domProps,
|
|
223
|
-
domProps = _props$domProps === void 0 ? {} : _props$domProps;
|
|
224
|
-
|
|
225
|
-
var _useListBox = useListBox(_babelRuntimeHelpersObjectSpread({}, props, {}, domProps, {
|
|
226
|
-
ref: ref,
|
|
227
|
-
keyboardDelegate: layout,
|
|
228
|
-
isVirtualized: true
|
|
229
|
-
}), state),
|
|
230
|
-
listBoxProps = _useListBox.listBoxProps;
|
|
231
|
-
|
|
232
|
-
var _useStyleProps = useStyleProps(props),
|
|
233
|
-
styleProps = _useStyleProps.styleProps; // This overrides collection view's renderWrapper to support heirarchy of items in sections.
|
|
234
|
-
// The header is extracted from the children so it can receive ARIA labeling properties.
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
var renderWrapper = function renderWrapper(parent, reusableView, children, renderChildren) {
|
|
238
|
-
if (reusableView.viewType === 'section') {
|
|
239
|
-
return (/*#__PURE__*/_react.createElement($e166372e740b512623238cd2bad60e52$export$ListBoxSection, {
|
|
240
|
-
key: reusableView.key,
|
|
241
|
-
state: state,
|
|
242
|
-
reusableView: reusableView,
|
|
243
|
-
header: children.find(function (c) {
|
|
244
|
-
return c.viewType === 'header';
|
|
245
|
-
})
|
|
246
|
-
}, renderChildren(children.filter(function (c) {
|
|
247
|
-
return c.viewType === 'item';
|
|
248
|
-
})))
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
return (/*#__PURE__*/_react.createElement(CollectionItem, {
|
|
253
|
-
key: reusableView.key,
|
|
254
|
-
reusableView: reusableView,
|
|
255
|
-
parent: parent
|
|
256
|
-
})
|
|
257
|
-
);
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
return (/*#__PURE__*/_react.createElement(CollectionView, _babelRuntimeHelpersExtends({}, filterDOMProps(props), styleProps, mergeProps(listBoxProps, domProps), {
|
|
261
|
-
ref: ref,
|
|
262
|
-
focusedKey: state.selectionManager.focusedKey,
|
|
263
|
-
sizeToFit: "height",
|
|
264
|
-
scrollDirection: "vertical",
|
|
265
|
-
className: classNames($aa85a6b2839bebf6c38950361ff9cd3$$interop$default, 'spectrum-Menu', styleProps.className),
|
|
266
|
-
layout: layout,
|
|
267
|
-
collection: state.collection,
|
|
268
|
-
renderWrapper: renderWrapper
|
|
269
|
-
}), function (type, item) {
|
|
270
|
-
if (type === 'item') {
|
|
271
|
-
return (/*#__PURE__*/_react.createElement($d809a9db68aba7443c3203a64c80e27c$export$ListBoxOption, {
|
|
272
|
-
item: item,
|
|
273
|
-
state: state,
|
|
274
|
-
shouldSelectOnPressUp: shouldSelectOnPressUp,
|
|
275
|
-
shouldFocusOnHover: focusOnPointerEnter
|
|
276
|
-
})
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
})
|
|
280
|
-
);
|
|
281
|
-
} // forwardRef doesn't support generic parameters, so cast the result to the correct type
|
|
282
|
-
// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref
|
|
283
|
-
|
|
284
9
|
|
|
285
|
-
|
|
10
|
+
$parcel$export(module.exports, "ListBox", () => $582d86e45be55635$exports.ListBox);
|
|
11
|
+
$parcel$export(module.exports, "useListBoxLayout", () => $60eb4b34c53310cb$exports.useListBoxLayout);
|
|
12
|
+
$parcel$export(module.exports, "ListBoxBase", () => $60eb4b34c53310cb$exports.ListBoxBase);
|
|
13
|
+
$parcel$export(module.exports, "Item", () => $3Fwf2$reactstatelycollections.Item);
|
|
14
|
+
$parcel$export(module.exports, "Section", () => $3Fwf2$reactstatelycollections.Section);
|
|
15
|
+
/*
|
|
16
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
17
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
18
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
19
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
+
*
|
|
21
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
22
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
23
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
24
|
+
* governing permissions and limitations under the License.
|
|
25
|
+
*/ /// <reference types="css-module-types" />
|
|
286
26
|
|
|
287
|
-
exports.ListBoxBase = ListBoxBase;
|
|
288
27
|
|
|
289
|
-
function $df8846aaed82d60bd7b6cc3582ea70$var$ListBox(props, ref) {
|
|
290
|
-
var state = useListState(_babelRuntimeHelpersObjectSpread({}, props, {
|
|
291
|
-
selectionMode: props.selectionMode || 'single'
|
|
292
|
-
}));
|
|
293
|
-
var layout = useListBoxLayout(state);
|
|
294
|
-
var domRef = useDOMRef(ref);
|
|
295
|
-
return (/*#__PURE__*/_react.createElement(ListBoxBase, _babelRuntimeHelpersExtends({}, props, {
|
|
296
|
-
ref: domRef,
|
|
297
|
-
state: state,
|
|
298
|
-
layout: layout
|
|
299
|
-
}))
|
|
300
|
-
);
|
|
301
|
-
} // forwardRef doesn't support generic parameters, so cast the result to the correct type
|
|
302
|
-
// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref
|
|
303
28
|
|
|
304
29
|
|
|
305
|
-
var ListBox = _react.forwardRef($df8846aaed82d60bd7b6cc3582ea70$var$ListBox);
|
|
306
30
|
|
|
307
|
-
|
|
31
|
+
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/listbox/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {ListBox} from './ListBox';\nexport {useListBoxLayout, ListBoxBase} from './ListBoxBase';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumListBoxProps} from '@react-types/listbox';\n"],"names":[],"version":3,"file":"main.js.map"}
|