@pingux/astro 1.41.0-alpha.5 → 1.42.0-alpha.0

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 (486) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +1 -2
  3. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +6 -6
  4. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +28 -5
  5. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.test.js +8 -8
  6. package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +4 -4
  7. package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +4 -4
  8. package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +8 -6
  9. package/lib/cjs/components/AccordionGroup/AccordionGroup.js +3 -3
  10. package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +7 -7
  11. package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +15 -15
  12. package/lib/cjs/components/AccordionItem/AccordionItem.js +10 -8
  13. package/lib/cjs/components/ArrayField/ArrayField.js +20 -18
  14. package/lib/cjs/components/ArrayField/ArrayField.stories.js +4 -4
  15. package/lib/cjs/components/ArrayField/ArrayFieldItem.js +50 -0
  16. package/lib/cjs/components/Box/Box.js +2 -2
  17. package/lib/cjs/components/Bracket/Bracket.js +1 -1
  18. package/lib/cjs/components/Bracket/Bracket.stories.js +6 -7
  19. package/lib/cjs/components/Breadcrumbs/BreadcrumbItem.js +6 -4
  20. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +7 -5
  21. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +6 -6
  22. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.test.js +6 -6
  23. package/lib/cjs/components/Button/Button.js +18 -5
  24. package/lib/cjs/components/Button/Button.stories.js +1 -1
  25. package/lib/cjs/components/CheckboxField/CheckboxField.js +19 -14
  26. package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +18 -5
  27. package/lib/cjs/components/{Badge → Chip}/Badge.js +1 -1
  28. package/lib/cjs/components/{Badge → Chip}/Badge.stories.js +26 -29
  29. package/lib/cjs/components/{Badge → Chip}/Badge.test.js +6 -6
  30. package/lib/cjs/components/Chip/Chip.js +58 -0
  31. package/lib/cjs/components/{Badge → Chip}/index.js +2 -2
  32. package/lib/cjs/components/CodeView/CodeView.js +2 -2
  33. package/lib/cjs/components/CodeView/CodeView.stories.js +1 -1
  34. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.js +9 -7
  35. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +2 -2
  36. package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +2 -2
  37. package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.js +4 -4
  38. package/lib/cjs/components/CollapsiblePanelItem/CollapsiblePanelItem.js +1 -1
  39. package/lib/cjs/components/ColorField/ColorField.js +31 -23
  40. package/lib/cjs/components/ColorField/ColorField.stories.js +17 -4
  41. package/lib/cjs/components/ComboBox/ComboBoxInput.js +24 -20
  42. package/lib/cjs/components/ComboBoxField/ComboBoxField.js +14 -10
  43. package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +3 -3
  44. package/lib/cjs/components/CopyText/CopyButton.js +3 -2
  45. package/lib/cjs/components/CopyText/CopyText.js +10 -8
  46. package/lib/cjs/components/DataTable/DataTable.js +26 -46
  47. package/lib/cjs/components/DataTable/DataTable.stories.js +7 -7
  48. package/lib/cjs/components/DataTable/DataTable.styles.js +3 -3
  49. package/lib/cjs/components/DataTable/DataTable.test.js +8 -8
  50. package/lib/cjs/components/DataTable/{DataTableBadge.js → DataTableChip.js} +4 -4
  51. package/lib/cjs/components/DataTable/{DataTableBadge.test.js → DataTableChip.test.js} +1 -1
  52. package/lib/cjs/components/DataTable/index.js +3 -3
  53. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +18 -14
  54. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +23 -23
  55. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +5 -3
  56. package/lib/cjs/components/FieldHelperText/FieldHelperText.js +1 -1
  57. package/lib/cjs/components/FileInputField/FileInputField.js +13 -16
  58. package/lib/cjs/components/FileInputField/FileInputField.stories.js +2 -4
  59. package/lib/cjs/components/FileInputField/FileItem.js +7 -7
  60. package/lib/cjs/components/FileInputField/FileSelect.js +1 -1
  61. package/lib/cjs/components/HelpHint/HelpHint.js +4 -3
  62. package/lib/cjs/components/IconButton/IconButton.js +11 -9
  63. package/lib/cjs/components/IconButton/IconButton.stories.js +2 -2
  64. package/lib/cjs/components/ImageUploadField/ImagePreviewButton.js +8 -6
  65. package/lib/cjs/components/ImageUploadField/ImageUploadField.js +2 -4
  66. package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +2 -4
  67. package/lib/cjs/components/ImageUploadField/ImageUploadFieldBase.js +7 -8
  68. package/lib/cjs/components/Link/Link.js +9 -5
  69. package/lib/cjs/components/Link/Link.stories.js +2 -2
  70. package/lib/cjs/components/LinkSelectField/LinkSelectField.js +19 -10
  71. package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +9 -10
  72. package/lib/cjs/{styles/themeOverrides/withUiLibraryCss.js → components/List/List.js} +24 -26
  73. package/lib/cjs/components/List/List.stories.js +66 -0
  74. package/lib/cjs/components/List/List.test.js +36 -0
  75. package/lib/cjs/components/List/index.js +18 -0
  76. package/lib/cjs/components/ListBox/ListBox.js +6 -6
  77. package/lib/cjs/components/ListBox/ListBox.test.js +3 -3
  78. package/lib/cjs/components/ListBox/ListBoxSection.js +3 -3
  79. package/lib/cjs/components/ListBox/Option.js +2 -2
  80. package/lib/cjs/components/ListItem/ListItem.js +1 -1
  81. package/lib/cjs/components/ListView/ListView.stories.js +10 -8
  82. package/lib/cjs/components/ListView/ListView.test.js +8 -8
  83. package/lib/cjs/components/ListViewItem/ListViewItem.js +9 -7
  84. package/lib/cjs/components/Menu/Menu.js +9 -7
  85. package/lib/cjs/components/Menu/Menu.stories.js +4 -4
  86. package/lib/cjs/components/MenuItem/MenuItem.js +5 -3
  87. package/lib/cjs/components/Messages/Message.js +3 -3
  88. package/lib/cjs/components/Messages/Messages.js +1 -1
  89. package/lib/cjs/components/Messages/Messages.stories.js +14 -14
  90. package/lib/cjs/components/Messages/Messages.test.js +4 -4
  91. package/lib/cjs/components/Modal/Modal.js +24 -9
  92. package/lib/cjs/components/MultivaluesField/MultivaluesField.js +18 -15
  93. package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +8 -10
  94. package/lib/cjs/components/MultivaluesField/MultivaluesField.test.js +14 -14
  95. package/lib/cjs/components/NavBar/NavBar.stories.js +1 -1
  96. package/lib/cjs/components/NavBarSection/NavBarItem.js +9 -7
  97. package/lib/cjs/components/NavBarSection/NavBarItemBody.js +1 -1
  98. package/lib/cjs/components/NavBarSection/NavBarItemButton.js +1 -1
  99. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +1 -1
  100. package/lib/cjs/components/NavBarSection/NavBarItemLink.js +1 -1
  101. package/lib/cjs/components/NavBarSection/NavBarSection.js +2 -2
  102. package/lib/cjs/components/NumberField/NumberField.js +29 -31
  103. package/lib/cjs/components/NumberField/NumberField.stories.js +2 -4
  104. package/lib/cjs/components/OverlayPanel/OverlayPanel.js +4 -4
  105. package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +6 -6
  106. package/lib/cjs/components/PasswordField/PasswordField.js +25 -20
  107. package/lib/cjs/components/PasswordField/PasswordField.stories.js +2 -4
  108. package/lib/cjs/components/PopoverContainer/PopoverContainer.js +31 -7
  109. package/lib/cjs/components/PopoverMenu/PopoverMenu.js +12 -8
  110. package/lib/cjs/components/RadioField/RadioField.js +19 -15
  111. package/lib/cjs/components/RadioGroupField/RadioGroupField.js +8 -12
  112. package/lib/cjs/components/RockerButton/RockerButton.js +5 -5
  113. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.js +6 -6
  114. package/lib/cjs/components/ScrollBox/ScrollBox.js +3 -3
  115. package/lib/cjs/components/SearchField/SearchField.js +22 -16
  116. package/lib/cjs/components/SearchField/SearchField.stories.js +5 -4
  117. package/lib/cjs/components/SelectField/SelectField.js +9 -5
  118. package/lib/cjs/components/SelectField/SelectField.stories.js +11 -12
  119. package/lib/cjs/components/SelectField/SelectField.test.js +2 -2
  120. package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +16 -19
  121. package/lib/cjs/components/Separator/Separator.js +2 -2
  122. package/lib/cjs/components/Stepper/Step.js +4 -4
  123. package/lib/cjs/components/Switch/Switch.js +2 -2
  124. package/lib/cjs/components/SwitchField/SwitchField.js +23 -17
  125. package/lib/cjs/components/SwitchField/SwitchField.stories.js +5 -4
  126. package/lib/cjs/components/Tab/Tab.js +11 -7
  127. package/lib/cjs/components/TabPicker/TabPicker.js +5 -5
  128. package/lib/cjs/components/Table/Table.js +1 -1
  129. package/lib/cjs/components/TableBody/TableBody.js +1 -1
  130. package/lib/cjs/components/TableCaption/TableCaption.js +1 -1
  131. package/lib/cjs/components/TableCell/TableCell.js +1 -1
  132. package/lib/cjs/components/TableRow/TableRow.js +1 -1
  133. package/lib/cjs/components/Tabs/Tabs.js +5 -5
  134. package/lib/cjs/components/Tabs/Tabs.stories.js +1 -1
  135. package/lib/cjs/components/TextAreaField/TextAreaField.js +24 -18
  136. package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +5 -4
  137. package/lib/cjs/components/TextField/TextField.js +19 -11
  138. package/lib/cjs/components/TextField/TextField.stories.js +2 -4
  139. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.js +4 -4
  140. package/lib/cjs/components/TooltipTrigger/Tooltip.js +4 -4
  141. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +8 -6
  142. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +6 -6
  143. package/lib/cjs/hooks/useField/useField.js +20 -43
  144. package/lib/cjs/hooks/useField/useField.test.js +16 -55
  145. package/lib/cjs/hooks/useModalState/useModalState.js +2 -2
  146. package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.js +2 -2
  147. package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.test.js +1 -2
  148. package/lib/cjs/hooks/useSelectField/useSelectField.js +14 -12
  149. package/lib/cjs/index.js +119 -82
  150. package/lib/cjs/recipes/ApplicationSearchDropdown.stories.js +7 -7
  151. package/lib/cjs/recipes/AttributeMappingReadOnlyField.stories.js +4 -4
  152. package/lib/cjs/recipes/CollapsiblePanel.stories.js +3 -3
  153. package/lib/cjs/recipes/ConditionalFilter.stories.js +21 -21
  154. package/lib/cjs/recipes/CountryPicker.stories.js +3 -3
  155. package/lib/cjs/recipes/DatePicker.stories.js +5 -48
  156. package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +2 -2
  157. package/lib/cjs/recipes/LinkedListView.stories.js +15 -26
  158. package/lib/cjs/recipes/ListAndPanel.stories.js +9 -9
  159. package/lib/cjs/recipes/LogoTabs.stories.js +2 -2
  160. package/lib/cjs/recipes/MaskedValue.stories.js +1 -12
  161. package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +2 -2
  162. package/lib/cjs/recipes/RowLineChart.stories.js +99 -184
  163. package/lib/cjs/recipes/ScrollableListView.stories.js +4 -4
  164. package/lib/cjs/recipes/Slider.stories.js +19 -13
  165. package/lib/cjs/styles/ColorDocumentation.js +2 -2
  166. package/lib/cjs/{components/Checkbox/Checkbox.styles.js → styles/forms/checkbox.js} +0 -0
  167. package/lib/cjs/{components/ColorField/ColorField.styles.js → styles/forms/comboBox.js} +9 -9
  168. package/lib/cjs/styles/forms/index.js +13 -25
  169. package/lib/cjs/{components/Input/Input.styles.js → styles/forms/input.js} +15 -21
  170. package/lib/cjs/{components/Label/Label.styles.js → styles/forms/label.js} +4 -4
  171. package/lib/cjs/{components/ComboBox/ComboBox.styles.js → styles/forms/radio.js} +19 -27
  172. package/lib/cjs/{components/SearchField/Search.styles.js → styles/forms/search.js} +4 -4
  173. package/lib/cjs/{components/SelectField/Select.styles.js → styles/forms/select.js} +6 -6
  174. package/lib/cjs/{components/Switch/Switch.styles.js → styles/forms/switch.js} +2 -2
  175. package/lib/cjs/styles/forms/textarea.js +46 -0
  176. package/lib/cjs/styles/theme.js +3 -3
  177. package/lib/cjs/styles/themeOverrides/uiLibraryOverride.js +52 -69
  178. package/lib/cjs/styles/themes/astro-nano/astro-nano.js +19 -19
  179. package/lib/cjs/styles/variants/accordion.js +92 -0
  180. package/lib/cjs/{components/FieldHelperText/FieldHelperText.styles.js → styles/variants/bidirectionalIconButton.js} +17 -21
  181. package/lib/cjs/styles/variants/boxes.js +439 -0
  182. package/lib/cjs/styles/variants/buttons.js +815 -0
  183. package/lib/cjs/{components/CodeView/CodeView.styles.js → styles/variants/codeView.js} +0 -0
  184. package/lib/cjs/{components/CollapsiblePanel/CollapsiblePanel.styles.js → styles/variants/collapsiblePanel.js} +13 -72
  185. package/lib/cjs/styles/variants/imageUpload.js +29 -0
  186. package/lib/cjs/{components/Image/Image.styles.js → styles/variants/images.js} +0 -0
  187. package/lib/cjs/styles/variants/index.js +22 -51
  188. package/lib/cjs/{components/Link/Link.styles.js → styles/variants/links.js} +3 -3
  189. package/lib/cjs/{components/ListBox/ListBox.styles.js → styles/variants/listBox.js} +3 -11
  190. package/lib/cjs/{components/Loader/Loader.styles.js → styles/variants/loader.js} +0 -0
  191. package/lib/cjs/{components/Menu/Menu.styles.js → styles/variants/menu.js} +0 -0
  192. package/lib/cjs/{components/MenuItem/MenuItem.styles.js → styles/variants/menuItem.js} +0 -0
  193. package/lib/cjs/styles/variants/messages.js +53 -0
  194. package/lib/cjs/{components/Modal/Modal.styles.js → styles/variants/modal.js} +16 -13
  195. package/lib/cjs/{components/NavBar/NavBar.styles.js → styles/variants/navBar.js} +10 -96
  196. package/lib/cjs/{components/NumberField/NumberField.styles.js → styles/variants/numberField.js} +3 -13
  197. package/lib/cjs/{components/OverlayPanel/OverlayPanel.styles.js → styles/variants/overlayPanel.js} +6 -6
  198. package/lib/cjs/{components/PopoverMenu/PopoverMenu.styles.js → styles/variants/popoverMenu.js} +0 -0
  199. package/lib/cjs/styles/variants/rockerbutton.js +25 -0
  200. package/lib/cjs/{components/Separator/Separator.styles.js → styles/variants/separator.js} +0 -0
  201. package/lib/cjs/{components/Stepper/Stepper.styles.js → styles/variants/stepper.js} +4 -4
  202. package/lib/cjs/{components/Table/Table.styles.js → styles/variants/table.js} +15 -15
  203. package/lib/cjs/{components/Tabs/Tabs.style.js → styles/variants/tabs.js} +4 -17
  204. package/lib/cjs/{components/Text/Text.styles.js → styles/variants/text.js} +195 -4
  205. package/lib/cjs/{components/Box/Box.styles.js → styles/variants/tooltip.js} +3 -3
  206. package/lib/cjs/styles/variants/variants.js +46 -70
  207. package/lib/cjs/utils/devUtils/constants/variants.js +4 -4
  208. package/lib/components/AccordionGridGroup/AccordionGridGroup.js +3 -3
  209. package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +25 -2
  210. package/lib/components/AccordionGridGroup/AccordionGridGroup.test.js +1 -1
  211. package/lib/components/AccordionGridItem/AccordionGridItem.js +2 -2
  212. package/lib/components/AccordionGridItem/AccordionGridItemBody.js +2 -2
  213. package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +3 -2
  214. package/lib/components/AccordionGroup/AccordionGroup.js +1 -1
  215. package/lib/components/AccordionGroup/AccordionGroup.stories.js +1 -1
  216. package/lib/components/AccordionGroup/AccordionGroup.test.js +1 -1
  217. package/lib/components/AccordionItem/AccordionItem.js +6 -5
  218. package/lib/components/ArrayField/ArrayField.js +15 -15
  219. package/lib/components/ArrayField/ArrayField.stories.js +1 -1
  220. package/lib/components/ArrayField/ArrayFieldItem.js +31 -0
  221. package/lib/components/Box/Box.js +2 -2
  222. package/lib/components/Bracket/Bracket.js +1 -1
  223. package/lib/components/Bracket/Bracket.stories.js +7 -8
  224. package/lib/components/Breadcrumbs/BreadcrumbItem.js +3 -2
  225. package/lib/components/Breadcrumbs/Breadcrumbs.js +4 -3
  226. package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  227. package/lib/components/Breadcrumbs/Breadcrumbs.test.js +3 -3
  228. package/lib/components/Button/Button.js +13 -2
  229. package/lib/components/Button/Button.stories.js +1 -1
  230. package/lib/components/CheckboxField/CheckboxField.js +18 -12
  231. package/lib/components/CheckboxField/CheckboxField.stories.js +18 -4
  232. package/lib/components/{Badge → Chip}/Badge.js +1 -1
  233. package/lib/components/{Badge → Chip}/Badge.stories.js +31 -34
  234. package/lib/components/{Badge → Chip}/Badge.test.js +6 -6
  235. package/lib/components/Chip/Chip.js +38 -0
  236. package/lib/components/Chip/index.js +1 -0
  237. package/lib/components/CodeView/CodeView.js +2 -2
  238. package/lib/components/CodeView/CodeView.stories.js +1 -1
  239. package/lib/components/CollapsiblePanel/CollapsiblePanel.js +5 -4
  240. package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +3 -3
  241. package/lib/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +2 -2
  242. package/lib/components/CollapsiblePanelContainer/CollapsiblePanelContainer.js +3 -3
  243. package/lib/components/CollapsiblePanelItem/CollapsiblePanelItem.js +1 -1
  244. package/lib/components/ColorField/ColorField.js +22 -15
  245. package/lib/components/ColorField/ColorField.stories.js +17 -3
  246. package/lib/components/ComboBox/ComboBoxInput.js +20 -17
  247. package/lib/components/ComboBoxField/ComboBoxField.js +6 -4
  248. package/lib/components/ComboBoxField/ComboBoxField.stories.js +2 -2
  249. package/lib/components/CopyText/CopyButton.js +3 -2
  250. package/lib/components/CopyText/CopyText.js +4 -3
  251. package/lib/components/DataTable/DataTable.js +8 -31
  252. package/lib/components/DataTable/DataTable.stories.js +6 -6
  253. package/lib/components/DataTable/DataTable.styles.js +1 -1
  254. package/lib/components/DataTable/DataTable.test.js +1 -1
  255. package/lib/components/DataTable/{DataTableBadge.js → DataTableChip.js} +5 -5
  256. package/lib/components/DataTable/{DataTableBadge.test.js → DataTableChip.test.js} +2 -2
  257. package/lib/components/DataTable/index.js +1 -1
  258. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +10 -8
  259. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +22 -22
  260. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +3 -2
  261. package/lib/components/FieldHelperText/FieldHelperText.js +1 -1
  262. package/lib/components/FileInputField/FileInputField.js +10 -13
  263. package/lib/components/FileInputField/FileInputField.stories.js +2 -3
  264. package/lib/components/FileInputField/FileItem.js +5 -5
  265. package/lib/components/FileInputField/FileSelect.js +1 -1
  266. package/lib/components/HelpHint/HelpHint.js +4 -3
  267. package/lib/components/IconButton/IconButton.js +5 -5
  268. package/lib/components/IconButton/IconButton.stories.js +2 -2
  269. package/lib/components/ImageUploadField/ImagePreviewButton.js +5 -4
  270. package/lib/components/ImageUploadField/ImageUploadField.js +2 -3
  271. package/lib/components/ImageUploadField/ImageUploadField.stories.js +2 -3
  272. package/lib/components/ImageUploadField/ImageUploadFieldBase.js +5 -6
  273. package/lib/components/Link/Link.js +3 -1
  274. package/lib/components/Link/Link.stories.js +1 -1
  275. package/lib/components/LinkSelectField/LinkSelectField.js +19 -9
  276. package/lib/components/LinkSelectField/LinkSelectField.stories.js +5 -5
  277. package/lib/components/List/List.js +26 -0
  278. package/lib/components/List/List.stories.js +43 -0
  279. package/lib/components/List/List.test.js +24 -0
  280. package/lib/components/List/index.js +1 -0
  281. package/lib/components/ListBox/ListBox.js +3 -3
  282. package/lib/components/ListBox/ListBox.test.js +1 -1
  283. package/lib/components/ListBox/ListBoxSection.js +2 -2
  284. package/lib/components/ListBox/Option.js +1 -1
  285. package/lib/components/ListItem/ListItem.js +1 -1
  286. package/lib/components/ListView/ListView.stories.js +4 -3
  287. package/lib/components/ListView/ListView.test.js +2 -2
  288. package/lib/components/ListViewItem/ListViewItem.js +4 -3
  289. package/lib/components/Menu/Menu.js +4 -3
  290. package/lib/components/Menu/Menu.stories.js +1 -1
  291. package/lib/components/MenuItem/MenuItem.js +2 -1
  292. package/lib/components/Messages/Message.js +3 -3
  293. package/lib/components/Messages/Messages.js +1 -1
  294. package/lib/components/Messages/Messages.stories.js +1 -1
  295. package/lib/components/Messages/Messages.test.js +1 -1
  296. package/lib/components/Modal/Modal.js +14 -2
  297. package/lib/components/MultivaluesField/MultivaluesField.js +14 -11
  298. package/lib/components/MultivaluesField/MultivaluesField.stories.js +8 -9
  299. package/lib/components/MultivaluesField/MultivaluesField.test.js +14 -14
  300. package/lib/components/NavBar/NavBar.stories.js +1 -1
  301. package/lib/components/NavBarSection/NavBarItem.js +4 -3
  302. package/lib/components/NavBarSection/NavBarItemBody.js +1 -1
  303. package/lib/components/NavBarSection/NavBarItemButton.js +1 -1
  304. package/lib/components/NavBarSection/NavBarItemHeader.js +1 -1
  305. package/lib/components/NavBarSection/NavBarItemLink.js +1 -1
  306. package/lib/components/NavBarSection/NavBarSection.js +2 -2
  307. package/lib/components/NumberField/NumberField.js +23 -25
  308. package/lib/components/NumberField/NumberField.stories.js +2 -3
  309. package/lib/components/OverlayPanel/OverlayPanel.js +3 -3
  310. package/lib/components/OverlayPanel/OverlayPanel.stories.js +2 -2
  311. package/lib/components/PasswordField/PasswordField.js +24 -18
  312. package/lib/components/PasswordField/PasswordField.stories.js +2 -3
  313. package/lib/components/PopoverContainer/PopoverContainer.js +26 -3
  314. package/lib/components/PopoverMenu/PopoverMenu.js +4 -2
  315. package/lib/components/RadioField/RadioField.js +18 -13
  316. package/lib/components/RadioGroupField/RadioGroupField.js +6 -9
  317. package/lib/components/RockerButton/RockerButton.js +3 -3
  318. package/lib/components/RockerButtonGroup/RockerButtonGroup.js +4 -4
  319. package/lib/components/ScrollBox/ScrollBox.js +3 -3
  320. package/lib/components/SearchField/SearchField.js +18 -11
  321. package/lib/components/SearchField/SearchField.stories.js +5 -3
  322. package/lib/components/SelectField/SelectField.js +9 -4
  323. package/lib/components/SelectField/SelectField.stories.js +5 -5
  324. package/lib/components/SelectField/SelectField.test.js +1 -1
  325. package/lib/components/SelectFieldBase/SelectFieldBase.js +15 -18
  326. package/lib/components/Separator/Separator.js +1 -1
  327. package/lib/components/Stepper/Step.js +2 -2
  328. package/lib/components/Switch/Switch.js +1 -1
  329. package/lib/components/SwitchField/SwitchField.js +20 -13
  330. package/lib/components/SwitchField/SwitchField.stories.js +5 -3
  331. package/lib/components/Tab/Tab.js +4 -2
  332. package/lib/components/TabPicker/TabPicker.js +3 -3
  333. package/lib/components/Table/Table.js +1 -1
  334. package/lib/components/TableBody/TableBody.js +1 -1
  335. package/lib/components/TableCaption/TableCaption.js +1 -1
  336. package/lib/components/TableCell/TableCell.js +1 -1
  337. package/lib/components/TableRow/TableRow.js +1 -1
  338. package/lib/components/Tabs/Tabs.js +2 -2
  339. package/lib/components/Tabs/Tabs.stories.js +2 -2
  340. package/lib/components/TextAreaField/TextAreaField.js +24 -17
  341. package/lib/components/TextAreaField/TextAreaField.stories.js +5 -3
  342. package/lib/components/TextField/TextField.js +19 -10
  343. package/lib/components/TextField/TextField.stories.js +2 -3
  344. package/lib/components/TimeZonePicker/TimeZonePicker.js +4 -4
  345. package/lib/components/TooltipTrigger/Tooltip.js +3 -3
  346. package/lib/components/TooltipTrigger/TooltipTrigger.js +3 -2
  347. package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +4 -4
  348. package/lib/hooks/useField/useField.js +14 -39
  349. package/lib/hooks/useField/useField.test.js +16 -55
  350. package/lib/hooks/useModalState/useModalState.js +1 -1
  351. package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +1 -1
  352. package/lib/hooks/useOverlayPanelState/useOverlayPanelState.test.js +1 -2
  353. package/lib/hooks/useSelectField/useSelectField.js +6 -6
  354. package/lib/index.js +9 -5
  355. package/lib/recipes/ApplicationSearchDropdown.stories.js +4 -4
  356. package/lib/recipes/AttributeMappingReadOnlyField.stories.js +5 -5
  357. package/lib/recipes/CollapsiblePanel.stories.js +4 -4
  358. package/lib/recipes/ConditionalFilter.stories.js +22 -22
  359. package/lib/recipes/CountryPicker.stories.js +3 -3
  360. package/lib/recipes/DatePicker.stories.js +5 -47
  361. package/lib/recipes/FlippableCaretMenuButton.stories.js +1 -1
  362. package/lib/recipes/LinkedListView.stories.js +10 -22
  363. package/lib/recipes/ListAndPanel.stories.js +2 -2
  364. package/lib/recipes/LogoTabs.stories.js +1 -1
  365. package/lib/recipes/MaskedValue.stories.js +1 -12
  366. package/lib/recipes/OneWayToBidirectionalArrow.stories.js +2 -2
  367. package/lib/recipes/RowLineChart.stories.js +95 -176
  368. package/lib/recipes/ScrollableListView.stories.js +2 -2
  369. package/lib/recipes/Slider.stories.js +7 -4
  370. package/lib/styles/ColorDocumentation.js +1 -1
  371. package/lib/{components/Checkbox/Checkbox.styles.js → styles/forms/checkbox.js} +0 -0
  372. package/lib/{components/ColorField/ColorField.styles.js → styles/forms/comboBox.js} +9 -8
  373. package/lib/styles/forms/index.js +12 -21
  374. package/lib/{components/Input/Input.styles.js → styles/forms/input.js} +12 -18
  375. package/lib/{components/Label/Label.styles.js → styles/forms/label.js} +1 -1
  376. package/lib/{components/FieldHelperText/FieldHelperText.styles.js → styles/forms/radio.js} +15 -21
  377. package/lib/{components/SearchField/Search.styles.js → styles/forms/search.js} +2 -2
  378. package/lib/{components/SelectField/Select.styles.js → styles/forms/select.js} +3 -3
  379. package/lib/{components/Switch/Switch.styles.js → styles/forms/switch.js} +1 -1
  380. package/lib/styles/forms/textarea.js +25 -0
  381. package/lib/styles/theme.js +4 -4
  382. package/lib/styles/themeOverrides/uiLibraryOverride.js +52 -69
  383. package/lib/styles/themes/astro-nano/astro-nano.js +19 -19
  384. package/lib/styles/variants/accordion.js +82 -0
  385. package/lib/{components/ComboBox/ComboBox.styles.js → styles/variants/bidirectionalIconButton.js} +19 -26
  386. package/lib/styles/variants/boxes.js +418 -0
  387. package/lib/styles/variants/buttons.js +792 -0
  388. package/lib/{components/CodeView/CodeView.styles.js → styles/variants/codeView.js} +0 -0
  389. package/lib/{components/CollapsiblePanel/CollapsiblePanel.styles.js → styles/variants/collapsiblePanel.js} +11 -65
  390. package/lib/styles/variants/imageUpload.js +19 -0
  391. package/lib/{components/Image/Image.styles.js → styles/variants/images.js} +0 -0
  392. package/lib/styles/variants/index.js +6 -25
  393. package/lib/{components/Link/Link.styles.js → styles/variants/links.js} +1 -1
  394. package/lib/{components/ListBox/ListBox.styles.js → styles/variants/listBox.js} +1 -9
  395. package/lib/{components/Loader/Loader.styles.js → styles/variants/loader.js} +0 -0
  396. package/lib/{components/Menu/Menu.styles.js → styles/variants/menu.js} +0 -0
  397. package/lib/{components/MenuItem/MenuItem.styles.js → styles/variants/menuItem.js} +0 -0
  398. package/lib/styles/variants/messages.js +43 -0
  399. package/lib/{components/Modal/Modal.styles.js → styles/variants/modal.js} +14 -10
  400. package/lib/{components/NavBar/NavBar.styles.js → styles/variants/navBar.js} +10 -94
  401. package/lib/{components/NumberField/NumberField.styles.js → styles/variants/numberField.js} +3 -12
  402. package/lib/{components/OverlayPanel/OverlayPanel.styles.js → styles/variants/overlayPanel.js} +6 -6
  403. package/lib/{components/PopoverMenu/PopoverMenu.styles.js → styles/variants/popoverMenu.js} +0 -0
  404. package/lib/styles/variants/rockerbutton.js +15 -0
  405. package/lib/{components/Separator/Separator.styles.js → styles/variants/separator.js} +0 -0
  406. package/lib/{components/Stepper/Stepper.styles.js → styles/variants/stepper.js} +3 -3
  407. package/lib/{components/Table/Table.styles.js → styles/variants/table.js} +15 -15
  408. package/lib/{components/Tabs/Tabs.style.js → styles/variants/tabs.js} +2 -12
  409. package/lib/{components/Text/Text.styles.js → styles/variants/text.js} +196 -3
  410. package/lib/styles/variants/tooltip.js +6 -0
  411. package/lib/styles/variants/variants.js +31 -47
  412. package/lib/utils/devUtils/constants/variants.js +2 -2
  413. package/package.json +54 -24
  414. package/lib/cjs/components/AccordionGridGroup/AccordionGrid.styles.js +0 -85
  415. package/lib/cjs/components/AccordionGroup/Accordion.styles.js +0 -86
  416. package/lib/cjs/components/Badge/Badge.styles.js +0 -191
  417. package/lib/cjs/components/Bracket/Bracket.styles.js +0 -19
  418. package/lib/cjs/components/Breadcrumbs/Breadcrumb.styles.js +0 -65
  419. package/lib/cjs/components/Button/Buttons.styles.js +0 -276
  420. package/lib/cjs/components/Card/Card.styles.js +0 -23
  421. package/lib/cjs/components/CopyText/CopyText.styles.js +0 -69
  422. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles.js +0 -69
  423. package/lib/cjs/components/FileInputField/FileInputField.styles.js +0 -78
  424. package/lib/cjs/components/HelpHint/HelpHint.styles.js +0 -74
  425. package/lib/cjs/components/IconButton/IconButton.styles.js +0 -194
  426. package/lib/cjs/components/ImageUploadField/imageUpload.js +0 -69
  427. package/lib/cjs/components/ListItem/ListItem.styles.js +0 -31
  428. package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +0 -88
  429. package/lib/cjs/components/Messages/Message.styles.js +0 -110
  430. package/lib/cjs/components/Radio/Radio.styles.js +0 -75
  431. package/lib/cjs/components/RockerButton/RockerButton.styles.js +0 -72
  432. package/lib/cjs/components/ScrollBox/ScrollBox.styles.js +0 -53
  433. package/lib/cjs/components/TextArea/TextArea.styles.js +0 -69
  434. package/lib/cjs/components/TimeZonePicker/TimeZone.styles.js +0 -40
  435. package/lib/cjs/components/TooltipTrigger/Tooltip.styles.js +0 -93
  436. package/lib/cjs/styles/theme-ui/ThemeView.js +0 -27
  437. package/lib/cjs/styles/themeOverrides/stories/AccordionGroup.chromatic.stories.js +0 -37
  438. package/lib/cjs/styles/themeOverrides/stories/Button.chromatic.stories.js +0 -72
  439. package/lib/cjs/styles/themeOverrides/stories/EnvironmentBreadcrumb.chromatic.stories.js +0 -145
  440. package/lib/cjs/styles/themeOverrides/stories/IconButton.chromatic.stories.js +0 -49
  441. package/lib/cjs/styles/themeOverrides/stories/Label.chromatic.stories.js +0 -32
  442. package/lib/cjs/styles/themeOverrides/stories/Link.chromatic.stories.js +0 -34
  443. package/lib/cjs/styles/themeOverrides/stories/NavBar.chromatic.stories.js +0 -395
  444. package/lib/cjs/styles/themeOverrides/stories/NumberField.chromatic.stories.js +0 -32
  445. package/lib/cjs/styles/themeOverrides/stories/RockerButtonGroup.chromatic.stories.js +0 -41
  446. package/lib/cjs/styles/themeOverrides/stories/SearchField.chromatic.stories.js +0 -40
  447. package/lib/cjs/styles/themeOverrides/stories/SelectField.chromatic.stories.js +0 -42
  448. package/lib/cjs/utils/devUtils/props/fieldAttributes.js +0 -74
  449. package/lib/components/AccordionGridGroup/AccordionGrid.styles.js +0 -65
  450. package/lib/components/AccordionGroup/Accordion.styles.js +0 -66
  451. package/lib/components/Badge/Badge.styles.js +0 -163
  452. package/lib/components/Badge/index.js +0 -1
  453. package/lib/components/Box/Box.styles.js +0 -6
  454. package/lib/components/Bracket/Bracket.styles.js +0 -9
  455. package/lib/components/Breadcrumbs/Breadcrumb.styles.js +0 -45
  456. package/lib/components/Button/Buttons.styles.js +0 -246
  457. package/lib/components/Card/Card.styles.js +0 -13
  458. package/lib/components/CopyText/CopyText.styles.js +0 -48
  459. package/lib/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles.js +0 -49
  460. package/lib/components/FileInputField/FileInputField.styles.js +0 -58
  461. package/lib/components/HelpHint/HelpHint.styles.js +0 -53
  462. package/lib/components/IconButton/IconButton.styles.js +0 -164
  463. package/lib/components/ImageUploadField/imageUpload.js +0 -49
  464. package/lib/components/ListItem/ListItem.styles.js +0 -21
  465. package/lib/components/ListViewItem/ListViewItem.styles.js +0 -69
  466. package/lib/components/Messages/Message.styles.js +0 -99
  467. package/lib/components/Radio/Radio.styles.js +0 -55
  468. package/lib/components/RockerButton/RockerButton.styles.js +0 -52
  469. package/lib/components/ScrollBox/ScrollBox.styles.js +0 -43
  470. package/lib/components/TextArea/TextArea.styles.js +0 -47
  471. package/lib/components/TimeZonePicker/TimeZone.styles.js +0 -30
  472. package/lib/components/TooltipTrigger/Tooltip.styles.js +0 -71
  473. package/lib/styles/theme-ui/ThemeView.js +0 -9
  474. package/lib/styles/themeOverrides/stories/AccordionGroup.chromatic.stories.js +0 -17
  475. package/lib/styles/themeOverrides/stories/Button.chromatic.stories.js +0 -37
  476. package/lib/styles/themeOverrides/stories/EnvironmentBreadcrumb.chromatic.stories.js +0 -108
  477. package/lib/styles/themeOverrides/stories/IconButton.chromatic.stories.js +0 -25
  478. package/lib/styles/themeOverrides/stories/Label.chromatic.stories.js +0 -12
  479. package/lib/styles/themeOverrides/stories/Link.chromatic.stories.js +0 -14
  480. package/lib/styles/themeOverrides/stories/NavBar.chromatic.stories.js +0 -367
  481. package/lib/styles/themeOverrides/stories/NumberField.chromatic.stories.js +0 -12
  482. package/lib/styles/themeOverrides/stories/RockerButtonGroup.chromatic.stories.js +0 -21
  483. package/lib/styles/themeOverrides/stories/SearchField.chromatic.stories.js +0 -19
  484. package/lib/styles/themeOverrides/stories/SelectField.chromatic.stories.js +0 -21
  485. package/lib/styles/themeOverrides/withUiLibraryCss.js +0 -28
  486. package/lib/utils/devUtils/props/fieldAttributes.js +0 -52
@@ -20,7 +20,6 @@ import { VisuallyHidden } from '@react-aria/visually-hidden';
20
20
  import { v4 as uuid } from 'uuid';
21
21
  import { Item, Menu } from '../../';
22
22
  import { ariaAttributesBasePropTypes } from '../../utils/devUtils/props/ariaAttributes';
23
- import { inputFieldAttributesBasePropTypes } from '../../utils/devUtils/props/fieldAttributes';
24
23
  import ImagePreviewButton from './ImagePreviewButton';
25
24
  import ImageUploadFieldBase from './ImageUploadFieldBase';
26
25
  import statuses from '../../utils/devUtils/constants/statuses';
@@ -101,7 +100,7 @@ var ImageUploadField = /*#__PURE__*/forwardRef(function (props, ref) {
101
100
  id: statusId
102
101
  }, state.isMenuOpen && 'Menu pop up expanded'));
103
102
  });
104
- ImageUploadField.propTypes = _objectSpread(_objectSpread({
103
+ ImageUploadField.propTypes = _objectSpread({
105
104
  /** Image preview (controlled), used to represent the current image state. */
106
105
  previewImage: PropTypes.string,
107
106
 
@@ -150,7 +149,7 @@ ImageUploadField.propTypes = _objectSpread(_objectSpread({
150
149
 
151
150
  /** Determines the helper text styling. */
152
151
  status: PropTypes.oneOf(_Object$values(statuses))
153
- }, ariaAttributesBasePropTypes), inputFieldAttributesBasePropTypes);
152
+ }, ariaAttributesBasePropTypes);
154
153
  ImageUploadField.defaultProps = {
155
154
  fileTypes: ['image'],
156
155
  loaderSize: 10,
@@ -20,7 +20,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
20
20
  import React, { useRef, useState } from 'react';
21
21
  import { Image, ImageUploadField, OverlayProvider } from '../../';
22
22
  import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
23
- import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
24
23
  import statuses from '../../utils/devUtils/constants/statuses';
25
24
  import { jsx as ___EmotionJSX } from "@emotion/react";
26
25
  export default {
@@ -33,7 +32,7 @@ export default {
33
32
  }
34
33
  }
35
34
  },
36
- argTypes: _objectSpread(_objectSpread({
35
+ argTypes: _objectSpread({
37
36
  previewImage: {
38
37
  control: {
39
38
  type: 'text'
@@ -90,7 +89,7 @@ export default {
90
89
  },
91
90
  defaultValue: statuses.DEFAULT
92
91
  }
93
- }, ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes)
92
+ }, ariaAttributeBaseArgTypes)
94
93
  };
95
94
  export var Default = function Default(args) {
96
95
  return (// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
@@ -15,9 +15,9 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
15
15
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
16
16
 
17
17
  import React, { forwardRef, useMemo, useRef } from 'react';
18
- import omit from 'lodash/omit';
19
18
  import PropTypes from 'prop-types';
20
- import { useVisuallyHidden } from 'react-aria';
19
+ import omit from 'lodash/omit';
20
+ import { useVisuallyHidden } from '@react-aria/visually-hidden';
21
21
  import { PopoverMenu } from '../../index';
22
22
  import useField from '../../hooks/useField';
23
23
  import FieldHelperText from '../FieldHelperText';
@@ -40,8 +40,7 @@ var ImageUploadFieldBase = /*#__PURE__*/forwardRef(function (props, inputRef) {
40
40
 
41
41
  var _useField = useField(_objectSpread({}, omit(props, ['onRemove']))),
42
42
  fieldContainerProps = _useField.fieldContainerProps,
43
- fieldControlInputProps = _useField.fieldControlInputProps,
44
- fieldControlWrapperProps = _useField.fieldControlWrapperProps,
43
+ fieldControlProps = _useField.fieldControlProps,
45
44
  fieldLabelProps = _useField.fieldLabelProps;
46
45
 
47
46
  var labelRef = useRef();
@@ -61,14 +60,14 @@ var ImageUploadFieldBase = /*#__PURE__*/forwardRef(function (props, inputRef) {
61
60
  })), ___EmotionJSX(PopoverMenu, {
62
61
  isOpen: isMenuOpen,
63
62
  onOpenChange: handleOpenMenuChange
64
- }, children), ___EmotionJSX(Box, fieldControlWrapperProps, ___EmotionJSX(Input, _extends({}, fieldControlInputProps, visuallyHiddenProps, {
63
+ }, children), ___EmotionJSX(Input, _extends({}, fieldControlProps, visuallyHiddenProps, {
65
64
  accept: acceptableInputTypes,
66
65
  "data-testid": "image-upload-input",
67
66
  onChange: handleInputChange,
68
67
  ref: inputRef,
69
68
  type: "file",
70
69
  value: ""
71
- }))), !isImageType && ___EmotionJSX(FieldHelperText, {
70
+ })), !isImageType && ___EmotionJSX(FieldHelperText, {
72
71
  status: statuses.DEFAULT
73
72
  }, fileName), helperText && ___EmotionJSX(FieldHelperText, {
74
73
  status: status
@@ -3,9 +3,11 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
3
3
  var _excluded = ["className", "isDisabled", "onPress"];
4
4
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { mergeProps, useFocusRing, useLink } from 'react-aria';
7
6
  import { Link as ThemeUILink } from 'theme-ui';
7
+ import { useLink } from '@react-aria/link';
8
+ import { useFocusRing } from '@react-aria/focus';
8
9
  import { useHover, usePress } from '@react-aria/interactions';
10
+ import { mergeProps } from '@react-aria/utils';
9
11
  import { usePropWarning, useStatusClasses } from '../../hooks';
10
12
  /**
11
13
  * Link uses the [Link - Theme-UI](https://theme-ui.com/components/link) component and
@@ -3,7 +3,7 @@ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
3
3
  import React from 'react';
4
4
  import Link from '.';
5
5
  import { htmlElements } from '../../utils/devUtils/constants/htmlElements';
6
- import variants from './Link.styles';
6
+ import variants from '../../styles/variants/links';
7
7
  import { jsx as ___EmotionJSX } from "@emotion/react";
8
8
  export default {
9
9
  title: 'Components/Link',
@@ -21,7 +21,6 @@ import { v4 as uuid } from 'uuid';
21
21
  import { VisuallyHidden } from '@react-aria/visually-hidden';
22
22
  import { Box, Button, Loader, Icon, Text } from '../../';
23
23
  import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/devUtils/props/ariaAttributes';
24
- import { inputFieldAttributesBasePropTypes } from '../../utils/devUtils/props/fieldAttributes';
25
24
  import { usePropWarning, useSelectField } from '../../hooks';
26
25
  import SelectFieldBase from '../SelectFieldBase';
27
26
  import statuses from '../../utils/devUtils/constants/statuses';
@@ -56,20 +55,19 @@ var LinkSelectField = /*#__PURE__*/forwardRef(function (props, ref) {
56
55
  }), ref),
57
56
  selectFieldProps = _extends({}, _useSelectField);
58
57
 
59
- var fieldControlInputProps = selectFieldProps.fieldControlInputProps,
58
+ var fieldControlProps = selectFieldProps.fieldControlProps,
60
59
  isLoadingInitial = selectFieldProps.isLoadingInitial,
61
60
  state = selectFieldProps.state,
62
61
  triggerProps = selectFieldProps.triggerProps,
63
62
  triggerRef = selectFieldProps.triggerRef;
64
63
 
65
64
  var trigger = ___EmotionJSX(Button, _extends({
66
- className: fieldControlInputProps.className,
65
+ className: fieldControlProps.className,
67
66
  ref: triggerRef,
68
67
  variant: "link",
69
- tabIndex: isDisabled ? -1 : 0
70
- }, triggerProps, ariaProps, {
68
+ tabIndex: isDisabled ? -1 : 0,
71
69
  "aria-describedby": helperText && helperTextId
72
- }), ___EmotionJSX(Text, {
70
+ }, triggerProps, ariaProps), ___EmotionJSX(Text, {
73
71
  variant: "label",
74
72
  color: "active"
75
73
  }, placeholder), ___EmotionJSX(Box, {
@@ -94,7 +92,7 @@ var LinkSelectField = /*#__PURE__*/forwardRef(function (props, ref) {
94
92
  trigger: trigger
95
93
  }));
96
94
  });
97
- LinkSelectField.propTypes = _objectSpread(_objectSpread({
95
+ LinkSelectField.propTypes = _objectSpread({
98
96
  /** Alignment of the popover menu relative to the trigger. */
99
97
  align: PropTypes.oneOf(['start', 'end', 'middle']),
100
98
 
@@ -180,8 +178,20 @@ LinkSelectField.propTypes = _objectSpread(_objectSpread({
180
178
  *
181
179
  * (key: Key) => any
182
180
  */
183
- onSelectionChange: PropTypes.func
184
- }, inputFieldAttributesBasePropTypes), ariaAttributesBasePropTypes);
181
+ onSelectionChange: PropTypes.func,
182
+
183
+ /**
184
+ * Props object passed along to `useSelect` from React Aria, `useSelectState` from React Stately,
185
+ * and/or the visible button representation for the select input.
186
+ */
187
+ controlProps: PropTypes.shape({}),
188
+
189
+ /** Props object passed along to the root container as-is. */
190
+ containerProps: PropTypes.shape({}),
191
+
192
+ /** Props object passed along to the label as-is. */
193
+ labelProps: PropTypes.shape({})
194
+ }, ariaAttributesBasePropTypes);
185
195
  LinkSelectField.defaultProps = {
186
196
  placeholder: 'Select',
187
197
  status: statuses.DEFAULT,
@@ -24,11 +24,10 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
24
24
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
25
25
 
26
26
  import React, { useState } from 'react';
27
- import { OverlayProvider } from 'react-aria';
28
- import { useAsyncList } from 'react-stately';
27
+ import { OverlayProvider } from '@react-aria/overlays';
28
+ import { useAsyncList } from '@react-stately/data';
29
29
  import { Box, Item, LinkSelectField, Separator } from '../../';
30
30
  import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
31
- import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
32
31
  import statuses from '../../utils/devUtils/constants/statuses';
33
32
  import { jsx as ___EmotionJSX } from "@emotion/react";
34
33
  export default {
@@ -41,7 +40,7 @@ export default {
41
40
  }
42
41
  }
43
42
  },
44
- argTypes: _objectSpread(_objectSpread({
43
+ argTypes: _objectSpread({
45
44
  label: {
46
45
  control: {
47
46
  type: 'text'
@@ -77,12 +76,13 @@ export default {
77
76
  isDisabled: {},
78
77
  isOpen: {},
79
78
  isRequired: {},
79
+ controlProps: {},
80
80
  selectedKey: {
81
81
  control: {
82
82
  type: 'none'
83
83
  }
84
84
  }
85
- }, ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes)
85
+ }, ariaAttributeBaseArgTypes)
86
86
  };
87
87
  export var Default = function Default(args) {
88
88
  return ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(LinkSelectField, _extends({}, args, {
@@ -0,0 +1,26 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
+ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["children"];
4
+ import React, { forwardRef } from 'react';
5
+ import Box from '../Box/Box';
6
+ import { useDeprecationWarning } from '../../hooks';
7
+ /**
8
+ * The intended use of List is to hold a collection of <ListItem/> components.
9
+ * Accepts most of the styling props from [styled-system](https://styled-system.com/table).
10
+ */
11
+
12
+ import { jsx as ___EmotionJSX } from "@emotion/react";
13
+ var List = /*#__PURE__*/forwardRef(function (props, ref) {
14
+ var children = props.children,
15
+ others = _objectWithoutProperties(props, _excluded);
16
+
17
+ useDeprecationWarning('The List component will be deprecated in Astro-UI 2.0.0, use ListView instead.');
18
+ return ___EmotionJSX(Box, _extends({
19
+ ref: ref,
20
+ role: "list",
21
+ as: "ul",
22
+ pl: "0"
23
+ }, others), children);
24
+ });
25
+ List.displayName = 'List';
26
+ export default List;
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import List from '.';
3
+ import ListItem from '../ListItem';
4
+ import Text from '../Text';
5
+ import Separator from '../Separator';
6
+ import withDeprecationWarning from '../../utils/devUtils/decorators/withDeprecationWarning';
7
+ import { jsx as ___EmotionJSX } from "@emotion/react";
8
+ export default {
9
+ title: 'Deprecated/List',
10
+ component: [List, ListItem],
11
+ decorators: [function (Story, context) {
12
+ return withDeprecationWarning(Story, context, 'The `List` component will be deprecated in Astro-UI 2.0.0, use `ListView` instead.');
13
+ }]
14
+ };
15
+ export var Default = function Default() {
16
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Text, {
17
+ variant: "itemTitle",
18
+ mb: "md",
19
+ color: "text.secondary"
20
+ }, "Registration Forms"), ___EmotionJSX(List, null, ___EmotionJSX(ListItem, null, ___EmotionJSX(Text, {
21
+ variant: "itemTitle",
22
+ alignSelf: "center",
23
+ mr: "auto"
24
+ }, "Form 1")), ___EmotionJSX(Separator, {
25
+ margin: "0"
26
+ }), ___EmotionJSX(ListItem, {
27
+ title: "Form 2"
28
+ }, ___EmotionJSX(Text, {
29
+ variant: "itemTitle",
30
+ alignSelf: "center",
31
+ mr: "auto"
32
+ }, "Form 2")), ___EmotionJSX(Separator, {
33
+ margin: "0"
34
+ }), ___EmotionJSX(ListItem, {
35
+ title: "Form 3"
36
+ }, ___EmotionJSX(Text, {
37
+ variant: "itemTitle",
38
+ alignSelf: "center",
39
+ mr: "auto"
40
+ }, "Form 3")), ___EmotionJSX(Separator, {
41
+ margin: "0"
42
+ })));
43
+ };
@@ -0,0 +1,24 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
+ import React from 'react';
3
+ import { render, screen } from '@testing-library/react';
4
+ import List from './List';
5
+ import axeTest from '../../utils/testUtils/testAxe';
6
+ import { jsx as ___EmotionJSX } from "@emotion/react";
7
+ var testLabel = 'Test Label';
8
+ var defaultProps = {
9
+ title: testLabel
10
+ };
11
+
12
+ var getComponent = function getComponent() {
13
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
+ return render(___EmotionJSX(List, _extends({}, defaultProps, props)));
15
+ }; // Need to be added to each test file to test accessibility using axe.
16
+
17
+
18
+ axeTest(getComponent);
19
+ test('renders List component', function () {
20
+ getComponent();
21
+ var list = screen.getByRole('list');
22
+ expect(list).toBeInstanceOf(HTMLUListElement);
23
+ expect(list).toBeInTheDocument();
24
+ });
@@ -0,0 +1 @@
1
+ export { default } from './List';
@@ -18,11 +18,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
18
18
 
19
19
  import React, { forwardRef, useRef, useImperativeHandle, useMemo } from 'react';
20
20
  import PropTypes from 'prop-types';
21
- import { mergeProps } from 'react-aria';
22
- import { useCollator } from '@react-aria/i18n';
23
21
  import { useListBox } from '@react-aria/listbox';
24
- import { ListLayout } from '@react-stately/layout';
22
+ import { mergeProps } from '@react-aria/utils';
25
23
  import { Virtualizer, VirtualizerItem } from '@react-aria/virtualizer';
24
+ import { useCollator } from '@react-aria/i18n';
25
+ import { ListLayout } from '@react-stately/layout';
26
26
  import { ListBoxContext } from './ListBoxContext';
27
27
  import { Option } from './index.js';
28
28
  import { isIterableProp } from '../../utils/devUtils/props/isIterable';
@@ -3,9 +3,9 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
3
3
  import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
4
4
  import React from 'react';
5
5
  import { axe } from 'jest-axe';
6
- import { Section } from 'react-stately';
7
6
  import { useListState } from '@react-stately/list';
8
7
  import { render, screen } from '@testing-library/react';
8
+ import { Section } from '@react-stately/collections';
9
9
  import userEvent from '@testing-library/user-event';
10
10
  import ListBox from '.';
11
11
  import { Item } from '../../index';
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
2
  import React, { useRef, useContext } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { useLocale } from '@react-aria/i18n';
5
4
  import { useListBoxSection } from '@react-aria/listbox';
5
+ import { useLocale } from '@react-aria/i18n';
6
6
  import { layoutInfoToStyle, useVirtualizerItem } from '@react-aria/virtualizer';
7
7
  import { ListBoxContext } from './ListBoxContext';
8
8
  import Box from '../Box';
@@ -43,7 +43,7 @@ var ListBoxSection = function ListBoxSection(props) {
43
43
  }, groupProps), item.key !== state.collection.getFirstKey() && ___EmotionJSX(Separator, {
44
44
  mt: "0px"
45
45
  }), item.rendered && ___EmotionJSX(Box, _extends({}, headingProps, {
46
- variant: "listBox.sectionTitle"
46
+ variant: "boxes.listBoxSectionTitle"
47
47
  }), item.rendered)), ___EmotionJSX(Box, {
48
48
  style: layoutInfoToStyle(reusableView.layoutInfo, direction)
49
49
  }, children));
@@ -16,9 +16,9 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
16
16
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
17
17
 
18
18
  import React, { forwardRef, useRef, useImperativeHandle, useContext } from 'react';
19
- import CircleSmallIcon from 'mdi-react/CircleSmallIcon';
20
19
  import PropTypes from 'prop-types';
21
20
  import { useOption } from '@react-aria/listbox';
21
+ import CircleSmallIcon from 'mdi-react/CircleSmallIcon';
22
22
  import { useStatusClasses } from '../../hooks';
23
23
  import Box from '../Box';
24
24
  import Icon from '../Icon';
@@ -33,7 +33,7 @@ var ListItem = /*#__PURE__*/forwardRef(function (props, ref) {
33
33
  role: "listitem",
34
34
  ref: ref,
35
35
  as: "li",
36
- variant: "listItem.container",
36
+ variant: "boxes.listItem",
37
37
  isRow: true
38
38
  }, hoverProps, others), children);
39
39
  });
@@ -7,12 +7,13 @@ import _setTimeout from "@babel/runtime-corejs3/core-js-stable/set-timeout";
7
7
  import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
8
8
  import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
9
9
  import React from 'react';
10
- import isChromatic from 'chromatic/isChromatic';
10
+ import { Item } from '@react-stately/collections';
11
11
  import CreateIcon from 'mdi-react/CreateIcon';
12
- import FormSelectIcon from 'mdi-react/FormSelectIcon';
13
12
  import MoreVertIcon from 'mdi-react/MoreVertIcon';
14
- import { Item, useAsyncList } from 'react-stately';
13
+ import FormSelectIcon from 'mdi-react/FormSelectIcon';
14
+ import { useAsyncList } from '@react-stately/data';
15
15
  import { action } from '@storybook/addon-actions';
16
+ import isChromatic from 'chromatic/isChromatic';
16
17
  import ListView from '.';
17
18
  import Box from '../Box/Box';
18
19
  import Icon from '../Icon';
@@ -4,9 +4,9 @@ import _Set from "@babel/runtime-corejs3/core-js-stable/set";
4
4
  import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
5
5
  import React from 'react';
6
6
  import _ from 'lodash';
7
- import { FocusScope } from 'react-aria';
8
- import { Item } from 'react-stately';
9
7
  import userEvent from '@testing-library/user-event';
8
+ import { FocusScope } from '@react-aria/focus';
9
+ import { Item } from '@react-stately/collections';
10
10
  import { render, screen } from '../../utils/testUtils/testWrapper';
11
11
  import loadingStates from '../../utils/devUtils/constants/loadingStates';
12
12
  import ListView from './ListView';
@@ -1,7 +1,8 @@
1
1
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
2
  import React, { useContext, useRef } from 'react';
3
+ import { mergeProps } from '@react-aria/utils';
4
+ import { useFocusRing } from '@react-aria/focus';
3
5
  import PropTypes from 'prop-types';
4
- import { mergeProps, useFocusRing } from 'react-aria';
5
6
  import { useListItem } from '@react-aria/list';
6
7
  import { useHover } from '@react-aria/interactions';
7
8
  import { ListViewContext } from '../ListView/ListViewContext';
@@ -70,9 +71,9 @@ var ListViewItem = function ListViewItem(props) {
70
71
  outline: 'none'
71
72
  }
72
73
  }), ___EmotionJSX(Box, _extends({
73
- as: "div",
74
- variant: "listViewItem.container"
74
+ as: "div"
75
75
  }, gridCellProps, {
76
+ variant: "boxes.listViewItem",
76
77
  isFocused: isDisabled ? false : isFocusVisible,
77
78
  isDisabled: isDisabled,
78
79
  isSelected: isSelected,
@@ -19,9 +19,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
19
19
 
20
20
  import React, { forwardRef, useContext, useImperativeHandle, useRef } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import { mergeProps, useFocusRing, useMenu } from 'react-aria';
23
- import { useTreeState } from 'react-stately';
24
- import { useSyncRef } from '@react-aria/utils';
22
+ import { useMenu } from '@react-aria/menu';
23
+ import { useTreeState } from '@react-stately/tree';
24
+ import { useFocusRing } from '@react-aria/focus';
25
+ import { useSyncRef, mergeProps } from '@react-aria/utils';
25
26
  import { MenuContext } from '../../context/MenuContext';
26
27
  import { usePropWarning } from '../../hooks';
27
28
  import MenuItem from '../MenuItem';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
2
  import React from 'react';
3
- import { Item } from 'react-stately';
3
+ import { Item } from '@react-stately/collections';
4
4
  import Menu from '../Menu';
5
5
  import Text from '../Text';
6
6
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -4,7 +4,8 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
4
4
  var _excluded = ["isSeparator", "isPressed", "data-id"];
5
5
  import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react';
6
6
  import PropTypes from 'prop-types';
7
- import { mergeProps, useMenuItem } from 'react-aria';
7
+ import { mergeProps } from '@react-aria/utils';
8
+ import { useMenuItem } from '@react-aria/menu';
8
9
  import { useFocus, useHover, usePress } from '@react-aria/interactions';
9
10
  import { useMenuContext } from '../../context/MenuContext';
10
11
  import { usePropWarning, useStatusClasses } from '../../hooks';
@@ -103,7 +103,7 @@ var Message = /*#__PURE__*/forwardRef(function (_ref2, ref) {
103
103
  status: status
104
104
  }, messageIconProps));
105
105
  return ___EmotionJSX(Box, {
106
- variant: "message.transition",
106
+ variant: "messages.transition",
107
107
  className: wrapperClasses,
108
108
  sx: {
109
109
  maxHeight: !isHidden ? innerHeight : 0
@@ -117,7 +117,7 @@ var Message = /*#__PURE__*/forwardRef(function (_ref2, ref) {
117
117
  }, ___EmotionJSX(Box, {
118
118
  ref: ref,
119
119
  isRow: true,
120
- variant: "message.item",
120
+ variant: "messages.item",
121
121
  className: statusClasses,
122
122
  bg: bg
123
123
  }, messageIcon, ___EmotionJSX(Text, {
@@ -126,7 +126,7 @@ var Message = /*#__PURE__*/forwardRef(function (_ref2, ref) {
126
126
  mr: "md"
127
127
  }, children), ___EmotionJSX(CloseButton, {
128
128
  onPress: onCloseHandler,
129
- variant: "messageCloseButton",
129
+ variant: "close",
130
130
  className: statusClasses,
131
131
  color: color
132
132
  }))));
@@ -26,7 +26,7 @@ var Messages = /*#__PURE__*/forwardRef(function (props, ref) {
26
26
  var state = useListState(props);
27
27
  return ___EmotionJSX(Box, _extends({
28
28
  ref: ref,
29
- variant: "message.wrapper"
29
+ variant: "messages.wrapper"
30
30
  }, others), _mapInstanceProperty(_context = _Array$from(state.collection)).call(_context, function (item) {
31
31
  return ___EmotionJSX(Message, {
32
32
  key: item.key,
@@ -19,8 +19,8 @@ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
19
19
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
20
20
  import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
21
21
  import React, { useEffect, useReducer, useState } from 'react';
22
+ import { Item } from '@react-stately/collections';
22
23
  import AccountIcon from 'mdi-react/AccountIcon';
23
- import { Item } from 'react-stately';
24
24
  import statuses from '../../utils/devUtils/constants/statuses';
25
25
  import { Box, Button, Messages } from '../..';
26
26
  import { messagesReducerStory as messagesReducer, multiMessagesReducerStory as multiMessagesReducer } from './index';
@@ -3,7 +3,7 @@ import _setTimeout from "@babel/runtime-corejs3/core-js-stable/set-timeout";
3
3
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
4
4
  import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
5
5
  import React from 'react';
6
- import { Item } from 'react-stately';
6
+ import { Item } from '@react-stately/collections';
7
7
  import userEvent from '@testing-library/user-event';
8
8
  import AccountIcon from 'mdi-react/AccountIcon';
9
9
  import axeTest from '../../utils/testUtils/testAxe';
@@ -16,13 +16,16 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
16
16
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
17
17
 
18
18
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
19
- import CloseIcon from 'mdi-react/CloseIcon';
20
19
  import PropTypes from 'prop-types';
21
- import { FocusScope, OverlayContainer, useDialog, useModal, useOverlay, usePreventScroll } from 'react-aria';
20
+ import { useOverlay, usePreventScroll, useModal, OverlayContainer } from '@react-aria/overlays';
21
+ import { useDialog } from '@react-aria/dialog';
22
+ import { FocusScope } from '@react-aria/focus';
23
+ import CloseIcon from 'mdi-react/CloseIcon';
22
24
  import Box from '../Box';
23
25
  import IconButton from '../IconButton';
24
26
  import Icon from '../Icon';
25
27
  import Text from '../Text';
28
+ import { useStatusClasses, useDeprecationWarning } from '../../hooks';
26
29
  /**
27
30
  * Modals are overlays that interrupt a user’s workflow to convey an important message.
28
31
  * The component must be wrapped in an OverlayProvider, and the first child should be a trigger,
@@ -85,7 +88,16 @@ var Modal = /*#__PURE__*/forwardRef(function (props, ref) {
85
88
  dialogProps = _useDialog.dialogProps,
86
89
  titleProps = _useDialog.titleProps;
87
90
 
91
+ var _useStatusClasses = useStatusClasses(className, {
92
+ isDarkMode: others.variant === 'modal.dark'
93
+ }),
94
+ classNames = _useStatusClasses.classNames;
95
+
96
+ useDeprecationWarning('The "dark" variant for Modal will be deprecated in Astro-UI 2.0.0.', {
97
+ isActive: others.variant === 'modal.dark'
98
+ });
88
99
  return ___EmotionJSX(OverlayContainer, null, ___EmotionJSX(Box, _extends({
100
+ className: classNames,
89
101
  variant: "modal.container"
90
102
  }, others, containerProps), ___EmotionJSX(FocusScope, {
91
103
  contain: true,