@canonical/react-components 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/package.json +7 -10
  2. package/dist-esm/components/Accordion/Accordion.js +0 -52
  3. package/dist-esm/components/Accordion/AccordionSection/AccordionSection.js +0 -47
  4. package/dist-esm/components/Accordion/AccordionSection/index.js +0 -1
  5. package/dist-esm/components/Accordion/index.js +0 -1
  6. package/dist-esm/components/ActionButton/ActionButton.js +0 -106
  7. package/dist-esm/components/ActionButton/index.js +0 -1
  8. package/dist-esm/components/ApplicationLayout/AppAside/AppAside.js +0 -29
  9. package/dist-esm/components/ApplicationLayout/AppAside/index.js +0 -1
  10. package/dist-esm/components/ApplicationLayout/AppMain/AppMain.js +0 -21
  11. package/dist-esm/components/ApplicationLayout/AppMain/index.js +0 -1
  12. package/dist-esm/components/ApplicationLayout/AppNavigation/AppNavigation.js +0 -31
  13. package/dist-esm/components/ApplicationLayout/AppNavigation/index.js +0 -1
  14. package/dist-esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +0 -24
  15. package/dist-esm/components/ApplicationLayout/AppNavigationBar/index.js +0 -1
  16. package/dist-esm/components/ApplicationLayout/AppStatus/AppStatus.js +0 -21
  17. package/dist-esm/components/ApplicationLayout/AppStatus/index.js +0 -1
  18. package/dist-esm/components/ApplicationLayout/Application/Application.js +0 -22
  19. package/dist-esm/components/ApplicationLayout/Application/index.js +0 -1
  20. package/dist-esm/components/ApplicationLayout/ApplicationLayout.js +0 -113
  21. package/dist-esm/components/ApplicationLayout/index.js +0 -7
  22. package/dist-esm/components/ArticlePagination/ArticlePagination.js +0 -39
  23. package/dist-esm/components/ArticlePagination/index.js +0 -1
  24. package/dist-esm/components/Badge/Badge.js +0 -64
  25. package/dist-esm/components/Badge/index.js +0 -1
  26. package/dist-esm/components/Button/Button.js +0 -55
  27. package/dist-esm/components/Button/index.js +0 -1
  28. package/dist-esm/components/Card/Card.js +0 -45
  29. package/dist-esm/components/Card/index.js +0 -1
  30. package/dist-esm/components/CheckboxInput/CheckableInput/CheckableInput.js +0 -35
  31. package/dist-esm/components/CheckboxInput/CheckableInput/index.js +0 -1
  32. package/dist-esm/components/CheckboxInput/CheckboxInput.js +0 -24
  33. package/dist-esm/components/CheckboxInput/index.js +0 -1
  34. package/dist-esm/components/Chip/Chip.js +0 -81
  35. package/dist-esm/components/Chip/index.js +0 -1
  36. package/dist-esm/components/Code/Code.js +0 -49
  37. package/dist-esm/components/Code/index.js +0 -1
  38. package/dist-esm/components/CodeSnippet/CodeSnippet.js +0 -28
  39. package/dist-esm/components/CodeSnippet/CodeSnippetBlock.js +0 -64
  40. package/dist-esm/components/CodeSnippet/CodeSnippetDropdown.js +0 -27
  41. package/dist-esm/components/CodeSnippet/index.js +0 -2
  42. package/dist-esm/components/Col/Col.js +0 -38
  43. package/dist-esm/components/Col/index.js +0 -1
  44. package/dist-esm/components/ConfirmationButton/ConfirmationButton.js +0 -63
  45. package/dist-esm/components/ConfirmationButton/index.js +0 -1
  46. package/dist-esm/components/ConfirmationModal/ConfirmationModal.js +0 -47
  47. package/dist-esm/components/ConfirmationModal/index.js +0 -1
  48. package/dist-esm/components/ContextualMenu/ContextualMenu.js +0 -215
  49. package/dist-esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +0 -249
  50. package/dist-esm/components/ContextualMenu/ContextualMenuDropdown/index.js +0 -1
  51. package/dist-esm/components/ContextualMenu/index.js +0 -1
  52. package/dist-esm/components/EmptyState/EmptyState.js +0 -28
  53. package/dist-esm/components/EmptyState/index.js +0 -1
  54. package/dist-esm/components/Field/Field.js +0 -126
  55. package/dist-esm/components/Field/index.js +0 -1
  56. package/dist-esm/components/Form/Form.js +0 -28
  57. package/dist-esm/components/Form/index.js +0 -1
  58. package/dist-esm/components/FormikField/FormikField.js +0 -33
  59. package/dist-esm/components/FormikField/index.js +0 -1
  60. package/dist-esm/components/Icon/Icon.js +0 -61
  61. package/dist-esm/components/Icon/index.js +0 -1
  62. package/dist-esm/components/Input/Input.js +0 -103
  63. package/dist-esm/components/Input/index.js +0 -1
  64. package/dist-esm/components/Label/Label.js +0 -27
  65. package/dist-esm/components/Label/index.js +0 -1
  66. package/dist-esm/components/Link/Link.js +0 -37
  67. package/dist-esm/components/Link/index.js +0 -1
  68. package/dist-esm/components/List/List.js +0 -110
  69. package/dist-esm/components/List/index.js +0 -1
  70. package/dist-esm/components/Loader/Loader.js +0 -14
  71. package/dist-esm/components/Loader/index.js +0 -1
  72. package/dist-esm/components/LoginPageLayout/LoginPageLayout.js +0 -63
  73. package/dist-esm/components/LoginPageLayout/index.js +0 -1
  74. package/dist-esm/components/MainTable/MainTable.js +0 -211
  75. package/dist-esm/components/MainTable/index.js +0 -1
  76. package/dist-esm/components/Modal/Modal.js +0 -135
  77. package/dist-esm/components/Modal/index.js +0 -1
  78. package/dist-esm/components/ModularTable/ModularTable.js +0 -166
  79. package/dist-esm/components/ModularTable/index.js +0 -1
  80. package/dist-esm/components/MultiSelect/FadeInDown/FadeInDown.js +0 -25
  81. package/dist-esm/components/MultiSelect/FadeInDown/index.js +0 -1
  82. package/dist-esm/components/MultiSelect/MultiSelect.js +0 -308
  83. package/dist-esm/components/MultiSelect/index.js +0 -1
  84. package/dist-esm/components/Navigation/Navigation.js +0 -215
  85. package/dist-esm/components/Navigation/NavigationLink/NavigationLink.js +0 -58
  86. package/dist-esm/components/Navigation/NavigationLink/index.js +0 -1
  87. package/dist-esm/components/Navigation/NavigationMenu/NavigationMenu.js +0 -57
  88. package/dist-esm/components/Navigation/NavigationMenu/index.js +0 -1
  89. package/dist-esm/components/Navigation/index.js +0 -1
  90. package/dist-esm/components/Navigation/types.js +0 -1
  91. package/dist-esm/components/Notification/Notification.js +0 -119
  92. package/dist-esm/components/Notification/index.js +0 -1
  93. package/dist-esm/components/NotificationProvider/NotificationProvider.js +0 -83
  94. package/dist-esm/components/NotificationProvider/index.js +0 -2
  95. package/dist-esm/components/NotificationProvider/messageBuilder.js +0 -31
  96. package/dist-esm/components/NotificationProvider/types.js +0 -1
  97. package/dist-esm/components/Pagination/Pagination.js +0 -173
  98. package/dist-esm/components/Pagination/PaginationButton/PaginationButton.js +0 -31
  99. package/dist-esm/components/Pagination/PaginationButton/index.js +0 -1
  100. package/dist-esm/components/Pagination/PaginationItem/PaginationItem.js +0 -20
  101. package/dist-esm/components/Pagination/PaginationItem/index.js +0 -1
  102. package/dist-esm/components/Pagination/index.js +0 -1
  103. package/dist-esm/components/Panel/Panel.js +0 -89
  104. package/dist-esm/components/Panel/index.js +0 -1
  105. package/dist-esm/components/PasswordToggle/PasswordToggle.js +0 -90
  106. package/dist-esm/components/PasswordToggle/index.js +0 -1
  107. package/dist-esm/components/RadioInput/RadioInput.js +0 -22
  108. package/dist-esm/components/RadioInput/index.js +0 -1
  109. package/dist-esm/components/Row/Row.js +0 -22
  110. package/dist-esm/components/Row/index.js +0 -1
  111. package/dist-esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.js +0 -107
  112. package/dist-esm/components/SearchAndFilter/FilterPanelSection/index.js +0 -1
  113. package/dist-esm/components/SearchAndFilter/SearchAndFilter.js +0 -286
  114. package/dist-esm/components/SearchAndFilter/index.js +0 -1
  115. package/dist-esm/components/SearchAndFilter/types.js +0 -1
  116. package/dist-esm/components/SearchAndFilter/utils.js +0 -22
  117. package/dist-esm/components/SearchBox/SearchBox.js +0 -95
  118. package/dist-esm/components/SearchBox/index.js +0 -1
  119. package/dist-esm/components/Select/Select.js +0 -84
  120. package/dist-esm/components/Select/index.js +0 -1
  121. package/dist-esm/components/SideNavigation/SideNavigation.js +0 -89
  122. package/dist-esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +0 -31
  123. package/dist-esm/components/SideNavigation/SideNavigationBase/index.js +0 -1
  124. package/dist-esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +0 -32
  125. package/dist-esm/components/SideNavigation/SideNavigationItem/index.js +0 -1
  126. package/dist-esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +0 -25
  127. package/dist-esm/components/SideNavigation/SideNavigationLink/index.js +0 -1
  128. package/dist-esm/components/SideNavigation/SideNavigationText/SideNavigationText.js +0 -20
  129. package/dist-esm/components/SideNavigation/SideNavigationText/index.js +0 -1
  130. package/dist-esm/components/SideNavigation/index.js +0 -4
  131. package/dist-esm/components/Slider/Slider.js +0 -83
  132. package/dist-esm/components/Slider/index.js +0 -1
  133. package/dist-esm/components/Spinner/Spinner.js +0 -36
  134. package/dist-esm/components/Spinner/index.js +0 -1
  135. package/dist-esm/components/StatusLabel/StatusLabel.js +0 -36
  136. package/dist-esm/components/StatusLabel/index.js +0 -1
  137. package/dist-esm/components/Strip/Strip.js +0 -50
  138. package/dist-esm/components/Strip/index.js +0 -1
  139. package/dist-esm/components/SummaryButton/SummaryButton.js +0 -28
  140. package/dist-esm/components/SummaryButton/index.js +0 -1
  141. package/dist-esm/components/Switch/Switch.js +0 -28
  142. package/dist-esm/components/Switch/index.js +0 -1
  143. package/dist-esm/components/Table/Table.js +0 -23
  144. package/dist-esm/components/Table/index.js +0 -1
  145. package/dist-esm/components/TableCell/TableCell.js +0 -26
  146. package/dist-esm/components/TableCell/index.js +0 -1
  147. package/dist-esm/components/TableHeader/TableHeader.js +0 -17
  148. package/dist-esm/components/TableHeader/index.js +0 -1
  149. package/dist-esm/components/TablePagination/TablePagination.js +0 -104
  150. package/dist-esm/components/TablePagination/TablePaginationControls/TablePaginationControls.js +0 -120
  151. package/dist-esm/components/TablePagination/TablePaginationControls/index.js +0 -1
  152. package/dist-esm/components/TablePagination/index.js +0 -1
  153. package/dist-esm/components/TablePagination/utils.js +0 -67
  154. package/dist-esm/components/TableRow/TableRow.js +0 -15
  155. package/dist-esm/components/TableRow/index.js +0 -1
  156. package/dist-esm/components/Tabs/Tabs.js +0 -42
  157. package/dist-esm/components/Tabs/index.js +0 -1
  158. package/dist-esm/components/Textarea/Textarea.js +0 -115
  159. package/dist-esm/components/Textarea/index.js +0 -1
  160. package/dist-esm/components/Tooltip/Tooltip.js +0 -245
  161. package/dist-esm/components/Tooltip/index.js +0 -1
  162. package/dist-esm/enums.js +0 -8
  163. package/dist-esm/hooks/index.js +0 -8
  164. package/dist-esm/hooks/useId.js +0 -13
  165. package/dist-esm/hooks/useListener.js +0 -51
  166. package/dist-esm/hooks/useOnClickOutside.js +0 -38
  167. package/dist-esm/hooks/useOnEscapePressed.js +0 -25
  168. package/dist-esm/hooks/usePagination.js +0 -45
  169. package/dist-esm/hooks/usePrevious.js +0 -16
  170. package/dist-esm/hooks/useThrottle.js +0 -49
  171. package/dist-esm/hooks/useWindowFitment.js +0 -109
  172. package/dist-esm/index.js +0 -69
  173. package/dist-esm/types/index.js +0 -1
  174. package/dist-esm/types/react-table-config.d.js +0 -1
  175. package/dist-esm/utils.js +0 -41
  176. /package/{dist-types → dist}/components/Accordion/Accordion.d.ts +0 -0
  177. /package/{dist-types → dist}/components/Accordion/AccordionSection/AccordionSection.d.ts +0 -0
  178. /package/{dist-types → dist}/components/Accordion/AccordionSection/index.d.ts +0 -0
  179. /package/{dist-types → dist}/components/Accordion/index.d.ts +0 -0
  180. /package/{dist-types → dist}/components/ActionButton/ActionButton.d.ts +0 -0
  181. /package/{dist-types → dist}/components/ActionButton/index.d.ts +0 -0
  182. /package/{dist-types → dist}/components/ApplicationLayout/AppAside/AppAside.d.ts +0 -0
  183. /package/{dist-types → dist}/components/ApplicationLayout/AppAside/index.d.ts +0 -0
  184. /package/{dist-types → dist}/components/ApplicationLayout/AppMain/AppMain.d.ts +0 -0
  185. /package/{dist-types → dist}/components/ApplicationLayout/AppMain/index.d.ts +0 -0
  186. /package/{dist-types → dist}/components/ApplicationLayout/AppNavigation/AppNavigation.d.ts +0 -0
  187. /package/{dist-types → dist}/components/ApplicationLayout/AppNavigation/index.d.ts +0 -0
  188. /package/{dist-types → dist}/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.d.ts +0 -0
  189. /package/{dist-types → dist}/components/ApplicationLayout/AppNavigationBar/index.d.ts +0 -0
  190. /package/{dist-types → dist}/components/ApplicationLayout/AppStatus/AppStatus.d.ts +0 -0
  191. /package/{dist-types → dist}/components/ApplicationLayout/AppStatus/index.d.ts +0 -0
  192. /package/{dist-types → dist}/components/ApplicationLayout/Application/Application.d.ts +0 -0
  193. /package/{dist-types → dist}/components/ApplicationLayout/Application/index.d.ts +0 -0
  194. /package/{dist-types → dist}/components/ApplicationLayout/ApplicationLayout.d.ts +0 -0
  195. /package/{dist-types → dist}/components/ApplicationLayout/index.d.ts +0 -0
  196. /package/{dist-types → dist}/components/ArticlePagination/ArticlePagination.d.ts +0 -0
  197. /package/{dist-types → dist}/components/ArticlePagination/index.d.ts +0 -0
  198. /package/{dist-types → dist}/components/Badge/Badge.d.ts +0 -0
  199. /package/{dist-types → dist}/components/Badge/index.d.ts +0 -0
  200. /package/{dist-types → dist}/components/Button/Button.d.ts +0 -0
  201. /package/{dist-types → dist}/components/Button/index.d.ts +0 -0
  202. /package/{dist-types → dist}/components/Card/Card.d.ts +0 -0
  203. /package/{dist-types → dist}/components/Card/index.d.ts +0 -0
  204. /package/{dist-types → dist}/components/CheckboxInput/CheckableInput/CheckableInput.d.ts +0 -0
  205. /package/{dist-types → dist}/components/CheckboxInput/CheckableInput/index.d.ts +0 -0
  206. /package/{dist-types → dist}/components/CheckboxInput/CheckboxInput.d.ts +0 -0
  207. /package/{dist-types → dist}/components/CheckboxInput/index.d.ts +0 -0
  208. /package/{dist-types → dist}/components/Chip/Chip.d.ts +0 -0
  209. /package/{dist-types → dist}/components/Chip/index.d.ts +0 -0
  210. /package/{dist-types → dist}/components/Code/Code.d.ts +0 -0
  211. /package/{dist-types → dist}/components/Code/index.d.ts +0 -0
  212. /package/{dist-types → dist}/components/CodeSnippet/CodeSnippet.d.ts +0 -0
  213. /package/{dist-types → dist}/components/CodeSnippet/CodeSnippetBlock.d.ts +0 -0
  214. /package/{dist-types → dist}/components/CodeSnippet/CodeSnippetDropdown.d.ts +0 -0
  215. /package/{dist-types → dist}/components/CodeSnippet/index.d.ts +0 -0
  216. /package/{dist-types → dist}/components/Col/Col.d.ts +0 -0
  217. /package/{dist-types → dist}/components/Col/index.d.ts +0 -0
  218. /package/{dist-types → dist}/components/ConfirmationButton/ConfirmationButton.d.ts +0 -0
  219. /package/{dist-types → dist}/components/ConfirmationButton/index.d.ts +0 -0
  220. /package/{dist-types → dist}/components/ConfirmationModal/ConfirmationModal.d.ts +0 -0
  221. /package/{dist-types → dist}/components/ConfirmationModal/index.d.ts +0 -0
  222. /package/{dist-types → dist}/components/ContextualMenu/ContextualMenu.d.ts +0 -0
  223. /package/{dist-types → dist}/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +0 -0
  224. /package/{dist-types → dist}/components/ContextualMenu/ContextualMenuDropdown/index.d.ts +0 -0
  225. /package/{dist-types → dist}/components/ContextualMenu/index.d.ts +0 -0
  226. /package/{dist-types → dist}/components/EmptyState/EmptyState.d.ts +0 -0
  227. /package/{dist-types → dist}/components/EmptyState/index.d.ts +0 -0
  228. /package/{dist-types → dist}/components/Field/Field.d.ts +0 -0
  229. /package/{dist-types → dist}/components/Field/index.d.ts +0 -0
  230. /package/{dist-types → dist}/components/Form/Form.d.ts +0 -0
  231. /package/{dist-types → dist}/components/Form/index.d.ts +0 -0
  232. /package/{dist-types → dist}/components/FormikField/FormikField.d.ts +0 -0
  233. /package/{dist-types → dist}/components/FormikField/index.d.ts +0 -0
  234. /package/{dist-types → dist}/components/Icon/Icon.d.ts +0 -0
  235. /package/{dist-types → dist}/components/Icon/index.d.ts +0 -0
  236. /package/{dist-types → dist}/components/Input/Input.d.ts +0 -0
  237. /package/{dist-types → dist}/components/Input/index.d.ts +0 -0
  238. /package/{dist-types → dist}/components/Label/Label.d.ts +0 -0
  239. /package/{dist-types → dist}/components/Label/index.d.ts +0 -0
  240. /package/{dist-types → dist}/components/Link/Link.d.ts +0 -0
  241. /package/{dist-types → dist}/components/Link/index.d.ts +0 -0
  242. /package/{dist-types → dist}/components/List/List.d.ts +0 -0
  243. /package/{dist-types → dist}/components/List/index.d.ts +0 -0
  244. /package/{dist-types → dist}/components/Loader/Loader.d.ts +0 -0
  245. /package/{dist-types → dist}/components/Loader/index.d.ts +0 -0
  246. /package/{dist-types → dist}/components/LoginPageLayout/LoginPageLayout.d.ts +0 -0
  247. /package/{dist-types → dist}/components/LoginPageLayout/index.d.ts +0 -0
  248. /package/{dist-types → dist}/components/MainTable/MainTable.d.ts +0 -0
  249. /package/{dist-types → dist}/components/MainTable/index.d.ts +0 -0
  250. /package/{dist-types → dist}/components/Modal/Modal.d.ts +0 -0
  251. /package/{dist-types → dist}/components/Modal/index.d.ts +0 -0
  252. /package/{dist-types → dist}/components/ModularTable/ModularTable.d.ts +0 -0
  253. /package/{dist-types → dist}/components/ModularTable/index.d.ts +0 -0
  254. /package/{dist-types → dist}/components/MultiSelect/FadeInDown/FadeInDown.d.ts +0 -0
  255. /package/{dist-types → dist}/components/MultiSelect/FadeInDown/index.d.ts +0 -0
  256. /package/{dist-types → dist}/components/MultiSelect/MultiSelect.d.ts +0 -0
  257. /package/{dist-types → dist}/components/MultiSelect/index.d.ts +0 -0
  258. /package/{dist-types → dist}/components/Navigation/Navigation.d.ts +0 -0
  259. /package/{dist-types → dist}/components/Navigation/NavigationLink/NavigationLink.d.ts +0 -0
  260. /package/{dist-types → dist}/components/Navigation/NavigationLink/index.d.ts +0 -0
  261. /package/{dist-types → dist}/components/Navigation/NavigationMenu/NavigationMenu.d.ts +0 -0
  262. /package/{dist-types → dist}/components/Navigation/NavigationMenu/index.d.ts +0 -0
  263. /package/{dist-types → dist}/components/Navigation/index.d.ts +0 -0
  264. /package/{dist-types → dist}/components/Navigation/types.d.ts +0 -0
  265. /package/{dist-types → dist}/components/Notification/Notification.d.ts +0 -0
  266. /package/{dist-types → dist}/components/Notification/index.d.ts +0 -0
  267. /package/{dist-types → dist}/components/NotificationProvider/NotificationProvider.d.ts +0 -0
  268. /package/{dist-types → dist}/components/NotificationProvider/index.d.ts +0 -0
  269. /package/{dist-types → dist}/components/NotificationProvider/messageBuilder.d.ts +0 -0
  270. /package/{dist-types → dist}/components/NotificationProvider/types.d.ts +0 -0
  271. /package/{dist-types → dist}/components/Pagination/Pagination.d.ts +0 -0
  272. /package/{dist-types → dist}/components/Pagination/PaginationButton/PaginationButton.d.ts +0 -0
  273. /package/{dist-types → dist}/components/Pagination/PaginationButton/index.d.ts +0 -0
  274. /package/{dist-types → dist}/components/Pagination/PaginationItem/PaginationItem.d.ts +0 -0
  275. /package/{dist-types → dist}/components/Pagination/PaginationItem/index.d.ts +0 -0
  276. /package/{dist-types → dist}/components/Pagination/index.d.ts +0 -0
  277. /package/{dist-types → dist}/components/Panel/Panel.d.ts +0 -0
  278. /package/{dist-types → dist}/components/Panel/index.d.ts +0 -0
  279. /package/{dist-types → dist}/components/PasswordToggle/PasswordToggle.d.ts +0 -0
  280. /package/{dist-types → dist}/components/PasswordToggle/index.d.ts +0 -0
  281. /package/{dist-types → dist}/components/RadioInput/RadioInput.d.ts +0 -0
  282. /package/{dist-types → dist}/components/RadioInput/index.d.ts +0 -0
  283. /package/{dist-types → dist}/components/Row/Row.d.ts +0 -0
  284. /package/{dist-types → dist}/components/Row/index.d.ts +0 -0
  285. /package/{dist-types → dist}/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.d.ts +0 -0
  286. /package/{dist-types → dist}/components/SearchAndFilter/FilterPanelSection/index.d.ts +0 -0
  287. /package/{dist-types → dist}/components/SearchAndFilter/SearchAndFilter.d.ts +0 -0
  288. /package/{dist-types → dist}/components/SearchAndFilter/index.d.ts +0 -0
  289. /package/{dist-types → dist}/components/SearchAndFilter/types.d.ts +0 -0
  290. /package/{dist-types → dist}/components/SearchAndFilter/utils.d.ts +0 -0
  291. /package/{dist-types → dist}/components/SearchBox/SearchBox.d.ts +0 -0
  292. /package/{dist-types → dist}/components/SearchBox/index.d.ts +0 -0
  293. /package/{dist-types → dist}/components/Select/Select.d.ts +0 -0
  294. /package/{dist-types → dist}/components/Select/index.d.ts +0 -0
  295. /package/{dist-types → dist}/components/SideNavigation/SideNavigation.d.ts +0 -0
  296. /package/{dist-types → dist}/components/SideNavigation/SideNavigationBase/SideNavigationBase.d.ts +0 -0
  297. /package/{dist-types → dist}/components/SideNavigation/SideNavigationBase/index.d.ts +0 -0
  298. /package/{dist-types → dist}/components/SideNavigation/SideNavigationItem/SideNavigationItem.d.ts +0 -0
  299. /package/{dist-types → dist}/components/SideNavigation/SideNavigationItem/index.d.ts +0 -0
  300. /package/{dist-types → dist}/components/SideNavigation/SideNavigationLink/SideNavigationLink.d.ts +0 -0
  301. /package/{dist-types → dist}/components/SideNavigation/SideNavigationLink/index.d.ts +0 -0
  302. /package/{dist-types → dist}/components/SideNavigation/SideNavigationText/SideNavigationText.d.ts +0 -0
  303. /package/{dist-types → dist}/components/SideNavigation/SideNavigationText/index.d.ts +0 -0
  304. /package/{dist-types → dist}/components/SideNavigation/index.d.ts +0 -0
  305. /package/{dist-types → dist}/components/Slider/Slider.d.ts +0 -0
  306. /package/{dist-types → dist}/components/Slider/index.d.ts +0 -0
  307. /package/{dist-types → dist}/components/Spinner/Spinner.d.ts +0 -0
  308. /package/{dist-types → dist}/components/Spinner/index.d.ts +0 -0
  309. /package/{dist-types → dist}/components/StatusLabel/StatusLabel.d.ts +0 -0
  310. /package/{dist-types → dist}/components/StatusLabel/index.d.ts +0 -0
  311. /package/{dist-types → dist}/components/Strip/Strip.d.ts +0 -0
  312. /package/{dist-types → dist}/components/Strip/index.d.ts +0 -0
  313. /package/{dist-types → dist}/components/SummaryButton/SummaryButton.d.ts +0 -0
  314. /package/{dist-types → dist}/components/SummaryButton/index.d.ts +0 -0
  315. /package/{dist-types → dist}/components/Switch/Switch.d.ts +0 -0
  316. /package/{dist-types → dist}/components/Switch/index.d.ts +0 -0
  317. /package/{dist-types → dist}/components/Table/Table.d.ts +0 -0
  318. /package/{dist-types → dist}/components/Table/index.d.ts +0 -0
  319. /package/{dist-types → dist}/components/TableCell/TableCell.d.ts +0 -0
  320. /package/{dist-types → dist}/components/TableCell/index.d.ts +0 -0
  321. /package/{dist-types → dist}/components/TableHeader/TableHeader.d.ts +0 -0
  322. /package/{dist-types → dist}/components/TableHeader/index.d.ts +0 -0
  323. /package/{dist-types → dist}/components/TablePagination/TablePagination.d.ts +0 -0
  324. /package/{dist-types → dist}/components/TablePagination/TablePaginationControls/TablePaginationControls.d.ts +0 -0
  325. /package/{dist-types → dist}/components/TablePagination/TablePaginationControls/index.d.ts +0 -0
  326. /package/{dist-types → dist}/components/TablePagination/index.d.ts +0 -0
  327. /package/{dist-types → dist}/components/TablePagination/utils.d.ts +0 -0
  328. /package/{dist-types → dist}/components/TableRow/TableRow.d.ts +0 -0
  329. /package/{dist-types → dist}/components/TableRow/index.d.ts +0 -0
  330. /package/{dist-types → dist}/components/Tabs/Tabs.d.ts +0 -0
  331. /package/{dist-types → dist}/components/Tabs/index.d.ts +0 -0
  332. /package/{dist-types → dist}/components/Textarea/Textarea.d.ts +0 -0
  333. /package/{dist-types → dist}/components/Textarea/index.d.ts +0 -0
  334. /package/{dist-types → dist}/components/Tooltip/Tooltip.d.ts +0 -0
  335. /package/{dist-types → dist}/components/Tooltip/index.d.ts +0 -0
  336. /package/{dist-types → dist}/enums.d.ts +0 -0
  337. /package/{dist-types → dist}/hooks/index.d.ts +0 -0
  338. /package/{dist-types → dist}/hooks/useId.d.ts +0 -0
  339. /package/{dist-types → dist}/hooks/useListener.d.ts +0 -0
  340. /package/{dist-types → dist}/hooks/useOnClickOutside.d.ts +0 -0
  341. /package/{dist-types → dist}/hooks/useOnEscapePressed.d.ts +0 -0
  342. /package/{dist-types → dist}/hooks/usePagination.d.ts +0 -0
  343. /package/{dist-types → dist}/hooks/usePrevious.d.ts +0 -0
  344. /package/{dist-types → dist}/hooks/useThrottle.d.ts +0 -0
  345. /package/{dist-types → dist}/hooks/useWindowFitment.d.ts +0 -0
  346. /package/{dist-types → dist}/index.d.ts +0 -0
  347. /package/{dist-types → dist}/types/index.d.ts +0 -0
  348. /package/{dist-types → dist}/utils.d.ts +0 -0
@@ -1,89 +0,0 @@
1
- var _excluded = ["items"],
2
- _excluded2 = ["children", "className", "dark", "hasIcons", "items", "linkComponent", "listClassName", "navClassName"];
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
6
- import React from "react";
7
- import classNames from "classnames";
8
- import SideNavigationItem from "./SideNavigationItem";
9
- import { isReactNode } from "../../utils";
10
- var generateItem = (item, index, linkComponent, dark) => {
11
- if (isReactNode(item)) {
12
- return /*#__PURE__*/React.createElement(SideNavigationItem, {
13
- key: index
14
- }, item);
15
- }
16
- if ("nonInteractive" in item) {
17
- var _item$dark;
18
- return /*#__PURE__*/React.createElement(SideNavigationItem, _extends({}, item, {
19
- dark: (_item$dark = item.dark) !== null && _item$dark !== void 0 ? _item$dark : dark,
20
- key: index
21
- }));
22
- }
23
- if ("children" in item) {
24
- return /*#__PURE__*/React.createElement(SideNavigationItem, _extends({
25
- key: index
26
- }, item));
27
- }
28
- if ("label" in item) {
29
- var _item$component, _item$dark2;
30
- return /*#__PURE__*/React.createElement(SideNavigationItem, _extends({
31
- component: (_item$component = item.component) !== null && _item$component !== void 0 ? _item$component : linkComponent,
32
- dark: (_item$dark2 = item.dark) !== null && _item$dark2 !== void 0 ? _item$dark2 : dark
33
- }, item, {
34
- key: index
35
- }));
36
- }
37
- return null;
38
- };
39
- var generateItems = (groups, listClassName, linkComponent, dark) => {
40
- return groups === null || groups === void 0 ? void 0 : groups.filter(Boolean).map((group, g) => {
41
- var items;
42
- var props = {};
43
- if (typeof group === "object" && "items" in group) {
44
- var _group = group;
45
- ({
46
- items
47
- } = _group);
48
- props = _objectWithoutProperties(_group, _excluded);
49
- _group;
50
- } else {
51
- items = group;
52
- }
53
- return /*#__PURE__*/React.createElement("ul", _extends({}, props, {
54
- className: classNames("p-side-navigation__list", listClassName, "className" in group ? group.className : null),
55
- key: g
56
- }), items.filter(Boolean).map((item, i) => generateItem(item, i, linkComponent, dark)));
57
- });
58
- };
59
- var getHasIcons = groups => groups === null || groups === void 0 ? void 0 : groups.some(group => {
60
- var _ref;
61
- return (_ref = group && "items" in group ? group.items : group) === null || _ref === void 0 ? void 0 : _ref.some(item => isReactNode(item) ? false : item && "icon" in item && !!item.icon);
62
- });
63
-
64
- /**
65
- * This is a [React](https://reactjs.org/) component for side navigation, used
66
- * in the [Vanilla](https://vanillaframework.io/docs/) layouts.
67
- */
68
- var SideNavigation = _ref2 => {
69
- var {
70
- children,
71
- className,
72
- dark,
73
- hasIcons,
74
- items,
75
- linkComponent,
76
- listClassName,
77
- navClassName
78
- } = _ref2,
79
- props = _objectWithoutProperties(_ref2, _excluded2);
80
- return /*#__PURE__*/React.createElement("div", _extends({
81
- className: classNames(className, {
82
- "p-side-navigation--icons": hasIcons || getHasIcons(items),
83
- "is-dark": dark
84
- })
85
- }, props), /*#__PURE__*/React.createElement("nav", {
86
- className: navClassName
87
- }, children !== null && children !== void 0 ? children : generateItems(items, listClassName, linkComponent, dark)));
88
- };
89
- export default SideNavigation;
@@ -1,31 +0,0 @@
1
- var _excluded = ["component", "dark", "icon", "label", "status", "forwardRef"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
- import React from "react";
6
- import Icon from "../../Icon";
7
- var SideNavigationBase = _ref => {
8
- var {
9
- component: Component,
10
- dark,
11
- icon,
12
- label,
13
- status,
14
- forwardRef
15
- } = _ref,
16
- props = _objectWithoutProperties(_ref, _excluded);
17
- return /*#__PURE__*/React.createElement(Component, _extends({
18
- ref: forwardRef
19
- }, props), icon ? /*#__PURE__*/React.createElement(Icon, {
20
- name: icon,
21
- light: dark,
22
- className: "p-side-navigation__icon"
23
- }) : null, /*#__PURE__*/React.createElement("span", {
24
- className: "p-side-navigation__label"
25
- }, /*#__PURE__*/React.createElement("span", {
26
- className: "p-side-navigation__label"
27
- }, label)), status ? /*#__PURE__*/React.createElement("div", {
28
- className: "p-side-navigation__status"
29
- }, status) : null);
30
- };
31
- export default SideNavigationBase;
@@ -1 +0,0 @@
1
- export { default } from "./SideNavigationBase";
@@ -1,32 +0,0 @@
1
- var _excluded = ["nonInteractive"],
2
- _excluded2 = ["children"];
3
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
5
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
6
- import React from "react";
7
- import SideNavigationLink from "../SideNavigationLink";
8
- import SideNavigationText from "../SideNavigationText";
9
- var SideNavigationItem = props => {
10
- var content;
11
- var liProps = {};
12
- if ("nonInteractive" in props) {
13
- var {
14
- nonInteractive: _
15
- } = props,
16
- textProps = _objectWithoutProperties(props, _excluded);
17
- content = /*#__PURE__*/React.createElement(SideNavigationText, textProps);
18
- } else if (!("children" in props)) {
19
- content = /*#__PURE__*/React.createElement(SideNavigationLink, props);
20
- } else {
21
- var _props = props;
22
- ({
23
- children: content
24
- } = _props);
25
- liProps = _objectWithoutProperties(_props, _excluded2);
26
- _props;
27
- }
28
- return /*#__PURE__*/React.createElement("li", _extends({
29
- className: "p-side-navigation__item"
30
- }, liProps), content);
31
- };
32
- export default SideNavigationItem;
@@ -1 +0,0 @@
1
- export { default } from "./SideNavigationItem";
@@ -1,25 +0,0 @@
1
- var _excluded = ["component", "forwardRef"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
- import React from "react";
6
- import classNames from "classnames";
7
- import SideNavigationBase from "../SideNavigationBase";
8
- var SideNavigationLink = _ref => {
9
- var {
10
- component,
11
- forwardRef
12
- } = _ref,
13
- props = _objectWithoutProperties(_ref, _excluded);
14
- var className = null;
15
- if ("className" in props && typeof props.className === "string") {
16
- className = props.className;
17
- delete props.className;
18
- }
19
- return /*#__PURE__*/React.createElement(SideNavigationBase, _extends({
20
- className: classNames("p-side-navigation__link", className),
21
- component: component !== null && component !== void 0 ? component : "a",
22
- forwardRef: forwardRef
23
- }, props));
24
- };
25
- export default SideNavigationLink;
@@ -1 +0,0 @@
1
- export { default } from "./SideNavigationLink";
@@ -1,20 +0,0 @@
1
- var _excluded = ["children", "className"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
- import React from "react";
6
- import classNames from "classnames";
7
- import SideNavigationBase from "../SideNavigationBase";
8
- var SideNavigationText = _ref => {
9
- var {
10
- children,
11
- className
12
- } = _ref,
13
- props = _objectWithoutProperties(_ref, _excluded);
14
- return /*#__PURE__*/React.createElement(SideNavigationBase, _extends({
15
- className: classNames("p-side-navigation__text", className),
16
- component: "span",
17
- label: children
18
- }, props));
19
- };
20
- export default SideNavigationText;
@@ -1 +0,0 @@
1
- export { default } from "./SideNavigationText";
@@ -1,4 +0,0 @@
1
- export { default } from "./SideNavigation";
2
- export { default as SideNavigationItem } from "./SideNavigationItem";
3
- export { default as SideNavigationText } from "./SideNavigationText";
4
- export { default as SideNavigationLink } from "./SideNavigationLink";
@@ -1,83 +0,0 @@
1
- var _excluded = ["caution", "disabled", "error", "help", "id", "inputDisabled", "label", "max", "min", "onChange", "required", "showInput"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
- import React, { useId } from "react";
6
- import Field from "../Field";
7
- export var FILLED_COLOR = "#0066CC";
8
- export var EMPTY_COLOR = "#D9D9D9";
9
- /**
10
- * This is the [React](https://reactjs.org/) component for the Vanilla [Slider](https://vanillaframework.io/docs/patterns/slider).
11
- *
12
- * Sliders should be used to let a user specify a numeric value between a defined
13
- minimum and maximum value, however the precise value is not especially important.
14
- */
15
- export var Slider = _ref => {
16
- var _navigator;
17
- var {
18
- caution,
19
- disabled = false,
20
- error,
21
- help,
22
- id,
23
- inputDisabled = false,
24
- label,
25
- max,
26
- min,
27
- onChange,
28
- required = false,
29
- showInput = false
30
- } = _ref,
31
- inputProps = _objectWithoutProperties(_ref, _excluded);
32
- var validationId = useId();
33
- var helpId = useId();
34
- var defaultSliderId = useId();
35
- var sliderId = id || defaultSliderId;
36
- var hasError = !!error;
37
- var style = {};
38
- if ((_navigator = navigator) !== null && _navigator !== void 0 && (_navigator = _navigator.userAgent) !== null && _navigator !== void 0 && _navigator.includes("AppleWebKit")) {
39
- var _inputProps$value;
40
- // Range inputs on Webkit browsers don't have a built-in "filled" portion,
41
- // so instead it is handled here as a background.
42
- var val = (_inputProps$value = inputProps.value) !== null && _inputProps$value !== void 0 ? _inputProps$value : inputProps.defaultValue;
43
- var filledPercentage = "".concat((Number(val) - min) / (max - min) * 100, "%");
44
- style = {
45
- background: "linear-gradient(\n to right,\n ".concat(FILLED_COLOR, " 0%,\n ").concat(FILLED_COLOR, " ").concat(filledPercentage, ",\n ").concat(EMPTY_COLOR, " ").concat(filledPercentage, ",\n ").concat(EMPTY_COLOR, " 100%\n )")
46
- };
47
- }
48
- return /*#__PURE__*/React.createElement(Field, {
49
- caution: caution,
50
- error: error,
51
- help: help,
52
- forId: sliderId,
53
- helpId: helpId,
54
- label: label,
55
- required: required,
56
- validationId: validationId
57
- }, /*#__PURE__*/React.createElement("div", {
58
- className: "p-slider__wrapper"
59
- }, /*#__PURE__*/React.createElement("input", _extends({
60
- "aria-describedby": help ? helpId : null,
61
- "aria-errormessage": hasError ? validationId : null,
62
- "aria-invalid": hasError,
63
- disabled: disabled,
64
- id: sliderId,
65
- max: max,
66
- min: min,
67
- onChange: onChange,
68
- required: required,
69
- style: style,
70
- type: "range"
71
- }, inputProps)), showInput && /*#__PURE__*/React.createElement("input", _extends({
72
- "aria-describedby": help ? helpId : null,
73
- "aria-errormessage": hasError ? validationId : null,
74
- "aria-invalid": hasError,
75
- className: "p-slider__input",
76
- disabled: disabled || inputDisabled,
77
- max: max,
78
- min: min,
79
- onChange: onChange,
80
- type: "number"
81
- }, inputProps))));
82
- };
83
- export default Slider;
@@ -1 +0,0 @@
1
- export { default } from "./Slider";
@@ -1,36 +0,0 @@
1
- import _pt from "prop-types";
2
- var _excluded = ["className", "text", "isLight", "ariaLive", "role"];
3
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
5
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
6
- import React from "react";
7
- import classNames from "classnames";
8
- /**
9
- * This is a [React](https://reactjs.org/) component for the Vanilla [Spin](https://docs.vanillaframework.io/settings/animation-settings/#spin) animation.
10
- */
11
- var Spinner = _ref => {
12
- var {
13
- className,
14
- text,
15
- isLight = false,
16
- ariaLive = "polite",
17
- role = "alert"
18
- } = _ref,
19
- props = _objectWithoutProperties(_ref, _excluded);
20
- return /*#__PURE__*/React.createElement("span", _extends({}, props, {
21
- className: classNames(className, "p-text--default"),
22
- role: role,
23
- "aria-live": ariaLive
24
- }), /*#__PURE__*/React.createElement("i", {
25
- className: classNames("p-icon--spinner", "u-animation--spin", {
26
- "is-light": isLight
27
- })
28
- }, text ? "" : "Loading"), text && /*#__PURE__*/React.createElement(React.Fragment, null, "\u2002", /*#__PURE__*/React.createElement("span", null, text)));
29
- };
30
- Spinner.propTypes = {
31
- isLight: _pt.bool,
32
- text: _pt.string,
33
- role: _pt.string,
34
- ariaLive: _pt.oneOf(["assertive", "off", "polite"])
35
- };
36
- export default Spinner;
@@ -1 +0,0 @@
1
- export { default } from "./Spinner";
@@ -1,36 +0,0 @@
1
- var _excluded = ["appearance", "children", "className"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
- import React from "react";
6
- import classNames from "classnames";
7
- export var StatusLabelAppearance = {
8
- CAUTION: "caution",
9
- DEFAULT: "",
10
- INFORMATION: "information",
11
- NEGATIVE: "negative",
12
- POSITIVE: "positive"
13
- };
14
-
15
- /**
16
- * The type of the StatusLabel props.
17
- */
18
-
19
- /**
20
- * This is a [React](https://reactjs.org/) component for the Vanilla [Label](https://vanillaframework.io/docs/patterns/labels).
21
- *
22
- * Labels are static elements which you can apply to signify status, tags or any other information you find useful.
23
- */
24
- var StatusLabel = _ref => {
25
- var {
26
- appearance,
27
- children,
28
- className
29
- } = _ref,
30
- labelProps = _objectWithoutProperties(_ref, _excluded);
31
- var classes = classNames(appearance ? "p-status-label--".concat(appearance) : "p-status-label", className);
32
- return /*#__PURE__*/React.createElement("div", _extends({}, labelProps, {
33
- className: classes
34
- }), children);
35
- };
36
- export default StatusLabel;
@@ -1 +0,0 @@
1
- export { default, StatusLabelAppearance } from "./StatusLabel";
@@ -1,50 +0,0 @@
1
- var _excluded = ["background", "bordered", "children", "className", "colSize", "dark", "deep", "includeCol", "element", "light", "rowClassName", "shallow", "type"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
- import classNames from "classnames";
6
- import React from "react";
7
- import Col from "../Col";
8
- import Row from "../Row";
9
- /**
10
- * This is a [React](https://reactjs.org/) component for the Vanilla [Strip](https://docs.vanillaframework.io/patterns/strip/).
11
- *
12
- * The strip pattern provides a full width strip container in which to wrap a row.
13
- */
14
- var Strip = _ref => {
15
- var {
16
- background,
17
- bordered = false,
18
- children,
19
- className,
20
- colSize = 12,
21
- dark = false,
22
- deep = false,
23
- includeCol = true,
24
- element: Component = "div",
25
- light = false,
26
- rowClassName,
27
- shallow = false,
28
- type
29
- } = _ref,
30
- props = _objectWithoutProperties(_ref, _excluded);
31
- return /*#__PURE__*/React.createElement(Component, _extends({
32
- className: classNames(className, {
33
- ["p-strip--".concat(type)]: !!type,
34
- "p-strip": !type,
35
- "is-bordered": bordered,
36
- "is-dark": dark,
37
- "is-deep": deep,
38
- "is-light": light,
39
- "is-shallow": shallow
40
- }),
41
- style: background && {
42
- backgroundImage: "url('".concat(background, "')")
43
- }
44
- }, props), /*#__PURE__*/React.createElement(Row, {
45
- className: rowClassName
46
- }, includeCol ? /*#__PURE__*/React.createElement(Col, {
47
- size: colSize
48
- }, children) : children));
49
- };
50
- export default Strip;
@@ -1 +0,0 @@
1
- export { default } from "./Strip";
@@ -1,28 +0,0 @@
1
- import React from "react";
2
- import classNames from "classnames";
3
- import ActionButton from "../ActionButton";
4
- /**
5
- * `SummaryButton` is a component to render a short summary with an action button. It's initial use case is a summary of table contents with action to load more items.
6
- */
7
- var SummaryButton = _ref => {
8
- var {
9
- className,
10
- isLoading,
11
- summary,
12
- label,
13
- onClick
14
- } = _ref;
15
- return /*#__PURE__*/React.createElement("small", {
16
- className: className
17
- }, summary && /*#__PURE__*/React.createElement("span", {
18
- className: "u-text--muted"
19
- }, summary), onClick && /*#__PURE__*/React.createElement(ActionButton, {
20
- className: classNames("is-small", "is-dense", {
21
- "is-inline": summary
22
- }),
23
- onClick: onClick,
24
- loading: isLoading,
25
- disabled: isLoading
26
- }, label));
27
- };
28
- export default SummaryButton;
@@ -1 +0,0 @@
1
- export { default } from "./SummaryButton";
@@ -1,28 +0,0 @@
1
- var _excluded = ["label", "disabled"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
- import React from "react";
6
- /**
7
- * This is a [React](https://reactjs.org/) component for the Vanilla [Switch](https://vanillaframework.io/docs/patterns/switch) component.
8
- */
9
- export var Switch = _ref => {
10
- var {
11
- label,
12
- disabled = false
13
- } = _ref,
14
- inputProps = _objectWithoutProperties(_ref, _excluded);
15
- return /*#__PURE__*/React.createElement("label", {
16
- className: "p-switch"
17
- }, /*#__PURE__*/React.createElement("input", _extends({
18
- type: "checkbox",
19
- className: "p-switch__input",
20
- role: "switch",
21
- disabled: disabled
22
- }, inputProps)), /*#__PURE__*/React.createElement("span", {
23
- className: "p-switch__slider"
24
- }), /*#__PURE__*/React.createElement("span", {
25
- className: "p-switch__label"
26
- }, label));
27
- };
28
- export default Switch;
@@ -1 +0,0 @@
1
- export { default } from "./Switch";
@@ -1,23 +0,0 @@
1
- var _excluded = ["children", "className", "expanding", "responsive"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
- import classNames from "classnames";
6
- import React from "react";
7
- var Table = _ref => {
8
- var {
9
- children,
10
- className,
11
- expanding = false,
12
- responsive = false
13
- } = _ref,
14
- props = _objectWithoutProperties(_ref, _excluded);
15
- return /*#__PURE__*/React.createElement("table", _extends({
16
- role: "grid",
17
- className: classNames(className, {
18
- "p-table--mobile-card": responsive,
19
- "p-table--expanding": expanding
20
- })
21
- }, props), children);
22
- };
23
- export default Table;
@@ -1 +0,0 @@
1
- export { default } from "./Table";
@@ -1,26 +0,0 @@
1
- var _excluded = ["children", "className", "hasOverflow", "expanding", "hidden", "role"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
- import classNames from "classnames";
6
- import React from "react";
7
- var TableCell = _ref => {
8
- var {
9
- children,
10
- className,
11
- hasOverflow = false,
12
- expanding = false,
13
- hidden = false,
14
- role = "gridcell"
15
- } = _ref,
16
- props = _objectWithoutProperties(_ref, _excluded);
17
- return /*#__PURE__*/React.createElement("td", _extends({
18
- role: role,
19
- "aria-hidden": hidden,
20
- className: classNames(className, {
21
- "p-table__expanding-panel": expanding,
22
- "has-overflow": hasOverflow
23
- })
24
- }, props), children);
25
- };
26
- export default TableCell;
@@ -1 +0,0 @@
1
- export { default } from "./TableCell";
@@ -1,17 +0,0 @@
1
- var _excluded = ["children", "sort"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
- import React from "react";
6
- var TableHeader = _ref => {
7
- var {
8
- children,
9
- sort
10
- } = _ref,
11
- props = _objectWithoutProperties(_ref, _excluded);
12
- return /*#__PURE__*/React.createElement("th", _extends({
13
- role: "columnheader",
14
- "aria-sort": sort
15
- }, props), children);
16
- };
17
- export default TableHeader;
@@ -1 +0,0 @@
1
- export { default } from "./TableHeader";