@candy.thieves/ui-kit-lumos 0.0.25 → 0.0.27
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/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 +9 -17
- 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,100 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
-
import { useState } from 'react'
|
|
3
|
-
import {
|
|
4
|
-
Home,
|
|
5
|
-
HomeOutline,
|
|
6
|
-
MessageCircle,
|
|
7
|
-
MessageCircleOutline,
|
|
8
|
-
Person,
|
|
9
|
-
PersonOutline,
|
|
10
|
-
PlusSquare,
|
|
11
|
-
PlusSquareOutline,
|
|
12
|
-
Search,
|
|
13
|
-
SearchOutline,
|
|
14
|
-
} from '@/assets'
|
|
15
|
-
import { Menu, type MenuItem } from '@/components/Menu'
|
|
16
|
-
|
|
17
|
-
const meta: Meta<typeof Menu> = {
|
|
18
|
-
title: 'Components/Menu',
|
|
19
|
-
component: Menu,
|
|
20
|
-
tags: ['autodocs'],
|
|
21
|
-
argTypes: {
|
|
22
|
-
onValueChange: { action: 'value changed' },
|
|
23
|
-
},
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default meta
|
|
27
|
-
|
|
28
|
-
type Story = StoryObj<typeof Menu>
|
|
29
|
-
|
|
30
|
-
const items: MenuItem[] = [
|
|
31
|
-
{ id: 'feed', href: '/feed', icon: <HomeOutline />, activeIcon: <Home /> },
|
|
32
|
-
{
|
|
33
|
-
id: 'create',
|
|
34
|
-
href: '/create',
|
|
35
|
-
icon: <PlusSquareOutline />,
|
|
36
|
-
activeIcon: <PlusSquare />,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: 'messenger',
|
|
40
|
-
href: '/messenger',
|
|
41
|
-
icon: <MessageCircleOutline />,
|
|
42
|
-
activeIcon: <MessageCircle />,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: 'search',
|
|
46
|
-
href: '/search',
|
|
47
|
-
icon: <SearchOutline />,
|
|
48
|
-
activeIcon: <Search />,
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: 'profile',
|
|
52
|
-
href: '/profile',
|
|
53
|
-
icon: <PersonOutline />,
|
|
54
|
-
activeIcon: <Person />,
|
|
55
|
-
},
|
|
56
|
-
]
|
|
57
|
-
|
|
58
|
-
const renderMenu = (initialActiveId: string) => {
|
|
59
|
-
return function MenuStory(args: Story['args']) {
|
|
60
|
-
const [activeId, setActiveId] = useState(initialActiveId)
|
|
61
|
-
|
|
62
|
-
return (
|
|
63
|
-
<div style={{ width: 390, background: '#000', border: '1px solid #333' }}>
|
|
64
|
-
<Menu
|
|
65
|
-
{...args}
|
|
66
|
-
items={items}
|
|
67
|
-
activeId={activeId}
|
|
68
|
-
onValueChange={id => {
|
|
69
|
-
setActiveId(id)
|
|
70
|
-
args?.onValueChange?.(id)
|
|
71
|
-
}}
|
|
72
|
-
/>
|
|
73
|
-
</div>
|
|
74
|
-
)
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export const Default: Story = {
|
|
79
|
-
render: renderMenu('feed'),
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export const OnFeed: Story = {
|
|
83
|
-
render: renderMenu('feed'),
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export const OnCreate: Story = {
|
|
87
|
-
render: renderMenu('create'),
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export const OnMessenger: Story = {
|
|
91
|
-
render: renderMenu('messenger'),
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export const OnSearch: Story = {
|
|
95
|
-
render: renderMenu('search'),
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export const OnProfile: Story = {
|
|
99
|
-
render: renderMenu('profile'),
|
|
100
|
-
}
|
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
-
import type { MessageProps } from '@/components/Message/types'
|
|
3
|
-
import { AudioPlayer } from '@/components/AudioPlayer'
|
|
4
|
-
import { Message } from '@/components/Message'
|
|
5
|
-
import { WAVE_FORM } from '@/constants'
|
|
6
|
-
|
|
7
|
-
const meta = {
|
|
8
|
-
title: 'Components/Message',
|
|
9
|
-
component: Message,
|
|
10
|
-
parameters: {
|
|
11
|
-
layout: 'centered',
|
|
12
|
-
},
|
|
13
|
-
tags: ['autodocs'],
|
|
14
|
-
argTypes: {
|
|
15
|
-
type: {
|
|
16
|
-
control: 'select',
|
|
17
|
-
options: ['incoming', 'outgoing'],
|
|
18
|
-
description: 'Message type',
|
|
19
|
-
table: {
|
|
20
|
-
defaultValue: { summary: 'incoming' },
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
status: {
|
|
24
|
-
control: 'select',
|
|
25
|
-
options: ['all', 'delivered', 'error', 'read', 'sending', 'sent'],
|
|
26
|
-
description: 'Change message status',
|
|
27
|
-
defaultValue: 'all',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
decorators: [
|
|
31
|
-
Story => (
|
|
32
|
-
<div
|
|
33
|
-
style={{
|
|
34
|
-
padding: '0.75rem 1.25rem',
|
|
35
|
-
width: '43.875rem',
|
|
36
|
-
maxWidth: '100%',
|
|
37
|
-
height: '30rem',
|
|
38
|
-
background: 'var(--color-dark-700)',
|
|
39
|
-
border: '1px solid var(--color-dark-300)',
|
|
40
|
-
borderRadius: '0.75rem',
|
|
41
|
-
overflow: 'auto',
|
|
42
|
-
}}
|
|
43
|
-
>
|
|
44
|
-
<Story />
|
|
45
|
-
</div>
|
|
46
|
-
),
|
|
47
|
-
],
|
|
48
|
-
} satisfies Meta<typeof Message>
|
|
49
|
-
|
|
50
|
-
export default meta
|
|
51
|
-
|
|
52
|
-
type Story = StoryObj<typeof meta>
|
|
53
|
-
|
|
54
|
-
const MOCK_MESSAGES: MessageProps[] = [
|
|
55
|
-
{
|
|
56
|
-
author: 'Anna',
|
|
57
|
-
avatar: 'https://i.pravatar.cc/150?img=1',
|
|
58
|
-
text: 'Hi! How are you?',
|
|
59
|
-
timestamp: '14:30',
|
|
60
|
-
type: 'incoming',
|
|
61
|
-
status: 'read',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
author: 'You',
|
|
65
|
-
avatar: 'https://i.pravatar.cc/150?img=12',
|
|
66
|
-
text: "I'm great, thanks! And you?",
|
|
67
|
-
timestamp: '14:32',
|
|
68
|
-
type: 'outgoing',
|
|
69
|
-
status: 'read',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
author: 'Anna',
|
|
73
|
-
avatar: 'https://i.pravatar.cc/150?img=1',
|
|
74
|
-
text: 'Good too! How was your vacation?',
|
|
75
|
-
timestamp: '14:33',
|
|
76
|
-
type: 'incoming',
|
|
77
|
-
status: 'read',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
author: 'You',
|
|
81
|
-
avatar: 'https://i.pravatar.cc/150?img=12',
|
|
82
|
-
text: 'The vacation went great! Everything exceeded my expectations 🎉',
|
|
83
|
-
timestamp: '14:35',
|
|
84
|
-
type: 'outgoing',
|
|
85
|
-
status: 'delivered',
|
|
86
|
-
},
|
|
87
|
-
]
|
|
88
|
-
|
|
89
|
-
const MESSAGES_WITH_REPLY: MessageProps[] = [
|
|
90
|
-
{
|
|
91
|
-
author: 'Maria',
|
|
92
|
-
avatar: 'https://i.pravatar.cc/150?img=5',
|
|
93
|
-
text: 'When will the mockup be ready?',
|
|
94
|
-
timestamp: '16:00',
|
|
95
|
-
type: 'incoming',
|
|
96
|
-
status: 'read',
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
author: 'You',
|
|
100
|
-
text: 'The mockup will be ready by tomorrow evening',
|
|
101
|
-
timestamp: '16:05',
|
|
102
|
-
type: 'outgoing',
|
|
103
|
-
status: 'sent',
|
|
104
|
-
replyTo: {
|
|
105
|
-
id: '1',
|
|
106
|
-
author: 'Maria',
|
|
107
|
-
text: 'When will the mockup be ready?',
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
]
|
|
111
|
-
|
|
112
|
-
export const Incoming: Story = {
|
|
113
|
-
args: {
|
|
114
|
-
author: 'Anna',
|
|
115
|
-
text: 'Hello! How are you?',
|
|
116
|
-
timestamp: '12:30',
|
|
117
|
-
avatar: 'https://images.unsplash.com/photo-1492633423870-43d1cd2775eb?&w=128&h=128&dpr=2&q=80',
|
|
118
|
-
},
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export const Outgoing: Story = {
|
|
122
|
-
args: {
|
|
123
|
-
author: 'You',
|
|
124
|
-
text: 'Everything is fine 👍',
|
|
125
|
-
timestamp: '12:31',
|
|
126
|
-
type: 'outgoing',
|
|
127
|
-
status: 'sent',
|
|
128
|
-
},
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export const Reply: Story = {
|
|
132
|
-
args: {
|
|
133
|
-
author: 'You',
|
|
134
|
-
text: 'Long time no see! I completely agree 😀',
|
|
135
|
-
timestamp: '12:32',
|
|
136
|
-
type: 'outgoing',
|
|
137
|
-
status: 'delivered',
|
|
138
|
-
replyTo: {
|
|
139
|
-
id: 1,
|
|
140
|
-
author: 'Anna',
|
|
141
|
-
text: "Let's meet tomorrow?",
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export const Image: Story = {
|
|
147
|
-
args: {
|
|
148
|
-
author: 'Anna',
|
|
149
|
-
text: 'Look at this photo',
|
|
150
|
-
timestamp: '12:33',
|
|
151
|
-
status: 'delivered',
|
|
152
|
-
attachments: {
|
|
153
|
-
id: 1,
|
|
154
|
-
type: 'image',
|
|
155
|
-
name: 'photo.jpg',
|
|
156
|
-
url: 'https://plus.unsplash.com/premium_photo-1675806016980-05232ccdf1f1?q=80&w=765&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export const LongMessage: Story = {
|
|
162
|
-
args: {
|
|
163
|
-
author: 'Anna',
|
|
164
|
-
timestamp: '12:35',
|
|
165
|
-
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum porta sapien sit amet est posuere, vitae posuere mauris bibendum.',
|
|
166
|
-
},
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export const LongMessageOutgoing: Story = {
|
|
170
|
-
args: {
|
|
171
|
-
type: 'outgoing',
|
|
172
|
-
author: 'Anna',
|
|
173
|
-
timestamp: '12:35',
|
|
174
|
-
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum porta sapien sit amet est posuere, vitae posuere mauris bibendum.',
|
|
175
|
-
},
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export const Dialog: { render: () => React.JSX.Element } = {
|
|
179
|
-
render: () => (
|
|
180
|
-
<>
|
|
181
|
-
{MOCK_MESSAGES.map((msg, id) => (
|
|
182
|
-
<Message key={id} {...msg} />
|
|
183
|
-
))}
|
|
184
|
-
</>
|
|
185
|
-
),
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export const OnlyIncoming: { render: () => React.JSX.Element } = {
|
|
189
|
-
render: () => (
|
|
190
|
-
<>
|
|
191
|
-
{MOCK_MESSAGES.filter(msg => msg.type === 'incoming').map((msg, id) => (
|
|
192
|
-
<Message key={id} {...msg} />
|
|
193
|
-
))}
|
|
194
|
-
</>
|
|
195
|
-
),
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export const OnlyOutgoing: { render: () => React.JSX.Element } = {
|
|
199
|
-
render: () => (
|
|
200
|
-
<div className={'s.messageList'}>
|
|
201
|
-
{MOCK_MESSAGES.filter(msg => msg.type === 'outgoing').map((msg, id) => (
|
|
202
|
-
<Message key={id} {...msg} />
|
|
203
|
-
))}
|
|
204
|
-
</div>
|
|
205
|
-
),
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export const WithReplies: { render: () => React.JSX.Element } = {
|
|
209
|
-
render: () => (
|
|
210
|
-
<div className={'s.messageList'}>
|
|
211
|
-
{MESSAGES_WITH_REPLY.map((msg, id) => (
|
|
212
|
-
<Message key={id} {...msg} />
|
|
213
|
-
))}
|
|
214
|
-
</div>
|
|
215
|
-
),
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export const LongMessages: { render: () => React.JSX.Element } = {
|
|
219
|
-
render: () => (
|
|
220
|
-
<div className={'s.messageList'}>
|
|
221
|
-
<Message
|
|
222
|
-
author={'Alex'}
|
|
223
|
-
avatar={'https://i.pravatar.cc/150?img=7'}
|
|
224
|
-
text={
|
|
225
|
-
"This is a very long message that should display correctly in the chat. There's a lot of text here to show how the component behaves with a large amount of content. It's important that the text wraps to a new line and doesn't overflow the block boundaries. Also, we need to ensure that all interface elements stay in place and the message looks aesthetically pleasing."
|
|
226
|
-
}
|
|
227
|
-
timestamp={'17:30'}
|
|
228
|
-
type={'incoming'}
|
|
229
|
-
status={'read'}
|
|
230
|
-
/>
|
|
231
|
-
</div>
|
|
232
|
-
),
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export const MixedStatuses: { render: () => React.JSX.Element } = {
|
|
236
|
-
render: () => (
|
|
237
|
-
<div className={'s.messageList'}>
|
|
238
|
-
<Message
|
|
239
|
-
author={'You'}
|
|
240
|
-
avatar={'https://i.pravatar.cc/150?img=12'}
|
|
241
|
-
text={'Message sent'}
|
|
242
|
-
timestamp={'10:00'}
|
|
243
|
-
type={'outgoing'}
|
|
244
|
-
status={'sent'}
|
|
245
|
-
/>
|
|
246
|
-
<Message
|
|
247
|
-
author={'You'}
|
|
248
|
-
avatar={'https://i.pravatar.cc/150?img=12'}
|
|
249
|
-
text={'Message delivered'}
|
|
250
|
-
timestamp={'10:01'}
|
|
251
|
-
type={'outgoing'}
|
|
252
|
-
status={'delivered'}
|
|
253
|
-
/>
|
|
254
|
-
<Message
|
|
255
|
-
author={'You'}
|
|
256
|
-
avatar={'https://i.pravatar.cc/150?img=12'}
|
|
257
|
-
text={'Message read'}
|
|
258
|
-
timestamp={'10:02'}
|
|
259
|
-
type={'outgoing'}
|
|
260
|
-
status={'read'}
|
|
261
|
-
/>
|
|
262
|
-
<Message
|
|
263
|
-
author={'You'}
|
|
264
|
-
avatar={'https://i.pravatar.cc/150?img=12'}
|
|
265
|
-
text={'Message not sent'}
|
|
266
|
-
timestamp={'10:03'}
|
|
267
|
-
type={'outgoing'}
|
|
268
|
-
status={'error'}
|
|
269
|
-
/>
|
|
270
|
-
</div>
|
|
271
|
-
),
|
|
272
|
-
}
|
|
273
|
-
// With audio player
|
|
274
|
-
export const WithAudioComponentIncoming: Story = {
|
|
275
|
-
args: {
|
|
276
|
-
author: 'Anna',
|
|
277
|
-
// text: 'Listen to this voice message',
|
|
278
|
-
timestamp: '12:33',
|
|
279
|
-
status: 'delivered',
|
|
280
|
-
attachments: {
|
|
281
|
-
id: 1,
|
|
282
|
-
type: 'audio',
|
|
283
|
-
component: (
|
|
284
|
-
<AudioPlayer
|
|
285
|
-
src={'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3'}
|
|
286
|
-
waveform={WAVE_FORM}
|
|
287
|
-
/>
|
|
288
|
-
),
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export const WithAudioComponentOutgoing: Story = {
|
|
294
|
-
args: {
|
|
295
|
-
author: 'Anna',
|
|
296
|
-
// text: 'Listen to this voice message',
|
|
297
|
-
timestamp: '12:33',
|
|
298
|
-
status: 'delivered',
|
|
299
|
-
type: 'outgoing',
|
|
300
|
-
attachments: {
|
|
301
|
-
id: 1,
|
|
302
|
-
type: 'audio',
|
|
303
|
-
component: (
|
|
304
|
-
<AudioPlayer
|
|
305
|
-
src={'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3'}
|
|
306
|
-
waveform={WAVE_FORM}
|
|
307
|
-
/>
|
|
308
|
-
),
|
|
309
|
-
},
|
|
310
|
-
},
|
|
311
|
-
}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
@use '@/styles/mixins' as *;
|
|
2
|
-
|
|
3
|
-
.button {
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
color: var(--color-accent-500);
|
|
6
|
-
|
|
7
|
-
&:hover {
|
|
8
|
-
color: var(--color-accent-700);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.wrapper {
|
|
13
|
-
@include flex(flex, none, center);
|
|
14
|
-
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
gap: 1rem;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// WithTriggerButton
|
|
20
|
-
.triggerContent {
|
|
21
|
-
@include flex(flex, none, none);
|
|
22
|
-
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
|
|
25
|
-
// gap: 1.5rem;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.triggerControls {
|
|
29
|
-
@include flex(flex, flex-end, center);
|
|
30
|
-
|
|
31
|
-
margin-top: 1.125rem;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// DeleteConfirmation
|
|
35
|
-
.deleteContent {
|
|
36
|
-
@include flex(flex, none, none);
|
|
37
|
-
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
gap: 1.5rem;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.deleteControls {
|
|
43
|
-
@include flex(flex, center, center);
|
|
44
|
-
|
|
45
|
-
gap: 0.75rem;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// WithImage
|
|
49
|
-
.imageContent {
|
|
50
|
-
@include flex(flex, center, center);
|
|
51
|
-
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
gap: 1rem;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.imageItem {
|
|
57
|
-
@include width-height(100%, auto);
|
|
58
|
-
|
|
59
|
-
max-height: 55vh;
|
|
60
|
-
object-fit: contain;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// WithImageAndButtons
|
|
64
|
-
.imageButtonsContent {
|
|
65
|
-
@include flex(flex, center, center);
|
|
66
|
-
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
gap: 1rem;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.imageButtonsItem {
|
|
72
|
-
@include width-height(100%, auto);
|
|
73
|
-
|
|
74
|
-
max-height: 55vh;
|
|
75
|
-
object-fit: contain;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.imageButtonsControls {
|
|
79
|
-
@include flex(flex, center, center);
|
|
80
|
-
|
|
81
|
-
gap: 0.75rem;
|
|
82
|
-
padding: 0.5rem 0 1.5rem;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// WithPostContent
|
|
86
|
-
.postContainer {
|
|
87
|
-
display: grid;
|
|
88
|
-
grid-template-columns: 1fr 26.25rem;
|
|
89
|
-
height: 80vh;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.postImageContainer {
|
|
93
|
-
position: relative;
|
|
94
|
-
background: var(--color-dark-900);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.postImage {
|
|
98
|
-
@include width-height(100%);
|
|
99
|
-
|
|
100
|
-
object-fit: cover;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.commentsContainer {
|
|
104
|
-
@include flex(flex, none, none);
|
|
105
|
-
|
|
106
|
-
flex-direction: column;
|
|
107
|
-
color: var(--color-light-100);
|
|
108
|
-
background: var(--color-dark-300);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.author {
|
|
112
|
-
@include flex(flex, flex-start, center);
|
|
113
|
-
|
|
114
|
-
gap: 0.75rem;
|
|
115
|
-
padding: 1rem;
|
|
116
|
-
border-bottom: 1px solid var(--color-dark-100);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.commentsBlock {
|
|
120
|
-
@include flex(flex, flex-start, center);
|
|
121
|
-
|
|
122
|
-
overflow: auto;
|
|
123
|
-
flex: 1;
|
|
124
|
-
flex-direction: column;
|
|
125
|
-
gap: 1.5rem;
|
|
126
|
-
|
|
127
|
-
padding: 1rem;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.comment {
|
|
131
|
-
@include flex(flex, flex-start, flex-start);
|
|
132
|
-
|
|
133
|
-
gap: 0.75rem;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.commentText {
|
|
137
|
-
display: inline;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// WithControlsInHeader
|
|
141
|
-
.postControlsHeader {
|
|
142
|
-
@include flex(flex, space-between, center);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// NestedModals
|
|
146
|
-
.modalContent {
|
|
147
|
-
@include flex(flex, none, none);
|
|
148
|
-
|
|
149
|
-
flex-direction: column;
|
|
150
|
-
gap: 1.5rem;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.modalControls {
|
|
154
|
-
@include flex(flex, flex-end, center);
|
|
155
|
-
|
|
156
|
-
gap: 0.75rem;
|
|
157
|
-
}
|