@namuna-nur/ui-kit 1.0.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 +338 -0
- package/lib/.gitkeep +0 -0
- package/lib/atoms/index.js +39 -0
- package/lib/hooks/index.js +8 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +152 -0
- package/lib/molecules/index.js +101 -0
- package/lib/setupTests.d.ts +0 -0
- package/lib/shared/Avatar.tokens.js +7510 -0
- package/lib/shared/MessageSettings.tokens.js +8693 -0
- package/lib/shared/TabDots.tokens.js +1075 -0
- package/lib/shared/twMerge.js +3535 -0
- package/lib/shared/useClickOutside.js +16 -0
- package/lib/shared/useDebounce.js +15 -0
- package/lib/shared/useOption.js +8 -0
- package/lib/src/_shared/Accordion.utils.d.ts +15 -0
- package/lib/src/_shared/Dropdown.utils.d.ts +27 -0
- package/lib/src/_shared/Modal.utils.d.ts +16 -0
- package/lib/src/_shared/Popover.utils.d.ts +5 -0
- package/lib/src/_shared/Tab.utils.d.ts +6 -0
- package/lib/src/_shared/index.d.ts +5 -0
- package/lib/src/_shared/types.d.ts +7 -0
- package/lib/src/assets/icons/index.d.ts +151 -0
- package/lib/src/assets/images/index.d.ts +11 -0
- package/lib/src/atoms/Avatar/Avatar.d.ts +2 -0
- package/lib/src/atoms/Avatar/Avatar.stories.d.ts +9 -0
- package/lib/src/atoms/Avatar/Avatar.test.d.ts +1 -0
- package/lib/src/atoms/Avatar/Avatar.tokens.d.ts +8 -0
- package/lib/src/atoms/Avatar/Avatar.types.d.ts +24 -0
- package/lib/src/atoms/Avatar/index.d.ts +3 -0
- package/lib/src/atoms/Button/Button.d.ts +16 -0
- package/lib/src/atoms/Button/Button.stories.d.ts +8 -0
- package/lib/src/atoms/Button/Button.test.d.ts +1 -0
- package/lib/src/atoms/Button/Button.tokens.d.ts +52 -0
- package/lib/src/atoms/Button/Button.types.d.ts +23 -0
- package/lib/src/atoms/Button/index.d.ts +3 -0
- package/lib/src/atoms/Checkbox/Checkbox.d.ts +5 -0
- package/lib/src/atoms/Checkbox/Checkbox.stories.d.ts +8 -0
- package/lib/src/atoms/Checkbox/Checkbox.test.d.ts +1 -0
- package/lib/src/atoms/Checkbox/Checkbox.tokens.d.ts +18 -0
- package/lib/src/atoms/Checkbox/Checkbox.types.d.ts +7 -0
- package/lib/src/atoms/Checkbox/index.d.ts +3 -0
- package/lib/src/atoms/Headline/Headline.d.ts +3 -0
- package/lib/src/atoms/Headline/Headline.stories.d.ts +8 -0
- package/lib/src/atoms/Headline/Headline.test.d.ts +1 -0
- package/lib/src/atoms/Headline/Headline.types.d.ts +13 -0
- package/lib/src/atoms/Headline/index.d.ts +2 -0
- package/lib/src/atoms/IconButton/IconButton.d.ts +13 -0
- package/lib/src/atoms/IconButton/IconButton.stories.d.ts +9 -0
- package/lib/src/atoms/IconButton/IconButton.test.d.ts +1 -0
- package/lib/src/atoms/IconButton/IconButton.tokens.d.ts +47 -0
- package/lib/src/atoms/IconButton/IconButton.types.d.ts +24 -0
- package/lib/src/atoms/IconButton/index.d.ts +3 -0
- package/lib/src/atoms/Input/Input.d.ts +11 -0
- package/lib/src/atoms/Input/Input.stories.d.ts +12 -0
- package/lib/src/atoms/Input/Input.test.d.ts +1 -0
- package/lib/src/atoms/Input/Input.tokens.d.ts +21 -0
- package/lib/src/atoms/Input/Input.types.d.ts +27 -0
- package/lib/src/atoms/Input/index.d.ts +3 -0
- package/lib/src/atoms/Label/Label.d.ts +4 -0
- package/lib/src/atoms/Label/Label.stories.d.ts +6 -0
- package/lib/src/atoms/Label/Label.test.d.ts +1 -0
- package/lib/src/atoms/Label/Label.tokens.d.ts +2 -0
- package/lib/src/atoms/Label/Label.types.d.ts +11 -0
- package/lib/src/atoms/Label/index.d.ts +3 -0
- package/lib/src/atoms/Message/Message.d.ts +8 -0
- package/lib/src/atoms/Message/Message.stories.d.ts +10 -0
- package/lib/src/atoms/Message/Message.test.d.ts +1 -0
- package/lib/src/atoms/Message/Message.tokens.d.ts +2 -0
- package/lib/src/atoms/Message/Message.types.d.ts +38 -0
- package/lib/src/atoms/Message/index.d.ts +3 -0
- package/lib/src/atoms/Notification/Notification.d.ts +2 -0
- package/lib/src/atoms/Notification/Notification.data.d.ts +7 -0
- package/lib/src/atoms/Notification/Notification.stories.d.ts +9 -0
- package/lib/src/atoms/Notification/Notification.test.d.ts +1 -0
- package/lib/src/atoms/Notification/Notification.types.d.ts +8 -0
- package/lib/src/atoms/Notification/Notification.utils.d.ts +20 -0
- package/lib/src/atoms/Notification/index.d.ts +2 -0
- package/lib/src/atoms/Radio/Radio.d.ts +5 -0
- package/lib/src/atoms/Radio/Radio.stories.d.ts +7 -0
- package/lib/src/atoms/Radio/Radio.test.d.ts +1 -0
- package/lib/src/atoms/Radio/Radio.tokens.d.ts +20 -0
- package/lib/src/atoms/Radio/Radio.types.d.ts +10 -0
- package/lib/src/atoms/Radio/index.d.ts +3 -0
- package/lib/src/atoms/Select/Select.d.ts +2 -0
- package/lib/src/atoms/Select/Select.stories.d.ts +13 -0
- package/lib/src/atoms/Select/Select.test.d.ts +1 -0
- package/lib/src/atoms/Select/Select.tokens.d.ts +43 -0
- package/lib/src/atoms/Select/Select.types.d.ts +30 -0
- package/lib/src/atoms/Select/index.d.ts +3 -0
- package/lib/src/atoms/Status/Status.d.ts +2 -0
- package/lib/src/atoms/Status/Status.stories.d.ts +9 -0
- package/lib/src/atoms/Status/Status.test.d.ts +1 -0
- package/lib/src/atoms/Status/Status.tokens.d.ts +10 -0
- package/lib/src/atoms/Status/Status.types.d.ts +8 -0
- package/lib/src/atoms/Status/index.d.ts +3 -0
- package/lib/src/atoms/Switch/Switch.d.ts +8 -0
- package/lib/src/atoms/Switch/Switch.stories.d.ts +6 -0
- package/lib/src/atoms/Switch/Switch.test.d.ts +1 -0
- package/lib/src/atoms/Switch/Switch.tokens.d.ts +2 -0
- package/lib/src/atoms/Switch/Switch.types.d.ts +19 -0
- package/lib/src/atoms/Switch/index.d.ts +3 -0
- package/lib/src/atoms/Tab/Tab.d.ts +10 -0
- package/lib/src/atoms/Tab/Tab.stories.d.ts +14 -0
- package/lib/src/atoms/Tab/Tab.test.d.ts +1 -0
- package/lib/src/atoms/Tab/Tab.tokens.d.ts +31 -0
- package/lib/src/atoms/Tab/Tab.types.d.ts +14 -0
- package/lib/src/atoms/Tab/index.d.ts +3 -0
- package/lib/src/atoms/TabDots/TabDots.d.ts +2 -0
- package/lib/src/atoms/TabDots/TabDots.stories.d.ts +5 -0
- package/lib/src/atoms/TabDots/TabDots.test.d.ts +1 -0
- package/lib/src/atoms/TabDots/TabDots.tokens.d.ts +5 -0
- package/lib/src/atoms/TabDots/TabDots.types.d.ts +12 -0
- package/lib/src/atoms/TabDots/index.d.ts +3 -0
- package/lib/src/atoms/Text/Text.d.ts +2 -0
- package/lib/src/atoms/Text/Text.stories.d.ts +10 -0
- package/lib/src/atoms/Text/Text.test.d.ts +1 -0
- package/lib/src/atoms/Text/Text.types.d.ts +14 -0
- package/lib/src/atoms/Text/index.d.ts +2 -0
- package/lib/src/atoms/Textarea/Teaxtarea.test.d.ts +1 -0
- package/lib/src/atoms/Textarea/Textarea.d.ts +5 -0
- package/lib/src/atoms/Textarea/Textarea.stories.d.ts +12 -0
- package/lib/src/atoms/Textarea/Textarea.tokens.d.ts +2 -0
- package/lib/src/atoms/Textarea/Textarea.types.d.ts +24 -0
- package/lib/src/atoms/Textarea/index.d.ts +3 -0
- package/lib/src/atoms/Toggle/Toggle.d.ts +11 -0
- package/lib/src/atoms/Toggle/Toggle.stories.d.ts +10 -0
- package/lib/src/atoms/Toggle/Toggle.test.d.ts +1 -0
- package/lib/src/atoms/Toggle/Toggle.tokens.d.ts +2 -0
- package/lib/src/atoms/Toggle/Toggle.types.d.ts +15 -0
- package/lib/src/atoms/Toggle/index.d.ts +3 -0
- package/lib/src/atoms/Tooltip/Tooltip.d.ts +2 -0
- package/lib/src/atoms/Tooltip/Tooltip.stories.d.ts +9 -0
- package/lib/src/atoms/Tooltip/Tooltip.test.d.ts +1 -0
- package/lib/src/atoms/Tooltip/Tooltip.tokens.d.ts +4 -0
- package/lib/src/atoms/Tooltip/Tooltip.types.d.ts +8 -0
- package/lib/src/atoms/Tooltip/index.d.ts +3 -0
- package/lib/src/atoms/index.d.ts +19 -0
- package/lib/src/context/use-toast.context.d.ts +10 -0
- package/lib/src/hooks/index.d.ts +3 -0
- package/lib/src/hooks/use-toast.d.ts +11 -0
- package/lib/src/hooks/use-toast.types.d.ts +32 -0
- package/lib/src/hooks/useClickOutside.d.ts +2 -0
- package/lib/src/hooks/useDebounce.d.ts +1 -0
- package/lib/src/hooks/useOption.d.ts +6 -0
- package/lib/src/index.d.ts +5 -0
- package/lib/src/molecules/Accordion/Accordion.d.ts +2 -0
- package/lib/src/molecules/Accordion/Accordion.stories.d.ts +7 -0
- package/lib/src/molecules/Accordion/Accordion.test.d.ts +1 -0
- package/lib/src/molecules/Accordion/Accordion.tokens.d.ts +19 -0
- package/lib/src/molecules/Accordion/Accordion.types.d.ts +27 -0
- package/lib/src/molecules/Accordion/index.d.ts +3 -0
- package/lib/src/molecules/ApartmentCard/ApartmentCard.d.ts +2 -0
- package/lib/src/molecules/ApartmentCard/ApartmentCard.data.d.ts +2 -0
- package/lib/src/molecules/ApartmentCard/ApartmentCard.stories.d.ts +5 -0
- package/lib/src/molecules/ApartmentCard/ApartmentCard.test.d.ts +1 -0
- package/lib/src/molecules/ApartmentCard/ApartmentCard.tokens.d.ts +12 -0
- package/lib/src/molecules/ApartmentCard/ApartmentCard.types.d.ts +26 -0
- package/lib/src/molecules/ApartmentCard/index.d.ts +3 -0
- package/lib/src/molecules/AvatarGroup/AvatarGroup.d.ts +2 -0
- package/lib/src/molecules/AvatarGroup/AvatarGroup.stories.d.ts +9 -0
- package/lib/src/molecules/AvatarGroup/AvatarGroup.test.d.ts +1 -0
- package/lib/src/molecules/AvatarGroup/AvatarGroup.tokens.d.ts +6 -0
- package/lib/src/molecules/AvatarGroup/AvatarGroup.types.d.ts +22 -0
- package/lib/src/molecules/AvatarGroup/index.d.ts +3 -0
- package/lib/src/molecules/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/lib/src/molecules/Breadcrumb/Breadcrumb.stories.d.ts +8 -0
- package/lib/src/molecules/Breadcrumb/Breadcrumb.test.d.ts +1 -0
- package/lib/src/molecules/Breadcrumb/Breadcrumb.tokens.d.ts +7 -0
- package/lib/src/molecules/Breadcrumb/Breadcrumb.types.d.ts +16 -0
- package/lib/src/molecules/Breadcrumb/Breadcrumb.utils.d.ts +11 -0
- package/lib/src/molecules/Breadcrumb/index.d.ts +3 -0
- package/lib/src/molecules/CardFiles/CardFiles.d.ts +2 -0
- package/lib/src/molecules/CardFiles/CardFiles.stories.d.ts +7 -0
- package/lib/src/molecules/CardFiles/CardFiles.test.d.ts +1 -0
- package/lib/src/molecules/CardFiles/CardFiles.tokens.d.ts +28 -0
- package/lib/src/molecules/CardFiles/CardFiles.types.d.ts +40 -0
- package/lib/src/molecules/CardFiles/index.d.ts +3 -0
- package/lib/src/molecules/CardServices/CardServices.d.ts +5 -0
- package/lib/src/molecules/CardServices/CardServices.stories.d.ts +6 -0
- package/lib/src/molecules/CardServices/CardServices.test.d.ts +1 -0
- package/lib/src/molecules/CardServices/CardServices.tokens.d.ts +17 -0
- package/lib/src/molecules/CardServices/CardServices.types.d.ts +18 -0
- package/lib/src/molecules/CardServices/index.d.ts +3 -0
- package/lib/src/molecules/ChatButton/ChatButton.d.ts +2 -0
- package/lib/src/molecules/ChatButton/ChatButton.stories.d.ts +6 -0
- package/lib/src/molecules/ChatButton/ChatButton.test.d.ts +1 -0
- package/lib/src/molecules/ChatButton/ChatButton.tokens.d.ts +12 -0
- package/lib/src/molecules/ChatButton/ChatButton.types.d.ts +18 -0
- package/lib/src/molecules/ChatButton/index.d.ts +3 -0
- package/lib/src/molecules/ChatCard/ChatCard.d.ts +3 -0
- package/lib/src/molecules/ChatCard/ChatCard.stories.d.ts +8 -0
- package/lib/src/molecules/ChatCard/ChatCard.test.d.ts +1 -0
- package/lib/src/molecules/ChatCard/ChatCard.tokens.d.ts +9 -0
- package/lib/src/molecules/ChatCard/ChatCard.types.d.ts +18 -0
- package/lib/src/molecules/ChatCard/index.d.ts +3 -0
- package/lib/src/molecules/ChatList/ChatList.d.ts +3 -0
- package/lib/src/molecules/ChatList/ChatList.stories.d.ts +5 -0
- package/lib/src/molecules/ChatList/ChatList.test.d.ts +1 -0
- package/lib/src/molecules/ChatList/ChatList.tokens.d.ts +4 -0
- package/lib/src/molecules/ChatList/ChatList.types.d.ts +14 -0
- package/lib/src/molecules/ChatList/index.d.ts +3 -0
- package/lib/src/molecules/ChatMessage/ChatMessage.d.ts +2 -0
- package/lib/src/molecules/ChatMessage/ChatMessage.data.d.ts +3 -0
- package/lib/src/molecules/ChatMessage/ChatMessage.stories.d.ts +9 -0
- package/lib/src/molecules/ChatMessage/ChatMessage.test.d.ts +1 -0
- package/lib/src/molecules/ChatMessage/ChatMessage.tokens.d.ts +6 -0
- package/lib/src/molecules/ChatMessage/ChatMessage.types.d.ts +19 -0
- package/lib/src/molecules/ChatMessage/index.d.ts +3 -0
- package/lib/src/molecules/ChatSidebar/ChatSidebar.d.ts +2 -0
- package/lib/src/molecules/ChatSidebar/ChatSidebar.data.d.ts +4 -0
- package/lib/src/molecules/ChatSidebar/ChatSidebar.stories.d.ts +36 -0
- package/lib/src/molecules/ChatSidebar/ChatSidebar.test.d.ts +1 -0
- package/lib/src/molecules/ChatSidebar/ChatSidebar.tokens.d.ts +7 -0
- package/lib/src/molecules/ChatSidebar/ChatSidebar.types.d.ts +35 -0
- package/lib/src/molecules/ChatSidebar/index.d.ts +3 -0
- package/lib/src/molecules/CheckboxGroup/CheckboxGroup.d.ts +2 -0
- package/lib/src/molecules/CheckboxGroup/CheckboxGroup.stories.d.ts +8 -0
- package/lib/src/molecules/CheckboxGroup/CheckboxGroup.test.d.ts +1 -0
- package/lib/src/molecules/CheckboxGroup/CheckboxGroup.tokens.d.ts +16 -0
- package/lib/src/molecules/CheckboxGroup/CheckboxGroup.types.d.ts +8 -0
- package/lib/src/molecules/CheckboxGroup/index.d.ts +3 -0
- package/lib/src/molecules/CommentInput/CommentInput.d.ts +3 -0
- package/lib/src/molecules/CommentInput/CommentInput.stories.d.ts +8 -0
- package/lib/src/molecules/CommentInput/CommentInput.test.d.ts +1 -0
- package/lib/src/molecules/CommentInput/CommentInput.tokens.d.ts +9 -0
- package/lib/src/molecules/CommentInput/CommentInput.types.d.ts +29 -0
- package/lib/src/molecules/CommentInput/index.d.ts +3 -0
- package/lib/src/molecules/CommentList/CommentList.d.ts +3 -0
- package/lib/src/molecules/CommentList/CommentList.stories.d.ts +7 -0
- package/lib/src/molecules/CommentList/CommentList.test.d.ts +1 -0
- package/lib/src/molecules/CommentList/CommentList.tokens.d.ts +35 -0
- package/lib/src/molecules/CommentList/CommentList.types.d.ts +21 -0
- package/lib/src/molecules/CommentList/index.d.ts +3 -0
- package/lib/src/molecules/DateOfBirth/DateOfBirth.d.ts +2 -0
- package/lib/src/molecules/DateOfBirth/DateOfBirth.stories.d.ts +10 -0
- package/lib/src/molecules/DateOfBirth/DateOfBirth.test.d.ts +1 -0
- package/lib/src/molecules/DateOfBirth/DateOfBirth.tokens.d.ts +6 -0
- package/lib/src/molecules/DateOfBirth/DateOfBirth.types.d.ts +13 -0
- package/lib/src/molecules/DateOfBirth/index.d.ts +3 -0
- package/lib/src/molecules/DatePicker/DatePicker.d.ts +2 -0
- package/lib/src/molecules/DatePicker/DatePicker.stories.d.ts +8 -0
- package/lib/src/molecules/DatePicker/DatePicker.test.d.ts +1 -0
- package/lib/src/molecules/DatePicker/DatePicker.tokens.d.ts +57 -0
- package/lib/src/molecules/DatePicker/DatePicker.types.d.ts +18 -0
- package/lib/src/molecules/DatePicker/index.d.ts +3 -0
- package/lib/src/molecules/DeleteMessage/DeleteMessage.d.ts +2 -0
- package/lib/src/molecules/DeleteMessage/DeleteMessage.stories.d.ts +6 -0
- package/lib/src/molecules/DeleteMessage/DeleteMessage.test.d.ts +1 -0
- package/lib/src/molecules/DeleteMessage/DeleteMessage.tokens.d.ts +9 -0
- package/lib/src/molecules/DeleteMessage/DeleteMessage.types.d.ts +13 -0
- package/lib/src/molecules/DeleteMessage/index.d.ts +3 -0
- package/lib/src/molecules/DragAndDrop/DragAndDrop.d.ts +2 -0
- package/lib/src/molecules/DragAndDrop/DragAndDrop.stories.d.ts +14 -0
- package/lib/src/molecules/DragAndDrop/DragAndDrop.test.d.ts +1 -0
- package/lib/src/molecules/DragAndDrop/DragAndDrop.tokens.d.ts +2 -0
- package/lib/src/molecules/DragAndDrop/DragAndDrop.types.d.ts +19 -0
- package/lib/src/molecules/DragAndDrop/index.d.ts +3 -0
- package/lib/src/molecules/Dropdown/Dropdown.d.ts +3 -0
- package/lib/src/molecules/Dropdown/Dropdown.stories.d.ts +6 -0
- package/lib/src/molecules/Dropdown/Dropdown.test.d.ts +1 -0
- package/lib/src/molecules/Dropdown/Dropdown.tokens.d.ts +13 -0
- package/lib/src/molecules/Dropdown/Dropdown.types.d.ts +20 -0
- package/lib/src/molecules/Dropdown/index.d.ts +3 -0
- package/lib/src/molecules/FileUploader/FileUploader.d.ts +2 -0
- package/lib/src/molecules/FileUploader/FileUploader.stories.d.ts +7 -0
- package/lib/src/molecules/FileUploader/FileUploader.test.d.ts +1 -0
- package/lib/src/molecules/FileUploader/FileUploader.tokens.d.ts +19 -0
- package/lib/src/molecules/FileUploader/FileUploader.types.d.ts +18 -0
- package/lib/src/molecules/FileUploader/index.d.ts +3 -0
- package/lib/src/molecules/FilterTable/FilterTable.d.ts +2 -0
- package/lib/src/molecules/FilterTable/FilterTable.stories.d.ts +8 -0
- package/lib/src/molecules/FilterTable/FilterTable.test.d.ts +1 -0
- package/lib/src/molecules/FilterTable/FilterTable.tokens.d.ts +19 -0
- package/lib/src/molecules/FilterTable/FilterTable.types.d.ts +35 -0
- package/lib/src/molecules/FilterTable/index.d.ts +3 -0
- package/lib/src/molecules/IconTitle/IconTitle.d.ts +2 -0
- package/lib/src/molecules/IconTitle/IconTitle.stories.d.ts +6 -0
- package/lib/src/molecules/IconTitle/IconTitle.test.d.ts +1 -0
- package/lib/src/molecules/IconTitle/IconTitle.tokens.d.ts +5 -0
- package/lib/src/molecules/IconTitle/IconTitle.types.d.ts +20 -0
- package/lib/src/molecules/IconTitle/index.d.ts +3 -0
- package/lib/src/molecules/InputGroup/InputGroup.d.ts +2 -0
- package/lib/src/molecules/InputGroup/InputGroup.stories.d.ts +11 -0
- package/lib/src/molecules/InputGroup/InputGroup.test.d.ts +1 -0
- package/lib/src/molecules/InputGroup/InputGroup.tokens.d.ts +34 -0
- package/lib/src/molecules/InputGroup/InputGroup.types.d.ts +34 -0
- package/lib/src/molecules/InputGroup/index.d.ts +3 -0
- package/lib/src/molecules/LabelWithValue/LabelWithValue.d.ts +2 -0
- package/lib/src/molecules/LabelWithValue/LabelWithValue.stories.d.ts +5 -0
- package/lib/src/molecules/LabelWithValue/LabelWithValue.test.d.ts +1 -0
- package/lib/src/molecules/LabelWithValue/LabelWithValue.tokens.d.ts +4 -0
- package/lib/src/molecules/LabelWithValue/LabelWithValue.types.d.ts +12 -0
- package/lib/src/molecules/LabelWithValue/index.d.ts +3 -0
- package/lib/src/molecules/Languages/Languages.d.ts +2 -0
- package/lib/src/molecules/Languages/Languages.stories.d.ts +5 -0
- package/lib/src/molecules/Languages/Languages.test.d.ts +1 -0
- package/lib/src/molecules/Languages/Languages.tokens.d.ts +4 -0
- package/lib/src/molecules/Languages/Languages.types.d.ts +23 -0
- package/lib/src/molecules/Languages/index.d.ts +3 -0
- package/lib/src/molecules/Link/Link.d.ts +2 -0
- package/lib/src/molecules/Link/Link.stories.d.ts +7 -0
- package/lib/src/molecules/Link/Link.test.d.ts +1 -0
- package/lib/src/molecules/Link/Link.tokens.d.ts +9 -0
- package/lib/src/molecules/Link/Link.types.d.ts +15 -0
- package/lib/src/molecules/Link/index.d.ts +3 -0
- package/lib/src/molecules/MessageSettings/MessageSettings.d.ts +2 -0
- package/lib/src/molecules/MessageSettings/MessageSettings.stories.d.ts +5 -0
- package/lib/src/molecules/MessageSettings/MessageSettings.test.d.ts +1 -0
- package/lib/src/molecules/MessageSettings/MessageSettings.tokens.d.ts +13 -0
- package/lib/src/molecules/MessageSettings/MessageSettings.types.d.ts +21 -0
- package/lib/src/molecules/MessageSettings/MessageSettings.utils.d.ts +2 -0
- package/lib/src/molecules/MessageSettings/index.d.ts +3 -0
- package/lib/src/molecules/MultiSelect/MultiSelect.d.ts +2 -0
- package/lib/src/molecules/MultiSelect/MultiSelect.stories.d.ts +7 -0
- package/lib/src/molecules/MultiSelect/MultiSelect.test.d.ts +1 -0
- package/lib/src/molecules/MultiSelect/MultiSelect.tokens.d.ts +2 -0
- package/lib/src/molecules/MultiSelect/MultiSelect.types.d.ts +60 -0
- package/lib/src/molecules/MultiSelect/index.d.ts +3 -0
- package/lib/src/molecules/NavButton/NavButton.d.ts +2 -0
- package/lib/src/molecules/NavButton/NavButton.stories.d.ts +9 -0
- package/lib/src/molecules/NavButton/NavButton.test.d.ts +1 -0
- package/lib/src/molecules/NavButton/NavButton.tokens.d.ts +15 -0
- package/lib/src/molecules/NavButton/NavButton.types.d.ts +26 -0
- package/lib/src/molecules/NavButton/index.d.ts +3 -0
- package/lib/src/molecules/Pagination/Pagination.d.ts +2 -0
- package/lib/src/molecules/Pagination/Pagination.stories.d.ts +7 -0
- package/lib/src/molecules/Pagination/Pagination.test.d.ts +1 -0
- package/lib/src/molecules/Pagination/Pagination.tokens.d.ts +28 -0
- package/lib/src/molecules/Pagination/Pagination.types.d.ts +16 -0
- package/lib/src/molecules/Pagination/Pagination.utils.d.ts +1 -0
- package/lib/src/molecules/Pagination/index.d.ts +3 -0
- package/lib/src/molecules/PasswordInput/PasswordInput.d.ts +2 -0
- package/lib/src/molecules/PasswordInput/PasswordInput.stories.d.ts +12 -0
- package/lib/src/molecules/PasswordInput/PasswordInput.test.d.ts +1 -0
- package/lib/src/molecules/PasswordInput/PasswordInput.tokens.d.ts +2 -0
- package/lib/src/molecules/PasswordInput/PasswordInput.types.d.ts +19 -0
- package/lib/src/molecules/PasswordInput/index.d.ts +3 -0
- package/lib/src/molecules/PaymentCard/PaymentCard.d.ts +2 -0
- package/lib/src/molecules/PaymentCard/PaymentCard.stories.d.ts +5 -0
- package/lib/src/molecules/PaymentCard/PaymentCard.test.d.ts +1 -0
- package/lib/src/molecules/PaymentCard/PaymentCard.tokens.d.ts +20 -0
- package/lib/src/molecules/PaymentCard/PaymentCard.types.d.ts +19 -0
- package/lib/src/molecules/PaymentCard/index.d.ts +3 -0
- package/lib/src/molecules/PhoneInput/PhoneInput.d.ts +2 -0
- package/lib/src/molecules/PhoneInput/PhoneInput.stories.d.ts +10 -0
- package/lib/src/molecules/PhoneInput/PhoneInput.test.d.ts +1 -0
- package/lib/src/molecules/PhoneInput/PhoneInput.tokens.d.ts +2 -0
- package/lib/src/molecules/PhoneInput/PhoneInput.types.d.ts +27 -0
- package/lib/src/molecules/PhoneInput/index.d.ts +3 -0
- package/lib/src/molecules/Plate/Plate.d.ts +4 -0
- package/lib/src/molecules/Plate/Plate.stories.d.ts +7 -0
- package/lib/src/molecules/Plate/Plate.test.d.ts +1 -0
- package/lib/src/molecules/Plate/Plate.tokens.d.ts +2 -0
- package/lib/src/molecules/Plate/Plate.types.d.ts +36 -0
- package/lib/src/molecules/Plate/index.d.ts +3 -0
- package/lib/src/molecules/RadioGroup/RadioGroup.d.ts +11 -0
- package/lib/src/molecules/RadioGroup/RadioGroup.stories.d.ts +7 -0
- package/lib/src/molecules/RadioGroup/RadioGroup.test.d.ts +1 -0
- package/lib/src/molecules/RadioGroup/RadioGroup.tokens.d.ts +13 -0
- package/lib/src/molecules/RadioGroup/RadioGroup.types.d.ts +14 -0
- package/lib/src/molecules/RadioGroup/index.d.ts +3 -0
- package/lib/src/molecules/SearchInput/SearchInput.d.ts +22 -0
- package/lib/src/molecules/SearchInput/SearchInput.stories.d.ts +7 -0
- package/lib/src/molecules/SearchInput/SearchInput.test.d.ts +1 -0
- package/lib/src/molecules/SearchInput/SearchInput.tokens.d.ts +42 -0
- package/lib/src/molecules/SearchInput/SearchInput.types.d.ts +38 -0
- package/lib/src/molecules/SearchInput/index.d.ts +3 -0
- package/lib/src/molecules/SelectGroup/SelectGroup.d.ts +2 -0
- package/lib/src/molecules/SelectGroup/SelectGroup.stories.d.ts +6 -0
- package/lib/src/molecules/SelectGroup/SelectGroup.test.d.ts +1 -0
- package/lib/src/molecules/SelectGroup/SelectGroup.tokens.d.ts +3 -0
- package/lib/src/molecules/SelectGroup/SelectGroup.types.d.ts +12 -0
- package/lib/src/molecules/SelectGroup/index.d.ts +3 -0
- package/lib/src/molecules/SelectList/SelectList.d.ts +2 -0
- package/lib/src/molecules/SelectList/SelectList.stories.d.ts +7 -0
- package/lib/src/molecules/SelectList/SelectList.test.d.ts +1 -0
- package/lib/src/molecules/SelectList/SelectList.tokens.d.ts +29 -0
- package/lib/src/molecules/SelectList/SelectList.types.d.ts +20 -0
- package/lib/src/molecules/SelectList/index.d.ts +3 -0
- package/lib/src/molecules/ServiceOrders/ServiceOrders.d.ts +2 -0
- package/lib/src/molecules/ServiceOrders/ServiceOrders.data.d.ts +2 -0
- package/lib/src/molecules/ServiceOrders/ServiceOrders.stories.d.ts +5 -0
- package/lib/src/molecules/ServiceOrders/ServiceOrders.test.d.ts +1 -0
- package/lib/src/molecules/ServiceOrders/ServiceOrders.tokens.d.ts +11 -0
- package/lib/src/molecules/ServiceOrders/ServiceOrders.types.d.ts +19 -0
- package/lib/src/molecules/ServiceOrders/index.d.ts +3 -0
- package/lib/src/molecules/Sidebar/Sidebar.d.ts +2 -0
- package/lib/src/molecules/Sidebar/Sidebar.data.d.ts +2 -0
- package/lib/src/molecules/Sidebar/Sidebar.stories.d.ts +7 -0
- package/lib/src/molecules/Sidebar/Sidebar.test.d.ts +1 -0
- package/lib/src/molecules/Sidebar/Sidebar.tokens.d.ts +12 -0
- package/lib/src/molecules/Sidebar/Sidebar.types.d.ts +20 -0
- package/lib/src/molecules/Sidebar/Sidebar.utils.d.ts +2 -0
- package/lib/src/molecules/Sidebar/index.d.ts +3 -0
- package/lib/src/molecules/StatusSelect/StatusSelect.d.ts +2 -0
- package/lib/src/molecules/StatusSelect/StatusSelect.stories.d.ts +5 -0
- package/lib/src/molecules/StatusSelect/StatusSelect.test.d.ts +1 -0
- package/lib/src/molecules/StatusSelect/StatusSelect.tokens.d.ts +28 -0
- package/lib/src/molecules/StatusSelect/StatusSelect.types.d.ts +25 -0
- package/lib/src/molecules/StatusSelect/index.d.ts +3 -0
- package/lib/src/molecules/Stepper/Stepper.d.ts +2 -0
- package/lib/src/molecules/Stepper/Stepper.stories.d.ts +8 -0
- package/lib/src/molecules/Stepper/Stepper.test.d.ts +1 -0
- package/lib/src/molecules/Stepper/Stepper.tokens.d.ts +21 -0
- package/lib/src/molecules/Stepper/Stepper.types.d.ts +33 -0
- package/lib/src/molecules/Stepper/index.d.ts +3 -0
- package/lib/src/molecules/TabGroup/TabGroup.d.ts +3 -0
- package/lib/src/molecules/TabGroup/TabGroup.stories.d.ts +6 -0
- package/lib/src/molecules/TabGroup/TabGroup.test.d.ts +1 -0
- package/lib/src/molecules/TabGroup/TabGroup.tokens.d.ts +26 -0
- package/lib/src/molecules/TabGroup/TabGroup.types.d.ts +33 -0
- package/lib/src/molecules/TabGroup/TabGroup.utils.d.ts +2 -0
- package/lib/src/molecules/TabGroup/index.d.ts +3 -0
- package/lib/src/molecules/TabSwitch/TabSwitch.d.ts +3 -0
- package/lib/src/molecules/TabSwitch/TabSwitch.stories.d.ts +5 -0
- package/lib/src/molecules/TabSwitch/TabSwitch.test.d.ts +1 -0
- package/lib/src/molecules/TabSwitch/TabSwitch.tokens.d.ts +10 -0
- package/lib/src/molecules/TabSwitch/TabSwitch.types.d.ts +28 -0
- package/lib/src/molecules/TabSwitch/TabSwitch.utils.d.ts +2 -0
- package/lib/src/molecules/TabSwitch/index.d.ts +3 -0
- package/lib/src/molecules/Table/Table.d.ts +2 -0
- package/lib/src/molecules/Table/Table.stories.d.ts +5 -0
- package/lib/src/molecules/Table/Table.test.d.ts +1 -0
- package/lib/src/molecules/Table/Table.tokens.d.ts +14 -0
- package/lib/src/molecules/Table/Table.types.d.ts +18 -0
- package/lib/src/molecules/Table/index.d.ts +3 -0
- package/lib/src/molecules/Table/mocks/data.d.ts +15 -0
- package/lib/src/molecules/TextareaGroup/TextareaGroup.d.ts +2 -0
- package/lib/src/molecules/TextareaGroup/TextareaGroup.stories.d.ts +8 -0
- package/lib/src/molecules/TextareaGroup/TextareaGroup.test.d.ts +1 -0
- package/lib/src/molecules/TextareaGroup/TextareaGroup.tokens.d.ts +2 -0
- package/lib/src/molecules/TextareaGroup/TextareaGroup.types.d.ts +13 -0
- package/lib/src/molecules/TextareaGroup/index.d.ts +3 -0
- package/lib/src/molecules/ToggleGroup/ToggleGroup.d.ts +2 -0
- package/lib/src/molecules/ToggleGroup/ToggleGroup.stories.d.ts +9 -0
- package/lib/src/molecules/ToggleGroup/ToggleGroup.test.d.ts +1 -0
- package/lib/src/molecules/ToggleGroup/ToggleGroup.types.d.ts +12 -0
- package/lib/src/molecules/ToggleGroup/ToogleGroup.tokens.d.ts +3 -0
- package/lib/src/molecules/ToggleGroup/index.d.ts +3 -0
- package/lib/src/molecules/UploadInput/UploadInput.d.ts +18 -0
- package/lib/src/molecules/UploadInput/UploadInput.stories.d.ts +8 -0
- package/lib/src/molecules/UploadInput/UploadInput.test.d.ts +1 -0
- package/lib/src/molecules/UploadInput/UploadInput.tokens.d.ts +17 -0
- package/lib/src/molecules/UploadInput/UploadInput.types.d.ts +30 -0
- package/lib/src/molecules/UploadInput/UploadInput.utils.d.ts +3 -0
- package/lib/src/molecules/UploadInput/index.d.ts +3 -0
- package/lib/src/molecules/UserContact/UserContact.d.ts +2 -0
- package/lib/src/molecules/UserContact/UserContact.stories.d.ts +8 -0
- package/lib/src/molecules/UserContact/UserContact.test.d.ts +1 -0
- package/lib/src/molecules/UserContact/UserContact.tokens.d.ts +10 -0
- package/lib/src/molecules/UserContact/UserContact.types.d.ts +15 -0
- package/lib/src/molecules/UserContact/index.d.ts +3 -0
- package/lib/src/molecules/index.d.ts +49 -0
- package/lib/src/tokens/colors.d.ts +2 -0
- package/lib/src/tokens/index.d.ts +3 -0
- package/lib/src/tokens/types.d.ts +36 -0
- package/lib/src/tokens/typography.d.ts +2 -0
- package/lib/src/utils/date.d.ts +1 -0
- package/lib/src/utils/index.d.ts +2 -0
- package/lib/src/utils/twMerge.d.ts +7 -0
- package/lib/tokens/index.js +248 -0
- package/lib/utils/index.js +11 -0
- package/lib/vite.config.d.ts +2 -0
- package/package.json +163 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { LabelWithValue } from '..';
|
|
4
|
+
export type LabelWithValueStory = StoryObj<typeof LabelWithValue>;
|
|
5
|
+
export type LabelWithValueProps = {
|
|
6
|
+
value?: string | React.ReactNode;
|
|
7
|
+
label?: string;
|
|
8
|
+
classNames?: {
|
|
9
|
+
label?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import { Languages } from '..';
|
|
4
|
+
export type LanguagesStory = StoryObj<typeof Languages>;
|
|
5
|
+
export type languagesType = {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
export type LanguagesProps = {
|
|
10
|
+
options: languagesType[];
|
|
11
|
+
onCheckboxChange?: (value: languagesType) => void;
|
|
12
|
+
open?: boolean;
|
|
13
|
+
setOpen?: Dispatch<SetStateAction<boolean>>;
|
|
14
|
+
triggerElement: React.ReactNode;
|
|
15
|
+
selectedValue?: languagesType;
|
|
16
|
+
classNames?: {
|
|
17
|
+
base?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const languages: {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { Link, LinkStory } from '..';
|
|
3
|
+
declare const meta: Meta<typeof Link>;
|
|
4
|
+
export declare const Normal: LinkStory;
|
|
5
|
+
export declare const Disabled: LinkStory;
|
|
6
|
+
export declare const WithoutIcon: LinkStory;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { Link } from './Link';
|
|
4
|
+
import { FontWeightClass, TypographyTokens } from '../../tokens';
|
|
5
|
+
export type LinkStory = StoryObj<typeof Link>;
|
|
6
|
+
export type LinkVariant = keyof TypographyTokens['textStyles']['link'];
|
|
7
|
+
export type LinkProps = {
|
|
8
|
+
weight?: FontWeightClass;
|
|
9
|
+
children?: ReactNode | string;
|
|
10
|
+
href: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
isIconVisible?: boolean;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { FunctionComponent, ReactNode, SVGProps } from 'react';
|
|
3
|
+
import { MessageSettings } from '..';
|
|
4
|
+
export type MessageSettingsStory = StoryObj<typeof MessageSettings>;
|
|
5
|
+
export type OnHandleSettings = (actionId: MessageSettingsEventType) => void;
|
|
6
|
+
export type MessageSettingsProps = {
|
|
7
|
+
trigger: ReactNode;
|
|
8
|
+
onClick: OnHandleSettings;
|
|
9
|
+
};
|
|
10
|
+
export type MessageSettingsEventType = 'copy' | 'edit' | 'delete' | 'select' | 'response' | 'download';
|
|
11
|
+
export type MessageSettingsDataType = {
|
|
12
|
+
id: MessageSettingsEventType;
|
|
13
|
+
icon: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
14
|
+
iconSizes?: {
|
|
15
|
+
height?: number;
|
|
16
|
+
width?: number;
|
|
17
|
+
viewBox?: string;
|
|
18
|
+
};
|
|
19
|
+
isDanger?: boolean;
|
|
20
|
+
text: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { MultiSelectStory, MultiSelect } from '..';
|
|
3
|
+
declare const meta: Meta<typeof MultiSelect>;
|
|
4
|
+
export declare const Default: MultiSelectStory;
|
|
5
|
+
export declare const Disabled: MultiSelectStory;
|
|
6
|
+
export declare const NoSearch: MultiSelectStory;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import { MultiSelect } from './MultiSelect';
|
|
4
|
+
export type MultiSelectStory = StoryObj<typeof MultiSelect>;
|
|
5
|
+
export type MultiSelectRef = {
|
|
6
|
+
open: () => void;
|
|
7
|
+
close: () => void;
|
|
8
|
+
toggle: () => void;
|
|
9
|
+
focus: () => void;
|
|
10
|
+
};
|
|
11
|
+
export type MultiSelectOption = {
|
|
12
|
+
label: string;
|
|
13
|
+
id: string | number;
|
|
14
|
+
};
|
|
15
|
+
export type MultiSelectTokens = {
|
|
16
|
+
trigger: string;
|
|
17
|
+
label: string;
|
|
18
|
+
text: string;
|
|
19
|
+
hoverTrigger: string;
|
|
20
|
+
focusTrigger: string;
|
|
21
|
+
options: string;
|
|
22
|
+
option: string;
|
|
23
|
+
selectedItems: string;
|
|
24
|
+
selectedItem: string;
|
|
25
|
+
selectedItemText: string;
|
|
26
|
+
closeIcon: string;
|
|
27
|
+
arrowIcon: string;
|
|
28
|
+
wrapperInput: string;
|
|
29
|
+
input: string;
|
|
30
|
+
plusIcon: string;
|
|
31
|
+
noItemsFound: string;
|
|
32
|
+
buttons: string;
|
|
33
|
+
button: {
|
|
34
|
+
base: string;
|
|
35
|
+
save: string;
|
|
36
|
+
cancel: string;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
trigger: string;
|
|
40
|
+
text: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export type MultiSelectProps = {
|
|
44
|
+
label?: string;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
placeholder?: string;
|
|
47
|
+
isSearchable?: boolean;
|
|
48
|
+
options: MultiSelectOption[];
|
|
49
|
+
selectedItems: MultiSelectOption[];
|
|
50
|
+
setSelectedItems: Dispatch<SetStateAction<MultiSelectOption[]>>;
|
|
51
|
+
classNames?: {
|
|
52
|
+
wrapper?: string;
|
|
53
|
+
label?: string;
|
|
54
|
+
trigger?: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare const items: {
|
|
58
|
+
id: number;
|
|
59
|
+
label: string;
|
|
60
|
+
}[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { NavButtonStory, NavButton } from '..';
|
|
3
|
+
declare const meta: Meta<typeof NavButton>;
|
|
4
|
+
export declare const Default: NavButtonStory;
|
|
5
|
+
export declare const WithBadge: NavButtonStory;
|
|
6
|
+
export declare const Active: NavButtonStory;
|
|
7
|
+
export declare const Disabled: NavButtonStory;
|
|
8
|
+
export declare const Collapsed: NavButtonStory;
|
|
9
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const navButtonTokens: {
|
|
2
|
+
base: {
|
|
3
|
+
container: string;
|
|
4
|
+
labelWrapper: string;
|
|
5
|
+
label: string;
|
|
6
|
+
arrowIconWrapper: string;
|
|
7
|
+
arrowIcon: string;
|
|
8
|
+
badge: string;
|
|
9
|
+
collapse: string;
|
|
10
|
+
};
|
|
11
|
+
expanded: {
|
|
12
|
+
badge: string;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { NavButton } from '..';
|
|
3
|
+
export type NavButtonClassName = {
|
|
4
|
+
container?: string;
|
|
5
|
+
iconWrapper?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
badge?: string;
|
|
9
|
+
labelWrapper?: string;
|
|
10
|
+
arrowIcon?: string;
|
|
11
|
+
};
|
|
12
|
+
export type NavButtonItem = {
|
|
13
|
+
label: string;
|
|
14
|
+
to: string;
|
|
15
|
+
icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
16
|
+
};
|
|
17
|
+
export type NavButtonProps = {
|
|
18
|
+
item: NavButtonItem;
|
|
19
|
+
classNames?: NavButtonClassName;
|
|
20
|
+
isActive?: boolean;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
isExpanded?: boolean;
|
|
23
|
+
badge?: number;
|
|
24
|
+
onClick?: () => void;
|
|
25
|
+
};
|
|
26
|
+
export type NavButtonStory = StoryObj<typeof NavButton>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Pagination } from './Pagination';
|
|
3
|
+
type Story = StoryObj<typeof Pagination>;
|
|
4
|
+
declare const meta: Meta<typeof Pagination>;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const LongPagination: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const PaginationTokens: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
nav: {
|
|
4
|
+
base: string;
|
|
5
|
+
pageBtnWrapper: string;
|
|
6
|
+
};
|
|
7
|
+
arrowButton: {
|
|
8
|
+
base: string;
|
|
9
|
+
disabled: string;
|
|
10
|
+
hover: string;
|
|
11
|
+
pressed: string;
|
|
12
|
+
focus: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
iconDisabled: string;
|
|
15
|
+
};
|
|
16
|
+
pageButton: {
|
|
17
|
+
base: string;
|
|
18
|
+
active: string;
|
|
19
|
+
hover: string;
|
|
20
|
+
focus: string;
|
|
21
|
+
pressed: string;
|
|
22
|
+
};
|
|
23
|
+
countWrapper: {
|
|
24
|
+
base: string;
|
|
25
|
+
text: string;
|
|
26
|
+
current: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type LimitOptionsType = '10' | '20' | '50' | '100';
|
|
2
|
+
export type PaginationProps = {
|
|
3
|
+
currentPageIndex: number;
|
|
4
|
+
totalPages: number;
|
|
5
|
+
onPageChange?: (currentPage: number) => void;
|
|
6
|
+
limit?: LimitOptionsType;
|
|
7
|
+
onLimitChange: (value: string) => void;
|
|
8
|
+
totalItems?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
type PaginationLimitType = {
|
|
12
|
+
label: string;
|
|
13
|
+
value: LimitOptionsType;
|
|
14
|
+
};
|
|
15
|
+
export declare const PaginationLimitOptions: PaginationLimitType[];
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createPageRange(currentPage: number, totalPages: number): (number | '...')[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { PasswordInput } from './PasswordInput';
|
|
3
|
+
import { PasswordInputStory } from './PasswordInput.types';
|
|
4
|
+
declare const meta: Meta<typeof PasswordInput>;
|
|
5
|
+
export declare const Default: PasswordInputStory;
|
|
6
|
+
export declare const Disabled: PasswordInputStory;
|
|
7
|
+
export declare const FocusWithVisiblePassword: PasswordInputStory;
|
|
8
|
+
export declare const FocusWithHiddenPassword: PasswordInputStory;
|
|
9
|
+
export declare const FilledWithVisiblePassword: PasswordInputStory;
|
|
10
|
+
export declare const FilledWithHiddenPassword: PasswordInputStory;
|
|
11
|
+
export declare const Error: PasswordInputStory;
|
|
12
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { InputHTMLAttributes } from 'react';
|
|
3
|
+
import { PasswordInput } from '..';
|
|
4
|
+
export type PasswordInputStory = StoryObj<typeof PasswordInput>;
|
|
5
|
+
export type PasswordInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
6
|
+
status?: 'danger' | 'success';
|
|
7
|
+
label?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
isVisiblePassword?: boolean;
|
|
10
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
+
classNames?: {
|
|
12
|
+
parent?: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
base?: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type PasswordInputTokens = {
|
|
18
|
+
icon: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const paymentCardTokens: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
dateContainer: {
|
|
4
|
+
base: string;
|
|
5
|
+
dateAndTime: string;
|
|
6
|
+
};
|
|
7
|
+
titleContainer: {
|
|
8
|
+
base: string;
|
|
9
|
+
title: string;
|
|
10
|
+
price: string;
|
|
11
|
+
};
|
|
12
|
+
buttonContainer: {
|
|
13
|
+
base: string;
|
|
14
|
+
button: string;
|
|
15
|
+
};
|
|
16
|
+
button: {
|
|
17
|
+
basic: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { PaymentCard } from '..';
|
|
3
|
+
export type PaymentCardStory = StoryObj<typeof PaymentCard>;
|
|
4
|
+
export type PaymentCardProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
dateAndTime: Date | string;
|
|
7
|
+
onDelete?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
+
onDownload?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
+
onShow?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
firstStatus?: 'success' | 'danger' | 'warning' | 'info';
|
|
11
|
+
lastStatus?: 'success' | 'danger' | 'warning' | 'info';
|
|
12
|
+
firstStatusText?: string;
|
|
13
|
+
lastStatusText?: string;
|
|
14
|
+
price?: string;
|
|
15
|
+
classNames?: {
|
|
16
|
+
status?: string;
|
|
17
|
+
wrapper?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { PhoneInput } from './PhoneInput';
|
|
3
|
+
import { PhoneInputStory } from '..';
|
|
4
|
+
declare const meta: Meta<typeof PhoneInput>;
|
|
5
|
+
export declare const Default: PhoneInputStory;
|
|
6
|
+
export declare const Focus: PhoneInputStory;
|
|
7
|
+
export declare const Filled: PhoneInputStory;
|
|
8
|
+
export declare const Error: PhoneInputStory;
|
|
9
|
+
export declare const Disabled: PhoneInputStory;
|
|
10
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { InputHTMLAttributes } from 'react';
|
|
3
|
+
import { PhoneInput } from './PhoneInput';
|
|
4
|
+
export type PhoneInputStory = StoryObj<typeof PhoneInput>;
|
|
5
|
+
export type PhoneInputMessageType = 'danger';
|
|
6
|
+
export type PhoneInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> & {
|
|
7
|
+
value: string;
|
|
8
|
+
status?: PhoneInputMessageType;
|
|
9
|
+
message?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
onChange: (rawValue: string) => void;
|
|
12
|
+
classNames?: {
|
|
13
|
+
parent?: string;
|
|
14
|
+
target?: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
status?: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type PhoneInputTokens = {
|
|
20
|
+
parent: string;
|
|
21
|
+
base: string;
|
|
22
|
+
hover: string;
|
|
23
|
+
focus: string;
|
|
24
|
+
disabled: string;
|
|
25
|
+
variants: Record<PhoneInputMessageType, string>;
|
|
26
|
+
message: Record<PhoneInputMessageType, string>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PlateProps } from '..';
|
|
2
|
+
import * as Toggle from '@radix-ui/react-toggle';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export declare const Plate: React.ForwardRefExoticComponent<Omit<Toggle.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & PlateProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Plate } from '..';
|
|
3
|
+
declare const meta: Meta<typeof Plate>;
|
|
4
|
+
type Story = StoryObj<typeof Plate>;
|
|
5
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const Disabled: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|