@canonical/react-components 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (787) hide show
  1. package/dist/components/Accordion/Accordion.stories.d.ts +18 -0
  2. package/dist/components/Accordion/Accordion.stories.js +117 -0
  3. package/dist/components/Accordion/Accordion.test.d.ts +1 -0
  4. package/dist/components/Accordion/AccordionSection/AccordionSection.test.d.ts +1 -0
  5. package/dist/components/ActionButton/ActionButton.stories.d.ts +7 -0
  6. package/dist/components/ActionButton/ActionButton.stories.js +36 -0
  7. package/dist/components/ActionButton/ActionButton.test.d.ts +1 -0
  8. package/dist/components/ApplicationLayout/AppAside/AppAside.stories.d.ts +13 -0
  9. package/dist/components/ApplicationLayout/AppAside/AppAside.stories.js +116 -0
  10. package/dist/components/ApplicationLayout/AppAside/AppAside.test.d.ts +1 -0
  11. package/dist/components/ApplicationLayout/AppMain/AppMain.stories.d.ts +14 -0
  12. package/dist/components/ApplicationLayout/AppMain/AppMain.stories.js +45 -0
  13. package/dist/components/ApplicationLayout/AppMain/AppMain.test.d.ts +1 -0
  14. package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.d.ts +12 -0
  15. package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +104 -0
  16. package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.test.d.ts +1 -0
  17. package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.d.ts +15 -0
  18. package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.js +52 -0
  19. package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.test.d.ts +1 -0
  20. package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.d.ts +13 -0
  21. package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.js +41 -0
  22. package/dist/components/ApplicationLayout/AppStatus/AppStatus.test.d.ts +1 -0
  23. package/dist/components/ApplicationLayout/Application/Application.stories.d.ts +6 -0
  24. package/dist/components/ApplicationLayout/Application/Application.stories.js +16 -0
  25. package/dist/components/ApplicationLayout/Application/Application.test.d.ts +1 -0
  26. package/dist/components/ApplicationLayout/ApplicationLayout.stories.d.ts +24 -0
  27. package/dist/components/ApplicationLayout/ApplicationLayout.stories.js +232 -0
  28. package/dist/components/ApplicationLayout/ApplicationLayout.test.d.ts +1 -0
  29. package/dist/components/ArticlePagination/ArticlePagination.stories.d.ts +6 -0
  30. package/dist/components/ArticlePagination/ArticlePagination.stories.js +22 -0
  31. package/dist/components/ArticlePagination/ArticlePagination.test.d.ts +1 -0
  32. package/dist/components/Badge/Badge.stories.d.ts +15 -0
  33. package/dist/components/Badge/Badge.stories.js +62 -0
  34. package/dist/components/Badge/Badge.test.d.ts +1 -0
  35. package/dist/components/Button/Button.stories.d.ts +32 -0
  36. package/dist/components/Button/Button.stories.js +180 -0
  37. package/dist/components/Button/Button.test.d.ts +1 -0
  38. package/dist/components/Card/Card.stories.d.ts +33 -0
  39. package/dist/components/Card/Card.stories.js +51 -0
  40. package/dist/components/Card/Card.test.d.ts +1 -0
  41. package/dist/components/CheckboxInput/CheckableInput/CheckableInput.test.d.ts +1 -0
  42. package/dist/components/CheckboxInput/CheckboxInput.stories.d.ts +11 -0
  43. package/dist/components/CheckboxInput/CheckboxInput.stories.js +84 -0
  44. package/dist/components/CheckboxInput/CheckboxInput.test.d.ts +1 -0
  45. package/dist/components/Chip/Chip.stories.d.ts +9 -0
  46. package/dist/components/Chip/Chip.stories.js +45 -0
  47. package/dist/components/Chip/Chip.test.d.ts +1 -0
  48. package/dist/components/CodeSnippet/CodeSnippet.stories.d.ts +45 -0
  49. package/dist/components/CodeSnippet/CodeSnippet.stories.js +281 -0
  50. package/dist/components/CodeSnippet/CodeSnippet.test.d.ts +1 -0
  51. package/dist/components/Col/Col.stories.d.ts +11 -0
  52. package/dist/components/Col/Col.stories.js +154 -0
  53. package/dist/components/Col/Col.test.d.ts +1 -0
  54. package/dist/components/ConfirmationButton/ConfirmationButton.stories.d.ts +9 -0
  55. package/dist/components/ConfirmationButton/ConfirmationButton.stories.js +108 -0
  56. package/dist/components/ConfirmationButton/ConfirmationButton.test.d.ts +1 -0
  57. package/dist/components/ConfirmationModal/ConfirmationModal.stories.d.ts +18 -0
  58. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +135 -0
  59. package/dist/components/ConfirmationModal/ConfirmationModal.test.d.ts +1 -0
  60. package/dist/components/ContextualMenu/ContextualMenu.stories.d.ts +13 -0
  61. package/dist/components/ContextualMenu/ContextualMenu.stories.js +107 -0
  62. package/dist/components/ContextualMenu/ContextualMenu.test.d.ts +1 -0
  63. package/dist/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.test.d.ts +1 -0
  64. package/dist/components/DoughnutChart/DoughnutChart.stories.d.ts +9 -0
  65. package/dist/components/DoughnutChart/DoughnutChart.stories.js +42 -0
  66. package/dist/components/DoughnutChart/DoughnutChart.test.d.ts +1 -0
  67. package/dist/components/EmptyState/EmptyState.stories.d.ts +7 -0
  68. package/dist/components/EmptyState/EmptyState.stories.js +49 -0
  69. package/dist/components/EmptyState/EmptyState.test.d.ts +1 -0
  70. package/dist/components/Field/Field.test.d.ts +1 -0
  71. package/dist/components/Form/Form.stories.d.ts +12 -0
  72. package/dist/components/Form/Form.stories.js +179 -0
  73. package/dist/components/Form/Form.test.d.ts +1 -0
  74. package/dist/components/FormikField/FormikField.stories.d.ts +8 -0
  75. package/dist/components/FormikField/FormikField.stories.js +85 -0
  76. package/dist/components/FormikField/FormikField.test.d.ts +1 -0
  77. package/dist/components/Icon/Icon.stories.d.ts +16 -0
  78. package/dist/components/Icon/Icon.stories.js +49 -0
  79. package/dist/components/Icon/Icon.test.d.ts +1 -0
  80. package/dist/components/Input/Input.stories.d.ts +14 -0
  81. package/dist/components/Input/Input.stories.js +148 -0
  82. package/dist/components/Input/Input.test.d.ts +1 -0
  83. package/dist/components/Label/Label.test.d.ts +1 -0
  84. package/dist/components/Link/Link.stories.d.ts +9 -0
  85. package/dist/components/Link/Link.stories.js +48 -0
  86. package/dist/components/Link/Link.test.d.ts +1 -0
  87. package/dist/components/List/List.stories.d.ts +15 -0
  88. package/dist/components/List/List.stories.js +122 -0
  89. package/dist/components/List/List.test.d.ts +1 -0
  90. package/dist/components/LoginPageLayout/LoginPageLayout.stories.d.ts +9 -0
  91. package/dist/components/LoginPageLayout/LoginPageLayout.stories.js +58 -0
  92. package/dist/components/LoginPageLayout/LoginPageLayout.test.d.ts +1 -0
  93. package/dist/components/MainTable/MainTable.stories.d.ts +15 -0
  94. package/dist/components/MainTable/MainTable.stories.js +553 -0
  95. package/dist/components/MainTable/MainTable.test.d.ts +1 -0
  96. package/dist/components/Modal/Modal.stories.d.ts +6 -0
  97. package/dist/components/Modal/Modal.stories.js +57 -0
  98. package/dist/components/Modal/Modal.test.d.ts +1 -0
  99. package/dist/components/ModularTable/ModularTable.stories.d.ts +27 -0
  100. package/dist/components/ModularTable/ModularTable.stories.js +343 -0
  101. package/dist/components/ModularTable/ModularTable.test.d.ts +1 -0
  102. package/dist/components/MultiSelect/FadeInDown/FadeInDown.test.d.ts +1 -0
  103. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +8 -0
  104. package/dist/components/MultiSelect/MultiSelect.stories.js +70 -0
  105. package/dist/components/MultiSelect/MultiSelect.test.d.ts +1 -0
  106. package/dist/components/Navigation/Navigation.stories.d.ts +43 -0
  107. package/dist/components/Navigation/Navigation.stories.js +232 -0
  108. package/dist/components/Navigation/Navigation.test.d.ts +1 -0
  109. package/dist/components/Navigation/NavigationLink/NavigationLink.test.d.ts +1 -0
  110. package/dist/components/Navigation/NavigationMenu/NavigationMenu.test.d.ts +1 -0
  111. package/dist/components/Notification/Notification.stories.d.ts +45 -0
  112. package/dist/components/Notification/Notification.stories.js +201 -0
  113. package/dist/components/Notification/Notification.test.d.ts +1 -0
  114. package/dist/components/NotificationProvider/NotificationProvider.test.d.ts +1 -0
  115. package/dist/components/Pagination/Pagination.stories.d.ts +14 -0
  116. package/dist/components/Pagination/Pagination.stories.js +94 -0
  117. package/dist/components/Pagination/Pagination.test.d.ts +1 -0
  118. package/dist/components/Pagination/PaginationButton/PaginationButton.test.d.ts +4 -0
  119. package/dist/components/Pagination/PaginationItem/PaginationItem.test.d.ts +1 -0
  120. package/dist/components/Panel/Panel.stories.d.ts +17 -0
  121. package/dist/components/Panel/Panel.stories.js +60 -0
  122. package/dist/components/Panel/Panel.test.d.ts +1 -0
  123. package/dist/components/PasswordToggle/PasswordToggle.stories.d.ts +12 -0
  124. package/dist/components/PasswordToggle/PasswordToggle.stories.js +74 -0
  125. package/dist/components/PasswordToggle/PasswordToggle.test.d.ts +1 -0
  126. package/dist/components/RadioInput/RadioInput.stories.d.ts +10 -0
  127. package/dist/components/RadioInput/RadioInput.stories.js +83 -0
  128. package/dist/components/RadioInput/RadioInput.test.d.ts +1 -0
  129. package/dist/components/Row/Row.stories.d.ts +9 -0
  130. package/dist/components/Row/Row.stories.js +29 -0
  131. package/dist/components/Row/Row.test.d.ts +1 -0
  132. package/dist/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.test.d.ts +1 -0
  133. package/dist/components/SearchAndFilter/SearchAndFilter.stories.d.ts +8 -0
  134. package/dist/components/SearchAndFilter/SearchAndFilter.stories.js +218 -0
  135. package/dist/components/SearchAndFilter/SearchAndFilter.test.d.ts +1 -0
  136. package/dist/components/SearchBox/SearchBox.stories.d.ts +14 -0
  137. package/dist/components/SearchBox/SearchBox.stories.js +106 -0
  138. package/dist/components/SearchBox/SearchBox.test.d.ts +1 -0
  139. package/dist/components/Select/Select.stories.d.ts +7 -0
  140. package/dist/components/Select/Select.stories.js +97 -0
  141. package/dist/components/Select/Select.test.d.ts +1 -0
  142. package/dist/components/SideNavigation/SideNavigation.stories.d.ts +14 -0
  143. package/dist/components/SideNavigation/SideNavigation.stories.js +62 -0
  144. package/dist/components/SideNavigation/SideNavigation.test.d.ts +1 -0
  145. package/dist/components/SideNavigation/SideNavigationBase/SideNavigationBase.test.d.ts +1 -0
  146. package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.d.ts +22 -0
  147. package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +70 -0
  148. package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.test.d.ts +1 -0
  149. package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.d.ts +7 -0
  150. package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.js +32 -0
  151. package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.test.d.ts +1 -0
  152. package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.d.ts +6 -0
  153. package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.js +25 -0
  154. package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.test.d.ts +1 -0
  155. package/dist/components/SkipLink/SkipLink.stories.d.ts +6 -0
  156. package/dist/components/SkipLink/SkipLink.stories.js +18 -0
  157. package/dist/components/SkipLink/SkipLink.test.d.ts +1 -0
  158. package/dist/components/Slider/Slider.stories.d.ts +10 -0
  159. package/dist/components/Slider/Slider.stories.js +74 -0
  160. package/dist/components/Slider/Slider.test.d.ts +1 -0
  161. package/dist/components/Spinner/Spinner.stories.d.ts +8 -0
  162. package/dist/components/Spinner/Spinner.stories.js +28 -0
  163. package/dist/components/Spinner/Spinner.test.d.ts +1 -0
  164. package/dist/components/StatusLabel/StatusLabel.stories.d.ts +10 -0
  165. package/dist/components/StatusLabel/StatusLabel.stories.js +61 -0
  166. package/dist/components/StatusLabel/StatusLabel.test.d.ts +1 -0
  167. package/dist/components/Stepper/Step/Step.stories.d.ts +6 -0
  168. package/dist/components/Stepper/Step/Step.stories.js +33 -0
  169. package/dist/components/Stepper/Step/Step.test.d.ts +1 -0
  170. package/dist/components/Stepper/Stepper.stories.d.ts +11 -0
  171. package/dist/components/Stepper/Stepper.stories.js +289 -0
  172. package/dist/components/Stepper/Stepper.test.d.ts +1 -0
  173. package/dist/components/Strip/Strip.stories.d.ts +12 -0
  174. package/dist/components/Strip/Strip.stories.js +130 -0
  175. package/dist/components/Strip/Strip.test.d.ts +1 -0
  176. package/dist/components/SummaryButton/SummaryButton.stories.d.ts +18 -0
  177. package/dist/components/SummaryButton/SummaryButton.stories.js +59 -0
  178. package/dist/components/SummaryButton/SummaryButton.test.d.ts +1 -0
  179. package/dist/components/Switch/Switch.stories.d.ts +7 -0
  180. package/dist/components/Switch/Switch.stories.js +26 -0
  181. package/dist/components/Switch/Switch.test.d.ts +1 -0
  182. package/dist/components/Table/Table.test.d.ts +1 -0
  183. package/dist/components/TableCell/TableCell.test.d.ts +1 -0
  184. package/dist/components/TableHeader/TableHeader.test.d.ts +1 -0
  185. package/dist/components/TablePagination/TablePagination.stories.d.ts +14 -0
  186. package/dist/components/TablePagination/TablePagination.stories.js +330 -0
  187. package/dist/components/TablePagination/TablePagination.test.d.ts +1 -0
  188. package/dist/components/TablePagination/TablePaginationControls/TablePaginationControls.test.d.ts +1 -0
  189. package/dist/components/TableRow/TableRow.test.d.ts +1 -0
  190. package/dist/components/Tabs/Tabs.stories.d.ts +11 -0
  191. package/dist/components/Tabs/Tabs.stories.js +56 -0
  192. package/dist/components/Tabs/Tabs.test.d.ts +1 -0
  193. package/dist/components/Textarea/Textarea.stories.d.ts +7 -0
  194. package/dist/components/Textarea/Textarea.stories.js +62 -0
  195. package/dist/components/Textarea/Textarea.test.d.ts +1 -0
  196. package/dist/components/Tooltip/Tooltip.stories.d.ts +12 -0
  197. package/dist/components/Tooltip/Tooltip.stories.js +71 -0
  198. package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
  199. package/dist/esm/components/Accordion/Accordion.d.ts +46 -0
  200. package/dist/esm/components/Accordion/Accordion.js +52 -0
  201. package/dist/esm/components/Accordion/Accordion.stories.d.ts +18 -0
  202. package/dist/esm/components/Accordion/Accordion.stories.js +109 -0
  203. package/dist/esm/components/Accordion/Accordion.test.d.ts +1 -0
  204. package/dist/esm/components/Accordion/AccordionSection/AccordionSection.d.ts +34 -0
  205. package/dist/esm/components/Accordion/AccordionSection/AccordionSection.js +47 -0
  206. package/dist/esm/components/Accordion/AccordionSection/AccordionSection.test.d.ts +1 -0
  207. package/dist/esm/components/Accordion/AccordionSection/index.d.ts +2 -0
  208. package/dist/esm/components/Accordion/AccordionSection/index.js +1 -0
  209. package/dist/esm/components/Accordion/index.d.ts +2 -0
  210. package/dist/esm/components/Accordion/index.js +1 -0
  211. package/dist/esm/components/ActionButton/ActionButton.d.ts +48 -0
  212. package/dist/esm/components/ActionButton/ActionButton.js +106 -0
  213. package/dist/esm/components/ActionButton/ActionButton.stories.d.ts +7 -0
  214. package/dist/esm/components/ActionButton/ActionButton.stories.js +29 -0
  215. package/dist/esm/components/ActionButton/ActionButton.test.d.ts +1 -0
  216. package/dist/esm/components/ActionButton/index.d.ts +2 -0
  217. package/dist/esm/components/ActionButton/index.js +1 -0
  218. package/dist/esm/components/ApplicationLayout/AppAside/AppAside.d.ts +33 -0
  219. package/dist/esm/components/ApplicationLayout/AppAside/AppAside.js +29 -0
  220. package/dist/esm/components/ApplicationLayout/AppAside/AppAside.stories.d.ts +13 -0
  221. package/dist/esm/components/ApplicationLayout/AppAside/AppAside.stories.js +108 -0
  222. package/dist/esm/components/ApplicationLayout/AppAside/AppAside.test.d.ts +1 -0
  223. package/dist/esm/components/ApplicationLayout/AppAside/index.d.ts +2 -0
  224. package/dist/esm/components/ApplicationLayout/AppAside/index.js +1 -0
  225. package/dist/esm/components/ApplicationLayout/AppMain/AppMain.d.ts +14 -0
  226. package/dist/esm/components/ApplicationLayout/AppMain/AppMain.js +21 -0
  227. package/dist/esm/components/ApplicationLayout/AppMain/AppMain.stories.d.ts +14 -0
  228. package/dist/esm/components/ApplicationLayout/AppMain/AppMain.stories.js +38 -0
  229. package/dist/esm/components/ApplicationLayout/AppMain/AppMain.test.d.ts +1 -0
  230. package/dist/esm/components/ApplicationLayout/AppMain/index.d.ts +2 -0
  231. package/dist/esm/components/ApplicationLayout/AppMain/index.js +1 -0
  232. package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.d.ts +26 -0
  233. package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.js +31 -0
  234. package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.stories.d.ts +12 -0
  235. package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +97 -0
  236. package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.test.d.ts +1 -0
  237. package/dist/esm/components/ApplicationLayout/AppNavigation/index.d.ts +2 -0
  238. package/dist/esm/components/ApplicationLayout/AppNavigation/index.js +1 -0
  239. package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.d.ts +18 -0
  240. package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +24 -0
  241. package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.d.ts +15 -0
  242. package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.js +44 -0
  243. package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.test.d.ts +1 -0
  244. package/dist/esm/components/ApplicationLayout/AppNavigationBar/index.d.ts +2 -0
  245. package/dist/esm/components/ApplicationLayout/AppNavigationBar/index.js +1 -0
  246. package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.d.ts +14 -0
  247. package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.js +21 -0
  248. package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.stories.d.ts +13 -0
  249. package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.stories.js +34 -0
  250. package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.test.d.ts +1 -0
  251. package/dist/esm/components/ApplicationLayout/AppStatus/index.d.ts +2 -0
  252. package/dist/esm/components/ApplicationLayout/AppStatus/index.js +1 -0
  253. package/dist/esm/components/ApplicationLayout/Application/Application.d.ts +15 -0
  254. package/dist/esm/components/ApplicationLayout/Application/Application.js +22 -0
  255. package/dist/esm/components/ApplicationLayout/Application/Application.stories.d.ts +6 -0
  256. package/dist/esm/components/ApplicationLayout/Application/Application.stories.js +9 -0
  257. package/dist/esm/components/ApplicationLayout/Application/Application.test.d.ts +1 -0
  258. package/dist/esm/components/ApplicationLayout/Application/index.d.ts +2 -0
  259. package/dist/esm/components/ApplicationLayout/Application/index.js +1 -0
  260. package/dist/esm/components/ApplicationLayout/ApplicationLayout.d.ts +93 -0
  261. package/dist/esm/components/ApplicationLayout/ApplicationLayout.js +118 -0
  262. package/dist/esm/components/ApplicationLayout/ApplicationLayout.stories.d.ts +24 -0
  263. package/dist/esm/components/ApplicationLayout/ApplicationLayout.stories.js +222 -0
  264. package/dist/esm/components/ApplicationLayout/ApplicationLayout.test.d.ts +1 -0
  265. package/dist/esm/components/ApplicationLayout/index.d.ts +7 -0
  266. package/dist/esm/components/ApplicationLayout/index.js +7 -0
  267. package/dist/esm/components/ArticlePagination/ArticlePagination.d.ts +31 -0
  268. package/dist/esm/components/ArticlePagination/ArticlePagination.js +39 -0
  269. package/dist/esm/components/ArticlePagination/ArticlePagination.stories.d.ts +6 -0
  270. package/dist/esm/components/ArticlePagination/ArticlePagination.stories.js +15 -0
  271. package/dist/esm/components/ArticlePagination/ArticlePagination.test.d.ts +1 -0
  272. package/dist/esm/components/ArticlePagination/index.d.ts +2 -0
  273. package/dist/esm/components/ArticlePagination/index.js +1 -0
  274. package/dist/esm/components/Badge/Badge.d.ts +34 -0
  275. package/dist/esm/components/Badge/Badge.js +64 -0
  276. package/dist/esm/components/Badge/Badge.stories.d.ts +15 -0
  277. package/dist/esm/components/Badge/Badge.stories.js +53 -0
  278. package/dist/esm/components/Badge/Badge.test.d.ts +1 -0
  279. package/dist/esm/components/Badge/index.d.ts +2 -0
  280. package/dist/esm/components/Badge/index.js +1 -0
  281. package/dist/esm/components/Button/Button.d.ts +64 -0
  282. package/dist/esm/components/Button/Button.js +55 -0
  283. package/dist/esm/components/Button/Button.stories.d.ts +32 -0
  284. package/dist/esm/components/Button/Button.stories.js +171 -0
  285. package/dist/esm/components/Button/Button.test.d.ts +1 -0
  286. package/dist/esm/components/Button/index.d.ts +2 -0
  287. package/dist/esm/components/Button/index.js +1 -0
  288. package/dist/esm/components/Card/Card.d.ts +35 -0
  289. package/dist/esm/components/Card/Card.js +45 -0
  290. package/dist/esm/components/Card/Card.stories.d.ts +33 -0
  291. package/dist/esm/components/Card/Card.stories.js +48 -0
  292. package/dist/esm/components/Card/Card.test.d.ts +1 -0
  293. package/dist/esm/components/Card/index.d.ts +2 -0
  294. package/dist/esm/components/Card/index.js +1 -0
  295. package/dist/esm/components/CheckboxInput/CheckableInput/CheckableInput.d.ts +27 -0
  296. package/dist/esm/components/CheckboxInput/CheckableInput/CheckableInput.js +35 -0
  297. package/dist/esm/components/CheckboxInput/CheckableInput/CheckableInput.test.d.ts +1 -0
  298. package/dist/esm/components/CheckboxInput/CheckableInput/index.d.ts +2 -0
  299. package/dist/esm/components/CheckboxInput/CheckableInput/index.js +1 -0
  300. package/dist/esm/components/CheckboxInput/CheckboxInput.d.ts +9 -0
  301. package/dist/esm/components/CheckboxInput/CheckboxInput.js +24 -0
  302. package/dist/esm/components/CheckboxInput/CheckboxInput.stories.d.ts +11 -0
  303. package/dist/esm/components/CheckboxInput/CheckboxInput.stories.js +77 -0
  304. package/dist/esm/components/CheckboxInput/CheckboxInput.test.d.ts +1 -0
  305. package/dist/esm/components/CheckboxInput/index.d.ts +2 -0
  306. package/dist/esm/components/CheckboxInput/index.js +1 -0
  307. package/dist/esm/components/Chip/Chip.d.ts +56 -0
  308. package/dist/esm/components/Chip/Chip.js +81 -0
  309. package/dist/esm/components/Chip/Chip.stories.d.ts +9 -0
  310. package/dist/esm/components/Chip/Chip.stories.js +38 -0
  311. package/dist/esm/components/Chip/Chip.test.d.ts +1 -0
  312. package/dist/esm/components/Chip/index.d.ts +2 -0
  313. package/dist/esm/components/Chip/index.js +1 -0
  314. package/dist/esm/components/Code/Code.d.ts +13 -0
  315. package/dist/esm/components/Code/Code.js +49 -0
  316. package/dist/esm/components/Code/index.d.ts +2 -0
  317. package/dist/esm/components/Code/index.js +1 -0
  318. package/dist/esm/components/CodeSnippet/CodeSnippet.d.ts +21 -0
  319. package/dist/esm/components/CodeSnippet/CodeSnippet.js +28 -0
  320. package/dist/esm/components/CodeSnippet/CodeSnippet.stories.d.ts +45 -0
  321. package/dist/esm/components/CodeSnippet/CodeSnippet.stories.js +273 -0
  322. package/dist/esm/components/CodeSnippet/CodeSnippet.test.d.ts +1 -0
  323. package/dist/esm/components/CodeSnippet/CodeSnippetBlock.d.ts +40 -0
  324. package/dist/esm/components/CodeSnippet/CodeSnippetBlock.js +64 -0
  325. package/dist/esm/components/CodeSnippet/CodeSnippetDropdown.d.ts +18 -0
  326. package/dist/esm/components/CodeSnippet/CodeSnippetDropdown.js +27 -0
  327. package/dist/esm/components/CodeSnippet/index.d.ts +5 -0
  328. package/dist/esm/components/CodeSnippet/index.js +2 -0
  329. package/dist/esm/components/Col/Col.d.ts +53 -0
  330. package/dist/esm/components/Col/Col.js +38 -0
  331. package/dist/esm/components/Col/Col.stories.d.ts +11 -0
  332. package/dist/esm/components/Col/Col.stories.js +147 -0
  333. package/dist/esm/components/Col/Col.test.d.ts +1 -0
  334. package/dist/esm/components/Col/index.d.ts +2 -0
  335. package/dist/esm/components/Col/index.js +1 -0
  336. package/dist/esm/components/ConfirmationButton/ConfirmationButton.d.ts +28 -0
  337. package/dist/esm/components/ConfirmationButton/ConfirmationButton.js +63 -0
  338. package/dist/esm/components/ConfirmationButton/ConfirmationButton.stories.d.ts +9 -0
  339. package/dist/esm/components/ConfirmationButton/ConfirmationButton.stories.js +100 -0
  340. package/dist/esm/components/ConfirmationButton/ConfirmationButton.test.d.ts +1 -0
  341. package/dist/esm/components/ConfirmationButton/index.d.ts +2 -0
  342. package/dist/esm/components/ConfirmationButton/index.js +1 -0
  343. package/dist/esm/components/ConfirmationModal/ConfirmationModal.d.ts +53 -0
  344. package/dist/esm/components/ConfirmationModal/ConfirmationModal.js +47 -0
  345. package/dist/esm/components/ConfirmationModal/ConfirmationModal.stories.d.ts +18 -0
  346. package/dist/esm/components/ConfirmationModal/ConfirmationModal.stories.js +127 -0
  347. package/dist/esm/components/ConfirmationModal/ConfirmationModal.test.d.ts +1 -0
  348. package/dist/esm/components/ConfirmationModal/index.d.ts +2 -0
  349. package/dist/esm/components/ConfirmationModal/index.js +1 -0
  350. package/dist/esm/components/ContextualMenu/ContextualMenu.d.ts +110 -0
  351. package/dist/esm/components/ContextualMenu/ContextualMenu.js +215 -0
  352. package/dist/esm/components/ContextualMenu/ContextualMenu.stories.d.ts +13 -0
  353. package/dist/esm/components/ContextualMenu/ContextualMenu.stories.js +100 -0
  354. package/dist/esm/components/ContextualMenu/ContextualMenu.test.d.ts +1 -0
  355. package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +43 -0
  356. package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +249 -0
  357. package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.test.d.ts +1 -0
  358. package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/index.d.ts +2 -0
  359. package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/index.js +1 -0
  360. package/dist/esm/components/ContextualMenu/index.d.ts +3 -0
  361. package/dist/esm/components/ContextualMenu/index.js +1 -0
  362. package/dist/esm/components/DoughnutChart/DoughnutChart.d.ts +58 -0
  363. package/dist/esm/components/DoughnutChart/DoughnutChart.js +154 -0
  364. package/dist/esm/components/DoughnutChart/DoughnutChart.scss +30 -0
  365. package/dist/esm/components/DoughnutChart/DoughnutChart.stories.d.ts +9 -0
  366. package/dist/esm/components/DoughnutChart/DoughnutChart.stories.js +35 -0
  367. package/dist/esm/components/DoughnutChart/DoughnutChart.test.d.ts +1 -0
  368. package/dist/esm/components/DoughnutChart/index.d.ts +3 -0
  369. package/dist/esm/components/DoughnutChart/index.js +1 -0
  370. package/dist/esm/components/EmptyState/EmptyState.d.ts +25 -0
  371. package/dist/esm/components/EmptyState/EmptyState.js +28 -0
  372. package/dist/esm/components/EmptyState/EmptyState.stories.d.ts +7 -0
  373. package/dist/esm/components/EmptyState/EmptyState.stories.js +40 -0
  374. package/dist/esm/components/EmptyState/EmptyState.test.d.ts +1 -0
  375. package/dist/esm/components/EmptyState/index.d.ts +2 -0
  376. package/dist/esm/components/EmptyState/index.js +1 -0
  377. package/dist/esm/components/Field/Field.d.ts +77 -0
  378. package/dist/esm/components/Field/Field.js +126 -0
  379. package/dist/esm/components/Field/Field.test.d.ts +1 -0
  380. package/dist/esm/components/Field/index.d.ts +2 -0
  381. package/dist/esm/components/Field/index.js +1 -0
  382. package/dist/esm/components/Form/Form.d.ts +21 -0
  383. package/dist/esm/components/Form/Form.js +28 -0
  384. package/dist/esm/components/Form/Form.stories.d.ts +12 -0
  385. package/dist/esm/components/Form/Form.stories.js +172 -0
  386. package/dist/esm/components/Form/Form.test.d.ts +1 -0
  387. package/dist/esm/components/Form/index.d.ts +2 -0
  388. package/dist/esm/components/Form/index.js +1 -0
  389. package/dist/esm/components/FormikField/FormikField.d.ts +25 -0
  390. package/dist/esm/components/FormikField/FormikField.js +33 -0
  391. package/dist/esm/components/FormikField/FormikField.stories.d.ts +8 -0
  392. package/dist/esm/components/FormikField/FormikField.stories.js +78 -0
  393. package/dist/esm/components/FormikField/FormikField.test.d.ts +1 -0
  394. package/dist/esm/components/FormikField/index.d.ts +1 -0
  395. package/dist/esm/components/FormikField/index.js +1 -0
  396. package/dist/esm/components/Icon/Icon.d.ts +59 -0
  397. package/dist/esm/components/Icon/Icon.js +61 -0
  398. package/dist/esm/components/Icon/Icon.stories.d.ts +16 -0
  399. package/dist/esm/components/Icon/Icon.stories.js +40 -0
  400. package/dist/esm/components/Icon/Icon.stories.scss +11 -0
  401. package/dist/esm/components/Icon/Icon.test.d.ts +1 -0
  402. package/dist/esm/components/Icon/index.d.ts +2 -0
  403. package/dist/esm/components/Icon/index.js +1 -0
  404. package/dist/esm/components/Input/Input.d.ts +70 -0
  405. package/dist/esm/components/Input/Input.js +103 -0
  406. package/dist/esm/components/Input/Input.stories.d.ts +14 -0
  407. package/dist/esm/components/Input/Input.stories.js +141 -0
  408. package/dist/esm/components/Input/Input.test.d.ts +1 -0
  409. package/dist/esm/components/Input/index.d.ts +2 -0
  410. package/dist/esm/components/Input/index.js +1 -0
  411. package/dist/esm/components/Label/Label.d.ts +25 -0
  412. package/dist/esm/components/Label/Label.js +27 -0
  413. package/dist/esm/components/Label/Label.test.d.ts +1 -0
  414. package/dist/esm/components/Label/index.d.ts +2 -0
  415. package/dist/esm/components/Label/index.js +1 -0
  416. package/dist/esm/components/Link/Link.d.ts +31 -0
  417. package/dist/esm/components/Link/Link.js +37 -0
  418. package/dist/esm/components/Link/Link.stories.d.ts +9 -0
  419. package/dist/esm/components/Link/Link.stories.js +41 -0
  420. package/dist/esm/components/Link/Link.test.d.ts +1 -0
  421. package/dist/esm/components/Link/index.d.ts +2 -0
  422. package/dist/esm/components/Link/index.js +1 -0
  423. package/dist/esm/components/List/List.d.ts +36 -0
  424. package/dist/esm/components/List/List.js +110 -0
  425. package/dist/esm/components/List/List.stories.d.ts +15 -0
  426. package/dist/esm/components/List/List.stories.js +115 -0
  427. package/dist/esm/components/List/List.test.d.ts +1 -0
  428. package/dist/esm/components/List/index.d.ts +2 -0
  429. package/dist/esm/components/List/index.js +1 -0
  430. package/dist/esm/components/Loader/Loader.d.ts +6 -0
  431. package/dist/esm/components/Loader/Loader.js +14 -0
  432. package/dist/esm/components/Loader/index.d.ts +1 -0
  433. package/dist/esm/components/Loader/index.js +1 -0
  434. package/dist/esm/components/LoginPageLayout/LoginPageLayout.d.ts +17 -0
  435. package/dist/esm/components/LoginPageLayout/LoginPageLayout.js +63 -0
  436. package/dist/esm/components/LoginPageLayout/LoginPageLayout.scss +19 -0
  437. package/dist/esm/components/LoginPageLayout/LoginPageLayout.stories.d.ts +9 -0
  438. package/dist/esm/components/LoginPageLayout/LoginPageLayout.stories.js +51 -0
  439. package/dist/esm/components/LoginPageLayout/LoginPageLayout.test.d.ts +1 -0
  440. package/dist/esm/components/LoginPageLayout/index.d.ts +2 -0
  441. package/dist/esm/components/LoginPageLayout/index.js +1 -0
  442. package/dist/esm/components/MainTable/MainTable.d.ts +102 -0
  443. package/dist/esm/components/MainTable/MainTable.js +211 -0
  444. package/dist/esm/components/MainTable/MainTable.stories.d.ts +15 -0
  445. package/dist/esm/components/MainTable/MainTable.stories.js +545 -0
  446. package/dist/esm/components/MainTable/MainTable.test.d.ts +1 -0
  447. package/dist/esm/components/MainTable/index.d.ts +2 -0
  448. package/dist/esm/components/MainTable/index.js +1 -0
  449. package/dist/esm/components/Modal/Modal.d.ts +36 -0
  450. package/dist/esm/components/Modal/Modal.js +135 -0
  451. package/dist/esm/components/Modal/Modal.stories.d.ts +6 -0
  452. package/dist/esm/components/Modal/Modal.stories.js +49 -0
  453. package/dist/esm/components/Modal/Modal.test.d.ts +1 -0
  454. package/dist/esm/components/Modal/index.d.ts +2 -0
  455. package/dist/esm/components/Modal/index.js +1 -0
  456. package/dist/esm/components/ModularTable/ModularTable.d.ts +105 -0
  457. package/dist/esm/components/ModularTable/ModularTable.js +166 -0
  458. package/dist/esm/components/ModularTable/ModularTable.stories.d.ts +27 -0
  459. package/dist/esm/components/ModularTable/ModularTable.stories.js +335 -0
  460. package/dist/esm/components/ModularTable/ModularTable.test.d.ts +1 -0
  461. package/dist/esm/components/ModularTable/index.d.ts +2 -0
  462. package/dist/esm/components/ModularTable/index.js +1 -0
  463. package/dist/esm/components/MultiSelect/FadeInDown/FadeInDown.d.ts +10 -0
  464. package/dist/esm/components/MultiSelect/FadeInDown/FadeInDown.js +25 -0
  465. package/dist/esm/components/MultiSelect/FadeInDown/FadeInDown.scss +22 -0
  466. package/dist/esm/components/MultiSelect/FadeInDown/FadeInDown.test.d.ts +1 -0
  467. package/dist/esm/components/MultiSelect/FadeInDown/index.d.ts +1 -0
  468. package/dist/esm/components/MultiSelect/FadeInDown/index.js +1 -0
  469. package/dist/esm/components/MultiSelect/MultiSelect.d.ts +57 -0
  470. package/dist/esm/components/MultiSelect/MultiSelect.js +308 -0
  471. package/dist/esm/components/MultiSelect/MultiSelect.scss +151 -0
  472. package/dist/esm/components/MultiSelect/MultiSelect.stories.d.ts +8 -0
  473. package/dist/esm/components/MultiSelect/MultiSelect.stories.js +65 -0
  474. package/dist/esm/components/MultiSelect/MultiSelect.test.d.ts +1 -0
  475. package/dist/esm/components/MultiSelect/index.d.ts +1 -0
  476. package/dist/esm/components/MultiSelect/index.js +1 -0
  477. package/dist/esm/components/Navigation/Navigation.d.ts +66 -0
  478. package/dist/esm/components/Navigation/Navigation.js +215 -0
  479. package/dist/esm/components/Navigation/Navigation.stories.d.ts +43 -0
  480. package/dist/esm/components/Navigation/Navigation.stories.js +225 -0
  481. package/dist/esm/components/Navigation/Navigation.test.d.ts +1 -0
  482. package/dist/esm/components/Navigation/NavigationLink/NavigationLink.d.ts +10 -0
  483. package/dist/esm/components/Navigation/NavigationLink/NavigationLink.js +58 -0
  484. package/dist/esm/components/Navigation/NavigationLink/NavigationLink.test.d.ts +1 -0
  485. package/dist/esm/components/Navigation/NavigationLink/index.d.ts +1 -0
  486. package/dist/esm/components/Navigation/NavigationLink/index.js +1 -0
  487. package/dist/esm/components/Navigation/NavigationMenu/NavigationMenu.d.ts +11 -0
  488. package/dist/esm/components/Navigation/NavigationMenu/NavigationMenu.js +57 -0
  489. package/dist/esm/components/Navigation/NavigationMenu/NavigationMenu.test.d.ts +1 -0
  490. package/dist/esm/components/Navigation/NavigationMenu/index.d.ts +1 -0
  491. package/dist/esm/components/Navigation/NavigationMenu/index.js +1 -0
  492. package/dist/esm/components/Navigation/index.d.ts +3 -0
  493. package/dist/esm/components/Navigation/index.js +1 -0
  494. package/dist/esm/components/Navigation/types.d.ts +64 -0
  495. package/dist/esm/components/Navigation/types.js +1 -0
  496. package/dist/esm/components/Notification/Notification.d.ts +110 -0
  497. package/dist/esm/components/Notification/Notification.js +119 -0
  498. package/dist/esm/components/Notification/Notification.stories.d.ts +45 -0
  499. package/dist/esm/components/Notification/Notification.stories.js +194 -0
  500. package/dist/esm/components/Notification/Notification.test.d.ts +1 -0
  501. package/dist/esm/components/Notification/index.d.ts +2 -0
  502. package/dist/esm/components/Notification/index.js +1 -0
  503. package/dist/esm/components/NotificationProvider/NotificationProvider.d.ts +5 -0
  504. package/dist/esm/components/NotificationProvider/NotificationProvider.js +83 -0
  505. package/dist/esm/components/NotificationProvider/NotificationProvider.test.d.ts +1 -0
  506. package/dist/esm/components/NotificationProvider/index.d.ts +3 -0
  507. package/dist/esm/components/NotificationProvider/index.js +2 -0
  508. package/dist/esm/components/NotificationProvider/messageBuilder.d.ts +6 -0
  509. package/dist/esm/components/NotificationProvider/messageBuilder.js +31 -0
  510. package/dist/esm/components/NotificationProvider/types.d.ts +35 -0
  511. package/dist/esm/components/NotificationProvider/types.js +1 -0
  512. package/dist/esm/components/Pagination/Pagination.d.ts +102 -0
  513. package/dist/esm/components/Pagination/Pagination.js +173 -0
  514. package/dist/esm/components/Pagination/Pagination.stories.d.ts +14 -0
  515. package/dist/esm/components/Pagination/Pagination.stories.js +87 -0
  516. package/dist/esm/components/Pagination/Pagination.test.d.ts +1 -0
  517. package/dist/esm/components/Pagination/PaginationButton/PaginationButton.d.ts +30 -0
  518. package/dist/esm/components/Pagination/PaginationButton/PaginationButton.js +31 -0
  519. package/dist/esm/components/Pagination/PaginationButton/PaginationButton.test.d.ts +4 -0
  520. package/dist/esm/components/Pagination/PaginationButton/index.d.ts +2 -0
  521. package/dist/esm/components/Pagination/PaginationButton/index.js +1 -0
  522. package/dist/esm/components/Pagination/PaginationItem/PaginationItem.d.ts +17 -0
  523. package/dist/esm/components/Pagination/PaginationItem/PaginationItem.js +20 -0
  524. package/dist/esm/components/Pagination/PaginationItem/PaginationItem.test.d.ts +1 -0
  525. package/dist/esm/components/Pagination/PaginationItem/index.d.ts +2 -0
  526. package/dist/esm/components/Pagination/PaginationItem/index.js +1 -0
  527. package/dist/esm/components/Pagination/index.d.ts +2 -0
  528. package/dist/esm/components/Pagination/index.js +1 -0
  529. package/dist/esm/components/Panel/Panel.d.ts +123 -0
  530. package/dist/esm/components/Panel/Panel.js +89 -0
  531. package/dist/esm/components/Panel/Panel.stories.d.ts +17 -0
  532. package/dist/esm/components/Panel/Panel.stories.js +53 -0
  533. package/dist/esm/components/Panel/Panel.test.d.ts +1 -0
  534. package/dist/esm/components/Panel/index.d.ts +1 -0
  535. package/dist/esm/components/Panel/index.js +1 -0
  536. package/dist/esm/components/PasswordToggle/PasswordToggle.d.ts +108 -0
  537. package/dist/esm/components/PasswordToggle/PasswordToggle.js +90 -0
  538. package/dist/esm/components/PasswordToggle/PasswordToggle.stories.d.ts +12 -0
  539. package/dist/esm/components/PasswordToggle/PasswordToggle.stories.js +67 -0
  540. package/dist/esm/components/PasswordToggle/PasswordToggle.test.d.ts +1 -0
  541. package/dist/esm/components/PasswordToggle/index.d.ts +2 -0
  542. package/dist/esm/components/PasswordToggle/index.js +1 -0
  543. package/dist/esm/components/RadioInput/RadioInput.d.ts +9 -0
  544. package/dist/esm/components/RadioInput/RadioInput.js +22 -0
  545. package/dist/esm/components/RadioInput/RadioInput.stories.d.ts +10 -0
  546. package/dist/esm/components/RadioInput/RadioInput.stories.js +76 -0
  547. package/dist/esm/components/RadioInput/RadioInput.test.d.ts +1 -0
  548. package/dist/esm/components/RadioInput/index.d.ts +2 -0
  549. package/dist/esm/components/RadioInput/index.js +1 -0
  550. package/dist/esm/components/Row/Row.d.ts +19 -0
  551. package/dist/esm/components/Row/Row.js +22 -0
  552. package/dist/esm/components/Row/Row.stories.d.ts +9 -0
  553. package/dist/esm/components/Row/Row.stories.js +22 -0
  554. package/dist/esm/components/Row/Row.test.d.ts +1 -0
  555. package/dist/esm/components/Row/index.d.ts +2 -0
  556. package/dist/esm/components/Row/index.js +1 -0
  557. package/dist/esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.d.ts +25 -0
  558. package/dist/esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.js +107 -0
  559. package/dist/esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.test.d.ts +1 -0
  560. package/dist/esm/components/SearchAndFilter/FilterPanelSection/index.d.ts +1 -0
  561. package/dist/esm/components/SearchAndFilter/FilterPanelSection/index.js +1 -0
  562. package/dist/esm/components/SearchAndFilter/SearchAndFilter.d.ts +33 -0
  563. package/dist/esm/components/SearchAndFilter/SearchAndFilter.js +286 -0
  564. package/dist/esm/components/SearchAndFilter/SearchAndFilter.stories.d.ts +8 -0
  565. package/dist/esm/components/SearchAndFilter/SearchAndFilter.stories.js +211 -0
  566. package/dist/esm/components/SearchAndFilter/SearchAndFilter.test.d.ts +1 -0
  567. package/dist/esm/components/SearchAndFilter/index.d.ts +2 -0
  568. package/dist/esm/components/SearchAndFilter/index.js +1 -0
  569. package/dist/esm/components/SearchAndFilter/types.d.ts +11 -0
  570. package/dist/esm/components/SearchAndFilter/types.js +1 -0
  571. package/dist/esm/components/SearchAndFilter/utils.d.ts +13 -0
  572. package/dist/esm/components/SearchAndFilter/utils.js +22 -0
  573. package/dist/esm/components/SearchBox/SearchBox.d.ts +63 -0
  574. package/dist/esm/components/SearchBox/SearchBox.js +95 -0
  575. package/dist/esm/components/SearchBox/SearchBox.stories.d.ts +14 -0
  576. package/dist/esm/components/SearchBox/SearchBox.stories.js +99 -0
  577. package/dist/esm/components/SearchBox/SearchBox.test.d.ts +1 -0
  578. package/dist/esm/components/SearchBox/index.d.ts +2 -0
  579. package/dist/esm/components/SearchBox/index.js +1 -0
  580. package/dist/esm/components/Select/Select.d.ts +71 -0
  581. package/dist/esm/components/Select/Select.js +84 -0
  582. package/dist/esm/components/Select/Select.stories.d.ts +7 -0
  583. package/dist/esm/components/Select/Select.stories.js +90 -0
  584. package/dist/esm/components/Select/Select.test.d.ts +1 -0
  585. package/dist/esm/components/Select/index.d.ts +2 -0
  586. package/dist/esm/components/Select/index.js +1 -0
  587. package/dist/esm/components/SideNavigation/SideNavigation.d.ts +50 -0
  588. package/dist/esm/components/SideNavigation/SideNavigation.js +89 -0
  589. package/dist/esm/components/SideNavigation/SideNavigation.stories.d.ts +14 -0
  590. package/dist/esm/components/SideNavigation/SideNavigation.stories.js +55 -0
  591. package/dist/esm/components/SideNavigation/SideNavigation.test.d.ts +1 -0
  592. package/dist/esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.d.ts +31 -0
  593. package/dist/esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +31 -0
  594. package/dist/esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.test.d.ts +1 -0
  595. package/dist/esm/components/SideNavigation/SideNavigationBase/index.d.ts +1 -0
  596. package/dist/esm/components/SideNavigation/SideNavigationBase/index.js +1 -0
  597. package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.d.ts +20 -0
  598. package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +32 -0
  599. package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.d.ts +22 -0
  600. package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +63 -0
  601. package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.test.d.ts +1 -0
  602. package/dist/esm/components/SideNavigation/SideNavigationItem/index.d.ts +1 -0
  603. package/dist/esm/components/SideNavigation/SideNavigationItem/index.js +1 -0
  604. package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.d.ts +18 -0
  605. package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +25 -0
  606. package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.d.ts +7 -0
  607. package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.js +25 -0
  608. package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.test.d.ts +1 -0
  609. package/dist/esm/components/SideNavigation/SideNavigationLink/index.d.ts +1 -0
  610. package/dist/esm/components/SideNavigation/SideNavigationLink/index.js +1 -0
  611. package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.d.ts +7 -0
  612. package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.js +20 -0
  613. package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.stories.d.ts +6 -0
  614. package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.stories.js +18 -0
  615. package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.test.d.ts +1 -0
  616. package/dist/esm/components/SideNavigation/SideNavigationText/index.d.ts +1 -0
  617. package/dist/esm/components/SideNavigation/SideNavigationText/index.js +1 -0
  618. package/dist/esm/components/SideNavigation/index.d.ts +5 -0
  619. package/dist/esm/components/SideNavigation/index.js +4 -0
  620. package/dist/esm/components/SkipLink/SkipLink.d.ts +12 -0
  621. package/dist/esm/components/SkipLink/SkipLink.js +18 -0
  622. package/dist/esm/components/SkipLink/SkipLink.stories.d.ts +6 -0
  623. package/dist/esm/components/SkipLink/SkipLink.stories.js +11 -0
  624. package/dist/esm/components/SkipLink/SkipLink.test.d.ts +1 -0
  625. package/dist/esm/components/SkipLink/index.d.ts +2 -0
  626. package/dist/esm/components/SkipLink/index.js +1 -0
  627. package/dist/esm/components/Slider/Slider.d.ts +62 -0
  628. package/dist/esm/components/Slider/Slider.js +83 -0
  629. package/dist/esm/components/Slider/Slider.stories.d.ts +10 -0
  630. package/dist/esm/components/Slider/Slider.stories.js +66 -0
  631. package/dist/esm/components/Slider/Slider.test.d.ts +1 -0
  632. package/dist/esm/components/Slider/index.d.ts +2 -0
  633. package/dist/esm/components/Slider/index.js +1 -0
  634. package/dist/esm/components/Spinner/Spinner.d.ts +29 -0
  635. package/dist/esm/components/Spinner/Spinner.js +36 -0
  636. package/dist/esm/components/Spinner/Spinner.stories.d.ts +8 -0
  637. package/dist/esm/components/Spinner/Spinner.stories.js +21 -0
  638. package/dist/esm/components/Spinner/Spinner.test.d.ts +1 -0
  639. package/dist/esm/components/Spinner/index.d.ts +2 -0
  640. package/dist/esm/components/Spinner/index.js +1 -0
  641. package/dist/esm/components/StatusLabel/StatusLabel.d.ts +33 -0
  642. package/dist/esm/components/StatusLabel/StatusLabel.js +36 -0
  643. package/dist/esm/components/StatusLabel/StatusLabel.stories.d.ts +10 -0
  644. package/dist/esm/components/StatusLabel/StatusLabel.stories.js +52 -0
  645. package/dist/esm/components/StatusLabel/StatusLabel.test.d.ts +1 -0
  646. package/dist/esm/components/StatusLabel/index.d.ts +2 -0
  647. package/dist/esm/components/StatusLabel/index.js +1 -0
  648. package/dist/esm/components/Stepper/Step/Step.d.ts +47 -0
  649. package/dist/esm/components/Stepper/Step/Step.js +61 -0
  650. package/dist/esm/components/Stepper/Step/Step.scss +113 -0
  651. package/dist/esm/components/Stepper/Step/Step.stories.d.ts +6 -0
  652. package/dist/esm/components/Stepper/Step/Step.stories.js +26 -0
  653. package/dist/esm/components/Stepper/Step/Step.test.d.ts +1 -0
  654. package/dist/esm/components/Stepper/Step/index.d.ts +2 -0
  655. package/dist/esm/components/Stepper/Step/index.js +1 -0
  656. package/dist/esm/components/Stepper/Stepper.d.ts +17 -0
  657. package/dist/esm/components/Stepper/Stepper.js +27 -0
  658. package/dist/esm/components/Stepper/Stepper.stories.d.ts +11 -0
  659. package/dist/esm/components/Stepper/Stepper.stories.js +282 -0
  660. package/dist/esm/components/Stepper/Stepper.test.d.ts +1 -0
  661. package/dist/esm/components/Stepper/index.d.ts +2 -0
  662. package/dist/esm/components/Stepper/index.js +2 -0
  663. package/dist/esm/components/Strip/Strip.d.ts +64 -0
  664. package/dist/esm/components/Strip/Strip.js +50 -0
  665. package/dist/esm/components/Strip/Strip.stories.d.ts +12 -0
  666. package/dist/esm/components/Strip/Strip.stories.js +123 -0
  667. package/dist/esm/components/Strip/Strip.test.d.ts +1 -0
  668. package/dist/esm/components/Strip/index.d.ts +2 -0
  669. package/dist/esm/components/Strip/index.js +1 -0
  670. package/dist/esm/components/SummaryButton/SummaryButton.d.ts +29 -0
  671. package/dist/esm/components/SummaryButton/SummaryButton.js +28 -0
  672. package/dist/esm/components/SummaryButton/SummaryButton.stories.d.ts +18 -0
  673. package/dist/esm/components/SummaryButton/SummaryButton.stories.js +52 -0
  674. package/dist/esm/components/SummaryButton/SummaryButton.test.d.ts +1 -0
  675. package/dist/esm/components/SummaryButton/index.d.ts +2 -0
  676. package/dist/esm/components/SummaryButton/index.js +1 -0
  677. package/dist/esm/components/Switch/Switch.d.ts +17 -0
  678. package/dist/esm/components/Switch/Switch.js +28 -0
  679. package/dist/esm/components/Switch/Switch.stories.d.ts +7 -0
  680. package/dist/esm/components/Switch/Switch.stories.js +19 -0
  681. package/dist/esm/components/Switch/Switch.test.d.ts +1 -0
  682. package/dist/esm/components/Switch/index.d.ts +2 -0
  683. package/dist/esm/components/Switch/index.js +1 -0
  684. package/dist/esm/components/Table/Table.d.ts +22 -0
  685. package/dist/esm/components/Table/Table.js +23 -0
  686. package/dist/esm/components/Table/Table.test.d.ts +1 -0
  687. package/dist/esm/components/Table/index.d.ts +2 -0
  688. package/dist/esm/components/Table/index.js +1 -0
  689. package/dist/esm/components/TableCell/TableCell.d.ts +26 -0
  690. package/dist/esm/components/TableCell/TableCell.js +26 -0
  691. package/dist/esm/components/TableCell/TableCell.test.d.ts +1 -0
  692. package/dist/esm/components/TableCell/index.d.ts +2 -0
  693. package/dist/esm/components/TableCell/index.js +1 -0
  694. package/dist/esm/components/TableHeader/TableHeader.d.ts +14 -0
  695. package/dist/esm/components/TableHeader/TableHeader.js +17 -0
  696. package/dist/esm/components/TableHeader/TableHeader.test.d.ts +1 -0
  697. package/dist/esm/components/TableHeader/index.d.ts +2 -0
  698. package/dist/esm/components/TableHeader/index.js +1 -0
  699. package/dist/esm/components/TablePagination/TablePagination.d.ts +98 -0
  700. package/dist/esm/components/TablePagination/TablePagination.js +104 -0
  701. package/dist/esm/components/TablePagination/TablePagination.scss +48 -0
  702. package/dist/esm/components/TablePagination/TablePagination.stories.d.ts +14 -0
  703. package/dist/esm/components/TablePagination/TablePagination.stories.js +323 -0
  704. package/dist/esm/components/TablePagination/TablePagination.test.d.ts +1 -0
  705. package/dist/esm/components/TablePagination/TablePaginationControls/TablePaginationControls.d.ts +24 -0
  706. package/dist/esm/components/TablePagination/TablePaginationControls/TablePaginationControls.js +120 -0
  707. package/dist/esm/components/TablePagination/TablePaginationControls/TablePaginationControls.test.d.ts +1 -0
  708. package/dist/esm/components/TablePagination/TablePaginationControls/index.d.ts +2 -0
  709. package/dist/esm/components/TablePagination/TablePaginationControls/index.js +1 -0
  710. package/dist/esm/components/TablePagination/index.d.ts +2 -0
  711. package/dist/esm/components/TablePagination/index.js +1 -0
  712. package/dist/esm/components/TablePagination/utils.d.ts +27 -0
  713. package/dist/esm/components/TablePagination/utils.js +67 -0
  714. package/dist/esm/components/TableRow/TableRow.d.ts +10 -0
  715. package/dist/esm/components/TableRow/TableRow.js +15 -0
  716. package/dist/esm/components/TableRow/TableRow.test.d.ts +1 -0
  717. package/dist/esm/components/TableRow/index.d.ts +2 -0
  718. package/dist/esm/components/TableRow/index.js +1 -0
  719. package/dist/esm/components/Tabs/Tabs.d.ts +45 -0
  720. package/dist/esm/components/Tabs/Tabs.js +42 -0
  721. package/dist/esm/components/Tabs/Tabs.stories.d.ts +11 -0
  722. package/dist/esm/components/Tabs/Tabs.stories.js +49 -0
  723. package/dist/esm/components/Tabs/Tabs.test.d.ts +1 -0
  724. package/dist/esm/components/Tabs/index.d.ts +2 -0
  725. package/dist/esm/components/Tabs/index.js +1 -0
  726. package/dist/esm/components/Textarea/Textarea.d.ts +70 -0
  727. package/dist/esm/components/Textarea/Textarea.js +115 -0
  728. package/dist/esm/components/Textarea/Textarea.stories.d.ts +7 -0
  729. package/dist/esm/components/Textarea/Textarea.stories.js +55 -0
  730. package/dist/esm/components/Textarea/Textarea.test.d.ts +1 -0
  731. package/dist/esm/components/Textarea/index.d.ts +2 -0
  732. package/dist/esm/components/Textarea/index.js +1 -0
  733. package/dist/esm/components/Tooltip/Tooltip.d.ts +75 -0
  734. package/dist/esm/components/Tooltip/Tooltip.js +245 -0
  735. package/dist/esm/components/Tooltip/Tooltip.stories.d.ts +12 -0
  736. package/dist/esm/components/Tooltip/Tooltip.stories.js +62 -0
  737. package/dist/esm/components/Tooltip/Tooltip.test.d.ts +1 -0
  738. package/dist/esm/components/Tooltip/index.d.ts +2 -0
  739. package/dist/esm/components/Tooltip/index.js +1 -0
  740. package/dist/esm/enums.d.ts +13 -0
  741. package/dist/esm/enums.js +8 -0
  742. package/dist/esm/hooks/index.d.ts +9 -0
  743. package/dist/esm/hooks/index.js +8 -0
  744. package/dist/esm/hooks/useId.d.ts +4 -0
  745. package/dist/esm/hooks/useId.js +13 -0
  746. package/dist/esm/hooks/useListener.d.ts +11 -0
  747. package/dist/esm/hooks/useListener.js +51 -0
  748. package/dist/esm/hooks/useListener.test.d.ts +1 -0
  749. package/dist/esm/hooks/useOnClickOutside.d.ts +12 -0
  750. package/dist/esm/hooks/useOnClickOutside.js +38 -0
  751. package/dist/esm/hooks/useOnClickOutside.test.d.ts +1 -0
  752. package/dist/esm/hooks/useOnEscapePressed.d.ts +6 -0
  753. package/dist/esm/hooks/useOnEscapePressed.js +25 -0
  754. package/dist/esm/hooks/useOnEscapePressed.test.d.ts +1 -0
  755. package/dist/esm/hooks/usePagination.d.ts +19 -0
  756. package/dist/esm/hooks/usePagination.js +45 -0
  757. package/dist/esm/hooks/usePagination.test.d.ts +1 -0
  758. package/dist/esm/hooks/usePrevious.d.ts +7 -0
  759. package/dist/esm/hooks/usePrevious.js +16 -0
  760. package/dist/esm/hooks/usePrevious.test.d.ts +1 -0
  761. package/dist/esm/hooks/useThrottle.d.ts +9 -0
  762. package/dist/esm/hooks/useThrottle.js +49 -0
  763. package/dist/esm/hooks/useThrottle.test.d.ts +1 -0
  764. package/dist/esm/hooks/useWindowFitment.d.ts +54 -0
  765. package/dist/esm/hooks/useWindowFitment.js +109 -0
  766. package/dist/esm/hooks/useWindowFitment.test.d.ts +1 -0
  767. package/dist/esm/index.d.ts +138 -0
  768. package/dist/esm/index.js +72 -0
  769. package/dist/esm/index.test.d.ts +1 -0
  770. package/dist/esm/setupTests.js +1 -0
  771. package/dist/esm/testing/mock-scss.js +2 -0
  772. package/dist/esm/types/index.d.ts +38 -0
  773. package/dist/esm/types/index.js +1 -0
  774. package/dist/esm/types/react-table-config.d.js +1 -0
  775. package/dist/esm/utils.d.ts +27 -0
  776. package/dist/esm/utils.js +41 -0
  777. package/dist/esm/utils.test.d.ts +1 -0
  778. package/dist/hooks/useListener.test.d.ts +1 -0
  779. package/dist/hooks/useOnClickOutside.test.d.ts +1 -0
  780. package/dist/hooks/useOnEscapePressed.test.d.ts +1 -0
  781. package/dist/hooks/usePagination.test.d.ts +1 -0
  782. package/dist/hooks/usePrevious.test.d.ts +1 -0
  783. package/dist/hooks/useThrottle.test.d.ts +1 -0
  784. package/dist/hooks/useWindowFitment.test.d.ts +1 -0
  785. package/dist/index.test.d.ts +1 -0
  786. package/dist/utils.test.d.ts +1 -0
  787. package/package.json +7 -7
@@ -0,0 +1,29 @@
1
+ import ActionButton from "./ActionButton";
2
+ var meta = {
3
+ component: ActionButton,
4
+ tags: ["autodocs"],
5
+ argTypes: {
6
+ children: {
7
+ control: {
8
+ type: "text"
9
+ }
10
+ }
11
+ }
12
+ };
13
+ export default meta;
14
+ export var Default = {
15
+ name: "Default",
16
+ args: {
17
+ appearance: "positive",
18
+ children: "Click me!"
19
+ }
20
+ };
21
+ export var Loading = {
22
+ name: "Loading",
23
+ args: {
24
+ appearance: "positive",
25
+ loading: true,
26
+ disabled: true,
27
+ children: "Click me!"
28
+ }
29
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from "./ActionButton";
2
+ export type { Props as ActionButtonProps } from "./ActionButton";
@@ -0,0 +1 @@
1
+ export { default } from "./ActionButton";
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ import type { PropsWithSpread } from "../../../types";
3
+ import { type HTMLProps, type PropsWithChildren } from "react";
4
+ export type Props = PropsWithSpread<{
5
+ /**
6
+ * Whether the aside panel should be collapsed. Toggling this state will animate
7
+ * the panel open or closed.
8
+ */
9
+ collapsed?: boolean;
10
+ /**
11
+ * The panel content.
12
+ */
13
+ children?: PropsWithChildren["children"];
14
+ /**
15
+ * A ref that will be passed to the wrapping `<aside>` element.
16
+ */
17
+ forwardRef?: React.Ref<HTMLElement> | null;
18
+ /**
19
+ * Whether the aside panel should be narrow.
20
+ */
21
+ narrow?: boolean;
22
+ /**
23
+ * Whether the aside panel should be pinned. When pinned the panel will appear
24
+ * beside the main content, instead of above it.
25
+ */
26
+ pinned?: boolean;
27
+ /**
28
+ * Whether the aside panel should be wide.
29
+ */
30
+ wide?: boolean;
31
+ }, HTMLProps<HTMLElement>>;
32
+ declare const AppAside: ({ children, className, collapsed, narrow, forwardRef, pinned, wide, ...props }: Props) => React.JSX.Element;
33
+ export default AppAside;
@@ -0,0 +1,29 @@
1
+ var _excluded = ["children", "className", "collapsed", "narrow", "forwardRef", "pinned", "wide"];
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
+ var AppAside = _ref => {
8
+ var {
9
+ children,
10
+ className,
11
+ collapsed,
12
+ narrow,
13
+ forwardRef,
14
+ pinned,
15
+ wide
16
+ } = _ref,
17
+ props = _objectWithoutProperties(_ref, _excluded);
18
+ return /*#__PURE__*/React.createElement("aside", _extends({
19
+ className: classNames("l-aside", className, {
20
+ "is-collapsed": collapsed,
21
+ "is-narrow": narrow,
22
+ "is-pinned": pinned,
23
+ "is-wide": wide
24
+ })
25
+ }, props, {
26
+ ref: forwardRef
27
+ }), children);
28
+ };
29
+ export default AppAside;
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import AppAside from "./AppAside";
3
+ declare const meta: Meta<typeof AppAside>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppAside>;
6
+ /**
7
+ * In most common cases an `AppAside` should contain a `<Panel>` to display the
8
+ * content as intended in the application layout.
9
+ *
10
+ * `AppAside` should be a direct child of an `<Application>` or passed to the
11
+ * application layout `<ApplicationLayout aside={<AppAside .../>}>`.
12
+ */
13
+ export declare const Default: Story;
@@ -0,0 +1,108 @@
1
+ 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); }
2
+ /* eslint-disable react-hooks/rules-of-hooks */
3
+ import React, { useState } from "react";
4
+ import Application from "../Application";
5
+ import AppMain from "../AppMain";
6
+ import Button from "../../Button";
7
+ import Col from "../../Col";
8
+ import Form from "../../Form";
9
+ import Icon from "../../Icon";
10
+ import Input from "../../Input";
11
+ import Panel from "../../Panel";
12
+ import Row from "../../Row";
13
+ import AppAside from "./AppAside";
14
+ var meta = {
15
+ component: AppAside,
16
+ tags: ["autodocs"],
17
+ argTypes: {
18
+ children: {
19
+ control: false
20
+ }
21
+ }
22
+ };
23
+ export default meta;
24
+ /**
25
+ * In most common cases an `AppAside` should contain a `<Panel>` to display the
26
+ * content as intended in the application layout.
27
+ *
28
+ * `AppAside` should be a direct child of an `<Application>` or passed to the
29
+ * application layout `<ApplicationLayout aside={<AppAside .../>}>`.
30
+ */
31
+ export var Default = {
32
+ render: args => {
33
+ var [pinned, setPinned] = useState(false);
34
+ var [width, setWidth] = useState(null);
35
+ var [collapsed, setCollapsed] = useState(false);
36
+ return /*#__PURE__*/React.createElement(Application, null, /*#__PURE__*/React.createElement(AppMain, null, /*#__PURE__*/React.createElement("p", null, "Scroll to the right to see the panel."), /*#__PURE__*/React.createElement(Button, {
37
+ onClick: () => setCollapsed(false)
38
+ }, "Open"), /*#__PURE__*/React.createElement(Button, {
39
+ onClick: () => setWidth("narrow")
40
+ }, "Narrow"), /*#__PURE__*/React.createElement(Button, {
41
+ onClick: () => setWidth(null)
42
+ }, "Default"), /*#__PURE__*/React.createElement(Button, {
43
+ onClick: () => setWidth("wide")
44
+ }, "Wide")), /*#__PURE__*/React.createElement(AppAside, _extends({}, args, {
45
+ pinned: pinned,
46
+ wide: width === "wide",
47
+ narrow: width === "narrow",
48
+ collapsed: collapsed
49
+ }), /*#__PURE__*/React.createElement(Panel, {
50
+ controls: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
51
+ onClick: () => setPinned(!pinned),
52
+ dense: true,
53
+ className: "u-no-margin--bottom"
54
+ }, "Pin"), /*#__PURE__*/React.createElement(Button, {
55
+ appearance: "base",
56
+ className: "u-no-margin--bottom",
57
+ hasIcon: true,
58
+ onClick: () => setCollapsed(!collapsed)
59
+ }, /*#__PURE__*/React.createElement(Icon, {
60
+ name: "close"
61
+ }, "Close"))),
62
+ title: "App aside"
63
+ }, /*#__PURE__*/React.createElement(Form, {
64
+ stacked: true
65
+ }, /*#__PURE__*/React.createElement(Input, {
66
+ label: "Full name",
67
+ type: "text",
68
+ name: "fullName",
69
+ autoComplete: "name",
70
+ stacked: true
71
+ }), /*#__PURE__*/React.createElement(Input, {
72
+ label: "Username",
73
+ type: "text",
74
+ name: "username-stacked",
75
+ autoComplete: "username",
76
+ "aria-describedby": "exampleHelpTextMessage",
77
+ stacked: true,
78
+ help: "30 characters or fewer."
79
+ }), /*#__PURE__*/React.createElement(Input, {
80
+ type: "text",
81
+ label: "Email address",
82
+ "aria-invalid": "true",
83
+ name: "username-stackederror",
84
+ autoComplete: "email",
85
+ required: true,
86
+ error: "This field is required.",
87
+ stacked: true
88
+ }), /*#__PURE__*/React.createElement(Input, {
89
+ label: "Address line 1",
90
+ type: "text",
91
+ name: "address-optional-stacked",
92
+ autoComplete: "address-line1",
93
+ stacked: true
94
+ }), /*#__PURE__*/React.createElement(Input, {
95
+ label: "Address line 2",
96
+ type: "text",
97
+ name: "address-optional-stacked",
98
+ autoComplete: "address-line3",
99
+ stacked: true
100
+ }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
101
+ size: 12
102
+ }, /*#__PURE__*/React.createElement(Button, {
103
+ appearance: "positive",
104
+ className: "u-float-right",
105
+ name: "add-details"
106
+ }, "Add details")))))));
107
+ }
108
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from "./AppAside";
2
+ export type { Props as AppAsideProps } from "./AppAside";
@@ -0,0 +1 @@
1
+ export { default } from "./AppAside";
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import type { HTMLProps, PropsWithChildren } from "react";
3
+ export type Props = {
4
+ /**
5
+ * The main content.
6
+ */
7
+ children?: PropsWithChildren["children"];
8
+ } & HTMLProps<HTMLDivElement>;
9
+ /**
10
+ * This is a [React](https://reactjs.org/) component for main content area in the Vanilla
11
+ * [Application Layout](https://vanillaframework.io/docs/layouts/application).
12
+ */
13
+ declare const AppMain: ({ children, className, ...props }: Props) => React.JSX.Element;
14
+ export default AppMain;
@@ -0,0 +1,21 @@
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
+ /**
8
+ * This is a [React](https://reactjs.org/) component for main content area in the Vanilla
9
+ * [Application Layout](https://vanillaframework.io/docs/layouts/application).
10
+ */
11
+ var AppMain = _ref => {
12
+ var {
13
+ children,
14
+ className
15
+ } = _ref,
16
+ props = _objectWithoutProperties(_ref, _excluded);
17
+ return /*#__PURE__*/React.createElement("main", _extends({
18
+ className: classNames("l-main", className)
19
+ }, props), children);
20
+ };
21
+ export default AppMain;
@@ -0,0 +1,14 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import AppMain from "./AppMain";
3
+ declare const meta: Meta<typeof AppMain>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppMain>;
6
+ /**
7
+ * In most common cases an `AppMain` should contain a `<Panel>` to display the
8
+ * content as intended in the application layout.
9
+ *
10
+ * `AppMain` should be a direct child of an `<Application>` or when using `ApplicationLayout`
11
+ * it will automatically wrap the component's children.
12
+ */
13
+ export declare const Default: Story;
14
+ export declare const Content: Story;
@@ -0,0 +1,38 @@
1
+ import Application from "../Application";
2
+ import Button from "../../Button";
3
+ import React from "react";
4
+ import Panel from "../../Panel";
5
+ import AppMain from "./AppMain";
6
+ var meta = {
7
+ component: AppMain,
8
+ tags: ["autodocs"]
9
+ };
10
+ export default meta;
11
+ /**
12
+ * In most common cases an `AppMain` should contain a `<Panel>` to display the
13
+ * content as intended in the application layout.
14
+ *
15
+ * `AppMain` should be a direct child of an `<Application>` or when using `ApplicationLayout`
16
+ * it will automatically wrap the component's children.
17
+ */
18
+ export var Default = {
19
+ args: {
20
+ children: "AppMain"
21
+ }
22
+ };
23
+ export var Content = {
24
+ render: args => {
25
+ return /*#__PURE__*/React.createElement(Application, null, /*#__PURE__*/React.createElement(AppMain, args, /*#__PURE__*/React.createElement(Panel, {
26
+ controls: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
27
+ appearance: "positive",
28
+ onClick: () => {},
29
+ className: "u-no-margin--bottom"
30
+ }, "Add"), /*#__PURE__*/React.createElement(Button, {
31
+ appearance: "negative",
32
+ onClick: () => {},
33
+ className: "u-no-margin--bottom"
34
+ }, "Delete")),
35
+ title: "App main"
36
+ }, /*#__PURE__*/React.createElement("p", null, "App main content."), /*#__PURE__*/React.createElement("p", null, "Scroll to the right to see the controls."))));
37
+ }
38
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from "./AppMain";
2
+ export type { Props as AppMainProps } from "./AppMain";
@@ -0,0 +1 @@
1
+ export { default } from "./AppMain";
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import type { PropsWithSpread } from "../../../types";
3
+ import type { HTMLProps, PropsWithChildren } from "react";
4
+ export type Props = PropsWithSpread<{
5
+ /**
6
+ * Whether the navigation panel should be collapsed.
7
+ */
8
+ collapsed?: boolean;
9
+ /**
10
+ * The navigation drawer content.
11
+ */
12
+ children?: PropsWithChildren["children"];
13
+ /**
14
+ * Whether the navigation panel should be pinned.
15
+ */
16
+ pinned?: boolean;
17
+ }, HTMLProps<HTMLDivElement>>;
18
+ /**
19
+ * This is a [React](https://reactjs.org/) component for the navigation panel in the Vanilla
20
+ * [Application Layout](https://vanillaframework.io/docs/layouts/application).
21
+ *
22
+ * This component is used to display the left navigation panel. It should be
23
+ * used alongside [`AppNavigationBar`](/docs/components-applicationlayout-appnavigationbar--docs).
24
+ */
25
+ declare const AppNavigation: ({ children, className, collapsed, pinned, ...props }: Props) => React.JSX.Element;
26
+ export default AppNavigation;
@@ -0,0 +1,31 @@
1
+ var _excluded = ["children", "className", "collapsed", "pinned"];
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
+ /**
8
+ * This is a [React](https://reactjs.org/) component for the navigation panel in the Vanilla
9
+ * [Application Layout](https://vanillaframework.io/docs/layouts/application).
10
+ *
11
+ * This component is used to display the left navigation panel. It should be
12
+ * used alongside [`AppNavigationBar`](/docs/components-applicationlayout-appnavigationbar--docs).
13
+ */
14
+ var AppNavigation = _ref => {
15
+ var {
16
+ children,
17
+ className,
18
+ collapsed,
19
+ pinned
20
+ } = _ref,
21
+ props = _objectWithoutProperties(_ref, _excluded);
22
+ return /*#__PURE__*/React.createElement("header", _extends({
23
+ className: classNames("l-navigation", className, {
24
+ "is-collapsed": collapsed,
25
+ "is-pinned": pinned
26
+ })
27
+ }, props), /*#__PURE__*/React.createElement("div", {
28
+ className: "l-navigation__drawer"
29
+ }, children));
30
+ };
31
+ export default AppNavigation;
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import AppNavigation from "./AppNavigation";
3
+ declare const meta: Meta<typeof AppNavigation>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppNavigation>;
6
+ /**
7
+ * In most common cases an `AppNavigation` should contain a `<Panel>` and `<SideNavigation>`.
8
+ *
9
+ * `AppNavigation` should be a direct child of an `<Application>` or when using `ApplicationLayout`
10
+ * it will wrap `navItems` and `sideNavigation`.
11
+ */
12
+ export declare const Default: Story;
@@ -0,0 +1,97 @@
1
+ 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); }
2
+ /* eslint-disable react-hooks/rules-of-hooks */
3
+ import { useState } from "react";
4
+ import classNames from "classnames";
5
+ import React from "react";
6
+ import Application from "../Application";
7
+ import AppMain from "../AppMain";
8
+ import Button from "../../Button";
9
+ import Icon from "../../Icon";
10
+ import Panel from "../../Panel";
11
+ import SideNavigation from "../../SideNavigation";
12
+ import Strip from "../../Strip";
13
+ import AppNavigation from "./AppNavigation";
14
+ var meta = {
15
+ component: AppNavigation,
16
+ tags: ["autodocs"]
17
+ };
18
+ export default meta;
19
+ /**
20
+ * In most common cases an `AppNavigation` should contain a `<Panel>` and `<SideNavigation>`.
21
+ *
22
+ * `AppNavigation` should be a direct child of an `<Application>` or when using `ApplicationLayout`
23
+ * it will wrap `navItems` and `sideNavigation`.
24
+ */
25
+ export var Default = {
26
+ render: args => {
27
+ var [pinned, setPinned] = useState(false);
28
+ var [collapsed, setCollapsed] = useState(true);
29
+ return /*#__PURE__*/React.createElement(Application, null, /*#__PURE__*/React.createElement(AppNavigation, _extends({}, args, {
30
+ pinned: pinned,
31
+ collapsed: collapsed
32
+ }), /*#__PURE__*/React.createElement(Panel, {
33
+ dark: true,
34
+ controls: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
35
+ hasIcon: true,
36
+ appearance: "base",
37
+ className: classNames("u-no-margin u-hide--medium", {
38
+ "is-dark": true
39
+ }),
40
+ onClick: evt => {
41
+ setCollapsed(true);
42
+ // The menu stays open while its content has focus, so the
43
+ // close button must blur to actually close the menu.
44
+ evt.currentTarget.blur();
45
+ }
46
+ }, /*#__PURE__*/React.createElement(Icon, {
47
+ name: "close",
48
+ className: classNames({
49
+ "is-light": true
50
+ })
51
+ }, "Close menu")), /*#__PURE__*/React.createElement(Button, {
52
+ hasIcon: true,
53
+ appearance: "base",
54
+ className: classNames("u-no-margin u-hide--small", {
55
+ "is-dark": true
56
+ }),
57
+ onClick: () => {
58
+ setPinned(!pinned);
59
+ }
60
+ }, /*#__PURE__*/React.createElement(Icon, {
61
+ name: pinned ? "close" : "pin",
62
+ className: classNames({
63
+ "is-light": true
64
+ })
65
+ }, pinned ? "Unpin menu" : "Pin menu"))),
66
+ controlsClassName: "u-hide--large",
67
+ stickyHeader: true,
68
+ logo: {
69
+ icon: "https://assets.ubuntu.com/v1/7144ec6d-logo-jaas-icon.svg",
70
+ name: "https://assets.ubuntu.com/v1/2e04d794-logo-jaas.svg",
71
+ nameAlt: "JAAS",
72
+ href: "/"
73
+ }
74
+ }, /*#__PURE__*/React.createElement(SideNavigation, {
75
+ dark: true,
76
+ items: [{
77
+ items: [{
78
+ icon: "drag",
79
+ label: "Models",
80
+ href: "/models"
81
+ }, {
82
+ icon: "menu",
83
+ label: "Controllers",
84
+ href: "/controllers"
85
+ }, {
86
+ icon: "user",
87
+ label: "Permissions",
88
+ href: "/permissions"
89
+ }]
90
+ }]
91
+ }))), /*#__PURE__*/React.createElement(AppMain, null, /*#__PURE__*/React.createElement(Strip, null, /*#__PURE__*/React.createElement("p", null, "These behaviours are only available at smaller screen sizes:"), /*#__PURE__*/React.createElement(Button, {
92
+ onClick: () => setPinned(!pinned)
93
+ }, "Pin"), /*#__PURE__*/React.createElement(Button, {
94
+ onClick: () => setCollapsed(!collapsed)
95
+ }, "Toggle"))));
96
+ }
97
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from "./AppNavigation";
2
+ export type { Props as AppNavigationProps } from "./AppNavigation";
@@ -0,0 +1 @@
1
+ export { default } from "./AppNavigation";
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import type { PropsWithSpread } from "../../../types";
3
+ import type { HTMLProps, PropsWithChildren } from "react";
4
+ export type Props = PropsWithSpread<{
5
+ /**
6
+ * The navigation content.
7
+ */
8
+ children?: PropsWithChildren["children"];
9
+ }, HTMLProps<HTMLElement>>;
10
+ /**
11
+ * This is a [React](https://reactjs.org/) component for navigation bar in the Vanilla
12
+ * [Application Layout](https://vanillaframework.io/docs/layouts/application).
13
+ *
14
+ * This component is used to display the navigation panel on mobile or small
15
+ * screens. It should be used alongside [`AppNavigation`](/docs/components-applicationlayout-appnavigation--docs).
16
+ */
17
+ declare const AppNavigationBar: ({ children, className, ...props }: Props) => React.JSX.Element;
18
+ export default AppNavigationBar;
@@ -0,0 +1,24 @@
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
+ /**
8
+ * This is a [React](https://reactjs.org/) component for navigation bar in the Vanilla
9
+ * [Application Layout](https://vanillaframework.io/docs/layouts/application).
10
+ *
11
+ * This component is used to display the navigation panel on mobile or small
12
+ * screens. It should be used alongside [`AppNavigation`](/docs/components-applicationlayout-appnavigation--docs).
13
+ */
14
+ var AppNavigationBar = _ref => {
15
+ var {
16
+ children,
17
+ className
18
+ } = _ref,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return /*#__PURE__*/React.createElement("header", _extends({
21
+ className: classNames("l-navigation-bar", className)
22
+ }, props), children);
23
+ };
24
+ export default AppNavigationBar;
@@ -0,0 +1,15 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import AppNavigationBar from "./AppNavigationBar";
3
+ declare const meta: Meta<typeof AppNavigationBar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppNavigationBar>;
6
+ /**
7
+ * In most common cases an `AppNavigationBar` should contain a `<Panel>`.
8
+ *
9
+ * `AppNavigationBar` should be a direct child of an `<Application>` or when using `ApplicationLayout`
10
+ * it will already be included.
11
+ *
12
+ * The toggle state should control the collapsed state of `AppNavigation`.
13
+ */
14
+ export declare const Default: Story;
15
+ export declare const States: Story;
@@ -0,0 +1,44 @@
1
+ import React from "react";
2
+ import { useState } from "react";
3
+ import Application from "../Application";
4
+ import AppMain from "../AppMain";
5
+ import Panel from "../../Panel";
6
+ import Strip from "../../Strip";
7
+ import AppNavigationBar from "./AppNavigationBar";
8
+ var meta = {
9
+ component: AppNavigationBar,
10
+ tags: ["autodocs"]
11
+ };
12
+ export default meta;
13
+ /**
14
+ * In most common cases an `AppNavigationBar` should contain a `<Panel>`.
15
+ *
16
+ * `AppNavigationBar` should be a direct child of an `<Application>` or when using `ApplicationLayout`
17
+ * it will already be included.
18
+ *
19
+ * The toggle state should control the collapsed state of `AppNavigation`.
20
+ */
21
+ export var Default = {
22
+ args: {
23
+ children: "AppNavigation"
24
+ }
25
+ };
26
+ export var States = {
27
+ render: args => {
28
+ // eslint-disable-next-line react-hooks/rules-of-hooks
29
+ var [collapsed, setCollapsed] = useState(true);
30
+ return /*#__PURE__*/React.createElement(Application, null, /*#__PURE__*/React.createElement(AppNavigationBar, args, /*#__PURE__*/React.createElement(Panel, {
31
+ dark: true,
32
+ logo: {
33
+ icon: "https://assets.ubuntu.com/v1/7144ec6d-logo-jaas-icon.svg",
34
+ name: "https://assets.ubuntu.com/v1/2e04d794-logo-jaas.svg",
35
+ nameAlt: "JAAS",
36
+ href: "/"
37
+ },
38
+ toggle: {
39
+ label: "Menu",
40
+ onClick: () => setCollapsed(!collapsed)
41
+ }
42
+ })), /*#__PURE__*/React.createElement(AppMain, null, /*#__PURE__*/React.createElement(Strip, null, /*#__PURE__*/React.createElement("p", null, "Reduce your window size to mobile to see the navigation bar."), /*#__PURE__*/React.createElement("p", null, "Pass the collapsed state to the main menu:", " ", /*#__PURE__*/React.createElement("code", null, "<AppNavigation collapsed={".concat(collapsed, "} />"))))));
43
+ }
44
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from "./AppNavigationBar";
2
+ export type { Props as AppNavigationBarProps } from "./AppNavigationBar";
@@ -0,0 +1 @@
1
+ export { default } from "./AppNavigationBar";