@pingux/astro 1.42.2 → 2.0.0-alpha.4

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 (1022) hide show
  1. package/CHANGELOG.md +0 -24
  2. package/README.md +25 -2
  3. package/lib/Patterns/AttributeMappingDisplayViewPattern.stories.hidden.js +11 -11
  4. package/lib/Patterns/AttributeMappingEditViewPattern.stories.hidden.js +4 -4
  5. package/lib/Patterns/ListAndPanelPattern.stories.hidden.js +9 -12
  6. package/lib/Patterns/MessagesPattern.stories.hidden.js +3 -7
  7. package/lib/Patterns/SaveBarPattern.stories.hidden.js +5 -6
  8. package/lib/Patterns/UnsavedChangesPattern.stories.hidden.js +12 -20
  9. package/lib/cjs/Patterns/AttributeMappingDisplayViewPattern.stories.hidden.js +10 -20
  10. package/lib/cjs/Patterns/AttributeMappingEditViewPattern.stories.hidden.js +4 -16
  11. package/lib/cjs/Patterns/ListAndPanelPattern.stories.hidden.js +8 -33
  12. package/lib/cjs/Patterns/MessagesPattern.stories.hidden.js +3 -22
  13. package/lib/cjs/Patterns/SaveBarPattern.stories.hidden.js +5 -21
  14. package/lib/cjs/Patterns/UnsavedChangesPattern.stories.hidden.js +11 -34
  15. package/lib/cjs/components/AccordionGridGroup/AccordionGrid.styles.js +70 -0
  16. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +21 -74
  17. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +13 -65
  18. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.test.js +26 -106
  19. package/lib/cjs/components/AccordionGridGroup/index.js +0 -4
  20. package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +27 -61
  21. package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +24 -57
  22. package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +37 -78
  23. package/lib/cjs/components/AccordionGridItem/index.js +0 -4
  24. package/lib/cjs/components/AccordionGroup/Accordion.styles.js +69 -0
  25. package/lib/cjs/components/AccordionGroup/AccordionGroup.js +16 -55
  26. package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +12 -44
  27. package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +30 -129
  28. package/lib/cjs/components/AccordionGroup/index.js +0 -4
  29. package/lib/cjs/components/AccordionItem/AccordionItem.js +42 -77
  30. package/lib/cjs/components/AccordionItem/index.js +0 -4
  31. package/lib/cjs/components/ArrayField/ArrayField.js +43 -113
  32. package/lib/cjs/components/ArrayField/ArrayField.stories.js +11 -46
  33. package/lib/cjs/components/ArrayField/ArrayField.test.js +2 -31
  34. package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.js +3 -14
  35. package/lib/cjs/components/ArrayField/index.js +0 -6
  36. package/lib/cjs/components/AstroWrapper/AstroWrapper.js +19 -48
  37. package/lib/cjs/components/AstroWrapper/AstroWrapper.stories.js +0 -13
  38. package/lib/cjs/components/AstroWrapper/AstroWrapper.test.js +4 -12
  39. package/lib/cjs/components/AstroWrapper/PageWrapper.test.js +6 -13
  40. package/lib/cjs/components/AstroWrapper/index.js +0 -14
  41. package/lib/cjs/components/Avatar/Avatar.js +0 -15
  42. package/lib/cjs/components/Avatar/Avatar.stories.js +3 -15
  43. package/lib/cjs/components/Avatar/Avatar.test.js +2 -15
  44. package/lib/cjs/components/Avatar/index.js +0 -4
  45. package/lib/cjs/components/{Chip → Badge}/Badge.js +15 -55
  46. package/lib/cjs/components/{Chip → Badge}/Badge.stories.js +43 -77
  47. package/lib/cjs/components/Badge/Badge.styles.js +162 -0
  48. package/lib/cjs/components/{Chip → Badge}/Badge.test.js +10 -27
  49. package/lib/cjs/components/{Chip → Badge}/index.js +2 -6
  50. package/lib/cjs/components/Box/Box.js +22 -64
  51. package/lib/cjs/components/Box/Box.stories.js +47 -71
  52. package/lib/cjs/{styles/variants/tooltip.js → components/Box/Box.styles.js} +3 -5
  53. package/lib/cjs/components/Box/Box.test.js +11 -28
  54. package/lib/cjs/components/Box/index.js +0 -4
  55. package/lib/cjs/components/Bracket/Bracket.js +4 -22
  56. package/lib/cjs/components/Bracket/Bracket.stories.js +8 -19
  57. package/lib/cjs/components/Bracket/Bracket.styles.js +17 -0
  58. package/lib/cjs/components/Bracket/Bracket.test.js +3 -13
  59. package/lib/cjs/components/Bracket/index.js +0 -4
  60. package/lib/cjs/components/Breadcrumbs/Breadcrumb.styles.js +50 -0
  61. package/lib/cjs/components/Breadcrumbs/BreadcrumbItem.js +11 -55
  62. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +12 -44
  63. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +5 -21
  64. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.test.js +10 -28
  65. package/lib/cjs/components/Breadcrumbs/index.js +2 -8
  66. package/lib/cjs/components/Button/Button.js +37 -96
  67. package/lib/cjs/components/Button/Button.stories.js +5 -31
  68. package/lib/cjs/components/Button/Button.test.js +6 -43
  69. package/lib/cjs/components/Button/Buttons.styles.js +248 -0
  70. package/lib/cjs/components/Button/constants.js +0 -2
  71. package/lib/cjs/components/Button/index.js +0 -4
  72. package/lib/cjs/components/Callout/Callout.js +3 -19
  73. package/lib/cjs/components/Callout/Callout.stories.js +3 -22
  74. package/lib/cjs/components/Callout/Callout.test.js +0 -20
  75. package/lib/cjs/components/Callout/index.js +0 -4
  76. package/lib/cjs/components/Card/Card.js +35 -69
  77. package/lib/cjs/components/Card/Card.stories.js +1 -17
  78. package/lib/cjs/components/Card/Card.styles.js +21 -0
  79. package/lib/cjs/components/Card/Card.test.js +4 -33
  80. package/lib/cjs/components/Card/index.js +0 -4
  81. package/lib/cjs/components/Checkbox/Checkbox.js +0 -13
  82. package/lib/cjs/{styles/forms/checkbox.js → components/Checkbox/Checkbox.styles.js} +1 -2
  83. package/lib/cjs/components/Checkbox/Checkbox.test.js +5 -13
  84. package/lib/cjs/components/Checkbox/CheckboxBase.js +2 -19
  85. package/lib/cjs/components/Checkbox/index.js +0 -4
  86. package/lib/cjs/components/CheckboxField/CheckboxField.js +31 -94
  87. package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +38 -98
  88. package/lib/cjs/components/CheckboxField/CheckboxField.test.js +24 -60
  89. package/lib/cjs/components/CheckboxField/index.js +0 -4
  90. package/lib/cjs/components/CodeView/CodeView.js +26 -68
  91. package/lib/cjs/components/CodeView/CodeView.stories.js +15 -26
  92. package/lib/cjs/{styles/variants/codeView.js → components/CodeView/CodeView.styles.js} +0 -2
  93. package/lib/cjs/components/CodeView/CodeView.test.js +20 -57
  94. package/lib/cjs/components/CodeView/index.js +0 -4
  95. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.js +34 -69
  96. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +13 -59
  97. package/lib/cjs/{styles/variants/collapsiblePanel.js → components/CollapsiblePanel/CollapsiblePanel.styles.js} +64 -28
  98. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.test.js +2 -14
  99. package/lib/cjs/components/CollapsiblePanel/index.js +0 -4
  100. package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +4 -15
  101. package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.test.js +2 -14
  102. package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.js +20 -51
  103. package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.test.js +2 -31
  104. package/lib/cjs/components/CollapsiblePanelContainer/index.js +0 -4
  105. package/lib/cjs/components/CollapsiblePanelItem/CollapsiblePanelItem.js +4 -20
  106. package/lib/cjs/components/CollapsiblePanelItem/CollapsiblePanelItem.test.js +2 -18
  107. package/lib/cjs/components/CollapsiblePanelItem/index.js +0 -4
  108. package/lib/cjs/components/ColorField/ColorField.js +53 -117
  109. package/lib/cjs/components/ColorField/ColorField.stories.js +13 -56
  110. package/lib/cjs/{styles/forms/comboBox.js → components/ColorField/ColorField.styles.js} +8 -24
  111. package/lib/cjs/components/ColorField/ColorField.test.js +2 -41
  112. package/lib/cjs/components/ColorField/index.js +0 -4
  113. package/lib/cjs/{styles/forms/radio.js → components/ComboBox/ComboBox.styles.js} +25 -34
  114. package/lib/cjs/components/ComboBox/ComboBoxInput.js +49 -89
  115. package/lib/cjs/components/ComboBox/index.js +0 -4
  116. package/lib/cjs/components/ComboBoxField/ComboBoxField.js +67 -162
  117. package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +53 -144
  118. package/lib/cjs/components/ComboBoxField/ComboBoxField.test.js +148 -361
  119. package/lib/cjs/components/ComboBoxField/index.js +0 -4
  120. package/lib/cjs/components/CopyText/CopyButton.js +3 -21
  121. package/lib/cjs/components/CopyText/CopyText.js +36 -81
  122. package/lib/cjs/components/CopyText/CopyText.stories.js +1 -19
  123. package/lib/cjs/components/CopyText/CopyText.styles.js +54 -0
  124. package/lib/cjs/components/CopyText/CopyText.test.js +333 -414
  125. package/lib/cjs/components/CopyText/index.js +0 -4
  126. package/lib/cjs/components/DataTable/DataTable.js +98 -172
  127. package/lib/cjs/components/DataTable/DataTable.stories.js +25 -73
  128. package/lib/cjs/components/DataTable/DataTable.styles.js +3 -21
  129. package/lib/cjs/components/DataTable/DataTable.test.js +88 -228
  130. package/lib/cjs/components/DataTable/{DataTableChip.js → DataTableBadge.js} +6 -21
  131. package/lib/cjs/components/DataTable/{DataTableChip.test.js → DataTableBadge.test.js} +1 -7
  132. package/lib/cjs/components/DataTable/DataTableMenu.js +0 -13
  133. package/lib/cjs/components/DataTable/DataTableMenu.test.js +0 -6
  134. package/lib/cjs/components/DataTable/DataTableMultiLine.js +1 -17
  135. package/lib/cjs/components/DataTable/DataTableMultiLine.test.js +0 -7
  136. package/lib/cjs/components/DataTable/DataTableVirtualizer.js +31 -52
  137. package/lib/cjs/components/DataTable/index.js +5 -17
  138. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +68 -150
  139. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +65 -140
  140. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +28 -98
  141. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles.js +54 -0
  142. package/lib/cjs/components/EnvironmentBreadcrumb/index.js +0 -4
  143. package/lib/cjs/components/FieldHelperText/FieldHelperText.js +5 -28
  144. package/lib/cjs/components/FieldHelperText/FieldHelperText.stories.js +1 -17
  145. package/lib/cjs/{styles/variants/bidirectionalIconButton.js → components/FieldHelperText/FieldHelperText.styles.js} +20 -32
  146. package/lib/cjs/components/FieldHelperText/FieldHelperText.test.js +6 -24
  147. package/lib/cjs/components/FieldHelperText/index.js +0 -4
  148. package/lib/cjs/components/FileInputField/FileInputField.js +51 -123
  149. package/lib/cjs/components/FileInputField/FileInputField.stories.js +23 -67
  150. package/lib/cjs/components/FileInputField/FileInputField.styles.js +63 -0
  151. package/lib/cjs/components/FileInputField/FileInputField.test.js +2 -47
  152. package/lib/cjs/components/FileInputField/FileItem.js +13 -39
  153. package/lib/cjs/components/FileInputField/FileSelect.js +7 -32
  154. package/lib/cjs/components/FileInputField/index.js +0 -4
  155. package/lib/cjs/components/HelpHint/HelpHint.js +7 -29
  156. package/lib/cjs/components/HelpHint/HelpHint.stories.js +2 -16
  157. package/lib/cjs/components/HelpHint/HelpHint.styles.js +59 -0
  158. package/lib/cjs/components/HelpHint/HelpHint.test.js +3 -23
  159. package/lib/cjs/components/HelpHint/index.js +0 -4
  160. package/lib/cjs/components/Icon/Icon.js +4 -32
  161. package/lib/cjs/components/Icon/Icon.stories.js +5 -36
  162. package/lib/cjs/components/Icon/Icon.test.js +4 -21
  163. package/lib/cjs/components/Icon/NoticeIcon.js +2 -23
  164. package/lib/cjs/components/Icon/NoticeIcon.test.js +0 -10
  165. package/lib/cjs/components/Icon/index.js +0 -4
  166. package/lib/cjs/components/IconBadge/IconBadge.js +8 -36
  167. package/lib/cjs/components/IconBadge/IconBadge.stories.js +2 -15
  168. package/lib/cjs/components/IconBadge/IconBadge.test.js +2 -14
  169. package/lib/cjs/components/IconBadge/index.js +0 -4
  170. package/lib/cjs/components/IconButton/IconButton.js +37 -86
  171. package/lib/cjs/components/IconButton/IconButton.stories.js +9 -31
  172. package/lib/cjs/components/IconButton/IconButton.styles.js +165 -0
  173. package/lib/cjs/components/IconButton/IconButton.test.js +6 -53
  174. package/lib/cjs/components/IconButton/index.js +0 -4
  175. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +10 -30
  176. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +4 -26
  177. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.test.js +3 -18
  178. package/lib/cjs/components/IconButtonToggle/index.js +0 -4
  179. package/lib/cjs/components/Image/Image.js +28 -84
  180. package/lib/cjs/components/Image/Image.stories.js +8 -43
  181. package/lib/cjs/{styles/variants/images.js → components/Image/Image.styles.js} +0 -2
  182. package/lib/cjs/components/Image/Image.test.js +5 -41
  183. package/lib/cjs/components/Image/index.js +0 -4
  184. package/lib/cjs/components/ImageUploadField/ImagePreviewButton.js +19 -46
  185. package/lib/cjs/components/ImageUploadField/ImageUploadField.js +12 -59
  186. package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +61 -108
  187. package/lib/cjs/components/ImageUploadField/ImageUploadField.test.js +34 -97
  188. package/lib/cjs/components/ImageUploadField/ImageUploadFieldBase.js +24 -63
  189. package/lib/cjs/components/ImageUploadField/imageUpload.js +52 -0
  190. package/lib/cjs/components/ImageUploadField/index.js +0 -4
  191. package/lib/cjs/components/Input/Input.js +5 -27
  192. package/lib/cjs/components/Input/Input.stories.js +0 -14
  193. package/lib/cjs/{styles/forms/input.js → components/Input/Input.styles.js} +28 -37
  194. package/lib/cjs/components/Input/Input.test.js +3 -25
  195. package/lib/cjs/components/Input/index.js +0 -4
  196. package/lib/cjs/components/Label/Label.js +19 -48
  197. package/lib/cjs/components/Label/Label.stories.js +1 -16
  198. package/lib/cjs/{styles/forms/label.js → components/Label/Label.styles.js} +11 -24
  199. package/lib/cjs/components/Label/Label.test.js +4 -26
  200. package/lib/cjs/components/Label/constants.js +0 -2
  201. package/lib/cjs/components/Label/index.js +0 -4
  202. package/lib/cjs/components/Link/Link.js +24 -58
  203. package/lib/cjs/components/Link/Link.stories.js +6 -18
  204. package/lib/cjs/{styles/variants/links.js → components/Link/Link.styles.js} +3 -20
  205. package/lib/cjs/components/Link/Link.test.js +2 -26
  206. package/lib/cjs/components/Link/index.js +0 -4
  207. package/lib/cjs/components/LinkSelectField/LinkSelectField.js +32 -99
  208. package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +26 -80
  209. package/lib/cjs/components/LinkSelectField/LinkSelectField.test.js +24 -58
  210. package/lib/cjs/components/LinkSelectField/index.js +0 -4
  211. package/lib/cjs/components/ListBox/ListBox.js +41 -83
  212. package/lib/cjs/{styles/variants/listBox.js → components/ListBox/ListBox.styles.js} +11 -18
  213. package/lib/cjs/components/ListBox/ListBox.test.js +20 -45
  214. package/lib/cjs/components/ListBox/ListBoxContext.js +0 -6
  215. package/lib/cjs/components/ListBox/ListBoxSection.js +14 -37
  216. package/lib/cjs/components/ListBox/Option.js +24 -62
  217. package/lib/cjs/components/ListBox/index.js +0 -6
  218. package/lib/cjs/components/ListItem/ListItem.js +22 -69
  219. package/lib/cjs/components/ListItem/ListItem.stories.js +26 -125
  220. package/lib/cjs/components/ListItem/ListItem.styles.js +29 -0
  221. package/lib/cjs/components/ListItem/ListItem.test.js +14 -70
  222. package/lib/cjs/components/ListItem/index.js +0 -4
  223. package/lib/cjs/components/ListView/ListView.js +23 -85
  224. package/lib/cjs/components/ListView/ListView.stories.js +58 -105
  225. package/lib/cjs/components/ListView/ListView.test.js +41 -100
  226. package/lib/cjs/components/ListView/ListViewContext.js +0 -6
  227. package/lib/cjs/components/ListView/index.js +0 -4
  228. package/lib/cjs/components/ListViewItem/ListViewItem.js +42 -75
  229. package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +72 -0
  230. package/lib/cjs/components/ListViewItem/index.js +0 -4
  231. package/lib/cjs/components/Loader/Loader.js +2 -18
  232. package/lib/cjs/components/Loader/Loader.stories.js +2 -17
  233. package/lib/cjs/{styles/variants/loader.js → components/Loader/Loader.styles.js} +0 -22
  234. package/lib/cjs/components/Loader/Loader.test.js +2 -12
  235. package/lib/cjs/components/Loader/index.js +0 -4
  236. package/lib/cjs/components/Menu/Menu.js +25 -92
  237. package/lib/cjs/components/Menu/Menu.stories.js +11 -44
  238. package/lib/cjs/{styles/variants/menu.js → components/Menu/Menu.styles.js} +0 -2
  239. package/lib/cjs/components/Menu/Menu.test.js +20 -67
  240. package/lib/cjs/components/Menu/index.js +0 -4
  241. package/lib/cjs/components/MenuItem/MenuItem.js +50 -91
  242. package/lib/cjs/{styles/variants/menuItem.js → components/MenuItem/MenuItem.styles.js} +0 -2
  243. package/lib/cjs/components/MenuItem/MenuItem.test.js +7 -65
  244. package/lib/cjs/components/MenuItem/index.js +0 -4
  245. package/lib/cjs/components/Messages/Message.js +29 -67
  246. package/lib/cjs/components/Messages/Message.styles.js +108 -0
  247. package/lib/cjs/components/Messages/Messages.js +6 -29
  248. package/lib/cjs/components/Messages/Messages.reducer.js +0 -18
  249. package/lib/cjs/components/Messages/Messages.stories.js +32 -91
  250. package/lib/cjs/components/Messages/Messages.test.js +10 -63
  251. package/lib/cjs/components/Messages/index.js +2 -16
  252. package/lib/cjs/components/Messages/utils/index.js +0 -6
  253. package/lib/cjs/components/Messages/utils/messagesReducer.js +9 -51
  254. package/lib/cjs/components/Messages/utils/multiMessagesReducer.js +7 -43
  255. package/lib/cjs/components/Messages/utils/tests/messagesReducer.test.js +5 -23
  256. package/lib/cjs/components/Messages/utils/tests/multiMessagesReducer.test.js +7 -26
  257. package/lib/cjs/components/Modal/Modal.js +37 -103
  258. package/lib/cjs/components/Modal/Modal.stories.js +2 -12
  259. package/lib/cjs/{styles/variants/modal.js → components/Modal/Modal.styles.js} +13 -33
  260. package/lib/cjs/components/Modal/index.js +0 -4
  261. package/lib/cjs/components/Modal/tests/Modal.integration.test.js +11 -26
  262. package/lib/cjs/components/Modal/tests/Modal.unit.test.js +14 -52
  263. package/lib/cjs/components/MultivaluesField/MultivaluesField.js +92 -215
  264. package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +64 -133
  265. package/lib/cjs/components/MultivaluesField/MultivaluesField.test.js +41 -232
  266. package/lib/cjs/components/MultivaluesField/index.js +0 -4
  267. package/lib/cjs/components/NavBar/NavBar.js +14 -46
  268. package/lib/cjs/components/NavBar/NavBar.stories.js +5 -36
  269. package/lib/cjs/{styles/variants/navBar.js → components/NavBar/NavBar.styles.js} +89 -27
  270. package/lib/cjs/components/NavBar/NavBar.test.js +27 -145
  271. package/lib/cjs/components/NavBar/index.js +0 -4
  272. package/lib/cjs/components/NavBarSection/NavBarItem.js +37 -71
  273. package/lib/cjs/components/NavBarSection/NavBarItemBody.js +10 -34
  274. package/lib/cjs/components/NavBarSection/NavBarItemBody.test.js +2 -9
  275. package/lib/cjs/components/NavBarSection/NavBarItemButton.js +12 -40
  276. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +11 -36
  277. package/lib/cjs/components/NavBarSection/NavBarItemLink.js +12 -41
  278. package/lib/cjs/components/NavBarSection/NavBarSection.js +17 -65
  279. package/lib/cjs/components/NavBarSection/index.js +2 -12
  280. package/lib/cjs/components/NumberField/NumberField.js +46 -115
  281. package/lib/cjs/components/NumberField/NumberField.stories.js +7 -49
  282. package/lib/cjs/{styles/variants/numberField.js → components/NumberField/NumberField.styles.js} +11 -20
  283. package/lib/cjs/components/NumberField/NumberField.test.js +5 -48
  284. package/lib/cjs/components/NumberField/index.js +0 -4
  285. package/lib/cjs/components/OverlayPanel/OverlayPanel.js +17 -50
  286. package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +62 -104
  287. package/lib/cjs/{styles/variants/overlayPanel.js → components/OverlayPanel/OverlayPanel.styles.js} +6 -8
  288. package/lib/cjs/components/OverlayPanel/OverlayPanel.test.js +2 -33
  289. package/lib/cjs/components/OverlayPanel/index.js +0 -4
  290. package/lib/cjs/components/PageHeader/PageHeader.js +5 -22
  291. package/lib/cjs/components/PageHeader/PageHeader.stories.js +4 -15
  292. package/lib/cjs/components/PageHeader/PageHeader.test.js +3 -13
  293. package/lib/cjs/components/PasswordField/PasswordField.js +54 -138
  294. package/lib/cjs/components/PasswordField/PasswordField.stories.js +74 -161
  295. package/lib/cjs/components/PasswordField/PasswordField.test.js +41 -75
  296. package/lib/cjs/components/PasswordField/index.js +0 -4
  297. package/lib/cjs/components/PopoverContainer/PopoverContainer.js +39 -99
  298. package/lib/cjs/components/PopoverContainer/PopoverContainer.test.js +4 -16
  299. package/lib/cjs/components/PopoverContainer/index.js +0 -14
  300. package/lib/cjs/components/PopoverMenu/PopoverMenu.js +35 -84
  301. package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +19 -42
  302. package/lib/cjs/{styles/variants/popoverMenu.js → components/PopoverMenu/PopoverMenu.styles.js} +0 -2
  303. package/lib/cjs/components/PopoverMenu/PopoverMenu.test.js +14 -69
  304. package/lib/cjs/components/PopoverMenu/index.js +0 -4
  305. package/lib/cjs/components/Radio/Radio.js +0 -13
  306. package/lib/cjs/components/Radio/Radio.styles.js +63 -0
  307. package/lib/cjs/components/Radio/index.js +0 -4
  308. package/lib/cjs/components/RadioField/RadioField.js +34 -93
  309. package/lib/cjs/components/RadioField/RadioField.test.js +2 -27
  310. package/lib/cjs/components/RadioField/index.js +0 -14
  311. package/lib/cjs/components/RadioGroupField/RadioGroupField.js +26 -69
  312. package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +5 -43
  313. package/lib/cjs/components/RadioGroupField/RadioGroupField.test.js +22 -55
  314. package/lib/cjs/components/RadioGroupField/index.js +0 -4
  315. package/lib/cjs/components/RequirementsList/RequirementsList.js +5 -33
  316. package/lib/cjs/components/RequirementsList/RequirementsList.stories.js +1 -12
  317. package/lib/cjs/components/RequirementsList/RequirementsList.test.js +13 -26
  318. package/lib/cjs/components/RequirementsList/index.js +0 -4
  319. package/lib/cjs/components/RockerButton/RockerButton.js +19 -52
  320. package/lib/cjs/components/RockerButton/RockerButton.styles.js +55 -0
  321. package/lib/cjs/components/RockerButton/index.js +0 -14
  322. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.js +13 -52
  323. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +12 -37
  324. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.test.js +7 -34
  325. package/lib/cjs/components/RockerButtonGroup/index.js +0 -14
  326. package/lib/cjs/components/ScrollBox/ScrollBox.js +26 -63
  327. package/lib/cjs/components/ScrollBox/ScrollBox.stories.js +1 -12
  328. package/lib/cjs/components/ScrollBox/ScrollBox.styles.js +51 -0
  329. package/lib/cjs/components/ScrollBox/ScrollBox.test.js +0 -24
  330. package/lib/cjs/components/ScrollBox/index.js +0 -4
  331. package/lib/cjs/{styles/forms/search.js → components/SearchField/Search.styles.js} +4 -6
  332. package/lib/cjs/components/SearchField/SearchField.js +35 -116
  333. package/lib/cjs/components/SearchField/SearchField.stories.js +11 -57
  334. package/lib/cjs/components/SearchField/SearchField.test.js +4 -73
  335. package/lib/cjs/components/SearchField/index.js +0 -4
  336. package/lib/cjs/{styles/forms/select.js → components/SelectField/Select.styles.js} +8 -25
  337. package/lib/cjs/components/SelectField/SelectField.js +8 -68
  338. package/lib/cjs/components/SelectField/SelectField.stories.js +28 -90
  339. package/lib/cjs/components/SelectField/SelectField.test.js +13 -43
  340. package/lib/cjs/components/SelectField/index.js +0 -4
  341. package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +38 -93
  342. package/lib/cjs/components/SelectFieldBase/SelectFieldBase.test.js +39 -143
  343. package/lib/cjs/components/SelectFieldBase/index.js +0 -4
  344. package/lib/cjs/components/Separator/Separator.js +10 -32
  345. package/lib/cjs/components/Separator/Separator.stories.js +3 -15
  346. package/lib/cjs/{styles/variants/separator.js → components/Separator/Separator.styles.js} +0 -17
  347. package/lib/cjs/components/Separator/Separator.test.js +2 -13
  348. package/lib/cjs/components/Separator/index.js +0 -4
  349. package/lib/cjs/components/Stepper/Line.js +5 -20
  350. package/lib/cjs/components/Stepper/Step.js +7 -27
  351. package/lib/cjs/components/Stepper/Stepper.constants.js +0 -2
  352. package/lib/cjs/components/Stepper/Stepper.js +12 -49
  353. package/lib/cjs/components/Stepper/Stepper.stories.js +12 -32
  354. package/lib/cjs/{styles/variants/stepper.js → components/Stepper/Stepper.styles.js} +6 -21
  355. package/lib/cjs/components/Stepper/Stepper.test.js +30 -62
  356. package/lib/cjs/components/Stepper/index.js +2 -8
  357. package/lib/cjs/components/Switch/Switch.js +2 -17
  358. package/lib/cjs/{styles/forms/switch.js → components/Switch/Switch.styles.js} +2 -17
  359. package/lib/cjs/components/Switch/index.js +0 -4
  360. package/lib/cjs/components/SwitchField/SwitchField.js +47 -116
  361. package/lib/cjs/components/SwitchField/SwitchField.stories.js +8 -51
  362. package/lib/cjs/components/SwitchField/SwitchField.test.js +2 -44
  363. package/lib/cjs/components/SwitchField/index.js +0 -4
  364. package/lib/cjs/components/Tab/Tab.js +45 -82
  365. package/lib/cjs/components/Tab/index.js +0 -14
  366. package/lib/cjs/components/TabPicker/TabPicker.js +40 -88
  367. package/lib/cjs/components/TabPicker/index.js +0 -4
  368. package/lib/cjs/components/Table/Table.js +3 -13
  369. package/lib/cjs/components/Table/Table.stories.js +4 -22
  370. package/lib/cjs/{styles/variants/table.js → components/Table/Table.styles.js} +15 -32
  371. package/lib/cjs/components/Table/Table.test.js +7 -25
  372. package/lib/cjs/components/Table/index.js +0 -4
  373. package/lib/cjs/components/TableBody/TableBody.js +3 -13
  374. package/lib/cjs/components/TableBody/index.js +0 -4
  375. package/lib/cjs/components/TableCaption/TableCaption.js +3 -13
  376. package/lib/cjs/components/TableCaption/index.js +0 -4
  377. package/lib/cjs/components/TableCell/TableCell.js +4 -15
  378. package/lib/cjs/components/TableCell/TableCell.test.js +4 -19
  379. package/lib/cjs/components/TableCell/index.js +0 -4
  380. package/lib/cjs/components/TableHead/TableHead.js +2 -12
  381. package/lib/cjs/components/TableHead/index.js +0 -4
  382. package/lib/cjs/components/TableRow/TableRow.js +3 -13
  383. package/lib/cjs/components/TableRow/index.js +0 -4
  384. package/lib/cjs/components/Tabs/Tabs.js +21 -81
  385. package/lib/cjs/components/Tabs/Tabs.stories.js +7 -52
  386. package/lib/cjs/{styles/variants/tabs.js → components/Tabs/Tabs.style.js} +15 -19
  387. package/lib/cjs/components/Tabs/Tabs.test.js +87 -180
  388. package/lib/cjs/components/Tabs/index.js +0 -14
  389. package/lib/cjs/components/Text/Text.js +3 -15
  390. package/lib/cjs/components/Text/Text.stories.js +17 -42
  391. package/lib/cjs/{styles/variants/text.js → components/Text/Text.styles.js} +4 -215
  392. package/lib/cjs/components/Text/Text.test.js +11 -38
  393. package/lib/cjs/components/Text/index.js +0 -4
  394. package/lib/cjs/components/TextArea/TextArea.js +3 -14
  395. package/lib/cjs/{styles/forms/textarea.js → components/TextArea/TextArea.styles.js} +28 -20
  396. package/lib/cjs/components/TextArea/TextArea.test.js +3 -13
  397. package/lib/cjs/components/TextArea/index.js +0 -4
  398. package/lib/cjs/components/TextAreaField/TextAreaField.js +34 -104
  399. package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +26 -81
  400. package/lib/cjs/components/TextAreaField/TextAreaField.test.js +4 -43
  401. package/lib/cjs/components/TextAreaField/index.js +0 -4
  402. package/lib/cjs/components/TextField/TextField.js +20 -88
  403. package/lib/cjs/components/TextField/TextField.stories.js +43 -113
  404. package/lib/cjs/components/TextField/TextField.test.js +4 -48
  405. package/lib/cjs/components/TextField/index.js +0 -4
  406. package/lib/cjs/components/TimeZonePicker/TimeZone.styles.js +38 -0
  407. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.js +25 -84
  408. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.stories.js +0 -11
  409. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.test.js +3 -27
  410. package/lib/cjs/components/TimeZonePicker/index.js +0 -4
  411. package/lib/cjs/components/TimeZonePicker/timezones.js +0 -2
  412. package/lib/cjs/components/TooltipTrigger/Tooltip.js +8 -29
  413. package/lib/cjs/components/TooltipTrigger/Tooltip.styles.js +73 -0
  414. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +41 -88
  415. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +7 -40
  416. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.test.js +6 -41
  417. package/lib/cjs/components/TooltipTrigger/index.js +2 -8
  418. package/lib/cjs/context/AccordionContext/index.js +0 -7
  419. package/lib/cjs/context/AccordionGridContext/index.js +0 -6
  420. package/lib/cjs/context/BadgeContext/index.js +0 -4
  421. package/lib/cjs/context/DataTableContext/index.js +0 -12
  422. package/lib/cjs/context/MenuContext/index.js +0 -6
  423. package/lib/cjs/context/NavBarContext/index.js +0 -6
  424. package/lib/cjs/context/TooltipContext/index.js +0 -7
  425. package/lib/cjs/docs/design/ColorDocumentation.stories.js +2 -12
  426. package/lib/cjs/docs/design/ContainerSizes.stories.js +3 -14
  427. package/lib/cjs/docs/design/Spacing.stories.js +4 -21
  428. package/lib/cjs/docs/design/Typography.stories.js +19 -37
  429. package/lib/cjs/docs/theme/ThemeDocumentation.js +0 -9
  430. package/lib/cjs/hooks/index.js +1 -37
  431. package/lib/cjs/hooks/useAriaLabelWarning/index.js +0 -4
  432. package/lib/cjs/hooks/useAriaLabelWarning/useAriaLabelWarning.js +0 -6
  433. package/lib/cjs/hooks/useAriaLabelWarning/useAriaLabelWarning.test.js +1 -5
  434. package/lib/cjs/hooks/useColumnStyles/index.js +0 -4
  435. package/lib/cjs/hooks/useColumnStyles/useColumnStyles.js +3 -12
  436. package/lib/cjs/hooks/useComponentToggle/index.js +0 -4
  437. package/lib/cjs/hooks/useComponentToggle/useComponentToggle.js +7 -21
  438. package/lib/cjs/hooks/useComponentToggle/useComponentToggle.test.js +23 -44
  439. package/lib/cjs/hooks/useCopyToClipboard/index.js +0 -4
  440. package/lib/cjs/hooks/useCopyToClipboard/useCopyToClipboard.js +12 -20
  441. package/lib/cjs/hooks/useCopyToClipboard/useCopyToClipboard.test.js +11 -22
  442. package/lib/cjs/hooks/useDebounce/index.js +0 -4
  443. package/lib/cjs/hooks/useDebounce/useDebounce.js +4 -14
  444. package/lib/cjs/hooks/useDebounce/useDebounce.test.js +14 -18
  445. package/lib/cjs/hooks/useDeprecationWarning/index.js +0 -4
  446. package/lib/cjs/hooks/useDeprecationWarning/useDeprecationWarning.js +7 -18
  447. package/lib/cjs/hooks/useDeprecationWarning/useDeprecationWarning.test.js +9 -20
  448. package/lib/cjs/hooks/useDevelopmentWarning/index.js +0 -4
  449. package/lib/cjs/hooks/useDevelopmentWarning/useDevelopmentWarning.js +1 -6
  450. package/lib/cjs/hooks/useDevelopmentWarning/useDevelopmentWarning.test.js +1 -5
  451. package/lib/cjs/hooks/useFallbackImage/index.js +0 -4
  452. package/lib/cjs/hooks/useFallbackImage/useFallbackImage.js +4 -11
  453. package/lib/cjs/hooks/useFallbackImage/useFallbackImage.test.js +8 -24
  454. package/lib/cjs/hooks/useField/index.js +0 -4
  455. package/lib/cjs/hooks/useField/useField.js +129 -150
  456. package/lib/cjs/hooks/useField/useField.test.js +112 -89
  457. package/lib/cjs/hooks/useImageUploadState/index.js +0 -4
  458. package/lib/cjs/hooks/useImageUploadState/useImageUploadState.js +21 -43
  459. package/lib/cjs/hooks/useLabelHeight/index.js +0 -4
  460. package/lib/cjs/hooks/useLabelHeight/useLabelHeight.js +4 -15
  461. package/lib/cjs/hooks/useModalState/index.js +0 -4
  462. package/lib/cjs/hooks/useModalState/useModalState.js +4 -9
  463. package/lib/cjs/hooks/useModalState/useModalState.test.js +23 -32
  464. package/lib/cjs/hooks/useNavBarPress/index.js +0 -4
  465. package/lib/cjs/hooks/useNavBarPress/useNavBarPress.js +1 -8
  466. package/lib/cjs/hooks/useNavBarPress/useNavBarPress.test.js +16 -23
  467. package/lib/cjs/hooks/useOverlayPanelState/index.js +0 -4
  468. package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.js +4 -13
  469. package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.test.js +5 -8
  470. package/lib/cjs/hooks/useProgressiveState/index.js +0 -4
  471. package/lib/cjs/hooks/useProgressiveState/useProgressiveState.js +0 -7
  472. package/lib/cjs/hooks/useProgressiveState/useProgressiveState.test.js +13 -42
  473. package/lib/cjs/hooks/usePropWarning/index.js +0 -4
  474. package/lib/cjs/hooks/usePropWarning/usePropWarning.js +3 -13
  475. package/lib/cjs/hooks/usePropWarning/usePropWarning.test.js +1 -5
  476. package/lib/cjs/hooks/useRockerButton/index.js +0 -4
  477. package/lib/cjs/hooks/useRockerButton/useRockerButton.js +8 -27
  478. package/lib/cjs/hooks/useSelectField/index.js +0 -4
  479. package/lib/cjs/hooks/useSelectField/useSelectField.js +79 -119
  480. package/lib/cjs/hooks/useStatusClasses/index.js +0 -4
  481. package/lib/cjs/hooks/useStatusClasses/useStatusClasses.js +1 -9
  482. package/lib/cjs/hooks/useStatusClasses/useStatusClasses.test.js +12 -21
  483. package/lib/cjs/hooks/useTShirtSize/index.js +0 -4
  484. package/lib/cjs/hooks/useTShirtSize/useTShirtSize.js +1 -7
  485. package/lib/cjs/hooks/useTShirtSize/useTShirtSize.test.js +10 -20
  486. package/lib/cjs/index.js +187 -573
  487. package/lib/cjs/recipes/ApplicationSearchDropdown.stories.js +26 -73
  488. package/lib/cjs/recipes/Arrow.stories.js +0 -10
  489. package/lib/cjs/recipes/AttributeMappingReadOnlyField.stories.js +9 -25
  490. package/lib/cjs/recipes/AttributesAndPingOneMapping.stories.js +16 -51
  491. package/lib/cjs/recipes/CollapsiblePanel.stories.js +16 -58
  492. package/lib/cjs/recipes/ConditionalFilter.stories.js +24 -39
  493. package/lib/cjs/recipes/CopyToClipboard.stories.js +1 -11
  494. package/lib/cjs/recipes/CountryPicker.stories.js +18 -56
  495. package/lib/cjs/recipes/DatePicker.stories.js +70 -61
  496. package/lib/cjs/recipes/DraggableBox.stories.js +0 -13
  497. package/lib/cjs/recipes/EditableInput.stories.js +32 -80
  498. package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +18 -64
  499. package/lib/cjs/recipes/LinkedListView.stories.js +53 -67
  500. package/lib/cjs/recipes/ListAndPanel.stories.js +66 -159
  501. package/lib/cjs/recipes/LogoTabs.stories.js +9 -42
  502. package/lib/cjs/recipes/MaskedValue.stories.js +21 -33
  503. package/lib/cjs/recipes/NeutralInput.stories.js +0 -9
  504. package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +4 -21
  505. package/lib/cjs/recipes/PageHeader.stories.js +0 -10
  506. package/lib/cjs/recipes/PanelHeader.stories.js +2 -19
  507. package/lib/cjs/recipes/RadioButtonsWithLinks.stories.js +6 -30
  508. package/lib/cjs/recipes/RowLineChart.stories.js +178 -124
  509. package/lib/cjs/recipes/ScrollableListView.stories.js +11 -38
  510. package/lib/cjs/recipes/SelectedFieldOverlay.story.js +0 -12
  511. package/lib/cjs/recipes/Slider.stories.js +32 -78
  512. package/lib/cjs/recipes/StatsCircle.stories.js +0 -11
  513. package/lib/cjs/recipes/TrialExperienceIndustryButtons.stories.js +1 -25
  514. package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +13 -51
  515. package/lib/cjs/styles/ColorDocumentation.js +49 -93
  516. package/lib/cjs/styles/breakpoints.js +0 -2
  517. package/lib/cjs/styles/colors.js +15 -39
  518. package/lib/cjs/styles/forms/index.js +22 -41
  519. package/lib/cjs/styles/spacing.js +1 -3
  520. package/lib/cjs/styles/templates/Nav/HeaderBar.js +4 -26
  521. package/lib/cjs/styles/templates/Nav/Nav.stories.js +19 -39
  522. package/lib/cjs/styles/templates/Nav/NavData.js +4 -24
  523. package/lib/cjs/styles/text.js +0 -9
  524. package/lib/cjs/styles/theme-ui/ThemeView.js +18 -0
  525. package/lib/cjs/styles/theme.js +6 -30
  526. package/lib/cjs/styles/themeOverrides/index.js +2 -6
  527. package/lib/cjs/styles/themeOverrides/stories/AccordionGroup.chromatic.stories.js +27 -0
  528. package/lib/cjs/styles/themeOverrides/stories/Button.chromatic.stories.js +52 -0
  529. package/lib/cjs/styles/themeOverrides/stories/EnvironmentBreadcrumb.chromatic.stories.js +114 -0
  530. package/lib/cjs/styles/themeOverrides/stories/IconButton.chromatic.stories.js +36 -0
  531. package/lib/cjs/styles/themeOverrides/stories/Label.chromatic.stories.js +22 -0
  532. package/lib/cjs/styles/themeOverrides/stories/Link.chromatic.stories.js +24 -0
  533. package/lib/cjs/styles/themeOverrides/stories/NavBar.chromatic.stories.js +373 -0
  534. package/lib/cjs/styles/themeOverrides/stories/NumberField.chromatic.stories.js +22 -0
  535. package/lib/cjs/styles/themeOverrides/stories/RockerButtonGroup.chromatic.stories.js +31 -0
  536. package/lib/cjs/styles/themeOverrides/stories/SearchField.chromatic.stories.js +28 -0
  537. package/lib/cjs/styles/themeOverrides/stories/SelectField.chromatic.stories.js +31 -0
  538. package/lib/cjs/styles/themeOverrides/uiLibraryOverride.js +69 -67
  539. package/lib/cjs/{components/List/List.js → styles/themeOverrides/withUiLibraryCss.js} +23 -38
  540. package/lib/cjs/styles/themes/astro-nano/astro-nano.js +20 -39
  541. package/lib/cjs/styles/themes/astro-nano/index.js +0 -4
  542. package/lib/cjs/styles/themes/end-user/end-user.js +1 -22
  543. package/lib/cjs/styles/themes/end-user/index.js +0 -4
  544. package/lib/cjs/styles/useAstroTheme.js +0 -11
  545. package/lib/cjs/styles/variants/callout.js +0 -18
  546. package/lib/cjs/styles/variants/index.js +38 -41
  547. package/lib/cjs/styles/variants/variants.js +63 -91
  548. package/lib/cjs/utils/devUtils/constants/animals.js +0 -2
  549. package/lib/cjs/utils/devUtils/constants/firstNames.js +0 -2
  550. package/lib/cjs/utils/devUtils/constants/htmlElements.js +1 -3
  551. package/lib/cjs/utils/devUtils/constants/images.js +0 -2
  552. package/lib/cjs/utils/devUtils/constants/loadingStates.js +0 -2
  553. package/lib/cjs/utils/devUtils/constants/orientation.js +0 -2
  554. package/lib/cjs/utils/devUtils/constants/panelSizes.js +0 -2
  555. package/lib/cjs/utils/devUtils/constants/statuses.js +0 -2
  556. package/lib/cjs/utils/devUtils/constants/tShirtSizes.js +0 -2
  557. package/lib/cjs/utils/devUtils/constants/text.js +0 -2
  558. package/lib/cjs/utils/devUtils/constants/variants.js +5 -15
  559. package/lib/cjs/utils/devUtils/createMockData.js +0 -31
  560. package/lib/cjs/utils/devUtils/decorators/withDeprecationWarning.js +1 -11
  561. package/lib/cjs/utils/devUtils/props/ariaAttributes.js +2 -28
  562. package/lib/cjs/utils/devUtils/props/ariaAttributes.test.js +4 -22
  563. package/lib/cjs/utils/devUtils/props/{hoverProps.js → fieldAttributes.js} +30 -40
  564. package/lib/cjs/utils/devUtils/props/isIterable.js +6 -21
  565. package/lib/cjs/utils/devUtils/props/isValidPositiveInt.js +2 -13
  566. package/lib/cjs/utils/devUtils/styledSystemUtils.js +8 -32
  567. package/lib/cjs/utils/styleUtils/index.js +0 -4
  568. package/lib/cjs/utils/testUtils/setupTests.js +5 -11
  569. package/lib/cjs/utils/testUtils/testAxe.js +15 -19
  570. package/lib/cjs/utils/testUtils/testTheme.js +0 -2
  571. package/lib/cjs/utils/testUtils/testWrapper.js +13 -39
  572. package/lib/components/AccordionGridGroup/AccordionGrid.styles.js +62 -0
  573. package/lib/components/AccordionGridGroup/AccordionGridGroup.js +16 -38
  574. package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +11 -38
  575. package/lib/components/AccordionGridGroup/AccordionGridGroup.test.js +18 -12
  576. package/lib/components/AccordionGridItem/AccordionGridItem.js +26 -36
  577. package/lib/components/AccordionGridItem/AccordionGridItemBody.js +23 -34
  578. package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +35 -51
  579. package/lib/components/AccordionGroup/Accordion.styles.js +61 -0
  580. package/lib/components/AccordionGroup/AccordionGroup.js +16 -28
  581. package/lib/components/AccordionGroup/AccordionGroup.stories.js +6 -7
  582. package/lib/components/AccordionGroup/AccordionGroup.test.js +13 -21
  583. package/lib/components/AccordionItem/AccordionItem.js +41 -52
  584. package/lib/components/ArrayField/ArrayField.js +42 -73
  585. package/lib/components/ArrayField/ArrayField.stories.js +8 -18
  586. package/lib/components/ArrayField/ArrayField.test.js +2 -5
  587. package/lib/components/ArrayField/ArrayFieldDeleteButton.js +3 -5
  588. package/lib/components/AstroWrapper/AstroWrapper.js +17 -26
  589. package/lib/components/AstroWrapper/AstroWrapper.test.js +4 -4
  590. package/lib/components/AstroWrapper/PageWrapper.test.js +7 -6
  591. package/lib/components/Avatar/Avatar.js +0 -1
  592. package/lib/components/Avatar/Avatar.stories.js +3 -3
  593. package/lib/components/Avatar/Avatar.test.js +2 -3
  594. package/lib/components/{Chip → Badge}/Badge.js +15 -28
  595. package/lib/components/{Chip → Badge}/Badge.stories.js +45 -53
  596. package/lib/components/Badge/Badge.styles.js +150 -0
  597. package/lib/components/{Chip → Badge}/Badge.test.js +8 -12
  598. package/lib/components/Badge/index.js +1 -0
  599. package/lib/components/Box/Box.js +16 -33
  600. package/lib/components/Box/Box.stories.js +7 -11
  601. package/lib/components/Box/Box.styles.js +6 -0
  602. package/lib/components/Box/Box.test.js +7 -7
  603. package/lib/components/Bracket/Bracket.js +5 -7
  604. package/lib/components/Bracket/Bracket.stories.js +8 -7
  605. package/lib/components/Bracket/Bracket.styles.js +9 -0
  606. package/lib/components/Bracket/Bracket.test.js +3 -4
  607. package/lib/components/Breadcrumbs/Breadcrumb.styles.js +42 -0
  608. package/lib/components/Breadcrumbs/BreadcrumbItem.js +10 -30
  609. package/lib/components/Breadcrumbs/Breadcrumbs.js +11 -21
  610. package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +2 -3
  611. package/lib/components/Breadcrumbs/Breadcrumbs.test.js +7 -8
  612. package/lib/components/Breadcrumbs/index.js +2 -2
  613. package/lib/components/Button/Button.js +36 -68
  614. package/lib/components/Button/Button.stories.js +7 -6
  615. package/lib/components/Button/Button.test.js +6 -5
  616. package/lib/components/Button/Buttons.styles.js +234 -0
  617. package/lib/components/Callout/Callout.js +3 -6
  618. package/lib/components/Callout/Callout.stories.js +6 -4
  619. package/lib/components/Callout/Callout.test.js +0 -4
  620. package/lib/components/Card/Card.js +35 -49
  621. package/lib/components/Card/Card.stories.js +1 -1
  622. package/lib/components/Card/Card.styles.js +13 -0
  623. package/lib/components/Card/Card.test.js +4 -8
  624. package/lib/components/Checkbox/Checkbox.js +1 -1
  625. package/lib/{styles/forms/checkbox.js → components/Checkbox/Checkbox.styles.js} +1 -0
  626. package/lib/components/Checkbox/Checkbox.test.js +5 -6
  627. package/lib/components/Checkbox/CheckboxBase.js +3 -5
  628. package/lib/components/CheckboxField/CheckboxField.js +31 -66
  629. package/lib/components/CheckboxField/CheckboxField.stories.js +37 -60
  630. package/lib/components/CheckboxField/CheckboxField.test.js +23 -23
  631. package/lib/components/CodeView/CodeView.js +25 -37
  632. package/lib/components/CodeView/CodeView.stories.js +15 -7
  633. package/lib/components/CodeView/CodeView.test.js +20 -24
  634. package/lib/components/CollapsiblePanel/CollapsiblePanel.js +25 -39
  635. package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +15 -23
  636. package/lib/{styles/variants/collapsiblePanel.js → components/CollapsiblePanel/CollapsiblePanel.styles.js} +61 -14
  637. package/lib/components/CollapsiblePanel/CollapsiblePanel.test.js +2 -3
  638. package/lib/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +4 -7
  639. package/lib/components/CollapsiblePanelContainer/CollapsiblePanelBadge.test.js +2 -3
  640. package/lib/components/CollapsiblePanelContainer/CollapsiblePanelContainer.js +19 -29
  641. package/lib/components/CollapsiblePanelContainer/CollapsiblePanelContainer.test.js +2 -3
  642. package/lib/components/CollapsiblePanelItem/CollapsiblePanelItem.js +4 -9
  643. package/lib/components/CollapsiblePanelItem/CollapsiblePanelItem.test.js +2 -3
  644. package/lib/components/ColorField/ColorField.js +48 -77
  645. package/lib/components/ColorField/ColorField.stories.js +13 -31
  646. package/lib/{styles/forms/comboBox.js → components/ColorField/ColorField.styles.js} +8 -12
  647. package/lib/components/ColorField/ColorField.test.js +2 -18
  648. package/lib/{styles/variants/bidirectionalIconButton.js → components/ComboBox/ComboBox.styles.js} +24 -22
  649. package/lib/components/ComboBox/ComboBoxInput.js +48 -57
  650. package/lib/components/ComboBoxField/ComboBoxField.js +63 -121
  651. package/lib/components/ComboBoxField/ComboBoxField.stories.js +52 -70
  652. package/lib/components/ComboBoxField/ComboBoxField.test.js +153 -159
  653. package/lib/components/CopyText/CopyButton.js +3 -4
  654. package/lib/components/CopyText/CopyText.js +31 -57
  655. package/lib/components/CopyText/CopyText.stories.js +1 -1
  656. package/lib/components/CopyText/CopyText.styles.js +45 -0
  657. package/lib/components/CopyText/CopyText.test.js +333 -372
  658. package/lib/components/DataTable/DataTable.js +84 -125
  659. package/lib/components/DataTable/DataTable.stories.js +23 -34
  660. package/lib/components/DataTable/DataTable.styles.js +1 -8
  661. package/lib/components/DataTable/DataTable.test.js +83 -173
  662. package/lib/components/DataTable/{DataTableChip.js → DataTableBadge.js} +6 -6
  663. package/lib/components/DataTable/{DataTableChip.test.js → DataTableBadge.test.js} +2 -4
  664. package/lib/components/DataTable/DataTableMenu.test.js +0 -2
  665. package/lib/components/DataTable/DataTableMultiLine.js +1 -2
  666. package/lib/components/DataTable/DataTableMultiLine.test.js +0 -2
  667. package/lib/components/DataTable/DataTableVirtualizer.js +31 -35
  668. package/lib/components/DataTable/index.js +3 -3
  669. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +63 -106
  670. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +65 -103
  671. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +23 -26
  672. package/lib/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles.js +46 -0
  673. package/lib/components/FieldHelperText/FieldHelperText.js +6 -9
  674. package/lib/components/FieldHelperText/FieldHelperText.stories.js +1 -1
  675. package/lib/{styles/forms/textarea.js → components/FieldHelperText/FieldHelperText.styles.js} +21 -12
  676. package/lib/components/FieldHelperText/FieldHelperText.test.js +6 -12
  677. package/lib/components/FileInputField/FileInputField.js +50 -83
  678. package/lib/components/FileInputField/FileInputField.stories.js +14 -20
  679. package/lib/components/FileInputField/FileInputField.styles.js +55 -0
  680. package/lib/components/FileInputField/FileInputField.test.js +2 -7
  681. package/lib/components/FileInputField/FileItem.js +13 -20
  682. package/lib/components/FileInputField/FileSelect.js +7 -14
  683. package/lib/components/HelpHint/HelpHint.js +7 -12
  684. package/lib/components/HelpHint/HelpHint.stories.js +2 -2
  685. package/lib/components/HelpHint/HelpHint.styles.js +50 -0
  686. package/lib/components/HelpHint/HelpHint.test.js +3 -4
  687. package/lib/components/Icon/Icon.js +4 -11
  688. package/lib/components/Icon/Icon.stories.js +5 -7
  689. package/lib/components/Icon/Icon.test.js +3 -4
  690. package/lib/components/Icon/NoticeIcon.js +2 -5
  691. package/lib/components/Icon/NoticeIcon.test.js +0 -2
  692. package/lib/components/IconBadge/IconBadge.js +8 -18
  693. package/lib/components/IconBadge/IconBadge.stories.js +2 -2
  694. package/lib/components/IconBadge/IconBadge.test.js +3 -6
  695. package/lib/components/IconButton/IconButton.js +37 -59
  696. package/lib/components/IconButton/IconButton.stories.js +10 -9
  697. package/lib/components/IconButton/IconButton.styles.js +155 -0
  698. package/lib/components/IconButton/IconButton.test.js +6 -7
  699. package/lib/components/IconButtonToggle/IconButtonToggle.js +10 -20
  700. package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +4 -6
  701. package/lib/components/IconButtonToggle/IconButtonToggle.test.js +3 -7
  702. package/lib/components/Image/Image.js +30 -60
  703. package/lib/components/Image/Image.stories.js +8 -10
  704. package/lib/components/Image/Image.test.js +5 -13
  705. package/lib/components/ImageUploadField/ImagePreviewButton.js +17 -27
  706. package/lib/components/ImageUploadField/ImageUploadField.js +13 -32
  707. package/lib/components/ImageUploadField/ImageUploadField.stories.js +61 -71
  708. package/lib/components/ImageUploadField/ImageUploadField.test.js +34 -44
  709. package/lib/components/ImageUploadField/ImageUploadFieldBase.js +19 -29
  710. package/lib/components/ImageUploadField/imageUpload.js +44 -0
  711. package/lib/components/Input/Input.js +4 -11
  712. package/lib/{styles/forms/input.js → components/Input/Input.styles.js} +26 -19
  713. package/lib/components/Input/Input.test.js +3 -4
  714. package/lib/components/Label/Label.js +18 -28
  715. package/lib/components/Label/Label.stories.js +1 -1
  716. package/lib/{styles/forms/label.js → components/Label/Label.styles.js} +9 -8
  717. package/lib/components/Label/Label.test.js +4 -7
  718. package/lib/components/Link/Link.js +22 -37
  719. package/lib/components/Link/Link.stories.js +5 -5
  720. package/lib/{styles/variants/links.js → components/Link/Link.styles.js} +1 -6
  721. package/lib/components/Link/Link.test.js +2 -3
  722. package/lib/components/LinkSelectField/LinkSelectField.js +32 -73
  723. package/lib/components/LinkSelectField/LinkSelectField.stories.js +22 -29
  724. package/lib/components/LinkSelectField/LinkSelectField.test.js +24 -21
  725. package/lib/components/ListBox/ListBox.js +41 -49
  726. package/lib/{styles/variants/listBox.js → components/ListBox/ListBox.styles.js} +9 -4
  727. package/lib/components/ListBox/ListBox.test.js +17 -15
  728. package/lib/components/ListBox/ListBoxSection.js +15 -20
  729. package/lib/components/ListBox/Option.js +25 -36
  730. package/lib/components/ListItem/ListItem.js +21 -45
  731. package/lib/components/ListItem/ListItem.stories.js +8 -74
  732. package/lib/components/ListItem/ListItem.styles.js +21 -0
  733. package/lib/components/ListItem/ListItem.test.js +14 -50
  734. package/lib/components/ListView/ListView.js +24 -53
  735. package/lib/components/ListView/ListView.stories.js +30 -48
  736. package/lib/components/ListView/ListView.test.js +36 -49
  737. package/lib/components/ListViewItem/ListViewItem.js +39 -53
  738. package/lib/components/ListViewItem/ListViewItem.styles.js +64 -0
  739. package/lib/components/Loader/Loader.js +2 -4
  740. package/lib/components/Loader/Loader.stories.js +2 -3
  741. package/lib/{styles/variants/loader.js → components/Loader/Loader.styles.js} +0 -9
  742. package/lib/components/Loader/Loader.test.js +2 -3
  743. package/lib/components/Menu/Menu.js +20 -55
  744. package/lib/components/Menu/Menu.stories.js +6 -21
  745. package/lib/components/Menu/Menu.test.js +21 -15
  746. package/lib/components/MenuItem/MenuItem.js +48 -69
  747. package/lib/components/MenuItem/MenuItem.test.js +8 -13
  748. package/lib/components/Messages/Message.js +30 -46
  749. package/lib/components/Messages/Message.styles.js +99 -0
  750. package/lib/components/Messages/Messages.js +6 -9
  751. package/lib/components/Messages/Messages.reducer.js +0 -6
  752. package/lib/components/Messages/Messages.stories.js +20 -38
  753. package/lib/components/Messages/Messages.test.js +7 -18
  754. package/lib/components/Messages/index.js +2 -2
  755. package/lib/components/Messages/utils/messagesReducer.js +10 -26
  756. package/lib/components/Messages/utils/multiMessagesReducer.js +8 -20
  757. package/lib/components/Messages/utils/tests/messagesReducer.test.js +6 -10
  758. package/lib/components/Messages/utils/tests/multiMessagesReducer.test.js +8 -13
  759. package/lib/components/Modal/Modal.js +32 -69
  760. package/lib/components/Modal/Modal.stories.js +3 -2
  761. package/lib/{styles/variants/modal.js → components/Modal/Modal.styles.js} +10 -19
  762. package/lib/components/Modal/tests/Modal.integration.test.js +13 -12
  763. package/lib/components/Modal/tests/Modal.unit.test.js +16 -22
  764. package/lib/components/MultivaluesField/MultivaluesField.js +91 -175
  765. package/lib/components/MultivaluesField/MultivaluesField.stories.js +64 -92
  766. package/lib/components/MultivaluesField/MultivaluesField.test.js +41 -48
  767. package/lib/components/NavBar/NavBar.js +14 -27
  768. package/lib/components/NavBar/NavBar.stories.js +5 -11
  769. package/lib/{styles/variants/navBar.js → components/NavBar/NavBar.styles.js} +89 -15
  770. package/lib/components/NavBar/NavBar.test.js +12 -28
  771. package/lib/components/NavBarSection/NavBarItem.js +35 -49
  772. package/lib/components/NavBarSection/NavBarItemBody.js +11 -20
  773. package/lib/components/NavBarSection/NavBarItemBody.test.js +2 -5
  774. package/lib/components/NavBarSection/NavBarItemButton.js +13 -23
  775. package/lib/components/NavBarSection/NavBarItemHeader.js +11 -21
  776. package/lib/components/NavBarSection/NavBarItemLink.js +13 -24
  777. package/lib/components/NavBarSection/NavBarSection.js +17 -49
  778. package/lib/components/NavBarSection/index.js +2 -2
  779. package/lib/components/NumberField/NumberField.js +43 -80
  780. package/lib/components/NumberField/NumberField.stories.js +7 -10
  781. package/lib/{styles/variants/numberField.js → components/NumberField/NumberField.styles.js} +11 -8
  782. package/lib/components/NumberField/NumberField.test.js +5 -6
  783. package/lib/components/OverlayPanel/OverlayPanel.js +18 -31
  784. package/lib/components/OverlayPanel/OverlayPanel.stories.js +56 -73
  785. package/lib/{styles/variants/overlayPanel.js → components/OverlayPanel/OverlayPanel.styles.js} +6 -6
  786. package/lib/components/OverlayPanel/OverlayPanel.test.js +2 -3
  787. package/lib/components/PageHeader/PageHeader.js +5 -6
  788. package/lib/components/PageHeader/PageHeader.stories.js +4 -4
  789. package/lib/components/PageHeader/PageHeader.test.js +3 -4
  790. package/lib/components/PasswordField/PasswordField.js +54 -104
  791. package/lib/components/PasswordField/PasswordField.stories.js +74 -112
  792. package/lib/components/PasswordField/PasswordField.test.js +24 -21
  793. package/lib/components/PopoverContainer/PopoverContainer.js +36 -73
  794. package/lib/components/PopoverContainer/PopoverContainer.test.js +4 -6
  795. package/lib/components/PopoverMenu/PopoverMenu.js +30 -52
  796. package/lib/components/PopoverMenu/PopoverMenu.stories.js +20 -13
  797. package/lib/components/PopoverMenu/PopoverMenu.test.js +15 -16
  798. package/lib/components/Radio/Radio.js +1 -1
  799. package/lib/{styles/forms/radio.js → components/Radio/Radio.styles.js} +28 -6
  800. package/lib/components/RadioField/RadioField.js +34 -66
  801. package/lib/components/RadioField/RadioField.test.js +2 -3
  802. package/lib/components/RadioGroupField/RadioGroupField.js +27 -41
  803. package/lib/components/RadioGroupField/RadioGroupField.stories.js +5 -9
  804. package/lib/components/RadioGroupField/RadioGroupField.test.js +21 -13
  805. package/lib/components/RequirementsList/RequirementsList.js +5 -11
  806. package/lib/components/RequirementsList/RequirementsList.stories.js +1 -1
  807. package/lib/components/RequirementsList/RequirementsList.test.js +7 -7
  808. package/lib/components/RockerButton/RockerButton.js +18 -27
  809. package/lib/components/RockerButton/RockerButton.styles.js +47 -0
  810. package/lib/components/RockerButtonGroup/RockerButtonGroup.js +11 -21
  811. package/lib/components/RockerButtonGroup/RockerButtonGroup.stories.js +6 -7
  812. package/lib/components/RockerButtonGroup/RockerButtonGroup.test.js +7 -12
  813. package/lib/components/ScrollBox/ScrollBox.js +26 -40
  814. package/lib/components/ScrollBox/ScrollBox.stories.js +1 -1
  815. package/lib/components/ScrollBox/ScrollBox.styles.js +43 -0
  816. package/lib/components/ScrollBox/ScrollBox.test.js +0 -3
  817. package/lib/{styles/forms/search.js → components/SearchField/Search.styles.js} +2 -2
  818. package/lib/components/SearchField/SearchField.js +34 -89
  819. package/lib/components/SearchField/SearchField.stories.js +15 -23
  820. package/lib/components/SearchField/SearchField.test.js +4 -5
  821. package/lib/{styles/forms/select.js → components/SelectField/Select.styles.js} +5 -7
  822. package/lib/components/SelectField/SelectField.js +9 -45
  823. package/lib/components/SelectField/SelectField.stories.js +22 -29
  824. package/lib/components/SelectField/SelectField.test.js +12 -17
  825. package/lib/components/SelectFieldBase/SelectFieldBase.js +39 -61
  826. package/lib/components/SelectFieldBase/SelectFieldBase.test.js +40 -39
  827. package/lib/components/Separator/Separator.js +10 -13
  828. package/lib/components/Separator/Separator.stories.js +3 -3
  829. package/lib/{styles/variants/separator.js → components/Separator/Separator.styles.js} +0 -6
  830. package/lib/components/Separator/Separator.test.js +2 -3
  831. package/lib/components/Stepper/Line.js +5 -9
  832. package/lib/components/Stepper/Step.js +7 -9
  833. package/lib/components/Stepper/Stepper.js +12 -29
  834. package/lib/components/Stepper/Stepper.stories.js +6 -6
  835. package/lib/{styles/variants/stepper.js → components/Stepper/Stepper.styles.js} +5 -8
  836. package/lib/components/Stepper/Stepper.test.js +32 -37
  837. package/lib/components/Stepper/index.js +2 -2
  838. package/lib/components/Switch/Switch.js +2 -2
  839. package/lib/{styles/forms/switch.js → components/Switch/Switch.styles.js} +1 -4
  840. package/lib/components/SwitchField/SwitchField.js +48 -87
  841. package/lib/components/SwitchField/SwitchField.stories.js +8 -14
  842. package/lib/components/SwitchField/SwitchField.test.js +2 -3
  843. package/lib/components/Tab/Tab.js +41 -54
  844. package/lib/components/TabPicker/TabPicker.js +40 -61
  845. package/lib/components/Table/Table.js +3 -6
  846. package/lib/components/Table/Table.stories.js +4 -5
  847. package/lib/{styles/variants/table.js → components/Table/Table.styles.js} +15 -21
  848. package/lib/components/Table/Table.test.js +7 -9
  849. package/lib/components/TableBody/TableBody.js +3 -6
  850. package/lib/components/TableCaption/TableCaption.js +3 -6
  851. package/lib/components/TableCell/TableCell.js +4 -7
  852. package/lib/components/TableCell/TableCell.test.js +4 -5
  853. package/lib/components/TableHead/TableHead.js +2 -5
  854. package/lib/components/TableRow/TableRow.js +3 -6
  855. package/lib/components/Tabs/Tabs.js +18 -47
  856. package/lib/components/Tabs/Tabs.stories.js +7 -13
  857. package/lib/{styles/variants/tabs.js → components/Tabs/Tabs.style.js} +12 -5
  858. package/lib/components/Tabs/Tabs.test.js +88 -122
  859. package/lib/components/Text/Text.js +3 -4
  860. package/lib/components/Text/Text.stories.js +18 -28
  861. package/lib/{styles/variants/text.js → components/Text/Text.styles.js} +3 -205
  862. package/lib/components/Text/Text.test.js +11 -17
  863. package/lib/components/TextArea/TextArea.js +2 -2
  864. package/lib/components/TextArea/TextArea.styles.js +45 -0
  865. package/lib/components/TextArea/TextArea.test.js +3 -4
  866. package/lib/components/TextAreaField/TextAreaField.js +36 -83
  867. package/lib/components/TextAreaField/TextAreaField.stories.js +11 -18
  868. package/lib/components/TextAreaField/TextAreaField.test.js +5 -10
  869. package/lib/components/TextField/TextField.js +22 -64
  870. package/lib/components/TextField/TextField.stories.js +21 -28
  871. package/lib/components/TextField/TextField.test.js +4 -8
  872. package/lib/components/TimeZonePicker/TimeZone.styles.js +30 -0
  873. package/lib/components/TimeZonePicker/TimeZonePicker.js +25 -55
  874. package/lib/components/TimeZonePicker/TimeZonePicker.test.js +3 -7
  875. package/lib/components/TooltipTrigger/Tooltip.js +7 -10
  876. package/lib/components/TooltipTrigger/Tooltip.styles.js +64 -0
  877. package/lib/components/TooltipTrigger/TooltipTrigger.js +39 -64
  878. package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +5 -5
  879. package/lib/components/TooltipTrigger/TooltipTrigger.test.js +6 -7
  880. package/lib/components/TooltipTrigger/index.js +2 -2
  881. package/lib/context/AccordionContext/index.js +0 -1
  882. package/lib/context/TooltipContext/index.js +0 -1
  883. package/lib/docs/design/ColorDocumentation.stories.js +1 -1
  884. package/lib/docs/design/ContainerSizes.stories.js +3 -5
  885. package/lib/docs/design/Spacing.stories.js +3 -6
  886. package/lib/docs/design/Typography.stories.js +6 -10
  887. package/lib/hooks/index.js +1 -1
  888. package/lib/hooks/useAriaLabelWarning/useAriaLabelWarning.js +1 -2
  889. package/lib/hooks/useAriaLabelWarning/useAriaLabelWarning.test.js +1 -2
  890. package/lib/hooks/useColumnStyles/useColumnStyles.js +3 -7
  891. package/lib/hooks/useComponentToggle/useComponentToggle.js +7 -14
  892. package/lib/hooks/useComponentToggle/useComponentToggle.test.js +25 -25
  893. package/lib/hooks/useCopyToClipboard/useCopyToClipboard.js +13 -15
  894. package/lib/hooks/useCopyToClipboard/useCopyToClipboard.test.js +11 -10
  895. package/lib/hooks/useDebounce/useDebounce.js +4 -9
  896. package/lib/hooks/useDebounce/useDebounce.test.js +14 -15
  897. package/lib/hooks/useDeprecationWarning/useDeprecationWarning.js +7 -12
  898. package/lib/hooks/useDeprecationWarning/useDeprecationWarning.test.js +11 -16
  899. package/lib/hooks/useDevelopmentWarning/useDevelopmentWarning.js +2 -3
  900. package/lib/hooks/useDevelopmentWarning/useDevelopmentWarning.test.js +1 -2
  901. package/lib/hooks/useFallbackImage/useFallbackImage.js +4 -6
  902. package/lib/hooks/useFallbackImage/useFallbackImage.test.js +8 -13
  903. package/lib/hooks/useField/useField.js +126 -124
  904. package/lib/hooks/useField/useField.test.js +111 -74
  905. package/lib/hooks/useImageUploadState/useImageUploadState.js +21 -37
  906. package/lib/hooks/useLabelHeight/useLabelHeight.js +4 -10
  907. package/lib/hooks/useModalState/useModalState.js +4 -5
  908. package/lib/hooks/useModalState/useModalState.test.js +24 -30
  909. package/lib/hooks/useNavBarPress/useNavBarPress.js +1 -5
  910. package/lib/hooks/useNavBarPress/useNavBarPress.test.js +16 -20
  911. package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +4 -9
  912. package/lib/hooks/useOverlayPanelState/useOverlayPanelState.test.js +5 -5
  913. package/lib/hooks/useProgressiveState/useProgressiveState.js +1 -4
  914. package/lib/hooks/useProgressiveState/useProgressiveState.test.js +13 -20
  915. package/lib/hooks/usePropWarning/usePropWarning.js +3 -6
  916. package/lib/hooks/usePropWarning/usePropWarning.test.js +1 -2
  917. package/lib/hooks/useRockerButton/useRockerButton.js +8 -15
  918. package/lib/hooks/useSelectField/useSelectField.js +73 -86
  919. package/lib/hooks/useStatusClasses/useStatusClasses.js +2 -3
  920. package/lib/hooks/useStatusClasses/useStatusClasses.test.js +12 -18
  921. package/lib/hooks/useTShirtSize/useTShirtSize.js +1 -2
  922. package/lib/hooks/useTShirtSize/useTShirtSize.test.js +10 -17
  923. package/lib/index.js +30 -34
  924. package/lib/recipes/ApplicationSearchDropdown.stories.js +26 -43
  925. package/lib/recipes/AttributeMappingReadOnlyField.stories.js +10 -13
  926. package/lib/recipes/AttributesAndPingOneMapping.stories.js +18 -33
  927. package/lib/recipes/CollapsiblePanel.stories.js +18 -28
  928. package/lib/recipes/ConditionalFilter.stories.js +25 -28
  929. package/lib/recipes/CopyToClipboard.stories.js +1 -1
  930. package/lib/recipes/CountryPicker.stories.js +18 -35
  931. package/lib/recipes/DatePicker.stories.js +70 -37
  932. package/lib/recipes/EditableInput.stories.js +34 -57
  933. package/lib/recipes/FlippableCaretMenuButton.stories.js +18 -33
  934. package/lib/recipes/LinkedListView.stories.js +49 -47
  935. package/lib/recipes/ListAndPanel.stories.js +31 -102
  936. package/lib/recipes/LogoTabs.stories.js +9 -17
  937. package/lib/recipes/MaskedValue.stories.js +21 -14
  938. package/lib/recipes/OneWayToBidirectionalArrow.stories.js +5 -8
  939. package/lib/recipes/PageHeader.stories.js +1 -1
  940. package/lib/recipes/PanelHeader.stories.js +2 -2
  941. package/lib/recipes/RadioButtonsWithLinks.stories.js +6 -11
  942. package/lib/recipes/RowLineChart.stories.js +177 -107
  943. package/lib/recipes/ScrollableListView.stories.js +11 -17
  944. package/lib/recipes/Slider.stories.js +23 -43
  945. package/lib/recipes/TrialExperienceIndustryButtons.stories.js +1 -12
  946. package/lib/recipes/TrialExperienceStatusBar.stories.js +14 -32
  947. package/lib/styles/ColorDocumentation.js +48 -62
  948. package/lib/styles/colors.js +17 -25
  949. package/lib/styles/forms/index.js +22 -16
  950. package/lib/styles/spacing.js +1 -1
  951. package/lib/styles/templates/Nav/HeaderBar.js +4 -9
  952. package/lib/styles/templates/Nav/Nav.stories.js +6 -9
  953. package/lib/styles/templates/Nav/NavData.js +5 -11
  954. package/lib/styles/text.js +1 -5
  955. package/lib/styles/theme-ui/ThemeView.js +9 -0
  956. package/lib/styles/theme.js +7 -10
  957. package/lib/styles/themeOverrides/index.js +1 -1
  958. package/lib/styles/themeOverrides/stories/AccordionGroup.chromatic.stories.js +17 -0
  959. package/lib/styles/themeOverrides/stories/Button.chromatic.stories.js +37 -0
  960. package/lib/styles/themeOverrides/stories/EnvironmentBreadcrumb.chromatic.stories.js +101 -0
  961. package/lib/styles/themeOverrides/stories/IconButton.chromatic.stories.js +25 -0
  962. package/lib/styles/themeOverrides/stories/Label.chromatic.stories.js +12 -0
  963. package/lib/styles/themeOverrides/stories/Link.chromatic.stories.js +14 -0
  964. package/lib/styles/themeOverrides/stories/NavBar.chromatic.stories.js +363 -0
  965. package/lib/styles/themeOverrides/stories/NumberField.chromatic.stories.js +12 -0
  966. package/lib/styles/themeOverrides/stories/RockerButtonGroup.chromatic.stories.js +21 -0
  967. package/lib/styles/themeOverrides/stories/SearchField.chromatic.stories.js +18 -0
  968. package/lib/styles/themeOverrides/stories/SelectField.chromatic.stories.js +21 -0
  969. package/lib/styles/themeOverrides/uiLibraryOverride.js +69 -55
  970. package/lib/styles/themeOverrides/withUiLibraryCss.js +25 -0
  971. package/lib/styles/themes/astro-nano/astro-nano.js +20 -23
  972. package/lib/styles/themes/end-user/end-user.js +1 -11
  973. package/lib/styles/variants/callout.js +0 -7
  974. package/lib/styles/variants/index.js +22 -6
  975. package/lib/styles/variants/variants.js +48 -35
  976. package/lib/utils/devUtils/constants/htmlElements.js +1 -0
  977. package/lib/utils/devUtils/constants/variants.js +5 -6
  978. package/lib/utils/devUtils/createMockData.js +2 -13
  979. package/lib/utils/devUtils/decorators/withDeprecationWarning.js +1 -5
  980. package/lib/utils/devUtils/props/ariaAttributes.js +2 -9
  981. package/lib/utils/devUtils/props/ariaAttributes.test.js +4 -11
  982. package/lib/utils/devUtils/props/{hoverProps.js → fieldAttributes.js} +26 -24
  983. package/lib/utils/devUtils/props/isIterable.js +6 -15
  984. package/lib/utils/devUtils/props/isValidPositiveInt.js +2 -8
  985. package/lib/utils/devUtils/styledSystemUtils.js +7 -12
  986. package/lib/utils/testUtils/setupTests.js +5 -4
  987. package/lib/utils/testUtils/testAxe.js +16 -13
  988. package/lib/utils/testUtils/testWrapper.js +7 -14
  989. package/package.json +55 -59
  990. package/NOTICE.html +0 -4707
  991. package/lib/cjs/components/ArrayField/ArrayFieldItem.js +0 -50
  992. package/lib/cjs/components/Chip/Chip.js +0 -58
  993. package/lib/cjs/components/List/List.stories.js +0 -66
  994. package/lib/cjs/components/List/List.test.js +0 -36
  995. package/lib/cjs/components/List/index.js +0 -18
  996. package/lib/cjs/components/PageHeader/index.js +0 -18
  997. package/lib/cjs/styles/variants/accordion.js +0 -92
  998. package/lib/cjs/styles/variants/boxes.js +0 -442
  999. package/lib/cjs/styles/variants/buttons.js +0 -815
  1000. package/lib/cjs/styles/variants/imageUpload.js +0 -29
  1001. package/lib/cjs/styles/variants/messages.js +0 -53
  1002. package/lib/cjs/styles/variants/rockerbutton.js +0 -25
  1003. package/lib/components/ArrayField/ArrayFieldItem.js +0 -31
  1004. package/lib/components/Chip/Chip.js +0 -38
  1005. package/lib/components/Chip/index.js +0 -1
  1006. package/lib/components/List/List.js +0 -26
  1007. package/lib/components/List/List.stories.js +0 -43
  1008. package/lib/components/List/List.test.js +0 -24
  1009. package/lib/components/List/index.js +0 -1
  1010. package/lib/components/PageHeader/index.js +0 -1
  1011. package/lib/styles/variants/accordion.js +0 -82
  1012. package/lib/styles/variants/boxes.js +0 -421
  1013. package/lib/styles/variants/buttons.js +0 -792
  1014. package/lib/styles/variants/imageUpload.js +0 -19
  1015. package/lib/styles/variants/messages.js +0 -43
  1016. package/lib/styles/variants/rockerbutton.js +0 -15
  1017. package/lib/styles/variants/tooltip.js +0 -6
  1018. /package/lib/{styles/variants/codeView.js → components/CodeView/CodeView.styles.js} +0 -0
  1019. /package/lib/{styles/variants/images.js → components/Image/Image.styles.js} +0 -0
  1020. /package/lib/{styles/variants/menu.js → components/Menu/Menu.styles.js} +0 -0
  1021. /package/lib/{styles/variants/menuItem.js → components/MenuItem/MenuItem.styles.js} +0 -0
  1022. /package/lib/{styles/variants/popoverMenu.js → components/PopoverMenu/PopoverMenu.styles.js} +0 -0
@@ -1,24 +1,12 @@
1
- import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
- import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
- import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
- import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
- import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
- import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
- import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
- import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
- import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
10
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
11
- import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
12
-
13
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
-
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
-
17
- import React, { useState } from 'react';
1
+ import React from 'react';
18
2
  import AccountIcon from 'mdi-react/AccountIcon';
19
3
  import MoreVertIcon from 'mdi-react/MoreVertIcon';
20
- import { Box, Icon, IconButton, ListItem, Separator, Text } from '../..';
21
- import { onHoverArgTypes } from '../../utils/devUtils/props/hoverProps';
4
+ import Box from '../Box';
5
+ import Icon from '../Icon';
6
+ import IconButton from '../IconButton';
7
+ import Separator from '../Separator';
8
+ import Text from '../Text';
9
+ import ListItem from './ListItem';
22
10
  import { jsx as ___EmotionJSX } from "@emotion/react";
23
11
  export default {
24
12
  title: 'Components/ListItem',
@@ -29,8 +17,7 @@ export default {
29
17
  type: 'code'
30
18
  }
31
19
  }
32
- },
33
- argTypes: _objectSpread({}, onHoverArgTypes)
20
+ }
34
21
  };
35
22
  export var Default = function Default(args) {
36
23
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Separator, {
@@ -87,57 +74,4 @@ export var WithSubtitle = function WithSubtitle(args) {
87
74
  })))), ___EmotionJSX(Separator, {
88
75
  margin: 0
89
76
  }));
90
- };
91
- export var WithHoverHandlers = function WithHoverHandlers(args) {
92
- var _useState = useState(false),
93
- _useState2 = _slicedToArray(_useState, 2),
94
- isHovered = _useState2[0],
95
- setIsHovered = _useState2[1];
96
-
97
- var handleHoverChange = function handleHoverChange() {
98
- setIsHovered(function (previousIsHovered) {
99
- return !previousIsHovered;
100
- });
101
- };
102
-
103
- var sx = function sx(shouldTranslate) {
104
- return {
105
- transform: "".concat(shouldTranslate ? 'translate(15px)' : 'translate(0)')
106
- };
107
- };
108
-
109
- return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Separator, {
110
- margin: 0
111
- }), ___EmotionJSX(ListItem, _extends({}, args, {
112
- onHoverEnd: handleHoverChange,
113
- onHoverStart: handleHoverChange
114
- }), ___EmotionJSX(Box, {
115
- isRow: true,
116
- mr: "auto",
117
- alignSelf: "center"
118
- }, ___EmotionJSX(Icon, {
119
- icon: AccountIcon,
120
- alignSelf: "center",
121
- mr: "sm",
122
- color: "accent.40",
123
- size: 32
124
- }), ___EmotionJSX(Box, {
125
- sx: sx(isHovered)
126
- }, ___EmotionJSX(Text, {
127
- variant: "itemTitle"
128
- }, "Fons Vernall"), ___EmotionJSX(Text, {
129
- variant: "itemSubtitle",
130
- mt: 1
131
- }, "fvernall0@google.it"))), ___EmotionJSX(Box, {
132
- isRow: true,
133
- alignSelf: "center"
134
- }, ___EmotionJSX(IconButton, {
135
- size: 26
136
- }, ___EmotionJSX(Icon, {
137
- icon: MoreVertIcon,
138
- size: 20,
139
- color: "neutral.20"
140
- })))), ___EmotionJSX(Separator, {
141
- margin: 0
142
- }));
143
77
  };
@@ -0,0 +1,21 @@
1
+ var container = {
2
+ display: 'flex',
3
+ flex: '1 1 0px',
4
+ cursor: 'pointer',
5
+ height: '64px',
6
+ pl: 'md',
7
+ pr: 'sm',
8
+ pt: 16,
9
+ pb: 16,
10
+ justifyContent: 'center',
11
+ bg: 'accent.99',
12
+ '&.is-selected': {
13
+ bg: 'white'
14
+ },
15
+ '&.is-hovered': {
16
+ bg: 'white'
17
+ }
18
+ };
19
+ export default {
20
+ container: container
21
+ };
@@ -1,24 +1,19 @@
1
1
  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
- import userEvent from '@testing-library/user-event';
5
- import ListItem from './ListItem';
6
4
  import axeTest from '../../utils/testUtils/testAxe';
5
+ import ListItem from './ListItem';
7
6
  import { jsx as ___EmotionJSX } from "@emotion/react";
8
7
  var testTitle = 'Test Title';
9
- var TEST_ID = 'ListItem-testid';
10
8
  var defaultProps = {
11
9
  title: testTitle
12
10
  };
13
-
14
11
  var getComponent = function getComponent() {
15
12
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
16
- return render(___EmotionJSX(ListItem, _extends({}, defaultProps, props, {
17
- "data-testid": TEST_ID
18
- })));
19
- }; // Need to be added to each test file to test accessibility using axe.
20
-
13
+ return render(___EmotionJSX(ListItem, _extends({}, defaultProps, props)));
14
+ };
21
15
 
16
+ // Need to be added to each test file to test accessibility using axe.
22
17
  axeTest(getComponent, {
23
18
  // ListItem represents list's child without parent
24
19
  rules: {
@@ -27,46 +22,15 @@ axeTest(getComponent, {
27
22
  }
28
23
  }
29
24
  });
30
- describe('ListItem', function () {
31
- test('renders ListItem component title', function () {
32
- getComponent();
33
- var title = screen.getByTestId(TEST_ID);
34
- expect(title).toBeInTheDocument();
35
- });
36
- test('renders ListItem component with selected state', function () {
37
- getComponent({
38
- isSelected: true
39
- });
40
- var title = screen.getByTestId(TEST_ID);
41
- expect(title).toHaveClass('is-selected');
42
- });
43
- describe('when hovered', function () {
44
- var onHoverTest;
45
- beforeEach(function () {
46
- onHoverTest = jest.fn();
47
- });
48
- test('it calls the onHoverChange callback', function () {
49
- getComponent({
50
- onHoverChange: onHoverTest
51
- });
52
- userEvent.hover(screen.getByTestId(TEST_ID));
53
- expect(onHoverTest).toHaveBeenCalled();
54
- });
55
- test('it calls the onHoverStart callback', function () {
56
- getComponent({
57
- onHoverStart: onHoverTest
58
- });
59
- userEvent.hover(screen.getByTestId(TEST_ID));
60
- expect(onHoverTest).toHaveBeenCalled();
61
- });
62
- test('it calls the onHoverEnd callback when unhovered', function () {
63
- getComponent({
64
- onHoverEnd: onHoverTest
65
- });
66
- var listItem = screen.getByTestId(TEST_ID);
67
- userEvent.hover(listItem);
68
- userEvent.unhover(listItem);
69
- expect(onHoverTest).toHaveBeenCalled();
70
- });
25
+ test('renders ListItem component title', function () {
26
+ getComponent();
27
+ var title = screen.getByRole('listitem');
28
+ expect(title).toBeInTheDocument();
29
+ });
30
+ test('renders ListItem component with selected state', function () {
31
+ getComponent({
32
+ isSelected: true
71
33
  });
34
+ var title = screen.getByRole('listitem');
35
+ expect(title).toHaveClass('is-selected');
72
36
  });
@@ -9,25 +9,22 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
9
9
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
10
10
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
11
11
  import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
12
- var _excluded = ["disabledKeys", "isHoverable", "loadingState", "onLoadMore", "onSelectionChange", "selectedKeys", "selectionMode", "selectionStyle"];
12
+ var _excluded = ["disabledKeys", "loadingState", "onLoadMore", "onSelectionChange", "selectionMode", "selectionStyle"];
13
13
  import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
14
-
15
14
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16
-
17
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; }
18
-
19
- import React, { useMemo, forwardRef, useRef, useImperativeHandle } from 'react';
16
+ import React, { forwardRef, useImperativeHandle, useMemo, useRef } from 'react';
17
+ import { useCollator } from '@react-aria/i18n';
20
18
  import { useList } from '@react-aria/list';
19
+ import { Virtualizer, VirtualizerItem } from '@react-aria/virtualizer';
21
20
  import { ListLayout } from '@react-stately/layout';
22
21
  import { useListState } from '@react-stately/list';
23
22
  import PropTypes from 'prop-types';
24
- import { useCollator } from '@react-aria/i18n';
25
- import { Virtualizer, VirtualizerItem } from '@react-aria/virtualizer';
26
- import { ListViewContext } from './ListViewContext';
23
+ import loadingStates from '../../utils/devUtils/constants/loadingStates';
24
+ import { isIterableProp } from '../../utils/devUtils/props/isIterable';
27
25
  import ListViewItem from '../ListViewItem';
28
26
  import Loader from '../Loader';
29
- import { isIterableProp } from '../../utils/devUtils/props/isIterable';
30
- import loadingStates from '../../utils/devUtils/constants/loadingStates';
27
+ import { ListViewContext } from './ListViewContext';
31
28
  import { jsx as ___EmotionJSX } from "@emotion/react";
32
29
  export var collectionTypes = {
33
30
  ITEM: 'item',
@@ -55,6 +52,7 @@ export function useListLayout(state) {
55
52
  layout.disabledKeys = state.disabledKeys;
56
53
  return layout;
57
54
  }
55
+
58
56
  /**
59
57
  * ListViews are used to display a list of items. Users can select,
60
58
  * view, or edit items in this list. This virtualized component supports
@@ -71,18 +69,13 @@ export function useListLayout(state) {
71
69
 
72
70
  var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
73
71
  var disabledKeys = props.disabledKeys,
74
- _props$isHoverable = props.isHoverable,
75
- isHoverable = _props$isHoverable === void 0 ? true : _props$isHoverable,
76
- loadingState = props.loadingState,
77
- onLoadMore = props.onLoadMore,
78
- onSelectionChange = props.onSelectionChange,
79
- selectedKeys = props.selectedKeys,
80
- selectionMode = props.selectionMode,
81
- selectionStyle = props.selectionStyle,
82
- others = _objectWithoutProperties(props, _excluded);
83
-
72
+ loadingState = props.loadingState,
73
+ onLoadMore = props.onLoadMore,
74
+ onSelectionChange = props.onSelectionChange,
75
+ selectionMode = props.selectionMode,
76
+ selectionStyle = props.selectionStyle,
77
+ others = _objectWithoutProperties(props, _excluded);
84
78
  var isLoading = loadingState === loadingStates.LOADING_MORE || loadingState === loadingStates.LOADING;
85
-
86
79
  var renderWrapper = function renderWrapper(parent, reusableView) {
87
80
  return ___EmotionJSX(VirtualizerItem, {
88
81
  key: reusableView.key,
@@ -90,10 +83,9 @@ var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
90
83
  parent: parent
91
84
  });
92
85
  };
93
-
94
86
  var listViewRef = useRef();
95
- /* istanbul ignore next */
96
87
 
88
+ /* istanbul ignore next */
97
89
  useImperativeHandle(ref, function () {
98
90
  return listViewRef.current;
99
91
  });
@@ -101,29 +93,24 @@ var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
101
93
  selectionBehavior: selectionStyle === 'highlight' ? 'replace' : 'toggle'
102
94
  }));
103
95
  var collection = state.collection,
104
- selectionManager = state.selectionManager;
96
+ selectionManager = state.selectionManager;
105
97
  var layout = useListLayout(state);
106
-
107
98
  var _useList = useList(_objectSpread(_objectSpread({}, props), {}, {
108
- isVirtualized: true,
109
- keyboardDelegate: layout,
110
- loadingState: loadingState
111
- }), state, listViewRef),
112
- gridProps = _useList.gridProps; // Sync loading state into the layout.
113
-
114
-
99
+ isVirtualized: true,
100
+ keyboardDelegate: layout,
101
+ loadingState: loadingState
102
+ }), state, listViewRef),
103
+ gridProps = _useList.gridProps;
104
+ // Sync loading state into the layout.
115
105
  layout.isLoading = isLoading;
116
106
  var focusedKey = selectionManager.focusedKey;
117
107
  delete gridProps.onMouseDown;
118
-
119
108
  var onFocus = function onFocus(e) {
120
109
  gridProps.onFocus(e);
121
-
122
110
  if (others.onFocus) {
123
111
  others.onFocus(e);
124
112
  }
125
113
  };
126
-
127
114
  return ___EmotionJSX(ListViewContext.Provider, {
128
115
  value: {
129
116
  state: state
@@ -144,69 +131,53 @@ var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
144
131
  }), function (type, item) {
145
132
  if (type === 'item') {
146
133
  return ___EmotionJSX(ListViewItem, {
147
- isHoverable: isHoverable,
148
134
  item: item
149
135
  });
150
- } else if (type === collectionTypes.LOADER) {
136
+ }
137
+ if (type === collectionTypes.LOADER) {
151
138
  return ___EmotionJSX(Loader, {
152
139
  variant: "loader.withinListView",
153
140
  "aria-label": "Loading more..."
154
141
  });
155
142
  }
156
-
157
143
  return null;
158
144
  }));
159
145
  });
160
146
  ListView.propTypes = {
161
147
  /** Shows loader instead of children */
162
148
  loadingState: PropTypes.oneOf(_Object$values(loadingStates)),
163
-
164
149
  /**
165
150
  * The item keys that are disabled. These items cannot be selected, focused, or otherwise
166
151
  * interacted with.
167
152
  */
168
153
  disabledKeys: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.object])),
169
-
170
154
  /** The list of ListView items (controlled). */
171
155
  items: isIterableProp,
172
-
173
156
  /** The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id). */
174
157
  id: PropTypes.string,
175
-
176
- /** Whether ListView should handle hover state (defaults to true) */
177
- isHoverable: PropTypes.bool,
178
-
179
158
  /** Defines a string value that labels the current element. */
180
159
  'aria-label': PropTypes.string,
181
-
182
160
  /** Identifies the element (or elements) that labels the current element. */
183
161
  'aria-labelledby': PropTypes.string,
184
-
185
162
  /** Identifies the element (or elements) that describes the object. */
186
163
  'aria-describedby': PropTypes.string,
187
-
188
164
  /**
189
165
  * Identifies the element (or elements) that provide a detailed, extended description for the
190
166
  * object.
191
167
  */
192
168
  'aria-details': PropTypes.string,
193
-
194
169
  /**
195
170
  * The currently selected keys in the collection (controlled).
196
171
  *
197
172
  * `selectedKeys="all"` can be used to select every key.
198
173
  */
199
174
  selectedKeys: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
200
-
201
175
  /** The type of selection that is allowed in the collection. */
202
176
  selectionMode: PropTypes.oneOf(['none', 'single', 'multiple']),
203
-
204
177
  /** */
205
178
  selectionStyle: PropTypes.oneOf(['highlight', undefined]),
206
-
207
179
  /** Callback function that fires when the selected key changes. */
208
180
  onSelectionChange: PropTypes.func,
209
-
210
181
  /**
211
182
  * Handler that is called when more items should be loaded, e.g. while scrolling near the bottom.
212
183
  *
@@ -1,25 +1,30 @@
1
+ import _Symbol from "@babel/runtime-corejs3/core-js-stable/symbol";
2
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
3
+ import _Object$create from "@babel/runtime-corejs3/core-js-stable/object/create";
4
+ import _Object$getPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/get-prototype-of";
5
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
+ import _Object$setPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/set-prototype-of";
7
+ import _reverseInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/reverse";
8
+ import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
1
9
  import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
10
+ import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty";
2
11
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
3
- import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
12
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof _Symbol ? _Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return _Object$defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = _Object$create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = _Object$getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype); function defineIteratorMethods(prototype) { var _context4; _forEachInstanceProperty(_context4 = ["next", "throw", "return"]).call(_context4, function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = _Object$create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = _Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return _reverseInstanceProperty(keys).call(keys), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { var _context5; if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, _forEachInstanceProperty(_context5 = this.tryEntries).call(_context5, resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
4
13
  import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/index-of";
5
14
  import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
6
15
  import _setTimeout from "@babel/runtime-corejs3/core-js-stable/set-timeout";
7
16
  import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
8
17
  import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
9
18
  import React from 'react';
10
- import { Item } from '@react-stately/collections';
11
- import CreateIcon from 'mdi-react/CreateIcon';
12
- import MoreVertIcon from 'mdi-react/MoreVertIcon';
13
- import FormSelectIcon from 'mdi-react/FormSelectIcon';
14
- import { useAsyncList } from '@react-stately/data';
19
+ import { Item, useAsyncList } from 'react-stately';
15
20
  import { action } from '@storybook/addon-actions';
16
21
  import isChromatic from 'chromatic/isChromatic';
17
- import ListView from '.';
18
- import Box from '../Box/Box';
19
- import Icon from '../Icon';
20
- import IconButton from '../IconButton';
21
- import Text from '../Text';
22
+ import CreateIcon from 'mdi-react/CreateIcon';
23
+ import FormSelectIcon from 'mdi-react/FormSelectIcon';
24
+ import MoreVertIcon from 'mdi-react/MoreVertIcon';
25
+ import { Box, Icon, IconButton, Text } from '../..';
22
26
  import loadingStates from '../../utils/devUtils/constants/loadingStates';
27
+ import ListView from '.';
23
28
  import { jsx as ___EmotionJSX } from "@emotion/react";
24
29
  export default {
25
30
  title: 'Components/ListView',
@@ -524,7 +529,6 @@ var actions = {
524
529
  onFocus: action('onFocus'),
525
530
  onLoadMore: action('onLoadMore')
526
531
  };
527
-
528
532
  var ListElement = function ListElement(_ref) {
529
533
  var item = _ref.item;
530
534
  return ___EmotionJSX(Box, {
@@ -557,10 +561,8 @@ var ListElement = function ListElement(_ref) {
557
561
  size: "sm"
558
562
  }))));
559
563
  };
560
-
561
564
  export var Default = function Default(_ref2) {
562
- var args = _extends({}, _ref2);
563
-
565
+ var args = _extends({}, (_objectDestructuringEmpty(_ref2), _ref2));
564
566
  return ___EmotionJSX(ListView, _extends({}, props, args, {
565
567
  items: items
566
568
  }), function (item) {
@@ -602,35 +604,30 @@ export var Default = function Default(_ref2) {
602
604
  };
603
605
  export var InfiniteLoadingList = function InfiniteLoadingList(args) {
604
606
  var getMockData = /*#__PURE__*/function () {
605
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(signal, cursor) {
607
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(signal, cursor) {
606
608
  var pageNumber;
607
- return _regeneratorRuntime.wrap(function _callee$(_context) {
609
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
608
610
  while (1) {
609
611
  switch (_context.prev = _context.next) {
610
612
  case 0:
611
613
  pageNumber = 1;
612
-
613
614
  if (cursor) {
614
615
  pageNumber = Number(cursor.substr(_indexOfInstanceProperty(cursor).call(cursor, '-') + 1));
615
- } // With this we will emulate load even with mocked API, except for Chromatic runs
616
-
617
-
616
+ }
617
+ // With this we will emulate load even with mocked API, except for Chromatic runs
618
618
  if (args.useMockData) {
619
619
  _context.next = 5;
620
620
  break;
621
621
  }
622
-
623
622
  _context.next = 5;
624
623
  return new _Promise(function (resolve) {
625
624
  return _setTimeout(resolve, cursor ? 2000 : 3000);
626
625
  });
627
-
628
626
  case 5:
629
627
  return _context.abrupt("return", {
630
628
  items: _sliceInstanceProperty(animals).call(animals, (pageNumber - 1) * 10, pageNumber * 10),
631
629
  cursor: "mock-".concat(pageNumber + 1)
632
630
  });
633
-
634
631
  case 6:
635
632
  case "end":
636
633
  return _context.stop();
@@ -638,16 +635,14 @@ export var InfiniteLoadingList = function InfiniteLoadingList(args) {
638
635
  }
639
636
  }, _callee);
640
637
  }));
641
-
642
638
  return function getMockData(_x, _x2) {
643
639
  return _ref3.apply(this, arguments);
644
640
  };
645
641
  }();
646
-
647
642
  var fetchApiData = /*#__PURE__*/function () {
648
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(signal, cursor, filterText) {
643
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(signal, cursor, filterText) {
649
644
  var res, json;
650
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
645
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
651
646
  while (1) {
652
647
  switch (_context2.prev = _context2.next) {
653
648
  case 0:
@@ -655,13 +650,12 @@ export var InfiniteLoadingList = function InfiniteLoadingList(args) {
655
650
  _context2.next = 2;
656
651
  break;
657
652
  }
658
-
659
653
  return _context2.abrupt("return", getMockData());
660
-
661
654
  case 2:
662
655
  _context2.prev = 2;
663
656
  _context2.next = 5;
664
- return _Promise.race([// If no cursor is available, then we're loading the first page,
657
+ return _Promise.race([
658
+ // If no cursor is available, then we're loading the first page,
665
659
  // filtering the results returned via a query string that
666
660
  // mirrors the ComboBox input text.
667
661
  // Otherwise, the cursor is the next URL to load,
@@ -673,30 +667,25 @@ export var InfiniteLoadingList = function InfiniteLoadingList(args) {
673
667
  return reject(new Error('timeout'));
674
668
  }, 3000);
675
669
  })]);
676
-
677
670
  case 5:
678
671
  res = _context2.sent;
679
672
  _context2.next = 8;
680
673
  return res.json();
681
-
682
674
  case 8:
683
675
  json = _context2.sent;
684
676
  _context2.next = 11;
685
677
  return new _Promise(function (resolve) {
686
678
  return _setTimeout(resolve, cursor ? 2000 : 3000);
687
679
  });
688
-
689
680
  case 11:
690
681
  return _context2.abrupt("return", {
691
682
  items: json.results,
692
683
  cursor: json.next
693
684
  });
694
-
695
685
  case 14:
696
686
  _context2.prev = 14;
697
687
  _context2.t0 = _context2["catch"](2);
698
688
  return _context2.abrupt("return", getMockData());
699
-
700
689
  case 17:
701
690
  case "end":
702
691
  return _context2.stop();
@@ -704,38 +693,32 @@ export var InfiniteLoadingList = function InfiniteLoadingList(args) {
704
693
  }
705
694
  }, _callee2, null, [[2, 14]]);
706
695
  }));
707
-
708
696
  return function fetchApiData(_x3, _x4, _x5) {
709
697
  return _ref4.apply(this, arguments);
710
698
  };
711
699
  }();
712
-
713
700
  var list = useAsyncList({
714
701
  load: function load(_ref5) {
715
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
702
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
716
703
  var signal, cursor, filterText;
717
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
704
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
718
705
  while (1) {
719
706
  switch (_context3.prev = _context3.next) {
720
707
  case 0:
721
708
  signal = _ref5.signal, cursor = _ref5.cursor, filterText = _ref5.filterText;
722
-
723
709
  if (cursor) {
724
710
  // eslint-disable-next-line
725
711
  cursor = cursor.replace(/^http:\/\//i, "https://");
726
- } // check if we are mocking pages
727
-
712
+ }
728
713
 
714
+ // check if we are mocking pages
729
715
  if (!(cursor && _includesInstanceProperty(cursor).call(cursor, 'mock'))) {
730
716
  _context3.next = 4;
731
717
  break;
732
718
  }
733
-
734
719
  return _context3.abrupt("return", getMockData(signal, cursor, filterText));
735
-
736
720
  case 4:
737
721
  return _context3.abrupt("return", fetchApiData(signal, cursor, filterText));
738
-
739
722
  case 5:
740
723
  case "end":
741
724
  return _context3.stop();
@@ -773,8 +756,7 @@ InfiniteLoadingList.parameters = {
773
756
  }
774
757
  };
775
758
  export var MultipleSelection = function MultipleSelection(_ref6) {
776
- var args = _extends({}, _ref6);
777
-
759
+ var args = _extends({}, (_objectDestructuringEmpty(_ref6), _ref6));
778
760
  return ___EmotionJSX(ListView, _extends({}, props, args, {
779
761
  items: items,
780
762
  selectionMode: "multiple"