@candy.thieves/ui-kit-lumos 0.0.24 → 0.0.25
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/.github/pull_request_template.md +31 -0
- package/.github/workflows/deploy-storybook.yml +19 -0
- package/.github/workflows/publish.yml +33 -0
- package/.husky/commit-msg +1 -0
- package/.husky/pre-commit +3 -0
- package/.husky/pre-push +2 -0
- package/.husky/prepare-commit-msg +9 -0
- package/.prettierignore +5 -0
- package/.prettierrc.cjs +4 -0
- package/.storybook/main.d.ts +3 -0
- package/.storybook/main.ts +26 -0
- package/.storybook/manager.ts +6 -0
- package/.storybook/preview.d.ts +6 -0
- package/.storybook/preview.tsx +28 -0
- package/.storybook/theme.ts +17 -0
- package/.stylelintrc.cjs +3 -0
- package/AGENTS.md +80 -0
- package/agent-docs/architecture.md +31 -0
- package/agent-docs/execplans.md +33 -0
- package/agent-docs/frontend.md +99 -0
- package/commitlint.config.js +63 -0
- package/eslint.config.js +101 -0
- package/index.html +13 -0
- package/package.json +14 -8
- package/pnpm-workspace.yaml +4 -0
- package/src/assets/icons/ArrowBackOutline.tsx +33 -0
- package/src/assets/icons/ArrowForwardOutline.tsx +32 -0
- package/src/assets/icons/ArrowIosBack.tsx +32 -0
- package/src/assets/icons/ArrowIosBackOutline.tsx +32 -0
- package/src/assets/icons/ArrowIosDownOutline.tsx +34 -0
- package/src/assets/icons/ArrowIosForward.tsx +32 -0
- package/src/assets/icons/ArrowIosForwardOutline.tsx +32 -0
- package/src/assets/icons/ArrowIosUp.tsx +35 -0
- package/src/assets/icons/Block.tsx +31 -0
- package/src/assets/icons/BlockOutline.tsx +37 -0
- package/src/assets/icons/Bookmark.tsx +32 -0
- package/src/assets/icons/BookmarkOutline.tsx +32 -0
- package/src/assets/icons/Brave.tsx +26 -0
- package/src/assets/icons/Calendar.tsx +32 -0
- package/src/assets/icons/CalendarOutline.tsx +32 -0
- package/src/assets/icons/CheckmarkOutline.tsx +27 -0
- package/src/assets/icons/Close.tsx +27 -0
- package/src/assets/icons/CloseOutline.tsx +27 -0
- package/src/assets/icons/ColorPaletteOutline.tsx +36 -0
- package/src/assets/icons/Copy.tsx +32 -0
- package/src/assets/icons/CopyOutline.tsx +36 -0
- package/src/assets/icons/CreditCard.tsx +32 -0
- package/src/assets/icons/CreditCardOutline.tsx +32 -0
- package/src/assets/icons/DoneAllOutline.tsx +32 -0
- package/src/assets/icons/Edit.tsx +31 -0
- package/src/assets/icons/EditOutline.tsx +31 -0
- package/src/assets/icons/Email.tsx +32 -0
- package/src/assets/icons/EmailOutline.tsx +32 -0
- package/src/assets/icons/ErrorIcon.tsx +39 -0
- package/src/assets/icons/Expand.tsx +31 -0
- package/src/assets/icons/ExpandOutline.tsx +31 -0
- package/src/assets/icons/Explorer.tsx +26 -0
- package/src/assets/icons/Eye.tsx +32 -0
- package/src/assets/icons/EyeOff.tsx +36 -0
- package/src/assets/icons/EyeOffOutline.tsx +36 -0
- package/src/assets/icons/EyeOutline.tsx +34 -0
- package/src/assets/icons/Facebook.tsx +32 -0
- package/src/assets/icons/FileIcon.tsx +36 -0
- package/src/assets/icons/FillBell.tsx +48 -0
- package/src/assets/icons/Firefox.tsx +33 -0
- package/src/assets/icons/FlagEng.tsx +33 -0
- package/src/assets/icons/FlagRus.tsx +33 -0
- package/src/assets/icons/GithubRepo.tsx +32 -0
- package/src/assets/icons/Google.tsx +45 -0
- package/src/assets/icons/Heart.tsx +32 -0
- package/src/assets/icons/HeartOutline.tsx +32 -0
- package/src/assets/icons/Home.tsx +33 -0
- package/src/assets/icons/HomeOutline.tsx +27 -0
- package/src/assets/icons/Image.tsx +32 -0
- package/src/assets/icons/ImageOutline.tsx +32 -0
- package/src/assets/icons/Layers.tsx +41 -0
- package/src/assets/icons/LayersOutline.tsx +32 -0
- package/src/assets/icons/LogOut.tsx +31 -0
- package/src/assets/icons/LogOutOutline.tsx +31 -0
- package/src/assets/icons/Maximize.tsx +32 -0
- package/src/assets/icons/MaximizeOutline.tsx +34 -0
- package/src/assets/icons/MenuOutline.tsx +31 -0
- package/src/assets/icons/MessageCircle.tsx +32 -0
- package/src/assets/icons/MessageCircleOutline.tsx +36 -0
- package/src/assets/icons/Mic.tsx +32 -0
- package/src/assets/icons/MicOutline.tsx +36 -0
- package/src/assets/icons/MicrosoftEdge.tsx +112 -0
- package/src/assets/icons/MoreHorizontal.tsx +31 -0
- package/src/assets/icons/MoreHorizontalOutline.tsx +31 -0
- package/src/assets/icons/Opera.tsx +33 -0
- package/src/assets/icons/OutlineBell.tsx +72 -0
- package/src/assets/icons/Paid.tsx +37 -0
- package/src/assets/icons/PaperPlane.tsx +32 -0
- package/src/assets/icons/PaperPlaneOutline.tsx +32 -0
- package/src/assets/icons/PauseCircle.tsx +32 -0
- package/src/assets/icons/PauseCircleOutline.tsx +34 -0
- package/src/assets/icons/Paypal.tsx +72 -0
- package/src/assets/icons/Person.tsx +29 -0
- package/src/assets/icons/PersonAdd.tsx +31 -0
- package/src/assets/icons/PersonAddOutline.tsx +31 -0
- package/src/assets/icons/PersonOutline.tsx +31 -0
- package/src/assets/icons/PersonRemove.tsx +31 -0
- package/src/assets/icons/PersonRemoveOutline.tsx +31 -0
- package/src/assets/icons/Pin.tsx +32 -0
- package/src/assets/icons/PinOutline.tsx +34 -0
- package/src/assets/icons/PlayCircle.tsx +32 -0
- package/src/assets/icons/PlayCircleOutline.tsx +32 -0
- package/src/assets/icons/PlusCircle.tsx +32 -0
- package/src/assets/icons/PlusCircleOutline.tsx +30 -0
- package/src/assets/icons/PlusSquare.tsx +32 -0
- package/src/assets/icons/PlusSquareOutline.tsx +34 -0
- package/src/assets/icons/RadioButtonChecked.tsx +32 -0
- package/src/assets/icons/RadioButtonUnchecked.tsx +30 -0
- package/src/assets/icons/RecaptchaLogo.tsx +42 -0
- package/src/assets/icons/Safari.tsx +37 -0
- package/src/assets/icons/Search.tsx +32 -0
- package/src/assets/icons/SearchOutline.tsx +32 -0
- package/src/assets/icons/Sending.tsx +28 -0
- package/src/assets/icons/Settings.tsx +32 -0
- package/src/assets/icons/SettingsOutline.tsx +34 -0
- package/src/assets/icons/Stripe.tsx +40 -0
- package/src/assets/icons/Trash.tsx +32 -0
- package/src/assets/icons/TrashOutline.tsx +32 -0
- package/src/assets/icons/TrendingUp.tsx +32 -0
- package/src/assets/icons/TrendingUpOutline.tsx +32 -0
- package/src/assets/icons/UcBrowser.tsx +78 -0
- package/src/assets/icons/Yandex.tsx +36 -0
- package/src/assets/index.ts +104 -0
- package/src/assets/logo/Logo.tsx +55 -0
- package/src/components/Alert/Alert.module.scss +61 -0
- package/src/components/Alert/Alert.tsx +79 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/AudioPlayer/AudioPlayer.module.scss +74 -0
- package/src/components/AudioPlayer/AudioPlayer.tsx +119 -0
- package/src/components/AudioPlayer/index.ts +1 -0
- package/src/components/Avatar/Avatar.module.scss +151 -0
- package/src/components/Avatar/Avatar.tsx +36 -0
- package/src/components/Avatar/AvatarBlock.tsx +43 -0
- package/src/components/Avatar/MainAvatar.tsx +65 -0
- package/src/components/Avatar/index.ts +3 -0
- package/src/components/Button/Button.module.scss +143 -0
- package/src/components/Button/Button.tsx +48 -0
- package/src/components/Button/ButtonLegacy.tsx +94 -0
- package/src/components/Button/index.ts +2 -0
- package/src/components/Cards/Cards.module.scss +11 -0
- package/src/components/Cards/Cards.tsx +21 -0
- package/src/components/Cards/index.ts +1 -0
- package/src/components/Carousel/Carousel.module.scss +97 -0
- package/src/components/Carousel/Carousel.tsx +64 -0
- package/src/components/Carousel/index.ts +1 -0
- package/src/components/Checkbox/Checkbox.module.scss +76 -0
- package/src/components/Checkbox/Checkbox.tsx +48 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/CircularProgress/CircularProgress.module.scss +33 -0
- package/src/components/CircularProgress/CircularProgress.tsx +33 -0
- package/src/components/CircularProgress/index.ts +1 -0
- package/src/components/Input/Input.module.scss +105 -0
- package/src/components/Input/Input.tsx +79 -0
- package/src/components/Input/index.ts +1 -0
- package/src/components/LinearProgress/LinearProgress.module.scss +62 -0
- package/src/components/LinearProgress/LinearProgress.tsx +49 -0
- package/src/components/LinearProgress/index.ts +1 -0
- package/src/components/Menu/Menu.module.scss +48 -0
- package/src/components/Menu/Menu.tsx +51 -0
- package/src/components/Menu/index.ts +1 -0
- package/src/components/Message/AttachmentItem.tsx +19 -0
- package/src/components/Message/Message.module.scss +123 -0
- package/src/components/Message/Message.tsx +54 -0
- package/src/components/Message/MessageStatus.tsx +19 -0
- package/src/components/Message/ReplyPreview.tsx +19 -0
- package/src/components/Message/index.ts +2 -0
- package/src/components/Message/types.ts +49 -0
- package/src/components/Modal/Modal.module.scss +118 -0
- package/src/components/Modal/Modal.tsx +82 -0
- package/src/components/Modal/index.ts +1 -0
- package/src/components/PasswordInput/PasswordInput.module.scss +13 -0
- package/src/components/PasswordInput/PasswordInput.tsx +36 -0
- package/src/components/PasswordInput/index.ts +1 -0
- package/src/components/RadioGroup/RadioGroup.module.scss +95 -0
- package/src/components/RadioGroup/RadioGroup.tsx +64 -0
- package/src/components/RadioGroup/index.ts +1 -0
- package/src/components/ReadMore/ReadMore.module.scss +8 -0
- package/src/components/ReadMore/ReadMore.tsx +49 -0
- package/src/components/ReadMore/index.ts +1 -0
- package/src/components/Recaptcha/Recaptcha.module.scss +10 -0
- package/src/components/Recaptcha/Recaptcha.tsx +58 -0
- package/src/components/Recaptcha/index.ts +1 -0
- package/src/components/Scroll/Scroll.module.scss +58 -0
- package/src/components/Scroll/Scroll.tsx +47 -0
- package/src/components/Scroll/index.ts +1 -0
- package/src/components/SearchInput/SearchInput.tsx +17 -0
- package/src/components/SearchInput/index.ts +1 -0
- package/src/components/Select/Select.module.scss +160 -0
- package/src/components/Select/Select.tsx +262 -0
- package/src/components/Select/index.ts +1 -0
- package/src/components/Sidebar/Sidebar.module.scss +100 -0
- package/src/components/Sidebar/Sidebar.tsx +74 -0
- package/src/components/Sidebar/index.ts +1 -0
- package/src/components/Slider/Slider.module.scss +64 -0
- package/src/components/Slider/Slider.tsx +26 -0
- package/src/components/Slider/index.ts +1 -0
- package/src/components/Table/Table.module.scss +23 -0
- package/src/components/Table/Table.tsx +57 -0
- package/src/components/Table/index.ts +1 -0
- package/src/components/Tabs/Tabs.module.scss +78 -0
- package/src/components/Tabs/Tabs.tsx +57 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/TextArea/TextArea.module.scss +107 -0
- package/src/components/TextArea/TextArea.tsx +57 -0
- package/src/components/TextArea/index.ts +1 -0
- package/src/components/Tooltip/Tooltip.module.scss +11 -0
- package/src/components/Tooltip/Tooltip.tsx +43 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Typography/Typography.module.scss +29 -0
- package/src/components/Typography/Typography.tsx +135 -0
- package/src/components/Typography/index.ts +1 -0
- package/src/components/index.ts +27 -0
- package/{dist/types/components/types/index.d.ts → src/components/types/index.ts} +1 -1
- package/src/components/types/scroll.types.ts +11 -0
- package/src/constants/constants.ts +22 -0
- package/src/constants/index.ts +1 -0
- package/src/demo/TestMixins/TestMixins.module.scss +457 -0
- package/src/demo/TestMixins/TestMixins.tsx +107 -0
- package/src/demo/index.ts +1 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useScrollThumbs.ts +65 -0
- package/src/hooks/useThumbDrag.ts +90 -0
- package/src/index.ts +9 -0
- package/src/stories/Configure.mdx +183 -0
- package/src/stories/assets/icons/ArrowBackOutline.stories.ts +40 -0
- package/src/stories/assets/icons/ArrowForwardOutline.stories.ts +40 -0
- package/src/stories/assets/icons/ArrowIosBack.stories.ts +40 -0
- package/src/stories/assets/icons/ArrowIosBackOutline.stories.ts +40 -0
- package/src/stories/assets/icons/ArrowIosDownOutline.stories.ts +40 -0
- package/src/stories/assets/icons/ArrowIosForward.stories.ts +40 -0
- package/src/stories/assets/icons/ArrowIosForwardOutline.stories.ts +40 -0
- package/src/stories/assets/icons/ArrowIosUp.stories.ts +38 -0
- package/src/stories/assets/icons/Block.stories.ts +39 -0
- package/src/stories/assets/icons/BlockOutline.stories.ts +39 -0
- package/src/stories/assets/icons/Bookmark.stories.ts +39 -0
- package/src/stories/assets/icons/BookmarkOutline.stories.ts +40 -0
- package/src/stories/assets/icons/Brave.stories.ts +48 -0
- package/src/stories/assets/icons/Calendar.stories.ts +40 -0
- package/src/stories/assets/icons/CalendarOutline.stories.ts +39 -0
- package/src/stories/assets/icons/CheckmarkOutline.stories.ts +40 -0
- package/src/stories/assets/icons/Close.stories.ts +40 -0
- package/src/stories/assets/icons/CloseOutline.stories.ts +40 -0
- package/src/stories/assets/icons/ColorPaletteOutline.stories.ts +39 -0
- package/src/stories/assets/icons/Copy.stories.ts +38 -0
- package/src/stories/assets/icons/CopyOutline.stories.ts +39 -0
- package/src/stories/assets/icons/CreditCard.stories.ts +38 -0
- package/src/stories/assets/icons/CreditCardOutline.stories.ts +39 -0
- package/src/stories/assets/icons/DoneAllOutline.stories.ts +38 -0
- package/src/stories/assets/icons/Edit.stories.ts +39 -0
- package/src/stories/assets/icons/EditOutline.stories.ts +38 -0
- package/src/stories/assets/icons/Email.stories.ts +39 -0
- package/src/stories/assets/icons/EmailOutline.stories.ts +38 -0
- package/src/stories/assets/icons/ErrorIcon.stories.ts +40 -0
- package/src/stories/assets/icons/Expand.stories.ts +39 -0
- package/src/stories/assets/icons/ExpandOutline.stories.ts +38 -0
- package/src/stories/assets/icons/Explorer.stories.ts +47 -0
- package/src/stories/assets/icons/Eye.stories.ts +39 -0
- package/src/stories/assets/icons/EyeOff.stories.ts +38 -0
- package/src/stories/assets/icons/EyeOffOutline.stories.ts +39 -0
- package/src/stories/assets/icons/EyeOutline.stories.ts +38 -0
- package/src/stories/assets/icons/Facebook.stories.ts +37 -0
- package/src/stories/assets/icons/FileIcon.stories.ts +40 -0
- package/src/stories/assets/icons/FillBell.stories.ts +40 -0
- package/src/stories/assets/icons/Firefox.stories.ts +48 -0
- package/src/stories/assets/icons/FlagEng.stories.ts +37 -0
- package/src/stories/assets/icons/FlagRus.stories.ts +37 -0
- package/src/stories/assets/icons/GithubRepo.stories.ts +38 -0
- package/src/stories/assets/icons/Google.stories.ts +38 -0
- package/src/stories/assets/icons/Heart.stories.ts +39 -0
- package/src/stories/assets/icons/HeartOutline.stories.ts +38 -0
- package/src/stories/assets/icons/Home.stories.ts +40 -0
- package/src/stories/assets/icons/HomeOutline.stories.ts +40 -0
- package/src/stories/assets/icons/Icon.module.scss +4 -0
- package/src/stories/assets/icons/ImageIcon.stories.ts +39 -0
- package/src/stories/assets/icons/ImageOutline.stories.ts +38 -0
- package/src/stories/assets/icons/Layers.stories.ts +39 -0
- package/src/stories/assets/icons/LayersOutline.stories.ts +38 -0
- package/src/stories/assets/icons/LogOut.stories.ts +40 -0
- package/src/stories/assets/icons/LogOutOutline.stories.ts +40 -0
- package/src/stories/assets/icons/Maximize.stories.ts +39 -0
- package/src/stories/assets/icons/MaximizeOutline.stories.ts +39 -0
- package/src/stories/assets/icons/MenuOutline.stories.ts +39 -0
- package/src/stories/assets/icons/MessageCircle.stories.ts +38 -0
- package/src/stories/assets/icons/MessageCircleOutline.stories.ts +39 -0
- package/src/stories/assets/icons/Mic.stories.ts +38 -0
- package/src/stories/assets/icons/MicOutline.stories.ts +39 -0
- package/src/stories/assets/icons/MicrosoftEdge.stories.ts +47 -0
- package/src/stories/assets/icons/MoreHorizontal.stories.ts +40 -0
- package/src/stories/assets/icons/MoreHorizontalOutline.stories.ts +38 -0
- package/src/stories/assets/icons/Opera.stories.ts +47 -0
- package/src/stories/assets/icons/OutlineBell.stories.ts +58 -0
- package/src/stories/assets/icons/Paid.stories.ts +38 -0
- package/src/stories/assets/icons/PaperPlane.stories.ts +40 -0
- package/src/stories/assets/icons/PaperPlaneOutline.stories.ts +38 -0
- package/src/stories/assets/icons/PauseCircle.stories.ts +39 -0
- package/src/stories/assets/icons/PauseCircleOutline.stories.ts +38 -0
- package/src/stories/assets/icons/Paypal.stories.ts +16 -0
- package/src/stories/assets/icons/Person.stories.ts +39 -0
- package/src/stories/assets/icons/PersonAdd.stories.ts +38 -0
- package/src/stories/assets/icons/PersonAddOutline.stories.ts +39 -0
- package/src/stories/assets/icons/PersonOutline.stories.ts +39 -0
- package/src/stories/assets/icons/PersonRemove.stories.ts +38 -0
- package/src/stories/assets/icons/PersonRemoveOutline.stories.ts +39 -0
- package/src/stories/assets/icons/Pin.stories.ts +38 -0
- package/src/stories/assets/icons/PinOutline.stories.ts +39 -0
- package/src/stories/assets/icons/PlayCircle.stories.ts +38 -0
- package/src/stories/assets/icons/PlayCircleOutline.stories.ts +39 -0
- package/src/stories/assets/icons/PlusCircle.stories.ts +38 -0
- package/src/stories/assets/icons/PlusCircleOutline.stories.ts +39 -0
- package/src/stories/assets/icons/PlusSquare.stories.ts +38 -0
- package/src/stories/assets/icons/PlusSquareOutline.stories.ts +39 -0
- package/src/stories/assets/icons/RadioButtonChecked.stories.ts +38 -0
- package/src/stories/assets/icons/RadioButtonUnchecked.stories.ts +39 -0
- package/src/stories/assets/icons/RecaptchaLogo.stories.ts +36 -0
- package/src/stories/assets/icons/Safari.stories.ts +47 -0
- package/src/stories/assets/icons/Search.stories.ts +39 -0
- package/src/stories/assets/icons/SearchOutline.stories.ts +40 -0
- package/src/stories/assets/icons/Sending.stories.ts +40 -0
- package/src/stories/assets/icons/Settings.stories.ts +39 -0
- package/src/stories/assets/icons/SettingsOutline.stories.ts +40 -0
- package/src/stories/assets/icons/Stripe.stories.ts +38 -0
- package/src/stories/assets/icons/Trash.stories.ts +39 -0
- package/src/stories/assets/icons/TrashOutline.stories.ts +38 -0
- package/src/stories/assets/icons/TrendingUp.stories.ts +39 -0
- package/src/stories/assets/icons/TrendingUpOutline.stories.ts +38 -0
- package/src/stories/assets/icons/UcBrowser.stories.ts +48 -0
- package/src/stories/assets/icons/Yandex.stories.ts +47 -0
- package/src/stories/assets/logo/Logo.stories.ts +22 -0
- package/src/stories/components/Alert/Alert.stories.tsx +94 -0
- package/src/stories/components/Avatar/Avatar.stories.tsx +151 -0
- package/src/stories/components/Avatar/AvatarBlock.stories.tsx +301 -0
- package/src/stories/components/Avatar/MainAvatar.stories.tsx +200 -0
- package/src/stories/components/Button/Button.stories.tsx +99 -0
- package/src/stories/components/Button/ButtonLegacy.stories.tsx +99 -0
- package/src/stories/components/Cards/Cards.stories.tsx +185 -0
- package/src/stories/components/Carousel/Carousel.stories.tsx +89 -0
- package/src/stories/components/Carousel/CarouselWrapper.module.scss +7 -0
- package/src/stories/components/CheckBox/CheckBox.stories.tsx +92 -0
- package/src/stories/components/CircularProgress/CircularProgress.stories.tsx +66 -0
- package/src/stories/components/Input/Input.stories.tsx +88 -0
- package/src/stories/components/LinearProgress/LinearProgress.stories.tsx +137 -0
- package/src/stories/components/Menu/Menu.stories.tsx +100 -0
- package/src/stories/components/Message/Message.stories.tsx +311 -0
- package/src/stories/components/Modal/Modal.stories.module.scss +157 -0
- package/src/stories/components/Modal/Modal.stories.tsx +514 -0
- package/src/stories/components/PasswordInput/PasswordInput.stories.tsx +71 -0
- package/src/stories/components/RadioGroup/RadioGroup.stories.tsx +141 -0
- package/src/stories/components/ReadMore/ReadMore.stories.tsx +42 -0
- package/src/stories/components/Recaptcha/Recaptcha.stories.tsx +29 -0
- package/src/stories/components/Scroll/Scroll.stories.tsx +128 -0
- package/src/stories/components/SearchInput/SearchInput.stories.tsx +76 -0
- package/src/stories/components/Select/Select.stories.module.scss +6 -0
- package/src/stories/components/Select/Select.stories.tsx +147 -0
- package/src/stories/components/Sidebar/Sidebar.stories.tsx +126 -0
- package/src/stories/components/Slider/Slider.stories.tsx +58 -0
- package/src/stories/components/Table/Table.stories.tsx +108 -0
- package/src/stories/components/Tabs/Tabs.stories.tsx +75 -0
- package/src/stories/components/TestMixins/TestMixins.stories.tsx +16 -0
- package/src/stories/components/TextArea/TextArea.stories.tsx +100 -0
- package/src/stories/components/Tooltip/Tooltip.stories.tsx +54 -0
- package/src/stories/components/Typography/Typography.stories.tsx +314 -0
- package/src/stories/constants.ts +45 -0
- package/src/stories/palette/ColorPalette.module.scss +61 -0
- package/src/stories/palette/ColorPalette.stories.tsx +76 -0
- package/src/storybook-utils/assets/coloredIconMeta.ts +31 -0
- package/src/storybook-utils/assets/iconMeta.ts +40 -0
- package/src/storybook-utils/assets/logoMeta.ts +33 -0
- package/src/storybook-utils/components/ButtonMeta.ts +33 -0
- package/src/storybook-utils/index.ts +4 -0
- package/src/styles/_boilerplate.scss +37 -0
- package/src/styles/_colors.scss +46 -0
- package/src/styles/_mixins.scss +154 -0
- package/src/styles/_typography.scss +152 -0
- package/src/styles/index.scss +4 -0
- package/src/types/index.ts +1 -0
- package/src/types/types.ts +5 -0
- package/src/utils/ColorIconBase.tsx +26 -0
- package/src/utils/ColorIconBaseSmall.tsx +30 -0
- package/src/utils/IconBase.tsx +43 -0
- package/src/utils/formatTime.ts +6 -0
- package/src/utils/getFirstLetterCapitalized.ts +2 -0
- package/src/utils/getHorizontalMetrics.ts +12 -0
- package/src/utils/getNavItemClickHandler.ts +17 -0
- package/src/utils/getVerticalMetrics.ts +12 -0
- package/src/utils/index.ts +8 -0
- package/src/utils/isAudioAttachment.ts +7 -0
- package/src/utils/isThemeColor.ts +4 -0
- package/src/utils/truncateText.ts +15 -0
- package/tsconfig.app.json +32 -0
- package/tsconfig.build.json +16 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +23 -0
- package/vite-env.d.ts +20 -0
- package/vite.config.ts +67 -0
- package/vitest.shims.d.ts +1 -0
- package/dist/index.css +0 -2
- package/dist/index.js +0 -5614
- package/dist/index.js.map +0 -1
- package/dist/types/assets/icons/ArrowBackOutline.d.ts +0 -3
- package/dist/types/assets/icons/ArrowForwardOutline.d.ts +0 -3
- package/dist/types/assets/icons/ArrowIosBack.d.ts +0 -3
- package/dist/types/assets/icons/ArrowIosBackOutline.d.ts +0 -3
- package/dist/types/assets/icons/ArrowIosDownOutline.d.ts +0 -3
- package/dist/types/assets/icons/ArrowIosForward.d.ts +0 -3
- package/dist/types/assets/icons/ArrowIosForwardOutline.d.ts +0 -3
- package/dist/types/assets/icons/ArrowIosUp.d.ts +0 -3
- package/dist/types/assets/icons/Block.d.ts +0 -3
- package/dist/types/assets/icons/BlockOutline.d.ts +0 -3
- package/dist/types/assets/icons/Bookmark.d.ts +0 -3
- package/dist/types/assets/icons/BookmarkOutline.d.ts +0 -3
- package/dist/types/assets/icons/Brave.d.ts +0 -3
- package/dist/types/assets/icons/Calendar.d.ts +0 -3
- package/dist/types/assets/icons/CalendarOutline.d.ts +0 -3
- package/dist/types/assets/icons/CheckmarkOutline.d.ts +0 -3
- package/dist/types/assets/icons/Close.d.ts +0 -3
- package/dist/types/assets/icons/CloseOutline.d.ts +0 -3
- package/dist/types/assets/icons/ColorPaletteOutline.d.ts +0 -3
- package/dist/types/assets/icons/Copy.d.ts +0 -3
- package/dist/types/assets/icons/CopyOutline.d.ts +0 -3
- package/dist/types/assets/icons/CreditCard.d.ts +0 -3
- package/dist/types/assets/icons/CreditCardOutline.d.ts +0 -3
- package/dist/types/assets/icons/DoneAllOutline.d.ts +0 -3
- package/dist/types/assets/icons/Edit.d.ts +0 -3
- package/dist/types/assets/icons/EditOutline.d.ts +0 -3
- package/dist/types/assets/icons/Email.d.ts +0 -3
- package/dist/types/assets/icons/EmailOutline.d.ts +0 -3
- package/dist/types/assets/icons/ErrorIcon.d.ts +0 -3
- package/dist/types/assets/icons/Expand.d.ts +0 -3
- package/dist/types/assets/icons/ExpandOutline.d.ts +0 -3
- package/dist/types/assets/icons/Explorer.d.ts +0 -3
- package/dist/types/assets/icons/Eye.d.ts +0 -3
- package/dist/types/assets/icons/EyeOff.d.ts +0 -3
- package/dist/types/assets/icons/EyeOffOutline.d.ts +0 -3
- package/dist/types/assets/icons/EyeOutline.d.ts +0 -3
- package/dist/types/assets/icons/Facebook.d.ts +0 -3
- package/dist/types/assets/icons/FileIcon.d.ts +0 -3
- package/dist/types/assets/icons/FillBell.d.ts +0 -3
- package/dist/types/assets/icons/Firefox.d.ts +0 -3
- package/dist/types/assets/icons/FlagEng.d.ts +0 -3
- package/dist/types/assets/icons/FlagRus.d.ts +0 -3
- package/dist/types/assets/icons/GithubRepo.d.ts +0 -3
- package/dist/types/assets/icons/Google.d.ts +0 -3
- package/dist/types/assets/icons/Heart.d.ts +0 -3
- package/dist/types/assets/icons/HeartOutline.d.ts +0 -3
- package/dist/types/assets/icons/Home.d.ts +0 -3
- package/dist/types/assets/icons/HomeOutline.d.ts +0 -3
- package/dist/types/assets/icons/Image.d.ts +0 -3
- package/dist/types/assets/icons/ImageOutline.d.ts +0 -3
- package/dist/types/assets/icons/Layers.d.ts +0 -3
- package/dist/types/assets/icons/LayersOutline.d.ts +0 -3
- package/dist/types/assets/icons/LogOut.d.ts +0 -3
- package/dist/types/assets/icons/LogOutOutline.d.ts +0 -3
- package/dist/types/assets/icons/Maximize.d.ts +0 -3
- package/dist/types/assets/icons/MaximizeOutline.d.ts +0 -3
- package/dist/types/assets/icons/MenuOutline.d.ts +0 -3
- package/dist/types/assets/icons/MessageCircle.d.ts +0 -3
- package/dist/types/assets/icons/MessageCircleOutline.d.ts +0 -3
- package/dist/types/assets/icons/Mic.d.ts +0 -3
- package/dist/types/assets/icons/MicOutline.d.ts +0 -3
- package/dist/types/assets/icons/MicrosoftEdge.d.ts +0 -3
- package/dist/types/assets/icons/MoreHorizontal.d.ts +0 -3
- package/dist/types/assets/icons/MoreHorizontalOutline.d.ts +0 -3
- package/dist/types/assets/icons/Opera.d.ts +0 -3
- package/dist/types/assets/icons/OutlineBell.d.ts +0 -8
- package/dist/types/assets/icons/Paid.d.ts +0 -3
- package/dist/types/assets/icons/PaperPlane.d.ts +0 -3
- package/dist/types/assets/icons/PaperPlaneOutline.d.ts +0 -3
- package/dist/types/assets/icons/PauseCircle.d.ts +0 -3
- package/dist/types/assets/icons/PauseCircleOutline.d.ts +0 -3
- package/dist/types/assets/icons/Paypal.d.ts +0 -3
- package/dist/types/assets/icons/Person.d.ts +0 -3
- package/dist/types/assets/icons/PersonAdd.d.ts +0 -3
- package/dist/types/assets/icons/PersonAddOutline.d.ts +0 -3
- package/dist/types/assets/icons/PersonOutline.d.ts +0 -3
- package/dist/types/assets/icons/PersonRemove.d.ts +0 -3
- package/dist/types/assets/icons/PersonRemoveOutline.d.ts +0 -3
- package/dist/types/assets/icons/Pin.d.ts +0 -3
- package/dist/types/assets/icons/PinOutline.d.ts +0 -3
- package/dist/types/assets/icons/PlayCircle.d.ts +0 -3
- package/dist/types/assets/icons/PlayCircleOutline.d.ts +0 -3
- package/dist/types/assets/icons/PlusCircle.d.ts +0 -3
- package/dist/types/assets/icons/PlusCircleOutline.d.ts +0 -3
- package/dist/types/assets/icons/PlusSquare.d.ts +0 -3
- package/dist/types/assets/icons/PlusSquareOutline.d.ts +0 -3
- package/dist/types/assets/icons/RadioButtonChecked.d.ts +0 -3
- package/dist/types/assets/icons/RadioButtonUnchecked.d.ts +0 -3
- package/dist/types/assets/icons/RecaptchaLogo.d.ts +0 -3
- package/dist/types/assets/icons/Safari.d.ts +0 -3
- package/dist/types/assets/icons/Search.d.ts +0 -3
- package/dist/types/assets/icons/SearchOutline.d.ts +0 -3
- package/dist/types/assets/icons/Sending.d.ts +0 -3
- package/dist/types/assets/icons/Settings.d.ts +0 -3
- package/dist/types/assets/icons/SettingsOutline.d.ts +0 -3
- package/dist/types/assets/icons/Stripe.d.ts +0 -3
- package/dist/types/assets/icons/Trash.d.ts +0 -3
- package/dist/types/assets/icons/TrashOutline.d.ts +0 -3
- package/dist/types/assets/icons/TrendingUp.d.ts +0 -3
- package/dist/types/assets/icons/TrendingUpOutline.d.ts +0 -3
- package/dist/types/assets/icons/UcBrowser.d.ts +0 -3
- package/dist/types/assets/icons/Yandex.d.ts +0 -3
- package/dist/types/assets/index.d.ts +0 -103
- package/dist/types/assets/logo/Logo.d.ts +0 -10
- package/dist/types/components/Alert/Alert.d.ts +0 -14
- package/dist/types/components/Alert/index.d.ts +0 -1
- package/dist/types/components/AudioPlayer/AudioPlayer.d.ts +0 -6
- package/dist/types/components/AudioPlayer/index.d.ts +0 -1
- package/dist/types/components/Avatar/Avatar.d.ts +0 -17
- package/dist/types/components/Avatar/AvatarBlock.d.ts +0 -15
- package/dist/types/components/Avatar/MainAvatar.d.ts +0 -20
- package/dist/types/components/Avatar/index.d.ts +0 -3
- package/dist/types/components/Button/Button.d.ts +0 -19
- package/dist/types/components/Button/ButtonLegacy.d.ts +0 -41
- package/dist/types/components/Button/index.d.ts +0 -2
- package/dist/types/components/Cards/Cards.d.ts +0 -7
- package/dist/types/components/Cards/index.d.ts +0 -1
- package/dist/types/components/Carousel/Carousel.d.ts +0 -5
- package/dist/types/components/Carousel/index.d.ts +0 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +0 -10
- package/dist/types/components/Checkbox/index.d.ts +0 -1
- package/dist/types/components/CircularProgress/CircularProgress.d.ts +0 -10
- package/dist/types/components/CircularProgress/index.d.ts +0 -1
- package/dist/types/components/Input/Input.d.ts +0 -13
- package/dist/types/components/Input/index.d.ts +0 -1
- package/dist/types/components/LinearProgress/LinearProgress.d.ts +0 -14
- package/dist/types/components/LinearProgress/index.d.ts +0 -1
- package/dist/types/components/Menu/Menu.d.ts +0 -14
- package/dist/types/components/Menu/index.d.ts +0 -1
- package/dist/types/components/Message/AttachmentItem.d.ts +0 -2
- package/dist/types/components/Message/Message.d.ts +0 -2
- package/dist/types/components/Message/MessageStatus.d.ts +0 -2
- package/dist/types/components/Message/ReplyPreview.d.ts +0 -2
- package/dist/types/components/Message/index.d.ts +0 -2
- package/dist/types/components/Message/types.d.ts +0 -40
- package/dist/types/components/Modal/Modal.d.ts +0 -25
- package/dist/types/components/Modal/index.d.ts +0 -1
- package/dist/types/components/PasswordInput/PasswordInput.d.ts +0 -6
- package/dist/types/components/PasswordInput/index.d.ts +0 -1
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +0 -15
- package/dist/types/components/RadioGroup/index.d.ts +0 -1
- package/dist/types/components/ReadMore/ReadMore.d.ts +0 -8
- package/dist/types/components/ReadMore/index.d.ts +0 -1
- package/dist/types/components/Recaptcha/Recaptcha.d.ts +0 -12
- package/dist/types/components/Recaptcha/index.d.ts +0 -1
- package/dist/types/components/Scroll/Scroll.d.ts +0 -6
- package/dist/types/components/Scroll/index.d.ts +0 -1
- package/dist/types/components/SearchInput/SearchInput.d.ts +0 -3
- package/dist/types/components/SearchInput/index.d.ts +0 -1
- package/dist/types/components/Select/Select.d.ts +0 -66
- package/dist/types/components/Select/index.d.ts +0 -1
- package/dist/types/components/Sidebar/Sidebar.d.ts +0 -18
- package/dist/types/components/Sidebar/index.d.ts +0 -1
- package/dist/types/components/Slider/Slider.d.ts +0 -4
- package/dist/types/components/Slider/index.d.ts +0 -1
- package/dist/types/components/Table/Table.d.ts +0 -6
- package/dist/types/components/Table/index.d.ts +0 -1
- package/dist/types/components/Tabs/Tabs.d.ts +0 -18
- package/dist/types/components/Tabs/index.d.ts +0 -1
- package/dist/types/components/TextArea/TextArea.d.ts +0 -11
- package/dist/types/components/TextArea/index.d.ts +0 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +0 -12
- package/dist/types/components/Tooltip/index.d.ts +0 -1
- package/dist/types/components/Typography/Typography.d.ts +0 -25
- package/dist/types/components/Typography/index.d.ts +0 -1
- package/dist/types/components/index.d.ts +0 -27
- package/dist/types/components/types/scroll.types.d.ts +0 -10
- package/dist/types/constants/constants.d.ts +0 -7
- package/dist/types/constants/index.d.ts +0 -1
- package/dist/types/demo/TestMixins/TestMixins.d.ts +0 -1
- package/dist/types/demo/index.d.ts +0 -1
- package/dist/types/hooks/index.d.ts +0 -2
- package/dist/types/hooks/useScrollThumbs.d.ts +0 -9
- package/dist/types/hooks/useThumbDrag.d.ts +0 -9
- package/dist/types/index.d.ts +0 -8
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/types/types.d.ts +0 -5
- package/dist/types/utils/ColorIconBase.d.ts +0 -7
- package/dist/types/utils/ColorIconBaseSmall.d.ts +0 -7
- package/dist/types/utils/IconBase.d.ts +0 -12
- package/dist/types/utils/formatTime.d.ts +0 -1
- package/dist/types/utils/getFirstLetterCapitalized.d.ts +0 -1
- package/dist/types/utils/getHorizontalMetrics.d.ts +0 -2
- package/dist/types/utils/getNavItemClickHandler.d.ts +0 -5
- package/dist/types/utils/getVerticalMetrics.d.ts +0 -2
- package/dist/types/utils/index.d.ts +0 -8
- package/dist/types/utils/isAudioAttachment.d.ts +0 -2
- package/dist/types/utils/isThemeColor.d.ts +0 -2
- package/dist/types/utils/truncateText.d.ts +0 -1
- /package/{dist → public}/favicon-dark-108.svg +0 -0
- /package/{dist → public}/favicon-dark-16.svg +0 -0
- /package/{dist → public}/favicon-dark-24.svg +0 -0
- /package/{dist → public}/favicon-dark-48.svg +0 -0
- /package/{dist → public}/favicon-dark-72.svg +0 -0
- /package/{dist → public}/favicon-light-108.svg +0 -0
- /package/{dist → public}/favicon-light-16.svg +0 -0
- /package/{dist → public}/favicon-light-24.svg +0 -0
- /package/{dist → public}/favicon-light-48.svg +0 -0
- /package/{dist → public}/favicon-light-72.svg +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#### 🤔 This is a ...
|
|
2
|
+
|
|
3
|
+
- [ ] New feature
|
|
4
|
+
- [ ] Bug fix
|
|
5
|
+
- [ ] Documentation update
|
|
6
|
+
- [ ] Code style/refactoring
|
|
7
|
+
- [ ] New dependencies installed
|
|
8
|
+
- [ ] Test Case
|
|
9
|
+
- [ ] Other
|
|
10
|
+
|
|
11
|
+
#### ✏️ Description
|
|
12
|
+
|
|
13
|
+
_Please include a summary of the changes made and the reason for the pull request._
|
|
14
|
+
|
|
15
|
+
#### 💡 Screenshots (is available)
|
|
16
|
+
|
|
17
|
+
_Include any screenshots that help demonstrate the changes._
|
|
18
|
+
|
|
19
|
+
#### ☑️ Self Check before Merge
|
|
20
|
+
|
|
21
|
+
⚠️ Please check all items below before review. ⚠️
|
|
22
|
+
|
|
23
|
+
- [ ] Documentation is updated/provided or not needed
|
|
24
|
+
- [ ] Code follows project style guidelines
|
|
25
|
+
- [ ] All new and existing tests passed or are not required
|
|
26
|
+
|
|
27
|
+
#### ✔️Additional Notes
|
|
28
|
+
|
|
29
|
+
**After the _Pull-request_ is approved, and before it is closed and merged to _develop_ branch, increment the project's patch version.**
|
|
30
|
+
|
|
31
|
+
_Any additional information that might be helpful for the reviewer._
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Build and Deploy Storybook
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- 'develop'
|
|
6
|
+
jobs:
|
|
7
|
+
build-and-deploy:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- name: Checkout 🛎️
|
|
11
|
+
uses: actions/checkout@v2.3.1
|
|
12
|
+
|
|
13
|
+
- name: Merge dev -> storybook-deploy 🚀
|
|
14
|
+
uses: devmasx/merge-branch@1.4.0
|
|
15
|
+
with:
|
|
16
|
+
type: now
|
|
17
|
+
from_branch: develop
|
|
18
|
+
target_branch: storybook-deploy
|
|
19
|
+
github_token: ${{ github.token }}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Publish to NPM
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
- develop
|
|
7
|
+
- SCRUM-49-set-config-to-publish-project-to-npmjs
|
|
8
|
+
- SCRUM-60-refactor-input-component
|
|
9
|
+
- SCRUM-60-refactor-input-component-part2
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
node-version: [24]
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v6
|
|
18
|
+
- uses: pnpm/action-setup@v6
|
|
19
|
+
with:
|
|
20
|
+
version: 10
|
|
21
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
22
|
+
uses: actions/setup-node@v6
|
|
23
|
+
with:
|
|
24
|
+
node-version: ${{ matrix.node-version }}
|
|
25
|
+
cache: 'pnpm'
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: pnpm install --no-frozen-lockfile
|
|
28
|
+
- name: Build lib
|
|
29
|
+
run: pnpm run build
|
|
30
|
+
- uses: JS-DevTools/npm-publish@v4
|
|
31
|
+
with:
|
|
32
|
+
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
|
33
|
+
access: 'public'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pnpm dlx commitlint --edit $1
|
package/.husky/pre-push
ADDED
package/.prettierignore
ADDED
package/.prettierrc.cjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { StorybookConfig } from '@storybook/react-vite'
|
|
2
|
+
|
|
3
|
+
const config: StorybookConfig = {
|
|
4
|
+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
5
|
+
addons: [
|
|
6
|
+
'@chromatic-com/storybook',
|
|
7
|
+
'@storybook/addon-vitest',
|
|
8
|
+
'@storybook/addon-a11y',
|
|
9
|
+
'@storybook/addon-docs',
|
|
10
|
+
{
|
|
11
|
+
name: '@storybook/addon-mcp',
|
|
12
|
+
options: {
|
|
13
|
+
toolsets: {
|
|
14
|
+
dev: true,
|
|
15
|
+
docs: true,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
|
|
21
|
+
features: {
|
|
22
|
+
componentsManifest: true,
|
|
23
|
+
},
|
|
24
|
+
framework: '@storybook/react-vite',
|
|
25
|
+
}
|
|
26
|
+
export default config
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Preview } from '@storybook/react-vite'
|
|
2
|
+
import '@fontsource-variable/inter/wght.css'
|
|
3
|
+
import '@fontsource-variable/roboto/wght.css'
|
|
4
|
+
import '../src/styles/index.scss'
|
|
5
|
+
import { darkTheme } from './theme'
|
|
6
|
+
|
|
7
|
+
const preview: Preview = {
|
|
8
|
+
parameters: {
|
|
9
|
+
docs: {
|
|
10
|
+
theme: darkTheme,
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
controls: {
|
|
14
|
+
matchers: {
|
|
15
|
+
color: /(background|color)$/i,
|
|
16
|
+
date: /Date$/i,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
a11y: {
|
|
20
|
+
// 'todo' - show a11y violations in the test UI only
|
|
21
|
+
// 'error' - fail CI on a11y violations
|
|
22
|
+
// 'off' - skip a11y checks entirely
|
|
23
|
+
test: 'todo',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default preview
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { create } from 'storybook/theming'
|
|
2
|
+
|
|
3
|
+
export const darkTheme = create({
|
|
4
|
+
base: 'dark',
|
|
5
|
+
appBg: '#080808',
|
|
6
|
+
appContentBg: '#080808',
|
|
7
|
+
appPreviewBg: '#080808',
|
|
8
|
+
barBg: '#111111',
|
|
9
|
+
textColor: '#FFFFFF',
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
export const lightTheme = create({
|
|
13
|
+
base: 'light',
|
|
14
|
+
appBg: '#FFFFFF',
|
|
15
|
+
appContentBg: '#FFFFFF',
|
|
16
|
+
appPreviewBg: '#FFFFFF',
|
|
17
|
+
})
|
package/.stylelintrc.cjs
ADDED
package/AGENTS.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
## Project Summary
|
|
4
|
+
|
|
5
|
+
Lumos UI Kit is a reusable UI component library for Lumos app. The full project description, setup flow, deploy link and related resources are documented in [README.md](./README.md).
|
|
6
|
+
|
|
7
|
+
Confirmed stack from project configuration:
|
|
8
|
+
|
|
9
|
+
- React 19, React DOM 19.
|
|
10
|
+
- TypeScript 6 with Vite.
|
|
11
|
+
- Storybook 10 on `@storybook/react-vite`.
|
|
12
|
+
- SCSS Modules plus global SCSS design tokens and mixins.
|
|
13
|
+
- Radix UI is used where accessible headless primitives fit the component.
|
|
14
|
+
- ESLint, Stylelint, Prettier, Husky, lint-staged and commitlint.
|
|
15
|
+
|
|
16
|
+
## Main Directories
|
|
17
|
+
|
|
18
|
+
- `src/components/` - reusable UI components.
|
|
19
|
+
- `src/demo/` - demo-only components and visual test harnesses; do not treat them as public UI Kit components.
|
|
20
|
+
- `src/stories/` - Storybook stories and design-system visual documentation.
|
|
21
|
+
- `src/styles/` - global colors, typography, mixins and boilerplate styles.
|
|
22
|
+
- `.storybook/` - Storybook configuration and preview setup.
|
|
23
|
+
- `.husky/` - Git hooks.
|
|
24
|
+
- `public/` - static assets.
|
|
25
|
+
- `dist/` - generated build output; do not edit manually.
|
|
26
|
+
- `agent-docs/` - task-specific AI-agent documentation.
|
|
27
|
+
|
|
28
|
+
## Required Checks
|
|
29
|
+
|
|
30
|
+
Use the checks that match the files changed:
|
|
31
|
+
|
|
32
|
+
- `pnpm run type:check` - required after TypeScript or component API changes.
|
|
33
|
+
- `pnpm run build` - run for broad, release-facing, bundling, package/config or public API changes; `pnpm run type:check` is enough for narrow TypeScript-only validation.
|
|
34
|
+
- `pnpm run build-storybook` - required after Storybook or component documentation changes.
|
|
35
|
+
- `pnpm run test:storybook` - runs the configured Storybook/Vitest browser tests for stories.
|
|
36
|
+
- `pnpm run stylelint:check` - required after SCSS changes.
|
|
37
|
+
- `pnpm run stylelint:fix` - use it only when auto-fixing SCSS files is acceptable for the task.
|
|
38
|
+
- `pnpm run lint` runs ESLint with `--fix`; use it only when auto-fixing source files is acceptable for the task.
|
|
39
|
+
- `pnpm run format` runs Prettier over `src`; use it only when broad formatting changes are acceptable.
|
|
40
|
+
|
|
41
|
+
Storybook browser tests are configured in [vite.config.ts](./vite.config.ts) through the Storybook Vitest addon and Playwright Chromium.
|
|
42
|
+
|
|
43
|
+
## Working Tree Rules
|
|
44
|
+
|
|
45
|
+
- The worktree may contain uncommitted user changes. Do not revert, reformat or overwrite changes you did not make.
|
|
46
|
+
- If unrelated files are dirty, leave them alone.
|
|
47
|
+
- If a user change overlaps the requested task, read it and work with it instead of discarding it.
|
|
48
|
+
- Do not run formatting or fixing commands that rewrite broad areas unless the task explicitly allows that.
|
|
49
|
+
|
|
50
|
+
## Protected Areas
|
|
51
|
+
|
|
52
|
+
Do not change these without an explicit request:
|
|
53
|
+
|
|
54
|
+
- dependencies, package manager files or lockfiles;
|
|
55
|
+
- Vite, TypeScript, ESLint, Stylelint, Prettier, Storybook, Husky or commitlint configuration;
|
|
56
|
+
- global design tokens in `src/styles/_colors.scss`, `src/styles/_typography.scss` or shared mixins;
|
|
57
|
+
- generated output such as `dist/`;
|
|
58
|
+
- `node_modules/`;
|
|
59
|
+
- existing README content when a link to it is enough.
|
|
60
|
+
|
|
61
|
+
## Git, Husky and Commits
|
|
62
|
+
|
|
63
|
+
- `pre-commit` runs `pnpm lint-staged`.
|
|
64
|
+
- `lint-staged` runs ESLint, Stylelint and Prettier for staged files according to [package.json](./package.json).
|
|
65
|
+
- `pre-push` runs `pnpm run type:check`; the `test:check` line is currently commented out.
|
|
66
|
+
- `commit-msg` runs `pnpm dlx commitlint --edit $1`.
|
|
67
|
+
- Commit messages must start with a Jira key and follow [commitlint.config.js](./commitlint.config.js), for example: `SCRUM-1057 feat: add login page`.
|
|
68
|
+
- `prepare-commit-msg` tries to infer a Jira key from the current branch and prefix the commit message if needed.
|
|
69
|
+
|
|
70
|
+
## Team Decisions Pending
|
|
71
|
+
|
|
72
|
+
No pending team decisions are currently documented.
|
|
73
|
+
|
|
74
|
+
## Task-Specific Documentation
|
|
75
|
+
|
|
76
|
+
Specific procedures and documentation for concrete task types live in `./agent-docs`.
|
|
77
|
+
|
|
78
|
+
- [./agent-docs/execplans.md](./agent-docs/execplans.md) - use for planning large, multi-step or risky tasks.
|
|
79
|
+
- [./agent-docs/frontend.md](./agent-docs/frontend.md) - use for creating or changing UI components, SCSS Modules, Storybook stories and frontend code.
|
|
80
|
+
- [./agent-docs/architecture.md](./agent-docs/architecture.md) - use only for work that requires substantial architectural changes.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Architecture Documentation
|
|
2
|
+
|
|
3
|
+
Use this document only for tasks that require substantial architectural changes or decisions affecting multiple components or the whole library.
|
|
4
|
+
|
|
5
|
+
## Scope
|
|
6
|
+
|
|
7
|
+
Architecture-level work includes changes to:
|
|
8
|
+
|
|
9
|
+
- the public UI Kit architecture;
|
|
10
|
+
- directory structure;
|
|
11
|
+
- demo-only component placement under `src/demo/<DemoName>/`;
|
|
12
|
+
- component export strategy and public API shape;
|
|
13
|
+
- library-wide design tokens and shared mixins;
|
|
14
|
+
- dependencies and the choice of headless primitives;
|
|
15
|
+
- Vite, TypeScript, Storybook, ESLint, Stylelint, Prettier, Husky or commitlint configuration;
|
|
16
|
+
- behavior shared by several components;
|
|
17
|
+
- release-facing build or documentation setup.
|
|
18
|
+
|
|
19
|
+
## Rules
|
|
20
|
+
|
|
21
|
+
- Do not change architecture-level contracts as part of a local component task unless explicitly requested.
|
|
22
|
+
- Do not standardize unresolved conventions without team confirmation.
|
|
23
|
+
- Prefer the patterns already proven by existing components and configuration.
|
|
24
|
+
- Treat design-token changes as library-wide changes, not component-local styling.
|
|
25
|
+
- Treat dependency additions, removals and replacements as architecture decisions.
|
|
26
|
+
- Treat export-system changes as public API changes.
|
|
27
|
+
- When a change affects several components, document the scope and required checks before implementation.
|
|
28
|
+
|
|
29
|
+
## Team Decisions Pending
|
|
30
|
+
|
|
31
|
+
No pending team decisions are currently documented.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# ExecPlans
|
|
2
|
+
|
|
3
|
+
Use an ExecPlan only for large, multi-step or risky tasks where the implementation path needs to stay explicit over time.
|
|
4
|
+
|
|
5
|
+
Simple changes, including creating or adjusting a single straightforward component, usually do not require an ExecPlan.
|
|
6
|
+
|
|
7
|
+
## When to Use
|
|
8
|
+
|
|
9
|
+
Create or maintain an ExecPlan when a task involves:
|
|
10
|
+
|
|
11
|
+
- several dependent phases;
|
|
12
|
+
- changes across multiple areas of the project;
|
|
13
|
+
- uncertain migration or rollback risk;
|
|
14
|
+
- architecture, build, dependency or design-token decisions;
|
|
15
|
+
- long-running work where progress must be tracked.
|
|
16
|
+
|
|
17
|
+
## What to Include
|
|
18
|
+
|
|
19
|
+
An ExecPlan should capture:
|
|
20
|
+
|
|
21
|
+
- objective and scope;
|
|
22
|
+
- relevant existing project context;
|
|
23
|
+
- ordered implementation steps;
|
|
24
|
+
- verification commands;
|
|
25
|
+
- risks, assumptions and open questions;
|
|
26
|
+
- current progress and completed steps.
|
|
27
|
+
|
|
28
|
+
## How to Maintain
|
|
29
|
+
|
|
30
|
+
- Keep the plan current as work progresses.
|
|
31
|
+
- Mark completed items when they are actually done.
|
|
32
|
+
- Update the plan if discovery changes the implementation path.
|
|
33
|
+
- Do not use an ExecPlan to restate normal frontend component rules; use [frontend.md](./frontend.md) for that.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Frontend Documentation
|
|
2
|
+
|
|
3
|
+
Use this document for creating or changing UI components, SCSS Modules, Storybook stories and frontend code.
|
|
4
|
+
|
|
5
|
+
## Reusable Components
|
|
6
|
+
|
|
7
|
+
Follow the confirmed pattern from `Typography` and `RadioGroup`:
|
|
8
|
+
|
|
9
|
+
- Create component files under `src/components/<ComponentName>/`.
|
|
10
|
+
- Main component file: `<ComponentName>.tsx`.
|
|
11
|
+
- Component styles: `<ComponentName>.module.scss`.
|
|
12
|
+
- Public local export: `index.ts`.
|
|
13
|
+
- Import CSS Modules as `import s from './<ComponentName>.module.scss'`.
|
|
14
|
+
- Use `clsx` for class composition.
|
|
15
|
+
- Use the `@/*` alias for imports from `src`.
|
|
16
|
+
- Keep component-specific styles in CSS Modules. Do not add global component classes unless there is a clear need.
|
|
17
|
+
- Demo-only components and visual test harnesses do not belong in `src/components`; put them in `src/demo/<DemoName>/`.
|
|
18
|
+
- Use `src/demo` for visual test stands, Storybook-only demo components, responsive playgrounds, showcase components, temporary playground components, and demo-only helpers or mock data.
|
|
19
|
+
- Do not put reusable UI Kit components, public props/types, shared tokens, shared mixins or runtime application code in `src/demo`.
|
|
20
|
+
|
|
21
|
+
## TypeScript, Props, Refs and Exports
|
|
22
|
+
|
|
23
|
+
- Do not use `any`; `tsconfig.app.json` enables `noImplicitAny`.
|
|
24
|
+
- Remove unused variables and parameters; `noUnusedLocals` and `noUnusedParameters` are enabled.
|
|
25
|
+
- Import React types with `import type`.
|
|
26
|
+
- Props must explicitly describe the component public API.
|
|
27
|
+
- For native or primitive props, use `ComponentPropsWithRef`, `ComponentPropsWithoutRef` or primitive-provided types, then exclude conflicting fields with `Omit`.
|
|
28
|
+
- Accept `className` when the component needs external style extension. This is already present in `Typography` and `RadioGroup`.
|
|
29
|
+
- If a component wraps a DOM or Radix primitive and should expose a ref, use `forwardRef` and set `displayName`.
|
|
30
|
+
- Export the component and public types explicitly from local `index.ts`.
|
|
31
|
+
- Use named component exports plus separate type exports:
|
|
32
|
+
`export { ComponentName } from './ComponentName'` and
|
|
33
|
+
`export type { ComponentNameProps } from './ComponentName'`.
|
|
34
|
+
- If a component has additional public types, export them in the same `export type` statement.
|
|
35
|
+
- Follow `eslint-plugin-perfectionist` sorting for imports, union types and enums.
|
|
36
|
+
- Include file extensions for `css`, `scss`, `svg` and `json` imports; ESLint enforces this.
|
|
37
|
+
|
|
38
|
+
## Styling and Tokens
|
|
39
|
+
|
|
40
|
+
- Global tokens live in `src/styles/_colors.scss` and `src/styles/_typography.scss`.
|
|
41
|
+
- Shared mixins live in `src/styles/_mixins.scss`.
|
|
42
|
+
- `src/styles/index.scss` is the global style entry and is imported by `src/main.tsx` and `.storybook/preview.tsx`.
|
|
43
|
+
- Use existing CSS variables such as `var(--color-...)`, `var(--font-size-...)`, `var(--line-height-...)` and `var(--font-weight-...)`.
|
|
44
|
+
- Do not hardcode colors or typography values when a token already exists.
|
|
45
|
+
- Use existing mixins such as `flex`, `width-height`, `transition-basic`, `media-*`, `container` and `content` where they fit.
|
|
46
|
+
- Global typography classes such as `typography-h1` are defined in `src/styles/_typography.scss`.
|
|
47
|
+
- Prettier extends `@it-incubator/prettier-config`; Stylelint extends `@it-incubator/stylelint-config`.
|
|
48
|
+
|
|
49
|
+
## Radix UI
|
|
50
|
+
|
|
51
|
+
- Use semantic HTML or accessible headless primitives for interactive components.
|
|
52
|
+
- `RadioGroup` is built on `@radix-ui/react-radio-group`.
|
|
53
|
+
- When wrapping a Radix primitive, pass through compatible primitive props and only override fields the component actually owns.
|
|
54
|
+
- Preserve primitive-provided accessibility attributes and state attributes such as `[data-disabled]` and `[data-state]`.
|
|
55
|
+
|
|
56
|
+
## Accessibility and Interactive States
|
|
57
|
+
|
|
58
|
+
- `a11y` means accessibility: checks that UI can be used with assistive technologies and common accessibility needs such as keyboard navigation, labels, focus handling and color contrast.
|
|
59
|
+
- Clickable labels must be associated with controls through `id` and `htmlFor`; `useId` is used for stable ids.
|
|
60
|
+
- Buttons must always have `type`; ESLint enforces `react/button-has-type`.
|
|
61
|
+
- Interactive components should implement and style `disabled`, `hover`, `active` and `focus-visible` states.
|
|
62
|
+
- Disabled state should disable interaction and be visually distinct.
|
|
63
|
+
- Storybook a11y mode is currently `todo`: violations are visible in Storybook/Test UI but do not fail CI. Do not change it to `error` without a team decision.
|
|
64
|
+
|
|
65
|
+
## Naming
|
|
66
|
+
|
|
67
|
+
Confirmed project naming:
|
|
68
|
+
|
|
69
|
+
- Component names and component directories: `PascalCase`.
|
|
70
|
+
- Component files: `PascalCase.tsx`.
|
|
71
|
+
- CSS Modules: `PascalCase.module.scss`.
|
|
72
|
+
- Demo-only components: `src/demo/<DemoName>/<DemoName>.tsx`.
|
|
73
|
+
- Component stories: `src/stories/components/<ComponentName>/<ComponentName>.stories.tsx`.
|
|
74
|
+
- Storybook titles: `Components/<ComponentName>`, `Styles/<Name>` or `Design System/<Name>`.
|
|
75
|
+
- Story exports: `PascalCase`, for example `Default`, `DisabledItem`, `AllTypography`.
|
|
76
|
+
- Props and types: `PascalCase` with meaningful suffixes, for example `RadioGroupProps`, `RadioOption`, `TypographyVariant`.
|
|
77
|
+
- SCSS module classes are mostly camelCase; hyphenated classes exist for variants such as `align-left`.
|
|
78
|
+
|
|
79
|
+
## Storybook
|
|
80
|
+
|
|
81
|
+
- Stories are written as `*.stories.tsx`.
|
|
82
|
+
- Component stories belong in `src/stories/components/<ComponentName>/<ComponentName>.stories.tsx` so each component story can keep related story-only files in the same folder when needed.
|
|
83
|
+
- Type stories with `Meta` and `StoryObj` from `@storybook/react-vite`.
|
|
84
|
+
- Use `tags: ['autodocs']` for component stories that should be included in autodocs.
|
|
85
|
+
- Describe public props with `argTypes` when it improves docs and controls.
|
|
86
|
+
- Represent component states with separate named stories such as `Default`, `Disabled` and `DisabledItem`.
|
|
87
|
+
- Stateful examples may use `render` with React hooks; the ESLint override for stories allows this.
|
|
88
|
+
- Global styles and fonts are loaded in `.storybook/preview.tsx`.
|
|
89
|
+
|
|
90
|
+
## Frontend Checks
|
|
91
|
+
|
|
92
|
+
After frontend changes, run the checks that apply:
|
|
93
|
+
|
|
94
|
+
- `pnpm run type:check` after TS, props or exports changes.
|
|
95
|
+
- `pnpm run stylelint:check` after SCSS changes.
|
|
96
|
+
- `pnpm run build-storybook` after stories, component states or docs changes.
|
|
97
|
+
- `pnpm run test:storybook` to run the configured Storybook/Vitest browser tests for stories.
|
|
98
|
+
- `pnpm run build` for broad component or public API changes.
|
|
99
|
+
- `pnpm run lint` only when ESLint auto-fix is acceptable for the task.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
extends: ['@commitlint/config-conventional'],
|
|
3
|
+
|
|
4
|
+
parserPreset: {
|
|
5
|
+
parserOpts: {
|
|
6
|
+
headerPattern:
|
|
7
|
+
/^([A-Z]{2,}-\d+)\s+(init|feat|fix|refactor|test|docs|chore|build|ci|style)(?:\(([^)]*)\))?:\s+(.+)$/,
|
|
8
|
+
headerCorrespondence: ['jira', 'type', 'scope', 'subject'],
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
rules: {
|
|
13
|
+
// Disable default rules that produce generic errors
|
|
14
|
+
'type-enum': [0],
|
|
15
|
+
'type-case': [0],
|
|
16
|
+
'type-empty': [0],
|
|
17
|
+
'subject-empty': [0],
|
|
18
|
+
'subject-case': [0],
|
|
19
|
+
|
|
20
|
+
'header-max-length': [2, 'always', 100],
|
|
21
|
+
'header-min-length': [2, 'always', 10],
|
|
22
|
+
|
|
23
|
+
'jira-required': [2, 'always'],
|
|
24
|
+
'type-format': [2, 'always'],
|
|
25
|
+
'subject-required': [2, 'always'],
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
plugins: [
|
|
29
|
+
{
|
|
30
|
+
rules: {
|
|
31
|
+
'jira-required': ({ header }) => {
|
|
32
|
+
const valid = /^[A-Z]{2,}-\d+\s/.test(header)
|
|
33
|
+
|
|
34
|
+
return [valid, 'Commit must start with a Jira task. Example: SCRUM-1057']
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
'type-format': ({ header }) => {
|
|
38
|
+
const valid =
|
|
39
|
+
/^[A-Z]{2,}-\d+\s+(init|feat|fix|refactor|test|docs|chore|build|ci|style)(?:\([^)]+\))?:/.test(
|
|
40
|
+
header
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
return [
|
|
44
|
+
valid,
|
|
45
|
+
'Commit type must be one of: init, feat, fix, refactor, test, docs, chore, build, ci, style. Scope is optional.',
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
'subject-required': ({ header }) => {
|
|
50
|
+
const valid =
|
|
51
|
+
/^[A-Z]{2,}-\d+\s+(init|feat|fix|refactor|test|docs|chore|build|ci|style)(?:\([^)]+\))?:\s+.+/.test(
|
|
52
|
+
header
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
return [
|
|
56
|
+
valid,
|
|
57
|
+
'Commit subject is required after ":". Example: SCRUM-1057 feat: add login page',
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
}
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
|
|
2
|
+
import storybook from 'eslint-plugin-storybook'
|
|
3
|
+
|
|
4
|
+
import js from '@eslint/js'
|
|
5
|
+
import globals from 'globals'
|
|
6
|
+
import reactHooks from 'eslint-plugin-react-hooks'
|
|
7
|
+
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
8
|
+
import tseslint from 'typescript-eslint'
|
|
9
|
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
10
|
+
import eslintConfigPrettier from 'eslint-config-prettier/flat'
|
|
11
|
+
import react from 'eslint-plugin-react'
|
|
12
|
+
import importPlugin from 'eslint-plugin-import'
|
|
13
|
+
import perfectionist from 'eslint-plugin-perfectionist'
|
|
14
|
+
|
|
15
|
+
export default defineConfig([
|
|
16
|
+
globalIgnores(['dist', '**/*.d.ts']),
|
|
17
|
+
{
|
|
18
|
+
files: ['**/*.{ts,tsx}'],
|
|
19
|
+
plugins: {
|
|
20
|
+
react,
|
|
21
|
+
'@typescript-eslint': tseslint.plugin,
|
|
22
|
+
import: importPlugin,
|
|
23
|
+
perfectionist,
|
|
24
|
+
},
|
|
25
|
+
settings: {
|
|
26
|
+
react: {
|
|
27
|
+
version: 'detect',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
extends: [
|
|
31
|
+
js.configs.recommended,
|
|
32
|
+
tseslint.configs.recommended,
|
|
33
|
+
reactHooks.configs.flat.recommended,
|
|
34
|
+
reactRefresh.configs.vite,
|
|
35
|
+
eslintConfigPrettier,
|
|
36
|
+
],
|
|
37
|
+
languageOptions: {
|
|
38
|
+
globals: globals.browser,
|
|
39
|
+
ecmaVersion: 'latest',
|
|
40
|
+
sourceType: 'module',
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
rules: {
|
|
44
|
+
// Perfectionist - import sorting
|
|
45
|
+
'perfectionist/sort-imports': [
|
|
46
|
+
'error',
|
|
47
|
+
{
|
|
48
|
+
type: 'natural',
|
|
49
|
+
order: 'asc',
|
|
50
|
+
newlinesBetween: 0,
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
'perfectionist/sort-union-types': [
|
|
54
|
+
'error',
|
|
55
|
+
{
|
|
56
|
+
type: 'natural',
|
|
57
|
+
order: 'asc',
|
|
58
|
+
newlinesBetween: 0,
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
'perfectionist/sort-enums': [
|
|
62
|
+
'error',
|
|
63
|
+
{
|
|
64
|
+
type: 'natural',
|
|
65
|
+
order: 'asc',
|
|
66
|
+
newlinesBetween: 0,
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
// Import rules
|
|
70
|
+
'import/extensions': [
|
|
71
|
+
'error',
|
|
72
|
+
{ css: 'always', json: 'always', scss: 'always', svg: 'always' },
|
|
73
|
+
],
|
|
74
|
+
'import/no-duplicates': 'off',
|
|
75
|
+
'import/order': 'off',
|
|
76
|
+
'import/prefer-default-export': 'off',
|
|
77
|
+
|
|
78
|
+
'no-unused-vars': 'off',
|
|
79
|
+
'import/no-dynamic-require': 'warn',
|
|
80
|
+
'import/no-nodejs-modules': 'warn',
|
|
81
|
+
|
|
82
|
+
// React rules
|
|
83
|
+
'react/button-has-type': 'error',
|
|
84
|
+
'react/display-name': 'off',
|
|
85
|
+
'react/jsx-boolean-value': ['error'],
|
|
86
|
+
'react/jsx-curly-brace-presence': [
|
|
87
|
+
'error',
|
|
88
|
+
{ children: 'ignore', propElementValues: 'always', props: 'always' },
|
|
89
|
+
],
|
|
90
|
+
'react/void-dom-elements-no-children': ['error'],
|
|
91
|
+
},
|
|
92
|
+
}, // Overrides for Storybook files
|
|
93
|
+
{
|
|
94
|
+
files: ['**/*.stories.tsx'],
|
|
95
|
+
rules: {
|
|
96
|
+
'no-console': 'off',
|
|
97
|
+
'react-hooks/rules-of-hooks': 'off',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
...storybook.configs['flat/recommended'],
|
|
101
|
+
])
|
package/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/favicon-light-108.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>ui-kit-lumos</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/index.ts"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|