@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,26 @@
|
|
|
1
|
+
export declare const tabGroupTokens: {
|
|
2
|
+
base: string;
|
|
3
|
+
list: string;
|
|
4
|
+
trigger: {
|
|
5
|
+
base: string;
|
|
6
|
+
active: string;
|
|
7
|
+
hover: string;
|
|
8
|
+
disabled: string;
|
|
9
|
+
};
|
|
10
|
+
overlayBorder: string;
|
|
11
|
+
content: {
|
|
12
|
+
base: string;
|
|
13
|
+
title: {
|
|
14
|
+
wrapper: string;
|
|
15
|
+
text: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
datalist: {
|
|
19
|
+
title: {
|
|
20
|
+
wrapper: string;
|
|
21
|
+
text: string;
|
|
22
|
+
};
|
|
23
|
+
base: string;
|
|
24
|
+
item: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { TabGroup } from '..';
|
|
3
|
+
export type TabGroupStory = StoryObj<typeof TabGroup>;
|
|
4
|
+
export type TabContentItem = {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
export type FlatItemDataProps = {
|
|
9
|
+
list: TabContentItem[];
|
|
10
|
+
};
|
|
11
|
+
export type TabItem = {
|
|
12
|
+
value: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
content: {
|
|
15
|
+
main: TabContentItem[];
|
|
16
|
+
secondary: TabContentItem[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type TabGroupProps = {
|
|
20
|
+
tabs: TabItem[];
|
|
21
|
+
activeTab: string;
|
|
22
|
+
onTabChange: (tab: string) => void;
|
|
23
|
+
onEditTabContent: (tab: TabItem) => void;
|
|
24
|
+
classNames?: {
|
|
25
|
+
base?: string;
|
|
26
|
+
list?: string;
|
|
27
|
+
trigger?: string;
|
|
28
|
+
content?: string;
|
|
29
|
+
overlayBorder?: string;
|
|
30
|
+
datalist?: string;
|
|
31
|
+
dataItem?: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TabSwitchProps } from '..';
|
|
3
|
+
export declare const TabSwitch: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-tabs').TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabSwitchProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { FunctionComponent, SVGProps } from 'react';
|
|
3
|
+
import { TabSwitch } from './TabSwitch';
|
|
4
|
+
export type TabSwitchItem = {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
badge?: number;
|
|
9
|
+
icon?: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
10
|
+
};
|
|
11
|
+
export type TabSwitchProps = {
|
|
12
|
+
tabs: TabSwitchItem[];
|
|
13
|
+
activeTab: string;
|
|
14
|
+
iconSizes?: {
|
|
15
|
+
width?: number;
|
|
16
|
+
height?: number;
|
|
17
|
+
viewBox?: string;
|
|
18
|
+
};
|
|
19
|
+
onTabChange: (tab: string) => void;
|
|
20
|
+
classNames?: {
|
|
21
|
+
tab?: string;
|
|
22
|
+
trigger?: string;
|
|
23
|
+
list?: string;
|
|
24
|
+
content?: string;
|
|
25
|
+
icon?: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type TabSwitchStory = StoryObj<typeof TabSwitch>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const tableTokens: {
|
|
2
|
+
root: string;
|
|
3
|
+
wrapper: string;
|
|
4
|
+
table: string;
|
|
5
|
+
tableHeader: string;
|
|
6
|
+
firstHeaderCell: string;
|
|
7
|
+
headerCell: string;
|
|
8
|
+
firstBodyCell: string;
|
|
9
|
+
bodyCell: string;
|
|
10
|
+
row: string;
|
|
11
|
+
footerCell: string;
|
|
12
|
+
emptyRow: string;
|
|
13
|
+
headerText: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
3
|
+
import { Table } from '..';
|
|
4
|
+
import { DataDefaultMockType } from './mocks/data';
|
|
5
|
+
export type MetaType = {
|
|
6
|
+
headerClass?: string;
|
|
7
|
+
cellClass?: string;
|
|
8
|
+
isSortable?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type StoryDefault = StoryObj<typeof Table<DataDefaultMockType>>;
|
|
11
|
+
export type TableProps<T> = {
|
|
12
|
+
columns: ColumnDef<T, unknown>[];
|
|
13
|
+
data: T[];
|
|
14
|
+
className?: string;
|
|
15
|
+
select: string[];
|
|
16
|
+
setSelect: (val: string[] | ((prev: string[]) => string[])) => void;
|
|
17
|
+
onRowClick?: (row: string) => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
export declare const mockDataForDefault: DataDefaultMockType[];
|
|
3
|
+
export declare const mockColumnsDefault: ColumnDef<DataDefaultMockType>[];
|
|
4
|
+
export type DataDefaultMockType = {
|
|
5
|
+
name: string;
|
|
6
|
+
address: string;
|
|
7
|
+
corpus: string;
|
|
8
|
+
section: string;
|
|
9
|
+
flat: string;
|
|
10
|
+
price: string;
|
|
11
|
+
status: string;
|
|
12
|
+
actions: string;
|
|
13
|
+
user: string;
|
|
14
|
+
date: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { TextareaGroupStory, TextareaGroup } from '..';
|
|
3
|
+
declare const meta: Meta<typeof TextareaGroup>;
|
|
4
|
+
export declare const Default: TextareaGroupStory;
|
|
5
|
+
export declare const Disabled: TextareaGroupStory;
|
|
6
|
+
export declare const Success: TextareaGroupStory;
|
|
7
|
+
export declare const Danger: TextareaGroupStory;
|
|
8
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { TextareaGroup } from './TextareaGroup';
|
|
3
|
+
import { TextareaProps, LabelProps } from '../../atoms';
|
|
4
|
+
export type TextareaGroupStory = StoryObj<typeof TextareaGroup>;
|
|
5
|
+
export type TextareaGroupTokens = {
|
|
6
|
+
root: string;
|
|
7
|
+
};
|
|
8
|
+
export type TextareaGroupProps = {
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
labelProps: LabelProps;
|
|
11
|
+
textareaProps: TextareaProps;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ToggleGroup, ToggleGroupStory } from '..';
|
|
3
|
+
declare const meta: Meta<typeof ToggleGroup>;
|
|
4
|
+
export declare const Default: ToggleGroupStory;
|
|
5
|
+
export declare const Checked: ToggleGroupStory;
|
|
6
|
+
export declare const Disabled: ToggleGroupStory;
|
|
7
|
+
export declare const DefaultWithLabel: ToggleGroupStory;
|
|
8
|
+
export declare const CheckedWithLabel: ToggleGroupStory;
|
|
9
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ToggleProps, LabelProps } from '../../atoms';
|
|
3
|
+
import { ToggleGroup } from '..';
|
|
4
|
+
export type ToggleGroupStory = StoryObj<typeof ToggleGroup>;
|
|
5
|
+
export type ToggleGroupProps = {
|
|
6
|
+
fieldLabel?: string;
|
|
7
|
+
labelProps?: LabelProps;
|
|
8
|
+
toggleProps: ToggleProps;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as Toogle from '@radix-ui/react-toggle';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export declare const UploadInput: React.ForwardRefExoticComponent<Omit<Omit<Toogle.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref">, "onChange"> & Omit<React.HTMLAttributes<HTMLInputElement>, "onChange"> & {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
label: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
files: File[] | null;
|
|
8
|
+
onChange: (files: File[] | null) => void;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
message?: string;
|
|
11
|
+
status?: "danger";
|
|
12
|
+
classNames?: {
|
|
13
|
+
root?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
input?: string;
|
|
16
|
+
status?: string;
|
|
17
|
+
};
|
|
18
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { UploadInput, UploadInputStory } from '..';
|
|
3
|
+
declare const meta: Meta<typeof UploadInput>;
|
|
4
|
+
export declare const Default: UploadInputStory;
|
|
5
|
+
export declare const SingleFileUpload: UploadInputStory;
|
|
6
|
+
export declare const MultiFileUpload: UploadInputStory;
|
|
7
|
+
export declare const DangerFileUpload: UploadInputStory;
|
|
8
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const uploadInputTokens: {
|
|
2
|
+
root: string;
|
|
3
|
+
input: {
|
|
4
|
+
base: string;
|
|
5
|
+
pressed: string;
|
|
6
|
+
hover: string;
|
|
7
|
+
};
|
|
8
|
+
placeholder: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
list: string;
|
|
11
|
+
status: {
|
|
12
|
+
danger: string;
|
|
13
|
+
};
|
|
14
|
+
message: {
|
|
15
|
+
danger: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
import { UploadInput } from './UploadInput';
|
|
4
|
+
import type * as Toogle from '@radix-ui/react-toggle';
|
|
5
|
+
export type UploadInputStory = StoryObj<typeof UploadInput>;
|
|
6
|
+
export type SelectedFile = {
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
size: string;
|
|
10
|
+
};
|
|
11
|
+
export type UploadInputProps = Omit<React.ComponentPropsWithoutRef<typeof Toogle.Root>, 'onChange'> & Omit<HTMLAttributes<HTMLInputElement>, 'onChange'> & {
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
label: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
files: File[] | null;
|
|
16
|
+
onChange: (files: File[] | null) => void;
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
message?: string;
|
|
19
|
+
status?: 'danger';
|
|
20
|
+
classNames?: {
|
|
21
|
+
root?: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
input?: string;
|
|
24
|
+
status?: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type FileItemProps = {
|
|
28
|
+
file: Omit<SelectedFile, 'type'>;
|
|
29
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
30
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { UserContact, UserContactStory } from '..';
|
|
3
|
+
declare const meta: Meta<typeof UserContact>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Default: UserContactStory;
|
|
6
|
+
export declare const WithoutIcon: UserContactStory;
|
|
7
|
+
export declare const WithoutLabel: UserContactStory;
|
|
8
|
+
export declare const WithToggle: UserContactStory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { UserContact } from '..';
|
|
4
|
+
export type UserContactProps = {
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
element?: React.ReactNode;
|
|
7
|
+
label?: string;
|
|
8
|
+
classNames?: {
|
|
9
|
+
wrapper?: string;
|
|
10
|
+
iconWrapper?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
value?: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type UserContactStory = StoryObj<typeof UserContact>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export * from './Accordion';
|
|
2
|
+
export * from './CheckboxGroup';
|
|
3
|
+
export * from './Table';
|
|
4
|
+
export * from './Breadcrumb';
|
|
5
|
+
export * from './PasswordInput';
|
|
6
|
+
export * from './MultiSelect';
|
|
7
|
+
export * from './SearchInput';
|
|
8
|
+
export * from './AvatarGroup';
|
|
9
|
+
export * from './UploadInput';
|
|
10
|
+
export * from './CommentList';
|
|
11
|
+
export * from './DatePicker';
|
|
12
|
+
export * from './Dropdown';
|
|
13
|
+
export * from './FileUploader';
|
|
14
|
+
export * from './FilterTable';
|
|
15
|
+
export * from './ChatCard';
|
|
16
|
+
export * from './CardServices';
|
|
17
|
+
export * from './CommentInput';
|
|
18
|
+
export * from './RadioGroup';
|
|
19
|
+
export * from './Sidebar';
|
|
20
|
+
export * from './Languages';
|
|
21
|
+
export * from './Pagination';
|
|
22
|
+
export * from './PhoneInput';
|
|
23
|
+
export * from './Plate';
|
|
24
|
+
export * from './TabSwitch';
|
|
25
|
+
export * from './TabGroup';
|
|
26
|
+
export * from './TextareaGroup';
|
|
27
|
+
export * from './ToggleGroup';
|
|
28
|
+
export * from './DragAndDrop';
|
|
29
|
+
export * from './DateOfBirth';
|
|
30
|
+
export * from './NavButton';
|
|
31
|
+
export * from './Stepper';
|
|
32
|
+
export * from './IconTitle';
|
|
33
|
+
export * from './InputGroup';
|
|
34
|
+
export * from './UserContact';
|
|
35
|
+
export * from './Link';
|
|
36
|
+
export * from './StatusSelect';
|
|
37
|
+
export * from './SelectGroup';
|
|
38
|
+
export * from './CardFiles';
|
|
39
|
+
export * from './PaymentCard';
|
|
40
|
+
export * from './ApartmentCard';
|
|
41
|
+
export * from './ServiceOrders';
|
|
42
|
+
export * from './LabelWithValue';
|
|
43
|
+
export * from './SelectList';
|
|
44
|
+
export * from './ChatButton';
|
|
45
|
+
export * from './ChatSidebar';
|
|
46
|
+
export * from './ChatList';
|
|
47
|
+
export * from './ChatMessage';
|
|
48
|
+
export * from './DeleteMessage';
|
|
49
|
+
export * from './MessageSettings';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type FontWeight = 400 | 500 | 600 | 700 | 900;
|
|
2
|
+
export type FontSize = 8 | 10 | 12 | 14 | 16 | 18;
|
|
3
|
+
export type FontWeightClass = `font-${Extract<keyof TypographyTokens['fontWeight'], string>}`;
|
|
4
|
+
export type FontStyles = TypographyTokens['textStyles'][keyof TypographyTokens['textStyles']];
|
|
5
|
+
export type TextStyle = {
|
|
6
|
+
fontSize: string;
|
|
7
|
+
fontWeight: FontWeight;
|
|
8
|
+
lineHeight: string;
|
|
9
|
+
};
|
|
10
|
+
export type TypographyTokens = {
|
|
11
|
+
fontFamily: {
|
|
12
|
+
mono: [string, string];
|
|
13
|
+
sans: [string, string];
|
|
14
|
+
};
|
|
15
|
+
fontWeight: {
|
|
16
|
+
black: number;
|
|
17
|
+
bold: number;
|
|
18
|
+
semibold: number;
|
|
19
|
+
medium: number;
|
|
20
|
+
regular: number;
|
|
21
|
+
};
|
|
22
|
+
textStyles: {
|
|
23
|
+
body: Record<`body-${FontSize}`, TextStyle>;
|
|
24
|
+
headings: Record<`h${1 | 2 | 3 | 4 | 5 | 6}`, TextStyle>;
|
|
25
|
+
inline: Record<'p' | 'span', TextStyle>;
|
|
26
|
+
link: Record<FontSize, TextStyle>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type ColorShades = {
|
|
30
|
+
10: string;
|
|
31
|
+
20: string;
|
|
32
|
+
30: string;
|
|
33
|
+
40: string;
|
|
34
|
+
50?: string;
|
|
35
|
+
default?: string;
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatDateToDayMonthYear(date: Date | string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import { FontStyles } from '../tokens';
|
|
3
|
+
export type FontSizeConverterOptions = {
|
|
4
|
+
splitClassName: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const convertToGroupedFontSizes: (styles: FontStyles, { splitClassName }?: FontSizeConverterOptions) => Record<string, string[]>;
|
|
7
|
+
export declare const cn: (...inputs: ClassValue[]) => string;
|