@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,27 +0,0 @@
|
|
|
1
|
-
import NotificationsHeaderProps from "./NotificationsHeaderProps";
|
|
2
|
-
import styles from "./notificationPanel.module.scss";
|
|
3
|
-
const NotificationsHeader = (props: NotificationsHeaderProps) => {
|
|
4
|
-
const { extraClass, markAllAsReadOnClick, showMarkAllAsRead } = props;
|
|
5
|
-
|
|
6
|
-
return (
|
|
7
|
-
<div className={`${styles.notificationheader} ${extraClass}`}>
|
|
8
|
-
<div className={styles.notificationHeaderWrapper}>
|
|
9
|
-
<div>
|
|
10
|
-
<h5>Notifications</h5>
|
|
11
|
-
</div>
|
|
12
|
-
<div>
|
|
13
|
-
{showMarkAllAsRead && (
|
|
14
|
-
<div
|
|
15
|
-
onClick={markAllAsReadOnClick}
|
|
16
|
-
className={styles.notificationMarkAllAction}
|
|
17
|
-
>
|
|
18
|
-
<h6>Mark all as Read</h6>
|
|
19
|
-
</div>
|
|
20
|
-
)}
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default NotificationsHeader;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import NotificationsPanelProps from "./NotificationsPanelProps";
|
|
2
|
-
import styles from "./notificationPanel.module.scss";
|
|
3
|
-
|
|
4
|
-
const NotificationsPanel = ({ children }: NotificationsPanelProps) => {
|
|
5
|
-
return <div className={styles.notificationPanel}>{children}</div>;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export default NotificationsPanel;
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
.notificationPanel {
|
|
2
|
-
border-radius: 8px;
|
|
3
|
-
width: 100%;
|
|
4
|
-
background: white;
|
|
5
|
-
box-shadow: var(--drop-shadow-default);
|
|
6
|
-
min-width: 320px;
|
|
7
|
-
max-width: 320px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.notificationheader {
|
|
11
|
-
border-bottom: 1px solid var(--color-gray-200);
|
|
12
|
-
|
|
13
|
-
.notificationHeaderWrapper {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: space-between;
|
|
17
|
-
padding: var(--spacing-1-1\/2) var(--spacing-2);
|
|
18
|
-
|
|
19
|
-
h5 {
|
|
20
|
-
font-size: var(--font-size-h5);
|
|
21
|
-
font-weight: var(--font-weight-h5);
|
|
22
|
-
line-height: var(--line-height-h5);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.notificationMarkAllAction {
|
|
26
|
-
h6 {
|
|
27
|
-
font-size: var(--font-size-body-sm);
|
|
28
|
-
font-weight: var(--font-weight-body-sm);
|
|
29
|
-
line-height: var(--line-height-body-sm);
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
transition: all 0.3s;
|
|
32
|
-
|
|
33
|
-
&:hover {
|
|
34
|
-
text-decoration: underline;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.notificationGrouplistHolder {
|
|
42
|
-
overflow-y: auto;
|
|
43
|
-
max-height: 500px;
|
|
44
|
-
|
|
45
|
-
&.spacing {
|
|
46
|
-
margin-right: 4px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&::-webkit-scrollbar {
|
|
50
|
-
width: 4px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&::-webkit-scrollbar-track {
|
|
54
|
-
background: none;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&::-webkit-scrollbar-thumb {
|
|
58
|
-
border-radius: 2px;
|
|
59
|
-
background: rgba(0, 0, 0, 0.1);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&::-webkit-scrollbar-thumb:hover {
|
|
63
|
-
background: rgba(0, 0, 0, 0.15);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.notificationGrouplist {
|
|
68
|
-
min-height: 70px;
|
|
69
|
-
list-style: none;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.notificationGroup {
|
|
73
|
-
padding: var(--spacing-1-1\/2) var(--spacing-2) var(--spacing-1\/2)
|
|
74
|
-
var(--spacing-2);
|
|
75
|
-
h6 {
|
|
76
|
-
color: var(--color-gray-600);
|
|
77
|
-
font-size: 12px;
|
|
78
|
-
font-style: normal;
|
|
79
|
-
font-weight: 600;
|
|
80
|
-
line-height: 22px;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.notificationNone {
|
|
85
|
-
min-height: 70px;
|
|
86
|
-
list-style: none;
|
|
87
|
-
display: flex;
|
|
88
|
-
align-items: center;
|
|
89
|
-
justify-content: center;
|
|
90
|
-
|
|
91
|
-
h6 {
|
|
92
|
-
color: var(--color-gray-600);
|
|
93
|
-
font-size: var(--font-size-body-sm);
|
|
94
|
-
font-weight: var(--font-weight-body-sm);
|
|
95
|
-
line-height: var(--line-height-body-sm);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.notificationList {
|
|
100
|
-
padding: var(--spacing-1) var(--spacing-2) var(--spacing-1)
|
|
101
|
-
var(--spacing-3\/4);
|
|
102
|
-
transition: background-color 0.2s linear;
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
|
|
105
|
-
&:hover {
|
|
106
|
-
background: var(--color-gray-100);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:hover .notificationListPip {
|
|
110
|
-
opacity: 0;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&:hover .notificationListCloseIcon {
|
|
114
|
-
opacity: 1;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.notificationListWrapper {
|
|
118
|
-
display: flex;
|
|
119
|
-
align-items: center;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.notificationListPip {
|
|
123
|
-
width: 8px;
|
|
124
|
-
height: 8px;
|
|
125
|
-
border-radius: 100%;
|
|
126
|
-
background: var(--color-primary-500);
|
|
127
|
-
position: absolute;
|
|
128
|
-
top: 50%;
|
|
129
|
-
left: 50%;
|
|
130
|
-
opacity: 1;
|
|
131
|
-
transform: translate(-50%, -50%);
|
|
132
|
-
transition: opacity 0.2s linear;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.notificationListCloseIcon {
|
|
136
|
-
display: flex;
|
|
137
|
-
align-items: center;
|
|
138
|
-
justify-content: center;
|
|
139
|
-
opacity: 0;
|
|
140
|
-
|
|
141
|
-
svg {
|
|
142
|
-
width: 12px;
|
|
143
|
-
height: 12px;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.notificationListIcon {
|
|
148
|
-
cursor: pointer;
|
|
149
|
-
position: relative;
|
|
150
|
-
display: flex;
|
|
151
|
-
align-items: center;
|
|
152
|
-
justify-content: center;
|
|
153
|
-
margin-right: var(--spacing-3\/4);
|
|
154
|
-
transition: opacity 0.2s linear;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.notificationListContent {
|
|
158
|
-
display: flex;
|
|
159
|
-
align-items: center;
|
|
160
|
-
justify-content: center;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.notificationListInitial {
|
|
164
|
-
flex-shrink: 0;
|
|
165
|
-
display: flex;
|
|
166
|
-
align-items: center;
|
|
167
|
-
justify-content: center;
|
|
168
|
-
width: 32px;
|
|
169
|
-
height: 32px;
|
|
170
|
-
background: var(--color-primary-700);
|
|
171
|
-
color: var(--color-lite);
|
|
172
|
-
border-radius: 100%;
|
|
173
|
-
margin-right: var(--spacing-3\/4);
|
|
174
|
-
|
|
175
|
-
.notificationListInitialWrapper {
|
|
176
|
-
--font-size-body-sm: 600;
|
|
177
|
-
font-size: var(--font-size-body-sm);
|
|
178
|
-
font-weight: var(--font-weight-body-sm);
|
|
179
|
-
line-height: var(--line-height-body-sm);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.notificationListDesc {
|
|
184
|
-
font-size: var(--font-size-body-xsm);
|
|
185
|
-
font-weight: var(--font-size-body-xsm);
|
|
186
|
-
line-height: var(--line-height-body-xsm);
|
|
187
|
-
|
|
188
|
-
.boldText {
|
|
189
|
-
font-weight: 600;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.summaryText {
|
|
193
|
-
color: var(--color-primary-500);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import {Meta, StoryObj} from '@storybook/react';
|
|
2
|
-
import {Tab} from './Tab.tsx';
|
|
3
|
-
import {TabNav} from './TabNav.tsx';
|
|
4
|
-
import {TabNavItem} from "./TabNavItem.tsx";
|
|
5
|
-
import {TabBody} from "./TabBody.tsx";
|
|
6
|
-
import {TabBodyContent} from "./TabBodyContent.tsx";
|
|
7
|
-
import './tab.stories.scss'
|
|
8
|
-
|
|
9
|
-
const meta: Meta = {
|
|
10
|
-
title: 'Data Display/Tab',
|
|
11
|
-
component: Tab,
|
|
12
|
-
tags: ['autodocs'],
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default meta;
|
|
16
|
-
|
|
17
|
-
type Story = StoryObj<typeof meta>;
|
|
18
|
-
|
|
19
|
-
const TabTemplate: Story = {
|
|
20
|
-
render: ({items}) => {
|
|
21
|
-
return (
|
|
22
|
-
<Tab>
|
|
23
|
-
<TabNav>
|
|
24
|
-
{items.map((item: any) => (
|
|
25
|
-
<TabNavItem tabIndex={item.index} title={`${item.title} ${item.index}`}/>
|
|
26
|
-
))}
|
|
27
|
-
</TabNav>
|
|
28
|
-
<TabBody extraClass={'tab-body--pd'}>
|
|
29
|
-
{items.map((item: any) => (
|
|
30
|
-
<TabBodyContent tabIndex={item.index}>
|
|
31
|
-
<div className={`typography`}>
|
|
32
|
-
<h3>Tab {item.index} content</h3>
|
|
33
|
-
<p>
|
|
34
|
-
{item.desc}
|
|
35
|
-
</p>
|
|
36
|
-
</div>
|
|
37
|
-
</TabBodyContent>
|
|
38
|
-
))}
|
|
39
|
-
</TabBody>
|
|
40
|
-
</Tab>
|
|
41
|
-
);
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const Example = {
|
|
46
|
-
...TabTemplate,
|
|
47
|
-
args: {
|
|
48
|
-
items: [
|
|
49
|
-
{
|
|
50
|
-
index:0,
|
|
51
|
-
title: 'Item',
|
|
52
|
-
desc: 'Sed fringilla magna facilisis auctor venenatis. Duis ut vestibulum risus. Nunc a finibus dui. Donec hendrerit tristique odio, ac porta dui maximus et. Duis vestibulum velit eget erat fermentum, fermentum mollis tortor tincindexunt. Integer lacinia lacinia urna scelerisque mattis. Fusce vestibulum felis eget magna placerat faucibus index et tellus. Sed rutrum mi sed leo viverra tempus. Nunc eu congue tellus, sed dapibus dui.'
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
index:1,
|
|
56
|
-
title: 'Item',
|
|
57
|
-
desc: 'Sed fringilla magna facilisis auctor venenatis. Duis ut vestibulum risus. Nunc a finibus dui. Donec hendrerit tristique odio, ac porta dui maximus et. Duis vestibulum velit eget erat fermentum, fermentum mollis tortor tincindexunt. Integer lacinia lacinia urna scelerisque mattis. Fusce vestibulum felis eget magna placerat faucibus index et tellus. Sed rutrum mi sed leo viverra tempus. Nunc eu congue tellus, sed dapibus dui.'
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
index:2,
|
|
61
|
-
title: 'Item',
|
|
62
|
-
desc: 'Sed fringilla magna facilisis auctor venenatis. Duis ut vestibulum risus. Nunc a finibus dui. Donec hendrerit tristique odio, ac porta dui maximus et. Duis vestibulum velit eget erat fermentum, fermentum mollis tortor tincindexunt. Integer lacinia lacinia urna scelerisque mattis. Fusce vestibulum felis eget magna placerat faucibus index et tellus. Sed rutrum mi sed leo viverra tempus. Nunc eu congue tellus, sed dapibus dui.'
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
index:3,
|
|
66
|
-
title: 'Item',
|
|
67
|
-
desc: 'Sed fringilla magna facilisis auctor venenatis. Duis ut vestibulum risus. Nunc a finibus dui. Donec hendrerit tristique odio, ac porta dui maximus et. Duis vestibulum velit eget erat fermentum, fermentum mollis tortor tincindexunt. Integer lacinia lacinia urna scelerisque mattis. Fusce vestibulum felis eget magna placerat faucibus index et tellus. Sed rutrum mi sed leo viverra tempus. Nunc eu congue tellus, sed dapibus dui.'
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
|
|
3
|
-
import TabContext from "./TabContext";
|
|
4
|
-
import TabInterface from "./TabProps.tsx";
|
|
5
|
-
import styles from "./tab.module.scss";
|
|
6
|
-
|
|
7
|
-
export const Tab = ({ children, extraClass }: TabInterface) => {
|
|
8
|
-
const [index, setIndex] = useState(0);
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<TabContext.Provider
|
|
12
|
-
value={{
|
|
13
|
-
currentIndex: index,
|
|
14
|
-
setCurrentIndex: setIndex,
|
|
15
|
-
}}
|
|
16
|
-
>
|
|
17
|
-
<div className={`${styles.tab} ${extraClass}`}>{children}</div>
|
|
18
|
-
</TabContext.Provider>
|
|
19
|
-
);
|
|
20
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useContext } from "react";
|
|
2
|
-
import TabContext from "./TabContext";
|
|
3
|
-
import TabBodyContentProps from "./TabBodyContentProps.tsx";
|
|
4
|
-
|
|
5
|
-
export const TabBodyContent = ({
|
|
6
|
-
children,
|
|
7
|
-
tabIndex,
|
|
8
|
-
extraClass,
|
|
9
|
-
}: TabBodyContentProps) => {
|
|
10
|
-
const tabContext = useContext(TabContext);
|
|
11
|
-
if (tabIndex === tabContext.currentIndex) {
|
|
12
|
-
return <div className={`${extraClass}`}>{children}</div>;
|
|
13
|
-
}
|
|
14
|
-
return <></>;
|
|
15
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { useContext } from "react";
|
|
2
|
-
import TabContext from "./TabContext";
|
|
3
|
-
import TabNavItemProps from "./TabNavItemProps.tsx";
|
|
4
|
-
import styles from "./tab.module.scss";
|
|
5
|
-
|
|
6
|
-
export const TabNavItem = (props: TabNavItemProps) => {
|
|
7
|
-
const {
|
|
8
|
-
title,
|
|
9
|
-
tabIndex,
|
|
10
|
-
onBeforeOpen = null,
|
|
11
|
-
onAfterOpened = null,
|
|
12
|
-
extraClass,
|
|
13
|
-
} = props;
|
|
14
|
-
const tabContext = useContext(TabContext);
|
|
15
|
-
|
|
16
|
-
let className = ` ${styles.tabNavItem}`;
|
|
17
|
-
if (tabContext.currentIndex === tabIndex) {
|
|
18
|
-
className += ` ${styles.active}`;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const setActive = (key: any) => {
|
|
22
|
-
let proceed = true;
|
|
23
|
-
if (onBeforeOpen) {
|
|
24
|
-
const ret = onBeforeOpen();
|
|
25
|
-
if (typeof ret === "boolean") {
|
|
26
|
-
proceed = ret;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
if (proceed) {
|
|
30
|
-
tabContext.setCurrentIndex(key);
|
|
31
|
-
if (onAfterOpened) {
|
|
32
|
-
onAfterOpened();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return (
|
|
38
|
-
<>
|
|
39
|
-
<div
|
|
40
|
-
className={className}
|
|
41
|
-
onClick={() => {
|
|
42
|
-
setActive(tabIndex);
|
|
43
|
-
}}
|
|
44
|
-
>
|
|
45
|
-
<span className={`${styles.item} ${extraClass}`}> {title}</span>
|
|
46
|
-
</div>
|
|
47
|
-
</>
|
|
48
|
-
);
|
|
49
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.tab {
|
|
2
|
-
width: 100%;
|
|
3
|
-
|
|
4
|
-
.tabNav {
|
|
5
|
-
display: flex;
|
|
6
|
-
width: 100%;
|
|
7
|
-
border-bottom: 1px solid var(--color-gray-300);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.tabNavItem {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: flex-start;
|
|
14
|
-
min-height: 54px;
|
|
15
|
-
border-width: 0 0 3px 0;
|
|
16
|
-
border-style: solid;
|
|
17
|
-
border-color: transparent;
|
|
18
|
-
transition: 0.4s;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
margin-right: var(--spacing-2);
|
|
21
|
-
|
|
22
|
-
&.active,
|
|
23
|
-
&:hover {
|
|
24
|
-
background: var(--color-table);
|
|
25
|
-
border-color: var(--color-primary-400);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.item {
|
|
30
|
-
padding-left: calc(var(--spacing) * 2.25);
|
|
31
|
-
font-size: var(--font-size-h4);
|
|
32
|
-
line-height: var(--line-height-h4);
|
|
33
|
-
font-weight: var(--font-weight-h4);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import Table from "./Table";
|
|
3
|
-
import TableHead from "./TableHead";
|
|
4
|
-
import TableHeaderCell from "./TableHeaderCell";
|
|
5
|
-
import TableRow from "./TableRow";
|
|
6
|
-
import TableBody from "./TableBody";
|
|
7
|
-
import TableCell from "./TableCell";
|
|
8
|
-
import TableCellWithDesc from "./TableCellWithDesc";
|
|
9
|
-
import TableCellWithImage from "./TableCellWithImage";
|
|
10
|
-
|
|
11
|
-
const meta: Meta = {
|
|
12
|
-
title: "Data Display / Table",
|
|
13
|
-
component: Table,
|
|
14
|
-
tags: ["autodocs"],
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export default meta;
|
|
18
|
-
|
|
19
|
-
type Story = StoryObj<typeof meta>;
|
|
20
|
-
|
|
21
|
-
const TableTemplate: Story = {
|
|
22
|
-
render: ({ items, ...args }) => {
|
|
23
|
-
return (
|
|
24
|
-
<Table {...args}>
|
|
25
|
-
<TableHead>
|
|
26
|
-
<TableRow>
|
|
27
|
-
<TableHeaderCell>Lorem ipsum</TableHeaderCell>
|
|
28
|
-
<TableHeaderCell>Lorem ipsum</TableHeaderCell>
|
|
29
|
-
<TableHeaderCell>Lorem ipsum</TableHeaderCell>
|
|
30
|
-
<TableHeaderCell>Lorem ipsum</TableHeaderCell>
|
|
31
|
-
</TableRow>
|
|
32
|
-
</TableHead>
|
|
33
|
-
<TableBody>
|
|
34
|
-
<TableRow>
|
|
35
|
-
<TableCellWithImage
|
|
36
|
-
image={"./image/table-image.png"}
|
|
37
|
-
heading={"Lorem ipsum"}
|
|
38
|
-
description={"Lorem ipsum"}
|
|
39
|
-
/>
|
|
40
|
-
<TableCellWithDesc
|
|
41
|
-
heading={"Lorem ipsum"}
|
|
42
|
-
description={"Lorem ipsum"}
|
|
43
|
-
/>
|
|
44
|
-
<TableCell>desc</TableCell>
|
|
45
|
-
<TableCell>desc</TableCell>
|
|
46
|
-
</TableRow>
|
|
47
|
-
<TableRow>
|
|
48
|
-
<TableCell>Lorem ipsum</TableCell>
|
|
49
|
-
<TableCellWithDesc
|
|
50
|
-
heading={"Lorem ipsum"}
|
|
51
|
-
description={"Lorem ipsum"}
|
|
52
|
-
/>
|
|
53
|
-
<TableCell>desc</TableCell>
|
|
54
|
-
<TableCell>desc</TableCell>
|
|
55
|
-
</TableRow>
|
|
56
|
-
</TableBody>
|
|
57
|
-
</Table>
|
|
58
|
-
);
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const Example = {
|
|
63
|
-
...TableTemplate,
|
|
64
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import TableProps from "./TableProps";
|
|
2
|
-
import styles from "./table.module.scss";
|
|
3
|
-
|
|
4
|
-
const Table = (props: TableProps) => {
|
|
5
|
-
const { children, extraClass } = props;
|
|
6
|
-
|
|
7
|
-
return <table className={`${styles.table} ${extraClass}`}>{children}</table>;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default Table;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import TableBodyProps from "./TableBodyProps";
|
|
2
|
-
import styles from "./table.module.scss";
|
|
3
|
-
|
|
4
|
-
const TableBody = (props: TableBodyProps) => {
|
|
5
|
-
const { children, extraClass = "" } = props;
|
|
6
|
-
return (
|
|
7
|
-
<>
|
|
8
|
-
<tbody className={`${styles.tableBody} ${extraClass} `}>{children}</tbody>
|
|
9
|
-
</>
|
|
10
|
-
);
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export default TableBody;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import TableCellProps from "./TableCellProps";
|
|
2
|
-
import styles from "./table.module.scss";
|
|
3
|
-
import cx from "classnames";
|
|
4
|
-
|
|
5
|
-
const TableCell = (props: TableCellProps) => {
|
|
6
|
-
const { children, rowspan, colspan, extraClass, align } = props;
|
|
7
|
-
const dataType = typeof children;
|
|
8
|
-
|
|
9
|
-
let tableCell = styles.tableCellAlignLeft;
|
|
10
|
-
|
|
11
|
-
if (align === "center") {
|
|
12
|
-
tableCell = styles.tableCellAlignCenter;
|
|
13
|
-
}
|
|
14
|
-
if (align === "right") {
|
|
15
|
-
tableCell = styles.tableCellAlignRight;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const combinedClassNames = cx(tableCell, extraClass);
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<td rowSpan={rowspan} colSpan={colspan} className={combinedClassNames}>
|
|
22
|
-
<>
|
|
23
|
-
{dataType === "string" && <p>{children}</p>}
|
|
24
|
-
{dataType !== "string" && <>{children}</>}
|
|
25
|
-
</>
|
|
26
|
-
</td>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export default TableCell;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import TableCellActionProps from "./TableCellActionProps";
|
|
2
|
-
import styles from "./table.module.scss";
|
|
3
|
-
|
|
4
|
-
const TableCellActions = (props: TableCellActionProps) => {
|
|
5
|
-
const { children, extraClass, rowspan, colspan, align } = props;
|
|
6
|
-
|
|
7
|
-
let tableCell = styles.tableCellAlignLeft;
|
|
8
|
-
|
|
9
|
-
if (align === "center") {
|
|
10
|
-
tableCell = styles.tableCellAlignCenter;
|
|
11
|
-
}
|
|
12
|
-
if (align === "right") {
|
|
13
|
-
tableCell = styles.tableCellAlignRight;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<td
|
|
18
|
-
rowSpan={rowspan}
|
|
19
|
-
colSpan={colspan}
|
|
20
|
-
className={`${styles.tableCell} ${extraClass} ${styles.tableCellActions}`}
|
|
21
|
-
>
|
|
22
|
-
<div className={tableCell}>{children}</div>
|
|
23
|
-
</td>
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default TableCellActions;
|