@hellobetterdigitalnz/betterui 0.0.2 → 0.0.3-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (415) hide show
  1. package/README.md +23 -23
  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/BadgeProps.d.ts +5 -0
  13. package/dist/Components/DataDisplay/Cards/BannerCard/BannerCard.d.ts +3 -0
  14. package/dist/Components/DataDisplay/Cards/BannerCard/BannerCardInterface.d.ts +13 -0
  15. package/dist/Components/DataDisplay/Cards/PathwayCard/PathwayCard.d.ts +2 -0
  16. package/dist/Components/DataDisplay/Cards/PathwayCard/PathwayCardInterface.d.ts +15 -0
  17. package/dist/Components/DataDisplay/Media/Media.d.ts +3 -0
  18. package/{src/Components/DataDisplay/Media/MediaProps.tsx → dist/Components/DataDisplay/Media/MediaProps.d.ts} +3 -5
  19. package/dist/Components/DataDisplay/Modal/Modal.d.ts +3 -0
  20. package/dist/Components/DataDisplay/Modal/ModalActions.d.ts +2 -0
  21. package/dist/Components/DataDisplay/Modal/ModalActionsLeft.d.ts +2 -0
  22. package/dist/Components/DataDisplay/Modal/ModalActionsRight.d.ts +2 -0
  23. package/dist/Components/DataDisplay/Modal/ModalBody.d.ts +3 -0
  24. package/{src/Components/DataDisplay/Modal/ModalBodyProps.tsx → dist/Components/DataDisplay/Modal/ModalBodyProps.d.ts} +5 -7
  25. package/dist/Components/DataDisplay/Modal/ModalCurtain.d.ts +2 -0
  26. package/dist/Components/DataDisplay/Modal/ModalHeader.d.ts +3 -0
  27. package/dist/Components/DataDisplay/Modal/ModalHeaderProps.d.ts +7 -0
  28. package/{src/Components/DataDisplay/Modal/ModalProps.tsx → dist/Components/DataDisplay/Modal/ModalProps.d.ts} +6 -8
  29. package/dist/Components/DataDisplay/NotificationsBell/NotificationsBell.d.ts +3 -0
  30. package/{src/Components/DataDisplay/NotificationsBell/NotificationsBellProps.tsx → dist/Components/DataDisplay/NotificationsBell/NotificationsBellProps.d.ts} +3 -5
  31. package/dist/Components/DataDisplay/NotificationsPanel/Notification.d.ts +3 -0
  32. package/dist/Components/DataDisplay/NotificationsPanel/NotificationProps.d.ts +10 -0
  33. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsGroup.d.ts +3 -0
  34. package/{src/Components/DataDisplay/NotificationsPanel/NotificationsGroupProps.tsx → dist/Components/DataDisplay/NotificationsPanel/NotificationsGroupProps.d.ts} +6 -8
  35. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsGroups.d.ts +3 -0
  36. package/{src/Components/DataDisplay/NotificationsPanel/NotificationsGroupsProps.tsx → dist/Components/DataDisplay/NotificationsPanel/NotificationsGroupsProps.d.ts} +5 -7
  37. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsHeader.d.ts +3 -0
  38. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsHeaderProps.d.ts +6 -0
  39. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsNone.d.ts +2 -0
  40. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsPanel.d.ts +3 -0
  41. package/dist/Components/DataDisplay/NotificationsPanel/NotificationsPanelProps.d.ts +5 -0
  42. package/dist/Components/DataDisplay/Tab/Tab.d.ts +2 -0
  43. package/dist/Components/DataDisplay/Tab/TabBody.d.ts +2 -0
  44. package/dist/Components/DataDisplay/Tab/TabBodyContent.d.ts +2 -0
  45. package/{src/Components/DataDisplay/Tab/TabBodyContentProps.tsx → dist/Components/DataDisplay/Tab/TabBodyContentProps.d.ts} +7 -9
  46. package/{src/Components/DataDisplay/Tab/TabBodyProps.tsx → dist/Components/DataDisplay/Tab/TabBodyProps.d.ts} +6 -8
  47. package/dist/Components/DataDisplay/Tab/TabContext.d.ts +4 -0
  48. package/{src/Components/DataDisplay/Tab/TabContextProps.tsx → dist/Components/DataDisplay/Tab/TabContextProps.d.ts} +5 -6
  49. package/dist/Components/DataDisplay/Tab/TabNav.d.ts +2 -0
  50. package/dist/Components/DataDisplay/Tab/TabNavItem.d.ts +2 -0
  51. package/dist/Components/DataDisplay/Tab/TabNavItemProps.d.ts +8 -0
  52. package/{src/Components/DataDisplay/Tab/TabNavProps.tsx → dist/Components/DataDisplay/Tab/TabNavProps.d.ts} +6 -8
  53. package/{src/Components/DataDisplay/Tab/TabProps.tsx → dist/Components/DataDisplay/Tab/TabProps.d.ts} +6 -8
  54. package/dist/Components/DataDisplay/Table/Table.d.ts +3 -0
  55. package/dist/Components/DataDisplay/Table/TableBody.d.ts +3 -0
  56. package/{src/Components/DataDisplay/Table/TableBodyProps.tsx → dist/Components/DataDisplay/Table/TableBodyProps.d.ts} +6 -8
  57. package/dist/Components/DataDisplay/Table/TableCell.d.ts +3 -0
  58. package/dist/Components/DataDisplay/Table/TableCellAction.d.ts +3 -0
  59. package/dist/Components/DataDisplay/Table/TableCellActionProps.d.ts +9 -0
  60. package/dist/Components/DataDisplay/Table/TableCellProps.d.ts +9 -0
  61. package/dist/Components/DataDisplay/Table/TableCellWithDesc.d.ts +3 -0
  62. package/dist/Components/DataDisplay/Table/TableCellWithDescProps.d.ts +8 -0
  63. package/dist/Components/DataDisplay/Table/TableCellWithImage.d.ts +3 -0
  64. package/dist/Components/DataDisplay/Table/TableCellWithImageProps.d.ts +9 -0
  65. package/dist/Components/DataDisplay/Table/TableFooter.d.ts +2 -0
  66. package/dist/Components/DataDisplay/Table/TableHead.d.ts +3 -0
  67. package/{src/Components/DataDisplay/Table/TableHeadProps.tsx → dist/Components/DataDisplay/Table/TableHeadProps.d.ts} +6 -8
  68. package/dist/Components/DataDisplay/Table/TableHeaderCell.d.ts +3 -0
  69. package/{src/Components/DataDisplay/Table/TableHeaderCellProps.tsx → dist/Components/DataDisplay/Table/TableHeaderCellProps.d.ts} +8 -10
  70. package/{src/Components/DataDisplay/Table/TableProps.tsx → dist/Components/DataDisplay/Table/TableProps.d.ts} +6 -8
  71. package/dist/Components/DataDisplay/Table/TableRow.d.ts +3 -0
  72. package/{src/Components/DataDisplay/Table/TableRowProps.tsx → dist/Components/DataDisplay/Table/TableRowProps.d.ts} +6 -8
  73. package/dist/Components/DataDisplay/index.d.ts +12 -0
  74. package/dist/Components/Form/Button/Button.d.ts +6 -0
  75. package/dist/Components/Form/Button/ButtonProps.d.ts +15 -0
  76. package/dist/Components/Form/Checkbox/Checkbox.d.ts +3 -0
  77. package/dist/Components/Form/Checkbox/CheckboxProps.d.ts +20 -0
  78. package/dist/Components/Form/CheckboxSelect/CheckboxSelect.d.ts +2 -0
  79. package/dist/Components/Form/CheckboxSelect/CheckboxSelectItem.d.ts +2 -0
  80. package/dist/Components/Form/CheckboxSet/CheckboxSet.d.ts +3 -0
  81. package/dist/Components/Form/CheckboxSet/CheckboxSetItem.d.ts +3 -0
  82. package/{src/Components/Form/CheckboxSet/CheckboxSetProps.tsx → dist/Components/Form/CheckboxSet/CheckboxSetProps.d.ts} +7 -9
  83. package/dist/Components/Form/CurrencyField/CurrencyField.d.ts +3 -0
  84. package/{src/Components/Form/CurrencyField/CurrencyFieldProps.tsx → dist/Components/Form/CurrencyField/CurrencyFieldProps.d.ts} +6 -8
  85. package/dist/Components/Form/DateField/DateField.d.ts +3 -0
  86. package/dist/Components/Form/DropdownBadge/DropdownBadge.d.ts +3 -0
  87. package/dist/Components/Form/DropdownBadge/DropdownBadgeItem.d.ts +3 -0
  88. package/dist/Components/Form/DropdownBadge/DropdownBadgeItemProps.d.ts +8 -0
  89. package/dist/Components/Form/DropdownBadge/DropdownBadgeProps.d.ts +27 -0
  90. package/dist/Components/Form/DropdownBadge/DropdownBadgeSelector.d.ts +3 -0
  91. package/{src/Components/Form/DropdownBadge/DropdownBadgeSelectorProps.tsx → dist/Components/Form/DropdownBadge/DropdownBadgeSelectorProps.d.ts} +5 -7
  92. package/dist/Components/Form/DropdownField/DropdownField.d.ts +3 -0
  93. package/dist/Components/Form/DropdownField/DropdownFieldItem.d.ts +3 -0
  94. package/dist/Components/Form/DropdownField/DropdownFieldItemProps.d.ts +7 -0
  95. package/dist/Components/Form/DropdownField/DropdownFieldProps.d.ts +29 -0
  96. package/dist/Components/Form/DropdownField/DropdownFieldSelector.d.ts +3 -0
  97. package/{src/Components/Form/DropdownField/DropdownFieldSelectorProps.tsx → dist/Components/Form/DropdownField/DropdownFieldSelectorProps.d.ts} +5 -7
  98. package/dist/Components/Form/EmailField/EmailField.d.ts +3 -0
  99. package/dist/Components/Form/EmailField/EmailField.stories.d.ts +13 -0
  100. package/dist/Components/Form/ErrorMessage/ErrorMessage.d.ts +2 -0
  101. package/dist/Components/Form/FormFieldHolder/FormFieldHolder.d.ts +3 -0
  102. package/dist/Components/Form/FormFieldHolder/FormFieldHolderProps.d.ts +10 -0
  103. package/dist/Components/Form/IconButton/IconButton.d.ts +6 -0
  104. package/dist/Components/Form/IconButton/IconButtonProps.d.ts +13 -0
  105. package/dist/Components/Form/InputProps.d.ts +23 -0
  106. package/dist/Components/Form/MultiSelectField/MultiSelectField.d.ts +2 -0
  107. package/dist/Components/Form/MultiSelectField/MultiSelectFieldItem.d.ts +2 -0
  108. package/dist/Components/Form/MultiSelectField/MultiSelectFieldTag.d.ts +2 -0
  109. package/dist/Components/Form/PasswordField/PasswordField.d.ts +3 -0
  110. package/dist/Components/Form/RadioButtons/RadioButton.d.ts +3 -0
  111. package/dist/Components/Form/RadioButtons/RadioButtonProps.d.ts +20 -0
  112. package/dist/Components/Form/RadioButtons/RadioButtons.d.ts +3 -0
  113. package/{src/Components/Form/RadioButtons/RadioButtonsProps.tsx → dist/Components/Form/RadioButtons/RadioButtonsProps.d.ts} +8 -10
  114. package/dist/Components/Form/TextField/TextField.d.ts +3 -0
  115. package/dist/Components/Form/TextField/TextField.stories.d.ts +13 -0
  116. package/{src/Components/Form/TextField/TextFieldProps.tsx → dist/Components/Form/TextField/TextFieldProps.d.ts} +6 -8
  117. package/dist/Components/Form/Textarea/Textarea.d.ts +3 -0
  118. package/dist/Components/Form/Textarea/Textarea.stories.d.ts +14 -0
  119. package/dist/Components/Form/Textarea/TextareaProps.d.ts +25 -0
  120. package/dist/Components/Form/TimeField/TimeField.d.ts +3 -0
  121. package/dist/Components/Form/ToggleSwitch/ToggleSwitch.d.ts +3 -0
  122. package/dist/Components/Form/ToggleSwitch/ToggleSwitchProps.d.ts +20 -0
  123. package/dist/Components/Form/index.d.ts +17 -0
  124. package/dist/Components/Icons/Arrows/CaretDown/CaretDown.d.ts +3 -0
  125. package/dist/Components/Icons/Arrows/CaretLeft/CaretLeft.d.ts +3 -0
  126. package/dist/Components/Icons/Arrows/CaretRight/CaretRight.d.ts +3 -0
  127. package/dist/Components/Icons/Arrows/CaretUp/CaretUp.d.ts +3 -0
  128. package/dist/Components/Icons/Brand/WindowLogo/WindowLogo.d.ts +3 -0
  129. package/dist/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.d.ts +3 -0
  130. package/dist/Components/Icons/Communication/AddressBook/AddressBook.d.ts +3 -0
  131. package/dist/Components/Icons/Communication/AddressBook/AddressBook.stories.d.ts +21 -0
  132. package/dist/Components/Icons/Communication/Asterick/Asterisk.d.ts +3 -0
  133. package/dist/Components/Icons/Communication/Asterick/Asterisk.stories.d.ts +21 -0
  134. package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.d.ts +3 -0
  135. package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.d.ts +21 -0
  136. package/dist/Components/Icons/Communication/At/At.d.ts +3 -0
  137. package/dist/Components/Icons/Communication/At/At.stories.d.ts +21 -0
  138. package/dist/Components/Icons/Communication/Broadcast/Broadcast.d.ts +3 -0
  139. package/dist/Components/Icons/Communication/Broadcast/Broadcast.stories.d.ts +21 -0
  140. package/dist/Components/Icons/Communication/Chat/Chat.d.ts +3 -0
  141. package/dist/Components/Icons/Communication/Chat/Chat.stories.d.ts +21 -0
  142. package/dist/Components/Icons/Design/Eye/Eye.d.ts +3 -0
  143. package/dist/Components/Icons/Design/EyeSlash/EyeSlash.d.ts +3 -0
  144. package/dist/Components/Icons/IconProps.d.ts +4 -0
  145. package/dist/Components/Icons/MathAndFinance/XIcon/XIcon.d.ts +3 -0
  146. package/dist/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.d.ts +3 -0
  147. package/dist/Components/Icons/SystemAndDevice/Bell/Bell.d.ts +3 -0
  148. package/dist/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.d.ts +3 -0
  149. package/dist/Components/Icons/Time/CalendarBank/CalendarBank.d.ts +3 -0
  150. package/dist/Components/Icons/Time/Clock/Clock.d.ts +3 -0
  151. package/dist/Components/Layout/CalloutPopup/CalloutPopup.d.ts +2 -0
  152. package/dist/Components/Layout/Header/Header.d.ts +3 -0
  153. package/dist/Components/Layout/Header/HeaderLeft.d.ts +3 -0
  154. package/dist/Components/Layout/Header/HeaderLeftProps.d.ts +6 -0
  155. package/dist/Components/Layout/Header/HeaderProps.d.ts +6 -0
  156. package/dist/Components/Layout/Header/HeaderRight.d.ts +3 -0
  157. package/dist/Components/Layout/Header/HeaderRightProps.d.ts +8 -0
  158. package/dist/Components/Layout/Pagination/Pagination.d.ts +2 -0
  159. package/dist/Components/Layout/Pagination/PaginationFirst.d.ts +2 -0
  160. package/dist/Components/Layout/Pagination/PaginationLast.d.ts +2 -0
  161. package/dist/Components/Layout/Pagination/PaginationNext.d.ts +2 -0
  162. package/dist/Components/Layout/Pagination/PaginationNumber.d.ts +2 -0
  163. package/dist/Components/Layout/Pagination/PaginationPrevious.d.ts +2 -0
  164. package/dist/Components/Layout/ProfileAvatar/ProfileAvatar.d.ts +3 -0
  165. package/dist/Components/Layout/ProfileAvatar/ProfileAvatarProps.d.ts +8 -0
  166. package/dist/Components/Layout/ProfileDropdown/ProfileDropdown.d.ts +3 -0
  167. package/{src/Components/Layout/ProfileDropdown/ProfileDropdownProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileDropdownProps.d.ts} +6 -8
  168. package/dist/Components/Layout/ProfileDropdown/ProfileHeader.d.ts +3 -0
  169. package/dist/Components/Layout/ProfileDropdown/ProfileHeaderProps.d.ts +7 -0
  170. package/dist/Components/Layout/ProfileDropdown/ProfileLink.d.ts +3 -0
  171. package/{src/Components/Layout/ProfileDropdown/ProfileLinkProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileLinkProps.d.ts} +5 -7
  172. package/dist/Components/Layout/ProfileDropdown/ProfileLinks.d.ts +3 -0
  173. package/{src/Components/Layout/ProfileDropdown/ProfileLinksProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileLinksProps.d.ts} +5 -7
  174. package/dist/Components/Layout/ProfileDropdown/ProfileNavigationItem.d.ts +3 -0
  175. package/{src/Components/Layout/ProfileDropdown/ProfileNavigationItemProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileNavigationItemProps.d.ts} +8 -10
  176. package/dist/Components/Layout/ProfileDropdown/ProfileSwitchPanel.d.ts +3 -0
  177. package/{src/Components/Layout/ProfileDropdown/ProfileSwitchPanelProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileSwitchPanelProps.d.ts} +8 -10
  178. package/dist/Components/Layout/ProfileDropdown/ProfileSwitchUser.d.ts +3 -0
  179. package/{src/Components/Layout/ProfileDropdown/ProfileSwitchUserProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileSwitchUserProps.d.ts} +6 -7
  180. package/dist/Components/Layout/Sidebar/Sidebar.d.ts +3 -0
  181. package/dist/Components/Layout/Sidebar/SidebarChevron.d.ts +3 -0
  182. package/dist/Components/Layout/Sidebar/SidebarChevronProps.d.ts +5 -0
  183. package/dist/Components/Layout/Sidebar/SidebarNavigation.d.ts +3 -0
  184. package/dist/Components/Layout/Sidebar/SidebarNavigationItem.d.ts +3 -0
  185. package/dist/Components/Layout/Sidebar/SidebarNavigationItemProps.d.ts +10 -0
  186. package/dist/Components/Layout/Sidebar/SidebarNavigationProps.d.ts +7 -0
  187. package/dist/Components/Layout/Sidebar/SidebarProps.d.ts +6 -0
  188. package/dist/Components/Layout/Sidebar/SidebarSubNavigation.d.ts +3 -0
  189. package/dist/Components/Layout/Sidebar/SidebarSubNavigationItem.d.ts +3 -0
  190. package/dist/Components/Layout/Sidebar/SidebarSubNavigationItemProps.d.ts +10 -0
  191. package/dist/Components/Layout/Sidebar/SidebarSubNavigationProps.d.ts +8 -0
  192. package/dist/image/logo-small.svg +4 -0
  193. package/dist/image/logo.svg +26 -0
  194. package/dist/image/table-image.png +0 -0
  195. package/dist/index.cjs.js +6 -0
  196. package/dist/index.cjs.js.map +1 -0
  197. package/dist/index.d.ts +2 -0
  198. package/dist/index.es.js +1232 -0
  199. package/dist/index.es.js.map +1 -0
  200. package/dist/main.d.ts +0 -0
  201. package/dist/style.css +1 -0
  202. package/dist/vite.svg +1 -0
  203. package/package.json +75 -48
  204. package/src/App.tsx +0 -30
  205. package/src/Components/DataDisplay/Accordion/Accordion.stories.tsx +0 -57
  206. package/src/Components/DataDisplay/Accordion/Accordion.tsx +0 -14
  207. package/src/Components/DataDisplay/Accordion/AccordionContext.tsx +0 -11
  208. package/src/Components/DataDisplay/Accordion/AccordionContextInterface.tsx +0 -8
  209. package/src/Components/DataDisplay/Accordion/AccordionItem.tsx +0 -62
  210. package/src/Components/DataDisplay/Accordion/AccordionItemProps.tsx +0 -12
  211. package/src/Components/DataDisplay/Accordion/AccordionProps.tsx +0 -8
  212. package/src/Components/DataDisplay/Accordion/AccordionProvider.tsx +0 -65
  213. package/src/Components/DataDisplay/Accordion/AccordionProviderInterface.tsx +0 -8
  214. package/src/Components/DataDisplay/Accordion/accordion.module.scss +0 -56
  215. package/src/Components/DataDisplay/Badge/Badge.stories.tsx +0 -44
  216. package/src/Components/DataDisplay/Badge/Badge.tsx +0 -32
  217. package/src/Components/DataDisplay/Badge/BadgeProps.tsx +0 -6
  218. package/src/Components/DataDisplay/Badge/badge.module.scss +0 -42
  219. package/src/Components/DataDisplay/Cards/BannerCard/BannerCard.stories.tsx +0 -26
  220. package/src/Components/DataDisplay/Cards/BannerCard/BannerCard.tsx +0 -47
  221. package/src/Components/DataDisplay/Cards/BannerCard/BannerCardInterface.tsx +0 -15
  222. package/src/Components/DataDisplay/Cards/BannerCard/banner-card.scss +0 -54
  223. package/src/Components/DataDisplay/Cards/PathwayCard/PathwayCard.stories.tsx +0 -31
  224. package/src/Components/DataDisplay/Cards/PathwayCard/PathwayCard.tsx +0 -53
  225. package/src/Components/DataDisplay/Cards/PathwayCard/PathwayCardInterface.tsx +0 -17
  226. package/src/Components/DataDisplay/Cards/PathwayCard/pathway-card-stories.scss +0 -3
  227. package/src/Components/DataDisplay/Cards/PathwayCard/pathway-card.scss +0 -62
  228. package/src/Components/DataDisplay/Media/Media.stories.tsx +0 -30
  229. package/src/Components/DataDisplay/Media/Media.tsx +0 -47
  230. package/src/Components/DataDisplay/Media/media.module.scss +0 -8
  231. package/src/Components/DataDisplay/Modal/Modal.stories.tsx +0 -27
  232. package/src/Components/DataDisplay/Modal/Modal.tsx +0 -16
  233. package/src/Components/DataDisplay/Modal/ModalActions.tsx +0 -5
  234. package/src/Components/DataDisplay/Modal/ModalActionsLeft.tsx +0 -5
  235. package/src/Components/DataDisplay/Modal/ModalActionsRight.tsx +0 -5
  236. package/src/Components/DataDisplay/Modal/ModalBody.tsx +0 -15
  237. package/src/Components/DataDisplay/Modal/ModalCurtain.tsx +0 -5
  238. package/src/Components/DataDisplay/Modal/ModalHeader.tsx +0 -32
  239. package/src/Components/DataDisplay/Modal/ModalHeaderProps.tsx +0 -8
  240. package/src/Components/DataDisplay/Modal/modal.module.scss +0 -58
  241. package/src/Components/DataDisplay/NotificationsBell/NotificationBell.stories.tsx +0 -27
  242. package/src/Components/DataDisplay/NotificationsBell/NotificationsBell.tsx +0 -51
  243. package/src/Components/DataDisplay/NotificationsBell/notificationBell.module.scss +0 -48
  244. package/src/Components/DataDisplay/NotificationsPanel/Notification.stories.tsx +0 -128
  245. package/src/Components/DataDisplay/NotificationsPanel/Notification.tsx +0 -59
  246. package/src/Components/DataDisplay/NotificationsPanel/NotificationProps.tsx +0 -11
  247. package/src/Components/DataDisplay/NotificationsPanel/NotificationsGroup.tsx +0 -17
  248. package/src/Components/DataDisplay/NotificationsPanel/NotificationsGroups.tsx +0 -42
  249. package/src/Components/DataDisplay/NotificationsPanel/NotificationsHeader.tsx +0 -27
  250. package/src/Components/DataDisplay/NotificationsPanel/NotificationsHeaderProps.tsx +0 -7
  251. package/src/Components/DataDisplay/NotificationsPanel/NotificationsNone.tsx +0 -11
  252. package/src/Components/DataDisplay/NotificationsPanel/NotificationsPanel.tsx +0 -8
  253. package/src/Components/DataDisplay/NotificationsPanel/NotificationsPanelProps.tsx +0 -7
  254. package/src/Components/DataDisplay/NotificationsPanel/notificationPanel.module.scss +0 -196
  255. package/src/Components/DataDisplay/Tab/Tab.stories.tsx +0 -72
  256. package/src/Components/DataDisplay/Tab/Tab.tsx +0 -20
  257. package/src/Components/DataDisplay/Tab/TabBody.tsx +0 -6
  258. package/src/Components/DataDisplay/Tab/TabBodyContent.tsx +0 -15
  259. package/src/Components/DataDisplay/Tab/TabContext.tsx +0 -9
  260. package/src/Components/DataDisplay/Tab/TabNav.tsx +0 -6
  261. package/src/Components/DataDisplay/Tab/TabNavItem.tsx +0 -49
  262. package/src/Components/DataDisplay/Tab/TabNavItemProps.tsx +0 -9
  263. package/src/Components/DataDisplay/Tab/tab.module.scss +0 -35
  264. package/src/Components/DataDisplay/Tab/tab.stories.scss +0 -3
  265. package/src/Components/DataDisplay/Table/Table.stories.tsx +0 -64
  266. package/src/Components/DataDisplay/Table/Table.tsx +0 -10
  267. package/src/Components/DataDisplay/Table/TableBody.tsx +0 -13
  268. package/src/Components/DataDisplay/Table/TableCell.tsx +0 -30
  269. package/src/Components/DataDisplay/Table/TableCellAction.tsx +0 -27
  270. package/src/Components/DataDisplay/Table/TableCellActionProps.tsx +0 -11
  271. package/src/Components/DataDisplay/Table/TableCellProps.tsx +0 -11
  272. package/src/Components/DataDisplay/Table/TableCellWithDesc.tsx +0 -21
  273. package/src/Components/DataDisplay/Table/TableCellWithDescProps.tsx +0 -9
  274. package/src/Components/DataDisplay/Table/TableCellWithImage.tsx +0 -39
  275. package/src/Components/DataDisplay/Table/TableCellWithImageProps.tsx +0 -10
  276. package/src/Components/DataDisplay/Table/TableFooter.tsx +0 -5
  277. package/src/Components/DataDisplay/Table/TableHead.tsx +0 -11
  278. package/src/Components/DataDisplay/Table/TableHeaderCell.tsx +0 -17
  279. package/src/Components/DataDisplay/Table/TableRow.tsx +0 -9
  280. package/src/Components/DataDisplay/Table/table.module.scss +0 -103
  281. package/src/Components/Form/Button/Button.stories.tsx +0 -66
  282. package/src/Components/Form/Button/Button.tsx +0 -64
  283. package/src/Components/Form/Button/ButtonProps.tsx +0 -18
  284. package/src/Components/Form/Button/button.module.scss +0 -142
  285. package/src/Components/Form/Checkbox/Checkbox.stories.tsx +0 -49
  286. package/src/Components/Form/Checkbox/Checkbox.tsx +0 -85
  287. package/src/Components/Form/Checkbox/CheckboxProps.tsx +0 -22
  288. package/src/Components/Form/Checkbox/checkbox.module.scss +0 -63
  289. package/src/Components/Form/CheckboxSelect/CheckboxSelect.tsx +0 -5
  290. package/src/Components/Form/CheckboxSelect/CheckboxSelectItem.tsx +0 -5
  291. package/src/Components/Form/CheckboxSet/CheckboxSet.stories.tsx +0 -93
  292. package/src/Components/Form/CheckboxSet/CheckboxSet.tsx +0 -14
  293. package/src/Components/Form/CheckboxSet/CheckboxSetItem.tsx +0 -88
  294. package/src/Components/Form/CheckboxSet/checkboxSet.module.scss +0 -13
  295. package/src/Components/Form/CurrencyField/CurrenctField.stories.tsx +0 -22
  296. package/src/Components/Form/CurrencyField/CurrencyField.tsx +0 -59
  297. package/src/Components/Form/DateField/DateField.stories.tsx +0 -22
  298. package/src/Components/Form/DateField/DateField.tsx +0 -58
  299. package/src/Components/Form/DropdownBadge/DropdownBadge.stories.tsx +0 -49
  300. package/src/Components/Form/DropdownBadge/DropdownBadge.tsx +0 -160
  301. package/src/Components/Form/DropdownBadge/DropdownBadgeItem.tsx +0 -40
  302. package/src/Components/Form/DropdownBadge/DropdownBadgeItemProps.tsx +0 -10
  303. package/src/Components/Form/DropdownBadge/DropdownBadgeProps.tsx +0 -31
  304. package/src/Components/Form/DropdownBadge/DropdownBadgeSelector.tsx +0 -11
  305. package/src/Components/Form/DropdownBadge/dropdownBadge.module.scss +0 -105
  306. package/src/Components/Form/DropdownField/DropdownField.stories.tsx +0 -50
  307. package/src/Components/Form/DropdownField/DropdownField.tsx +0 -118
  308. package/src/Components/Form/DropdownField/DropdownFieldItem.tsx +0 -26
  309. package/src/Components/Form/DropdownField/DropdownFieldItemProps.tsx +0 -9
  310. package/src/Components/Form/DropdownField/DropdownFieldProps.tsx +0 -33
  311. package/src/Components/Form/DropdownField/DropdownFieldSelector.tsx +0 -15
  312. package/src/Components/Form/DropdownField/dropdown.module.scss +0 -79
  313. package/src/Components/Form/EmailField/EmailField.stories.ts +0 -23
  314. package/src/Components/Form/EmailField/EmailField.tsx +0 -51
  315. package/src/Components/Form/ErrorMessage/ErrorMessage.tsx +0 -5
  316. package/src/Components/Form/FormFieldHolder/FormFieldHolder.stories.tsx +0 -30
  317. package/src/Components/Form/FormFieldHolder/FormFieldHolder.tsx +0 -40
  318. package/src/Components/Form/FormFieldHolder/FormFieldHolderProps.tsx +0 -12
  319. package/src/Components/Form/FormFieldHolder/formHolder.module.scss +0 -56
  320. package/src/Components/Form/IconButton/IconButton.stories.tsx +0 -45
  321. package/src/Components/Form/IconButton/IconButton.tsx +0 -58
  322. package/src/Components/Form/IconButton/IconButtonProps.tsx +0 -15
  323. package/src/Components/Form/IconButton/iconButton.module.scss +0 -111
  324. package/src/Components/Form/InputProps.tsx +0 -25
  325. package/src/Components/Form/MultiSelectField/MultiSelectField.tsx +0 -5
  326. package/src/Components/Form/MultiSelectField/MultiSelectFieldItem.tsx +0 -5
  327. package/src/Components/Form/MultiSelectField/MultiSelectFieldTag.tsx +0 -5
  328. package/src/Components/Form/PasswordField/PasswordField.stories.tsx +0 -22
  329. package/src/Components/Form/PasswordField/PasswordField.tsx +0 -70
  330. package/src/Components/Form/RadioButtons/RadioButton.tsx +0 -70
  331. package/src/Components/Form/RadioButtons/RadioButtonProps.tsx +0 -22
  332. package/src/Components/Form/RadioButtons/RadioButtons.stories.tsx +0 -64
  333. package/src/Components/Form/RadioButtons/RadioButtons.tsx +0 -18
  334. package/src/Components/Form/RadioButtons/radioButton.stories.scss +0 -3
  335. package/src/Components/Form/RadioButtons/radiobutton.module.scss +0 -63
  336. package/src/Components/Form/TextField/TextField.stories.ts +0 -22
  337. package/src/Components/Form/TextField/TextField.tsx +0 -56
  338. package/src/Components/Form/Textarea/Textarea.stories.ts +0 -31
  339. package/src/Components/Form/Textarea/Textarea.tsx +0 -71
  340. package/src/Components/Form/Textarea/TextareaProps.tsx +0 -27
  341. package/src/Components/Form/Textarea/textarea.module.scss +0 -49
  342. package/src/Components/Form/TimeField/TimeField.stories.tsx +0 -22
  343. package/src/Components/Form/TimeField/TimeField.tsx +0 -58
  344. package/src/Components/Form/ToggleSwitch/ToggleSwitch.stories.tsx +0 -49
  345. package/src/Components/Form/ToggleSwitch/ToggleSwitch.tsx +0 -87
  346. package/src/Components/Form/ToggleSwitch/ToggleSwitchProps.tsx +0 -22
  347. package/src/Components/Form/ToggleSwitch/toggleSwitch.module.scss +0 -82
  348. package/src/Components/Form/inputs.module.scss +0 -129
  349. package/src/Components/Icons/Arrows/CaretDown/CaretDown.tsx +0 -49
  350. package/src/Components/Icons/Arrows/CaretLeft/CaretLeft.tsx +0 -102
  351. package/src/Components/Icons/Arrows/CaretRight/CaretRight.tsx +0 -102
  352. package/src/Components/Icons/Arrows/CaretUp/CaretUp.tsx +0 -49
  353. package/src/Components/Icons/Brand/WindowLogo/WindowLogo.tsx +0 -105
  354. package/src/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.tsx +0 -105
  355. package/src/Components/Icons/Communication/AddressBook/AddressBook.stories.ts +0 -28
  356. package/src/Components/Icons/Communication/AddressBook/AddressBook.tsx +0 -50
  357. package/src/Components/Icons/Communication/Asterick/Asterisk.stories.ts +0 -28
  358. package/src/Components/Icons/Communication/Asterick/Asterisk.tsx +0 -50
  359. package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.ts +0 -28
  360. package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.tsx +0 -49
  361. package/src/Components/Icons/Communication/At/At.stories.ts +0 -28
  362. package/src/Components/Icons/Communication/At/At.tsx +0 -49
  363. package/src/Components/Icons/Communication/Broadcast/Broadcast.stories.ts +0 -27
  364. package/src/Components/Icons/Communication/Broadcast/Broadcast.tsx +0 -49
  365. package/src/Components/Icons/Communication/Chat/Chat.stories.ts +0 -28
  366. package/src/Components/Icons/Communication/Chat/Chat.tsx +0 -49
  367. package/src/Components/Icons/Design/Eye/Eye.tsx +0 -105
  368. package/src/Components/Icons/Design/EyeSlash/EyeSlash.tsx +0 -105
  369. package/src/Components/Icons/IconProps.tsx +0 -5
  370. package/src/Components/Icons/MathAndFinance/XIcon/XIcon.tsx +0 -107
  371. package/src/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.tsx +0 -105
  372. package/src/Components/Icons/SystemAndDevice/Bell/Bell.tsx +0 -49
  373. package/src/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.tsx +0 -105
  374. package/src/Components/Icons/Time/CalendarBank/CalendarBank.tsx +0 -105
  375. package/src/Components/Icons/Time/Clock/Clock.tsx +0 -105
  376. package/src/Components/Layout/CalloutPopup/CalloutPopup.tsx +0 -5
  377. package/src/Components/Layout/Header/Header.tsx +0 -5
  378. package/src/Components/Layout/Header/HeaderLeft.tsx +0 -5
  379. package/src/Components/Layout/Header/HeaderRight.tsx +0 -5
  380. package/src/Components/Layout/Pagination/Pagination.tsx +0 -5
  381. package/src/Components/Layout/Pagination/PaginationFirst.tsx +0 -5
  382. package/src/Components/Layout/Pagination/PaginationLast.tsx +0 -5
  383. package/src/Components/Layout/Pagination/PaginationNext.tsx +0 -5
  384. package/src/Components/Layout/Pagination/PaginationNumber.tsx +0 -5
  385. package/src/Components/Layout/Pagination/PaginationPrevious.tsx +0 -5
  386. package/src/Components/Layout/ProfileAvatar/ProfileAvatar.stories.tsx +0 -22
  387. package/src/Components/Layout/ProfileAvatar/ProfileAvatar.tsx +0 -31
  388. package/src/Components/Layout/ProfileAvatar/ProfileAvatarProps.tsx +0 -10
  389. package/src/Components/Layout/ProfileAvatar/profileAvatar.module.scss +0 -35
  390. package/src/Components/Layout/ProfileDropdown/ProfileDropdown.stories.tsx +0 -67
  391. package/src/Components/Layout/ProfileDropdown/ProfileDropdown.tsx +0 -12
  392. package/src/Components/Layout/ProfileDropdown/ProfileHeader.tsx +0 -24
  393. package/src/Components/Layout/ProfileDropdown/ProfileHeaderProps.tsx +0 -8
  394. package/src/Components/Layout/ProfileDropdown/ProfileLink.tsx +0 -10
  395. package/src/Components/Layout/ProfileDropdown/ProfileLinks.tsx +0 -14
  396. package/src/Components/Layout/ProfileDropdown/ProfileNavigationItem.tsx +0 -29
  397. package/src/Components/Layout/ProfileDropdown/ProfileSwitchPanel.tsx +0 -79
  398. package/src/Components/Layout/ProfileDropdown/ProfileSwitchUser.tsx +0 -22
  399. package/src/Components/Layout/ProfileDropdown/profileDropdown.module.scss +0 -207
  400. package/src/Components/Layout/Sidebar/Sidebar.tsx +0 -5
  401. package/src/Components/Layout/Sidebar/SidebarChevron.tsx +0 -5
  402. package/src/Components/Layout/Sidebar/SidebarNavigation.tsx +0 -5
  403. package/src/Components/Layout/Sidebar/SidebarNavigationItem.tsx +0 -5
  404. package/src/Components/Layout/Sidebar/SidebarSubNavigation.tsx +0 -5
  405. package/src/Notification/Notification.tsx +0 -83
  406. package/src/Notification/NotificationInterface.tsx +0 -9
  407. package/src/Notification/NotificationList.tsx +0 -54
  408. package/src/Notification/NotificationListHolder.tsx +0 -14
  409. package/src/Notification/NotificationListHolderInterface.tsx +0 -8
  410. package/src/Notification/NotificationListInterface.tsx +0 -11
  411. package/src/Notification/notification.scss +0 -225
  412. package/src/global.scss +0 -224
  413. package/src/main.tsx +0 -10
  414. package/src/variables.scss +0 -2
  415. package/src/vite-env.d.ts +0 -1
@@ -1,30 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
-
3
- import Media from "./Media";
4
-
5
- // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
6
- const meta = {
7
- title: "Data Display / Media",
8
- component: Media,
9
- parameters: {
10
- layout: ["top", "centered"],
11
- },
12
- tags: ["autodocs"],
13
- } satisfies Meta<typeof Media>;
14
-
15
- export default meta;
16
- type Story = StoryObj<typeof Media>;
17
-
18
- // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
19
- export const MediaImage: Story = {
20
- args: {
21
- type: "image",
22
- imageSrc: "https://www.w3schools.com/html/pic_trulli.jpg",
23
- },
24
- };
25
-
26
- export const MediaVideo: Story = {
27
- args: {
28
- type: "video",
29
- },
30
- };
@@ -1,47 +0,0 @@
1
- import MediaProps from "./MediaProps.tsx";
2
- import styles from "./media.module.scss";
3
-
4
- const Media = ({ type, videoSrc, imageSrc }: MediaProps) => {
5
- const isImageString = typeof imageSrc === "string";
6
-
7
- return (
8
- <>
9
- {type === "image" && (
10
- <>
11
- {isImageString ? (
12
- <img
13
- src={imageSrc}
14
- alt={"media image"}
15
- className={styles.mediaImage}
16
- />
17
- ) : (
18
- <div className={styles.mediaImage}>{imageSrc}</div>
19
- )}
20
- </>
21
- )}
22
- {type === "video" && (
23
- <div className="video-container">
24
- <div className="custom-play-button">
25
- <svg
26
- xmlns="http://www.w3.org/2000/svg"
27
- width="64"
28
- height="64"
29
- viewBox="0 0 64 64"
30
- >
31
- <path
32
- fill="#fff"
33
- d="M32 2C16.536 2 4 14.536 4 30s12.536 28 28 28 28-12.536 28-28S47.464 2 32 2zm13.898 32.111L20 50V14l25.898 15.889z"
34
- />
35
- </svg>
36
- </div>
37
- <video controls className="custom-video">
38
- <source src={videoSrc} type="video/mp4" />
39
- Your browser does not support the video tag.
40
- </video>
41
- </div>
42
- )}
43
- </>
44
- );
45
- };
46
-
47
- export default Media;
@@ -1,8 +0,0 @@
1
- .mediaImage {
2
- position: relative;
3
- overflow: hidden;
4
- width: 100%;
5
- height: 100%;
6
- object-fit: cover;
7
- object-position: center;
8
- }
@@ -1,27 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import Modal from "./Modal.tsx";
3
- import ModalHeader from "./ModalHeader.tsx";
4
-
5
- const meta: Meta = {
6
- title: "Data Display / Modal",
7
- component: Modal,
8
- tags: ["autodocs"],
9
- };
10
-
11
- export default meta;
12
-
13
- type Story = StoryObj<typeof meta>;
14
-
15
- const ModalTemplate: Story = {
16
- render: ({ items, ...args }) => {
17
- return (
18
- <Modal {...args}>
19
- <ModalHeader title="Modal Header" canClose={true} canGoBack={true} />
20
- </Modal>
21
- );
22
- },
23
- };
24
-
25
- export const Example = {
26
- ...ModalTemplate,
27
- };
@@ -1,16 +0,0 @@
1
- import ModalProps from "./ModalProps";
2
- import styles from "./modal.module.scss";
3
-
4
- const Modal = (props: ModalProps) => {
5
- const { children, extraClass } = props;
6
-
7
- return (
8
- <div className={`${styles.holder} ${extraClass} modalHolder`}>
9
- <div className={`${styles.modal} modal`}>
10
- <div className={`${styles.wrapper} modalWrapper`}>{children}</div>
11
- </div>
12
- </div>
13
- );
14
- };
15
-
16
- export default Modal;
@@ -1,5 +0,0 @@
1
- const ModalActions = () => {
2
-
3
- }
4
-
5
- export default ModalActions;
@@ -1,5 +0,0 @@
1
- const ModalActionsLeft = () => {
2
-
3
- }
4
-
5
- export default ModalActionsLeft;
@@ -1,5 +0,0 @@
1
- const ModalActionsRight = () => {
2
-
3
- }
4
-
5
- export default ModalActionsRight;
@@ -1,15 +0,0 @@
1
- import ModalBodyProps from "./ModalBodyProps";
2
- import styles from "./modal.module.scss";
3
-
4
- const ModalBody = (props: ModalBodyProps) => {
5
- const { children } = props;
6
-
7
- return (
8
- <div className={`${styles.ModalBody}`}>
9
- <div className={styles.modalBodyWrapper}>{children}</div>
10
- </div>
11
- );
12
- 0;
13
- };
14
-
15
- export default ModalBody;
@@ -1,5 +0,0 @@
1
- const ModalCurtain = () => {
2
-
3
- }
4
-
5
- export default ModalCurtain;
@@ -1,32 +0,0 @@
1
- import CaretLeft from "../../Icons/Arrows/CaretLeft/CaretLeft";
2
- import XIcon from "../../Icons/MathAndFinance/XIcon/XIcon";
3
- import ModalHeaderProps from "./ModalHeaderProps";
4
- import styles from "./modal.module.scss";
5
-
6
- const ModalHeader = (props: ModalHeaderProps) => {
7
- const { canGoBack, canClose, title, extraClass } = props;
8
-
9
- return (
10
- <div className={`${styles.modalHeader} ${extraClass}`}>
11
- <div className={styles.modalHeaderWrapper}>
12
- {!!canGoBack && (
13
- <div className={`${styles.caretLeft} ${styles.icon}`}>
14
- <CaretLeft type="bold" />
15
- </div>
16
- )}
17
- {!!title && (
18
- <div className={`${styles.heading} modalHeading`}>
19
- <h4>{title}</h4>
20
- </div>
21
- )}
22
- {!!canClose && (
23
- <span className={`${styles.close} ${styles.icon}`}>
24
- <XIcon type="bold" />
25
- </span>
26
- )}
27
- </div>
28
- </div>
29
- );
30
- };
31
-
32
- export default ModalHeader;
@@ -1,8 +0,0 @@
1
- interface ModalHeaderProps {
2
- title: string;
3
- extraClass?: string;
4
- canClose?: boolean;
5
- canGoBack?: boolean;
6
- }
7
-
8
- export default ModalHeaderProps;
@@ -1,58 +0,0 @@
1
- .holder {
2
- position: fixed;
3
- z-index: 99999;
4
- top: 0;
5
- left: 0;
6
- width: 100%;
7
- height: 100%;
8
- padding: calc(var(--space-unit) * 10) calc(var(--space-unit) * 5);
9
- display: flex;
10
- justify-content: center;
11
- align-items: center;
12
- }
13
-
14
- .modal {
15
- position: relative;
16
- width: 90%;
17
- max-width: 640px;
18
- max-height: 70vh;
19
- box-shadow: var(--drop-shadow-default);
20
- background: var(--bg-modal-color);
21
- display: flex;
22
- }
23
-
24
- .wrapper {
25
- display: flex;
26
- flex-direction: column;
27
- width: 100%;
28
- }
29
-
30
- .modalHeader {
31
- border-bottom: 1px solid var(--color-gray-200);
32
- }
33
-
34
- .modalHeaderWrapper {
35
- display: flex;
36
- align-items: center;
37
- justify-content: space-between;
38
- padding: calc(var(--space-unit) * 4) calc(var(--space-unit) * 6);
39
-
40
- .heading {
41
- h4 {
42
- font-size: var(--font-size-h4);
43
- font-weight: var(--font-weight-h4);
44
- line-height: var(--line-height-h4);
45
- }
46
- }
47
-
48
- .icon {
49
- display: flex;
50
- align-items: center;
51
- cursor: pointer;
52
-
53
- svg {
54
- width: 20px;
55
- height: 20px;
56
- }
57
- }
58
- }
@@ -1,27 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
-
3
- import NotificationsBell from "./NotificationsBell";
4
-
5
- // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
6
- const meta = {
7
- title: "Data Display/Notification/NotificationsBell",
8
- component: NotificationsBell,
9
- parameters: {
10
- layout: "centered",
11
- },
12
- tags: ["autodocs"],
13
- } satisfies Meta<typeof NotificationsBell>;
14
-
15
- export default meta;
16
- type Story = StoryObj<typeof NotificationsBell>;
17
-
18
- // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
19
- export const Default: Story = {
20
- args: {},
21
- };
22
-
23
- export const ActiveState: Story = {
24
- args: {
25
- active: true,
26
- },
27
- };
@@ -1,51 +0,0 @@
1
- import { useState, useEffect, useRef } from "react";
2
- import styles from "./notificationBell.module.scss";
3
- import NotificationsBellProps from "./NotificationsBellProps.tsx";
4
- import Bell from "../../Icons/SystemAndDevice/Bell/Bell.tsx";
5
-
6
- const NotificationsBell = (props: NotificationsBellProps) => {
7
- const { children, extraClass, active } = props;
8
-
9
- const [dropdown, setDropdown] = useState(false);
10
- const notificationRef = useRef(null);
11
-
12
- const handleOutsideClick = (event:any) => {
13
- // @ts-ignore
14
- if (notificationRef.current && !notificationRef.current.contains(event.target)) {
15
- setDropdown(false);
16
- }
17
- };
18
-
19
- useEffect(() => {
20
- if (dropdown) {
21
- document.addEventListener("mousedown", handleOutsideClick);
22
- } else {
23
- document.removeEventListener("mousedown", handleOutsideClick);
24
- }
25
-
26
- return () => {
27
- document.removeEventListener("mousedown", handleOutsideClick);
28
- };
29
- }, [dropdown]);
30
-
31
- return (
32
- <div
33
- className={`${styles.notification} ${extraClass}`}
34
- onClick={() => setDropdown(!dropdown)}
35
- ref={notificationRef}
36
- >
37
- <div className={`${styles.notificationIcon} ${dropdown ? styles.notiActive : ""}`}>
38
- {active && (<span className={styles.pip}></span>)}
39
- <Bell />
40
- </div>
41
-
42
- {children && dropdown && (
43
- <div className={styles.notificationDropdown}>
44
- {children}
45
- </div>
46
- )}
47
- </div>
48
- );
49
- };
50
-
51
- export default NotificationsBell;
@@ -1,48 +0,0 @@
1
- .notification {
2
- position: relative;
3
- padding-right: var(--spacing-2);
4
-
5
- .notificationIcon {
6
- display: flex;
7
- align-items: center;
8
- justify-content: center;
9
- width: 40px;
10
- height: 40px;
11
- cursor: pointer;
12
- border-radius: 100%;
13
- position: relative;
14
-
15
- .pip{
16
- position: absolute;
17
- top: 8px;
18
- right: 8px;
19
- width: 8px;
20
- height: 8px;
21
- background: var(--color-primary-500);
22
- border-radius: 100%;
23
- }
24
-
25
- svg {
26
- width: 24px;
27
- height: 24px;
28
- }
29
-
30
- &:hover {
31
- background: var(--color-gray-100);
32
- }
33
-
34
- &.notiActive {
35
- background: var(--color-gray-200);
36
- }
37
-
38
- }
39
-
40
- .notificationDropdown{
41
- position: absolute;
42
- top: 100%;
43
- right: 0;
44
- min-width: 100%;
45
- padding-top: 8px;
46
- }
47
-
48
- }
@@ -1,128 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import NotificationBell from "../NotificationsBell/NotificationsBell";
3
- import NotificationsPanel from "./NotificationsPanel";
4
- import NotificationsHeader from "./NotificationsHeader";
5
- import NotificationsGroups from "./NotificationsGroups";
6
- import NotificationsGroup from "./NotificationsGroup";
7
- import NotificationsNone from "./NotificationsNone";
8
- import Notification from "./Notification";
9
-
10
- const meta: Meta = {
11
- title: "Data Display/Notification/NotificationPanel",
12
- component: NotificationBell,
13
- parameters: {
14
- layout: "centered",
15
- },
16
- tags: ["autodocs"],
17
- };
18
-
19
- export default meta;
20
-
21
- type Story = StoryObj<typeof meta>;
22
-
23
- const NotificationTemplate: Story = {
24
- render: () => {
25
- return (
26
- <NotificationBell active={true}>
27
- <NotificationsPanel>
28
- <NotificationsHeader showMarkAllAsRead={true} />
29
- <NotificationsGroups>
30
- <NotificationsGroup title={"New"}>
31
- <Notification
32
- notificationInitials={"CC"}
33
- boldText={"Lorem ipsum"}
34
- regularText={"dolor sit amet "}
35
- summaryText={"consectetur adipiscing."}
36
- />
37
- <Notification
38
- notificationInitials={"CC"}
39
- boldText={"Lorem ipsum"}
40
- regularText={"dolor sit amet "}
41
- summaryText={"consectetur adipiscing."}
42
- />
43
- <Notification
44
- notificationInitials={"CC"}
45
- boldText={"Lorem ipsum"}
46
- regularText={"dolor sit amet "}
47
- summaryText={"consectetur adipiscing."}
48
- />
49
- <Notification
50
- notificationInitials={"CC"}
51
- boldText={"Lorem ipsum"}
52
- regularText={"dolor sit amet "}
53
- summaryText={"consectetur adipiscing."}
54
- />
55
- <Notification
56
- notificationInitials={"CC"}
57
- boldText={"Lorem ipsum"}
58
- regularText={"dolor sit amet "}
59
- summaryText={"consectetur adipiscing."}
60
- />
61
- </NotificationsGroup>
62
- <NotificationsGroup title={"Last 7 days"}>
63
- <Notification
64
- notificationInitials={"CC"}
65
- boldText={"Lorem ipsum"}
66
- regularText={"dolor sit amet "}
67
- summaryText={"consectetur adipiscing."}
68
- />
69
- <Notification
70
- notificationInitials={"CC"}
71
- boldText={"Lorem ipsum"}
72
- regularText={"dolor sit amet "}
73
- summaryText={"consectetur adipiscing."}
74
- />
75
- <Notification
76
- notificationInitials={"CC"}
77
- boldText={"Lorem ipsum"}
78
- regularText={"dolor sit amet "}
79
- summaryText={"consectetur adipiscing."}
80
- />
81
- <Notification
82
- notificationInitials={"CC"}
83
- boldText={"Lorem ipsum"}
84
- regularText={"dolor sit amet "}
85
- summaryText={"consectetur adipiscing."}
86
- />
87
- <Notification
88
- notificationInitials={"CC"}
89
- boldText={"Lorem ipsum"}
90
- regularText={"dolor sit amet "}
91
- summaryText={"consectetur adipiscing."}
92
- />
93
- <Notification
94
- notificationInitials={"CC"}
95
- boldText={"Lorem ipsum"}
96
- regularText={"dolor sit amet "}
97
- summaryText={"consectetur adipiscing."}
98
- />
99
- </NotificationsGroup>
100
- </NotificationsGroups>
101
- </NotificationsPanel>
102
- </NotificationBell>
103
- );
104
- },
105
- };
106
-
107
- const NoNotificationTemplate: Story = {
108
- render: () => {
109
- return (
110
- <NotificationBell>
111
- <NotificationsPanel>
112
- <NotificationsHeader showMarkAllAsRead={true} />
113
- <NotificationsGroups>
114
- <NotificationsNone />
115
- </NotificationsGroups>
116
- </NotificationsPanel>
117
- </NotificationBell>
118
- );
119
- },
120
- };
121
-
122
- export const Notifications = {
123
- ...NotificationTemplate,
124
- };
125
-
126
- export const NoNotification = {
127
- ...NoNotificationTemplate,
128
- };
@@ -1,59 +0,0 @@
1
- import XIcon from "../../Icons/MathAndFinance/XIcon/XIcon.tsx";
2
- import styles from "./notificationPanel.module.scss";
3
- import NotificationProps from "./NotificationProps.tsx";
4
-
5
- const Notification = (props: NotificationProps) => {
6
- const {
7
- notificationInitials,
8
- boldText,
9
- summaryText,
10
- notificatonItemOnClick,
11
- regularText,
12
- extraClass,
13
- closeOnClick,
14
- } = props;
15
- return (
16
- <>
17
- <li
18
- onClick={notificatonItemOnClick}
19
- className={`${styles.notificationList} ${extraClass}`}
20
- >
21
- <div className={styles.notificationListWrapper}>
22
- <div className={styles.notificationListIcon}>
23
- <div className={styles.notificationListPip}></div>
24
- <div
25
- onClick={closeOnClick}
26
- className={styles.notificationListCloseIcon}
27
- >
28
- <XIcon />
29
- </div>
30
- </div>
31
- <div className={styles.notificationListContent}>
32
- {notificationInitials && (
33
- <div className={styles.notificationListInitial}>
34
- <div className={styles.notificationListInitialWrapper}>
35
- {notificationInitials}
36
- </div>
37
- </div>
38
- )}
39
- <div className={styles.notificationListDesc}>
40
- <p>
41
- {boldText && (
42
- <span className={styles.boldText}> {boldText}</span>
43
- )}
44
- {regularText && (
45
- <span className={styles.regularText}> {regularText}</span>
46
- )}
47
- {summaryText && (
48
- <span className={styles.summaryText}> {summaryText}</span>
49
- )}
50
- </p>
51
- </div>
52
- </div>
53
- </div>
54
- </li>
55
- </>
56
- );
57
- };
58
-
59
- export default Notification;
@@ -1,11 +0,0 @@
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
-
11
- export default NotificationProps;
@@ -1,17 +0,0 @@
1
- import NotificationsGroupProps from "./NotificationsGroupProps";
2
- import styles from "./notificationPanel.module.scss";
3
-
4
- const NotificationsGroup = ({ children, title }: NotificationsGroupProps) => {
5
- return (
6
- <>
7
- {title && (
8
- <div className={styles.notificationGroup}>
9
- <h6>{title}</h6>
10
- </div>
11
- )}
12
- <div>{children}</div>
13
- </>
14
- );
15
- };
16
-
17
- export default NotificationsGroup;
@@ -1,42 +0,0 @@
1
- import { useEffect, useState } from "react";
2
- import NotificationsGroupsProps from "./NotificationsGroupsProps";
3
- import styles from "./notificationPanel.module.scss";
4
-
5
- const NotificationsGroups = (props: NotificationsGroupsProps) => {
6
- const { children } = props;
7
- const [isScrollbarVisible, setIsScrollbarVisible] = useState(false);
8
-
9
- useEffect(() => {
10
- const listContainer = document.getElementById("listContainer");
11
-
12
- if (listContainer) {
13
- const handleResize = () => {
14
- const updatedScrollbarVisible =
15
- listContainer.scrollHeight > listContainer.clientHeight;
16
- setIsScrollbarVisible(updatedScrollbarVisible);
17
- };
18
-
19
- window.addEventListener("resize", handleResize);
20
-
21
- handleResize();
22
-
23
- // Cleanup the event listener on component unmount
24
- return () => {
25
- window.removeEventListener("resize", handleResize);
26
- };
27
- }
28
- }, []);
29
-
30
- return (
31
- <div
32
- id={"listContainer"}
33
- className={`${styles.notificationGrouplistHolder} ${
34
- isScrollbarVisible ? styles.spacing : ""
35
- }`}
36
- >
37
- <ul className={`${styles.notificationGrouplist}`}>{children}</ul>
38
- </div>
39
- );
40
- };
41
-
42
- export default NotificationsGroups;