@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.
- package/README.md +23 -23
- package/dist/App.d.ts +2 -0
- package/dist/Components/DataDisplay/Accordion/Accordion.d.ts +3 -0
- package/dist/Components/DataDisplay/Accordion/AccordionContext.d.ts +4 -0
- package/dist/Components/DataDisplay/Accordion/AccordionContextInterface.d.ts +7 -0
- package/dist/Components/DataDisplay/Accordion/AccordionItem.d.ts +3 -0
- package/dist/Components/DataDisplay/Accordion/AccordionItemProps.d.ts +10 -0
- package/dist/Components/DataDisplay/Accordion/AccordionProps.d.ts +6 -0
- package/dist/Components/DataDisplay/Accordion/AccordionProvider.d.ts +3 -0
- package/dist/Components/DataDisplay/Accordion/AccordionProviderInterface.d.ts +6 -0
- package/dist/Components/DataDisplay/Badge/Badge.d.ts +3 -0
- package/dist/Components/DataDisplay/Badge/BadgeProps.d.ts +5 -0
- package/dist/Components/DataDisplay/Cards/BannerCard/BannerCard.d.ts +3 -0
- package/dist/Components/DataDisplay/Cards/BannerCard/BannerCardInterface.d.ts +13 -0
- package/dist/Components/DataDisplay/Cards/PathwayCard/PathwayCard.d.ts +2 -0
- package/dist/Components/DataDisplay/Cards/PathwayCard/PathwayCardInterface.d.ts +15 -0
- package/dist/Components/DataDisplay/Media/Media.d.ts +3 -0
- package/{src/Components/DataDisplay/Media/MediaProps.tsx → dist/Components/DataDisplay/Media/MediaProps.d.ts} +3 -5
- package/dist/Components/DataDisplay/Modal/Modal.d.ts +3 -0
- package/dist/Components/DataDisplay/Modal/ModalActions.d.ts +2 -0
- package/dist/Components/DataDisplay/Modal/ModalActionsLeft.d.ts +2 -0
- package/dist/Components/DataDisplay/Modal/ModalActionsRight.d.ts +2 -0
- package/dist/Components/DataDisplay/Modal/ModalBody.d.ts +3 -0
- package/{src/Components/DataDisplay/Modal/ModalBodyProps.tsx → dist/Components/DataDisplay/Modal/ModalBodyProps.d.ts} +5 -7
- package/dist/Components/DataDisplay/Modal/ModalCurtain.d.ts +2 -0
- package/dist/Components/DataDisplay/Modal/ModalHeader.d.ts +3 -0
- package/dist/Components/DataDisplay/Modal/ModalHeaderProps.d.ts +7 -0
- package/{src/Components/DataDisplay/Modal/ModalProps.tsx → dist/Components/DataDisplay/Modal/ModalProps.d.ts} +6 -8
- package/dist/Components/DataDisplay/NotificationsBell/NotificationsBell.d.ts +3 -0
- package/{src/Components/DataDisplay/NotificationsBell/NotificationsBellProps.tsx → dist/Components/DataDisplay/NotificationsBell/NotificationsBellProps.d.ts} +3 -5
- package/dist/Components/DataDisplay/NotificationsPanel/Notification.d.ts +3 -0
- package/dist/Components/DataDisplay/NotificationsPanel/NotificationProps.d.ts +10 -0
- package/dist/Components/DataDisplay/NotificationsPanel/NotificationsGroup.d.ts +3 -0
- package/{src/Components/DataDisplay/NotificationsPanel/NotificationsGroupProps.tsx → dist/Components/DataDisplay/NotificationsPanel/NotificationsGroupProps.d.ts} +6 -8
- package/dist/Components/DataDisplay/NotificationsPanel/NotificationsGroups.d.ts +3 -0
- package/{src/Components/DataDisplay/NotificationsPanel/NotificationsGroupsProps.tsx → dist/Components/DataDisplay/NotificationsPanel/NotificationsGroupsProps.d.ts} +5 -7
- package/dist/Components/DataDisplay/NotificationsPanel/NotificationsHeader.d.ts +3 -0
- package/dist/Components/DataDisplay/NotificationsPanel/NotificationsHeaderProps.d.ts +6 -0
- package/dist/Components/DataDisplay/NotificationsPanel/NotificationsNone.d.ts +2 -0
- package/dist/Components/DataDisplay/NotificationsPanel/NotificationsPanel.d.ts +3 -0
- package/dist/Components/DataDisplay/NotificationsPanel/NotificationsPanelProps.d.ts +5 -0
- package/dist/Components/DataDisplay/Tab/Tab.d.ts +2 -0
- package/dist/Components/DataDisplay/Tab/TabBody.d.ts +2 -0
- package/dist/Components/DataDisplay/Tab/TabBodyContent.d.ts +2 -0
- package/{src/Components/DataDisplay/Tab/TabBodyContentProps.tsx → dist/Components/DataDisplay/Tab/TabBodyContentProps.d.ts} +7 -9
- package/{src/Components/DataDisplay/Tab/TabBodyProps.tsx → dist/Components/DataDisplay/Tab/TabBodyProps.d.ts} +6 -8
- package/dist/Components/DataDisplay/Tab/TabContext.d.ts +4 -0
- package/{src/Components/DataDisplay/Tab/TabContextProps.tsx → dist/Components/DataDisplay/Tab/TabContextProps.d.ts} +5 -6
- package/dist/Components/DataDisplay/Tab/TabNav.d.ts +2 -0
- package/dist/Components/DataDisplay/Tab/TabNavItem.d.ts +2 -0
- package/dist/Components/DataDisplay/Tab/TabNavItemProps.d.ts +8 -0
- package/{src/Components/DataDisplay/Tab/TabNavProps.tsx → dist/Components/DataDisplay/Tab/TabNavProps.d.ts} +6 -8
- package/{src/Components/DataDisplay/Tab/TabProps.tsx → dist/Components/DataDisplay/Tab/TabProps.d.ts} +6 -8
- package/dist/Components/DataDisplay/Table/Table.d.ts +3 -0
- package/dist/Components/DataDisplay/Table/TableBody.d.ts +3 -0
- package/{src/Components/DataDisplay/Table/TableBodyProps.tsx → dist/Components/DataDisplay/Table/TableBodyProps.d.ts} +6 -8
- package/dist/Components/DataDisplay/Table/TableCell.d.ts +3 -0
- package/dist/Components/DataDisplay/Table/TableCellAction.d.ts +3 -0
- package/dist/Components/DataDisplay/Table/TableCellActionProps.d.ts +9 -0
- package/dist/Components/DataDisplay/Table/TableCellProps.d.ts +9 -0
- package/dist/Components/DataDisplay/Table/TableCellWithDesc.d.ts +3 -0
- package/dist/Components/DataDisplay/Table/TableCellWithDescProps.d.ts +8 -0
- package/dist/Components/DataDisplay/Table/TableCellWithImage.d.ts +3 -0
- package/dist/Components/DataDisplay/Table/TableCellWithImageProps.d.ts +9 -0
- package/dist/Components/DataDisplay/Table/TableFooter.d.ts +2 -0
- package/dist/Components/DataDisplay/Table/TableHead.d.ts +3 -0
- package/{src/Components/DataDisplay/Table/TableHeadProps.tsx → dist/Components/DataDisplay/Table/TableHeadProps.d.ts} +6 -8
- package/dist/Components/DataDisplay/Table/TableHeaderCell.d.ts +3 -0
- package/{src/Components/DataDisplay/Table/TableHeaderCellProps.tsx → dist/Components/DataDisplay/Table/TableHeaderCellProps.d.ts} +8 -10
- package/{src/Components/DataDisplay/Table/TableProps.tsx → dist/Components/DataDisplay/Table/TableProps.d.ts} +6 -8
- package/dist/Components/DataDisplay/Table/TableRow.d.ts +3 -0
- package/{src/Components/DataDisplay/Table/TableRowProps.tsx → dist/Components/DataDisplay/Table/TableRowProps.d.ts} +6 -8
- package/dist/Components/DataDisplay/index.d.ts +12 -0
- package/dist/Components/Form/Button/Button.d.ts +6 -0
- package/dist/Components/Form/Button/ButtonProps.d.ts +15 -0
- package/dist/Components/Form/Checkbox/Checkbox.d.ts +3 -0
- package/dist/Components/Form/Checkbox/CheckboxProps.d.ts +20 -0
- package/dist/Components/Form/CheckboxSelect/CheckboxSelect.d.ts +2 -0
- package/dist/Components/Form/CheckboxSelect/CheckboxSelectItem.d.ts +2 -0
- package/dist/Components/Form/CheckboxSet/CheckboxSet.d.ts +3 -0
- package/dist/Components/Form/CheckboxSet/CheckboxSetItem.d.ts +3 -0
- package/{src/Components/Form/CheckboxSet/CheckboxSetProps.tsx → dist/Components/Form/CheckboxSet/CheckboxSetProps.d.ts} +7 -9
- package/dist/Components/Form/CurrencyField/CurrencyField.d.ts +3 -0
- package/{src/Components/Form/CurrencyField/CurrencyFieldProps.tsx → dist/Components/Form/CurrencyField/CurrencyFieldProps.d.ts} +6 -8
- package/dist/Components/Form/DateField/DateField.d.ts +3 -0
- package/dist/Components/Form/DropdownBadge/DropdownBadge.d.ts +3 -0
- package/dist/Components/Form/DropdownBadge/DropdownBadgeItem.d.ts +3 -0
- package/dist/Components/Form/DropdownBadge/DropdownBadgeItemProps.d.ts +8 -0
- package/dist/Components/Form/DropdownBadge/DropdownBadgeProps.d.ts +27 -0
- package/dist/Components/Form/DropdownBadge/DropdownBadgeSelector.d.ts +3 -0
- package/{src/Components/Form/DropdownBadge/DropdownBadgeSelectorProps.tsx → dist/Components/Form/DropdownBadge/DropdownBadgeSelectorProps.d.ts} +5 -7
- package/dist/Components/Form/DropdownField/DropdownField.d.ts +3 -0
- package/dist/Components/Form/DropdownField/DropdownFieldItem.d.ts +3 -0
- package/dist/Components/Form/DropdownField/DropdownFieldItemProps.d.ts +7 -0
- package/dist/Components/Form/DropdownField/DropdownFieldProps.d.ts +29 -0
- package/dist/Components/Form/DropdownField/DropdownFieldSelector.d.ts +3 -0
- package/{src/Components/Form/DropdownField/DropdownFieldSelectorProps.tsx → dist/Components/Form/DropdownField/DropdownFieldSelectorProps.d.ts} +5 -7
- package/dist/Components/Form/EmailField/EmailField.d.ts +3 -0
- package/dist/Components/Form/EmailField/EmailField.stories.d.ts +13 -0
- package/dist/Components/Form/ErrorMessage/ErrorMessage.d.ts +2 -0
- package/dist/Components/Form/FormFieldHolder/FormFieldHolder.d.ts +3 -0
- package/dist/Components/Form/FormFieldHolder/FormFieldHolderProps.d.ts +10 -0
- package/dist/Components/Form/IconButton/IconButton.d.ts +6 -0
- package/dist/Components/Form/IconButton/IconButtonProps.d.ts +13 -0
- package/dist/Components/Form/InputProps.d.ts +23 -0
- package/dist/Components/Form/MultiSelectField/MultiSelectField.d.ts +2 -0
- package/dist/Components/Form/MultiSelectField/MultiSelectFieldItem.d.ts +2 -0
- package/dist/Components/Form/MultiSelectField/MultiSelectFieldTag.d.ts +2 -0
- package/dist/Components/Form/PasswordField/PasswordField.d.ts +3 -0
- package/dist/Components/Form/RadioButtons/RadioButton.d.ts +3 -0
- package/dist/Components/Form/RadioButtons/RadioButtonProps.d.ts +20 -0
- package/dist/Components/Form/RadioButtons/RadioButtons.d.ts +3 -0
- package/{src/Components/Form/RadioButtons/RadioButtonsProps.tsx → dist/Components/Form/RadioButtons/RadioButtonsProps.d.ts} +8 -10
- package/dist/Components/Form/TextField/TextField.d.ts +3 -0
- package/dist/Components/Form/TextField/TextField.stories.d.ts +13 -0
- package/{src/Components/Form/TextField/TextFieldProps.tsx → dist/Components/Form/TextField/TextFieldProps.d.ts} +6 -8
- package/dist/Components/Form/Textarea/Textarea.d.ts +3 -0
- package/dist/Components/Form/Textarea/Textarea.stories.d.ts +14 -0
- package/dist/Components/Form/Textarea/TextareaProps.d.ts +25 -0
- package/dist/Components/Form/TimeField/TimeField.d.ts +3 -0
- package/dist/Components/Form/ToggleSwitch/ToggleSwitch.d.ts +3 -0
- package/dist/Components/Form/ToggleSwitch/ToggleSwitchProps.d.ts +20 -0
- package/dist/Components/Form/index.d.ts +17 -0
- package/dist/Components/Icons/Arrows/CaretDown/CaretDown.d.ts +3 -0
- package/dist/Components/Icons/Arrows/CaretLeft/CaretLeft.d.ts +3 -0
- package/dist/Components/Icons/Arrows/CaretRight/CaretRight.d.ts +3 -0
- package/dist/Components/Icons/Arrows/CaretUp/CaretUp.d.ts +3 -0
- package/dist/Components/Icons/Brand/WindowLogo/WindowLogo.d.ts +3 -0
- package/dist/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.d.ts +3 -0
- package/dist/Components/Icons/Communication/AddressBook/AddressBook.d.ts +3 -0
- package/dist/Components/Icons/Communication/AddressBook/AddressBook.stories.d.ts +21 -0
- package/dist/Components/Icons/Communication/Asterick/Asterisk.d.ts +3 -0
- package/dist/Components/Icons/Communication/Asterick/Asterisk.stories.d.ts +21 -0
- package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.d.ts +3 -0
- package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.d.ts +21 -0
- package/dist/Components/Icons/Communication/At/At.d.ts +3 -0
- package/dist/Components/Icons/Communication/At/At.stories.d.ts +21 -0
- package/dist/Components/Icons/Communication/Broadcast/Broadcast.d.ts +3 -0
- package/dist/Components/Icons/Communication/Broadcast/Broadcast.stories.d.ts +21 -0
- package/dist/Components/Icons/Communication/Chat/Chat.d.ts +3 -0
- package/dist/Components/Icons/Communication/Chat/Chat.stories.d.ts +21 -0
- package/dist/Components/Icons/Design/Eye/Eye.d.ts +3 -0
- package/dist/Components/Icons/Design/EyeSlash/EyeSlash.d.ts +3 -0
- package/dist/Components/Icons/IconProps.d.ts +4 -0
- package/dist/Components/Icons/MathAndFinance/XIcon/XIcon.d.ts +3 -0
- package/dist/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/Bell/Bell.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.d.ts +3 -0
- package/dist/Components/Icons/Time/CalendarBank/CalendarBank.d.ts +3 -0
- package/dist/Components/Icons/Time/Clock/Clock.d.ts +3 -0
- package/dist/Components/Layout/CalloutPopup/CalloutPopup.d.ts +2 -0
- package/dist/Components/Layout/Header/Header.d.ts +3 -0
- package/dist/Components/Layout/Header/HeaderLeft.d.ts +3 -0
- package/dist/Components/Layout/Header/HeaderLeftProps.d.ts +6 -0
- package/dist/Components/Layout/Header/HeaderProps.d.ts +6 -0
- package/dist/Components/Layout/Header/HeaderRight.d.ts +3 -0
- package/dist/Components/Layout/Header/HeaderRightProps.d.ts +8 -0
- package/dist/Components/Layout/Pagination/Pagination.d.ts +2 -0
- package/dist/Components/Layout/Pagination/PaginationFirst.d.ts +2 -0
- package/dist/Components/Layout/Pagination/PaginationLast.d.ts +2 -0
- package/dist/Components/Layout/Pagination/PaginationNext.d.ts +2 -0
- package/dist/Components/Layout/Pagination/PaginationNumber.d.ts +2 -0
- package/dist/Components/Layout/Pagination/PaginationPrevious.d.ts +2 -0
- package/dist/Components/Layout/ProfileAvatar/ProfileAvatar.d.ts +3 -0
- package/dist/Components/Layout/ProfileAvatar/ProfileAvatarProps.d.ts +8 -0
- package/dist/Components/Layout/ProfileDropdown/ProfileDropdown.d.ts +3 -0
- package/{src/Components/Layout/ProfileDropdown/ProfileDropdownProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileDropdownProps.d.ts} +6 -8
- package/dist/Components/Layout/ProfileDropdown/ProfileHeader.d.ts +3 -0
- package/dist/Components/Layout/ProfileDropdown/ProfileHeaderProps.d.ts +7 -0
- package/dist/Components/Layout/ProfileDropdown/ProfileLink.d.ts +3 -0
- package/{src/Components/Layout/ProfileDropdown/ProfileLinkProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileLinkProps.d.ts} +5 -7
- package/dist/Components/Layout/ProfileDropdown/ProfileLinks.d.ts +3 -0
- package/{src/Components/Layout/ProfileDropdown/ProfileLinksProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileLinksProps.d.ts} +5 -7
- package/dist/Components/Layout/ProfileDropdown/ProfileNavigationItem.d.ts +3 -0
- package/{src/Components/Layout/ProfileDropdown/ProfileNavigationItemProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileNavigationItemProps.d.ts} +8 -10
- package/dist/Components/Layout/ProfileDropdown/ProfileSwitchPanel.d.ts +3 -0
- package/{src/Components/Layout/ProfileDropdown/ProfileSwitchPanelProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileSwitchPanelProps.d.ts} +8 -10
- package/dist/Components/Layout/ProfileDropdown/ProfileSwitchUser.d.ts +3 -0
- package/{src/Components/Layout/ProfileDropdown/ProfileSwitchUserProps.tsx → dist/Components/Layout/ProfileDropdown/ProfileSwitchUserProps.d.ts} +6 -7
- package/dist/Components/Layout/Sidebar/Sidebar.d.ts +3 -0
- package/dist/Components/Layout/Sidebar/SidebarChevron.d.ts +3 -0
- package/dist/Components/Layout/Sidebar/SidebarChevronProps.d.ts +5 -0
- package/dist/Components/Layout/Sidebar/SidebarNavigation.d.ts +3 -0
- package/dist/Components/Layout/Sidebar/SidebarNavigationItem.d.ts +3 -0
- package/dist/Components/Layout/Sidebar/SidebarNavigationItemProps.d.ts +10 -0
- package/dist/Components/Layout/Sidebar/SidebarNavigationProps.d.ts +7 -0
- package/dist/Components/Layout/Sidebar/SidebarProps.d.ts +6 -0
- package/dist/Components/Layout/Sidebar/SidebarSubNavigation.d.ts +3 -0
- package/dist/Components/Layout/Sidebar/SidebarSubNavigationItem.d.ts +3 -0
- package/dist/Components/Layout/Sidebar/SidebarSubNavigationItemProps.d.ts +10 -0
- package/dist/Components/Layout/Sidebar/SidebarSubNavigationProps.d.ts +8 -0
- package/dist/image/logo-small.svg +4 -0
- package/dist/image/logo.svg +26 -0
- package/dist/image/table-image.png +0 -0
- package/dist/index.cjs.js +6 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +1232 -0
- package/dist/index.es.js.map +1 -0
- package/dist/main.d.ts +0 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +75 -48
- package/src/App.tsx +0 -30
- package/src/Components/DataDisplay/Accordion/Accordion.stories.tsx +0 -57
- package/src/Components/DataDisplay/Accordion/Accordion.tsx +0 -14
- package/src/Components/DataDisplay/Accordion/AccordionContext.tsx +0 -11
- package/src/Components/DataDisplay/Accordion/AccordionContextInterface.tsx +0 -8
- package/src/Components/DataDisplay/Accordion/AccordionItem.tsx +0 -62
- package/src/Components/DataDisplay/Accordion/AccordionItemProps.tsx +0 -12
- package/src/Components/DataDisplay/Accordion/AccordionProps.tsx +0 -8
- package/src/Components/DataDisplay/Accordion/AccordionProvider.tsx +0 -65
- package/src/Components/DataDisplay/Accordion/AccordionProviderInterface.tsx +0 -8
- package/src/Components/DataDisplay/Accordion/accordion.module.scss +0 -56
- package/src/Components/DataDisplay/Badge/Badge.stories.tsx +0 -44
- package/src/Components/DataDisplay/Badge/Badge.tsx +0 -32
- package/src/Components/DataDisplay/Badge/BadgeProps.tsx +0 -6
- package/src/Components/DataDisplay/Badge/badge.module.scss +0 -42
- package/src/Components/DataDisplay/Cards/BannerCard/BannerCard.stories.tsx +0 -26
- package/src/Components/DataDisplay/Cards/BannerCard/BannerCard.tsx +0 -47
- package/src/Components/DataDisplay/Cards/BannerCard/BannerCardInterface.tsx +0 -15
- package/src/Components/DataDisplay/Cards/BannerCard/banner-card.scss +0 -54
- package/src/Components/DataDisplay/Cards/PathwayCard/PathwayCard.stories.tsx +0 -31
- package/src/Components/DataDisplay/Cards/PathwayCard/PathwayCard.tsx +0 -53
- package/src/Components/DataDisplay/Cards/PathwayCard/PathwayCardInterface.tsx +0 -17
- package/src/Components/DataDisplay/Cards/PathwayCard/pathway-card-stories.scss +0 -3
- package/src/Components/DataDisplay/Cards/PathwayCard/pathway-card.scss +0 -62
- package/src/Components/DataDisplay/Media/Media.stories.tsx +0 -30
- package/src/Components/DataDisplay/Media/Media.tsx +0 -47
- package/src/Components/DataDisplay/Media/media.module.scss +0 -8
- package/src/Components/DataDisplay/Modal/Modal.stories.tsx +0 -27
- package/src/Components/DataDisplay/Modal/Modal.tsx +0 -16
- package/src/Components/DataDisplay/Modal/ModalActions.tsx +0 -5
- package/src/Components/DataDisplay/Modal/ModalActionsLeft.tsx +0 -5
- package/src/Components/DataDisplay/Modal/ModalActionsRight.tsx +0 -5
- package/src/Components/DataDisplay/Modal/ModalBody.tsx +0 -15
- package/src/Components/DataDisplay/Modal/ModalCurtain.tsx +0 -5
- package/src/Components/DataDisplay/Modal/ModalHeader.tsx +0 -32
- package/src/Components/DataDisplay/Modal/ModalHeaderProps.tsx +0 -8
- package/src/Components/DataDisplay/Modal/modal.module.scss +0 -58
- package/src/Components/DataDisplay/NotificationsBell/NotificationBell.stories.tsx +0 -27
- package/src/Components/DataDisplay/NotificationsBell/NotificationsBell.tsx +0 -51
- package/src/Components/DataDisplay/NotificationsBell/notificationBell.module.scss +0 -48
- package/src/Components/DataDisplay/NotificationsPanel/Notification.stories.tsx +0 -128
- package/src/Components/DataDisplay/NotificationsPanel/Notification.tsx +0 -59
- package/src/Components/DataDisplay/NotificationsPanel/NotificationProps.tsx +0 -11
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsGroup.tsx +0 -17
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsGroups.tsx +0 -42
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsHeader.tsx +0 -27
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsHeaderProps.tsx +0 -7
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsNone.tsx +0 -11
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsPanel.tsx +0 -8
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsPanelProps.tsx +0 -7
- package/src/Components/DataDisplay/NotificationsPanel/notificationPanel.module.scss +0 -196
- package/src/Components/DataDisplay/Tab/Tab.stories.tsx +0 -72
- package/src/Components/DataDisplay/Tab/Tab.tsx +0 -20
- package/src/Components/DataDisplay/Tab/TabBody.tsx +0 -6
- package/src/Components/DataDisplay/Tab/TabBodyContent.tsx +0 -15
- package/src/Components/DataDisplay/Tab/TabContext.tsx +0 -9
- package/src/Components/DataDisplay/Tab/TabNav.tsx +0 -6
- package/src/Components/DataDisplay/Tab/TabNavItem.tsx +0 -49
- package/src/Components/DataDisplay/Tab/TabNavItemProps.tsx +0 -9
- package/src/Components/DataDisplay/Tab/tab.module.scss +0 -35
- package/src/Components/DataDisplay/Tab/tab.stories.scss +0 -3
- package/src/Components/DataDisplay/Table/Table.stories.tsx +0 -64
- package/src/Components/DataDisplay/Table/Table.tsx +0 -10
- package/src/Components/DataDisplay/Table/TableBody.tsx +0 -13
- package/src/Components/DataDisplay/Table/TableCell.tsx +0 -30
- package/src/Components/DataDisplay/Table/TableCellAction.tsx +0 -27
- package/src/Components/DataDisplay/Table/TableCellActionProps.tsx +0 -11
- package/src/Components/DataDisplay/Table/TableCellProps.tsx +0 -11
- package/src/Components/DataDisplay/Table/TableCellWithDesc.tsx +0 -21
- package/src/Components/DataDisplay/Table/TableCellWithDescProps.tsx +0 -9
- package/src/Components/DataDisplay/Table/TableCellWithImage.tsx +0 -39
- package/src/Components/DataDisplay/Table/TableCellWithImageProps.tsx +0 -10
- package/src/Components/DataDisplay/Table/TableFooter.tsx +0 -5
- package/src/Components/DataDisplay/Table/TableHead.tsx +0 -11
- package/src/Components/DataDisplay/Table/TableHeaderCell.tsx +0 -17
- package/src/Components/DataDisplay/Table/TableRow.tsx +0 -9
- package/src/Components/DataDisplay/Table/table.module.scss +0 -103
- package/src/Components/Form/Button/Button.stories.tsx +0 -66
- package/src/Components/Form/Button/Button.tsx +0 -64
- package/src/Components/Form/Button/ButtonProps.tsx +0 -18
- package/src/Components/Form/Button/button.module.scss +0 -142
- package/src/Components/Form/Checkbox/Checkbox.stories.tsx +0 -49
- package/src/Components/Form/Checkbox/Checkbox.tsx +0 -85
- package/src/Components/Form/Checkbox/CheckboxProps.tsx +0 -22
- package/src/Components/Form/Checkbox/checkbox.module.scss +0 -63
- package/src/Components/Form/CheckboxSelect/CheckboxSelect.tsx +0 -5
- package/src/Components/Form/CheckboxSelect/CheckboxSelectItem.tsx +0 -5
- package/src/Components/Form/CheckboxSet/CheckboxSet.stories.tsx +0 -93
- package/src/Components/Form/CheckboxSet/CheckboxSet.tsx +0 -14
- package/src/Components/Form/CheckboxSet/CheckboxSetItem.tsx +0 -88
- package/src/Components/Form/CheckboxSet/checkboxSet.module.scss +0 -13
- package/src/Components/Form/CurrencyField/CurrenctField.stories.tsx +0 -22
- package/src/Components/Form/CurrencyField/CurrencyField.tsx +0 -59
- package/src/Components/Form/DateField/DateField.stories.tsx +0 -22
- package/src/Components/Form/DateField/DateField.tsx +0 -58
- package/src/Components/Form/DropdownBadge/DropdownBadge.stories.tsx +0 -49
- package/src/Components/Form/DropdownBadge/DropdownBadge.tsx +0 -160
- package/src/Components/Form/DropdownBadge/DropdownBadgeItem.tsx +0 -40
- package/src/Components/Form/DropdownBadge/DropdownBadgeItemProps.tsx +0 -10
- package/src/Components/Form/DropdownBadge/DropdownBadgeProps.tsx +0 -31
- package/src/Components/Form/DropdownBadge/DropdownBadgeSelector.tsx +0 -11
- package/src/Components/Form/DropdownBadge/dropdownBadge.module.scss +0 -105
- package/src/Components/Form/DropdownField/DropdownField.stories.tsx +0 -50
- package/src/Components/Form/DropdownField/DropdownField.tsx +0 -118
- package/src/Components/Form/DropdownField/DropdownFieldItem.tsx +0 -26
- package/src/Components/Form/DropdownField/DropdownFieldItemProps.tsx +0 -9
- package/src/Components/Form/DropdownField/DropdownFieldProps.tsx +0 -33
- package/src/Components/Form/DropdownField/DropdownFieldSelector.tsx +0 -15
- package/src/Components/Form/DropdownField/dropdown.module.scss +0 -79
- package/src/Components/Form/EmailField/EmailField.stories.ts +0 -23
- package/src/Components/Form/EmailField/EmailField.tsx +0 -51
- package/src/Components/Form/ErrorMessage/ErrorMessage.tsx +0 -5
- package/src/Components/Form/FormFieldHolder/FormFieldHolder.stories.tsx +0 -30
- package/src/Components/Form/FormFieldHolder/FormFieldHolder.tsx +0 -40
- package/src/Components/Form/FormFieldHolder/FormFieldHolderProps.tsx +0 -12
- package/src/Components/Form/FormFieldHolder/formHolder.module.scss +0 -56
- package/src/Components/Form/IconButton/IconButton.stories.tsx +0 -45
- package/src/Components/Form/IconButton/IconButton.tsx +0 -58
- package/src/Components/Form/IconButton/IconButtonProps.tsx +0 -15
- package/src/Components/Form/IconButton/iconButton.module.scss +0 -111
- package/src/Components/Form/InputProps.tsx +0 -25
- package/src/Components/Form/MultiSelectField/MultiSelectField.tsx +0 -5
- package/src/Components/Form/MultiSelectField/MultiSelectFieldItem.tsx +0 -5
- package/src/Components/Form/MultiSelectField/MultiSelectFieldTag.tsx +0 -5
- package/src/Components/Form/PasswordField/PasswordField.stories.tsx +0 -22
- package/src/Components/Form/PasswordField/PasswordField.tsx +0 -70
- package/src/Components/Form/RadioButtons/RadioButton.tsx +0 -70
- package/src/Components/Form/RadioButtons/RadioButtonProps.tsx +0 -22
- package/src/Components/Form/RadioButtons/RadioButtons.stories.tsx +0 -64
- package/src/Components/Form/RadioButtons/RadioButtons.tsx +0 -18
- package/src/Components/Form/RadioButtons/radioButton.stories.scss +0 -3
- package/src/Components/Form/RadioButtons/radiobutton.module.scss +0 -63
- package/src/Components/Form/TextField/TextField.stories.ts +0 -22
- package/src/Components/Form/TextField/TextField.tsx +0 -56
- package/src/Components/Form/Textarea/Textarea.stories.ts +0 -31
- package/src/Components/Form/Textarea/Textarea.tsx +0 -71
- package/src/Components/Form/Textarea/TextareaProps.tsx +0 -27
- package/src/Components/Form/Textarea/textarea.module.scss +0 -49
- package/src/Components/Form/TimeField/TimeField.stories.tsx +0 -22
- package/src/Components/Form/TimeField/TimeField.tsx +0 -58
- package/src/Components/Form/ToggleSwitch/ToggleSwitch.stories.tsx +0 -49
- package/src/Components/Form/ToggleSwitch/ToggleSwitch.tsx +0 -87
- package/src/Components/Form/ToggleSwitch/ToggleSwitchProps.tsx +0 -22
- package/src/Components/Form/ToggleSwitch/toggleSwitch.module.scss +0 -82
- package/src/Components/Form/inputs.module.scss +0 -129
- package/src/Components/Icons/Arrows/CaretDown/CaretDown.tsx +0 -49
- package/src/Components/Icons/Arrows/CaretLeft/CaretLeft.tsx +0 -102
- package/src/Components/Icons/Arrows/CaretRight/CaretRight.tsx +0 -102
- package/src/Components/Icons/Arrows/CaretUp/CaretUp.tsx +0 -49
- package/src/Components/Icons/Brand/WindowLogo/WindowLogo.tsx +0 -105
- package/src/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.tsx +0 -105
- package/src/Components/Icons/Communication/AddressBook/AddressBook.stories.ts +0 -28
- package/src/Components/Icons/Communication/AddressBook/AddressBook.tsx +0 -50
- package/src/Components/Icons/Communication/Asterick/Asterisk.stories.ts +0 -28
- package/src/Components/Icons/Communication/Asterick/Asterisk.tsx +0 -50
- package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.ts +0 -28
- package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.tsx +0 -49
- package/src/Components/Icons/Communication/At/At.stories.ts +0 -28
- package/src/Components/Icons/Communication/At/At.tsx +0 -49
- package/src/Components/Icons/Communication/Broadcast/Broadcast.stories.ts +0 -27
- package/src/Components/Icons/Communication/Broadcast/Broadcast.tsx +0 -49
- package/src/Components/Icons/Communication/Chat/Chat.stories.ts +0 -28
- package/src/Components/Icons/Communication/Chat/Chat.tsx +0 -49
- package/src/Components/Icons/Design/Eye/Eye.tsx +0 -105
- package/src/Components/Icons/Design/EyeSlash/EyeSlash.tsx +0 -105
- package/src/Components/Icons/IconProps.tsx +0 -5
- package/src/Components/Icons/MathAndFinance/XIcon/XIcon.tsx +0 -107
- package/src/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.tsx +0 -105
- package/src/Components/Icons/SystemAndDevice/Bell/Bell.tsx +0 -49
- package/src/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.tsx +0 -105
- package/src/Components/Icons/Time/CalendarBank/CalendarBank.tsx +0 -105
- package/src/Components/Icons/Time/Clock/Clock.tsx +0 -105
- package/src/Components/Layout/CalloutPopup/CalloutPopup.tsx +0 -5
- package/src/Components/Layout/Header/Header.tsx +0 -5
- package/src/Components/Layout/Header/HeaderLeft.tsx +0 -5
- package/src/Components/Layout/Header/HeaderRight.tsx +0 -5
- package/src/Components/Layout/Pagination/Pagination.tsx +0 -5
- package/src/Components/Layout/Pagination/PaginationFirst.tsx +0 -5
- package/src/Components/Layout/Pagination/PaginationLast.tsx +0 -5
- package/src/Components/Layout/Pagination/PaginationNext.tsx +0 -5
- package/src/Components/Layout/Pagination/PaginationNumber.tsx +0 -5
- package/src/Components/Layout/Pagination/PaginationPrevious.tsx +0 -5
- package/src/Components/Layout/ProfileAvatar/ProfileAvatar.stories.tsx +0 -22
- package/src/Components/Layout/ProfileAvatar/ProfileAvatar.tsx +0 -31
- package/src/Components/Layout/ProfileAvatar/ProfileAvatarProps.tsx +0 -10
- package/src/Components/Layout/ProfileAvatar/profileAvatar.module.scss +0 -35
- package/src/Components/Layout/ProfileDropdown/ProfileDropdown.stories.tsx +0 -67
- package/src/Components/Layout/ProfileDropdown/ProfileDropdown.tsx +0 -12
- package/src/Components/Layout/ProfileDropdown/ProfileHeader.tsx +0 -24
- package/src/Components/Layout/ProfileDropdown/ProfileHeaderProps.tsx +0 -8
- package/src/Components/Layout/ProfileDropdown/ProfileLink.tsx +0 -10
- package/src/Components/Layout/ProfileDropdown/ProfileLinks.tsx +0 -14
- package/src/Components/Layout/ProfileDropdown/ProfileNavigationItem.tsx +0 -29
- package/src/Components/Layout/ProfileDropdown/ProfileSwitchPanel.tsx +0 -79
- package/src/Components/Layout/ProfileDropdown/ProfileSwitchUser.tsx +0 -22
- package/src/Components/Layout/ProfileDropdown/profileDropdown.module.scss +0 -207
- package/src/Components/Layout/Sidebar/Sidebar.tsx +0 -5
- package/src/Components/Layout/Sidebar/SidebarChevron.tsx +0 -5
- package/src/Components/Layout/Sidebar/SidebarNavigation.tsx +0 -5
- package/src/Components/Layout/Sidebar/SidebarNavigationItem.tsx +0 -5
- package/src/Components/Layout/Sidebar/SidebarSubNavigation.tsx +0 -5
- package/src/Notification/Notification.tsx +0 -83
- package/src/Notification/NotificationInterface.tsx +0 -9
- package/src/Notification/NotificationList.tsx +0 -54
- package/src/Notification/NotificationListHolder.tsx +0 -14
- package/src/Notification/NotificationListHolderInterface.tsx +0 -8
- package/src/Notification/NotificationListInterface.tsx +0 -11
- package/src/Notification/notification.scss +0 -225
- package/src/global.scss +0 -224
- package/src/main.tsx +0 -10
- package/src/variables.scss +0 -2
- 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,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,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,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,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;
|