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