@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
@@ -5,17 +5,24 @@ import React from 'react';
5
5
  import Clear from 'mdi-react/CloseIcon';
6
6
  import ContentCopy from 'mdi-react/ContentCopyIcon';
7
7
  import Earth from 'mdi-react/EarthIcon';
8
- import Badge from '.';
8
+ import Chip from '.';
9
9
  import Icon from '../Icon';
10
10
  import IconButton from '../IconButton';
11
11
  import Box from '../Box';
12
12
  import { flatColorList } from '../../styles/colors.js';
13
13
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
14
- import BadgeReadme from './Badge.mdx';
14
+ import ChipReadme from './Chip.mdx';
15
15
  import { jsx as ___EmotionJSX } from "@emotion/react";
16
16
  export default {
17
- title: 'Badge',
18
- component: Badge,
17
+ title: 'Components/Chip',
18
+ component: Chip,
19
+ parameters: {
20
+ docs: {
21
+ page: function page() {
22
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ChipReadme, null), ___EmotionJSX(DocsLayout, null));
23
+ }
24
+ }
25
+ },
19
26
  argTypes: {
20
27
  bg: {
21
28
  control: {
@@ -53,16 +60,6 @@ export default {
53
60
  type: 'boolean'
54
61
  }
55
62
  }
56
- },
57
- parameters: {
58
- docs: {
59
- source: {
60
- type: 'code'
61
- },
62
- page: function page() {
63
- return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(BadgeReadme, null), ___EmotionJSX(DocsLayout, null));
64
- }
65
- }
66
63
  }
67
64
  };
68
65
 
@@ -96,38 +93,38 @@ var VariableIcon = function VariableIcon(props) {
96
93
  export var Default = function Default(_ref5) {
97
94
  var args = _extends({}, _ref5);
98
95
 
99
- return ___EmotionJSX(Badge, _extends({
96
+ return ___EmotionJSX(Chip, _extends({
100
97
  label: "Label",
101
98
  color: "white"
102
99
  }, args));
103
100
  };
104
- export var CountBadge = function CountBadge(_ref6) {
101
+ export var CountChip = function CountChip(_ref6) {
105
102
  var args = _extends({}, _ref6);
106
103
 
107
- return ___EmotionJSX(Box, null, ___EmotionJSX(Badge, _extends({
104
+ return ___EmotionJSX(Box, null, ___EmotionJSX(Chip, _extends({
108
105
  color: "white"
109
106
  }, args, {
110
107
  label: "1",
111
- variant: "countBadge",
108
+ variant: "variants.boxes.countChip",
112
109
  mb: "12px"
113
- })), ___EmotionJSX(Badge, _extends({}, args, {
110
+ })), ___EmotionJSX(Chip, _extends({}, args, {
114
111
  label: "1",
115
- variant: "countNeutral"
112
+ variant: "variants.boxes.countNeutral"
116
113
  })));
117
114
  };
118
- export var BadgeWithCustomColors = function BadgeWithCustomColors() {
119
- return ___EmotionJSX(Badge, {
115
+ export var ChipWithCustomColors = function ChipWithCustomColors() {
116
+ return ___EmotionJSX(Chip, {
120
117
  label: "Custom Colors",
121
118
  bg: "green",
122
119
  textColor: "#ffffff"
123
120
  });
124
121
  };
125
- export var BadgeWithIcon = function BadgeWithIcon() {
126
- return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Badge, {
127
- label: "Badge with Icon Button",
122
+ export var ChipWithIcon = function ChipWithIcon() {
123
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Chip, {
124
+ label: "Chip with Icon Button",
128
125
  bg: "navy"
129
126
  }, ___EmotionJSX(IconButton, {
130
- "aria-label": "Clear Badge with Icon Button",
127
+ "aria-label": "Clear Chip with Icon Button",
131
128
  variant: "inverted"
132
129
  }, ___EmotionJSX(Icon, {
133
130
  icon: Clear,
@@ -137,10 +134,10 @@ export var BadgeWithIcon = function BadgeWithIcon() {
137
134
  style: {
138
135
  padding: '5px'
139
136
  }
140
- }), ___EmotionJSX(Badge, {
141
- label: "Badge with Icon Button"
137
+ }), ___EmotionJSX(Chip, {
138
+ label: "Chip with Icon Button"
142
139
  }, ___EmotionJSX(IconButton, {
143
- "aria-label": "Clear Badge with Icon Button",
140
+ "aria-label": "Clear Chip with Icon Button",
144
141
  variant: "inverted"
145
142
  }, ___EmotionJSX(Icon, {
146
143
  icon: Earth,
@@ -150,8 +147,8 @@ export var BadgeWithIcon = function BadgeWithIcon() {
150
147
  style: {
151
148
  padding: '5px'
152
149
  }
153
- }), ___EmotionJSX(Badge, {
154
- label: "Badge with Icon",
150
+ }), ___EmotionJSX(Chip, {
151
+ label: "Chip with Icon",
155
152
  bg: "green"
156
153
  }, ___EmotionJSX(Icon, {
157
154
  icon: ContentCopy,
@@ -162,11 +159,11 @@ export var BadgeWithIcon = function BadgeWithIcon() {
162
159
  focusable: "false"
163
160
  })));
164
161
  };
165
- export var BadgeWithLeftSlotAndIcon = function BadgeWithLeftSlotAndIcon() {
166
- return ___EmotionJSX(Badge, {
162
+ export var ChipWithLeftSlotAndIcon = function ChipWithLeftSlotAndIcon() {
163
+ return ___EmotionJSX(Chip, {
167
164
  label: "Chip with Icon Button and Left Slot",
168
165
  bg: "white",
169
- variant: "itemBadgeWithSlot",
166
+ variant: "variants.boxes.itemChipWithSlot",
170
167
  slots: {
171
168
  leftIcon: ___EmotionJSX(Icon, {
172
169
  icon: VariableIcon,
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
2
  import React from 'react';
3
3
  import { render, screen } from '@testing-library/react';
4
4
  import Earth from 'mdi-react/EarthIcon';
5
- import Badge from './Badge';
5
+ import Chip from '../Chip/Chip';
6
6
  import Button from '../Button/Button';
7
7
  import Icon from '../Icon/Icon';
8
8
  import axeTest from '../../utils/testUtils/testAxe';
@@ -15,17 +15,17 @@ var defaultProps = {
15
15
 
16
16
  var getComponent = function getComponent() {
17
17
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
18
- return render(___EmotionJSX(Badge, _extends({}, defaultProps, props)));
18
+ return render(___EmotionJSX(Chip, _extends({}, defaultProps, props)));
19
19
  }; // Need to be added to each test file to test accessibility using axe.
20
20
 
21
21
 
22
22
  axeTest(getComponent);
23
- test('renders Badge component', function () {
23
+ test('renders Chip component', function () {
24
24
  getComponent();
25
25
  var chip = screen.getByTestId(testId);
26
26
  expect(chip).toBeInTheDocument();
27
27
  });
28
- test('renders children within Badge component', function () {
28
+ test('renders children within Chip component', function () {
29
29
  var children = ___EmotionJSX(Button, null);
30
30
 
31
31
  getComponent({
@@ -34,7 +34,7 @@ test('renders children within Badge component', function () {
34
34
  var mockedChildren = screen.getByRole('button');
35
35
  expect(mockedChildren).toBeInTheDocument();
36
36
  });
37
- test('renders Badge component with uppercase', function () {
37
+ test('renders Chip component with uppercase', function () {
38
38
  var label = 'uppercase';
39
39
  var isUppercase = true;
40
40
  getComponent({
@@ -43,7 +43,7 @@ test('renders Badge component with uppercase', function () {
43
43
  });
44
44
  expect(screen.queryByText('uppercase')).toHaveStyleRule('text-transform', 'uppercase');
45
45
  });
46
- test('renders Badge component with custom alignment', function () {
46
+ test('renders Chip component with custom alignment', function () {
47
47
  var align = 'right';
48
48
  getComponent({
49
49
  align: align
@@ -0,0 +1,38 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
+ import React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import Badge from './Badge';
5
+ import { useDeprecationWarning } from '../../hooks';
6
+ import { jsx as ___EmotionJSX } from "@emotion/react";
7
+ var Chip = /*#__PURE__*/React.forwardRef(function (props, ref) {
8
+ useDeprecationWarning('The Chip component will be deprecated in Astro-UI 2.0.0 and replaced by the `Badge` component instead.');
9
+ return ___EmotionJSX(Badge, _extends({
10
+ ref: ref
11
+ }, props));
12
+ });
13
+ Chip.propTypes = {
14
+ /** The text color of the chip. */
15
+ textColor: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
16
+
17
+ /** The background color of the chip. */
18
+ bg: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
19
+
20
+ /** Provides a way to insert markup in specified places. */
21
+ slots: PropTypes.shape({
22
+ /** The given node will be inserted into left side of the chip. */
23
+ leftIcon: PropTypes.node
24
+ }),
25
+
26
+ /** The label of the chip. */
27
+ label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
28
+
29
+ /** Props object that is spread directly into the textfield. */
30
+ textProps: PropTypes.shape({}),
31
+
32
+ /** When true, display chip label as uppercase. */
33
+ isUppercase: PropTypes.bool,
34
+
35
+ /** Alignment of chip relative to parent container. */
36
+ align: PropTypes.oneOf(['top', 'right', 'bottom', 'left'])
37
+ };
38
+ export default Chip;
@@ -0,0 +1 @@
1
+ export { default } from './Chip';
@@ -25,7 +25,7 @@ import { mergeProps } from '@react-aria/utils';
25
25
  import Highlight, { defaultProps, Prism } from 'prism-react-renderer';
26
26
  import { useStatusClasses } from '../../hooks';
27
27
  import { Box, CopyText } from '../..';
28
- import styles from './CodeView.styles';
28
+ import codeView from '../../styles/variants/codeView';
29
29
  import { jsx as ___EmotionJSX } from "@emotion/react";
30
30
  var CodeView = /*#__PURE__*/forwardRef(function (props, ref) {
31
31
  var children = props.children,
@@ -58,7 +58,7 @@ var CodeView = /*#__PURE__*/forwardRef(function (props, ref) {
58
58
  };
59
59
 
60
60
  var content = ___EmotionJSX(Highlight, _extends({}, defaultProps, {
61
- theme: styles.theme,
61
+ theme: codeView.theme,
62
62
  code: (children === null || children === void 0 ? void 0 : _trimInstanceProperty(children).call(children)) || '',
63
63
  language: language,
64
64
  Prism: customPrism || Prism
@@ -74,7 +74,7 @@ export var WithCustomSize = function WithCustomSize() {
74
74
  height: 300
75
75
  },
76
76
  hasNoCopyButton: true
77
- }, "\nexport const BadgeWithIcon = () => (\n <>\n <Badge label=\"Badge with Icon Button\" bg=\"navy\">\n <IconButton aria-label=\"Clear Badge with Icon Button\" variant=\"inverted\">\n <Icon icon={Clear} ml=\"xs\" size=\"14px\" />\n </IconButton>\n </Badge>\n\n <div style={{ padding: '5px' }} />\n\n <Badge label=\"Badge with Icon Button\">\n <IconButton aria-label=\"Clear Badge with Icon Button\" variant=\"inverted\">\n <Icon icon={Earth} ml=\"xs\" size=\"14px\" />\n </IconButton>\n </Badge>\n\n <div style={{ padding: '5px' }} />\n\n <Badge label=\"Badge with Icon\" bg=\"green\">\n <Icon icon={ContentCopy} ml=\"xs\" size=\"14px\" color=\"white\" />\n </Badge>\n </>\n);\n "));
77
+ }, "\nexport const ChipWithIcon = () => (\n <>\n <Chip label=\"Chip with Icon Button\" bg=\"navy\">\n <IconButton aria-label=\"Clear Chip with Icon Button\" variant=\"inverted\">\n <Icon icon={Clear} ml=\"xs\" size=\"14px\" />\n </IconButton>\n </Chip>\n\n <div style={{ padding: '5px' }} />\n\n <Chip label=\"Chip with Icon Button\">\n <IconButton aria-label=\"Clear Chip with Icon Button\" variant=\"inverted\">\n <Icon icon={Earth} ml=\"xs\" size=\"14px\" />\n </IconButton>\n </Chip>\n\n <div style={{ padding: '5px' }} />\n\n <Chip label=\"Chip with Icon\" bg=\"green\">\n <Icon icon={ContentCopy} ml=\"xs\" size=\"14px\" color=\"white\" />\n </Chip>\n </>\n);\n "));
78
78
  };
79
79
  export var WithAdditionalLanguage = function WithAdditionalLanguage() {
80
80
  var _context;
@@ -3,7 +3,8 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
3
3
  var _excluded = ["selectedFilterCount", "className", "closeAriaLabel", "children", "isDefaultOpen", "isOpen", "items", "listTitle", "onOpenChange", "onSelectionChange", "openAriaLabel"];
4
4
  import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { mergeProps, useFocusRing } from 'react-aria';
6
+ import { useFocusRing } from '@react-aria/focus';
7
+ import { mergeProps } from '@react-aria/utils';
7
8
  import { isIterableProp } from '../../utils/devUtils/props/isIterable';
8
9
  import { useStatusClasses } from '../../hooks';
9
10
  import CollapsiblePanelBadge from '../CollapsiblePanelContainer/CollapsiblePanelBadge';
@@ -51,12 +52,12 @@ var CollapsiblePanel = /*#__PURE__*/forwardRef(function (props, ref) {
51
52
  "data-testid": "collapsible-panel",
52
53
  ref: ref,
53
54
  tabIndex: 0,
54
- variant: "collapsiblePanel.content"
55
+ variant: "collapsiblePanel.collapsiblePanelContent"
55
56
  }, mergedProps, others), ___EmotionJSX(Box, {
56
57
  isRow: true,
57
- variant: "collapsiblePanel.containerTitle"
58
+ variant: "collapsiblePanel.collapsiblePanelContainerTitle"
58
59
  }, ___EmotionJSX(Text, {
59
- variant: "variants.collapsiblePanel.title"
60
+ variant: "collapsiblePanelTitle"
60
61
  }, listTitle), selectedFilterCount && ___EmotionJSX(CollapsiblePanelBadge, {
61
62
  margin: "0",
62
63
  className: "title-badge",
@@ -26,7 +26,7 @@ import SearchIcon from 'mdi-react/SearchIcon';
26
26
  import AccountIcon from 'mdi-react/AccountIcon';
27
27
  import CollapsiblePanel from './CollapsiblePanel';
28
28
  import { useOverlayPanelState } from '../../hooks';
29
- import { Breadcrumbs, Box, Button, CheckboxField, Badge, ListView, Item, Icon, IconButton, CollapsiblePanelItem, OverlayPanel, OverlayProvider, SearchField, Text } from '../../index';
29
+ import { Breadcrumbs, Box, Button, CheckboxField, Chip, ListView, Item, Icon, IconButton, CollapsiblePanelItem, OverlayPanel, OverlayProvider, SearchField, Text } from '../../index';
30
30
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
31
31
  import CollapsiblePanelReadme from './CollapsiblePanel.mdx';
32
32
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -208,7 +208,7 @@ export var CollapsiblePanelWithBadge = function CollapsiblePanelWithBadge(args)
208
208
  "data-id": "home"
209
209
  }, "Ed Nepomuceno"), ___EmotionJSX(Item, {
210
210
  key: "editGroups",
211
- variant: "variants.collapsiblePanel.neutralText",
211
+ variant: "neutralText",
212
212
  "data-id": "editGroups"
213
213
  }, "Edit Groups"))), ___EmotionJSX(Box, {
214
214
  isRow: true
@@ -277,7 +277,7 @@ export var CollapsiblePanelWithBadge = function CollapsiblePanelWithBadge(args)
277
277
  variant: "listTitle",
278
278
  mb: "xs",
279
279
  mr: "xs"
280
- }, item.name), ___EmotionJSX(Badge, {
280
+ }, item.name), ___EmotionJSX(Chip, {
281
281
  label: item.chipValue,
282
282
  bg: "accent.99",
283
283
  textColor: "text.secondary",
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
3
3
  var _excluded = ["selectedFilterCount"];
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import Badge from '../Badge';
6
+ import Chip from '../Chip';
7
7
  /**
8
8
  * The CollapsiblePanelBadge serves as a badge to display selected count.
9
9
  */
@@ -14,7 +14,7 @@ var CollapsiblePanelBadge = function CollapsiblePanelBadge(props) {
14
14
  var selectedFilterCount = props.selectedFilterCount,
15
15
  others = _objectWithoutProperties(props, _excluded);
16
16
 
17
- return ___EmotionJSX(Badge, _extends({
17
+ return ___EmotionJSX(Chip, _extends({
18
18
  as: "span",
19
19
  bg: "neutral.90",
20
20
  label: selectedFilterCount.toString(),
@@ -5,7 +5,7 @@ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import ChevronRightIcon from 'mdi-react/ChevronRightIcon';
7
7
  import ChevronLeftIcon from 'mdi-react/ChevronLeftIcon';
8
- import { useOverlayTriggerState } from 'react-stately';
8
+ import { useOverlayTriggerState } from '@react-stately/overlays';
9
9
  import CollapsiblePanelBadge from './CollapsiblePanelBadge';
10
10
  import { Icon, IconButton, Box } from '../../index';
11
11
  import { useStatusClasses } from '../../hooks';
@@ -57,7 +57,7 @@ var CollapsiblePanelContainer = /*#__PURE__*/forwardRef(function (props, ref) {
57
57
  className: classNames,
58
58
  onKeyUp: handleClose,
59
59
  ref: ref,
60
- variant: "collapsiblePanel.container",
60
+ variant: "collapsiblePanel.collapsiblePanelContainer",
61
61
  isRow: true
62
62
  }, others), ___EmotionJSX(IconButton, {
63
63
  isRow: true,
@@ -65,7 +65,7 @@ var CollapsiblePanelContainer = /*#__PURE__*/forwardRef(function (props, ref) {
65
65
  "data-testid": "collapsible-panel-button",
66
66
  onPress: handleButtonPress,
67
67
  ref: triggerRef,
68
- variant: "toggle",
68
+ variant: "collapsiblePanelToggle",
69
69
  pr: "sm"
70
70
  }, ___EmotionJSX(Icon, {
71
71
  color: "active",
@@ -20,7 +20,7 @@ var CollapsiblePanelItem = /*#__PURE__*/forwardRef(function (props, ref) {
20
20
  isRow: true,
21
21
  ref: ref
22
22
  }, ___EmotionJSX(Text, {
23
- variant: "variants.collapsiblePanel.itemText"
23
+ variant: "collapsiblePanellItem"
24
24
  }, text), iconElement && (isDefaultSelected ? iconElement : ___EmotionJSX(IconButton, {
25
25
  sx: {
26
26
  width: 20,
@@ -16,15 +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 _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys(Object(source), !0)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
17
17
 
18
18
  import React, { forwardRef, useCallback, useImperativeHandle, useRef } from 'react';
19
- import PropTypes from 'prop-types';
20
- import { FocusScope, useOverlayPosition, useOverlayTrigger, useVisuallyHidden, mergeProps } from 'react-aria';
21
- import { ChromePicker } from 'react-color';
22
- import { useOverlayTriggerState } from 'react-stately';
19
+ import { FocusScope } from '@react-aria/focus';
20
+ import { useVisuallyHidden } from '@react-aria/visually-hidden';
23
21
  import { useColorField } from '@react-aria/color';
24
22
  import { useColorFieldState } from '@react-stately/color';
23
+ import { useOverlayTriggerState } from '@react-stately/overlays';
24
+ import { useOverlayPosition, useOverlayTrigger } from '@react-aria/overlays';
25
+ import PropTypes from 'prop-types';
26
+ import { ChromePicker } from 'react-color';
25
27
  import { Box, Button, Input, FieldHelperText, Label } from '../../';
26
28
  import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/devUtils/props/ariaAttributes';
27
- import { inputFieldAttributesBasePropTypes } from '../../utils/devUtils/props/fieldAttributes';
28
29
  import PopoverContainer from '../PopoverContainer';
29
30
  import statuses from '../../utils/devUtils/constants/statuses';
30
31
  import useField from '../../hooks/useField';
@@ -84,8 +85,7 @@ var ColorField = /*#__PURE__*/forwardRef(function (props, ref) {
84
85
  controlProps: _objectSpread(_objectSpread({}, controlProps), raInputProps)
85
86
  })),
86
87
  fieldContainerProps = _useField.fieldContainerProps,
87
- fieldControlInputProps = _useField.fieldControlInputProps,
88
- fieldControlWrapperProps = _useField.fieldControlWrapperProps,
88
+ fieldControlProps = _useField.fieldControlProps,
89
89
  fieldLabelProps = _useField.fieldLabelProps;
90
90
 
91
91
  var _useOverlayPosition = useOverlayPosition({
@@ -98,8 +98,6 @@ var ColorField = /*#__PURE__*/forwardRef(function (props, ref) {
98
98
  shouldUpdatePosition: true
99
99
  }),
100
100
  positionProps = _useOverlayPosition.overlayProps;
101
- /* istanbul ignore next */
102
-
103
101
 
104
102
  var handleButtonPress = useCallback(function () {
105
103
  return popoverState.open();
@@ -120,10 +118,10 @@ var ColorField = /*#__PURE__*/forwardRef(function (props, ref) {
120
118
  bg: getRgbaFromState(state),
121
119
  onPress: handleButtonPress,
122
120
  ref: triggerRef,
123
- variant: "forms.colorField.container"
124
- }, mergeProps(buttonProps, ariaProps, triggerProps))), ___EmotionJSX(Box, fieldControlWrapperProps, ___EmotionJSX(Input, _extends({}, visuallyHiddenProps, fieldControlInputProps, {
121
+ variant: "colorField"
122
+ }, triggerProps, ariaProps, buttonProps)), ___EmotionJSX(Input, _extends({}, visuallyHiddenProps, fieldControlProps, {
125
123
  ref: colorRef
126
- }))), helperText && ___EmotionJSX(FieldHelperText, {
124
+ })), helperText && ___EmotionJSX(FieldHelperText, {
127
125
  status: status
128
126
  }, helperText), ___EmotionJSX(PopoverContainer, _extends({
129
127
  hasNoArrow: true,
@@ -141,7 +139,7 @@ var ColorField = /*#__PURE__*/forwardRef(function (props, ref) {
141
139
  onChange: handleColorChange
142
140
  }))));
143
141
  });
144
- ColorField.propTypes = _objectSpread(_objectSpread({
142
+ ColorField.propTypes = _objectSpread({
145
143
  /** Alignment of the popover menu relative to the trigger. */
146
144
  align: PropTypes.oneOf(['start', 'end', 'middle']),
147
145
 
@@ -167,8 +165,17 @@ ColorField.propTypes = _objectSpread(_objectSpread({
167
165
  value: PropTypes.string,
168
166
 
169
167
  /** Props object that is spread into the Button element. */
170
- buttonProps: PropTypes.shape({})
171
- }, ariaAttributesBasePropTypes), inputFieldAttributesBasePropTypes);
168
+ buttonProps: PropTypes.shape({}),
169
+
170
+ /** Props object that is spread directly into the root (top-level) Box component. */
171
+ containerProps: PropTypes.shape({}),
172
+
173
+ /** Props object that is spread into the input element. */
174
+ controlProps: PropTypes.shape({}),
175
+
176
+ /** Props object that is spread into the label element. */
177
+ labelProps: PropTypes.shape({})
178
+ }, ariaAttributesBasePropTypes);
172
179
  ColorField.defaultProps = {
173
180
  align: 'middle',
174
181
  direction: 'bottom'
@@ -18,7 +18,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
18
18
  import React, { useCallback, useState } from 'react';
19
19
  import { ColorField, OverlayProvider } from '../../';
20
20
  import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
21
- import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
22
21
  import statuses from '../../utils/devUtils/constants/statuses';
23
22
  import { jsx as ___EmotionJSX } from "@emotion/react";
24
23
  export default {
@@ -31,7 +30,7 @@ export default {
31
30
  }
32
31
  }
33
32
  },
34
- argTypes: _objectSpread(_objectSpread({
33
+ argTypes: _objectSpread({
35
34
  value: {
36
35
  control: {
37
36
  type: 'text'
@@ -67,11 +66,26 @@ export default {
67
66
  }
68
67
  },
69
68
  containerProps: {
69
+ control: {
70
+ type: 'none'
71
+ },
72
+ defaultValue: {
73
+ sx: {
74
+ marginLeft: 50
75
+ }
76
+ }
77
+ },
78
+ controlProps: {
79
+ control: {
80
+ type: 'none'
81
+ }
82
+ },
83
+ labelProps: {
70
84
  control: {
71
85
  type: 'none'
72
86
  }
73
87
  }
74
- }, ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes)
88
+ }, ariaAttributeBaseArgTypes)
75
89
  };
76
90
  export var Default = function Default(args) {
77
91
  var _useState = useState('rgba(127, 0, 127, 1)'),
@@ -20,9 +20,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
20
20
 
21
21
  import React, { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import MenuDown from 'mdi-react/MenuDownIcon';
24
- import { FocusRing, mergeProps } from 'react-aria';
23
+ import { FocusRing } from '@react-aria/focus';
25
24
  import { PressResponder, useHover } from '@react-aria/interactions';
25
+ import { mergeProps } from '@react-aria/utils';
26
+ import MenuDown from 'mdi-react/MenuDownIcon';
26
27
  import { Box, Button, Icon, Loader, TextField } from '../../';
27
28
  import { ariaAttributesBasePropTypes } from '../../utils/devUtils/props/ariaAttributes';
28
29
  import { usePropWarning } from '../../hooks';
@@ -51,23 +52,21 @@ var ComboBoxInput = /*#__PURE__*/forwardRef(function (props, ref) {
51
52
  wrapperProps = props.wrapperProps,
52
53
  others = _objectWithoutProperties(props, _excluded);
53
54
 
54
- var _useHover = useHover({}),
55
- hoverProps = _useHover.hoverProps,
56
- isHovered = _useHover.isHovered;
57
-
58
55
  var textFieldProps = _objectSpread({
59
56
  isDisabled: isDisabled,
60
57
  isReadOnly: isReadOnly,
61
- containerProps: _objectSpread(_objectSpread({
62
- sx: style,
63
- variant: 'forms.comboBox.container'
64
- }, hoverProps), containerProps)
58
+ containerProps: containerProps
65
59
  }, mergeProps(inputProps, others)); // istanbul ignore next
66
60
 
67
61
 
68
62
  useImperativeHandle(ref, function () {
69
63
  return inputRef.current;
70
- }); // START - minimum delay time for loading indicator = 500ms
64
+ });
65
+
66
+ var _useHover = useHover({}),
67
+ hoverProps = _useHover.hoverProps,
68
+ isHovered = _useHover.isHovered; // START - minimum delay time for loading indicator = 500ms
69
+
71
70
 
72
71
  var _useState = useState(false),
73
72
  _useState2 = _slicedToArray(_useState, 2),
@@ -107,7 +106,7 @@ var ComboBoxInput = /*#__PURE__*/forwardRef(function (props, ref) {
107
106
 
108
107
  var button = !isReadOnly && ___EmotionJSX(Box, {
109
108
  isRow: true,
110
- variant: "forms.comboBox.inputInContainerSlot"
109
+ variant: "boxes.inputInContainerSlot"
111
110
  }, // Render loader after delay if filtering or loading
112
111
  showLoading && (isOpen || menuTrigger === 'manual' || loadingState === loadingStates.LOADING) && ___EmotionJSX(Loader, {
113
112
  variant: "loader.withinInput"
@@ -115,7 +114,7 @@ var ComboBoxInput = /*#__PURE__*/forwardRef(function (props, ref) {
115
114
  preventFocusOnPress: true,
116
115
  isPressed: isOpen
117
116
  }, ___EmotionJSX(Button, _extends({
118
- variant: "forms.comboBox.button"
117
+ variant: "comboBox"
119
118
  }, triggerProps, {
120
119
  ref: triggerRef,
121
120
  isDisabled: isDisabled || isReadOnly,
@@ -133,10 +132,14 @@ var ComboBoxInput = /*#__PURE__*/forwardRef(function (props, ref) {
133
132
  focusClass: "is-focused",
134
133
  focusRingClass: "focus-ring",
135
134
  autoFocus: hasAutoFocus
136
- }, ___EmotionJSX(TextField, _extends({}, textFieldProps, {
137
- wrapperProps: _objectSpread({
135
+ }, ___EmotionJSX(Box, _extends({
136
+ isRow: true,
137
+ style: style,
138
+ variant: "forms.comboBox.container"
139
+ }, hoverProps, wrapperProps), ___EmotionJSX(TextField, _extends({}, textFieldProps, {
140
+ wrapperProps: {
138
141
  ref: inputWrapperRef
139
- }, wrapperProps),
142
+ },
140
143
  controlProps: _objectSpread({
141
144
  variant: 'forms.comboBox.input'
142
145
  }, controlProps),
@@ -147,7 +150,7 @@ var ComboBoxInput = /*#__PURE__*/forwardRef(function (props, ref) {
147
150
  slots: {
148
151
  inContainer: button
149
152
  }
150
- })));
153
+ }))));
151
154
  });
152
155
  ComboBoxInput.propTypes = _objectSpread({
153
156
  containerProps: PropTypes.shape({}),
@@ -21,11 +21,13 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
21
21
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
22
22
 
23
23
  import React, { useCallback, useRef, useState, forwardRef, useImperativeHandle, useEffect } from 'react';
24
- import PropTypes from 'prop-types';
25
- import { DismissButton, FocusScope, useComboBox, useOverlayPosition } from 'react-aria';
26
- import { useComboBoxState } from 'react-stately';
27
- import { useFilter } from '@react-aria/i18n';
24
+ import { useComboBox } from '@react-aria/combobox';
28
25
  import { useLayoutEffect, useResizeObserver } from '@react-aria/utils';
26
+ import { FocusScope } from '@react-aria/focus';
27
+ import { useFilter } from '@react-aria/i18n';
28
+ import { DismissButton, useOverlayPosition } from '@react-aria/overlays';
29
+ import { useComboBoxState } from '@react-stately/combobox';
30
+ import PropTypes from 'prop-types';
29
31
  import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/devUtils/props/ariaAttributes';
30
32
  import ComboBoxInput from '../ComboBox';
31
33
  import { usePropWarning } from '../../hooks';
@@ -22,9 +22,9 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
22
22
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
23
23
 
24
24
  import React, { useState } from 'react';
25
- import { useAsyncList } from 'react-stately';
26
- import { useFilter } from '@react-aria/i18n';
27
25
  import { action } from '@storybook/addon-actions';
26
+ import { useFilter } from '@react-aria/i18n';
27
+ import { useAsyncList } from '@react-stately/data';
28
28
  import { Item, OverlayProvider, Section } from '../../';
29
29
  import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
30
30
  import ComboBoxField from './ComboBoxField';
@@ -10,10 +10,11 @@ var CopyButton = /*#__PURE__*/forwardRef(function (props, ref) {
10
10
  return ___EmotionJSX(IconButton, _extends({
11
11
  ref: ref,
12
12
  "aria-label": "copy to clipboard",
13
- variant: "copyButton"
13
+ variant: "buttons.copy"
14
14
  }, omit(props, 'iconProps')), ___EmotionJSX(Icon, _extends({
15
15
  icon: ContentCopy,
16
- size: 15
16
+ size: 15,
17
+ color: "text.secondary"
17
18
  }, props === null || props === void 0 ? void 0 : props.iconProps)));
18
19
  });
19
20
  CopyButton.propTypes = {