@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,35 @@
|
|
|
1
|
+
export declare const commentItemTokens: {
|
|
2
|
+
root: string;
|
|
3
|
+
wrapper: string;
|
|
4
|
+
avatar: {
|
|
5
|
+
wrapperBase: string;
|
|
6
|
+
wrapperComment: string;
|
|
7
|
+
wrapperReview: string;
|
|
8
|
+
img: string;
|
|
9
|
+
};
|
|
10
|
+
author: {
|
|
11
|
+
fullNameBase: string;
|
|
12
|
+
fullNameComment: string;
|
|
13
|
+
fullNameReview: string;
|
|
14
|
+
jobTitle: string;
|
|
15
|
+
};
|
|
16
|
+
comment: {
|
|
17
|
+
base: string;
|
|
18
|
+
comment: string;
|
|
19
|
+
review: string;
|
|
20
|
+
};
|
|
21
|
+
stars: {
|
|
22
|
+
row: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
filled: string;
|
|
25
|
+
empty: string;
|
|
26
|
+
score: string;
|
|
27
|
+
};
|
|
28
|
+
commentText: string;
|
|
29
|
+
commentDate: string;
|
|
30
|
+
emptyText: {
|
|
31
|
+
base: string;
|
|
32
|
+
comment: string;
|
|
33
|
+
review: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { CommentList } from './CommentList';
|
|
3
|
+
export type CommentListStory = StoryObj<typeof CommentList>;
|
|
4
|
+
export type CommentItem = {
|
|
5
|
+
fullName: string;
|
|
6
|
+
role?: string;
|
|
7
|
+
comment: string;
|
|
8
|
+
date: string;
|
|
9
|
+
time: string;
|
|
10
|
+
avatarSrc?: string;
|
|
11
|
+
stars?: number;
|
|
12
|
+
};
|
|
13
|
+
export type CommentListProps = {
|
|
14
|
+
comments?: CommentItem[];
|
|
15
|
+
emptyText?: string;
|
|
16
|
+
variant?: 'comment' | 'review';
|
|
17
|
+
classNames?: {
|
|
18
|
+
root?: string;
|
|
19
|
+
comment?: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DateOfBirth } from './DateOfBirth';
|
|
3
|
+
import { DateOfBirthStory } from '..';
|
|
4
|
+
declare const meta: Meta<typeof DateOfBirth>;
|
|
5
|
+
export declare const Template: ({ ...args }: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Default: DateOfBirthStory;
|
|
9
|
+
export declare const Disabled: DateOfBirthStory;
|
|
10
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import { DateOfBirth } from '..';
|
|
4
|
+
export type DateOfBirthStory = StoryObj<typeof DateOfBirth>;
|
|
5
|
+
export type DateOfBirthProps = {
|
|
6
|
+
value?: Date | undefined;
|
|
7
|
+
setValue: Dispatch<SetStateAction<Date | undefined>>;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
label?: string;
|
|
10
|
+
classNames?: {
|
|
11
|
+
label?: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
|
+
import { DatePicker, DatePickerProps, DatePickerStory } from '..';
|
|
3
|
+
declare const meta: Meta<typeof DatePicker>;
|
|
4
|
+
export declare const Default: StoryFn<DatePickerProps>;
|
|
5
|
+
export declare const WithLabel: DatePickerStory;
|
|
6
|
+
export declare const Disabled: DatePickerStory;
|
|
7
|
+
export declare const Error: DatePickerStory;
|
|
8
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const datePickerClasses: {
|
|
2
|
+
base: string;
|
|
3
|
+
container: string;
|
|
4
|
+
inputContainer: string;
|
|
5
|
+
inputWrapper: {
|
|
6
|
+
base: string;
|
|
7
|
+
active: string;
|
|
8
|
+
focus: string;
|
|
9
|
+
disabled: string;
|
|
10
|
+
hover: string;
|
|
11
|
+
pressed: string;
|
|
12
|
+
};
|
|
13
|
+
input: {
|
|
14
|
+
base: string;
|
|
15
|
+
disabled: string;
|
|
16
|
+
focus: string;
|
|
17
|
+
hover: string;
|
|
18
|
+
pressed: string;
|
|
19
|
+
};
|
|
20
|
+
calendarButton: {
|
|
21
|
+
base: string;
|
|
22
|
+
hover: string;
|
|
23
|
+
active: string;
|
|
24
|
+
focus: string;
|
|
25
|
+
disabled: string;
|
|
26
|
+
};
|
|
27
|
+
calendarIcon: {
|
|
28
|
+
base: string;
|
|
29
|
+
focus: string;
|
|
30
|
+
hover: string;
|
|
31
|
+
active: string;
|
|
32
|
+
disabled: string;
|
|
33
|
+
};
|
|
34
|
+
popover: string;
|
|
35
|
+
popoverWrapper: string;
|
|
36
|
+
todayText: string;
|
|
37
|
+
todayLabel: string;
|
|
38
|
+
navigation: string;
|
|
39
|
+
navButton: string;
|
|
40
|
+
selectContainer: string;
|
|
41
|
+
select: string;
|
|
42
|
+
weekHeader: string;
|
|
43
|
+
weekDay: string;
|
|
44
|
+
calendar: string;
|
|
45
|
+
dayButton: string;
|
|
46
|
+
daySelected: string;
|
|
47
|
+
dayToday: string;
|
|
48
|
+
dayWeekend: string;
|
|
49
|
+
dayNormal: string;
|
|
50
|
+
dayOutside: string;
|
|
51
|
+
resetButtonWrapper: string;
|
|
52
|
+
resetButton: string;
|
|
53
|
+
line: string;
|
|
54
|
+
saveButtonWrapper: string;
|
|
55
|
+
saveButton: string;
|
|
56
|
+
message: string;
|
|
57
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import { DatePicker } from './DatePicker';
|
|
4
|
+
export type DatePickerStory = StoryObj<typeof DatePicker>;
|
|
5
|
+
export type DatePickerProps = {
|
|
6
|
+
value?: Date | undefined;
|
|
7
|
+
setValue: Dispatch<SetStateAction<Date | undefined>>;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
label?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
classNames?: {
|
|
12
|
+
base?: string;
|
|
13
|
+
input?: string;
|
|
14
|
+
inputWrapper?: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
message?: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DeleteMessage, DeleteMessageStory } from '..';
|
|
3
|
+
declare const meta: Meta<typeof DeleteMessage>;
|
|
4
|
+
export declare const Default: DeleteMessageStory;
|
|
5
|
+
export declare const Animation: DeleteMessageStory;
|
|
6
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { DeleteMessage } from '..';
|
|
3
|
+
export type DeleteMessageStory = StoryObj<typeof DeleteMessage>;
|
|
4
|
+
export type DeleteMessageProps = {
|
|
5
|
+
messagesCount: number;
|
|
6
|
+
open: boolean;
|
|
7
|
+
onDelete: () => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
classNames?: {
|
|
10
|
+
wrapper?: string;
|
|
11
|
+
content?: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { DragAndDrop } from './DragAndDrop';
|
|
3
|
+
declare const meta: Meta<typeof DragAndDrop>;
|
|
4
|
+
export declare const Default: {
|
|
5
|
+
args: {
|
|
6
|
+
blockName: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const WithoutName: {
|
|
10
|
+
args: {
|
|
11
|
+
blockName: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { DragAndDrop } from './DragAndDrop';
|
|
3
|
+
export type DragAndDropStory = StoryObj<typeof DragAndDrop>;
|
|
4
|
+
export type DragAndDropProps = {
|
|
5
|
+
blockName?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
onDragStart?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
8
|
+
onDragEnd?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
9
|
+
onMenuClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
+
};
|
|
12
|
+
export type DragAndDropTokens = {
|
|
13
|
+
wrapper: string;
|
|
14
|
+
button: {
|
|
15
|
+
basic: string;
|
|
16
|
+
active: string;
|
|
17
|
+
};
|
|
18
|
+
wrapperBlockName: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Dropdown, SidebarItem } from '..';
|
|
3
|
+
import type * as React from 'react';
|
|
4
|
+
export type DropdownStory = StoryObj<typeof Dropdown>;
|
|
5
|
+
export type DropdownProps = {
|
|
6
|
+
triggerElement: React.ReactNode;
|
|
7
|
+
mainUrl: string;
|
|
8
|
+
options?: SidebarItem[];
|
|
9
|
+
open: boolean;
|
|
10
|
+
setOpen: (open: boolean) => void;
|
|
11
|
+
classNames?: {
|
|
12
|
+
trigger?: string;
|
|
13
|
+
content?: string;
|
|
14
|
+
item?: string;
|
|
15
|
+
activeItem?: string;
|
|
16
|
+
text?: string;
|
|
17
|
+
dot?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const LIST_ITEMS: SidebarItem[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { FileUploader, FileUploaderStory } from '..';
|
|
3
|
+
declare const meta: Meta<typeof FileUploader>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Default: FileUploaderStory;
|
|
6
|
+
export declare const WithPhoto: FileUploaderStory;
|
|
7
|
+
export declare const WithFile: FileUploaderStory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const fileUploaderTokens: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
header: string;
|
|
4
|
+
headerIcon: string;
|
|
5
|
+
headerText: string;
|
|
6
|
+
container: string;
|
|
7
|
+
imageWrapper: string;
|
|
8
|
+
image: string;
|
|
9
|
+
imageText: string;
|
|
10
|
+
fileWrapper: string;
|
|
11
|
+
fileIcon: string;
|
|
12
|
+
fileText: string;
|
|
13
|
+
fileSize: string;
|
|
14
|
+
downloadIcon: string;
|
|
15
|
+
target: string;
|
|
16
|
+
plusIcon: string;
|
|
17
|
+
input: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { FileUploader } from './FileUploader';
|
|
3
|
+
export type FileUploaderProps = {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
files?: File[];
|
|
7
|
+
setFiles: React.Dispatch<React.SetStateAction<File[]>>;
|
|
8
|
+
classNames?: {
|
|
9
|
+
wrapper?: string;
|
|
10
|
+
container?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
target?: string;
|
|
13
|
+
file?: string;
|
|
14
|
+
image?: string;
|
|
15
|
+
imageWrapper?: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type FileUploaderStory = StoryObj<typeof FileUploader>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { FilterTableStory, FilterTable } from '..';
|
|
3
|
+
declare const meta: Meta<typeof FilterTable>;
|
|
4
|
+
export declare const Default: FilterTableStory;
|
|
5
|
+
export declare const Selected: FilterTableStory;
|
|
6
|
+
export declare const WhithIcon: FilterTableStory;
|
|
7
|
+
export declare const Disabled: FilterTableStory;
|
|
8
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const filterTableTokens: {
|
|
2
|
+
base: {
|
|
3
|
+
content: string;
|
|
4
|
+
dropdownIcon: string;
|
|
5
|
+
items: string;
|
|
6
|
+
item: string;
|
|
7
|
+
label: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
selected: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
trigger: string;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
trigger: string;
|
|
15
|
+
triggerText: string;
|
|
16
|
+
};
|
|
17
|
+
focus: string;
|
|
18
|
+
hover: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { FunctionComponent, SVGProps } from 'react';
|
|
3
|
+
import { FilterTable } from '..';
|
|
4
|
+
export type FilterTableStory = StoryObj<typeof FilterTable>;
|
|
5
|
+
export type FilterTableClassNames = {
|
|
6
|
+
trigger?: string;
|
|
7
|
+
content?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
selected?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
};
|
|
13
|
+
export type FilterTableOption = {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
export type FilterTableMessageType = 'success' | 'danger' | 'info';
|
|
18
|
+
export type FilterTableMessage = {
|
|
19
|
+
type: FilterTableMessageType;
|
|
20
|
+
text: string;
|
|
21
|
+
};
|
|
22
|
+
export type FilterTableProps = {
|
|
23
|
+
options: FilterTableOption[];
|
|
24
|
+
onChange: (value: string) => void;
|
|
25
|
+
value: string;
|
|
26
|
+
classNames?: FilterTableClassNames;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
icon?: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
30
|
+
iconSizes?: {
|
|
31
|
+
width?: number;
|
|
32
|
+
height?: number;
|
|
33
|
+
viewBox?: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { IconTitle } from './IconTitle';
|
|
3
|
+
export type IconTitleStory = StoryObj<typeof IconTitle>;
|
|
4
|
+
type ClassNamesIconTitle = {
|
|
5
|
+
title?: string;
|
|
6
|
+
wrapper?: string;
|
|
7
|
+
};
|
|
8
|
+
export type IconTitleProps = {
|
|
9
|
+
icon: React.ReactNode;
|
|
10
|
+
title: string;
|
|
11
|
+
alt?: string;
|
|
12
|
+
classNames?: ClassNamesIconTitle;
|
|
13
|
+
position?: 'right' | 'left';
|
|
14
|
+
viewBox?: string;
|
|
15
|
+
};
|
|
16
|
+
export type IconTitleTokens = {
|
|
17
|
+
wrapper: string;
|
|
18
|
+
headerTitle: string;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { InputGroup, InputGroupStory } from '..';
|
|
3
|
+
declare const meta: Meta<typeof InputGroup>;
|
|
4
|
+
export declare const Default: InputGroupStory;
|
|
5
|
+
export declare const WithIconRight: InputGroupStory;
|
|
6
|
+
export declare const WithIconLeft: InputGroupStory;
|
|
7
|
+
export declare const Disabled: InputGroupStory;
|
|
8
|
+
export declare const WithMessageError: InputGroupStory;
|
|
9
|
+
export declare const WithTextRight: InputGroupStory;
|
|
10
|
+
export declare const WithTextLeft: InputGroupStory;
|
|
11
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const inputGroupTokens: {
|
|
2
|
+
parent: string;
|
|
3
|
+
base: string;
|
|
4
|
+
button: {
|
|
5
|
+
base: string;
|
|
6
|
+
left: string;
|
|
7
|
+
right: string;
|
|
8
|
+
};
|
|
9
|
+
input: {
|
|
10
|
+
base: string;
|
|
11
|
+
left: string;
|
|
12
|
+
right: string;
|
|
13
|
+
};
|
|
14
|
+
message: {
|
|
15
|
+
base: string;
|
|
16
|
+
styles: {
|
|
17
|
+
danger: string;
|
|
18
|
+
info: string;
|
|
19
|
+
success: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
container: string;
|
|
23
|
+
icon: {
|
|
24
|
+
base: string;
|
|
25
|
+
left: string;
|
|
26
|
+
right: string;
|
|
27
|
+
disabled: string;
|
|
28
|
+
clickable: string;
|
|
29
|
+
inputWithLeftIcon: string;
|
|
30
|
+
inputWithRightIcon: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
text: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { FunctionComponent, SVGProps } from 'react';
|
|
3
|
+
import { InputGroup } from './InputGroup';
|
|
4
|
+
import { InputMessageType, InputProps } from '../../atoms';
|
|
5
|
+
export type InputGroupStory = StoryObj<typeof InputGroup>;
|
|
6
|
+
export type InputMessage = {
|
|
7
|
+
type: InputMessageType;
|
|
8
|
+
text: string;
|
|
9
|
+
};
|
|
10
|
+
export type InputGroupProps = {
|
|
11
|
+
inputProps?: InputProps;
|
|
12
|
+
classNames?: {
|
|
13
|
+
parent?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
input?: string;
|
|
16
|
+
iconButton?: string;
|
|
17
|
+
icon?: string;
|
|
18
|
+
text?: string;
|
|
19
|
+
base?: string;
|
|
20
|
+
};
|
|
21
|
+
label?: string;
|
|
22
|
+
id?: string;
|
|
23
|
+
text?: string;
|
|
24
|
+
message?: InputMessage;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
iconPosition?: 'left' | 'right';
|
|
27
|
+
icon?: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
28
|
+
onIconClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
29
|
+
iconProps?: {
|
|
30
|
+
width?: number;
|
|
31
|
+
height?: number;
|
|
32
|
+
viewBox?: string;
|
|
33
|
+
};
|
|
34
|
+
};
|