@octanejs/aria 0.0.4 → 0.0.6

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 (210) hide show
  1. package/package.json +7 -5
  2. package/src/autocomplete/useAutocomplete.ts +656 -0
  3. package/src/collections/BaseCollection.ts +374 -0
  4. package/src/collections/CollectionBuilder.ts +343 -0
  5. package/src/collections/Document.ts +451 -0
  6. package/src/collections/Hidden.ts +84 -0
  7. package/src/collections/useCachedChildren.ts +103 -0
  8. package/src/components/Autocomplete.ts +124 -0
  9. package/src/components/Breadcrumbs.ts +170 -0
  10. package/src/components/Button.ts +209 -0
  11. package/src/components/Checkbox.ts +593 -0
  12. package/src/components/Collection.ts +301 -0
  13. package/src/components/ComboBox.ts +477 -0
  14. package/src/components/Dialog.ts +195 -0
  15. package/src/components/Disclosure.ts +322 -0
  16. package/src/components/DragAndDrop.ts +177 -0
  17. package/src/components/FieldError.ts +79 -0
  18. package/src/components/Form.ts +65 -0
  19. package/src/components/GridList.ts +1099 -0
  20. package/src/components/Group.ts +146 -0
  21. package/src/components/Header.ts +32 -0
  22. package/src/components/Heading.ts +45 -0
  23. package/src/components/Input.ts +139 -0
  24. package/src/components/Keyboard.ts +23 -0
  25. package/src/components/Label.ts +30 -0
  26. package/src/components/Link.ts +137 -0
  27. package/src/components/ListBox.ts +886 -0
  28. package/src/components/Menu.ts +685 -0
  29. package/src/components/Meter.ts +100 -0
  30. package/src/components/Modal.ts +352 -0
  31. package/src/components/NumberField.ts +221 -0
  32. package/src/components/OverlayArrow.ts +117 -0
  33. package/src/components/Popover.ts +385 -0
  34. package/src/components/ProgressBar.ts +112 -0
  35. package/src/components/RadioGroup.ts +542 -0
  36. package/src/components/SearchField.ts +208 -0
  37. package/src/components/Select.ts +505 -0
  38. package/src/components/SelectionIndicator.ts +52 -0
  39. package/src/components/Separator.ts +97 -0
  40. package/src/components/SharedElementTransition.ts +209 -0
  41. package/src/components/Slider.ts +472 -0
  42. package/src/components/Switch.ts +449 -0
  43. package/src/components/Table.ts +2618 -0
  44. package/src/components/Tabs.ts +675 -0
  45. package/src/components/TagGroup.ts +443 -0
  46. package/src/components/Text.ts +27 -0
  47. package/src/components/TextArea.ts +92 -0
  48. package/src/components/TextField.ts +200 -0
  49. package/src/components/ToggleButton.ts +147 -0
  50. package/src/components/ToggleButtonGroup.ts +106 -0
  51. package/src/components/Toolbar.ts +74 -0
  52. package/src/components/Tooltip.ts +249 -0
  53. package/src/components/Tree.ts +1450 -0
  54. package/src/components/TreeDropTargetDelegate.ts +363 -0
  55. package/src/components/index.ts +359 -0
  56. package/src/components/useDragAndDrop.ts +164 -0
  57. package/src/components/utils.ts +521 -0
  58. package/src/grid/GridKeyboardDelegate.ts +514 -0
  59. package/src/grid/useGrid.ts +263 -0
  60. package/src/grid/useGridCell.ts +346 -0
  61. package/src/grid/useGridRow.ts +108 -0
  62. package/src/grid/useGridRowGroup.ts +29 -0
  63. package/src/grid/utils.ts +24 -0
  64. package/src/index.ts +38 -0
  65. package/src/intl/autocomplete/ar-AE.json +3 -0
  66. package/src/intl/autocomplete/bg-BG.json +3 -0
  67. package/src/intl/autocomplete/cs-CZ.json +3 -0
  68. package/src/intl/autocomplete/da-DK.json +3 -0
  69. package/src/intl/autocomplete/de-DE.json +3 -0
  70. package/src/intl/autocomplete/el-GR.json +3 -0
  71. package/src/intl/autocomplete/en-US.json +3 -0
  72. package/src/intl/autocomplete/es-ES.json +3 -0
  73. package/src/intl/autocomplete/et-EE.json +3 -0
  74. package/src/intl/autocomplete/fi-FI.json +3 -0
  75. package/src/intl/autocomplete/fr-FR.json +3 -0
  76. package/src/intl/autocomplete/he-IL.json +3 -0
  77. package/src/intl/autocomplete/hr-HR.json +3 -0
  78. package/src/intl/autocomplete/hu-HU.json +3 -0
  79. package/src/intl/autocomplete/index.ts +82 -0
  80. package/src/intl/autocomplete/it-IT.json +3 -0
  81. package/src/intl/autocomplete/ja-JP.json +3 -0
  82. package/src/intl/autocomplete/ko-KR.json +3 -0
  83. package/src/intl/autocomplete/lt-LT.json +3 -0
  84. package/src/intl/autocomplete/lv-LV.json +3 -0
  85. package/src/intl/autocomplete/nb-NO.json +3 -0
  86. package/src/intl/autocomplete/nl-NL.json +3 -0
  87. package/src/intl/autocomplete/pl-PL.json +3 -0
  88. package/src/intl/autocomplete/pt-BR.json +3 -0
  89. package/src/intl/autocomplete/pt-PT.json +3 -0
  90. package/src/intl/autocomplete/ro-RO.json +3 -0
  91. package/src/intl/autocomplete/ru-RU.json +3 -0
  92. package/src/intl/autocomplete/sk-SK.json +3 -0
  93. package/src/intl/autocomplete/sl-SI.json +3 -0
  94. package/src/intl/autocomplete/sr-SP.json +3 -0
  95. package/src/intl/autocomplete/sv-SE.json +3 -0
  96. package/src/intl/autocomplete/tr-TR.json +3 -0
  97. package/src/intl/autocomplete/uk-UA.json +3 -0
  98. package/src/intl/autocomplete/zh-CN.json +3 -0
  99. package/src/intl/autocomplete/zh-TW.json +3 -0
  100. package/src/intl/breadcrumbs/index.ts +9 -2
  101. package/src/intl/combobox/index.ts +9 -2
  102. package/src/intl/compileMessages.ts +356 -0
  103. package/src/intl/grid/index.ts +9 -2
  104. package/src/intl/gridlist/index.ts +9 -2
  105. package/src/intl/menu/index.ts +9 -2
  106. package/src/intl/numberfield/index.ts +9 -2
  107. package/src/intl/overlays/index.ts +9 -2
  108. package/src/intl/searchfield/index.ts +9 -2
  109. package/src/intl/spinbutton/index.ts +9 -2
  110. package/src/intl/table/ar-AE.json +13 -0
  111. package/src/intl/table/bg-BG.json +13 -0
  112. package/src/intl/table/cs-CZ.json +13 -0
  113. package/src/intl/table/da-DK.json +13 -0
  114. package/src/intl/table/de-DE.json +13 -0
  115. package/src/intl/table/el-GR.json +13 -0
  116. package/src/intl/table/en-US.json +13 -0
  117. package/src/intl/table/es-ES.json +13 -0
  118. package/src/intl/table/et-EE.json +13 -0
  119. package/src/intl/table/fi-FI.json +13 -0
  120. package/src/intl/table/fr-FR.json +13 -0
  121. package/src/intl/table/he-IL.json +13 -0
  122. package/src/intl/table/hr-HR.json +13 -0
  123. package/src/intl/table/hu-HU.json +13 -0
  124. package/src/intl/table/index.ts +82 -0
  125. package/src/intl/table/it-IT.json +13 -0
  126. package/src/intl/table/ja-JP.json +13 -0
  127. package/src/intl/table/ko-KR.json +13 -0
  128. package/src/intl/table/lt-LT.json +13 -0
  129. package/src/intl/table/lv-LV.json +13 -0
  130. package/src/intl/table/nb-NO.json +13 -0
  131. package/src/intl/table/nl-NL.json +13 -0
  132. package/src/intl/table/pl-PL.json +13 -0
  133. package/src/intl/table/pt-BR.json +13 -0
  134. package/src/intl/table/pt-PT.json +13 -0
  135. package/src/intl/table/ro-RO.json +13 -0
  136. package/src/intl/table/ru-RU.json +13 -0
  137. package/src/intl/table/sk-SK.json +13 -0
  138. package/src/intl/table/sl-SI.json +13 -0
  139. package/src/intl/table/sr-SP.json +13 -0
  140. package/src/intl/table/sv-SE.json +13 -0
  141. package/src/intl/table/tr-TR.json +13 -0
  142. package/src/intl/table/uk-UA.json +13 -0
  143. package/src/intl/table/zh-CN.json +13 -0
  144. package/src/intl/table/zh-TW.json +13 -0
  145. package/src/intl/tag/index.ts +9 -2
  146. package/src/intl/tree/ar-AE.json +4 -0
  147. package/src/intl/tree/bg-BG.json +4 -0
  148. package/src/intl/tree/cs-CZ.json +4 -0
  149. package/src/intl/tree/da-DK.json +4 -0
  150. package/src/intl/tree/de-DE.json +4 -0
  151. package/src/intl/tree/el-GR.json +4 -0
  152. package/src/intl/tree/en-US.json +4 -0
  153. package/src/intl/tree/es-ES.json +4 -0
  154. package/src/intl/tree/et-EE.json +4 -0
  155. package/src/intl/tree/fi-FI.json +4 -0
  156. package/src/intl/tree/fr-FR.json +4 -0
  157. package/src/intl/tree/he-IL.json +4 -0
  158. package/src/intl/tree/hr-HR.json +4 -0
  159. package/src/intl/tree/hu-HU.json +4 -0
  160. package/src/intl/tree/index.ts +82 -0
  161. package/src/intl/tree/it-IT.json +4 -0
  162. package/src/intl/tree/ja-JP.json +4 -0
  163. package/src/intl/tree/ko-KR.json +4 -0
  164. package/src/intl/tree/lt-LT.json +4 -0
  165. package/src/intl/tree/lv-LV.json +4 -0
  166. package/src/intl/tree/nb-NO.json +4 -0
  167. package/src/intl/tree/nl-NL.json +4 -0
  168. package/src/intl/tree/pl-PL.json +4 -0
  169. package/src/intl/tree/pt-BR.json +4 -0
  170. package/src/intl/tree/pt-PT.json +4 -0
  171. package/src/intl/tree/ro-RO.json +4 -0
  172. package/src/intl/tree/ru-RU.json +4 -0
  173. package/src/intl/tree/sk-SK.json +4 -0
  174. package/src/intl/tree/sl-SI.json +4 -0
  175. package/src/intl/tree/sr-SP.json +4 -0
  176. package/src/intl/tree/sv-SE.json +4 -0
  177. package/src/intl/tree/tr-TR.json +4 -0
  178. package/src/intl/tree/uk-UA.json +4 -0
  179. package/src/intl/tree/zh-CN.json +4 -0
  180. package/src/intl/tree/zh-TW.json +4 -0
  181. package/src/stately/autocomplete/useAutocompleteState.ts +85 -0
  182. package/src/stately/grid/GridCollection.ts +200 -0
  183. package/src/stately/grid/useGridState.ts +160 -0
  184. package/src/stately/index.ts +43 -0
  185. package/src/stately/table/Cell.ts +49 -0
  186. package/src/stately/table/Column.ts +121 -0
  187. package/src/stately/table/Row.ts +145 -0
  188. package/src/stately/table/TableBody.ts +66 -0
  189. package/src/stately/table/TableCollection.ts +390 -0
  190. package/src/stately/table/TableColumnLayout.ts +148 -0
  191. package/src/stately/table/TableHeader.ts +65 -0
  192. package/src/stately/table/TableUtils.ts +269 -0
  193. package/src/stately/table/useTableColumnResizeState.ts +202 -0
  194. package/src/stately/table/useTableState.ts +235 -0
  195. package/src/stately/table/useTreeGridState.ts +248 -0
  196. package/src/table/TableKeyboardDelegate.ts +205 -0
  197. package/src/table/useTable.ts +175 -0
  198. package/src/table/useTableCell.ts +81 -0
  199. package/src/table/useTableColumnHeader.ts +155 -0
  200. package/src/table/useTableColumnResize.ts +374 -0
  201. package/src/table/useTableHeaderRow.ts +57 -0
  202. package/src/table/useTableRow.ts +198 -0
  203. package/src/table/useTableRowGroup.ts +13 -0
  204. package/src/table/useTableSelectionCheckbox.ts +105 -0
  205. package/src/table/utils.ts +42 -0
  206. package/src/tree/useTree.ts +76 -0
  207. package/src/tree/useTreeItem.ts +109 -0
  208. package/src/utils/animation.ts +149 -0
  209. package/src/utils/useLoadMoreSentinel.ts +78 -0
  210. package/src/utils/useViewportSize.ts +123 -0
@@ -0,0 +1,108 @@
1
+ // Ported from react-aria (source: .react-spectrum/packages/react-aria/src/grid/useGridRow.ts).
2
+ // octane adaptations:
3
+ // - `GridState`/`IGridCollection`/`GridNode` come from the ported stately grid hooks;
4
+ // `DOMAttributes` is a local structural prop-bag alias.
5
+ // - Public-hook slot threading (splitSlot/subSlot).
6
+ import { chain } from '../utils/chain';
7
+
8
+ import type { FocusableElement, RefObject } from '@react-types/shared';
9
+ import type { IGridCollection as GridCollection, GridNode } from '../stately/grid/GridCollection';
10
+ import { gridMap } from './utils';
11
+ import type { GridState } from '../stately/grid/useGridState';
12
+ import { SelectableItemStates, useSelectableItem } from '../selection/useSelectableItem';
13
+
14
+ import { S, splitSlot, subSlot } from '../internal';
15
+
16
+ // octane adaptation: minimal structural DOMAttributes (upstream's drags React's synthetic
17
+ // handler types along).
18
+ type DOMAttributes = Record<string, any>;
19
+
20
+ export interface GridRowProps<T> {
21
+ /**
22
+ * An object representing the grid row. Contains all the relevant information that makes up the
23
+ * grid row.
24
+ */
25
+ node: GridNode<T>;
26
+ /** Whether the grid row is contained in a virtual scroller. */
27
+ isVirtualized?: boolean;
28
+ /** Whether selection should occur on press up instead of press down. */
29
+ shouldSelectOnPressUp?: boolean;
30
+ /**
31
+ * Handler that is called when a user performs an action on the row.
32
+ * Please use onCellAction at the collection level instead.
33
+ *
34
+ * @deprecated
35
+ */
36
+ onAction?: () => void;
37
+ }
38
+
39
+ export interface GridRowAria extends SelectableItemStates {
40
+ /** Props for the grid row element. */
41
+ rowProps: DOMAttributes;
42
+ /** Whether the row is currently in a pressed state. */
43
+ isPressed: boolean;
44
+ }
45
+
46
+ /**
47
+ * Provides the behavior and accessibility implementation for a row in a grid.
48
+ *
49
+ * @param props - Props for the row.
50
+ * @param state - State of the parent grid, as returned by `useGridState`.
51
+ */
52
+ export function useGridRow<T, C extends GridCollection<T>, S extends GridState<T, C>>(
53
+ props: GridRowProps<T>,
54
+ state: S,
55
+ ref: RefObject<FocusableElement | null>,
56
+ ): GridRowAria;
57
+ // Slot-threading form: sibling ported hooks pass their derived sub-slot as the trailing arg.
58
+ export function useGridRow<T, C extends GridCollection<T>, S extends GridState<T, C>>(
59
+ props: GridRowProps<T>,
60
+ state: S,
61
+ ref: RefObject<FocusableElement | null>,
62
+ slot: symbol | undefined,
63
+ ): GridRowAria;
64
+ export function useGridRow(...args: any[]): GridRowAria {
65
+ const [user, slotArg] = splitSlot(args);
66
+ const slot = slotArg ?? S('useGridRow');
67
+ const props = user[0] as GridRowProps<any>;
68
+ const state = user[1] as GridState<any, GridCollection<any>>;
69
+ const ref = user[2] as RefObject<FocusableElement | null>;
70
+
71
+ let { node, isVirtualized, shouldSelectOnPressUp, onAction } = props;
72
+
73
+ let { actions, shouldSelectOnPressUp: gridShouldSelectOnPressUp } = gridMap.get(state)!;
74
+ let onRowAction = actions.onRowAction ? () => actions.onRowAction?.(node.key) : onAction;
75
+ let { itemProps, ...states } = useSelectableItem(
76
+ {
77
+ selectionManager: state.selectionManager,
78
+ key: node.key,
79
+ ref,
80
+ isVirtualized,
81
+ shouldSelectOnPressUp: gridShouldSelectOnPressUp || shouldSelectOnPressUp,
82
+ onAction:
83
+ onRowAction || node?.props?.onAction
84
+ ? chain(node?.props?.onAction, onRowAction)
85
+ : undefined,
86
+ isDisabled: state.collection.size === 0,
87
+ },
88
+ subSlot(slot, 'selectableItem'),
89
+ );
90
+
91
+ let isSelected = state.selectionManager.isSelected(node.key);
92
+
93
+ let rowProps: DOMAttributes = {
94
+ role: 'row',
95
+ 'aria-selected': state.selectionManager.selectionMode !== 'none' ? isSelected : undefined,
96
+ 'aria-disabled': states.isDisabled || undefined,
97
+ ...itemProps,
98
+ };
99
+
100
+ if (isVirtualized) {
101
+ rowProps['aria-rowindex'] = node.index + 1; // aria-rowindex is 1 based
102
+ }
103
+
104
+ return {
105
+ rowProps,
106
+ ...states,
107
+ };
108
+ }
@@ -0,0 +1,29 @@
1
+ // Ported from react-aria (source: .react-spectrum/packages/react-aria/src/grid/useGridRowGroup.ts).
2
+ // octane adaptations: `DOMAttributes` is a local structural prop-bag alias. The hook
3
+ // composes no base hooks, so the optional trailing slot is accepted (uniform calling
4
+ // convention) and unused.
5
+ import { splitSlot } from '../internal';
6
+
7
+ // octane adaptation: minimal structural DOMAttributes (upstream's drags React's synthetic
8
+ // handler types along).
9
+ type DOMAttributes = Record<string, any>;
10
+
11
+ export interface GridRowGroupAria {
12
+ /** Props for the row group element. */
13
+ rowGroupProps: DOMAttributes;
14
+ }
15
+
16
+ /**
17
+ * Provides the accessibility implementation for a row group in a grid.
18
+ */
19
+ export function useGridRowGroup(): GridRowGroupAria;
20
+ // Slot-threading form: sibling ported hooks pass their derived sub-slot as the trailing arg.
21
+ export function useGridRowGroup(slot: symbol | undefined): GridRowGroupAria;
22
+ export function useGridRowGroup(...args: any[]): GridRowGroupAria {
23
+ splitSlot(args);
24
+ return {
25
+ rowGroupProps: {
26
+ role: 'rowgroup',
27
+ },
28
+ };
29
+ }
@@ -0,0 +1,24 @@
1
+ // Ported from react-aria (source: .react-spectrum/packages/react-aria/src/grid/utils.ts).
2
+ // octane adaptations: `GridState`/`IGridCollection` types come from the ported stately
3
+ // grid hooks.
4
+ import type { IGridCollection as GridCollection } from '../stately/grid/GridCollection';
5
+
6
+ import type { GridState } from '../stately/grid/useGridState';
7
+ import type { Key, KeyboardDelegate } from '@react-types/shared';
8
+
9
+ interface GridMapShared {
10
+ keyboardDelegate: KeyboardDelegate;
11
+ actions: {
12
+ onRowAction?: (key: Key) => void;
13
+ onCellAction?: (key: Key) => void;
14
+ };
15
+ shouldSelectOnPressUp?: boolean;
16
+ }
17
+
18
+ // Used to share:
19
+ // keyboard delegate between useGrid and useGridCell
20
+ // onRowAction/onCellAction across hooks
21
+ export const gridMap: WeakMap<
22
+ GridState<unknown, GridCollection<unknown>>,
23
+ GridMapShared
24
+ > = new WeakMap<GridState<unknown, GridCollection<unknown>>, GridMapShared>();
package/src/index.ts CHANGED
@@ -318,3 +318,41 @@ export type {
318
318
  // combobox — mirrors the @react-aria/combobox shim surface.
319
319
  export { useComboBox } from './combobox/useComboBox';
320
320
  export type { AriaComboBoxProps, AriaComboBoxOptions, ComboBoxAria } from './combobox/useComboBox';
321
+
322
+ // tree — mirrors the @react-aria/tree shim surface.
323
+ export { useTree } from './tree/useTree';
324
+ export { useTreeItem } from './tree/useTreeItem';
325
+ export type { AriaTreeOptions, AriaTreeProps, TreeAria, TreeProps } from './tree/useTree';
326
+ export type { AriaTreeItemOptions, TreeItemAria } from './tree/useTreeItem';
327
+
328
+ // table — mirrors the @react-aria/table shim surface.
329
+ export { useTable } from './table/useTable';
330
+ export { useTableColumnHeader } from './table/useTableColumnHeader';
331
+ export { useTableRow } from './table/useTableRow';
332
+ export { useTableHeaderRow } from './table/useTableHeaderRow';
333
+ export { useTableCell } from './table/useTableCell';
334
+ export {
335
+ useTableSelectionCheckbox,
336
+ useTableSelectAllCheckbox,
337
+ } from './table/useTableSelectionCheckbox';
338
+ export { useTableColumnResize } from './table/useTableColumnResize';
339
+ export { useTableRowGroup } from './table/useTableRowGroup';
340
+ export type { AriaTableProps } from './table/useTable';
341
+ export type {
342
+ AriaTableColumnHeaderProps,
343
+ TableColumnHeaderAria,
344
+ } from './table/useTableColumnHeader';
345
+ export type { TableRowAria } from './table/useTableRow';
346
+ export type { TableHeaderRowAria } from './table/useTableHeaderRow';
347
+ export type { AriaTableCellProps, TableCellAria } from './table/useTableCell';
348
+ export type {
349
+ AriaTableSelectionCheckboxProps,
350
+ TableSelectionCheckboxAria,
351
+ TableSelectAllCheckboxAria,
352
+ } from './table/useTableSelectionCheckbox';
353
+ export type {
354
+ AriaTableColumnResizeProps,
355
+ TableColumnResizeAria,
356
+ } from './table/useTableColumnResize';
357
+ export type { GridAria, GridProps } from './grid/useGrid';
358
+ export type { GridRowAria, GridRowProps } from './grid/useGridRow';
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "مقترحات"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Предложения"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Návrhy"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Forslag"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Empfehlungen"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Προτάσεις"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Suggestions"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Sugerencias"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Soovitused"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Ehdotukset"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Suggestions"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "הצעות"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Prijedlozi"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Javaslatok"
3
+ }
@@ -0,0 +1,82 @@
1
+ // Generated locale-dictionary index for the autocomplete area — the octane equivalent of
2
+ // upstream's Parcel glob import (`import intlMessages from '../../intl/autocomplete/*.json'`).
3
+ // The JSON files are copied VERBATIM from .react-spectrum/packages/react-aria/intl/autocomplete/;
4
+ // refresh them from the pinned checkout on version bumps, never hand-edit.
5
+ //
6
+ // Upstream's Parcel build additionally compiles each message through
7
+ // @internationalized/string-compiler, so `{variable}` placeholders and plural/select
8
+ // ICU arguments become message FUNCTIONS (LocalizedStringFormatter interpolates only
9
+ // function messages — plain strings are returned verbatim). `compileDictionaries`
10
+ // applies the equivalent compile step here at module init.
11
+ import { compileDictionaries } from '../compileMessages';
12
+ import ar_AE from './ar-AE.json';
13
+ import bg_BG from './bg-BG.json';
14
+ import cs_CZ from './cs-CZ.json';
15
+ import da_DK from './da-DK.json';
16
+ import de_DE from './de-DE.json';
17
+ import el_GR from './el-GR.json';
18
+ import en_US from './en-US.json';
19
+ import es_ES from './es-ES.json';
20
+ import et_EE from './et-EE.json';
21
+ import fi_FI from './fi-FI.json';
22
+ import fr_FR from './fr-FR.json';
23
+ import he_IL from './he-IL.json';
24
+ import hr_HR from './hr-HR.json';
25
+ import hu_HU from './hu-HU.json';
26
+ import it_IT from './it-IT.json';
27
+ import ja_JP from './ja-JP.json';
28
+ import ko_KR from './ko-KR.json';
29
+ import lt_LT from './lt-LT.json';
30
+ import lv_LV from './lv-LV.json';
31
+ import nb_NO from './nb-NO.json';
32
+ import nl_NL from './nl-NL.json';
33
+ import pl_PL from './pl-PL.json';
34
+ import pt_BR from './pt-BR.json';
35
+ import pt_PT from './pt-PT.json';
36
+ import ro_RO from './ro-RO.json';
37
+ import ru_RU from './ru-RU.json';
38
+ import sk_SK from './sk-SK.json';
39
+ import sl_SI from './sl-SI.json';
40
+ import sr_SP from './sr-SP.json';
41
+ import sv_SE from './sv-SE.json';
42
+ import tr_TR from './tr-TR.json';
43
+ import uk_UA from './uk-UA.json';
44
+ import zh_CN from './zh-CN.json';
45
+ import zh_TW from './zh-TW.json';
46
+
47
+ export default compileDictionaries({
48
+ 'ar-AE': ar_AE,
49
+ 'bg-BG': bg_BG,
50
+ 'cs-CZ': cs_CZ,
51
+ 'da-DK': da_DK,
52
+ 'de-DE': de_DE,
53
+ 'el-GR': el_GR,
54
+ 'en-US': en_US,
55
+ 'es-ES': es_ES,
56
+ 'et-EE': et_EE,
57
+ 'fi-FI': fi_FI,
58
+ 'fr-FR': fr_FR,
59
+ 'he-IL': he_IL,
60
+ 'hr-HR': hr_HR,
61
+ 'hu-HU': hu_HU,
62
+ 'it-IT': it_IT,
63
+ 'ja-JP': ja_JP,
64
+ 'ko-KR': ko_KR,
65
+ 'lt-LT': lt_LT,
66
+ 'lv-LV': lv_LV,
67
+ 'nb-NO': nb_NO,
68
+ 'nl-NL': nl_NL,
69
+ 'pl-PL': pl_PL,
70
+ 'pt-BR': pt_BR,
71
+ 'pt-PT': pt_PT,
72
+ 'ro-RO': ro_RO,
73
+ 'ru-RU': ru_RU,
74
+ 'sk-SK': sk_SK,
75
+ 'sl-SI': sl_SI,
76
+ 'sr-SP': sr_SP,
77
+ 'sv-SE': sv_SE,
78
+ 'tr-TR': tr_TR,
79
+ 'uk-UA': uk_UA,
80
+ 'zh-CN': zh_CN,
81
+ 'zh-TW': zh_TW,
82
+ });
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Suggerimenti"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "候補"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "제안"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Pasiūlymai"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Ieteikumi"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Forslag"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Suggesties"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Sugestie"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Sugestões"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Sugestões"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Sugestii"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Предложения"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Návrhy"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Predlogi"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Predlozi"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Förslag"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Öneriler"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "Пропозиції"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "建议"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "collectionLabel": "建議"
3
+ }
@@ -2,6 +2,13 @@
2
2
  // upstream's Parcel glob import (`import intlMessages from '../../intl/breadcrumbs/*.json'`).
3
3
  // The JSON files are copied VERBATIM from .react-spectrum/packages/react-aria/intl/breadcrumbs/;
4
4
  // refresh them from the pinned checkout on version bumps, never hand-edit.
5
+ //
6
+ // Upstream's Parcel build additionally compiles each message through
7
+ // @internationalized/string-compiler, so `{variable}` placeholders and plural/select
8
+ // ICU arguments become message FUNCTIONS (LocalizedStringFormatter interpolates only
9
+ // function messages — plain strings are returned verbatim). `compileDictionaries`
10
+ // applies the equivalent compile step here at module init.
11
+ import { compileDictionaries } from '../compileMessages';
5
12
  import ar_AE from './ar-AE.json';
6
13
  import bg_BG from './bg-BG.json';
7
14
  import cs_CZ from './cs-CZ.json';
@@ -37,7 +44,7 @@ import uk_UA from './uk-UA.json';
37
44
  import zh_CN from './zh-CN.json';
38
45
  import zh_TW from './zh-TW.json';
39
46
 
40
- export default {
47
+ export default compileDictionaries({
41
48
  'ar-AE': ar_AE,
42
49
  'bg-BG': bg_BG,
43
50
  'cs-CZ': cs_CZ,
@@ -72,4 +79,4 @@ export default {
72
79
  'uk-UA': uk_UA,
73
80
  'zh-CN': zh_CN,
74
81
  'zh-TW': zh_TW,
75
- } as Record<string, Record<string, string>>;
82
+ });
@@ -2,6 +2,13 @@
2
2
  // upstream's Parcel glob import (`import intlMessages from '../../intl/combobox/*.json'`).
3
3
  // The JSON files are copied VERBATIM from .react-spectrum/packages/react-aria/intl/combobox/;
4
4
  // refresh them from the pinned checkout on version bumps, never hand-edit.
5
+ //
6
+ // Upstream's Parcel build additionally compiles each message through
7
+ // @internationalized/string-compiler, so `{variable}` placeholders and plural/select
8
+ // ICU arguments become message FUNCTIONS (LocalizedStringFormatter interpolates only
9
+ // function messages — plain strings are returned verbatim). `compileDictionaries`
10
+ // applies the equivalent compile step here at module init.
11
+ import { compileDictionaries } from '../compileMessages';
5
12
  import ar_AE from './ar-AE.json';
6
13
  import bg_BG from './bg-BG.json';
7
14
  import cs_CZ from './cs-CZ.json';
@@ -37,7 +44,7 @@ import uk_UA from './uk-UA.json';
37
44
  import zh_CN from './zh-CN.json';
38
45
  import zh_TW from './zh-TW.json';
39
46
 
40
- export default {
47
+ export default compileDictionaries({
41
48
  'ar-AE': ar_AE,
42
49
  'bg-BG': bg_BG,
43
50
  'cs-CZ': cs_CZ,
@@ -72,4 +79,4 @@ export default {
72
79
  'uk-UA': uk_UA,
73
80
  'zh-CN': zh_CN,
74
81
  'zh-TW': zh_TW,
75
- } as Record<string, Record<string, string>>;
82
+ });