@candy.thieves/ui-kit-lumos 0.0.25 → 0.0.26
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/dist/index.css +2 -0
- package/dist/index.js +4676 -0
- package/dist/index.js.map +1 -0
- package/dist/types/assets/icons/ArrowBackOutline.d.ts +3 -0
- package/dist/types/assets/icons/ArrowForwardOutline.d.ts +3 -0
- package/dist/types/assets/icons/ArrowIosBack.d.ts +3 -0
- package/dist/types/assets/icons/ArrowIosBackOutline.d.ts +3 -0
- package/dist/types/assets/icons/ArrowIosDownOutline.d.ts +3 -0
- package/dist/types/assets/icons/ArrowIosForward.d.ts +3 -0
- package/dist/types/assets/icons/ArrowIosForwardOutline.d.ts +3 -0
- package/dist/types/assets/icons/ArrowIosUp.d.ts +3 -0
- package/dist/types/assets/icons/Block.d.ts +3 -0
- package/dist/types/assets/icons/BlockOutline.d.ts +3 -0
- package/dist/types/assets/icons/Bookmark.d.ts +3 -0
- package/dist/types/assets/icons/BookmarkOutline.d.ts +3 -0
- package/dist/types/assets/icons/Brave.d.ts +3 -0
- package/dist/types/assets/icons/Calendar.d.ts +3 -0
- package/dist/types/assets/icons/CalendarOutline.d.ts +3 -0
- package/dist/types/assets/icons/CheckmarkOutline.d.ts +3 -0
- package/dist/types/assets/icons/Close.d.ts +3 -0
- package/dist/types/assets/icons/CloseOutline.d.ts +3 -0
- package/dist/types/assets/icons/ColorPaletteOutline.d.ts +3 -0
- package/dist/types/assets/icons/Copy.d.ts +3 -0
- package/dist/types/assets/icons/CopyOutline.d.ts +3 -0
- package/dist/types/assets/icons/CreditCard.d.ts +3 -0
- package/dist/types/assets/icons/CreditCardOutline.d.ts +3 -0
- package/dist/types/assets/icons/DoneAllOutline.d.ts +3 -0
- package/dist/types/assets/icons/Edit.d.ts +3 -0
- package/dist/types/assets/icons/EditOutline.d.ts +3 -0
- package/dist/types/assets/icons/Email.d.ts +3 -0
- package/dist/types/assets/icons/EmailOutline.d.ts +3 -0
- package/dist/types/assets/icons/ErrorIcon.d.ts +3 -0
- package/dist/types/assets/icons/Expand.d.ts +3 -0
- package/dist/types/assets/icons/ExpandOutline.d.ts +3 -0
- package/dist/types/assets/icons/Explorer.d.ts +3 -0
- package/dist/types/assets/icons/Eye.d.ts +3 -0
- package/dist/types/assets/icons/EyeOff.d.ts +3 -0
- package/dist/types/assets/icons/EyeOffOutline.d.ts +3 -0
- package/dist/types/assets/icons/EyeOutline.d.ts +3 -0
- package/dist/types/assets/icons/Facebook.d.ts +3 -0
- package/dist/types/assets/icons/FileIcon.d.ts +3 -0
- package/dist/types/assets/icons/FillBell.d.ts +3 -0
- package/dist/types/assets/icons/Firefox.d.ts +3 -0
- package/dist/types/assets/icons/FlagEng.d.ts +3 -0
- package/dist/types/assets/icons/FlagRus.d.ts +3 -0
- package/dist/types/assets/icons/GithubRepo.d.ts +3 -0
- package/dist/types/assets/icons/Google.d.ts +3 -0
- package/dist/types/assets/icons/Heart.d.ts +3 -0
- package/dist/types/assets/icons/HeartOutline.d.ts +3 -0
- package/dist/types/assets/icons/Home.d.ts +3 -0
- package/dist/types/assets/icons/HomeOutline.d.ts +3 -0
- package/dist/types/assets/icons/Image.d.ts +3 -0
- package/dist/types/assets/icons/ImageOutline.d.ts +3 -0
- package/dist/types/assets/icons/Layers.d.ts +3 -0
- package/dist/types/assets/icons/LayersOutline.d.ts +3 -0
- package/dist/types/assets/icons/LogOut.d.ts +3 -0
- package/dist/types/assets/icons/LogOutOutline.d.ts +3 -0
- package/dist/types/assets/icons/Maximize.d.ts +3 -0
- package/dist/types/assets/icons/MaximizeOutline.d.ts +3 -0
- package/dist/types/assets/icons/MenuOutline.d.ts +3 -0
- package/dist/types/assets/icons/MessageCircle.d.ts +3 -0
- package/dist/types/assets/icons/MessageCircleOutline.d.ts +3 -0
- package/dist/types/assets/icons/Mic.d.ts +3 -0
- package/dist/types/assets/icons/MicOutline.d.ts +3 -0
- package/dist/types/assets/icons/MicrosoftEdge.d.ts +3 -0
- package/dist/types/assets/icons/MoreHorizontal.d.ts +3 -0
- package/dist/types/assets/icons/MoreHorizontalOutline.d.ts +3 -0
- package/dist/types/assets/icons/Opera.d.ts +3 -0
- package/dist/types/assets/icons/OutlineBell.d.ts +8 -0
- package/dist/types/assets/icons/Paid.d.ts +3 -0
- package/dist/types/assets/icons/PaperPlane.d.ts +3 -0
- package/dist/types/assets/icons/PaperPlaneOutline.d.ts +3 -0
- package/dist/types/assets/icons/PauseCircle.d.ts +3 -0
- package/dist/types/assets/icons/PauseCircleOutline.d.ts +3 -0
- package/dist/types/assets/icons/Paypal.d.ts +3 -0
- package/dist/types/assets/icons/Person.d.ts +3 -0
- package/dist/types/assets/icons/PersonAdd.d.ts +3 -0
- package/dist/types/assets/icons/PersonAddOutline.d.ts +3 -0
- package/dist/types/assets/icons/PersonOutline.d.ts +3 -0
- package/dist/types/assets/icons/PersonRemove.d.ts +3 -0
- package/dist/types/assets/icons/PersonRemoveOutline.d.ts +3 -0
- package/dist/types/assets/icons/Pin.d.ts +3 -0
- package/dist/types/assets/icons/PinOutline.d.ts +3 -0
- package/dist/types/assets/icons/PlayCircle.d.ts +3 -0
- package/dist/types/assets/icons/PlayCircleOutline.d.ts +3 -0
- package/dist/types/assets/icons/PlusCircle.d.ts +3 -0
- package/dist/types/assets/icons/PlusCircleOutline.d.ts +3 -0
- package/dist/types/assets/icons/PlusSquare.d.ts +3 -0
- package/dist/types/assets/icons/PlusSquareOutline.d.ts +3 -0
- package/dist/types/assets/icons/RadioButtonChecked.d.ts +3 -0
- package/dist/types/assets/icons/RadioButtonUnchecked.d.ts +3 -0
- package/dist/types/assets/icons/RecaptchaLogo.d.ts +3 -0
- package/dist/types/assets/icons/Safari.d.ts +3 -0
- package/dist/types/assets/icons/Search.d.ts +3 -0
- package/dist/types/assets/icons/SearchOutline.d.ts +3 -0
- package/dist/types/assets/icons/Sending.d.ts +3 -0
- package/dist/types/assets/icons/Settings.d.ts +3 -0
- package/dist/types/assets/icons/SettingsOutline.d.ts +3 -0
- package/dist/types/assets/icons/Stripe.d.ts +3 -0
- package/dist/types/assets/icons/Trash.d.ts +3 -0
- package/dist/types/assets/icons/TrashOutline.d.ts +3 -0
- package/dist/types/assets/icons/TrendingUp.d.ts +3 -0
- package/dist/types/assets/icons/TrendingUpOutline.d.ts +3 -0
- package/dist/types/assets/icons/UcBrowser.d.ts +3 -0
- package/dist/types/assets/icons/Yandex.d.ts +3 -0
- package/dist/types/assets/index.d.ts +103 -0
- package/dist/types/assets/logo/Logo.d.ts +10 -0
- package/dist/types/components/Alert/Alert.d.ts +14 -0
- package/dist/types/components/Alert/index.d.ts +1 -0
- package/dist/types/components/AudioPlayer/AudioPlayer.d.ts +6 -0
- package/dist/types/components/AudioPlayer/index.d.ts +1 -0
- package/dist/types/components/Avatar/Avatar.d.ts +17 -0
- package/dist/types/components/Avatar/AvatarBlock.d.ts +15 -0
- package/dist/types/components/Avatar/MainAvatar.d.ts +20 -0
- package/dist/types/components/Avatar/index.d.ts +3 -0
- package/dist/types/components/Button/Button.d.ts +19 -0
- package/dist/types/components/Button/ButtonLegacy.d.ts +41 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/Cards/Cards.d.ts +7 -0
- package/dist/types/components/Cards/index.d.ts +1 -0
- package/dist/types/components/Carousel/Carousel.d.ts +5 -0
- package/dist/types/components/Carousel/index.d.ts +1 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +10 -0
- package/dist/types/components/Checkbox/index.d.ts +1 -0
- package/dist/types/components/CircularProgress/CircularProgress.d.ts +10 -0
- package/dist/types/components/CircularProgress/index.d.ts +1 -0
- package/dist/types/components/Input/Input.d.ts +13 -0
- package/dist/types/components/Input/index.d.ts +1 -0
- package/dist/types/components/LinearProgress/LinearProgress.d.ts +14 -0
- package/dist/types/components/LinearProgress/index.d.ts +1 -0
- package/dist/types/components/Menu/Menu.d.ts +14 -0
- package/dist/types/components/Menu/index.d.ts +1 -0
- package/dist/types/components/Message/AttachmentItem.d.ts +2 -0
- package/dist/types/components/Message/Message.d.ts +2 -0
- package/dist/types/components/Message/MessageStatus.d.ts +2 -0
- package/dist/types/components/Message/ReplyPreview.d.ts +2 -0
- package/dist/types/components/Message/index.d.ts +2 -0
- package/dist/types/components/Message/types.d.ts +40 -0
- package/dist/types/components/Modal/Modal.d.ts +25 -0
- package/dist/types/components/Modal/index.d.ts +1 -0
- package/dist/types/components/PasswordInput/PasswordInput.d.ts +6 -0
- package/dist/types/components/PasswordInput/index.d.ts +1 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +15 -0
- package/dist/types/components/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/ReadMore/ReadMore.d.ts +8 -0
- package/dist/types/components/ReadMore/index.d.ts +1 -0
- package/dist/types/components/Recaptcha/Recaptcha.d.ts +12 -0
- package/dist/types/components/Recaptcha/index.d.ts +1 -0
- package/dist/types/components/Scroll/Scroll.d.ts +6 -0
- package/dist/types/components/Scroll/index.d.ts +1 -0
- package/dist/types/components/SearchInput/SearchInput.d.ts +3 -0
- package/dist/types/components/SearchInput/index.d.ts +1 -0
- package/dist/types/components/Select/Select.d.ts +66 -0
- package/dist/types/components/Select/index.d.ts +1 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +18 -0
- package/dist/types/components/Sidebar/index.d.ts +1 -0
- package/dist/types/components/Slider/Slider.d.ts +4 -0
- package/dist/types/components/Slider/index.d.ts +1 -0
- package/dist/types/components/Table/Table.d.ts +6 -0
- package/dist/types/components/Table/index.d.ts +1 -0
- package/dist/types/components/Tabs/Tabs.d.ts +18 -0
- package/dist/types/components/Tabs/index.d.ts +1 -0
- package/dist/types/components/TextArea/TextArea.d.ts +11 -0
- package/dist/types/components/TextArea/index.d.ts +1 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +12 -0
- package/dist/types/components/Tooltip/index.d.ts +1 -0
- package/dist/types/components/Typography/Typography.d.ts +25 -0
- package/dist/types/components/Typography/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +26 -0
- package/{src/components/types/index.ts → dist/types/components/types/index.d.ts} +1 -1
- package/dist/types/components/types/scroll.types.d.ts +10 -0
- package/dist/types/constants/constants.d.ts +7 -0
- package/dist/types/constants/index.d.ts +1 -0
- package/dist/types/demo/TestMixins/TestMixins.d.ts +1 -0
- package/dist/types/demo/index.d.ts +1 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useScrollThumbs.d.ts +9 -0
- package/dist/types/hooks/useThumbDrag.d.ts +9 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/types.d.ts +5 -0
- package/dist/types/utils/ColorIconBase.d.ts +7 -0
- package/dist/types/utils/ColorIconBaseSmall.d.ts +7 -0
- package/dist/types/utils/IconBase.d.ts +12 -0
- package/dist/types/utils/formatTime.d.ts +1 -0
- package/dist/types/utils/getFirstLetterCapitalized.d.ts +1 -0
- package/dist/types/utils/getHorizontalMetrics.d.ts +2 -0
- package/dist/types/utils/getNavItemClickHandler.d.ts +5 -0
- package/dist/types/utils/getVerticalMetrics.d.ts +2 -0
- package/dist/types/utils/index.d.ts +8 -0
- package/dist/types/utils/isAudioAttachment.d.ts +2 -0
- package/dist/types/utils/isThemeColor.d.ts +2 -0
- package/dist/types/utils/truncateText.d.ts +1 -0
- package/package.json +8 -14
- package/.github/pull_request_template.md +0 -31
- package/.github/workflows/deploy-storybook.yml +0 -19
- package/.github/workflows/publish.yml +0 -33
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -3
- package/.husky/pre-push +0 -2
- package/.husky/prepare-commit-msg +0 -9
- package/.prettierignore +0 -5
- package/.prettierrc.cjs +0 -4
- package/.storybook/main.d.ts +0 -3
- package/.storybook/main.ts +0 -26
- package/.storybook/manager.ts +0 -6
- package/.storybook/preview.d.ts +0 -6
- package/.storybook/preview.tsx +0 -28
- package/.storybook/theme.ts +0 -17
- package/.stylelintrc.cjs +0 -3
- package/AGENTS.md +0 -80
- package/agent-docs/architecture.md +0 -31
- package/agent-docs/execplans.md +0 -33
- package/agent-docs/frontend.md +0 -99
- package/commitlint.config.js +0 -63
- package/eslint.config.js +0 -101
- package/index.html +0 -13
- package/pnpm-workspace.yaml +0 -4
- package/src/assets/icons/ArrowBackOutline.tsx +0 -33
- package/src/assets/icons/ArrowForwardOutline.tsx +0 -32
- package/src/assets/icons/ArrowIosBack.tsx +0 -32
- package/src/assets/icons/ArrowIosBackOutline.tsx +0 -32
- package/src/assets/icons/ArrowIosDownOutline.tsx +0 -34
- package/src/assets/icons/ArrowIosForward.tsx +0 -32
- package/src/assets/icons/ArrowIosForwardOutline.tsx +0 -32
- package/src/assets/icons/ArrowIosUp.tsx +0 -35
- package/src/assets/icons/Block.tsx +0 -31
- package/src/assets/icons/BlockOutline.tsx +0 -37
- package/src/assets/icons/Bookmark.tsx +0 -32
- package/src/assets/icons/BookmarkOutline.tsx +0 -32
- package/src/assets/icons/Brave.tsx +0 -26
- package/src/assets/icons/Calendar.tsx +0 -32
- package/src/assets/icons/CalendarOutline.tsx +0 -32
- package/src/assets/icons/CheckmarkOutline.tsx +0 -27
- package/src/assets/icons/Close.tsx +0 -27
- package/src/assets/icons/CloseOutline.tsx +0 -27
- package/src/assets/icons/ColorPaletteOutline.tsx +0 -36
- package/src/assets/icons/Copy.tsx +0 -32
- package/src/assets/icons/CopyOutline.tsx +0 -36
- package/src/assets/icons/CreditCard.tsx +0 -32
- package/src/assets/icons/CreditCardOutline.tsx +0 -32
- package/src/assets/icons/DoneAllOutline.tsx +0 -32
- package/src/assets/icons/Edit.tsx +0 -31
- package/src/assets/icons/EditOutline.tsx +0 -31
- package/src/assets/icons/Email.tsx +0 -32
- package/src/assets/icons/EmailOutline.tsx +0 -32
- package/src/assets/icons/ErrorIcon.tsx +0 -39
- package/src/assets/icons/Expand.tsx +0 -31
- package/src/assets/icons/ExpandOutline.tsx +0 -31
- package/src/assets/icons/Explorer.tsx +0 -26
- package/src/assets/icons/Eye.tsx +0 -32
- package/src/assets/icons/EyeOff.tsx +0 -36
- package/src/assets/icons/EyeOffOutline.tsx +0 -36
- package/src/assets/icons/EyeOutline.tsx +0 -34
- package/src/assets/icons/Facebook.tsx +0 -32
- package/src/assets/icons/FileIcon.tsx +0 -36
- package/src/assets/icons/FillBell.tsx +0 -48
- package/src/assets/icons/Firefox.tsx +0 -33
- package/src/assets/icons/FlagEng.tsx +0 -33
- package/src/assets/icons/FlagRus.tsx +0 -33
- package/src/assets/icons/GithubRepo.tsx +0 -32
- package/src/assets/icons/Google.tsx +0 -45
- package/src/assets/icons/Heart.tsx +0 -32
- package/src/assets/icons/HeartOutline.tsx +0 -32
- package/src/assets/icons/Home.tsx +0 -33
- package/src/assets/icons/HomeOutline.tsx +0 -27
- package/src/assets/icons/Image.tsx +0 -32
- package/src/assets/icons/ImageOutline.tsx +0 -32
- package/src/assets/icons/Layers.tsx +0 -41
- package/src/assets/icons/LayersOutline.tsx +0 -32
- package/src/assets/icons/LogOut.tsx +0 -31
- package/src/assets/icons/LogOutOutline.tsx +0 -31
- package/src/assets/icons/Maximize.tsx +0 -32
- package/src/assets/icons/MaximizeOutline.tsx +0 -34
- package/src/assets/icons/MenuOutline.tsx +0 -31
- package/src/assets/icons/MessageCircle.tsx +0 -32
- package/src/assets/icons/MessageCircleOutline.tsx +0 -36
- package/src/assets/icons/Mic.tsx +0 -32
- package/src/assets/icons/MicOutline.tsx +0 -36
- package/src/assets/icons/MicrosoftEdge.tsx +0 -112
- package/src/assets/icons/MoreHorizontal.tsx +0 -31
- package/src/assets/icons/MoreHorizontalOutline.tsx +0 -31
- package/src/assets/icons/Opera.tsx +0 -33
- package/src/assets/icons/OutlineBell.tsx +0 -72
- package/src/assets/icons/Paid.tsx +0 -37
- package/src/assets/icons/PaperPlane.tsx +0 -32
- package/src/assets/icons/PaperPlaneOutline.tsx +0 -32
- package/src/assets/icons/PauseCircle.tsx +0 -32
- package/src/assets/icons/PauseCircleOutline.tsx +0 -34
- package/src/assets/icons/Paypal.tsx +0 -72
- package/src/assets/icons/Person.tsx +0 -29
- package/src/assets/icons/PersonAdd.tsx +0 -31
- package/src/assets/icons/PersonAddOutline.tsx +0 -31
- package/src/assets/icons/PersonOutline.tsx +0 -31
- package/src/assets/icons/PersonRemove.tsx +0 -31
- package/src/assets/icons/PersonRemoveOutline.tsx +0 -31
- package/src/assets/icons/Pin.tsx +0 -32
- package/src/assets/icons/PinOutline.tsx +0 -34
- package/src/assets/icons/PlayCircle.tsx +0 -32
- package/src/assets/icons/PlayCircleOutline.tsx +0 -32
- package/src/assets/icons/PlusCircle.tsx +0 -32
- package/src/assets/icons/PlusCircleOutline.tsx +0 -30
- package/src/assets/icons/PlusSquare.tsx +0 -32
- package/src/assets/icons/PlusSquareOutline.tsx +0 -34
- package/src/assets/icons/RadioButtonChecked.tsx +0 -32
- package/src/assets/icons/RadioButtonUnchecked.tsx +0 -30
- package/src/assets/icons/RecaptchaLogo.tsx +0 -42
- package/src/assets/icons/Safari.tsx +0 -37
- package/src/assets/icons/Search.tsx +0 -32
- package/src/assets/icons/SearchOutline.tsx +0 -32
- package/src/assets/icons/Sending.tsx +0 -28
- package/src/assets/icons/Settings.tsx +0 -32
- package/src/assets/icons/SettingsOutline.tsx +0 -34
- package/src/assets/icons/Stripe.tsx +0 -40
- package/src/assets/icons/Trash.tsx +0 -32
- package/src/assets/icons/TrashOutline.tsx +0 -32
- package/src/assets/icons/TrendingUp.tsx +0 -32
- package/src/assets/icons/TrendingUpOutline.tsx +0 -32
- package/src/assets/icons/UcBrowser.tsx +0 -78
- package/src/assets/icons/Yandex.tsx +0 -36
- package/src/assets/index.ts +0 -104
- package/src/assets/logo/Logo.tsx +0 -55
- package/src/components/Alert/Alert.module.scss +0 -61
- package/src/components/Alert/Alert.tsx +0 -79
- package/src/components/Alert/index.ts +0 -1
- package/src/components/AudioPlayer/AudioPlayer.module.scss +0 -74
- package/src/components/AudioPlayer/AudioPlayer.tsx +0 -119
- package/src/components/AudioPlayer/index.ts +0 -1
- package/src/components/Avatar/Avatar.module.scss +0 -151
- package/src/components/Avatar/Avatar.tsx +0 -36
- package/src/components/Avatar/AvatarBlock.tsx +0 -43
- package/src/components/Avatar/MainAvatar.tsx +0 -65
- package/src/components/Avatar/index.ts +0 -3
- package/src/components/Button/Button.module.scss +0 -143
- package/src/components/Button/Button.tsx +0 -48
- package/src/components/Button/ButtonLegacy.tsx +0 -94
- package/src/components/Button/index.ts +0 -2
- package/src/components/Cards/Cards.module.scss +0 -11
- package/src/components/Cards/Cards.tsx +0 -21
- package/src/components/Cards/index.ts +0 -1
- package/src/components/Carousel/Carousel.module.scss +0 -97
- package/src/components/Carousel/Carousel.tsx +0 -64
- package/src/components/Carousel/index.ts +0 -1
- package/src/components/Checkbox/Checkbox.module.scss +0 -76
- package/src/components/Checkbox/Checkbox.tsx +0 -48
- package/src/components/Checkbox/index.ts +0 -1
- package/src/components/CircularProgress/CircularProgress.module.scss +0 -33
- package/src/components/CircularProgress/CircularProgress.tsx +0 -33
- package/src/components/CircularProgress/index.ts +0 -1
- package/src/components/Input/Input.module.scss +0 -105
- package/src/components/Input/Input.tsx +0 -79
- package/src/components/Input/index.ts +0 -1
- package/src/components/LinearProgress/LinearProgress.module.scss +0 -62
- package/src/components/LinearProgress/LinearProgress.tsx +0 -49
- package/src/components/LinearProgress/index.ts +0 -1
- package/src/components/Menu/Menu.module.scss +0 -48
- package/src/components/Menu/Menu.tsx +0 -51
- package/src/components/Menu/index.ts +0 -1
- package/src/components/Message/AttachmentItem.tsx +0 -19
- package/src/components/Message/Message.module.scss +0 -123
- package/src/components/Message/Message.tsx +0 -54
- package/src/components/Message/MessageStatus.tsx +0 -19
- package/src/components/Message/ReplyPreview.tsx +0 -19
- package/src/components/Message/index.ts +0 -2
- package/src/components/Message/types.ts +0 -49
- package/src/components/Modal/Modal.module.scss +0 -118
- package/src/components/Modal/Modal.tsx +0 -82
- package/src/components/Modal/index.ts +0 -1
- package/src/components/PasswordInput/PasswordInput.module.scss +0 -13
- package/src/components/PasswordInput/PasswordInput.tsx +0 -36
- package/src/components/PasswordInput/index.ts +0 -1
- package/src/components/RadioGroup/RadioGroup.module.scss +0 -95
- package/src/components/RadioGroup/RadioGroup.tsx +0 -64
- package/src/components/RadioGroup/index.ts +0 -1
- package/src/components/ReadMore/ReadMore.module.scss +0 -8
- package/src/components/ReadMore/ReadMore.tsx +0 -49
- package/src/components/ReadMore/index.ts +0 -1
- package/src/components/Recaptcha/Recaptcha.module.scss +0 -10
- package/src/components/Recaptcha/Recaptcha.tsx +0 -58
- package/src/components/Recaptcha/index.ts +0 -1
- package/src/components/Scroll/Scroll.module.scss +0 -58
- package/src/components/Scroll/Scroll.tsx +0 -47
- package/src/components/Scroll/index.ts +0 -1
- package/src/components/SearchInput/SearchInput.tsx +0 -17
- package/src/components/SearchInput/index.ts +0 -1
- package/src/components/Select/Select.module.scss +0 -160
- package/src/components/Select/Select.tsx +0 -262
- package/src/components/Select/index.ts +0 -1
- package/src/components/Sidebar/Sidebar.module.scss +0 -100
- package/src/components/Sidebar/Sidebar.tsx +0 -74
- package/src/components/Sidebar/index.ts +0 -1
- package/src/components/Slider/Slider.module.scss +0 -64
- package/src/components/Slider/Slider.tsx +0 -26
- package/src/components/Slider/index.ts +0 -1
- package/src/components/Table/Table.module.scss +0 -23
- package/src/components/Table/Table.tsx +0 -57
- package/src/components/Table/index.ts +0 -1
- package/src/components/Tabs/Tabs.module.scss +0 -78
- package/src/components/Tabs/Tabs.tsx +0 -57
- package/src/components/Tabs/index.ts +0 -1
- package/src/components/TextArea/TextArea.module.scss +0 -107
- package/src/components/TextArea/TextArea.tsx +0 -57
- package/src/components/TextArea/index.ts +0 -1
- package/src/components/Tooltip/Tooltip.module.scss +0 -11
- package/src/components/Tooltip/Tooltip.tsx +0 -43
- package/src/components/Tooltip/index.ts +0 -1
- package/src/components/Typography/Typography.module.scss +0 -29
- package/src/components/Typography/Typography.tsx +0 -135
- package/src/components/Typography/index.ts +0 -1
- package/src/components/index.ts +0 -27
- package/src/components/types/scroll.types.ts +0 -11
- package/src/constants/constants.ts +0 -22
- package/src/constants/index.ts +0 -1
- package/src/demo/TestMixins/TestMixins.module.scss +0 -457
- package/src/demo/TestMixins/TestMixins.tsx +0 -107
- package/src/demo/index.ts +0 -1
- package/src/hooks/index.ts +0 -2
- package/src/hooks/useScrollThumbs.ts +0 -65
- package/src/hooks/useThumbDrag.ts +0 -90
- package/src/index.ts +0 -9
- package/src/stories/Configure.mdx +0 -183
- package/src/stories/assets/icons/ArrowBackOutline.stories.ts +0 -40
- package/src/stories/assets/icons/ArrowForwardOutline.stories.ts +0 -40
- package/src/stories/assets/icons/ArrowIosBack.stories.ts +0 -40
- package/src/stories/assets/icons/ArrowIosBackOutline.stories.ts +0 -40
- package/src/stories/assets/icons/ArrowIosDownOutline.stories.ts +0 -40
- package/src/stories/assets/icons/ArrowIosForward.stories.ts +0 -40
- package/src/stories/assets/icons/ArrowIosForwardOutline.stories.ts +0 -40
- package/src/stories/assets/icons/ArrowIosUp.stories.ts +0 -38
- package/src/stories/assets/icons/Block.stories.ts +0 -39
- package/src/stories/assets/icons/BlockOutline.stories.ts +0 -39
- package/src/stories/assets/icons/Bookmark.stories.ts +0 -39
- package/src/stories/assets/icons/BookmarkOutline.stories.ts +0 -40
- package/src/stories/assets/icons/Brave.stories.ts +0 -48
- package/src/stories/assets/icons/Calendar.stories.ts +0 -40
- package/src/stories/assets/icons/CalendarOutline.stories.ts +0 -39
- package/src/stories/assets/icons/CheckmarkOutline.stories.ts +0 -40
- package/src/stories/assets/icons/Close.stories.ts +0 -40
- package/src/stories/assets/icons/CloseOutline.stories.ts +0 -40
- package/src/stories/assets/icons/ColorPaletteOutline.stories.ts +0 -39
- package/src/stories/assets/icons/Copy.stories.ts +0 -38
- package/src/stories/assets/icons/CopyOutline.stories.ts +0 -39
- package/src/stories/assets/icons/CreditCard.stories.ts +0 -38
- package/src/stories/assets/icons/CreditCardOutline.stories.ts +0 -39
- package/src/stories/assets/icons/DoneAllOutline.stories.ts +0 -38
- package/src/stories/assets/icons/Edit.stories.ts +0 -39
- package/src/stories/assets/icons/EditOutline.stories.ts +0 -38
- package/src/stories/assets/icons/Email.stories.ts +0 -39
- package/src/stories/assets/icons/EmailOutline.stories.ts +0 -38
- package/src/stories/assets/icons/ErrorIcon.stories.ts +0 -40
- package/src/stories/assets/icons/Expand.stories.ts +0 -39
- package/src/stories/assets/icons/ExpandOutline.stories.ts +0 -38
- package/src/stories/assets/icons/Explorer.stories.ts +0 -47
- package/src/stories/assets/icons/Eye.stories.ts +0 -39
- package/src/stories/assets/icons/EyeOff.stories.ts +0 -38
- package/src/stories/assets/icons/EyeOffOutline.stories.ts +0 -39
- package/src/stories/assets/icons/EyeOutline.stories.ts +0 -38
- package/src/stories/assets/icons/Facebook.stories.ts +0 -37
- package/src/stories/assets/icons/FileIcon.stories.ts +0 -40
- package/src/stories/assets/icons/FillBell.stories.ts +0 -40
- package/src/stories/assets/icons/Firefox.stories.ts +0 -48
- package/src/stories/assets/icons/FlagEng.stories.ts +0 -37
- package/src/stories/assets/icons/FlagRus.stories.ts +0 -37
- package/src/stories/assets/icons/GithubRepo.stories.ts +0 -38
- package/src/stories/assets/icons/Google.stories.ts +0 -38
- package/src/stories/assets/icons/Heart.stories.ts +0 -39
- package/src/stories/assets/icons/HeartOutline.stories.ts +0 -38
- package/src/stories/assets/icons/Home.stories.ts +0 -40
- package/src/stories/assets/icons/HomeOutline.stories.ts +0 -40
- package/src/stories/assets/icons/Icon.module.scss +0 -4
- package/src/stories/assets/icons/ImageIcon.stories.ts +0 -39
- package/src/stories/assets/icons/ImageOutline.stories.ts +0 -38
- package/src/stories/assets/icons/Layers.stories.ts +0 -39
- package/src/stories/assets/icons/LayersOutline.stories.ts +0 -38
- package/src/stories/assets/icons/LogOut.stories.ts +0 -40
- package/src/stories/assets/icons/LogOutOutline.stories.ts +0 -40
- package/src/stories/assets/icons/Maximize.stories.ts +0 -39
- package/src/stories/assets/icons/MaximizeOutline.stories.ts +0 -39
- package/src/stories/assets/icons/MenuOutline.stories.ts +0 -39
- package/src/stories/assets/icons/MessageCircle.stories.ts +0 -38
- package/src/stories/assets/icons/MessageCircleOutline.stories.ts +0 -39
- package/src/stories/assets/icons/Mic.stories.ts +0 -38
- package/src/stories/assets/icons/MicOutline.stories.ts +0 -39
- package/src/stories/assets/icons/MicrosoftEdge.stories.ts +0 -47
- package/src/stories/assets/icons/MoreHorizontal.stories.ts +0 -40
- package/src/stories/assets/icons/MoreHorizontalOutline.stories.ts +0 -38
- package/src/stories/assets/icons/Opera.stories.ts +0 -47
- package/src/stories/assets/icons/OutlineBell.stories.ts +0 -58
- package/src/stories/assets/icons/Paid.stories.ts +0 -38
- package/src/stories/assets/icons/PaperPlane.stories.ts +0 -40
- package/src/stories/assets/icons/PaperPlaneOutline.stories.ts +0 -38
- package/src/stories/assets/icons/PauseCircle.stories.ts +0 -39
- package/src/stories/assets/icons/PauseCircleOutline.stories.ts +0 -38
- package/src/stories/assets/icons/Paypal.stories.ts +0 -16
- package/src/stories/assets/icons/Person.stories.ts +0 -39
- package/src/stories/assets/icons/PersonAdd.stories.ts +0 -38
- package/src/stories/assets/icons/PersonAddOutline.stories.ts +0 -39
- package/src/stories/assets/icons/PersonOutline.stories.ts +0 -39
- package/src/stories/assets/icons/PersonRemove.stories.ts +0 -38
- package/src/stories/assets/icons/PersonRemoveOutline.stories.ts +0 -39
- package/src/stories/assets/icons/Pin.stories.ts +0 -38
- package/src/stories/assets/icons/PinOutline.stories.ts +0 -39
- package/src/stories/assets/icons/PlayCircle.stories.ts +0 -38
- package/src/stories/assets/icons/PlayCircleOutline.stories.ts +0 -39
- package/src/stories/assets/icons/PlusCircle.stories.ts +0 -38
- package/src/stories/assets/icons/PlusCircleOutline.stories.ts +0 -39
- package/src/stories/assets/icons/PlusSquare.stories.ts +0 -38
- package/src/stories/assets/icons/PlusSquareOutline.stories.ts +0 -39
- package/src/stories/assets/icons/RadioButtonChecked.stories.ts +0 -38
- package/src/stories/assets/icons/RadioButtonUnchecked.stories.ts +0 -39
- package/src/stories/assets/icons/RecaptchaLogo.stories.ts +0 -36
- package/src/stories/assets/icons/Safari.stories.ts +0 -47
- package/src/stories/assets/icons/Search.stories.ts +0 -39
- package/src/stories/assets/icons/SearchOutline.stories.ts +0 -40
- package/src/stories/assets/icons/Sending.stories.ts +0 -40
- package/src/stories/assets/icons/Settings.stories.ts +0 -39
- package/src/stories/assets/icons/SettingsOutline.stories.ts +0 -40
- package/src/stories/assets/icons/Stripe.stories.ts +0 -38
- package/src/stories/assets/icons/Trash.stories.ts +0 -39
- package/src/stories/assets/icons/TrashOutline.stories.ts +0 -38
- package/src/stories/assets/icons/TrendingUp.stories.ts +0 -39
- package/src/stories/assets/icons/TrendingUpOutline.stories.ts +0 -38
- package/src/stories/assets/icons/UcBrowser.stories.ts +0 -48
- package/src/stories/assets/icons/Yandex.stories.ts +0 -47
- package/src/stories/assets/logo/Logo.stories.ts +0 -22
- package/src/stories/components/Alert/Alert.stories.tsx +0 -94
- package/src/stories/components/Avatar/Avatar.stories.tsx +0 -151
- package/src/stories/components/Avatar/AvatarBlock.stories.tsx +0 -301
- package/src/stories/components/Avatar/MainAvatar.stories.tsx +0 -200
- package/src/stories/components/Button/Button.stories.tsx +0 -99
- package/src/stories/components/Button/ButtonLegacy.stories.tsx +0 -99
- package/src/stories/components/Cards/Cards.stories.tsx +0 -185
- package/src/stories/components/Carousel/Carousel.stories.tsx +0 -89
- package/src/stories/components/Carousel/CarouselWrapper.module.scss +0 -7
- package/src/stories/components/CheckBox/CheckBox.stories.tsx +0 -92
- package/src/stories/components/CircularProgress/CircularProgress.stories.tsx +0 -66
- package/src/stories/components/Input/Input.stories.tsx +0 -88
- package/src/stories/components/LinearProgress/LinearProgress.stories.tsx +0 -137
- package/src/stories/components/Menu/Menu.stories.tsx +0 -100
- package/src/stories/components/Message/Message.stories.tsx +0 -311
- package/src/stories/components/Modal/Modal.stories.module.scss +0 -157
- package/src/stories/components/Modal/Modal.stories.tsx +0 -514
- package/src/stories/components/PasswordInput/PasswordInput.stories.tsx +0 -71
- package/src/stories/components/RadioGroup/RadioGroup.stories.tsx +0 -141
- package/src/stories/components/ReadMore/ReadMore.stories.tsx +0 -42
- package/src/stories/components/Recaptcha/Recaptcha.stories.tsx +0 -29
- package/src/stories/components/Scroll/Scroll.stories.tsx +0 -128
- package/src/stories/components/SearchInput/SearchInput.stories.tsx +0 -76
- package/src/stories/components/Select/Select.stories.module.scss +0 -6
- package/src/stories/components/Select/Select.stories.tsx +0 -147
- package/src/stories/components/Sidebar/Sidebar.stories.tsx +0 -126
- package/src/stories/components/Slider/Slider.stories.tsx +0 -58
- package/src/stories/components/Table/Table.stories.tsx +0 -108
- package/src/stories/components/Tabs/Tabs.stories.tsx +0 -75
- package/src/stories/components/TestMixins/TestMixins.stories.tsx +0 -16
- package/src/stories/components/TextArea/TextArea.stories.tsx +0 -100
- package/src/stories/components/Tooltip/Tooltip.stories.tsx +0 -54
- package/src/stories/components/Typography/Typography.stories.tsx +0 -314
- package/src/stories/constants.ts +0 -45
- package/src/stories/palette/ColorPalette.module.scss +0 -61
- package/src/stories/palette/ColorPalette.stories.tsx +0 -76
- package/src/storybook-utils/assets/coloredIconMeta.ts +0 -31
- package/src/storybook-utils/assets/iconMeta.ts +0 -40
- package/src/storybook-utils/assets/logoMeta.ts +0 -33
- package/src/storybook-utils/components/ButtonMeta.ts +0 -33
- package/src/storybook-utils/index.ts +0 -4
- package/src/styles/_boilerplate.scss +0 -37
- package/src/styles/_colors.scss +0 -46
- package/src/styles/_mixins.scss +0 -154
- package/src/styles/_typography.scss +0 -152
- package/src/styles/index.scss +0 -4
- package/src/types/index.ts +0 -1
- package/src/types/types.ts +0 -5
- package/src/utils/ColorIconBase.tsx +0 -26
- package/src/utils/ColorIconBaseSmall.tsx +0 -30
- package/src/utils/IconBase.tsx +0 -43
- package/src/utils/formatTime.ts +0 -6
- package/src/utils/getFirstLetterCapitalized.ts +0 -2
- package/src/utils/getHorizontalMetrics.ts +0 -12
- package/src/utils/getNavItemClickHandler.ts +0 -17
- package/src/utils/getVerticalMetrics.ts +0 -12
- package/src/utils/index.ts +0 -8
- package/src/utils/isAudioAttachment.ts +0 -7
- package/src/utils/isThemeColor.ts +0 -4
- package/src/utils/truncateText.ts +0 -15
- package/tsconfig.app.json +0 -32
- package/tsconfig.build.json +0 -16
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -23
- package/vite-env.d.ts +0 -20
- package/vite.config.ts +0 -67
- package/vitest.shims.d.ts +0 -1
- /package/{public → dist}/favicon-dark-108.svg +0 -0
- /package/{public → dist}/favicon-dark-16.svg +0 -0
- /package/{public → dist}/favicon-dark-24.svg +0 -0
- /package/{public → dist}/favicon-dark-48.svg +0 -0
- /package/{public → dist}/favicon-dark-72.svg +0 -0
- /package/{public → dist}/favicon-light-108.svg +0 -0
- /package/{public → dist}/favicon-light-16.svg +0 -0
- /package/{public → dist}/favicon-light-24.svg +0 -0
- /package/{public → dist}/favicon-light-48.svg +0 -0
- /package/{public → dist}/favicon-light-72.svg +0 -0
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
-
import { Close } from '@/assets'
|
|
3
|
-
import { Typography } from '@/components'
|
|
4
|
-
import { Button } from '@/components/Button'
|
|
5
|
-
import { Cards } from '@/components/Cards/Cards'
|
|
6
|
-
|
|
7
|
-
const meta: Meta<typeof Cards> = {
|
|
8
|
-
title: 'Components/Card',
|
|
9
|
-
component: Cards,
|
|
10
|
-
tags: ['autodocs'],
|
|
11
|
-
parameters: {
|
|
12
|
-
backgrounds: {
|
|
13
|
-
default: 'dark',
|
|
14
|
-
},
|
|
15
|
-
layout: 'centered',
|
|
16
|
-
},
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default meta
|
|
20
|
-
|
|
21
|
-
type Story = StoryObj<typeof Cards>
|
|
22
|
-
|
|
23
|
-
export const Default: Story = {
|
|
24
|
-
render: args => (
|
|
25
|
-
<Cards
|
|
26
|
-
{...args}
|
|
27
|
-
style={{
|
|
28
|
-
width: '20.625rem',
|
|
29
|
-
padding: '1rem',
|
|
30
|
-
}}
|
|
31
|
-
>
|
|
32
|
-
<Typography variant={'h3'} style={{ marginBottom: '0.75rem' }}>
|
|
33
|
-
Card title
|
|
34
|
-
</Typography>
|
|
35
|
-
<Typography variant={'body2'}>
|
|
36
|
-
The Card component is used as a container for content.
|
|
37
|
-
</Typography>
|
|
38
|
-
</Cards>
|
|
39
|
-
),
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export const AddProfilePhoto: Story = {
|
|
43
|
-
render: args => (
|
|
44
|
-
<Cards
|
|
45
|
-
{...args}
|
|
46
|
-
style={{
|
|
47
|
-
width: '20.625rem',
|
|
48
|
-
}}
|
|
49
|
-
>
|
|
50
|
-
<div
|
|
51
|
-
style={{
|
|
52
|
-
display: 'flex',
|
|
53
|
-
justifyContent: 'space-between',
|
|
54
|
-
alignItems: 'center',
|
|
55
|
-
padding: '0.75rem 1.5rem',
|
|
56
|
-
borderBottom: '1px solid var(--color-dark-300)',
|
|
57
|
-
}}
|
|
58
|
-
>
|
|
59
|
-
<Typography variant={'h3'} style={{ marginBottom: '0.75rem' }}>
|
|
60
|
-
Add a Profile Photo
|
|
61
|
-
</Typography>
|
|
62
|
-
<Button
|
|
63
|
-
type={'button'}
|
|
64
|
-
variant={'text'}
|
|
65
|
-
style={{
|
|
66
|
-
padding: 0,
|
|
67
|
-
minWidth: 'auto',
|
|
68
|
-
width: '1.5rem', // Размеры кнопки 24px в rem
|
|
69
|
-
height: '1.5rem',
|
|
70
|
-
display: 'flex',
|
|
71
|
-
alignItems: 'center',
|
|
72
|
-
justifyContent: 'center',
|
|
73
|
-
color: 'var(--color-light-100)',
|
|
74
|
-
}}
|
|
75
|
-
>
|
|
76
|
-
<Close />
|
|
77
|
-
</Button>
|
|
78
|
-
</div>
|
|
79
|
-
|
|
80
|
-
<div
|
|
81
|
-
style={{
|
|
82
|
-
padding: '1.5rem',
|
|
83
|
-
}}
|
|
84
|
-
>
|
|
85
|
-
<div
|
|
86
|
-
style={{
|
|
87
|
-
width: '100%',
|
|
88
|
-
aspectRatio: '1',
|
|
89
|
-
background: 'var(--color-dark-300)',
|
|
90
|
-
display: 'flex',
|
|
91
|
-
justifyContent: 'center',
|
|
92
|
-
alignItems: 'center',
|
|
93
|
-
}}
|
|
94
|
-
>
|
|
95
|
-
<div
|
|
96
|
-
style={{
|
|
97
|
-
width: '13.875rem',
|
|
98
|
-
height: '13.875rem',
|
|
99
|
-
margin: '0 auto',
|
|
100
|
-
borderRadius: '50%',
|
|
101
|
-
backgroundColor: 'var(--color-dark-300)',
|
|
102
|
-
display: 'flex',
|
|
103
|
-
alignItems: 'center',
|
|
104
|
-
justifyContent: 'center',
|
|
105
|
-
}}
|
|
106
|
-
>
|
|
107
|
-
<Typography variant={'body2'} style={{ color: 'var(--color-light-900)' }}>
|
|
108
|
-
Photo
|
|
109
|
-
</Typography>
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
|
|
113
|
-
<Button
|
|
114
|
-
type={'button'}
|
|
115
|
-
variant={'primary'}
|
|
116
|
-
fullWidth
|
|
117
|
-
style={{
|
|
118
|
-
marginTop: '1.5rem',
|
|
119
|
-
height: '2.25rem',
|
|
120
|
-
}}
|
|
121
|
-
>
|
|
122
|
-
Select from Gallery
|
|
123
|
-
</Button>
|
|
124
|
-
</div>
|
|
125
|
-
</Cards>
|
|
126
|
-
),
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export const ErrorState: Story = {
|
|
130
|
-
render: args => (
|
|
131
|
-
<Cards
|
|
132
|
-
{...args}
|
|
133
|
-
style={{
|
|
134
|
-
width: '20.625rem',
|
|
135
|
-
}}
|
|
136
|
-
>
|
|
137
|
-
<div
|
|
138
|
-
style={{
|
|
139
|
-
padding: '1rem',
|
|
140
|
-
borderBottom: '1px solid var(--color-dark-300)',
|
|
141
|
-
}}
|
|
142
|
-
>
|
|
143
|
-
<Typography variant={'h3'}>Add a Profile Photo</Typography>
|
|
144
|
-
</div>
|
|
145
|
-
|
|
146
|
-
<div
|
|
147
|
-
style={{
|
|
148
|
-
padding: '1.5rem',
|
|
149
|
-
}}
|
|
150
|
-
>
|
|
151
|
-
<div
|
|
152
|
-
style={{
|
|
153
|
-
marginBottom: '1rem',
|
|
154
|
-
padding: '0.5rem',
|
|
155
|
-
backgroundColor: 'var(--color-danger-500)',
|
|
156
|
-
color: 'var(--color-light-100)',
|
|
157
|
-
}}
|
|
158
|
-
>
|
|
159
|
-
<Typography variant={'caption1'} style={{ color: 'var(--color-light-100)' }}>
|
|
160
|
-
Error: The uploaded photo must be PNG or JPEG.
|
|
161
|
-
</Typography>
|
|
162
|
-
</div>
|
|
163
|
-
|
|
164
|
-
<div
|
|
165
|
-
style={{
|
|
166
|
-
height: '13.75rem',
|
|
167
|
-
background: 'var(--color-dark-300)',
|
|
168
|
-
}}
|
|
169
|
-
/>
|
|
170
|
-
|
|
171
|
-
<Button
|
|
172
|
-
type={'button'}
|
|
173
|
-
variant={'primary'}
|
|
174
|
-
fullWidth
|
|
175
|
-
style={{
|
|
176
|
-
marginTop: '1.5rem',
|
|
177
|
-
height: '2.25rem',
|
|
178
|
-
}}
|
|
179
|
-
>
|
|
180
|
-
Select from Computer
|
|
181
|
-
</Button>
|
|
182
|
-
</div>
|
|
183
|
-
</Cards>
|
|
184
|
-
),
|
|
185
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
-
import { Carousel } from '@/components/Carousel'
|
|
3
|
-
import s from './CarouselWrapper.module.scss'
|
|
4
|
-
|
|
5
|
-
const meta: Meta<typeof Carousel> = {
|
|
6
|
-
title: 'Components/Carousel',
|
|
7
|
-
component: Carousel,
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default meta
|
|
12
|
-
|
|
13
|
-
type Story = StoryObj<typeof Carousel>
|
|
14
|
-
|
|
15
|
-
const placeholderSlides = [
|
|
16
|
-
<img
|
|
17
|
-
key={'1'}
|
|
18
|
-
src={
|
|
19
|
-
'https://plus.unsplash.com/premium_photo-1711434824963-ca894373272e?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8bmF0dXJlfGVufDB8fDB8fHww'
|
|
20
|
-
}
|
|
21
|
-
alt={'Slide 1'}
|
|
22
|
-
style={{ width: '100%', height: '100%', objectFit: 'cover' }}
|
|
23
|
-
/>,
|
|
24
|
-
<img
|
|
25
|
-
key={'2'}
|
|
26
|
-
src={
|
|
27
|
-
'https://images.unsplash.com/photo-1771838026270-28fd7e3bef1d?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8N3x8bmF0dXJlfGVufDB8fDB8fHww'
|
|
28
|
-
}
|
|
29
|
-
alt={'Slide 2'}
|
|
30
|
-
style={{ width: '100%', height: '100%', objectFit: 'cover' }}
|
|
31
|
-
/>,
|
|
32
|
-
<img
|
|
33
|
-
key={'3'}
|
|
34
|
-
src={
|
|
35
|
-
'https://images.unsplash.com/photo-1472396961693-142e6e269027?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8OHx8bmF0dXJlfGVufDB8fDB8fHww'
|
|
36
|
-
}
|
|
37
|
-
alt={'Slide 3'}
|
|
38
|
-
style={{ width: '100%', height: '100%', objectFit: 'cover' }}
|
|
39
|
-
/>,
|
|
40
|
-
<img
|
|
41
|
-
key={'4'}
|
|
42
|
-
src={
|
|
43
|
-
'https://plus.unsplash.com/premium_photo-1781039325448-435a6a0899b9?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTJ8fG5hdHVyZXxlbnwwfHwwfHx8MA%3D%3D'
|
|
44
|
-
}
|
|
45
|
-
alt={'Slide 4'}
|
|
46
|
-
style={{ width: '100%', height: '100%', objectFit: 'cover' }}
|
|
47
|
-
/>,
|
|
48
|
-
<img
|
|
49
|
-
key={'5'}
|
|
50
|
-
src={
|
|
51
|
-
'https://plus.unsplash.com/premium_photo-1719943510748-4b4354fbcf56?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTN8fG5hdHVyZXxlbnwwfHwwfHx8MA%3D%3D'
|
|
52
|
-
}
|
|
53
|
-
alt={'Slide 5'}
|
|
54
|
-
style={{ width: '100%', height: '100%', objectFit: 'cover' }}
|
|
55
|
-
/>,
|
|
56
|
-
]
|
|
57
|
-
|
|
58
|
-
export const Default: Story = {
|
|
59
|
-
args: {
|
|
60
|
-
slides: placeholderSlides,
|
|
61
|
-
},
|
|
62
|
-
render: args => (
|
|
63
|
-
<div style={{ width: 1000, height: 1000 }}>
|
|
64
|
-
<Carousel {...args} />
|
|
65
|
-
</div>
|
|
66
|
-
),
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export const FewSlides: Story = {
|
|
70
|
-
args: {
|
|
71
|
-
slides: placeholderSlides.slice(0, 2),
|
|
72
|
-
},
|
|
73
|
-
render: args => (
|
|
74
|
-
<div style={{ width: 400, height: 400 }}>
|
|
75
|
-
<Carousel {...args} />
|
|
76
|
-
</div>
|
|
77
|
-
),
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export const DefaultAdaptive: Story = {
|
|
81
|
-
args: {
|
|
82
|
-
slides: placeholderSlides, // проверь, как у тебя называются слайды-заглушки в файле
|
|
83
|
-
},
|
|
84
|
-
render: args => (
|
|
85
|
-
<div className={s.wrapper}>
|
|
86
|
-
<Carousel {...args} />
|
|
87
|
-
</div>
|
|
88
|
-
),
|
|
89
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
-
import { useState } from 'react'
|
|
3
|
-
import { Checkbox } from '@/components/Checkbox'
|
|
4
|
-
|
|
5
|
-
const meta = {
|
|
6
|
-
title: 'Components/Checkbox',
|
|
7
|
-
component: Checkbox,
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: 'centered',
|
|
10
|
-
docs: {
|
|
11
|
-
description: {
|
|
12
|
-
component:
|
|
13
|
-
'A customizable checkbox component built with Radix UI. Supports controlled and uncontrolled modes, labels, disabled state, and keyboard navigation.',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
args: {
|
|
18
|
-
id: 'checkbox',
|
|
19
|
-
},
|
|
20
|
-
tags: ['autodocs'],
|
|
21
|
-
argTypes: {
|
|
22
|
-
checked: {
|
|
23
|
-
control: 'boolean',
|
|
24
|
-
description: 'Controls the checked state.',
|
|
25
|
-
},
|
|
26
|
-
defaultChecked: {
|
|
27
|
-
control: 'boolean',
|
|
28
|
-
description: 'Sets the initial checked state in uncontrolled mode.',
|
|
29
|
-
},
|
|
30
|
-
disabled: {
|
|
31
|
-
control: 'boolean',
|
|
32
|
-
description: 'Disables the checkbox.',
|
|
33
|
-
},
|
|
34
|
-
label: {
|
|
35
|
-
control: 'text',
|
|
36
|
-
description: 'Content displayed next to the checkbox.',
|
|
37
|
-
},
|
|
38
|
-
onCheckedChange: {
|
|
39
|
-
action: 'checked changed',
|
|
40
|
-
description: 'Called when the checked state changes.',
|
|
41
|
-
},
|
|
42
|
-
className: {
|
|
43
|
-
control: false,
|
|
44
|
-
description: 'Additional CSS class for the root element.',
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
} satisfies Meta<typeof Checkbox>
|
|
48
|
-
|
|
49
|
-
export default meta
|
|
50
|
-
|
|
51
|
-
type Story = StoryObj<typeof meta>
|
|
52
|
-
|
|
53
|
-
export const Default: Story = {
|
|
54
|
-
parameters: {
|
|
55
|
-
docs: {
|
|
56
|
-
description: {
|
|
57
|
-
story: 'Default checkbox.',
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export const Disabled: Story = {
|
|
64
|
-
args: {
|
|
65
|
-
disabled: true,
|
|
66
|
-
},
|
|
67
|
-
parameters: {
|
|
68
|
-
docs: {
|
|
69
|
-
description: {
|
|
70
|
-
story: 'Disabled checkbox that cannot be interacted with.',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export const Interactive: Story = {
|
|
77
|
-
args: {
|
|
78
|
-
label: 'Click here',
|
|
79
|
-
},
|
|
80
|
-
parameters: {
|
|
81
|
-
docs: {
|
|
82
|
-
description: {
|
|
83
|
-
story: 'Controlled checkbox example using React state.',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
render: args => {
|
|
88
|
-
const [checked, setChecked] = useState(false)
|
|
89
|
-
|
|
90
|
-
return <Checkbox {...args} checked={checked} onCheckedChange={setChecked} />
|
|
91
|
-
},
|
|
92
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
-
import { CircularProgress } from '@/components/CircularProgress'
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: 'Components/CircularProgress',
|
|
6
|
-
component: CircularProgress,
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: 'centered',
|
|
9
|
-
},
|
|
10
|
-
tags: ['autodocs'],
|
|
11
|
-
argTypes: {
|
|
12
|
-
size: {
|
|
13
|
-
control: 'select',
|
|
14
|
-
options: ['sm', 'md', 'lg'],
|
|
15
|
-
description: 'Size of the CircularProgress',
|
|
16
|
-
defaultValue: 'md',
|
|
17
|
-
},
|
|
18
|
-
color: {
|
|
19
|
-
control: 'select',
|
|
20
|
-
options: ['primary', 'success', 'error', 'warning', 'inherit'],
|
|
21
|
-
},
|
|
22
|
-
className: {
|
|
23
|
-
control: 'text',
|
|
24
|
-
description: 'Additional CSS classes',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
} satisfies Meta<typeof CircularProgress>
|
|
28
|
-
|
|
29
|
-
export default meta
|
|
30
|
-
type Story = StoryObj<typeof meta>
|
|
31
|
-
|
|
32
|
-
export const CircularProgressDefault: Story = {
|
|
33
|
-
args: {
|
|
34
|
-
size: 'md',
|
|
35
|
-
color: 'primary',
|
|
36
|
-
},
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export const CircularProgressSuccess: Story = {
|
|
40
|
-
args: {
|
|
41
|
-
color: 'success',
|
|
42
|
-
},
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export const AllSizes: Story = {
|
|
46
|
-
render: () => (
|
|
47
|
-
<div style={{ display: 'flex', gap: '2rem', alignItems: 'center' }}>
|
|
48
|
-
<CircularProgress size={'sm'} />
|
|
49
|
-
<CircularProgress size={'md'} />
|
|
50
|
-
<CircularProgress size={'lg'} />
|
|
51
|
-
</div>
|
|
52
|
-
),
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export const AllColors: Story = {
|
|
56
|
-
render: () => (
|
|
57
|
-
<div style={{ display: 'flex', gap: '2rem', alignItems: 'center' }}>
|
|
58
|
-
<CircularProgress color={'primary'} />
|
|
59
|
-
<CircularProgress color={'success'} />
|
|
60
|
-
<CircularProgress color={'error'} />
|
|
61
|
-
<CircularProgress color={'warning'} />
|
|
62
|
-
<CircularProgress color={'inherit'} />
|
|
63
|
-
<CircularProgress color={'var(--color-danger-100)'} />
|
|
64
|
-
</div>
|
|
65
|
-
),
|
|
66
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
-
import { Input } from '@/components/Input'
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: 'UI/Input',
|
|
6
|
-
component: Input,
|
|
7
|
-
tags: ['autodocs'],
|
|
8
|
-
parameters: {
|
|
9
|
-
docs: {
|
|
10
|
-
description: {
|
|
11
|
-
component:
|
|
12
|
-
'Reusable input component with support for label, validation error, disabled state and custom adornments.',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
argTypes: {
|
|
17
|
-
label: {
|
|
18
|
-
control: 'text',
|
|
19
|
-
description: 'Optional text label displayed above the input.',
|
|
20
|
-
},
|
|
21
|
-
error: {
|
|
22
|
-
control: 'text',
|
|
23
|
-
description: 'ErrorIcon message displayed below the input. Changes the input state to error.',
|
|
24
|
-
},
|
|
25
|
-
startAdornment: {
|
|
26
|
-
description: 'Custom element displayed at the start of the input.',
|
|
27
|
-
},
|
|
28
|
-
endAdornment: {
|
|
29
|
-
description: 'Custom element displayed at the end of the input.',
|
|
30
|
-
},
|
|
31
|
-
disabled: {
|
|
32
|
-
control: 'boolean',
|
|
33
|
-
description: 'Disables the input and applies disabled styles.',
|
|
34
|
-
},
|
|
35
|
-
type: {
|
|
36
|
-
control: 'select',
|
|
37
|
-
options: ['text', 'email', 'password', 'search', 'number', 'tel', 'url'],
|
|
38
|
-
description: 'Defines the input type attribute.',
|
|
39
|
-
},
|
|
40
|
-
placeholder: {
|
|
41
|
-
control: 'text',
|
|
42
|
-
description: 'Placeholder text displayed when the input is empty.',
|
|
43
|
-
},
|
|
44
|
-
value: {
|
|
45
|
-
control: 'text',
|
|
46
|
-
description: 'Current input value.',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
} satisfies Meta<typeof Input>
|
|
50
|
-
|
|
51
|
-
export default meta
|
|
52
|
-
|
|
53
|
-
type Story = StoryObj<typeof meta>
|
|
54
|
-
|
|
55
|
-
export const Default: Story = {
|
|
56
|
-
args: {
|
|
57
|
-
placeholder: 'Enter text',
|
|
58
|
-
},
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export const WithLabel: Story = {
|
|
62
|
-
args: {
|
|
63
|
-
label: 'Username',
|
|
64
|
-
placeholder: 'Enter username',
|
|
65
|
-
},
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export const WithValue: Story = {
|
|
69
|
-
args: {
|
|
70
|
-
value: 'example text',
|
|
71
|
-
},
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export const Error: Story = {
|
|
75
|
-
args: {
|
|
76
|
-
label: 'Email',
|
|
77
|
-
placeholder: 'Enter email',
|
|
78
|
-
error: 'Invalid email',
|
|
79
|
-
type: 'email',
|
|
80
|
-
},
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export const Disabled: Story = {
|
|
84
|
-
args: {
|
|
85
|
-
placeholder: 'Disabled input',
|
|
86
|
-
disabled: true,
|
|
87
|
-
},
|
|
88
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
-
import { useEffect, useState } from 'react'
|
|
3
|
-
import { LinearProgress } from '@/components/LinearProgress'
|
|
4
|
-
|
|
5
|
-
const meta = {
|
|
6
|
-
title: 'Components/LinearProgress',
|
|
7
|
-
component: LinearProgress,
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
|
|
10
|
-
argTypes: {
|
|
11
|
-
size: {
|
|
12
|
-
control: 'select',
|
|
13
|
-
options: ['sm', 'md', 'lg'],
|
|
14
|
-
defaultValue: 'md',
|
|
15
|
-
},
|
|
16
|
-
color: {
|
|
17
|
-
control: 'select',
|
|
18
|
-
options: ['primary', 'success', 'warning', 'error', 'inherit'],
|
|
19
|
-
},
|
|
20
|
-
determinate: {
|
|
21
|
-
control: 'boolean',
|
|
22
|
-
defaultValue: false,
|
|
23
|
-
},
|
|
24
|
-
value: {
|
|
25
|
-
control: 'range',
|
|
26
|
-
min: 0,
|
|
27
|
-
max: 100,
|
|
28
|
-
step: 1,
|
|
29
|
-
defaultValue: 0,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
} satisfies Meta<typeof LinearProgress>
|
|
33
|
-
|
|
34
|
-
export default meta
|
|
35
|
-
type Story = StoryObj<typeof LinearProgress>
|
|
36
|
-
|
|
37
|
-
export const Default: Story = {
|
|
38
|
-
args: {
|
|
39
|
-
size: 'md',
|
|
40
|
-
color: 'primary',
|
|
41
|
-
determinate: false,
|
|
42
|
-
},
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export const Positioned: Story = {
|
|
46
|
-
args: {
|
|
47
|
-
size: 'md',
|
|
48
|
-
color: 'primary',
|
|
49
|
-
determinate: false,
|
|
50
|
-
style: {
|
|
51
|
-
top: '125px',
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export const Determinate: Story = {
|
|
57
|
-
args: {
|
|
58
|
-
size: 'md',
|
|
59
|
-
color: 'primary',
|
|
60
|
-
determinate: true,
|
|
61
|
-
value: 65,
|
|
62
|
-
},
|
|
63
|
-
parameters: {
|
|
64
|
-
docs: {
|
|
65
|
-
description: {
|
|
66
|
-
story: 'Shows actual progress with value 0-100',
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export const AllSizes: Story = {
|
|
73
|
-
render: () => (
|
|
74
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: '1rem', width: '100%' }}>
|
|
75
|
-
<LinearProgress size={'sm'} determinate value={30} />
|
|
76
|
-
<LinearProgress size={'md'} determinate value={50} />
|
|
77
|
-
<LinearProgress size={'lg'} determinate value={80} />
|
|
78
|
-
</div>
|
|
79
|
-
),
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export const AllColors: Story = {
|
|
83
|
-
render: () => (
|
|
84
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: '1rem', width: '100%' }}>
|
|
85
|
-
<LinearProgress color={'var(--color-danger-100)'} determinate value={7.5} />
|
|
86
|
-
<LinearProgress color={'inherit'} determinate value={15} />
|
|
87
|
-
<LinearProgress color={'primary'} determinate value={25} />
|
|
88
|
-
<LinearProgress color={'success'} determinate value={50} />
|
|
89
|
-
<LinearProgress color={'warning'} determinate value={75} />
|
|
90
|
-
<LinearProgress color={'error'} determinate value={100} />
|
|
91
|
-
</div>
|
|
92
|
-
),
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export const Indeterminate: Story = {
|
|
96
|
-
render: () => (
|
|
97
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: '1rem', width: '100%' }}>
|
|
98
|
-
<LinearProgress color={'primary'} />
|
|
99
|
-
<LinearProgress color={'success'} />
|
|
100
|
-
<LinearProgress color={'warning'} />
|
|
101
|
-
<LinearProgress color={'error'} />
|
|
102
|
-
<LinearProgress color={'inherit'} />
|
|
103
|
-
</div>
|
|
104
|
-
),
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export const WithValue: Story = {
|
|
108
|
-
args: {
|
|
109
|
-
determinate: true,
|
|
110
|
-
value: 75,
|
|
111
|
-
size: 'lg',
|
|
112
|
-
color: 'success',
|
|
113
|
-
},
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export const Interactive: Story = {
|
|
117
|
-
render: function Interactive() {
|
|
118
|
-
const [progress, setProgress] = useState(0)
|
|
119
|
-
|
|
120
|
-
useEffect(() => {
|
|
121
|
-
const interval = setInterval(() => {
|
|
122
|
-
setProgress(prev => {
|
|
123
|
-
if (prev >= 100) return 0
|
|
124
|
-
return prev + 1
|
|
125
|
-
})
|
|
126
|
-
}, 100)
|
|
127
|
-
return () => clearInterval(interval)
|
|
128
|
-
}, [])
|
|
129
|
-
|
|
130
|
-
return (
|
|
131
|
-
<div style={{ width: '100%' }}>
|
|
132
|
-
<LinearProgress determinate value={progress} />
|
|
133
|
-
<p style={{ marginTop: '0.5rem', textAlign: 'center' }}>{Math.round(progress)}%</p>
|
|
134
|
-
</div>
|
|
135
|
-
)
|
|
136
|
-
},
|
|
137
|
-
}
|