@hellobetterdigitalnz/betterui 0.0.0 → 0.0.2-1

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 (283) hide show
  1. package/README.md +14 -21
  2. package/dist/App.d.ts +2 -0
  3. package/dist/Components/DataDisplay/Accordion/Accordion.d.ts +3 -0
  4. package/dist/Components/DataDisplay/Accordion/AccordionContext.d.ts +4 -0
  5. package/dist/Components/DataDisplay/Accordion/AccordionContextInterface.d.ts +7 -0
  6. package/dist/Components/DataDisplay/Accordion/AccordionItem.d.ts +3 -0
  7. package/dist/Components/DataDisplay/Accordion/AccordionItemProps.d.ts +10 -0
  8. package/dist/Components/DataDisplay/Accordion/AccordionProps.d.ts +6 -0
  9. package/dist/Components/DataDisplay/Accordion/AccordionProvider.d.ts +3 -0
  10. package/dist/Components/DataDisplay/Accordion/AccordionProviderInterface.d.ts +6 -0
  11. package/dist/Components/DataDisplay/Badge/Badge.d.ts +3 -0
  12. package/dist/Components/DataDisplay/Badge/Badge.stories.d.ts +23 -0
  13. package/dist/Components/DataDisplay/Badge/BadgeProps.d.ts +5 -0
  14. package/dist/Components/DataDisplay/Cards/BannerCard/BannerCard.d.ts +3 -0
  15. package/dist/Components/DataDisplay/Cards/BannerCard/BannerCard.stories.d.ts +10 -0
  16. package/dist/Components/DataDisplay/Cards/BannerCard/BannerCardInterface.d.ts +13 -0
  17. package/dist/Components/DataDisplay/Cards/PathwayCard/PathwayCard.d.ts +2 -0
  18. package/dist/Components/DataDisplay/Cards/PathwayCard/PathwayCard.stories.d.ts +13 -0
  19. package/dist/Components/DataDisplay/Cards/PathwayCard/PathwayCardInterface.d.ts +15 -0
  20. package/dist/Components/DataDisplay/Media/Media.d.ts +3 -0
  21. package/dist/Components/DataDisplay/Media/Media.stories.d.ts +14 -0
  22. package/dist/Components/DataDisplay/Media/MediaProps.d.ts +7 -0
  23. package/dist/Components/DataDisplay/Modal/Modal.d.ts +3 -0
  24. package/dist/Components/DataDisplay/Modal/ModalActions.d.ts +2 -0
  25. package/dist/Components/DataDisplay/Modal/ModalActionsLeft.d.ts +2 -0
  26. package/dist/Components/DataDisplay/Modal/ModalActionsRight.d.ts +2 -0
  27. package/dist/Components/DataDisplay/Modal/ModalBody.d.ts +3 -0
  28. package/dist/Components/DataDisplay/Modal/ModalBodyProps.d.ts +5 -0
  29. package/dist/Components/DataDisplay/Modal/ModalCurtain.d.ts +2 -0
  30. package/dist/Components/DataDisplay/Modal/ModalHeader.d.ts +3 -0
  31. package/dist/Components/DataDisplay/Modal/ModalHeaderProps.d.ts +7 -0
  32. package/dist/Components/DataDisplay/Modal/ModalProps.d.ts +6 -0
  33. package/dist/Components/DataDisplay/NotificationsBell/NotificationBell.stories.d.ts +14 -0
  34. package/dist/Components/DataDisplay/NotificationsBell/NotificationsBell.d.ts +3 -0
  35. package/dist/Components/DataDisplay/NotificationsBell/NotificationsBellProps.d.ts +7 -0
  36. package/dist/Components/DataDisplay/NotificationsPanel/Notification.d.ts +3 -0
  37. package/dist/Components/DataDisplay/NotificationsPanel/NotificationProps.d.ts +10 -0
  38. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsGroup.d.ts +3 -0
  39. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsGroupProps.d.ts +6 -0
  40. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsGroups.d.ts +3 -0
  41. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsGroupsProps.d.ts +5 -0
  42. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsHeader.d.ts +3 -0
  43. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsHeaderProps.d.ts +6 -0
  44. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsNone.d.ts +2 -0
  45. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsPanel.d.ts +3 -0
  46. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsPanelProps.d.ts +5 -0
  47. package/dist/Components/DataDisplay/Tab/Tab.d.ts +2 -0
  48. package/dist/Components/DataDisplay/Tab/TabBody.d.ts +2 -0
  49. package/dist/Components/DataDisplay/Tab/TabBodyContent.d.ts +2 -0
  50. package/dist/Components/DataDisplay/Tab/TabBodyContentProps.d.ts +7 -0
  51. package/dist/Components/DataDisplay/Tab/TabBodyProps.d.ts +6 -0
  52. package/dist/Components/DataDisplay/Tab/TabContext.d.ts +4 -0
  53. package/dist/Components/DataDisplay/Tab/TabContextProps.d.ts +5 -0
  54. package/dist/Components/DataDisplay/Tab/TabNav.d.ts +2 -0
  55. package/dist/Components/DataDisplay/Tab/TabNavItem.d.ts +2 -0
  56. package/dist/Components/DataDisplay/Tab/TabNavItemProps.d.ts +8 -0
  57. package/dist/Components/DataDisplay/Tab/TabNavProps.d.ts +6 -0
  58. package/dist/Components/DataDisplay/Tab/TabProps.d.ts +6 -0
  59. package/dist/Components/DataDisplay/Table/Table.d.ts +3 -0
  60. package/dist/Components/DataDisplay/Table/TableBody.d.ts +3 -0
  61. package/dist/Components/DataDisplay/Table/TableBodyProps.d.ts +6 -0
  62. package/dist/Components/DataDisplay/Table/TableCell.d.ts +3 -0
  63. package/dist/Components/DataDisplay/Table/TableCellAction.d.ts +3 -0
  64. package/dist/Components/DataDisplay/Table/TableCellActionProps.d.ts +9 -0
  65. package/dist/Components/DataDisplay/Table/TableCellProps.d.ts +9 -0
  66. package/dist/Components/DataDisplay/Table/TableCellWithDesc.d.ts +3 -0
  67. package/dist/Components/DataDisplay/Table/TableCellWithDescProps.d.ts +8 -0
  68. package/dist/Components/DataDisplay/Table/TableCellWithImage.d.ts +3 -0
  69. package/dist/Components/DataDisplay/Table/TableCellWithImageProps.d.ts +9 -0
  70. package/dist/Components/DataDisplay/Table/TableFooter.d.ts +2 -0
  71. package/dist/Components/DataDisplay/Table/TableHead.d.ts +3 -0
  72. package/dist/Components/DataDisplay/Table/TableHeadProps.d.ts +6 -0
  73. package/dist/Components/DataDisplay/Table/TableHeaderCell.d.ts +3 -0
  74. package/dist/Components/DataDisplay/Table/TableHeaderCellProps.d.ts +8 -0
  75. package/dist/Components/DataDisplay/Table/TableProps.d.ts +6 -0
  76. package/dist/Components/DataDisplay/Table/TableRow.d.ts +3 -0
  77. package/dist/Components/DataDisplay/Table/TableRowProps.d.ts +6 -0
  78. package/dist/Components/DataDisplay/export.d.ts +12 -0
  79. package/dist/Components/Form/Button/Button.d.ts +6 -0
  80. package/dist/Components/Form/Button/Button.stories.d.ts +17 -0
  81. package/dist/Components/Form/Button/ButtonProps.d.ts +15 -0
  82. package/dist/Components/Form/Checkbox/Checkbox.d.ts +3 -0
  83. package/dist/Components/Form/Checkbox/Checkbox.stories.d.ts +17 -0
  84. package/dist/Components/Form/Checkbox/CheckboxProps.d.ts +20 -0
  85. package/dist/Components/Form/CheckboxSelect/CheckboxSelect.d.ts +2 -0
  86. package/dist/Components/Form/CheckboxSelect/CheckboxSelectItem.d.ts +2 -0
  87. package/dist/Components/Form/CheckboxSet/CheckboxSet.d.ts +3 -0
  88. package/dist/Components/Form/CheckboxSet/CheckboxSetItem.d.ts +3 -0
  89. package/dist/Components/Form/CheckboxSet/CheckboxSetProps.d.ts +7 -0
  90. package/dist/Components/Form/CurrencyField/CurrenctField.stories.d.ts +13 -0
  91. package/dist/Components/Form/CurrencyField/CurrencyField.d.ts +3 -0
  92. package/dist/Components/Form/CurrencyField/CurrencyFieldProps.d.ts +6 -0
  93. package/dist/Components/Form/DateField/DateField.d.ts +3 -0
  94. package/dist/Components/Form/DateField/DateField.stories.d.ts +13 -0
  95. package/dist/Components/Form/DropdownBadge/DropdownBadge.d.ts +3 -0
  96. package/dist/Components/Form/DropdownBadge/DropdownBadge.stories.d.ts +14 -0
  97. package/dist/Components/Form/DropdownBadge/DropdownBadgeItem.d.ts +3 -0
  98. package/dist/Components/Form/DropdownBadge/DropdownBadgeItemProps.d.ts +8 -0
  99. package/dist/Components/Form/DropdownBadge/DropdownBadgeProps.d.ts +27 -0
  100. package/dist/Components/Form/DropdownBadge/DropdownBadgeSelector.d.ts +3 -0
  101. package/dist/Components/Form/DropdownBadge/DropdownBadgeSelectorProps.d.ts +5 -0
  102. package/dist/Components/Form/DropdownField/DropdownField.d.ts +3 -0
  103. package/dist/Components/Form/DropdownField/DropdownField.stories.d.ts +14 -0
  104. package/dist/Components/Form/DropdownField/DropdownFieldItem.d.ts +3 -0
  105. package/dist/Components/Form/DropdownField/DropdownFieldItemProps.d.ts +7 -0
  106. package/dist/Components/Form/DropdownField/DropdownFieldProps.d.ts +29 -0
  107. package/dist/Components/Form/DropdownField/DropdownFieldSelector.d.ts +3 -0
  108. package/dist/Components/Form/DropdownField/DropdownFieldSelectorProps.d.ts +5 -0
  109. package/dist/Components/Form/EmailField/EmailField.d.ts +3 -0
  110. package/dist/Components/Form/EmailField/EmailField.stories.d.ts +13 -0
  111. package/dist/Components/Form/ErrorMessage/ErrorMessage.d.ts +2 -0
  112. package/dist/Components/Form/FormFieldHolder/FormFieldHolder.d.ts +3 -0
  113. package/dist/Components/Form/FormFieldHolder/FormFieldHolderProps.d.ts +10 -0
  114. package/dist/Components/Form/IconButton/IconButton.d.ts +6 -0
  115. package/dist/Components/Form/IconButton/IconButton.stories.d.ts +15 -0
  116. package/dist/Components/Form/IconButton/IconButtonProps.d.ts +13 -0
  117. package/dist/Components/Form/InputProps.d.ts +23 -0
  118. package/dist/Components/Form/MultiSelectField/MultiSelectField.d.ts +2 -0
  119. package/dist/Components/Form/MultiSelectField/MultiSelectFieldItem.d.ts +2 -0
  120. package/dist/Components/Form/MultiSelectField/MultiSelectFieldTag.d.ts +2 -0
  121. package/dist/Components/Form/PasswordField/PasswordField.d.ts +3 -0
  122. package/dist/Components/Form/PasswordField/PasswordField.stories.d.ts +13 -0
  123. package/dist/Components/Form/RadioButtons/RadioButton.d.ts +3 -0
  124. package/dist/Components/Form/RadioButtons/RadioButtonProps.d.ts +20 -0
  125. package/dist/Components/Form/RadioButtons/RadioButtons.d.ts +3 -0
  126. package/dist/Components/Form/RadioButtons/RadioButtonsProps.d.ts +8 -0
  127. package/dist/Components/Form/TextField/TextField.d.ts +3 -0
  128. package/dist/Components/Form/TextField/TextField.stories.d.ts +13 -0
  129. package/dist/Components/Form/TextField/TextFieldProps.d.ts +6 -0
  130. package/dist/Components/Form/Textarea/Textarea.d.ts +3 -0
  131. package/dist/Components/Form/Textarea/Textarea.stories.d.ts +14 -0
  132. package/dist/Components/Form/Textarea/TextareaProps.d.ts +25 -0
  133. package/dist/Components/Form/TimeField/TimeField.d.ts +3 -0
  134. package/dist/Components/Form/TimeField/TimeField.stories.d.ts +13 -0
  135. package/dist/Components/Form/ToggleSwitch/ToggleSwitch.d.ts +3 -0
  136. package/dist/Components/Form/ToggleSwitch/ToggleSwitch.stories.d.ts +17 -0
  137. package/dist/Components/Form/ToggleSwitch/ToggleSwitchProps.d.ts +20 -0
  138. package/dist/Components/Form/export.d.ts +7 -0
  139. package/dist/Components/Icons/Arrows/CaretDown/CaretDown.d.ts +3 -0
  140. package/dist/Components/Icons/Arrows/CaretLeft/CaretLeft.d.ts +3 -0
  141. package/dist/Components/Icons/Arrows/CaretRight/CaretRight.d.ts +3 -0
  142. package/dist/Components/Icons/Arrows/CaretUp/CaretUp.d.ts +3 -0
  143. package/dist/Components/Icons/Brand/WindowLogo/WindowLogo.d.ts +3 -0
  144. package/dist/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.d.ts +3 -0
  145. package/dist/Components/Icons/Communication/AddressBook/AddressBook.d.ts +3 -0
  146. package/dist/Components/Icons/Communication/AddressBook/AddressBook.stories.d.ts +21 -0
  147. package/dist/Components/Icons/Communication/Asterick/Asterisk.d.ts +3 -0
  148. package/dist/Components/Icons/Communication/Asterick/Asterisk.stories.d.ts +21 -0
  149. package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.d.ts +3 -0
  150. package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.d.ts +21 -0
  151. package/dist/Components/Icons/Communication/At/At.d.ts +3 -0
  152. package/dist/Components/Icons/Communication/At/At.stories.d.ts +21 -0
  153. package/dist/Components/Icons/Communication/Broadcast/Broadcast.d.ts +3 -0
  154. package/dist/Components/Icons/Communication/Broadcast/Broadcast.stories.d.ts +21 -0
  155. package/dist/Components/Icons/Communication/Chat/Chat.d.ts +3 -0
  156. package/dist/Components/Icons/Communication/Chat/Chat.stories.d.ts +21 -0
  157. package/dist/Components/Icons/Design/Eye/Eye.d.ts +3 -0
  158. package/dist/Components/Icons/Design/EyeSlash/EyeSlash.d.ts +3 -0
  159. package/dist/Components/Icons/IconProps.d.ts +4 -0
  160. package/dist/Components/Icons/MathAndFinance/XIcon/XIcon.d.ts +3 -0
  161. package/dist/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.d.ts +3 -0
  162. package/dist/Components/Icons/SystemAndDevice/Bell/Bell.d.ts +3 -0
  163. package/dist/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.d.ts +3 -0
  164. package/dist/Components/Icons/Time/CalendarBank/CalendarBank.d.ts +3 -0
  165. package/dist/Components/Icons/Time/Clock/Clock.d.ts +3 -0
  166. package/dist/Components/Layout/CalloutPopup/CalloutPopup.d.ts +2 -0
  167. package/dist/Components/Layout/Header/Header.d.ts +2 -0
  168. package/dist/Components/Layout/Header/HeaderLeft.d.ts +2 -0
  169. package/dist/Components/Layout/Header/HeaderRight.d.ts +2 -0
  170. package/dist/Components/Layout/Pagination/Pagination.d.ts +2 -0
  171. package/dist/Components/Layout/Pagination/PaginationFirst.d.ts +2 -0
  172. package/dist/Components/Layout/Pagination/PaginationLast.d.ts +2 -0
  173. package/dist/Components/Layout/Pagination/PaginationNext.d.ts +2 -0
  174. package/dist/Components/Layout/Pagination/PaginationNumber.d.ts +2 -0
  175. package/dist/Components/Layout/Pagination/PaginationPrevious.d.ts +2 -0
  176. package/dist/Components/Layout/ProfileAvatar/ProfileAvatar.d.ts +3 -0
  177. package/dist/Components/Layout/ProfileAvatar/ProfileAvatar.stories.d.ts +13 -0
  178. package/dist/Components/Layout/ProfileAvatar/ProfileAvatarProps.d.ts +8 -0
  179. package/dist/Components/Layout/ProfileDropdown/ProfileDropdown.d.ts +3 -0
  180. package/dist/Components/Layout/ProfileDropdown/ProfileDropdownProps.d.ts +6 -0
  181. package/dist/Components/Layout/ProfileDropdown/ProfileHeader.d.ts +3 -0
  182. package/dist/Components/Layout/ProfileDropdown/ProfileHeaderProps.d.ts +7 -0
  183. package/dist/Components/Layout/ProfileDropdown/ProfileLink.d.ts +3 -0
  184. package/dist/Components/Layout/ProfileDropdown/ProfileLinkProps.d.ts +5 -0
  185. package/dist/Components/Layout/ProfileDropdown/ProfileLinks.d.ts +3 -0
  186. package/dist/Components/Layout/ProfileDropdown/ProfileLinksProps.d.ts +5 -0
  187. package/dist/Components/Layout/ProfileDropdown/ProfileNavigationItem.d.ts +3 -0
  188. package/dist/Components/Layout/ProfileDropdown/ProfileNavigationItemProps.d.ts +8 -0
  189. package/dist/Components/Layout/ProfileDropdown/ProfileSwitchPanel.d.ts +3 -0
  190. package/dist/Components/Layout/ProfileDropdown/ProfileSwitchPanelProps.d.ts +8 -0
  191. package/dist/Components/Layout/ProfileDropdown/ProfileSwitchUser.d.ts +3 -0
  192. package/dist/Components/Layout/ProfileDropdown/ProfileSwitchUserProps.d.ts +6 -0
  193. package/dist/Components/Layout/Sidebar/Sidebar.d.ts +2 -0
  194. package/dist/Components/Layout/Sidebar/SidebarChevron.d.ts +2 -0
  195. package/dist/Components/Layout/Sidebar/SidebarNavigation.d.ts +2 -0
  196. package/dist/Components/Layout/Sidebar/SidebarNavigationItem.d.ts +2 -0
  197. package/dist/Components/Layout/Sidebar/SidebarSubNavigation.d.ts +2 -0
  198. package/dist/Notification/Notification.d.ts +2 -0
  199. package/dist/Notification/NotificationInterface.d.ts +7 -0
  200. package/dist/Notification/NotificationList.d.ts +2 -0
  201. package/dist/Notification/NotificationListHolder.d.ts +2 -0
  202. package/dist/Notification/NotificationListHolderInterface.d.ts +6 -0
  203. package/dist/Notification/NotificationListInterface.d.ts +10 -0
  204. package/dist/export.d.ts +2 -0
  205. package/dist/index.cjs +31 -0
  206. package/dist/index.d.ts +1 -0
  207. package/dist/index.iife.js +31 -0
  208. package/dist/index.js +1010 -0
  209. package/dist/style.css +1 -0
  210. package/package.json +12 -4
  211. package/src/Components/DataDisplay/Cards/BannerCard/BannerCard.stories.tsx +1 -1
  212. package/src/Components/DataDisplay/Cards/BannerCard/BannerCard.tsx +3 -1
  213. package/src/Components/DataDisplay/Media/Media.stories.tsx +30 -0
  214. package/src/Components/DataDisplay/Media/Media.tsx +28 -7
  215. package/src/Components/DataDisplay/Media/media.module.scss +8 -0
  216. package/src/Components/DataDisplay/Modal/Modal.stories.tsx +27 -0
  217. package/src/Components/DataDisplay/Modal/Modal.tsx +13 -2
  218. package/src/Components/DataDisplay/Modal/ModalBody.tsx +12 -2
  219. package/src/Components/DataDisplay/Modal/ModalBodyProps.tsx +7 -0
  220. package/src/Components/DataDisplay/Modal/ModalHeader.tsx +29 -2
  221. package/src/Components/DataDisplay/Modal/ModalHeaderProps.tsx +8 -0
  222. package/src/Components/DataDisplay/Modal/ModalProps.tsx +8 -0
  223. package/src/Components/DataDisplay/Modal/modal.module.scss +58 -0
  224. package/src/Components/DataDisplay/NotificationsPanel/Notification.stories.tsx +2 -2
  225. package/src/Components/DataDisplay/NotificationsPanel/NotificationsHeaderProps.tsx +0 -2
  226. package/src/Components/DataDisplay/export.ts +14 -0
  227. package/src/Components/Form/Button/Button.stories.tsx +1 -1
  228. package/src/Components/Form/Button/Button.tsx +2 -2
  229. package/src/Components/Form/CheckboxSet/CheckboxSet.tsx +1 -1
  230. package/src/Components/Form/FormFieldHolder/FormFieldHolder.stories.tsx +30 -0
  231. package/src/Components/Form/FormFieldHolder/FormFieldHolder.tsx +37 -2
  232. package/src/Components/Form/FormFieldHolder/FormFieldHolderProps.tsx +12 -0
  233. package/src/Components/Form/FormFieldHolder/formHolder.module.scss +56 -0
  234. package/src/Components/Form/RadioButtons/RadioButtons.tsx +1 -1
  235. package/src/Components/Form/TextField/TextField.stories.ts +6 -7
  236. package/src/Components/Form/TextField/TextField.tsx +25 -21
  237. package/src/Components/Form/TextField/TextFieldProps.tsx +8 -0
  238. package/src/Components/Form/export.ts +7 -0
  239. package/src/Components/Form/inputs.module.scss +11 -3
  240. package/src/Components/Icons/Arrows/CaretLeft/CaretLeft.tsx +102 -0
  241. package/src/Components/Icons/Arrows/CaretRight/CaretRight.tsx +102 -0
  242. package/src/Components/Icons/Brand/WindowLogo/WindowLogo.tsx +105 -0
  243. package/src/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.tsx +105 -0
  244. package/src/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.tsx +105 -0
  245. package/src/Components/Layout/ProfileAvatar/ProfileAvatar.stories.tsx +22 -0
  246. package/src/Components/Layout/ProfileAvatar/ProfileAvatar.tsx +28 -2
  247. package/src/Components/Layout/ProfileAvatar/ProfileAvatarProps.tsx +7 -1
  248. package/src/Components/Layout/ProfileAvatar/profileAvatar.module.scss +35 -0
  249. package/src/Components/Layout/ProfileDropdown/ProfileDropdown.stories.tsx +67 -0
  250. package/src/Components/Layout/ProfileDropdown/ProfileDropdown.tsx +9 -2
  251. package/src/Components/Layout/ProfileDropdown/ProfileDropdownProps.tsx +8 -0
  252. package/src/Components/Layout/ProfileDropdown/ProfileHeader.tsx +21 -2
  253. package/src/Components/Layout/ProfileDropdown/ProfileHeaderProps.tsx +8 -0
  254. package/src/Components/Layout/ProfileDropdown/ProfileLink.tsx +7 -2
  255. package/src/Components/Layout/ProfileDropdown/ProfileLinkProps.tsx +7 -0
  256. package/src/Components/Layout/ProfileDropdown/ProfileLinks.tsx +11 -2
  257. package/src/Components/Layout/ProfileDropdown/ProfileLinksProps.tsx +7 -0
  258. package/src/Components/Layout/ProfileDropdown/ProfileNavigationItem.tsx +26 -2
  259. package/src/Components/Layout/ProfileDropdown/ProfileNavigationItemProps.tsx +10 -0
  260. package/src/Components/Layout/ProfileDropdown/ProfileSwitchPanel.tsx +76 -2
  261. package/src/Components/Layout/ProfileDropdown/ProfileSwitchPanelProps.tsx +10 -0
  262. package/src/Components/Layout/ProfileDropdown/ProfileSwitchUser.tsx +19 -2
  263. package/src/Components/Layout/ProfileDropdown/ProfileSwitchUserProps.tsx +7 -0
  264. package/src/Components/Layout/ProfileDropdown/profileDropdown.module.scss +207 -0
  265. package/src/Notification/NotificationList.tsx +47 -22
  266. package/src/export.ts +2 -0
  267. package/src/global.scss +21 -28
  268. package/src/main.tsx +1 -0
  269. package/.editorconfig +0 -17
  270. package/.eslintrc.cjs +0 -14
  271. package/.storybook/main.ts +0 -23
  272. package/.storybook/preview.ts +0 -17
  273. package/index.html +0 -13
  274. package/tokens/color/color.mdx +0 -82
  275. package/tokens/shadow/shadow-panel.scss +0 -12
  276. package/tokens/shadow/shadow.mdx +0 -34
  277. package/tokens/typography/typography.mdx +0 -31
  278. package/tsconfig.json +0 -25
  279. package/tsconfig.node.json +0 -10
  280. package/vite.config.ts +0 -7
  281. /package/{public → dist}/image/table-image.png +0 -0
  282. /package/{src/Components/DataDisplay/Media/media.scss → dist/main.d.ts} +0 -0
  283. /package/{public → dist}/vite.svg +0 -0
package/README.md CHANGED
@@ -1,30 +1,23 @@
1
- # React + TypeScript + Vite
1
+ # BetterUI
2
2
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3
+ A reusable Rect component library by [Hello Better](https://hellobetterdigital.com).
4
4
 
5
- Currently, two official plugins are available:
5
+ We at Hello Better builds many web applications using React + Typescript and headless APIs. We make use of Figma design systems and have our own component library that we have shared here.
6
6
 
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
7
+ ## Installation
9
8
 
10
- ## Expanding the ESLint configuration
9
+ To install simply use
11
10
 
12
- If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
11
+ ```
12
+ npm install @hellobetterdigitalnz/betteru
13
+ ```
13
14
 
14
- - Configure the top-level `parserOptions` property like this:
15
+ or if you are using yarn
15
16
 
16
- ```js
17
- export default {
18
- // other rules...
19
- parserOptions: {
20
- ecmaVersion: 'latest',
21
- sourceType: 'module',
22
- project: ['./tsconfig.json', './tsconfig.node.json'],
23
- tsconfigRootDir: __dirname,
24
- },
25
- }
26
17
  ```
18
+ yarn add @hellobetterdigitalnz/betteru
19
+ ```
20
+
21
+ ## Using components
27
22
 
28
- - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29
- - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30
- - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
23
+ Components are used from the libraries root entry.
package/dist/App.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare function App(): import("react/jsx-runtime").JSX.Element;
2
+ export default App;
@@ -0,0 +1,3 @@
1
+ import AccordionProps from "./AccordionProps.tsx";
2
+ declare const Accordion: (props: AccordionProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Accordion;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import AccordionContextInterface from "./AccordionContextInterface.tsx";
3
+ declare const AccordionContext: import("react").Context<AccordionContextInterface>;
4
+ export default AccordionContext;
@@ -0,0 +1,7 @@
1
+ interface AccordionContextInterface {
2
+ handleClick: (index: number) => void;
3
+ isOpened: (index: number) => boolean;
4
+ allowMultiple?: boolean;
5
+ openedList: any[];
6
+ }
7
+ export default AccordionContextInterface;
@@ -0,0 +1,3 @@
1
+ import AccordionItemProps from "./AccordionItemProps.tsx";
2
+ declare const AccordionItem: (props: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AccordionItem;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ interface AccordionItemProps {
3
+ index: string | number;
4
+ title: string;
5
+ children: string | ReactNode;
6
+ onAfterOpened?: () => void;
7
+ onAfterClosed?: () => void;
8
+ onBeforeClosed?: () => boolean;
9
+ }
10
+ export default AccordionItemProps;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface AccordionProps {
3
+ allowMultiple?: boolean;
4
+ children: ReactNode;
5
+ }
6
+ export default AccordionProps;
@@ -0,0 +1,3 @@
1
+ import AccordionProviderInterface from "./AccordionProviderInterface.tsx";
2
+ declare const AccordionProvider: (props: AccordionProviderInterface) => import("react/jsx-runtime").JSX.Element;
3
+ export default AccordionProvider;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface AccordionProviderInterface {
3
+ children: ReactNode;
4
+ allowMultiple?: boolean;
5
+ }
6
+ export default AccordionProviderInterface;
@@ -0,0 +1,3 @@
1
+ import BadgeProps from "./BadgeProps.tsx";
2
+ declare const Badge: (props: BadgeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Badge;
@@ -0,0 +1,23 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import Badge from './Badge';
3
+ declare const meta: {
4
+ title: string;
5
+ component: (props: import("./BadgeProps").default) => import("react/jsx-runtime").JSX.Element;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ argTypes: {
10
+ status: {
11
+ options: string[];
12
+ control: {
13
+ type: string;
14
+ };
15
+ };
16
+ };
17
+ tags: string[];
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<typeof Badge>;
21
+ export declare const Pending: Story;
22
+ export declare const InProgress: Story;
23
+ export declare const Complete: Story;
@@ -0,0 +1,5 @@
1
+ interface BadgeProps {
2
+ status?: "pending" | "inProgress" | "complete";
3
+ label: string;
4
+ }
5
+ export default BadgeProps;
@@ -0,0 +1,3 @@
1
+ import BannerCardInterface from "./BannerCardInterface.tsx";
2
+ declare const BannerCard: (props: BannerCardInterface) => import("react/jsx-runtime").JSX.Element;
3
+ export default BannerCard;
@@ -0,0 +1,10 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import BannerCard from './BannerCard.tsx';
3
+ declare const meta: {
4
+ title: string;
5
+ component: (props: import("./BannerCardInterface.tsx").default) => import("react/jsx-runtime").JSX.Element;
6
+ tags: string[];
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof BannerCard>;
10
+ export declare const Example: Story;
@@ -0,0 +1,13 @@
1
+ interface BannerCardInterface {
2
+ title: string;
3
+ btnTitle: string;
4
+ description: string;
5
+ image: string;
6
+ btnType?: "button" | "submit" | "reset" | undefined;
7
+ btnSize?: "default" | "large" | "small";
8
+ btnStyle?: "solid" | "hollow" | "no-border";
9
+ btnScheme?: "primary" | "secondary" | "gray";
10
+ extraClass?: string;
11
+ btnOnClick?: () => void;
12
+ }
13
+ export default BannerCardInterface;
@@ -0,0 +1,2 @@
1
+ import PathwayCardInterface from "./PathwayCardInterface.tsx";
2
+ export declare const PathwayCard: (props: PathwayCardInterface) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { PathwayCard } from './PathwayCard.tsx';
3
+ declare const meta: {
4
+ title: string;
5
+ component: (props: import("./PathwayCardInterface.tsx").default) => import("react/jsx-runtime").JSX.Element;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof PathwayCard>;
13
+ export declare const Example: Story;
@@ -0,0 +1,15 @@
1
+ import React, { ReactNode } from "react";
2
+ interface PathwayCardInterface {
3
+ title: string;
4
+ btnTitle: string;
5
+ description: string;
6
+ image: string | ReactNode;
7
+ btnType?: "button" | "submit" | "reset" | undefined;
8
+ btnSize?: "default" | "large" | "small";
9
+ btnStyle?: "solid" | "hollow" | "no-border";
10
+ btnScheme?: "primary" | "secondary" | "gray";
11
+ extraClass?: string;
12
+ cardOnClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
13
+ btnOnClick?: () => void;
14
+ }
15
+ export default PathwayCardInterface;
@@ -0,0 +1,3 @@
1
+ import MediaProps from "./MediaProps.tsx";
2
+ declare const Media: ({ type, videoSrc, imageSrc }: MediaProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Media;
@@ -0,0 +1,14 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ import Media from "./Media";
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ type, videoSrc, imageSrc }: import("./MediaProps").default) => import("react/jsx-runtime").JSX.Element;
6
+ parameters: {
7
+ layout: string[];
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof Media>;
13
+ export declare const MediaImage: Story;
14
+ export declare const MediaVideo: Story;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ interface MediaProps {
3
+ type?: "image" | "video";
4
+ videoSrc?: string;
5
+ imageSrc: string | ReactNode;
6
+ }
7
+ export default MediaProps;
@@ -0,0 +1,3 @@
1
+ import ModalProps from "./ModalProps";
2
+ declare const Modal: (props: ModalProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Modal;
@@ -0,0 +1,2 @@
1
+ declare const ModalActions: () => void;
2
+ export default ModalActions;
@@ -0,0 +1,2 @@
1
+ declare const ModalActionsLeft: () => void;
2
+ export default ModalActionsLeft;
@@ -0,0 +1,2 @@
1
+ declare const ModalActionsRight: () => void;
2
+ export default ModalActionsRight;
@@ -0,0 +1,3 @@
1
+ import ModalBodyProps from "./ModalBodyProps";
2
+ declare const ModalBody: (props: ModalBodyProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ModalBody;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from "react";
2
+ interface ModalBodyProps {
3
+ children?: ReactNode;
4
+ }
5
+ export default ModalBodyProps;
@@ -0,0 +1,2 @@
1
+ declare const ModalCurtain: () => void;
2
+ export default ModalCurtain;
@@ -0,0 +1,3 @@
1
+ import ModalHeaderProps from "./ModalHeaderProps";
2
+ declare const ModalHeader: (props: ModalHeaderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ModalHeader;
@@ -0,0 +1,7 @@
1
+ interface ModalHeaderProps {
2
+ title: string;
3
+ extraClass?: string;
4
+ canClose?: boolean;
5
+ canGoBack?: boolean;
6
+ }
7
+ export default ModalHeaderProps;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface ModalProps {
3
+ children?: ReactNode;
4
+ extraClass?: string;
5
+ }
6
+ export default ModalProps;
@@ -0,0 +1,14 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ import NotificationsBell from "./NotificationsBell";
3
+ declare const meta: {
4
+ title: string;
5
+ component: (props: import("./NotificationsBellProps").default) => import("react/jsx-runtime").JSX.Element;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof NotificationsBell>;
13
+ export declare const Default: Story;
14
+ export declare const ActiveState: Story;
@@ -0,0 +1,3 @@
1
+ import NotificationsBellProps from "./NotificationsBellProps.tsx";
2
+ declare const NotificationsBell: (props: NotificationsBellProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default NotificationsBell;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ interface NotificationsBellProps {
3
+ children?: ReactNode;
4
+ extraClass?: string;
5
+ active?: boolean;
6
+ }
7
+ export default NotificationsBellProps;
@@ -0,0 +1,3 @@
1
+ import NotificationProps from "./NotificationProps.tsx";
2
+ declare const Notification: (props: NotificationProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Notification;
@@ -0,0 +1,10 @@
1
+ interface NotificationProps {
2
+ notificationInitials?: string;
3
+ extraClass?: string;
4
+ boldText?: string;
5
+ regularText?: string;
6
+ summaryText?: string;
7
+ notificatonItemOnClick?: () => void;
8
+ closeOnClick?: () => void;
9
+ }
10
+ export default NotificationProps;
@@ -0,0 +1,3 @@
1
+ import NotificationsGroupProps from "./NotificationsGroupProps";
2
+ declare const NotificationsGroup: ({ children, title }: NotificationsGroupProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default NotificationsGroup;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface NotificationsGroupProps {
3
+ children?: ReactNode;
4
+ title: string;
5
+ }
6
+ export default NotificationsGroupProps;
@@ -0,0 +1,3 @@
1
+ import NotificationsGroupsProps from "./NotificationsGroupsProps";
2
+ declare const NotificationsGroups: (props: NotificationsGroupsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default NotificationsGroups;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from "react";
2
+ interface NotificationsGroupsProps {
3
+ children?: ReactNode;
4
+ }
5
+ export default NotificationsGroupsProps;
@@ -0,0 +1,3 @@
1
+ import NotificationsHeaderProps from "./NotificationsHeaderProps";
2
+ declare const NotificationsHeader: (props: NotificationsHeaderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default NotificationsHeader;
@@ -0,0 +1,6 @@
1
+ interface NotificationsHeaderProps {
2
+ extraClass?: string;
3
+ markAllAsReadOnClick?: () => void;
4
+ showMarkAllAsRead?: boolean;
5
+ }
6
+ export default NotificationsHeaderProps;
@@ -0,0 +1,2 @@
1
+ declare const NotificationsNone: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NotificationsNone;
@@ -0,0 +1,3 @@
1
+ import NotificationsPanelProps from "./NotificationsPanelProps";
2
+ declare const NotificationsPanel: ({ children }: NotificationsPanelProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default NotificationsPanel;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from "react";
2
+ interface NotificationsPanelProps {
3
+ children?: ReactNode;
4
+ }
5
+ export default NotificationsPanelProps;
@@ -0,0 +1,2 @@
1
+ import TabInterface from "./TabProps.tsx";
2
+ export declare const Tab: ({ children, extraClass }: TabInterface) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import TabBodyProps from "./TabBodyProps.tsx";
2
+ export declare const TabBody: ({ children, extraClass }: TabBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import TabBodyContentProps from "./TabBodyContentProps.tsx";
2
+ export declare const TabBodyContent: ({ children, tabIndex, extraClass, }: TabBodyContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ interface TabBodyContentProps {
3
+ children: ReactNode;
4
+ tabIndex: any;
5
+ extraClass?: string;
6
+ }
7
+ export default TabBodyContentProps;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface TabBodyProps {
3
+ children: ReactNode;
4
+ extraClass?: string;
5
+ }
6
+ export default TabBodyProps;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import TabContextProps from "./TabContextProps.tsx";
3
+ declare const TabContext: import("react").Context<TabContextProps>;
4
+ export default TabContext;
@@ -0,0 +1,5 @@
1
+ interface TabContextProps {
2
+ currentIndex: any;
3
+ setCurrentIndex: Function;
4
+ }
5
+ export default TabContextProps;
@@ -0,0 +1,2 @@
1
+ import TabNavProps from "./TabNavProps.tsx";
2
+ export declare const TabNav: ({ children, extraClass }: TabNavProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import TabNavItemProps from "./TabNavItemProps.tsx";
2
+ export declare const TabNavItem: (props: TabNavItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ interface TabNavItemProps {
2
+ title: string;
3
+ tabIndex: any;
4
+ onBeforeOpen?: Function;
5
+ onAfterOpened?: Function;
6
+ extraClass?: string;
7
+ }
8
+ export default TabNavItemProps;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface TabNavProps {
3
+ children: ReactNode;
4
+ extraClass?: string;
5
+ }
6
+ export default TabNavProps;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface TabProps {
3
+ children: ReactNode;
4
+ extraClass?: string;
5
+ }
6
+ export default TabProps;
@@ -0,0 +1,3 @@
1
+ import TableProps from "./TableProps";
2
+ declare const Table: (props: TableProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Table;
@@ -0,0 +1,3 @@
1
+ import TableBodyProps from "./TableBodyProps";
2
+ declare const TableBody: (props: TableBodyProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TableBody;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface TableBodyProps {
3
+ children: ReactNode;
4
+ extraClass?: string;
5
+ }
6
+ export default TableBodyProps;
@@ -0,0 +1,3 @@
1
+ import TableCellProps from "./TableCellProps";
2
+ declare const TableCell: (props: TableCellProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TableCell;
@@ -0,0 +1,3 @@
1
+ import TableCellActionProps from "./TableCellActionProps";
2
+ declare const TableCellActions: (props: TableCellActionProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TableCellActions;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from "react";
2
+ interface TableCellActionProps {
3
+ children: ReactNode;
4
+ align?: "left" | "center" | "right";
5
+ extraClass?: string;
6
+ rowspan?: number;
7
+ colspan?: number;
8
+ }
9
+ export default TableCellActionProps;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from "react";
2
+ interface TableCellProps {
3
+ children?: ReactNode;
4
+ align?: "left" | "center" | "right";
5
+ rowspan?: number;
6
+ colspan?: number;
7
+ extraClass?: string;
8
+ }
9
+ export default TableCellProps;
@@ -0,0 +1,3 @@
1
+ import TableCellWithDescProps from "./TableCellWithDescProps";
2
+ declare const TableCellWithDesc: (props: TableCellWithDescProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TableCellWithDesc;
@@ -0,0 +1,8 @@
1
+ interface TableCellWithDescProps {
2
+ heading?: string;
3
+ description?: string;
4
+ extraClass?: string;
5
+ rowspan?: number;
6
+ colspan?: number;
7
+ }
8
+ export default TableCellWithDescProps;
@@ -0,0 +1,3 @@
1
+ import TableCellWithImageProps from "./TableCellWithImageProps";
2
+ declare const TableCellWithImage: (props: TableCellWithImageProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TableCellWithImage;
@@ -0,0 +1,9 @@
1
+ interface TableCellWithImageProps {
2
+ image: string;
3
+ heading: string;
4
+ description?: string;
5
+ extraClass?: string;
6
+ rowspan?: number;
7
+ colspan?: number;
8
+ }
9
+ export default TableCellWithImageProps;
@@ -0,0 +1,2 @@
1
+ declare const TableFooter: () => void;
2
+ export default TableFooter;
@@ -0,0 +1,3 @@
1
+ import TableHeadProps from "./TableHeadProps";
2
+ declare const TableHead: (props: TableHeadProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TableHead;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface TableHeadProps {
3
+ children: ReactNode;
4
+ extraClass?: string;
5
+ }
6
+ export default TableHeadProps;
@@ -0,0 +1,3 @@
1
+ import TableHeaderCellProps from "./TableHeaderCellProps";
2
+ declare const TableHeaderCell: (props: TableHeaderCellProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TableHeaderCell;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from "react";
2
+ interface TableHeaderCellProps {
3
+ children?: ReactNode;
4
+ extraClass?: string;
5
+ rowspan?: number;
6
+ colspan?: number;
7
+ }
8
+ export default TableHeaderCellProps;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface TableProps {
3
+ children: ReactNode;
4
+ extraClass?: string;
5
+ }
6
+ export default TableProps;
@@ -0,0 +1,3 @@
1
+ import TableRowProps from "./TableRowProps";
2
+ declare const TableRow: (props: TableRowProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TableRow;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface TableRowProps {
3
+ children: ReactNode;
4
+ extraClass?: string;
5
+ }
6
+ export default TableRowProps;