@pingux/astro 2.33.0-alpha.11 → 2.33.0-alpha.2

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 (246) hide show
  1. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.test.js +9 -8
  2. package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +11 -8
  3. package/lib/cjs/components/ArrayField/ArrayField.js +3 -5
  4. package/lib/cjs/components/ArrayField/ArrayField.test.js +4 -13
  5. package/lib/cjs/components/Avatar/Avatar.test.js +4 -7
  6. package/lib/cjs/components/Badge/Badge.test.js +3 -7
  7. package/lib/cjs/components/Box/Box.test.js +4 -7
  8. package/lib/cjs/components/Bracket/Bracket.js +1 -3
  9. package/lib/cjs/components/Bracket/Bracket.test.js +3 -7
  10. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.test.js +3 -7
  11. package/lib/cjs/components/ButtonBar/ButtonBar.js +3 -9
  12. package/lib/cjs/components/ButtonBar/ButtonBar.stories.js +5 -61
  13. package/lib/cjs/components/ButtonBar/ButtonBar.test.js +3 -13
  14. package/lib/cjs/components/Callout/Callout.js +3 -8
  15. package/lib/cjs/components/Callout/Callout.test.js +0 -8
  16. package/lib/cjs/components/Card/Card.test.js +4 -7
  17. package/lib/cjs/components/Checkbox/Checkbox.test.js +4 -7
  18. package/lib/cjs/components/CodeView/CodeView.js +0 -1
  19. package/lib/cjs/components/CodeView/CodeView.test.js +3 -7
  20. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.test.js +10 -5
  21. package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +3 -9
  22. package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.test.js +3 -7
  23. package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.test.js +3 -7
  24. package/lib/cjs/components/CollapsiblePanelItem/CollapsiblePanelItem.test.js +3 -7
  25. package/lib/cjs/components/ColorField/ColorField.test.js +3 -7
  26. package/lib/cjs/components/ComboBoxField/ComboBoxField.test.js +21 -11
  27. package/lib/cjs/components/CopyText/CopyText.test.js +5 -15
  28. package/lib/cjs/components/DataTable/DataTableBadge.test.js +0 -8
  29. package/lib/cjs/components/DataTable/DataTableMenu.test.js +0 -8
  30. package/lib/cjs/components/DataTable/DataTableMultiLine.test.js +5 -16
  31. package/lib/cjs/components/DatePicker/DatePicker.test.js +20 -11
  32. package/lib/cjs/components/EditButton/EditButton.test.js +2 -8
  33. package/lib/cjs/components/FieldHelperText/FieldHelperText.test.js +3 -7
  34. package/lib/cjs/components/FileInputField/FileInputField.test.js +2 -8
  35. package/lib/cjs/components/HelpHint/HelpHint.test.js +3 -7
  36. package/lib/cjs/components/IconBadge/IconBadge.js +3 -8
  37. package/lib/cjs/components/IconBadge/IconBadge.test.js +3 -9
  38. package/lib/cjs/components/IconButton/IconButton.test.js +3 -7
  39. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +6 -11
  40. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.test.js +3 -7
  41. package/lib/cjs/components/ImageUploadField/ImageUploadField.test.js +3 -7
  42. package/lib/cjs/components/Input/Input.test.js +3 -7
  43. package/lib/cjs/components/Link/Link.test.js +3 -7
  44. package/lib/cjs/components/LinkSelectField/LinkSelectField.test.js +31 -12
  45. package/lib/cjs/components/ListItem/ListItem.test.js +8 -5
  46. package/lib/cjs/components/ListView/ListView.test.js +0 -19
  47. package/lib/cjs/components/ListViewItem/ListViewItem.test.js +3 -7
  48. package/lib/cjs/components/ListViewItem/controls/ListViewItemEditButton.js +4 -11
  49. package/lib/cjs/components/ListViewItem/controls/ListViewItemEditButton.test.js +3 -7
  50. package/lib/cjs/components/ListViewItem/controls/ListViewItemMenu.js +4 -10
  51. package/lib/cjs/components/ListViewItem/controls/ListViewItemMenu.test.js +4 -7
  52. package/lib/cjs/components/ListViewItem/controls/ListViewItemSwitchField.js +3 -9
  53. package/lib/cjs/components/ListViewItem/controls/ListViewItemSwitchField.test.js +3 -7
  54. package/lib/cjs/components/ListViewItem/controls/chart/ListViewItemChart.js +3 -4
  55. package/lib/cjs/components/ListViewItem/controls/chart/ListViewItemChart.test.js +3 -7
  56. package/lib/cjs/components/Loader/Loader.test.js +3 -7
  57. package/lib/cjs/components/Menu/Menu.test.js +3 -11
  58. package/lib/cjs/components/MenuItem/MenuItem.test.js +3 -15
  59. package/lib/cjs/components/Messages/Messages.test.js +3 -9
  60. package/lib/cjs/components/Modal/tests/Modal.unit.test.js +3 -7
  61. package/lib/cjs/components/MultivaluesField/MultivaluesField.test.js +20 -14
  62. package/lib/cjs/components/NavBar/NavBar.js +2 -3
  63. package/lib/cjs/components/NavBar/NavBar.test.js +2 -10
  64. package/lib/cjs/components/NumberField/NumberField.test.js +8 -5
  65. package/lib/cjs/components/OverlayPanel/OverlayPanel.test.js +3 -7
  66. package/lib/cjs/components/PageHeader/PageHeader.test.js +2 -11
  67. package/lib/cjs/components/PanelHeader/controls/PanelHeaderCloseButton.js +3 -9
  68. package/lib/cjs/components/PanelHeader/controls/PanelHeaderCloseButton.test.js +3 -7
  69. package/lib/cjs/components/PanelHeader/controls/PanelHeaderMenu.js +4 -12
  70. package/lib/cjs/components/PanelHeader/controls/PanelHeaderMenu.test.js +3 -7
  71. package/lib/cjs/components/PanelHeader/controls/PanelHeaderSwitchField.js +4 -12
  72. package/lib/cjs/components/PanelHeader/controls/PanelHeaderSwitchField.test.js +3 -7
  73. package/lib/cjs/components/PasswordField/PasswordField.test.js +3 -7
  74. package/lib/cjs/components/RadioField/RadioField.test.js +3 -9
  75. package/lib/cjs/components/RadioGroupField/RadioGroupField.test.js +3 -10
  76. package/lib/cjs/components/RequirementsList/RequirementsList.test.js +3 -7
  77. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.test.js +3 -11
  78. package/lib/cjs/components/ScrollBox/ScrollBox.test.js +0 -8
  79. package/lib/cjs/components/SearchField/SearchField.test.js +3 -7
  80. package/lib/cjs/components/SelectField/SelectField.test.js +3 -11
  81. package/lib/cjs/components/SelectFieldBase/SelectFieldBase.test.js +30 -14
  82. package/lib/cjs/components/Separator/Separator.test.js +3 -7
  83. package/lib/cjs/components/Stepper/Stepper.test.js +14 -12
  84. package/lib/cjs/components/SwitchField/SwitchField.test.js +3 -7
  85. package/lib/cjs/components/Table/Table.js +3 -9
  86. package/lib/cjs/components/Table/Table.test.js +3 -26
  87. package/lib/cjs/components/TableBody/TableBody.js +3 -9
  88. package/lib/cjs/components/TableCaption/TableCaption.js +3 -9
  89. package/lib/cjs/components/TableCell/TableCell.d.ts +2 -2
  90. package/lib/cjs/components/TableCell/TableCell.js +3 -9
  91. package/lib/cjs/components/TableCell/TableCell.test.js +3 -7
  92. package/lib/cjs/components/TableHead/TableHead.js +3 -9
  93. package/lib/cjs/components/TableRow/TableRow.js +3 -9
  94. package/lib/cjs/components/Tabs/Tabs.stories.js +2 -2
  95. package/lib/cjs/components/Tabs/Tabs.style.js +1 -0
  96. package/lib/cjs/components/Tabs/Tabs.test.js +3 -10
  97. package/lib/cjs/components/Text/Text.test.js +3 -7
  98. package/lib/cjs/components/TextArea/TextArea.test.js +3 -8
  99. package/lib/cjs/components/TextAreaField/TextAreaField.test.js +3 -7
  100. package/lib/cjs/components/TextField/TextField.test.js +3 -7
  101. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.test.js +0 -8
  102. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.test.js +3 -7
  103. package/lib/cjs/hooks/useComponentToggle/useComponentToggle.js +3 -1
  104. package/lib/cjs/hooks/useField/useField.d.ts +35 -33
  105. package/lib/cjs/hooks/useField/useField.js +1 -1
  106. package/lib/cjs/hooks/useProgressiveState/useProgressiveState.js +6 -3
  107. package/lib/cjs/hooks/useProgressiveState/useProgressiveState.test.js +16 -7
  108. package/lib/cjs/hooks/usePropWarning/usePropWarning.js +8 -0
  109. package/lib/cjs/hooks/usePropWarning/usePropWarning.test.js +9 -13
  110. package/lib/cjs/hooks/useSelectField/useSelectField.js +10 -10
  111. package/lib/cjs/types/item.d.ts +7 -4
  112. package/lib/cjs/types/popoverContainer.d.ts +0 -1
  113. package/lib/cjs/types/shared/style.d.ts +0 -6
  114. package/lib/cjs/utils/designUtils/figmaLinks.js +2 -4
  115. package/lib/cjs/utils/testUtils/universalComponentTest.d.ts +2 -1
  116. package/lib/cjs/utils/testUtils/universalComponentTest.js +4 -6
  117. package/lib/components/AccordionGridGroup/AccordionGridGroup.test.js +9 -8
  118. package/lib/components/AccordionGroup/AccordionGroup.test.js +11 -8
  119. package/lib/components/ArrayField/ArrayField.js +4 -6
  120. package/lib/components/ArrayField/ArrayField.test.js +4 -13
  121. package/lib/components/Avatar/Avatar.test.js +4 -7
  122. package/lib/components/Badge/Badge.test.js +3 -7
  123. package/lib/components/Box/Box.test.js +4 -7
  124. package/lib/components/Bracket/Bracket.js +1 -3
  125. package/lib/components/Bracket/Bracket.test.js +3 -7
  126. package/lib/components/Breadcrumbs/Breadcrumbs.test.js +3 -7
  127. package/lib/components/ButtonBar/ButtonBar.js +3 -4
  128. package/lib/components/ButtonBar/ButtonBar.stories.js +3 -57
  129. package/lib/components/ButtonBar/ButtonBar.test.js +3 -13
  130. package/lib/components/Callout/Callout.js +3 -4
  131. package/lib/components/Callout/Callout.test.js +0 -8
  132. package/lib/components/Card/Card.test.js +4 -7
  133. package/lib/components/Checkbox/Checkbox.test.js +4 -7
  134. package/lib/components/CodeView/CodeView.js +0 -1
  135. package/lib/components/CodeView/CodeView.test.js +3 -7
  136. package/lib/components/CollapsiblePanel/CollapsiblePanel.test.js +10 -5
  137. package/lib/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +3 -4
  138. package/lib/components/CollapsiblePanelContainer/CollapsiblePanelBadge.test.js +3 -7
  139. package/lib/components/CollapsiblePanelContainer/CollapsiblePanelContainer.test.js +3 -7
  140. package/lib/components/CollapsiblePanelItem/CollapsiblePanelItem.test.js +3 -7
  141. package/lib/components/ColorField/ColorField.test.js +3 -7
  142. package/lib/components/ComboBoxField/ComboBoxField.test.js +21 -11
  143. package/lib/components/CopyText/CopyText.test.js +5 -15
  144. package/lib/components/DataTable/DataTableBadge.test.js +0 -8
  145. package/lib/components/DataTable/DataTableMenu.test.js +0 -8
  146. package/lib/components/DataTable/DataTableMultiLine.test.js +5 -16
  147. package/lib/components/DatePicker/DatePicker.test.js +20 -11
  148. package/lib/components/EditButton/EditButton.test.js +2 -8
  149. package/lib/components/FieldHelperText/FieldHelperText.test.js +3 -7
  150. package/lib/components/FileInputField/FileInputField.test.js +2 -8
  151. package/lib/components/HelpHint/HelpHint.test.js +3 -7
  152. package/lib/components/IconBadge/IconBadge.js +3 -4
  153. package/lib/components/IconBadge/IconBadge.test.js +3 -9
  154. package/lib/components/IconButton/IconButton.test.js +3 -7
  155. package/lib/components/IconButtonToggle/IconButtonToggle.js +6 -6
  156. package/lib/components/IconButtonToggle/IconButtonToggle.test.js +3 -7
  157. package/lib/components/ImageUploadField/ImageUploadField.test.js +3 -7
  158. package/lib/components/Input/Input.test.js +3 -7
  159. package/lib/components/Link/Link.test.js +3 -7
  160. package/lib/components/LinkSelectField/LinkSelectField.test.js +31 -12
  161. package/lib/components/ListItem/ListItem.test.js +8 -5
  162. package/lib/components/ListView/ListView.test.js +0 -19
  163. package/lib/components/ListViewItem/ListViewItem.test.js +3 -7
  164. package/lib/components/ListViewItem/controls/ListViewItemEditButton.js +4 -6
  165. package/lib/components/ListViewItem/controls/ListViewItemEditButton.test.js +3 -7
  166. package/lib/components/ListViewItem/controls/ListViewItemMenu.js +4 -5
  167. package/lib/components/ListViewItem/controls/ListViewItemMenu.test.js +4 -7
  168. package/lib/components/ListViewItem/controls/ListViewItemSwitchField.js +3 -4
  169. package/lib/components/ListViewItem/controls/ListViewItemSwitchField.test.js +3 -7
  170. package/lib/components/ListViewItem/controls/chart/ListViewItemChart.js +4 -5
  171. package/lib/components/ListViewItem/controls/chart/ListViewItemChart.test.js +3 -7
  172. package/lib/components/Loader/Loader.test.js +3 -7
  173. package/lib/components/Menu/Menu.test.js +3 -11
  174. package/lib/components/MenuItem/MenuItem.test.js +3 -15
  175. package/lib/components/Messages/Messages.test.js +3 -9
  176. package/lib/components/Modal/tests/Modal.unit.test.js +3 -7
  177. package/lib/components/MultivaluesField/MultivaluesField.test.js +20 -14
  178. package/lib/components/NavBar/NavBar.js +3 -4
  179. package/lib/components/NavBar/NavBar.test.js +2 -10
  180. package/lib/components/NumberField/NumberField.test.js +8 -5
  181. package/lib/components/OverlayPanel/OverlayPanel.test.js +3 -7
  182. package/lib/components/PageHeader/PageHeader.test.js +2 -11
  183. package/lib/components/PanelHeader/controls/PanelHeaderCloseButton.js +3 -4
  184. package/lib/components/PanelHeader/controls/PanelHeaderCloseButton.test.js +3 -7
  185. package/lib/components/PanelHeader/controls/PanelHeaderMenu.js +4 -7
  186. package/lib/components/PanelHeader/controls/PanelHeaderMenu.test.js +3 -7
  187. package/lib/components/PanelHeader/controls/PanelHeaderSwitchField.js +4 -7
  188. package/lib/components/PanelHeader/controls/PanelHeaderSwitchField.test.js +3 -7
  189. package/lib/components/PasswordField/PasswordField.test.js +3 -7
  190. package/lib/components/RadioField/RadioField.test.js +3 -9
  191. package/lib/components/RadioGroupField/RadioGroupField.test.js +3 -10
  192. package/lib/components/RequirementsList/RequirementsList.test.js +3 -7
  193. package/lib/components/RockerButtonGroup/RockerButtonGroup.test.js +3 -11
  194. package/lib/components/ScrollBox/ScrollBox.test.js +0 -8
  195. package/lib/components/SearchField/SearchField.test.js +3 -7
  196. package/lib/components/SelectField/SelectField.test.js +3 -11
  197. package/lib/components/SelectFieldBase/SelectFieldBase.test.js +31 -13
  198. package/lib/components/Separator/Separator.test.js +3 -7
  199. package/lib/components/Stepper/Stepper.test.js +14 -12
  200. package/lib/components/SwitchField/SwitchField.test.js +3 -7
  201. package/lib/components/Table/Table.js +3 -4
  202. package/lib/components/Table/Table.test.js +3 -26
  203. package/lib/components/TableBody/TableBody.js +3 -4
  204. package/lib/components/TableCaption/TableCaption.js +3 -4
  205. package/lib/components/TableCell/TableCell.js +3 -4
  206. package/lib/components/TableCell/TableCell.test.js +3 -7
  207. package/lib/components/TableHead/TableHead.js +3 -4
  208. package/lib/components/TableRow/TableRow.js +3 -4
  209. package/lib/components/Tabs/Tabs.stories.js +3 -3
  210. package/lib/components/Tabs/Tabs.style.js +1 -0
  211. package/lib/components/Tabs/Tabs.test.js +3 -10
  212. package/lib/components/Text/Text.test.js +3 -7
  213. package/lib/components/TextArea/TextArea.test.js +3 -8
  214. package/lib/components/TextAreaField/TextAreaField.test.js +3 -7
  215. package/lib/components/TextField/TextField.test.js +3 -7
  216. package/lib/components/TimeZonePicker/TimeZonePicker.test.js +0 -8
  217. package/lib/components/TooltipTrigger/TooltipTrigger.test.js +3 -7
  218. package/lib/hooks/useComponentToggle/useComponentToggle.js +3 -1
  219. package/lib/hooks/useField/useField.js +0 -2
  220. package/lib/hooks/useProgressiveState/useProgressiveState.js +7 -3
  221. package/lib/hooks/useProgressiveState/useProgressiveState.test.js +16 -7
  222. package/lib/hooks/usePropWarning/usePropWarning.js +8 -0
  223. package/lib/hooks/usePropWarning/usePropWarning.test.js +9 -13
  224. package/lib/hooks/useSelectField/useSelectField.js +9 -11
  225. package/lib/utils/designUtils/figmaLinks.js +2 -4
  226. package/lib/utils/testUtils/universalComponentTest.js +4 -6
  227. package/package.json +1 -1
  228. package/lib/cjs/components/TableBody/TableBody.test.d.ts +0 -1
  229. package/lib/cjs/components/TableBody/TableBody.test.js +0 -13
  230. package/lib/cjs/components/TableCaption/TableCaption.test.js +0 -13
  231. package/lib/cjs/components/TableHead/TableHead.test.js +0 -13
  232. package/lib/cjs/components/TableRow/TableRow.test.js +0 -13
  233. package/lib/cjs/hooks/useProgressiveState/index.d.ts +0 -1
  234. package/lib/cjs/hooks/useProgressiveState/useProgressiveState.d.ts +0 -11
  235. package/lib/cjs/hooks/useProgressiveState/useProgressiveState.test.d.ts +0 -1
  236. package/lib/cjs/hooks/usePropWarning/index.d.ts +0 -1
  237. package/lib/cjs/hooks/usePropWarning/usePropWarning.d.ts +0 -13
  238. package/lib/cjs/hooks/usePropWarning/usePropWarning.test.d.ts +0 -1
  239. package/lib/cjs/hooks/useRockerButton/index.d.ts +0 -1
  240. package/lib/cjs/hooks/useRockerButton/useRockerButton.d.ts +0 -241
  241. package/lib/cjs/hooks/useSelectField/index.d.ts +0 -1
  242. package/lib/cjs/hooks/useSelectField/useSelectField.d.ts +0 -55
  243. package/lib/components/TableBody/TableBody.test.js +0 -11
  244. package/lib/components/TableCaption/TableCaption.test.js +0 -11
  245. package/lib/components/TableHead/TableHead.test.js +0 -11
  246. package/lib/components/TableRow/TableRow.test.js +0 -11
@@ -1,241 +0,0 @@
1
- import React from 'react';
2
- import { MultipleSelectionManager } from 'react-stately';
3
- import { FocusableElement } from '../../types';
4
- interface RockerButtonProps {
5
- item: {
6
- key: string;
7
- };
8
- isDisabled: boolean;
9
- isSelected: boolean;
10
- }
11
- declare const useRockerButton: (props: RockerButtonProps, state: {
12
- selectionManager: MultipleSelectionManager;
13
- }, ref: React.RefObject<FocusableElement>) => {
14
- rockerButtonProps: {
15
- id: string;
16
- 'aria-pressed': boolean;
17
- 'aria-disabled': true | undefined;
18
- role?: React.AriaRole | undefined;
19
- tabIndex?: number | undefined;
20
- style?: React.CSSProperties | undefined;
21
- className?: string | undefined;
22
- 'aria-activedescendant'?: string | undefined;
23
- 'aria-atomic'?: (boolean | "false" | "true") | undefined;
24
- 'aria-autocomplete'?: "list" | "none" | "both" | "inline" | undefined;
25
- 'aria-braillelabel'?: string | undefined;
26
- 'aria-brailleroledescription'?: string | undefined;
27
- 'aria-busy'?: (boolean | "false" | "true") | undefined;
28
- 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
29
- 'aria-colcount'?: number | undefined;
30
- 'aria-colindex'?: number | undefined;
31
- 'aria-colindextext'?: string | undefined;
32
- 'aria-colspan'?: number | undefined;
33
- 'aria-controls'?: string | undefined;
34
- 'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
35
- 'aria-describedby'?: string | undefined;
36
- 'aria-description'?: string | undefined;
37
- 'aria-details'?: string | undefined;
38
- 'aria-dropeffect'?: "link" | "copy" | "none" | "move" | "execute" | "popup" | undefined;
39
- 'aria-errormessage'?: string | undefined;
40
- 'aria-expanded'?: (boolean | "false" | "true") | undefined;
41
- 'aria-flowto'?: string | undefined;
42
- 'aria-grabbed'?: (boolean | "false" | "true") | undefined;
43
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "false" | "true" | undefined;
44
- 'aria-hidden'?: (boolean | "false" | "true") | undefined;
45
- 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
46
- 'aria-keyshortcuts'?: string | undefined;
47
- 'aria-label'?: string | undefined;
48
- 'aria-labelledby'?: string | undefined;
49
- 'aria-level'?: number | undefined;
50
- 'aria-live'?: "off" | "assertive" | "polite" | undefined;
51
- 'aria-modal'?: (boolean | "false" | "true") | undefined;
52
- 'aria-multiline'?: (boolean | "false" | "true") | undefined;
53
- 'aria-multiselectable'?: (boolean | "false" | "true") | undefined;
54
- 'aria-orientation'?: "horizontal" | "vertical" | undefined;
55
- 'aria-owns'?: string | undefined;
56
- 'aria-placeholder'?: string | undefined;
57
- 'aria-posinset'?: number | undefined;
58
- 'aria-readonly'?: (boolean | "false" | "true") | undefined;
59
- 'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
60
- 'aria-required'?: (boolean | "false" | "true") | undefined;
61
- 'aria-roledescription'?: string | undefined;
62
- 'aria-rowcount'?: number | undefined;
63
- 'aria-rowindex'?: number | undefined;
64
- 'aria-rowindextext'?: string | undefined;
65
- 'aria-rowspan'?: number | undefined;
66
- 'aria-selected'?: (boolean | "false" | "true") | undefined;
67
- 'aria-setsize'?: number | undefined;
68
- 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
69
- 'aria-valuemax'?: number | undefined;
70
- 'aria-valuemin'?: number | undefined;
71
- 'aria-valuenow'?: number | undefined;
72
- 'aria-valuetext'?: string | undefined;
73
- children?: React.ReactNode;
74
- dangerouslySetInnerHTML?: {
75
- __html: string | TrustedHTML;
76
- } | undefined;
77
- onCopy?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
78
- onCopyCapture?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
79
- onCut?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
80
- onCutCapture?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
81
- onPaste?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
82
- onPasteCapture?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
83
- onCompositionEnd?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
84
- onCompositionEndCapture?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
85
- onCompositionStart?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
86
- onCompositionStartCapture?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
87
- onCompositionUpdate?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
88
- onCompositionUpdateCapture?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
89
- onFocus?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
90
- onFocusCapture?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
91
- onBlur?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
92
- onBlurCapture?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
93
- onChange?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
94
- onChangeCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
95
- onBeforeInput?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
96
- onBeforeInputCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
97
- onInput?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
98
- onInputCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
99
- onReset?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
100
- onResetCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
101
- onSubmit?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
102
- onSubmitCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
103
- onInvalid?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
104
- onInvalidCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
105
- onLoad?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
106
- onLoadCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
107
- onError?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
108
- onErrorCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
109
- onKeyDown?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
110
- onKeyDownCapture?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
111
- onKeyPress?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
112
- onKeyPressCapture?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
113
- onKeyUp?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
114
- onKeyUpCapture?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
115
- onAbort?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
116
- onAbortCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
117
- onCanPlay?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
118
- onCanPlayCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
119
- onCanPlayThrough?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
120
- onCanPlayThroughCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
121
- onDurationChange?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
122
- onDurationChangeCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
123
- onEmptied?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
124
- onEmptiedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
125
- onEncrypted?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
126
- onEncryptedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
127
- onEnded?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
128
- onEndedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
129
- onLoadedData?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
130
- onLoadedDataCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
131
- onLoadedMetadata?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
132
- onLoadedMetadataCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
133
- onLoadStart?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
134
- onLoadStartCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
135
- onPause?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
136
- onPauseCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
137
- onPlay?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
138
- onPlayCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
139
- onPlaying?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
140
- onPlayingCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
141
- onProgress?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
142
- onProgressCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
143
- onRateChange?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
144
- onRateChangeCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
145
- onResize?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
146
- onResizeCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
147
- onSeeked?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
148
- onSeekedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
149
- onSeeking?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
150
- onSeekingCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
151
- onStalled?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
152
- onStalledCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
153
- onSuspend?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
154
- onSuspendCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
155
- onTimeUpdate?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
156
- onTimeUpdateCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
157
- onVolumeChange?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
158
- onVolumeChangeCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
159
- onWaiting?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
160
- onWaitingCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
161
- onAuxClick?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
162
- onAuxClickCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
163
- onClick?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
164
- onClickCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
165
- onContextMenu?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
166
- onContextMenuCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
167
- onDoubleClick?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
168
- onDoubleClickCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
169
- onDrag?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
170
- onDragCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
171
- onDragEnd?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
172
- onDragEndCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
173
- onDragEnter?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
174
- onDragEnterCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
175
- onDragExit?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
176
- onDragExitCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
177
- onDragLeave?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
178
- onDragLeaveCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
179
- onDragOver?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
180
- onDragOverCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
181
- onDragStart?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
182
- onDragStartCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
183
- onDrop?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
184
- onDropCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
185
- onMouseDown?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
186
- onMouseDownCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
187
- onMouseEnter?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
188
- onMouseLeave?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
189
- onMouseMove?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
190
- onMouseMoveCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
191
- onMouseOut?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
192
- onMouseOutCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
193
- onMouseOver?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
194
- onMouseOverCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
195
- onMouseUp?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
196
- onMouseUpCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
197
- onSelect?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
198
- onSelectCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
199
- onTouchCancel?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
200
- onTouchCancelCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
201
- onTouchEnd?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
202
- onTouchEndCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
203
- onTouchMove?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
204
- onTouchMoveCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
205
- onTouchStart?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
206
- onTouchStartCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
207
- onPointerDown?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
208
- onPointerDownCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
209
- onPointerMove?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
210
- onPointerMoveCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
211
- onPointerUp?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
212
- onPointerUpCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
213
- onPointerCancel?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
214
- onPointerCancelCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
215
- onPointerEnter?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
216
- onPointerEnterCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
217
- onPointerLeave?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
218
- onPointerLeaveCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
219
- onPointerOver?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
220
- onPointerOverCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
221
- onPointerOut?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
222
- onPointerOutCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
223
- onGotPointerCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
224
- onGotPointerCaptureCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
225
- onLostPointerCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
226
- onLostPointerCaptureCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
227
- onScroll?: React.UIEventHandler<import("@react-types/shared").FocusableElement> | undefined;
228
- onScrollCapture?: React.UIEventHandler<import("@react-types/shared").FocusableElement> | undefined;
229
- onWheel?: React.WheelEventHandler<import("@react-types/shared").FocusableElement> | undefined;
230
- onWheelCapture?: React.WheelEventHandler<import("@react-types/shared").FocusableElement> | undefined;
231
- onAnimationStart?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
232
- onAnimationStartCapture?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
233
- onAnimationEnd?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
234
- onAnimationEndCapture?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
235
- onAnimationIteration?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
236
- onAnimationIterationCapture?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
237
- onTransitionEnd?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
238
- onTransitionEndCapture?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
239
- };
240
- };
241
- export default useRockerButton;
@@ -1 +0,0 @@
1
- export { default } from './useSelectField';
@@ -1,55 +0,0 @@
1
- import React, { DOMAttributes, Key } from 'react';
2
- import { AriaButtonProps } from 'react-aria';
3
- import { SelectState } from 'react-stately';
4
- import { CollectionChildren } from '@react-types/shared';
5
- import { LabelProps as ThemeUILabelProps } from 'theme-ui';
6
- import { Axis, BoxProps, FocusableElement, PlacementAxis, ReactRef, StyleProps } from '../../types';
7
- import { FieldControlInputProps } from '../useField/useField';
8
- interface UseSelectFieldProps<T> {
9
- children: CollectionChildren<T>;
10
- align?: PlacementAxis;
11
- defaultSelectedKey?: string;
12
- defaultText?: string;
13
- direction?: Axis;
14
- disabledKeys?: Iterable<Key>;
15
- hasNoEmptySelection?: boolean;
16
- isDefaultOpen?: boolean;
17
- isDisabled?: boolean;
18
- isLoading?: boolean;
19
- isNotFlippable?: boolean;
20
- isOpen?: boolean;
21
- isReadOnly?: boolean;
22
- isRequired?: boolean;
23
- items?: Iterable<T>;
24
- label?: string;
25
- listboxStyle?: React.CSSProperties;
26
- name?: string;
27
- placeholder?: string;
28
- selectedKey?: string;
29
- onLoadMore?: () => unknown;
30
- onOpenChange?: (isOpen: boolean) => unknown;
31
- onSelectionChange?: (key: Key) => unknown;
32
- controlProps?: React.HTMLAttributes<Element>;
33
- scrollBoxProps?: BoxProps;
34
- listBoxProps?: BoxProps;
35
- labelProps?: ThemeUILabelProps;
36
- containerProps?: BoxProps;
37
- labelMode: 'default' | 'float' | 'left';
38
- }
39
- interface UseSelectFieldReturnProps {
40
- columnStyleProps: StyleProps;
41
- fieldContainerProps: BoxProps;
42
- fieldControlInputProps: FieldControlInputProps;
43
- fieldControlWrapperProps: BoxProps;
44
- fieldLabelProps: ThemeUILabelProps;
45
- isLoadingInitial?: boolean;
46
- listBoxRef: ReactRef;
47
- overlay: React.ReactNode;
48
- popoverRef: ReactRef;
49
- state: SelectState<object>;
50
- triggerProps: AriaButtonProps<'button'>;
51
- triggerRef: ReactRef;
52
- valueProps: DOMAttributes<FocusableElement>;
53
- }
54
- declare const useSelectField: <T extends object>(props: UseSelectFieldProps<T>, ref: ReactRef) => UseSelectFieldReturnProps;
55
- export default useSelectField;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { Table, TableBody } from '../../index';
3
- import { universalComponentTests } from '../../utils/testUtils/universalComponentTest';
4
-
5
- // Needs to be added to each components test file
6
- import { jsx as ___EmotionJSX } from "@emotion/react";
7
- universalComponentTests({
8
- renderComponent: function renderComponent(props) {
9
- return ___EmotionJSX(Table, null, ___EmotionJSX(TableBody, props));
10
- }
11
- });
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { Table, TableCaption } from '../../index';
3
- import { universalComponentTests } from '../../utils/testUtils/universalComponentTest';
4
-
5
- // Needs to be added to each components test file
6
- import { jsx as ___EmotionJSX } from "@emotion/react";
7
- universalComponentTests({
8
- renderComponent: function renderComponent(props) {
9
- return ___EmotionJSX(Table, null, ___EmotionJSX(TableCaption, props));
10
- }
11
- });
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { Table, TableHead } from '../../index';
3
- import { universalComponentTests } from '../../utils/testUtils/universalComponentTest';
4
-
5
- // Needs to be added to each components test file
6
- import { jsx as ___EmotionJSX } from "@emotion/react";
7
- universalComponentTests({
8
- renderComponent: function renderComponent(props) {
9
- return ___EmotionJSX(Table, null, ___EmotionJSX(TableHead, props));
10
- }
11
- });
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { Table, TableBody, TableRow } from '../../index';
3
- import { universalComponentTests } from '../../utils/testUtils/universalComponentTest';
4
-
5
- // Needs to be added to each components test file
6
- import { jsx as ___EmotionJSX } from "@emotion/react";
7
- universalComponentTests({
8
- renderComponent: function renderComponent(props) {
9
- return ___EmotionJSX(Table, null, ___EmotionJSX(TableBody, null, ___EmotionJSX(TableRow, props)));
10
- }
11
- });