@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,314 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
-
import { Typography } from '@/components'
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: 'Components/Typography',
|
|
6
|
-
component: Typography,
|
|
7
|
-
parameters: {
|
|
8
|
-
docs: {
|
|
9
|
-
description: {
|
|
10
|
-
component: 'Accepts all props of the native "< p >" element.',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
tags: ['autodocs'],
|
|
15
|
-
|
|
16
|
-
argTypes: {
|
|
17
|
-
variant: {
|
|
18
|
-
control: 'select',
|
|
19
|
-
options: [
|
|
20
|
-
'large',
|
|
21
|
-
'h1',
|
|
22
|
-
'h2',
|
|
23
|
-
'h3',
|
|
24
|
-
'subtitle1',
|
|
25
|
-
'subtitle2',
|
|
26
|
-
'body1',
|
|
27
|
-
'body2',
|
|
28
|
-
'body3',
|
|
29
|
-
'caption1',
|
|
30
|
-
'caption2',
|
|
31
|
-
'link',
|
|
32
|
-
'subtitle-link',
|
|
33
|
-
'caution',
|
|
34
|
-
'caution-error',
|
|
35
|
-
'signature',
|
|
36
|
-
'signature-legal',
|
|
37
|
-
],
|
|
38
|
-
description: `The component used for the root node. Either a string to use an HTML element or a React component.
|
|
39
|
-
**Examples:**
|
|
40
|
-
- \`variant="large"\` - renders "Large" typography
|
|
41
|
-
- \`variant="h1"\` - renders "H1" typography
|
|
42
|
-
- \`variant="h2"\` - renders "H2" typography
|
|
43
|
-
- \`variant="h3"\` - renders "H3" typography
|
|
44
|
-
- \`variant="subtitle1"\` - renders "regular_text 16" typography
|
|
45
|
-
- \`variant="subtitle2"\` - renders "Bold_text 16" typography
|
|
46
|
-
- \`variant="body1"\` - renders "regular_text 14" typography
|
|
47
|
-
- \`variant="body2"\` - renders "Medium_text 14" typography
|
|
48
|
-
- \`variant="body3"\` - renders "bold_text 14" typography
|
|
49
|
-
- \`variant="caption1"\` - renders "small_text" typography
|
|
50
|
-
- \`variant="caption2"\` - renders "Semi-bold small_text" typography
|
|
51
|
-
- \`variant="link"\` - renders "regular_link" typography as Anchor link
|
|
52
|
-
- \`variant="subtitle-link"\` - renders "small_link" typography as Anchor link
|
|
53
|
-
- \`variant="caution"\` - renders "caution" typography used in reCAPTCHA
|
|
54
|
-
- \`variant="caution-error"\` - renders "caution-error" typography used in reCAPTCHA
|
|
55
|
-
- \`variant="signature"\` - renders "signature" typography used in reCAPTCHA
|
|
56
|
-
- \`variant="signature-legal"\` - renders "signature-legal" typography used in reCAPTCHA`,
|
|
57
|
-
table: {
|
|
58
|
-
type: { summary: 'ElementType' },
|
|
59
|
-
defaultValue: { summary: '"p"' },
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
color: {
|
|
63
|
-
control: { type: 'color' as const },
|
|
64
|
-
description: 'Set Typography color from the design system',
|
|
65
|
-
},
|
|
66
|
-
align: {
|
|
67
|
-
control: 'select',
|
|
68
|
-
options: ['left', 'center', 'right', 'justify'],
|
|
69
|
-
description: 'Text alignment',
|
|
70
|
-
table: {
|
|
71
|
-
type: { summary: 'string' },
|
|
72
|
-
defaultValue: { summary: 'left' },
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
noWrap: {
|
|
76
|
-
control: 'boolean',
|
|
77
|
-
description: 'Prevent text from wrapping',
|
|
78
|
-
table: {
|
|
79
|
-
type: { summary: 'boolean' },
|
|
80
|
-
defaultValue: { summary: 'false' },
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
gutterBottom: {
|
|
84
|
-
control: 'boolean',
|
|
85
|
-
description: 'Add bottom margin (0.35em)',
|
|
86
|
-
table: {
|
|
87
|
-
type: { summary: 'boolean' },
|
|
88
|
-
defaultValue: { summary: 'false' },
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
// Margin controls with multiple types
|
|
92
|
-
mt: {
|
|
93
|
-
control: {
|
|
94
|
-
type: 'number',
|
|
95
|
-
min: 0,
|
|
96
|
-
max: 100,
|
|
97
|
-
step: 4,
|
|
98
|
-
},
|
|
99
|
-
description: 'Margin top (px)',
|
|
100
|
-
table: {
|
|
101
|
-
type: { summary: 'number' },
|
|
102
|
-
defaultValue: { summary: '0' },
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
mb: {
|
|
106
|
-
control: {
|
|
107
|
-
type: 'number',
|
|
108
|
-
min: 0,
|
|
109
|
-
max: 100,
|
|
110
|
-
step: 4,
|
|
111
|
-
},
|
|
112
|
-
description: 'Margin bottom (px)',
|
|
113
|
-
table: {
|
|
114
|
-
type: { summary: 'number' },
|
|
115
|
-
defaultValue: { summary: '0' },
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
ml: {
|
|
119
|
-
control: {
|
|
120
|
-
type: 'number',
|
|
121
|
-
min: 0,
|
|
122
|
-
max: 100,
|
|
123
|
-
step: 4,
|
|
124
|
-
},
|
|
125
|
-
description: 'Margin left (px)',
|
|
126
|
-
table: {
|
|
127
|
-
type: { summary: 'number' },
|
|
128
|
-
defaultValue: { summary: '0' },
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
mr: {
|
|
132
|
-
control: {
|
|
133
|
-
type: 'number',
|
|
134
|
-
min: 0,
|
|
135
|
-
max: 100,
|
|
136
|
-
step: 4,
|
|
137
|
-
},
|
|
138
|
-
description: 'Margin right (px)',
|
|
139
|
-
table: {
|
|
140
|
-
type: { summary: 'number' },
|
|
141
|
-
defaultValue: { summary: '0' },
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
mx: {
|
|
145
|
-
control: {
|
|
146
|
-
type: 'number',
|
|
147
|
-
min: 0,
|
|
148
|
-
max: 100,
|
|
149
|
-
step: 4,
|
|
150
|
-
},
|
|
151
|
-
description: 'Horizontal margin (px) - applies to both left and right',
|
|
152
|
-
table: {
|
|
153
|
-
type: { summary: 'number' },
|
|
154
|
-
defaultValue: { summary: '0' },
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
my: {
|
|
158
|
-
control: {
|
|
159
|
-
type: 'number',
|
|
160
|
-
min: 0,
|
|
161
|
-
max: 100,
|
|
162
|
-
step: 4,
|
|
163
|
-
},
|
|
164
|
-
description: 'Vertical margin (px) - applies to both top and bottom',
|
|
165
|
-
table: {
|
|
166
|
-
type: { summary: 'number' },
|
|
167
|
-
defaultValue: { summary: '0' },
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
|
-
children: {
|
|
171
|
-
control: 'text',
|
|
172
|
-
description: 'The content of the component',
|
|
173
|
-
table: {
|
|
174
|
-
type: { summary: 'ReactNode' },
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
className: {
|
|
178
|
-
control: 'text',
|
|
179
|
-
description: 'Additional CSS class names',
|
|
180
|
-
table: {
|
|
181
|
-
type: { summary: 'string' },
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
style: {
|
|
185
|
-
control: 'object',
|
|
186
|
-
description: 'Additional inline styles',
|
|
187
|
-
table: {
|
|
188
|
-
type: { summary: 'CSSProperties' },
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
args: {
|
|
193
|
-
color: 'var(--color-light-100)',
|
|
194
|
-
},
|
|
195
|
-
} satisfies Meta<typeof Typography>
|
|
196
|
-
|
|
197
|
-
export default meta
|
|
198
|
-
type Story = StoryObj<typeof meta>
|
|
199
|
-
|
|
200
|
-
export const AllTypography: Story = {
|
|
201
|
-
args: {
|
|
202
|
-
children: 'Typography',
|
|
203
|
-
},
|
|
204
|
-
render: args => (
|
|
205
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>
|
|
206
|
-
<Typography {...args} variant={'large'} style={{ marginBottom: '0.75rem' }}>
|
|
207
|
-
Large Text
|
|
208
|
-
</Typography>
|
|
209
|
-
<Typography {...args} variant={'h1'} style={{ marginBottom: '0.5rem' }}>
|
|
210
|
-
H1 Heading
|
|
211
|
-
</Typography>
|
|
212
|
-
<Typography {...args} variant={'h2'}>
|
|
213
|
-
H2 Heading
|
|
214
|
-
</Typography>
|
|
215
|
-
<Typography {...args} variant={'h3'}>
|
|
216
|
-
H3 Heading
|
|
217
|
-
</Typography>
|
|
218
|
-
<Typography {...args} variant={'subtitle1'}>
|
|
219
|
-
Subtitle 1
|
|
220
|
-
</Typography>
|
|
221
|
-
<Typography {...args} variant={'subtitle2'}>
|
|
222
|
-
Subtitle 2
|
|
223
|
-
</Typography>
|
|
224
|
-
<Typography {...args} variant={'body1'}>
|
|
225
|
-
Body 1
|
|
226
|
-
</Typography>
|
|
227
|
-
<Typography {...args} variant={'body2'}>
|
|
228
|
-
Body 2
|
|
229
|
-
</Typography>
|
|
230
|
-
<Typography {...args} variant={'body3'}>
|
|
231
|
-
Body 3
|
|
232
|
-
</Typography>
|
|
233
|
-
<Typography {...args} variant={'caption1'}>
|
|
234
|
-
Caption 1
|
|
235
|
-
</Typography>
|
|
236
|
-
<Typography {...args} variant={'caption2'}>
|
|
237
|
-
Caption 2
|
|
238
|
-
</Typography>
|
|
239
|
-
<Typography {...args} variant={'link'}>
|
|
240
|
-
Link
|
|
241
|
-
</Typography>
|
|
242
|
-
<Typography {...args} variant={'subtitle-link'}>
|
|
243
|
-
Subtitle Link
|
|
244
|
-
</Typography>
|
|
245
|
-
<Typography {...args} variant={'caution'}>
|
|
246
|
-
Caution
|
|
247
|
-
</Typography>
|
|
248
|
-
<Typography {...args} variant={'caution-error'}>
|
|
249
|
-
Caution Error (used only in reCAPTCHA)
|
|
250
|
-
</Typography>
|
|
251
|
-
<Typography {...args} variant={'signature'}>
|
|
252
|
-
Signature
|
|
253
|
-
</Typography>
|
|
254
|
-
<Typography {...args} variant={'signature-legal'}>
|
|
255
|
-
Signature Legal
|
|
256
|
-
</Typography>
|
|
257
|
-
</div>
|
|
258
|
-
),
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export const CustomComponent: Story = {
|
|
262
|
-
args: {
|
|
263
|
-
variant: 'h1',
|
|
264
|
-
children: 'H1 Header',
|
|
265
|
-
},
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export const ColorInheritComponent: Story = {
|
|
269
|
-
args: {
|
|
270
|
-
variant: 'h1',
|
|
271
|
-
children: 'H1 with CSS "color: inherit"',
|
|
272
|
-
},
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
export const LargeWithColor: Story = {
|
|
276
|
-
args: {
|
|
277
|
-
variant: 'large',
|
|
278
|
-
color: 'var(--color-danger-500)',
|
|
279
|
-
children: 'Typography body1 with color-danger-500',
|
|
280
|
-
},
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export const TypographyAsLink: Story = {
|
|
284
|
-
args: {
|
|
285
|
-
variant: 'link',
|
|
286
|
-
href: 'https://www.google.com',
|
|
287
|
-
target: '_blank',
|
|
288
|
-
children: 'Displayed as a link (Typography)',
|
|
289
|
-
},
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export const NoWrapTrue: Story = {
|
|
293
|
-
args: {
|
|
294
|
-
variant: 'body1',
|
|
295
|
-
noWrap: true,
|
|
296
|
-
children:
|
|
297
|
-
'Typography with very long text to test CSS "noWrap: true": Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since 1966, when designers at Letraset and James Mosley, the librarian at St Bride Printing Library in London, took a 1914 Cicero translation and scrambled it to make dummy text for Letraset\'s Body Type sheets. It has survived not only many decades, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised thanks to these sheets and more recently with desktop publishing software like Aldus PageMaker and Microsoft Word including versions of Lorem Ipsum',
|
|
298
|
-
},
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export const TypographyWithMargin: Story = {
|
|
302
|
-
args: {
|
|
303
|
-
variant: 'h1',
|
|
304
|
-
my: '3rem',
|
|
305
|
-
children: 'Typography with h1 and Margin',
|
|
306
|
-
},
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
export const TypographyCautionError: Story = {
|
|
310
|
-
args: {
|
|
311
|
-
variant: 'caution-error',
|
|
312
|
-
children: 'Typography with caution error',
|
|
313
|
-
},
|
|
314
|
-
}
|
package/src/stories/constants.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export const COLORS = {
|
|
2
|
-
accent: {
|
|
3
|
-
'--color-accent-100': '#73a5ff',
|
|
4
|
-
'--color-accent-300': '#4c8dff',
|
|
5
|
-
'--color-accent-500': '#397df6',
|
|
6
|
-
'--color-accent-700': '#2f68cc',
|
|
7
|
-
'--color-accent-900': '#234e99',
|
|
8
|
-
},
|
|
9
|
-
success: {
|
|
10
|
-
'--color-success-100': '#80ffbf',
|
|
11
|
-
'--color-success-300': '#22e584',
|
|
12
|
-
'--color-success-500': '#14cc70',
|
|
13
|
-
'--color-success-700': '#0f9954',
|
|
14
|
-
'--color-success-900': '#0a6638',
|
|
15
|
-
},
|
|
16
|
-
danger: {
|
|
17
|
-
'--color-danger-100': '#ff8099',
|
|
18
|
-
'--color-danger-300': '#f23d61',
|
|
19
|
-
'--color-danger-500': '#cc1439',
|
|
20
|
-
'--color-danger-700': '#990f2b',
|
|
21
|
-
'--color-danger-900': '#660a1d',
|
|
22
|
-
},
|
|
23
|
-
warning: {
|
|
24
|
-
'--color-warning-100': '#ffd073',
|
|
25
|
-
'--color-warning-300': '#e5ac39',
|
|
26
|
-
'--color-warning-500': '#d99000',
|
|
27
|
-
'--color-warning-700': '#960',
|
|
28
|
-
'--color-warning-900': '#640',
|
|
29
|
-
},
|
|
30
|
-
dark: {
|
|
31
|
-
'--color-dark-100': '#4c4c4c',
|
|
32
|
-
'--color-dark-300': '#333',
|
|
33
|
-
'--color-dark-500': '#171717',
|
|
34
|
-
'--color-dark-700': '#0d0d0d',
|
|
35
|
-
'--color-dark-900': '#000',
|
|
36
|
-
'--color-secondary-active': '#212121',
|
|
37
|
-
},
|
|
38
|
-
light: {
|
|
39
|
-
'--color-light-100': '#fff',
|
|
40
|
-
'--color-light-300': '#f7fbff',
|
|
41
|
-
'--color-light-500': '#edf3fa',
|
|
42
|
-
'--color-light-700': '#d5dae0',
|
|
43
|
-
'--color-light-900': '#8d9094',
|
|
44
|
-
},
|
|
45
|
-
} as const
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
@use '../../styles/mixins' as *;
|
|
2
|
-
@use '../../styles/typography' as *;
|
|
3
|
-
|
|
4
|
-
.palette {
|
|
5
|
-
max-width: 1200px;
|
|
6
|
-
margin: 0 auto;
|
|
7
|
-
padding: 2.5rem;
|
|
8
|
-
border-radius: 0.75rem;
|
|
9
|
-
|
|
10
|
-
background-color: var(--color-light-100);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.title {
|
|
14
|
-
margin-bottom: 0.5rem;
|
|
15
|
-
color: var(--color-dark-900);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.subtitle {
|
|
19
|
-
margin-bottom: 1.5rem;
|
|
20
|
-
color: var(--color-dark-300);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.deck {
|
|
24
|
-
@include flex('flex', 'center', 'center');
|
|
25
|
-
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
width: 7.5rem;
|
|
28
|
-
margin: 0.5rem;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.card {
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: 5rem;
|
|
34
|
-
border-radius: 0.5rem;
|
|
35
|
-
box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.name {
|
|
39
|
-
margin-top: 0.5rem;
|
|
40
|
-
color: var(--color-dark-300);
|
|
41
|
-
text-align: center;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.hash {
|
|
45
|
-
font-weight: bold;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.collection {
|
|
49
|
-
margin-bottom: 2rem;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.colors {
|
|
53
|
-
margin-bottom: 1rem;
|
|
54
|
-
color: var(--color-dark-500);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.row {
|
|
58
|
-
display: flex;
|
|
59
|
-
flex-wrap: wrap;
|
|
60
|
-
gap: 0.5rem;
|
|
61
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { COLORS } from '@/stories/constants'
|
|
2
|
-
import s from './ColorPalette.module.scss'
|
|
3
|
-
|
|
4
|
-
type ColorCardProps = {
|
|
5
|
-
colorName: string
|
|
6
|
-
colorValue: string
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type ColorFamily = keyof typeof COLORS
|
|
10
|
-
|
|
11
|
-
type ColorGroupProps = {
|
|
12
|
-
title: string
|
|
13
|
-
colors: (typeof COLORS)[ColorFamily]
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
title: 'Design System/Color Palette',
|
|
18
|
-
parameters: {
|
|
19
|
-
layout: 'centered',
|
|
20
|
-
},
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const ColorCard = ({ colorName, colorValue }: ColorCardProps) => {
|
|
24
|
-
const isLight =
|
|
25
|
-
colorName.includes('--color-light-100') ||
|
|
26
|
-
colorName.includes('--color-light-300') ||
|
|
27
|
-
colorName.includes('--color-light-500') ||
|
|
28
|
-
colorName.includes('--color-light-700') ||
|
|
29
|
-
colorName.includes('--color-light-900')
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<div className={s.deck}>
|
|
33
|
-
<div
|
|
34
|
-
className={s.card}
|
|
35
|
-
style={{
|
|
36
|
-
backgroundColor: colorValue,
|
|
37
|
-
border: isLight ? '1px solid var(--color-light-700)' : 'none',
|
|
38
|
-
}}
|
|
39
|
-
/>
|
|
40
|
-
<span className={`typography-caption1 ${s.name}`}>
|
|
41
|
-
{colorName}
|
|
42
|
-
<br />
|
|
43
|
-
<span className={s.hash}>{colorValue}</span>
|
|
44
|
-
</span>
|
|
45
|
-
</div>
|
|
46
|
-
)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const ColorGroup = ({ title, colors }: ColorGroupProps) => {
|
|
50
|
-
return (
|
|
51
|
-
<div className={s.collection}>
|
|
52
|
-
<h3 className={`typography-h3 ${s.colors}`}>{title}</h3>
|
|
53
|
-
<div className={s.row}>
|
|
54
|
-
{Object.entries(colors).map(([name, value]) => (
|
|
55
|
-
<ColorCard key={name} colorName={name} colorValue={value} />
|
|
56
|
-
))}
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
)
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export const Colors = () => {
|
|
63
|
-
return (
|
|
64
|
-
<div className={s.palette}>
|
|
65
|
-
<h1 className={`typography-h1 ${s.title}`}>Color Palette</h1>
|
|
66
|
-
<p className={`typography-subtitle1 ${s.subtitle}`}>All colors used in the design system</p>
|
|
67
|
-
|
|
68
|
-
<ColorGroup title={'Accent Colors'} colors={COLORS.accent} />
|
|
69
|
-
<ColorGroup title={'Success Colors'} colors={COLORS.success} />
|
|
70
|
-
<ColorGroup title={'Danger Colors'} colors={COLORS.danger} />
|
|
71
|
-
<ColorGroup title={'Warning Colors'} colors={COLORS.warning} />
|
|
72
|
-
<ColorGroup title={'Dark Colors'} colors={COLORS.dark} />
|
|
73
|
-
<ColorGroup title={'Light Colors'} colors={COLORS.light} />
|
|
74
|
-
</div>
|
|
75
|
-
)
|
|
76
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export const coloredIconMeta = {
|
|
2
|
-
argTypes: {
|
|
3
|
-
autoSize: {
|
|
4
|
-
control: { type: 'radio' as const },
|
|
5
|
-
options: [true, false],
|
|
6
|
-
description:
|
|
7
|
-
'Determines whether the icon should be scaled according to the font size. Sets the width and height to 1em',
|
|
8
|
-
},
|
|
9
|
-
size: {
|
|
10
|
-
control: {
|
|
11
|
-
type: 'range' as const,
|
|
12
|
-
min: 12,
|
|
13
|
-
max: 120,
|
|
14
|
-
step: 2,
|
|
15
|
-
},
|
|
16
|
-
description: 'Set the icon width and height in pixels',
|
|
17
|
-
},
|
|
18
|
-
svgProps: {
|
|
19
|
-
control: { type: 'object' as const },
|
|
20
|
-
description: 'Props passed directly to the SVG element',
|
|
21
|
-
table: {
|
|
22
|
-
type: { summary: 'SVGProps<SVGSVGElement>' },
|
|
23
|
-
defaultValue: { summary: '' },
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
args: {
|
|
28
|
-
autoSize: false,
|
|
29
|
-
size: 30,
|
|
30
|
-
},
|
|
31
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export const iconMeta = {
|
|
2
|
-
argTypes: {
|
|
3
|
-
autoSize: {
|
|
4
|
-
control: { type: 'radio' as const },
|
|
5
|
-
options: [true, false],
|
|
6
|
-
description:
|
|
7
|
-
'Determines whether the icon should be scaled according to the font size. Sets the width and height to 1em',
|
|
8
|
-
},
|
|
9
|
-
backgroundColor: {
|
|
10
|
-
control: { type: 'color' as const },
|
|
11
|
-
description: 'Set the icon fill background color from the design system',
|
|
12
|
-
},
|
|
13
|
-
color: {
|
|
14
|
-
control: { type: 'color' as const },
|
|
15
|
-
description: 'Set the icon fill color from the design system',
|
|
16
|
-
},
|
|
17
|
-
size: {
|
|
18
|
-
control: {
|
|
19
|
-
type: 'range' as const,
|
|
20
|
-
min: 12,
|
|
21
|
-
max: 120,
|
|
22
|
-
step: 2,
|
|
23
|
-
},
|
|
24
|
-
description: 'Set the icon width and height in pixels',
|
|
25
|
-
},
|
|
26
|
-
svgProps: {
|
|
27
|
-
control: { type: 'object' as const },
|
|
28
|
-
description: 'Props passed directly to the SVG element',
|
|
29
|
-
table: {
|
|
30
|
-
type: { summary: 'SVGProps<SVGSVGElement>' },
|
|
31
|
-
defaultValue: { summary: '' },
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
args: {
|
|
36
|
-
autoSize: false,
|
|
37
|
-
size: 30,
|
|
38
|
-
color: 'var(--color-light-100)',
|
|
39
|
-
},
|
|
40
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export const logoIconMeta = {
|
|
2
|
-
argTypes: {
|
|
3
|
-
size: {
|
|
4
|
-
control: {
|
|
5
|
-
type: 'select' as const,
|
|
6
|
-
options: ['xs', 's', 'm', 'l', 'xl'] as const,
|
|
7
|
-
},
|
|
8
|
-
description: `Set the logo width and height in pixels
|
|
9
|
-
**Examples:**
|
|
10
|
-
- \`size="xs"\` - The size of Logo is 16px
|
|
11
|
-
- \`size="s"\` - The size of Logo is 24px
|
|
12
|
-
- \`size="m"\` - The size of Logo is 48px
|
|
13
|
-
- \`size="l"\` - The size of Logo is 72px
|
|
14
|
-
- \`size="xl"\` - The size of Logo is 108px`,
|
|
15
|
-
},
|
|
16
|
-
theme: {
|
|
17
|
-
control: {
|
|
18
|
-
type: 'select' as const,
|
|
19
|
-
options: ['day', 'night'] as const,
|
|
20
|
-
},
|
|
21
|
-
description:
|
|
22
|
-
'Determines whether the logo should be scaled according to the font size. Sets the width and height to 1em',
|
|
23
|
-
},
|
|
24
|
-
svgProps: {
|
|
25
|
-
control: { type: 'object' as const },
|
|
26
|
-
description: 'Props passed directly to the Logo SVG element',
|
|
27
|
-
table: {
|
|
28
|
-
type: { summary: 'SVGProps<SVGSVGElement>' },
|
|
29
|
-
defaultValue: { summary: '' },
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { fn } from 'storybook/test'
|
|
2
|
-
|
|
3
|
-
export const buttonMeta = {
|
|
4
|
-
argTypes: {
|
|
5
|
-
as: {
|
|
6
|
-
control: {
|
|
7
|
-
type: 'text' as const,
|
|
8
|
-
},
|
|
9
|
-
description: `The component used for the root node. Either a string to use an HTML element or a React component.
|
|
10
|
-
**Examples:**
|
|
11
|
-
- \`as="button"\` - renders a <button> element (default)
|
|
12
|
-
- \`as="a"\` - renders an <a> link element
|
|
13
|
-
- \`as="div"\` - renders a <div> element`,
|
|
14
|
-
table: {
|
|
15
|
-
type: { summary: 'ElementType' as const },
|
|
16
|
-
defaultValue: { summary: '"button"' },
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
onClick: { action: 'clicked' },
|
|
20
|
-
variant: {
|
|
21
|
-
control: { type: 'radio' as const },
|
|
22
|
-
options: ['primary', 'secondary', 'outlined', 'text'],
|
|
23
|
-
table: {
|
|
24
|
-
type: { summary: "'primary' | 'secondary' | 'outlined' | 'text'" },
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
args: {
|
|
30
|
-
as: 'button' as const,
|
|
31
|
-
onClick: fn(),
|
|
32
|
-
},
|
|
33
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { iconMeta } from '@/storybook-utils/assets/iconMeta'
|
|
2
|
-
export { coloredIconMeta } from '@/storybook-utils/assets/coloredIconMeta'
|
|
3
|
-
export { logoIconMeta } from '@/storybook-utils/assets/logoMeta'
|
|
4
|
-
export { buttonMeta } from '@/storybook-utils/components/ButtonMeta'
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
html {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
font-size: 100%;
|
|
4
|
-
|
|
5
|
-
-webkit-font-smoothing: antialiased;
|
|
6
|
-
-moz-osx-font-smoothing: grayscale;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
*,
|
|
10
|
-
*::before,
|
|
11
|
-
*::after {
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
input,
|
|
16
|
-
button,
|
|
17
|
-
select,
|
|
18
|
-
textarea,
|
|
19
|
-
optgroup,
|
|
20
|
-
option {
|
|
21
|
-
font-family: inherit;
|
|
22
|
-
font-size: inherit;
|
|
23
|
-
font-weight: inherit;
|
|
24
|
-
font-style: inherit;
|
|
25
|
-
color: inherit;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
body {
|
|
29
|
-
margin: 0;
|
|
30
|
-
padding: 0;
|
|
31
|
-
|
|
32
|
-
font-family: var(--font-family-primary), sans-serif;
|
|
33
|
-
line-height: var(--line-height-m);
|
|
34
|
-
color: var(--color-light-100);
|
|
35
|
-
|
|
36
|
-
background-color: var(--color-dark-900);
|
|
37
|
-
}
|