@react-aria/tree 3.0.0-nightly.2855 → 3.0.0-nightly.2870

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.
Files changed (184) hide show
  1. package/dist/ar-AE.main.js +7 -0
  2. package/dist/ar-AE.main.js.map +1 -0
  3. package/dist/ar-AE.mjs +9 -0
  4. package/dist/ar-AE.module.js +9 -0
  5. package/dist/ar-AE.module.js.map +1 -0
  6. package/dist/bg-BG.main.js +7 -0
  7. package/dist/bg-BG.main.js.map +1 -0
  8. package/dist/bg-BG.mjs +9 -0
  9. package/dist/bg-BG.module.js +9 -0
  10. package/dist/bg-BG.module.js.map +1 -0
  11. package/dist/cs-CZ.main.js +7 -0
  12. package/dist/cs-CZ.main.js.map +1 -0
  13. package/dist/cs-CZ.mjs +9 -0
  14. package/dist/cs-CZ.module.js +9 -0
  15. package/dist/cs-CZ.module.js.map +1 -0
  16. package/dist/da-DK.main.js +7 -0
  17. package/dist/da-DK.main.js.map +1 -0
  18. package/dist/da-DK.mjs +9 -0
  19. package/dist/da-DK.module.js +9 -0
  20. package/dist/da-DK.module.js.map +1 -0
  21. package/dist/de-DE.main.js +7 -0
  22. package/dist/de-DE.main.js.map +1 -0
  23. package/dist/de-DE.mjs +9 -0
  24. package/dist/de-DE.module.js +9 -0
  25. package/dist/de-DE.module.js.map +1 -0
  26. package/dist/el-GR.main.js +7 -0
  27. package/dist/el-GR.main.js.map +1 -0
  28. package/dist/el-GR.mjs +9 -0
  29. package/dist/el-GR.module.js +9 -0
  30. package/dist/el-GR.module.js.map +1 -0
  31. package/dist/en-US.main.js +7 -0
  32. package/dist/en-US.main.js.map +1 -0
  33. package/dist/en-US.mjs +9 -0
  34. package/dist/en-US.module.js +9 -0
  35. package/dist/en-US.module.js.map +1 -0
  36. package/dist/es-ES.main.js +7 -0
  37. package/dist/es-ES.main.js.map +1 -0
  38. package/dist/es-ES.mjs +9 -0
  39. package/dist/es-ES.module.js +9 -0
  40. package/dist/es-ES.module.js.map +1 -0
  41. package/dist/et-EE.main.js +7 -0
  42. package/dist/et-EE.main.js.map +1 -0
  43. package/dist/et-EE.mjs +9 -0
  44. package/dist/et-EE.module.js +9 -0
  45. package/dist/et-EE.module.js.map +1 -0
  46. package/dist/fi-FI.main.js +7 -0
  47. package/dist/fi-FI.main.js.map +1 -0
  48. package/dist/fi-FI.mjs +9 -0
  49. package/dist/fi-FI.module.js +9 -0
  50. package/dist/fi-FI.module.js.map +1 -0
  51. package/dist/fr-FR.main.js +7 -0
  52. package/dist/fr-FR.main.js.map +1 -0
  53. package/dist/fr-FR.mjs +9 -0
  54. package/dist/fr-FR.module.js +9 -0
  55. package/dist/fr-FR.module.js.map +1 -0
  56. package/dist/he-IL.main.js +7 -0
  57. package/dist/he-IL.main.js.map +1 -0
  58. package/dist/he-IL.mjs +9 -0
  59. package/dist/he-IL.module.js +9 -0
  60. package/dist/he-IL.module.js.map +1 -0
  61. package/dist/hr-HR.main.js +7 -0
  62. package/dist/hr-HR.main.js.map +1 -0
  63. package/dist/hr-HR.mjs +9 -0
  64. package/dist/hr-HR.module.js +9 -0
  65. package/dist/hr-HR.module.js.map +1 -0
  66. package/dist/hu-HU.main.js +7 -0
  67. package/dist/hu-HU.main.js.map +1 -0
  68. package/dist/hu-HU.mjs +9 -0
  69. package/dist/hu-HU.module.js +9 -0
  70. package/dist/hu-HU.module.js.map +1 -0
  71. package/dist/intlStrings.main.js +108 -0
  72. package/dist/intlStrings.main.js.map +1 -0
  73. package/dist/intlStrings.mjs +110 -0
  74. package/dist/intlStrings.module.js +110 -0
  75. package/dist/intlStrings.module.js.map +1 -0
  76. package/dist/it-IT.main.js +7 -0
  77. package/dist/it-IT.main.js.map +1 -0
  78. package/dist/it-IT.mjs +9 -0
  79. package/dist/it-IT.module.js +9 -0
  80. package/dist/it-IT.module.js.map +1 -0
  81. package/dist/ja-JP.main.js +7 -0
  82. package/dist/ja-JP.main.js.map +1 -0
  83. package/dist/ja-JP.mjs +9 -0
  84. package/dist/ja-JP.module.js +9 -0
  85. package/dist/ja-JP.module.js.map +1 -0
  86. package/dist/ko-KR.main.js +7 -0
  87. package/dist/ko-KR.main.js.map +1 -0
  88. package/dist/ko-KR.mjs +9 -0
  89. package/dist/ko-KR.module.js +9 -0
  90. package/dist/ko-KR.module.js.map +1 -0
  91. package/dist/lt-LT.main.js +7 -0
  92. package/dist/lt-LT.main.js.map +1 -0
  93. package/dist/lt-LT.mjs +9 -0
  94. package/dist/lt-LT.module.js +9 -0
  95. package/dist/lt-LT.module.js.map +1 -0
  96. package/dist/lv-LV.main.js +7 -0
  97. package/dist/lv-LV.main.js.map +1 -0
  98. package/dist/lv-LV.mjs +9 -0
  99. package/dist/lv-LV.module.js +9 -0
  100. package/dist/lv-LV.module.js.map +1 -0
  101. package/dist/nb-NO.main.js +7 -0
  102. package/dist/nb-NO.main.js.map +1 -0
  103. package/dist/nb-NO.mjs +9 -0
  104. package/dist/nb-NO.module.js +9 -0
  105. package/dist/nb-NO.module.js.map +1 -0
  106. package/dist/nl-NL.main.js +7 -0
  107. package/dist/nl-NL.main.js.map +1 -0
  108. package/dist/nl-NL.mjs +9 -0
  109. package/dist/nl-NL.module.js +9 -0
  110. package/dist/nl-NL.module.js.map +1 -0
  111. package/dist/pl-PL.main.js +7 -0
  112. package/dist/pl-PL.main.js.map +1 -0
  113. package/dist/pl-PL.mjs +9 -0
  114. package/dist/pl-PL.module.js +9 -0
  115. package/dist/pl-PL.module.js.map +1 -0
  116. package/dist/pt-BR.main.js +7 -0
  117. package/dist/pt-BR.main.js.map +1 -0
  118. package/dist/pt-BR.mjs +9 -0
  119. package/dist/pt-BR.module.js +9 -0
  120. package/dist/pt-BR.module.js.map +1 -0
  121. package/dist/pt-PT.main.js +7 -0
  122. package/dist/pt-PT.main.js.map +1 -0
  123. package/dist/pt-PT.mjs +9 -0
  124. package/dist/pt-PT.module.js +9 -0
  125. package/dist/pt-PT.module.js.map +1 -0
  126. package/dist/ro-RO.main.js +7 -0
  127. package/dist/ro-RO.main.js.map +1 -0
  128. package/dist/ro-RO.mjs +9 -0
  129. package/dist/ro-RO.module.js +9 -0
  130. package/dist/ro-RO.module.js.map +1 -0
  131. package/dist/ru-RU.main.js +7 -0
  132. package/dist/ru-RU.main.js.map +1 -0
  133. package/dist/ru-RU.mjs +9 -0
  134. package/dist/ru-RU.module.js +9 -0
  135. package/dist/ru-RU.module.js.map +1 -0
  136. package/dist/sk-SK.main.js +7 -0
  137. package/dist/sk-SK.main.js.map +1 -0
  138. package/dist/sk-SK.mjs +9 -0
  139. package/dist/sk-SK.module.js +9 -0
  140. package/dist/sk-SK.module.js.map +1 -0
  141. package/dist/sl-SI.main.js +7 -0
  142. package/dist/sl-SI.main.js.map +1 -0
  143. package/dist/sl-SI.mjs +9 -0
  144. package/dist/sl-SI.module.js +9 -0
  145. package/dist/sl-SI.module.js.map +1 -0
  146. package/dist/sr-SP.main.js +7 -0
  147. package/dist/sr-SP.main.js.map +1 -0
  148. package/dist/sr-SP.mjs +9 -0
  149. package/dist/sr-SP.module.js +9 -0
  150. package/dist/sr-SP.module.js.map +1 -0
  151. package/dist/sv-SE.main.js +7 -0
  152. package/dist/sv-SE.main.js.map +1 -0
  153. package/dist/sv-SE.mjs +9 -0
  154. package/dist/sv-SE.module.js +9 -0
  155. package/dist/sv-SE.module.js.map +1 -0
  156. package/dist/tr-TR.main.js +7 -0
  157. package/dist/tr-TR.main.js.map +1 -0
  158. package/dist/tr-TR.mjs +9 -0
  159. package/dist/tr-TR.module.js +9 -0
  160. package/dist/tr-TR.module.js.map +1 -0
  161. package/dist/types.d.ts +4 -1
  162. package/dist/types.d.ts.map +1 -1
  163. package/dist/uk-UA.main.js +7 -0
  164. package/dist/uk-UA.main.js.map +1 -0
  165. package/dist/uk-UA.mjs +9 -0
  166. package/dist/uk-UA.module.js +9 -0
  167. package/dist/uk-UA.module.js.map +1 -0
  168. package/dist/useTreeGridListItem.main.js +30 -1
  169. package/dist/useTreeGridListItem.main.js.map +1 -1
  170. package/dist/useTreeGridListItem.mjs +30 -1
  171. package/dist/useTreeGridListItem.module.js +30 -1
  172. package/dist/useTreeGridListItem.module.js.map +1 -1
  173. package/dist/zh-CN.main.js +7 -0
  174. package/dist/zh-CN.main.js.map +1 -0
  175. package/dist/zh-CN.mjs +9 -0
  176. package/dist/zh-CN.module.js +9 -0
  177. package/dist/zh-CN.module.js.map +1 -0
  178. package/dist/zh-TW.main.js +7 -0
  179. package/dist/zh-TW.main.js.map +1 -0
  180. package/dist/zh-TW.mjs +9 -0
  181. package/dist/zh-TW.module.js +9 -0
  182. package/dist/zh-TW.module.js.map +1 -0
  183. package/package.json +9 -6
  184. package/src/useTreeGridListItem.ts +32 -4
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/pl-PL.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"pl-PL.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "expand": `Expand`,
3
+ "collapse": `Collapse`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=pt-BR.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/pt-BR.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"pt-BR.main.js.map"}
package/dist/pt-BR.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $3d11d74855233b86$exports = {};
2
+ $3d11d74855233b86$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$3d11d74855233b86$exports as default};
9
+ //# sourceMappingURL=pt-BR.mjs.map
@@ -0,0 +1,9 @@
1
+ var $3d11d74855233b86$exports = {};
2
+ $3d11d74855233b86$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$3d11d74855233b86$exports as default};
9
+ //# sourceMappingURL=pt-BR.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/pt-BR.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"pt-BR.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "expand": `Expand`,
3
+ "collapse": `Collapse`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=pt-PT.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/pt-PT.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"pt-PT.main.js.map"}
package/dist/pt-PT.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $b7a0e914f2f1fc45$exports = {};
2
+ $b7a0e914f2f1fc45$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$b7a0e914f2f1fc45$exports as default};
9
+ //# sourceMappingURL=pt-PT.mjs.map
@@ -0,0 +1,9 @@
1
+ var $b7a0e914f2f1fc45$exports = {};
2
+ $b7a0e914f2f1fc45$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$b7a0e914f2f1fc45$exports as default};
9
+ //# sourceMappingURL=pt-PT.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/pt-PT.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"pt-PT.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "expand": `Expand`,
3
+ "collapse": `Collapse`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=ro-RO.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/ro-RO.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"ro-RO.main.js.map"}
package/dist/ro-RO.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $e83474afc7c44eea$exports = {};
2
+ $e83474afc7c44eea$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$e83474afc7c44eea$exports as default};
9
+ //# sourceMappingURL=ro-RO.mjs.map
@@ -0,0 +1,9 @@
1
+ var $e83474afc7c44eea$exports = {};
2
+ $e83474afc7c44eea$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$e83474afc7c44eea$exports as default};
9
+ //# sourceMappingURL=ro-RO.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/ro-RO.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"ro-RO.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "expand": `Expand`,
3
+ "collapse": `Collapse`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=ru-RU.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/ru-RU.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"ru-RU.main.js.map"}
package/dist/ru-RU.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $2db6648255dd48ea$exports = {};
2
+ $2db6648255dd48ea$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$2db6648255dd48ea$exports as default};
9
+ //# sourceMappingURL=ru-RU.mjs.map
@@ -0,0 +1,9 @@
1
+ var $2db6648255dd48ea$exports = {};
2
+ $2db6648255dd48ea$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$2db6648255dd48ea$exports as default};
9
+ //# sourceMappingURL=ru-RU.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/ru-RU.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"ru-RU.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "expand": `Expand`,
3
+ "collapse": `Collapse`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=sk-SK.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/sk-SK.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"sk-SK.main.js.map"}
package/dist/sk-SK.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $e01b4013a471f6b5$exports = {};
2
+ $e01b4013a471f6b5$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$e01b4013a471f6b5$exports as default};
9
+ //# sourceMappingURL=sk-SK.mjs.map
@@ -0,0 +1,9 @@
1
+ var $e01b4013a471f6b5$exports = {};
2
+ $e01b4013a471f6b5$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$e01b4013a471f6b5$exports as default};
9
+ //# sourceMappingURL=sk-SK.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/sk-SK.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"sk-SK.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "expand": `Expand`,
3
+ "collapse": `Collapse`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=sl-SI.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/sl-SI.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"sl-SI.main.js.map"}
package/dist/sl-SI.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $f906d8c9d57a8ac7$exports = {};
2
+ $f906d8c9d57a8ac7$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$f906d8c9d57a8ac7$exports as default};
9
+ //# sourceMappingURL=sl-SI.mjs.map
@@ -0,0 +1,9 @@
1
+ var $f906d8c9d57a8ac7$exports = {};
2
+ $f906d8c9d57a8ac7$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$f906d8c9d57a8ac7$exports as default};
9
+ //# sourceMappingURL=sl-SI.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/sl-SI.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"sl-SI.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "expand": `Expand`,
3
+ "collapse": `Collapse`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=sr-SP.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/sr-SP.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"sr-SP.main.js.map"}
package/dist/sr-SP.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $bfa21259fd564cea$exports = {};
2
+ $bfa21259fd564cea$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$bfa21259fd564cea$exports as default};
9
+ //# sourceMappingURL=sr-SP.mjs.map
@@ -0,0 +1,9 @@
1
+ var $bfa21259fd564cea$exports = {};
2
+ $bfa21259fd564cea$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$bfa21259fd564cea$exports as default};
9
+ //# sourceMappingURL=sr-SP.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/sr-SP.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"sr-SP.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "expand": `Expand`,
3
+ "collapse": `Collapse`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=sv-SE.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/sv-SE.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"sv-SE.main.js.map"}
package/dist/sv-SE.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $0ed2db6e68f48ea3$exports = {};
2
+ $0ed2db6e68f48ea3$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$0ed2db6e68f48ea3$exports as default};
9
+ //# sourceMappingURL=sv-SE.mjs.map
@@ -0,0 +1,9 @@
1
+ var $0ed2db6e68f48ea3$exports = {};
2
+ $0ed2db6e68f48ea3$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$0ed2db6e68f48ea3$exports as default};
9
+ //# sourceMappingURL=sv-SE.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/sv-SE.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"sv-SE.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "expand": `Expand`,
3
+ "collapse": `Collapse`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=tr-TR.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/tr-TR.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"tr-TR.main.js.map"}
package/dist/tr-TR.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $384a15a899b42310$exports = {};
2
+ $384a15a899b42310$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$384a15a899b42310$exports as default};
9
+ //# sourceMappingURL=tr-TR.mjs.map
@@ -0,0 +1,9 @@
1
+ var $384a15a899b42310$exports = {};
2
+ $384a15a899b42310$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$384a15a899b42310$exports as default};
9
+ //# sourceMappingURL=tr-TR.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/tr-TR.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"tr-TR.module.js.map"}
package/dist/types.d.ts CHANGED
@@ -2,6 +2,7 @@ import { AriaGridListOptions, AriaGridListProps, GridListProps, AriaGridListItem
2
2
  import { DOMAttributes, KeyboardDelegate, FocusableElement, Node } from "@react-types/shared";
3
3
  import { RefObject } from "react";
4
4
  import { TreeState } from "@react-stately/tree";
5
+ import { AriaButtonProps } from "@react-types/button";
5
6
  export function useTree(): {};
6
7
  export interface TreeGridListProps<T> extends GridListProps<T> {
7
8
  }
@@ -35,8 +36,10 @@ export interface TreeGridListItemAria extends GridListItemAria {
35
36
  rowProps: DOMAttributes;
36
37
  /** Props for the tree grid cell element within the tree grid list row. */
37
38
  gridCellProps: DOMAttributes;
38
- /** Props for the list item description element, if any. */
39
+ /** Props for the tree grid row description element, if any. */
39
40
  descriptionProps: DOMAttributes;
41
+ /** Props for the tree grid row expand button. */
42
+ expandButtonProps: AriaButtonProps;
40
43
  }
41
44
  /**
42
45
  * Provides the behavior and accessibility implementation for a row in a tree grid list.
@@ -1 +1 @@
1
- {"mappings":";;;;AAYA,8BAEC;ACMD,mCAAmC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC;CAAG;AAEjE,uCAAuC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC;CAAG;AACzE,yCAAyC,CAAC,CAAE,SAAQ,IAAI,CAAC,oBAAoB,CAAC,CAAC,EAAE,UAAU,GAAG,eAAe,GAAG,iBAAiB,CAAC;IAChI;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;CACpC;AAED;IACE,sCAAsC;IACtC,SAAS,EAAE,aAAa,CAAA;CACzB;AAED;;;;;;GAMG;AACH,gCAAgC,CAAC,EAAE,KAAK,EAAE,wBAAwB,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,WAAW,CAAC,GAAG,gBAAgB,CAOxI;ACjCD,4CAA6C,SAAQ,IAAI,CAAC,uBAAuB,EAAE,eAAe,CAAC;IACjG,sHAAsH;IACtH,IAAI,EAAE,KAAK,OAAO,CAAC,CAAA;CACpB;AAED,qCAAsC,SAAQ,gBAAgB;IAC5D,2CAA2C;IAC3C,QAAQ,EAAE,aAAa,CAAC;IACxB,0EAA0E;IAC1E,aAAa,EAAE,aAAa,CAAC;IAC7B,2DAA2D;IAC3D,gBAAgB,EAAE,aAAa,CAAA;CAChC;AAED;;;;;GAKG;AACH,oCAAoC,CAAC,EAAE,KAAK,EAAE,2BAA2B,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,gBAAgB,CAAC,GAAG,oBAAoB,CAGtJ","sources":["packages/@react-aria/tree/src/packages/@react-aria/tree/src/useTree.ts","packages/@react-aria/tree/src/packages/@react-aria/tree/src/useTreeGridList.ts","packages/@react-aria/tree/src/packages/@react-aria/tree/src/useTreeGridListItem.ts","packages/@react-aria/tree/src/packages/@react-aria/tree/src/index.ts","packages/@react-aria/tree/src/index.ts"],"sourcesContent":[null,null,null,null,"/*\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\nexport {useTree} from './useTree';\nexport {useTreeGridList} from './useTreeGridList';\nexport {useTreeGridListItem} from './useTreeGridListItem';\n\nexport type {AriaTreeGridListOptions, AriaTreeGridListProps, TreeGridListAria, TreeGridListProps} from './useTreeGridList';\nexport type {AriaTreeGridListItemOptions, TreeGridListItemAria} from './useTreeGridListItem';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;;;AAYA,8BAEC;ACMD,mCAAmC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC;CAAG;AAEjE,uCAAuC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC;CAAG;AACzE,yCAAyC,CAAC,CAAE,SAAQ,IAAI,CAAC,oBAAoB,CAAC,CAAC,EAAE,UAAU,GAAG,eAAe,GAAG,iBAAiB,CAAC;IAChI;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;CACpC;AAED;IACE,sCAAsC;IACtC,SAAS,EAAE,aAAa,CAAA;CACzB;AAED;;;;;;GAMG;AACH,gCAAgC,CAAC,EAAE,KAAK,EAAE,wBAAwB,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,WAAW,CAAC,GAAG,gBAAgB,CAOxI;AC5BD,4CAA6C,SAAQ,IAAI,CAAC,uBAAuB,EAAE,eAAe,CAAC;IACjG,sHAAsH;IACtH,IAAI,EAAE,KAAK,OAAO,CAAC,CAAA;CACpB;AAED,qCAAsC,SAAQ,gBAAgB;IAC5D,2CAA2C;IAC3C,QAAQ,EAAE,aAAa,CAAC;IACxB,0EAA0E;IAC1E,aAAa,EAAE,aAAa,CAAC;IAC7B,+DAA+D;IAC/D,gBAAgB,EAAE,aAAa,CAAC;IAChC,iDAAiD;IACjD,iBAAiB,EAAE,eAAe,CAAA;CACnC;AAED;;;;;GAKG;AACH,oCAAoC,CAAC,EAAE,KAAK,EAAE,2BAA2B,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,gBAAgB,CAAC,GAAG,oBAAoB,CAwBtJ","sources":["packages/@react-aria/tree/src/packages/@react-aria/tree/src/useTree.ts","packages/@react-aria/tree/src/packages/@react-aria/tree/src/useTreeGridList.ts","packages/@react-aria/tree/src/packages/@react-aria/tree/src/useTreeGridListItem.ts","packages/@react-aria/tree/src/packages/@react-aria/tree/src/index.ts","packages/@react-aria/tree/src/index.ts"],"sourcesContent":[null,null,null,null,"/*\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\nexport {useTree} from './useTree';\nexport {useTreeGridList} from './useTreeGridList';\nexport {useTreeGridListItem} from './useTreeGridListItem';\n\nexport type {AriaTreeGridListOptions, AriaTreeGridListProps, TreeGridListAria, TreeGridListProps} from './useTreeGridList';\nexport type {AriaTreeGridListItemOptions, TreeGridListItemAria} from './useTreeGridListItem';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "expand": `Expand`,
3
+ "collapse": `Collapse`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=uk-UA.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/uk-UA.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"uk-UA.main.js.map"}
package/dist/uk-UA.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $f8ed0031472d4b0e$exports = {};
2
+ $f8ed0031472d4b0e$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$f8ed0031472d4b0e$exports as default};
9
+ //# sourceMappingURL=uk-UA.mjs.map
@@ -0,0 +1,9 @@
1
+ var $f8ed0031472d4b0e$exports = {};
2
+ $f8ed0031472d4b0e$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$f8ed0031472d4b0e$exports as default};
9
+ //# sourceMappingURL=uk-UA.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/uk-UA.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"uk-UA.module.js.map"}
@@ -1,6 +1,13 @@
1
+ var $6fc07bed32f3daee$exports = require("./intlStrings.main.js");
1
2
  var $gqXxM$reactariagridlist = require("@react-aria/gridlist");
3
+ var $gqXxM$reactariautils = require("@react-aria/utils");
4
+ var $gqXxM$reactariai18n = require("@react-aria/i18n");
2
5
 
3
6
 
7
+ function $parcel$interopDefault(a) {
8
+ return a && a.__esModule ? a.default : a;
9
+ }
10
+
4
11
  function $parcel$export(e, n, v, s) {
5
12
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
13
  }
@@ -17,9 +24,31 @@ $parcel$export(module.exports, "useTreeGridListItem", () => $89b99a0b1379ba07$ex
17
24
  * OF ANY KIND, either express or implied. See the License for the specific language
18
25
  * governing permissions and limitations under the License.
19
26
  */
27
+
28
+
29
+
20
30
  function $89b99a0b1379ba07$export$8001083cb3f61028(props, state, ref) {
31
+ let { node: node } = props;
32
+ let gridListAria = (0, $gqXxM$reactariagridlist.useGridListItem)(props, state, ref);
33
+ let isExpanded = gridListAria.rowProps["aria-expanded"] === true;
34
+ let stringFormatter = (0, $gqXxM$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($6fc07bed32f3daee$exports))), "@react-aria/tree");
35
+ let expandButtonProps = {
36
+ onPress: ()=>{
37
+ if (!gridListAria.isDisabled) {
38
+ state.toggleKey(node.key);
39
+ state.selectionManager.setFocused(true);
40
+ state.selectionManager.setFocusedKey(node.key);
41
+ }
42
+ },
43
+ "aria-label": isExpanded ? stringFormatter.format("collapse") : stringFormatter.format("expand"),
44
+ tabIndex: (0, $gqXxM$reactariautils.isAndroid)() ? -1 : null,
45
+ "data-react-aria-prevent-focus": true
46
+ };
21
47
  // TODO: should it return a state specifically for isExpanded? Or is aria attribute sufficient?
22
- return (0, $gqXxM$reactariagridlist.useGridListItem)(props, state, ref);
48
+ return {
49
+ ...gridListAria,
50
+ expandButtonProps: expandButtonProps
51
+ };
23
52
  }
24
53
 
25
54
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AA2BM,SAAS,0CAAuB,KAAkC,EAAE,KAAmB,EAAE,GAAgC;IAC7H,+FAA+F;IAChG,OAAO,CAAA,GAAA,wCAAc,EAAE,OAAO,OAAO;AACvC","sources":["packages/@react-aria/tree/src/useTreeGridListItem.ts"],"sourcesContent":["/*\n * Copyright 2024 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\nimport {AriaGridListItemOptions, GridListItemAria, useGridListItem} from '@react-aria/gridlist';\nimport {DOMAttributes, FocusableElement, Node} from '@react-types/shared';\nimport {RefObject} from 'react';\nimport {TreeState} from '@react-stately/tree';\n\nexport interface AriaTreeGridListItemOptions extends Omit<AriaGridListItemOptions, 'isVirtualized'> {\n /** An object representing the treegrid item. Contains all the relevant information that makes up the treegrid row. */\n node: Node<unknown>\n}\n\nexport interface TreeGridListItemAria extends GridListItemAria {\n /** Props for the tree grid row element. */\n rowProps: DOMAttributes,\n /** Props for the tree grid cell element within the tree grid list row. */\n gridCellProps: DOMAttributes,\n /** Props for the list item description element, if any. */\n descriptionProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a row in a tree grid list.\n * @param props - Props for the row.\n * @param state - State of the parent list, as returned by `useTreeState`.\n * @param ref - The ref attached to the row element.\n */\nexport function useTreeGridListItem<T>(props: AriaTreeGridListItemOptions, state: TreeState<T>, ref: RefObject<FocusableElement>): TreeGridListItemAria {\n // TODO: should it return a state specifically for isExpanded? Or is aria attribute sufficient?\n return useGridListItem(props, state, ref);\n}\n"],"names":[],"version":3,"file":"useTreeGridListItem.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAkCM,SAAS,0CAAuB,KAAkC,EAAE,KAAmB,EAAE,GAAgC;IAC9H,IAAI,QAAC,IAAI,EAAC,GAAG;IACb,IAAI,eAAe,CAAA,GAAA,wCAAc,EAAE,OAAO,OAAO;IACjD,IAAI,aAAa,aAAa,QAAQ,CAAC,gBAAgB,KAAK;IAC5D,IAAI,kBAAkB,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,mDAAW,GAAG;IAEhE,IAAI,oBAAoB;QACtB,SAAS;YACP,IAAI,CAAC,aAAa,UAAU,EAAE;gBAC5B,MAAM,SAAS,CAAC,KAAK,GAAG;gBACxB,MAAM,gBAAgB,CAAC,UAAU,CAAC;gBAClC,MAAM,gBAAgB,CAAC,aAAa,CAAC,KAAK,GAAG;YAC/C;QACF;QACA,cAAc,aAAa,gBAAgB,MAAM,CAAC,cAAc,gBAAgB,MAAM,CAAC;QACvF,UAAU,CAAA,GAAA,+BAAQ,MAAM,KAAK;QAC7B,iCAAiC;IACnC;IAEA,+FAA+F;IAC/F,OAAO;QACL,GAAG,YAAY;2BACf;IACF;AACF","sources":["packages/@react-aria/tree/src/useTreeGridListItem.ts"],"sourcesContent":["/*\n * Copyright 2024 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\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaGridListItemOptions, GridListItemAria, useGridListItem} from '@react-aria/gridlist';\nimport {DOMAttributes, FocusableElement, Node} from '@react-types/shared';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {isAndroid} from '@react-aria/utils';\nimport {RefObject} from 'react';\nimport {TreeState} from '@react-stately/tree';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface AriaTreeGridListItemOptions extends Omit<AriaGridListItemOptions, 'isVirtualized'> {\n /** An object representing the treegrid item. Contains all the relevant information that makes up the treegrid row. */\n node: Node<unknown>\n}\n\nexport interface TreeGridListItemAria extends GridListItemAria {\n /** Props for the tree grid row element. */\n rowProps: DOMAttributes,\n /** Props for the tree grid cell element within the tree grid list row. */\n gridCellProps: DOMAttributes,\n /** Props for the tree grid row description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the tree grid row expand button. */\n expandButtonProps: AriaButtonProps\n}\n\n/**\n * Provides the behavior and accessibility implementation for a row in a tree grid list.\n * @param props - Props for the row.\n * @param state - State of the parent list, as returned by `useTreeState`.\n * @param ref - The ref attached to the row element.\n */\nexport function useTreeGridListItem<T>(props: AriaTreeGridListItemOptions, state: TreeState<T>, ref: RefObject<FocusableElement>): TreeGridListItemAria {\n let {node} = props;\n let gridListAria = useGridListItem(props, state, ref);\n let isExpanded = gridListAria.rowProps['aria-expanded'] === true;\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/tree');\n\n let expandButtonProps = {\n onPress: () => {\n if (!gridListAria.isDisabled) {\n state.toggleKey(node.key);\n state.selectionManager.setFocused(true);\n state.selectionManager.setFocusedKey(node.key);\n }\n },\n 'aria-label': isExpanded ? stringFormatter.format('collapse') : stringFormatter.format('expand'),\n tabIndex: isAndroid() ? -1 : null,\n 'data-react-aria-prevent-focus': true\n };\n\n // TODO: should it return a state specifically for isExpanded? Or is aria attribute sufficient?\n return {\n ...gridListAria,\n expandButtonProps\n };\n}\n"],"names":[],"version":3,"file":"useTreeGridListItem.main.js.map"}
@@ -1,5 +1,12 @@
1
+ import $ho3NY$intlStringsmodulejs from "./intlStrings.mjs";
1
2
  import {useGridListItem as $ho3NY$useGridListItem} from "@react-aria/gridlist";
3
+ import {isAndroid as $ho3NY$isAndroid} from "@react-aria/utils";
4
+ import {useLocalizedStringFormatter as $ho3NY$useLocalizedStringFormatter} from "@react-aria/i18n";
2
5
 
6
+
7
+ function $parcel$interopDefault(a) {
8
+ return a && a.__esModule ? a.default : a;
9
+ }
3
10
  /*
4
11
  * Copyright 2024 Adobe. All rights reserved.
5
12
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -11,9 +18,31 @@ import {useGridListItem as $ho3NY$useGridListItem} from "@react-aria/gridlist";
11
18
  * OF ANY KIND, either express or implied. See the License for the specific language
12
19
  * governing permissions and limitations under the License.
13
20
  */
21
+
22
+
23
+
14
24
  function $0cbbe9a595ac1615$export$8001083cb3f61028(props, state, ref) {
25
+ let { node: node } = props;
26
+ let gridListAria = (0, $ho3NY$useGridListItem)(props, state, ref);
27
+ let isExpanded = gridListAria.rowProps["aria-expanded"] === true;
28
+ let stringFormatter = (0, $ho3NY$useLocalizedStringFormatter)((0, ($parcel$interopDefault($ho3NY$intlStringsmodulejs))), "@react-aria/tree");
29
+ let expandButtonProps = {
30
+ onPress: ()=>{
31
+ if (!gridListAria.isDisabled) {
32
+ state.toggleKey(node.key);
33
+ state.selectionManager.setFocused(true);
34
+ state.selectionManager.setFocusedKey(node.key);
35
+ }
36
+ },
37
+ "aria-label": isExpanded ? stringFormatter.format("collapse") : stringFormatter.format("expand"),
38
+ tabIndex: (0, $ho3NY$isAndroid)() ? -1 : null,
39
+ "data-react-aria-prevent-focus": true
40
+ };
15
41
  // TODO: should it return a state specifically for isExpanded? Or is aria attribute sufficient?
16
- return (0, $ho3NY$useGridListItem)(props, state, ref);
42
+ return {
43
+ ...gridListAria,
44
+ expandButtonProps: expandButtonProps
45
+ };
17
46
  }
18
47
 
19
48
 
@@ -1,5 +1,12 @@
1
+ import $ho3NY$intlStringsmodulejs from "./intlStrings.module.js";
1
2
  import {useGridListItem as $ho3NY$useGridListItem} from "@react-aria/gridlist";
3
+ import {isAndroid as $ho3NY$isAndroid} from "@react-aria/utils";
4
+ import {useLocalizedStringFormatter as $ho3NY$useLocalizedStringFormatter} from "@react-aria/i18n";
2
5
 
6
+
7
+ function $parcel$interopDefault(a) {
8
+ return a && a.__esModule ? a.default : a;
9
+ }
3
10
  /*
4
11
  * Copyright 2024 Adobe. All rights reserved.
5
12
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -11,9 +18,31 @@ import {useGridListItem as $ho3NY$useGridListItem} from "@react-aria/gridlist";
11
18
  * OF ANY KIND, either express or implied. See the License for the specific language
12
19
  * governing permissions and limitations under the License.
13
20
  */
21
+
22
+
23
+
14
24
  function $0cbbe9a595ac1615$export$8001083cb3f61028(props, state, ref) {
25
+ let { node: node } = props;
26
+ let gridListAria = (0, $ho3NY$useGridListItem)(props, state, ref);
27
+ let isExpanded = gridListAria.rowProps["aria-expanded"] === true;
28
+ let stringFormatter = (0, $ho3NY$useLocalizedStringFormatter)((0, ($parcel$interopDefault($ho3NY$intlStringsmodulejs))), "@react-aria/tree");
29
+ let expandButtonProps = {
30
+ onPress: ()=>{
31
+ if (!gridListAria.isDisabled) {
32
+ state.toggleKey(node.key);
33
+ state.selectionManager.setFocused(true);
34
+ state.selectionManager.setFocusedKey(node.key);
35
+ }
36
+ },
37
+ "aria-label": isExpanded ? stringFormatter.format("collapse") : stringFormatter.format("expand"),
38
+ tabIndex: (0, $ho3NY$isAndroid)() ? -1 : null,
39
+ "data-react-aria-prevent-focus": true
40
+ };
15
41
  // TODO: should it return a state specifically for isExpanded? Or is aria attribute sufficient?
16
- return (0, $ho3NY$useGridListItem)(props, state, ref);
42
+ return {
43
+ ...gridListAria,
44
+ expandButtonProps: expandButtonProps
45
+ };
17
46
  }
18
47
 
19
48
 
@@ -1 +1 @@
1
- {"mappings":";;AAAA;;;;;;;;;;CAUC;AA2BM,SAAS,0CAAuB,KAAkC,EAAE,KAAmB,EAAE,GAAgC;IAC7H,+FAA+F;IAChG,OAAO,CAAA,GAAA,sBAAc,EAAE,OAAO,OAAO;AACvC","sources":["packages/@react-aria/tree/src/useTreeGridListItem.ts"],"sourcesContent":["/*\n * Copyright 2024 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\nimport {AriaGridListItemOptions, GridListItemAria, useGridListItem} from '@react-aria/gridlist';\nimport {DOMAttributes, FocusableElement, Node} from '@react-types/shared';\nimport {RefObject} from 'react';\nimport {TreeState} from '@react-stately/tree';\n\nexport interface AriaTreeGridListItemOptions extends Omit<AriaGridListItemOptions, 'isVirtualized'> {\n /** An object representing the treegrid item. Contains all the relevant information that makes up the treegrid row. */\n node: Node<unknown>\n}\n\nexport interface TreeGridListItemAria extends GridListItemAria {\n /** Props for the tree grid row element. */\n rowProps: DOMAttributes,\n /** Props for the tree grid cell element within the tree grid list row. */\n gridCellProps: DOMAttributes,\n /** Props for the list item description element, if any. */\n descriptionProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a row in a tree grid list.\n * @param props - Props for the row.\n * @param state - State of the parent list, as returned by `useTreeState`.\n * @param ref - The ref attached to the row element.\n */\nexport function useTreeGridListItem<T>(props: AriaTreeGridListItemOptions, state: TreeState<T>, ref: RefObject<FocusableElement>): TreeGridListItemAria {\n // TODO: should it return a state specifically for isExpanded? Or is aria attribute sufficient?\n return useGridListItem(props, state, ref);\n}\n"],"names":[],"version":3,"file":"useTreeGridListItem.module.js.map"}
1
+ {"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAkCM,SAAS,0CAAuB,KAAkC,EAAE,KAAmB,EAAE,GAAgC;IAC9H,IAAI,QAAC,IAAI,EAAC,GAAG;IACb,IAAI,eAAe,CAAA,GAAA,sBAAc,EAAE,OAAO,OAAO;IACjD,IAAI,aAAa,aAAa,QAAQ,CAAC,gBAAgB,KAAK;IAC5D,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAEhE,IAAI,oBAAoB;QACtB,SAAS;YACP,IAAI,CAAC,aAAa,UAAU,EAAE;gBAC5B,MAAM,SAAS,CAAC,KAAK,GAAG;gBACxB,MAAM,gBAAgB,CAAC,UAAU,CAAC;gBAClC,MAAM,gBAAgB,CAAC,aAAa,CAAC,KAAK,GAAG;YAC/C;QACF;QACA,cAAc,aAAa,gBAAgB,MAAM,CAAC,cAAc,gBAAgB,MAAM,CAAC;QACvF,UAAU,CAAA,GAAA,gBAAQ,MAAM,KAAK;QAC7B,iCAAiC;IACnC;IAEA,+FAA+F;IAC/F,OAAO;QACL,GAAG,YAAY;2BACf;IACF;AACF","sources":["packages/@react-aria/tree/src/useTreeGridListItem.ts"],"sourcesContent":["/*\n * Copyright 2024 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\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaGridListItemOptions, GridListItemAria, useGridListItem} from '@react-aria/gridlist';\nimport {DOMAttributes, FocusableElement, Node} from '@react-types/shared';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {isAndroid} from '@react-aria/utils';\nimport {RefObject} from 'react';\nimport {TreeState} from '@react-stately/tree';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface AriaTreeGridListItemOptions extends Omit<AriaGridListItemOptions, 'isVirtualized'> {\n /** An object representing the treegrid item. Contains all the relevant information that makes up the treegrid row. */\n node: Node<unknown>\n}\n\nexport interface TreeGridListItemAria extends GridListItemAria {\n /** Props for the tree grid row element. */\n rowProps: DOMAttributes,\n /** Props for the tree grid cell element within the tree grid list row. */\n gridCellProps: DOMAttributes,\n /** Props for the tree grid row description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the tree grid row expand button. */\n expandButtonProps: AriaButtonProps\n}\n\n/**\n * Provides the behavior and accessibility implementation for a row in a tree grid list.\n * @param props - Props for the row.\n * @param state - State of the parent list, as returned by `useTreeState`.\n * @param ref - The ref attached to the row element.\n */\nexport function useTreeGridListItem<T>(props: AriaTreeGridListItemOptions, state: TreeState<T>, ref: RefObject<FocusableElement>): TreeGridListItemAria {\n let {node} = props;\n let gridListAria = useGridListItem(props, state, ref);\n let isExpanded = gridListAria.rowProps['aria-expanded'] === true;\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/tree');\n\n let expandButtonProps = {\n onPress: () => {\n if (!gridListAria.isDisabled) {\n state.toggleKey(node.key);\n state.selectionManager.setFocused(true);\n state.selectionManager.setFocusedKey(node.key);\n }\n },\n 'aria-label': isExpanded ? stringFormatter.format('collapse') : stringFormatter.format('expand'),\n tabIndex: isAndroid() ? -1 : null,\n 'data-react-aria-prevent-focus': true\n };\n\n // TODO: should it return a state specifically for isExpanded? Or is aria attribute sufficient?\n return {\n ...gridListAria,\n expandButtonProps\n };\n}\n"],"names":[],"version":3,"file":"useTreeGridListItem.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "expand": `Expand`,
3
+ "collapse": `Collapse`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=zh-CN.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,UAAU,CAAC,MAAM,CAAC;IACpC,YAAY,CAAC,QAAQ,CAAC;AACxB","sources":["packages/@react-aria/tree/intl/zh-CN.json"],"sourcesContent":["{\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\"\n}\n"],"names":[],"version":3,"file":"zh-CN.main.js.map"}
package/dist/zh-CN.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $bca1931646cb2236$exports = {};
2
+ $bca1931646cb2236$exports = {
3
+ "expand": `Expand`,
4
+ "collapse": `Collapse`
5
+ };
6
+
7
+
8
+ export {$bca1931646cb2236$exports as default};
9
+ //# sourceMappingURL=zh-CN.mjs.map