@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,56 +0,0 @@
1
- .holder {
2
- margin-bottom: calc(var(--space-unit) * 5);
3
- width: 100%;
4
- }
5
-
6
- .label {
7
- display: block;
8
- margin-bottom: calc(var(--space-unit) * 3);
9
-
10
- label {
11
- font-size: var(--font-size-label);
12
- line-height: var(--line-height-label);
13
- font-weight: var(--font-weight-label);
14
- }
15
-
16
- .holderError & {
17
- color: var(--color-error);
18
- }
19
- }
20
-
21
- .field {
22
- .holderError & {
23
- color: var(--color-error);
24
- }
25
- }
26
-
27
- .description {
28
- display: flex;
29
- align-items: center;
30
- font-size: var(--font-size-body-sm);
31
- line-height: var(--line-height-body-sm);
32
- font-weight: var(--font-weight-body-sm);
33
- padding-top: calc(var(--space-unit) * 2);
34
- color: var(--color-description);
35
-
36
- p {
37
- font-size: var(--font-size-body-sm);
38
- line-height: var(--line-height-body-sm);
39
- font-weight: var(--font-weight-body-sm);
40
- }
41
-
42
- .helperIcon {
43
- margin-right: var(--space-unit);
44
- display: flex;
45
- align-items: center;
46
-
47
- svg {
48
- width: 16px;
49
- height: 16px;
50
- }
51
- }
52
-
53
- .holderError & {
54
- color: var(--color-error);
55
- }
56
- }
@@ -1,45 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
-
3
- import IconButton from "./IconButton";
4
- import CalendarBank from "../../Icons/Time/CalendarBank/CalendarBank";
5
-
6
- // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
7
- const meta = {
8
- title: "Form / IconButton",
9
- component: IconButton,
10
- parameters: {
11
- layout: "centered",
12
- },
13
- tags: ["autodocs"],
14
- } satisfies Meta<typeof IconButton>;
15
-
16
- export default meta;
17
- type Story = StoryObj<typeof IconButton>;
18
-
19
- // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
20
- export const Primary: Story = {
21
- args: {
22
- icon: <CalendarBank />,
23
- style: "solid",
24
- size: "default",
25
- scheme: "primary",
26
- },
27
- };
28
-
29
- export const Secondary: Story = {
30
- args: {
31
- icon: <CalendarBank />,
32
- style: "hollow",
33
- size: "default",
34
- scheme: "primary",
35
- },
36
- };
37
-
38
- export const Borderless: Story = {
39
- args: {
40
- icon: <CalendarBank type="bold" />,
41
- style: "no-border",
42
- size: "default",
43
- scheme: "primary",
44
- },
45
- };
@@ -1,58 +0,0 @@
1
- import cx from "classnames";
2
- import styles from "./iconButton.module.scss";
3
- import IconButtonProps from "./IconButtonProps";
4
-
5
- /**
6
- * Primary UI component for user interaction
7
- */
8
- const IconButton = (props: IconButtonProps) => {
9
- const {
10
- type = "button",
11
- size = "default",
12
- style,
13
- disabled = false,
14
- scheme,
15
- icon,
16
- ...args
17
- } = props;
18
-
19
- const classes = [
20
- "button",
21
- "btn",
22
- `btn-${size}`,
23
- `btn-${style}`,
24
- `btn-${scheme}`,
25
- styles.iconButton,
26
- ];
27
- if (size === "large") {
28
- classes.push(styles.large);
29
- } else if (size === "small") {
30
- classes.push(styles.small);
31
- } else if (size === "default") {
32
- classes.push(styles.default);
33
- }
34
- if (style === "solid") {
35
- classes.push(styles.solid);
36
- classes.push(styles[`solid-${scheme}`]);
37
- } else if (style === "hollow") {
38
- classes.push(styles.hollow);
39
- classes.push(styles[`hollow-${scheme}`]);
40
- } else if (style === "no-border") {
41
- classes.push(styles.noBorder);
42
- classes.push(styles[`no-border-${scheme}`]);
43
- }
44
-
45
- if (disabled === true) {
46
- classes.push(styles.disabled);
47
- }
48
-
49
- console.log(styles);
50
-
51
- return (
52
- <button type={type} className={cx(classes)} disabled={disabled} {...args}>
53
- {icon}
54
- </button>
55
- );
56
- };
57
-
58
- export default IconButton;
@@ -1,15 +0,0 @@
1
- import { ReactNode } from "react";
2
-
3
- interface IconButtonProps {
4
- type?: "button" | "submit" | "reset";
5
- size?: "default" | "large" | "small";
6
- style?: "solid" | "hollow" | "no-border";
7
- scheme?: "primary" | "secondary" | "gray";
8
- disabled?: boolean;
9
- icon?: ReactNode;
10
- onClick?: () => void;
11
- onHover?: () => void;
12
- onFocus?: () => void;
13
- }
14
-
15
- export default IconButtonProps;
@@ -1,111 +0,0 @@
1
- @import "../../../variables";
2
-
3
- .iconButton {
4
- display: inline-flex;
5
- align-items: center;
6
- justify-content: center;
7
- border-width: 1px;
8
- border-style: solid;
9
- border-radius: 4px;
10
- cursor: pointer;
11
- transition: linear all 300ms;
12
- font-family: var(--font);
13
-
14
- svg {
15
- width: 20px;
16
- height: 20px;
17
- }
18
-
19
- &:disabled {
20
- cursor: not-allowed;
21
- }
22
-
23
- &.disabled {
24
- opacity: 0.3;
25
- cursor: not-allowed;
26
- }
27
-
28
- .primaryIcon,
29
- .secondaryIcon {
30
- width: 20px;
31
- height: 20px;
32
- }
33
-
34
- &.solid {
35
- }
36
-
37
- &.hollow {
38
- }
39
-
40
- &.noBorder {
41
- border-color: transparent;
42
- }
43
-
44
- &.default {
45
- padding: calc(var(--space-unit) * 3);
46
- min-height: 40px;
47
- }
48
-
49
- &.large {
50
- padding: calc(var(--space-unit) * 4);
51
- min-height: 48px;
52
- }
53
-
54
- &.small {
55
- padding: calc(var(--space-unit) * 2);
56
- min-height: 32px;
57
- }
58
-
59
- @each $color in $colors {
60
- &.solid-#{$color} {
61
- color: var(--color-lite);
62
- background-color: var(--color-#{$color}-500);
63
- border-color: var(--color-#{$color}-500);
64
-
65
- &:hover:enabled {
66
- background-color: var(--color-#{$color}-300);
67
- border-color: var(--color-#{$color}-300);
68
- }
69
-
70
- &:active:enabled {
71
- background-color: var(--color-#{$color}-600);
72
- border-color: var(--color-#{$color}-600);
73
- }
74
- }
75
- }
76
-
77
- @each $color in $colors {
78
- &.hollow-#{$color} {
79
- background: transparent;
80
- color: var(--color-#{$color}-800);
81
- border-color: var(--color-#{$color}-600);
82
-
83
- &:hover:enabled {
84
- background: var(--color-#{$color}-100);
85
- }
86
-
87
- &:active:enabled {
88
- background: var(--color-#{$color}-100);
89
- border-width: 2px;
90
- }
91
- }
92
- }
93
-
94
- @each $color in $colors {
95
- &.no-border-#{$color} {
96
- background: transparent;
97
- color: var(--color-#{$color}-800);
98
- border-color: transparent;
99
-
100
- &:hover:enabled {
101
- background-color: var(--color-#{$color}-200);
102
- color: var(--color-#{$color}-800);
103
- }
104
-
105
- &:active:enabled {
106
- background-color: var(--color-#{$color}-100);
107
- color: var(--color-#{$color}-800);
108
- }
109
- }
110
- }
111
- }
@@ -1,25 +0,0 @@
1
- import {FocusEvent, ChangeEvent, MouseEvent} from "react";
2
-
3
- interface InputProps {
4
- name?: string;
5
- id?: string;
6
- value?: string;
7
- extraClass?: string;
8
- placeholder?: string;
9
- error?: boolean;
10
- disabled?:boolean;
11
- readonly?: boolean;
12
- autoComplete?: boolean;
13
- required?: boolean;
14
- ariaLabel?: string;
15
- minLength?: number;
16
- maxLength?: number;
17
- ariaLabeledby?: string;
18
- ariaDescribedby?: string;
19
- onClick?: (e: MouseEvent) => void;
20
- onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
21
- onFocus?: (e: FocusEvent) => void;
22
- onBlur?: (e: FocusEvent) => void;
23
- }
24
-
25
- export default InputProps;
@@ -1,5 +0,0 @@
1
- const MultiSelectField = () => {
2
-
3
- }
4
-
5
- export default MultiSelectField;
@@ -1,5 +0,0 @@
1
- const MultiSelectFieldItem = () => {
2
-
3
- }
4
-
5
- export default MultiSelectFieldItem;
@@ -1,5 +0,0 @@
1
- const MultiSelectFieldTag = () => {
2
-
3
- }
4
-
5
- export default MultiSelectFieldTag;
@@ -1,22 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
-
3
- import PasswordField from "./PasswordField.tsx";
4
-
5
- // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
6
- const meta = {
7
- title: "Form / PasswordField",
8
- component: PasswordField,
9
- parameters: {
10
- layout: "centered",
11
- },
12
- tags: ["autodocs"],
13
- } satisfies Meta<typeof PasswordField>;
14
-
15
- export default meta;
16
- type Story = StoryObj<typeof PasswordField>;
17
-
18
- export const Example: Story = {
19
- args: {
20
- placeholder: "Placeholder",
21
- },
22
- };
@@ -1,70 +0,0 @@
1
- import cx from "classnames";
2
- import InputProps from "../InputProps";
3
- import styles from "../inputs.module.scss";
4
- import Eye from "../../Icons/Design/Eye/Eye";
5
- import EyeSlash from "../../Icons/Design/EyeSlash/EyeSlash";
6
- import { useState } from "react";
7
-
8
- const PasswordField = (props: InputProps) => {
9
- const {
10
- name,
11
- id,
12
- value,
13
- placeholder,
14
- extraClass,
15
- disabled,
16
- error,
17
- ariaLabel,
18
- required,
19
- readonly,
20
- autoComplete,
21
- ...args
22
- } = props;
23
-
24
- const [fieldType, setFieldType] = useState("password");
25
-
26
- const onPasswordChange = () => {
27
- setFieldType(fieldType === "password" ? "text" : "password");
28
- };
29
-
30
- const classes = [styles.input];
31
- if (error) {
32
- classes.push(styles.error);
33
- }
34
- if (extraClass) {
35
- classes.push(extraClass);
36
- }
37
-
38
- return (
39
- <div className={styles.passwordCon}>
40
- <input
41
- className={cx(classes)}
42
- id={id}
43
- name={name}
44
- type={fieldType}
45
- value={value}
46
- placeholder={placeholder}
47
- disabled={disabled}
48
- readOnly={readonly}
49
- required={required}
50
- autoComplete={autoComplete ? "on" : "off"}
51
- aria-label={ariaLabel ? ariaLabel : name}
52
- aria-required={required ? "true" : "false"}
53
- aria-invalid={error ? "true" : "false"}
54
- aria-disabled={disabled ? "true" : "false"}
55
- aria-readonly={readonly ? "true" : "false"}
56
- aria-autocomplete={autoComplete ? "list" : "none"}
57
- {...args}
58
- />
59
- <span onClick={onPasswordChange} className={styles.eyeicon}>
60
- {fieldType == "password" ? (
61
- <Eye type="regular" />
62
- ) : (
63
- <EyeSlash type="regular" />
64
- )}
65
- </span>
66
- </div>
67
- );
68
- };
69
-
70
- export default PasswordField;
@@ -1,70 +0,0 @@
1
- import cx from "classnames";
2
- import RadioButtonProps from "./RadioButtonProps";
3
- import styles from "./radiobutton.module.scss";
4
- import { useEffect, useState, MouseEvent } from "react";
5
-
6
- const RadioButton = (props: RadioButtonProps) => {
7
- const {
8
- name,
9
- checked,
10
- id,
11
- value,
12
- placeholder,
13
- extraClass,
14
- disabled,
15
- error,
16
- ariaLabel,
17
- required,
18
- readonly,
19
- onChange,
20
- ...args
21
- } = props;
22
-
23
- const [isChecked, setIsChecked] = useState(false);
24
-
25
- const classes = ["radio", styles.radio];
26
-
27
- if (extraClass) {
28
- classes.push(extraClass);
29
- }
30
- if (error) {
31
- classes.push(styles.error);
32
- }
33
-
34
- useEffect(() => {
35
- setIsChecked(checked || false);
36
- }, [checked]);
37
-
38
- const handleClick = (e: MouseEvent) => {
39
- setIsChecked(true);
40
- if (onChange) {
41
- onChange(e, true);
42
- }
43
- };
44
-
45
- return (
46
- <div className={cx(classes)}>
47
- <input
48
- id={id}
49
- name={name}
50
- checked={isChecked}
51
- type={"radio"}
52
- value={value}
53
- placeholder={placeholder}
54
- disabled={disabled}
55
- readOnly={readonly}
56
- required={required}
57
- aria-label={ariaLabel ? ariaLabel : name}
58
- aria-required={required ? "true" : "false"}
59
- aria-invalid={error ? "true" : "false"}
60
- aria-disabled={disabled ? "true" : "false"}
61
- aria-readonly={readonly ? "true" : "false"}
62
- onClick={handleClick}
63
- {...args}
64
- />
65
- <div className={styles.circle}></div>
66
- </div>
67
- );
68
- };
69
-
70
- export default RadioButton;
@@ -1,22 +0,0 @@
1
- import { FocusEvent, MouseEvent } from "react";
2
-
3
- interface RadioButtonProps {
4
- name?: string;
5
- id?: string;
6
- value?: string;
7
- extraClass?: string;
8
- placeholder?: string;
9
- error?: boolean;
10
- disabled?: boolean;
11
- readonly?: boolean;
12
- checked?: boolean;
13
- required?: boolean;
14
- ariaLabel?: string;
15
- ariaLabeledby?: string;
16
- ariaDescribedby?: string;
17
- onChange?: (e: MouseEvent, checked?: boolean) => void;
18
- onFocus?: (e: FocusEvent) => void;
19
- onBlur?: (e: FocusEvent) => void;
20
- }
21
-
22
- export default RadioButtonProps;
@@ -1,64 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import RadioButtons from "./RadioButtons";
3
- import RadioButton from "./RadioButton";
4
-
5
- import "./radioButton.stories.scss";
6
-
7
- const meta: Meta = {
8
- title: "Form / Radio Button",
9
- component: RadioButton,
10
- parameters: {
11
- layout: "centered",
12
- },
13
- tags: ["autodocs"],
14
- };
15
-
16
- export default meta;
17
-
18
- type Story = StoryObj<typeof meta>;
19
-
20
- const RadioButtoTemplate: Story = {
21
- render: ({ items, ...args }) => {
22
- return (
23
- <RadioButtons {...args}>
24
- {items.map((item: any) => (
25
- <RadioButton extraClass={"spacing"} name={item.name} id={item.id} />
26
- ))}
27
- </RadioButtons>
28
- );
29
- },
30
- };
31
-
32
- export const Default = {
33
- ...RadioButtoTemplate,
34
- args: {
35
- columns: false,
36
- items: [
37
- {
38
- id: "c-1",
39
- name: "check-one",
40
- disabled: false,
41
- },
42
- {
43
- id: "c-2",
44
- name: "check-one",
45
- },
46
- {
47
- id: "c-3",
48
- name: "check-one",
49
- },
50
- {
51
- id: "c-4",
52
- name: "check-one",
53
- },
54
- {
55
- id: "c-5",
56
- name: "check-one",
57
- },
58
- {
59
- id: "c-6",
60
- name: "check-one",
61
- },
62
- ],
63
- },
64
- };
@@ -1,18 +0,0 @@
1
- import RadioButtonsProps from "./RadioButtonsProps";
2
- import styles from "./radiobutton.module.scss";
3
-
4
- const RadioButtons = (props: RadioButtonsProps) => {
5
- const { children, columns, extraClass } = props;
6
-
7
- return (
8
- <div
9
- className={`${styles.checkboxSet} ${extraClass} ${
10
- columns ? styles.container : ""
11
- }`}
12
- >
13
- {children}
14
- </div>
15
- );
16
- };
17
-
18
- export default RadioButtons;
@@ -1,3 +0,0 @@
1
- .spacing {
2
- padding: 4px;
3
- }
@@ -1,63 +0,0 @@
1
- .checkboxSet {
2
- display: flex;
3
-
4
- &.container {
5
- flex-direction: column;
6
- }
7
- }
8
-
9
- .radio {
10
- position: relative;
11
- display: inline-flex;
12
- justify-content: center;
13
- flex-shrink: 0;
14
- flex-grow: 0;
15
-
16
- input[type="radio"] {
17
- -webkit-appearance: none;
18
- width: 20px;
19
- height: 20px;
20
- border-radius: 100%;
21
- background-color: var(--color-white);
22
- border: 1px solid var(--color-gray-500);
23
- outline-offset: 2px;
24
- outline: 2px solid transparent;
25
- cursor: pointer;
26
- transition: linear 0.3s;
27
-
28
- &:checked + .circle {
29
- opacity: 1;
30
- }
31
-
32
- &:hover {
33
- border: 2px solid var(--color-gray-800);
34
- }
35
-
36
- &:focus {
37
- outline: 2px solid var(--color-gray-800);
38
- }
39
-
40
- &:disabled {
41
- background-color: var(--color-gray-200);
42
-
43
- &:checked {
44
- border-color: var(--color-gray-200);
45
- }
46
- }
47
- }
48
-
49
- .circle {
50
- content: "";
51
- position: absolute;
52
- top: 50%;
53
- left: 50%;
54
- transform: translate(-50%, -50%);
55
- width: 12px;
56
- height: 12px;
57
- border-radius: 100%;
58
- background-color: var(--color-gray-800);
59
- opacity: 0;
60
- pointer-events: none;
61
- transition: 0.3s;
62
- }
63
- }
@@ -1,22 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
-
3
- import TextField from "./TextField.tsx";
4
-
5
- // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
6
- const meta = {
7
- title: "Form / TextField",
8
- component: TextField,
9
- parameters: {
10
- layout: "centered",
11
- },
12
- tags: ["autodocs"],
13
- } satisfies Meta<typeof TextField>;
14
-
15
- export default meta;
16
- type Story = StoryObj<typeof TextField>;
17
-
18
- export const Example: Story = {
19
- args: {
20
- placeholder: "Placeholder",
21
- },
22
- };