@react-aria/tree 3.0.0-nightly.2855 → 3.0.0-nightly.2866
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/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/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 +4 -1
- 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/useTreeGridListItem.main.js +30 -1
- package/dist/useTreeGridListItem.main.js.map +1 -1
- package/dist/useTreeGridListItem.mjs +30 -1
- package/dist/useTreeGridListItem.module.js +30 -1
- package/dist/useTreeGridListItem.module.js.map +1 -1
- 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 +9 -6
- 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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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
|
|
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.
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
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 @@
|
|
|
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 @@
|
|
|
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
|
|
48
|
+
return {
|
|
49
|
+
...gridListAria,
|
|
50
|
+
expandButtonProps: expandButtonProps
|
|
51
|
+
};
|
|
23
52
|
}
|
|
24
53
|
|
|
25
54
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
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
|
|
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
|
|
42
|
+
return {
|
|
43
|
+
...gridListAria,
|
|
44
|
+
expandButtonProps: expandButtonProps
|
|
45
|
+
};
|
|
17
46
|
}
|
|
18
47
|
|
|
19
48
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
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 @@
|
|
|
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"}
|