@jbpark/ui-kit 2.9.1 → 2.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +14 -13
- package/README.md +14 -13
- package/dist/Button.d.mts +1 -1
- package/dist/Button.d.mts.map +1 -1
- package/dist/Button.mjs +1 -1
- package/dist/Button.mjs.map +1 -1
- package/dist/Card.d.mts +1 -1
- package/dist/Card.d.mts.map +1 -1
- package/dist/Card.mjs +1 -1
- package/dist/Card.mjs.map +1 -1
- package/dist/Layout.d.mts +13 -44
- package/dist/Layout.d.mts.map +1 -1
- package/dist/Layout.mjs +7 -16
- package/dist/Layout.mjs.map +1 -1
- package/dist/Menu.d.mts +2 -62
- package/dist/Menu.mjs +2 -68
- package/dist/Reveals.d.mts +6 -38
- package/dist/Reveals.d.mts.map +1 -1
- package/dist/Reveals.mjs +4 -23
- package/dist/Reveals.mjs.map +1 -1
- package/dist/Space.d.mts +1 -1
- package/dist/Space.d.mts.map +1 -1
- package/dist/Space.mjs +2 -2
- package/dist/Space.mjs.map +1 -1
- package/dist/Tag.d.mts +2 -2
- package/dist/Tag.d.mts.map +1 -1
- package/dist/Tag.mjs +1 -1
- package/dist/Tag.mjs.map +1 -1
- package/dist/Typography.d.mts +13 -36
- package/dist/Typography.d.mts.map +1 -1
- package/dist/Typography.mjs +7 -12
- package/dist/Typography.mjs.map +1 -1
- package/dist/components/atoms/checkbox/checkbox.d.mts +32 -0
- package/dist/components/atoms/checkbox/checkbox.d.mts.map +1 -0
- package/dist/components/atoms/{Checkbox/index.mjs → checkbox/checkbox.mjs} +2 -4
- package/dist/components/atoms/checkbox/checkbox.mjs.map +1 -0
- package/dist/components/atoms/{Checkbox/Group/index.d.mts → checkbox/group.d.mts} +14 -4
- package/dist/components/atoms/checkbox/group.d.mts.map +1 -0
- package/dist/components/atoms/{Checkbox/Group/index.mjs → checkbox/group.mjs} +6 -4
- package/dist/components/atoms/checkbox/group.mjs.map +1 -0
- package/dist/components/atoms/checkbox/index.d.mts +11 -0
- package/dist/components/atoms/checkbox/index.d.mts.map +1 -0
- package/dist/components/atoms/checkbox/index.mjs +10 -0
- package/dist/components/atoms/checkbox/index.mjs.map +1 -0
- package/dist/components/atoms/{ColorPicker/index.d.mts → color-picker.d.mts} +2 -2
- package/dist/components/atoms/color-picker.d.mts.map +1 -0
- package/dist/components/atoms/{ColorPicker/index.mjs → color-picker.mjs} +4 -4
- package/dist/components/atoms/color-picker.mjs.map +1 -0
- package/dist/components/atoms/float-button/back-top.d.mts +18 -0
- package/dist/components/atoms/float-button/back-top.d.mts.map +1 -0
- package/dist/components/atoms/{FloatButton/BackTop/index.mjs → float-button/back-top.mjs} +6 -4
- package/dist/components/atoms/float-button/back-top.mjs.map +1 -0
- package/dist/components/atoms/float-button/float-button.d.mts +13 -0
- package/dist/components/atoms/float-button/float-button.d.mts.map +1 -0
- package/dist/components/atoms/{FloatButton/index.mjs → float-button/float-button.mjs} +2 -4
- package/dist/components/atoms/float-button/float-button.mjs.map +1 -0
- package/dist/components/atoms/float-button/index.d.mts +11 -0
- package/dist/components/atoms/float-button/index.d.mts.map +1 -0
- package/dist/components/atoms/float-button/index.mjs +10 -0
- package/dist/components/atoms/float-button/index.mjs.map +1 -0
- package/dist/components/atoms/index.d.mts +11 -11
- package/dist/components/atoms/index.mjs +11 -11
- package/dist/components/atoms/input/index.d.mts +13 -0
- package/dist/components/atoms/input/index.d.mts.map +1 -0
- package/dist/components/atoms/input/index.mjs +12 -0
- package/dist/components/atoms/input/index.mjs.map +1 -0
- package/dist/components/atoms/input/input.d.mts +9 -0
- package/dist/components/atoms/input/input.d.mts.map +1 -0
- package/dist/components/atoms/{Input/index.mjs → input/input.mjs} +2 -6
- package/dist/components/atoms/input/input.mjs.map +1 -0
- package/dist/components/atoms/input/search.d.mts +28 -0
- package/dist/components/atoms/input/search.d.mts.map +1 -0
- package/dist/components/atoms/{Input/Search/index.mjs → input/search.mjs} +6 -6
- package/dist/components/atoms/input/search.mjs.map +1 -0
- package/dist/components/atoms/input/text-area.d.mts +11 -0
- package/dist/components/atoms/input/text-area.d.mts.map +1 -0
- package/dist/components/atoms/{Input/TextArea/index.mjs → input/text-area.mjs} +5 -5
- package/dist/components/atoms/input/text-area.mjs.map +1 -0
- package/dist/components/atoms/{Popover/index.d.mts → popover.d.mts} +2 -2
- package/dist/components/atoms/popover.d.mts.map +1 -0
- package/dist/components/atoms/{Popover/index.mjs → popover.mjs} +6 -6
- package/dist/components/atoms/popover.mjs.map +1 -0
- package/dist/components/atoms/{Progress/index.d.mts → progress.d.mts} +2 -2
- package/dist/components/atoms/progress.d.mts.map +1 -0
- package/dist/components/atoms/{Progress/index.mjs → progress.mjs} +5 -5
- package/dist/components/atoms/progress.mjs.map +1 -0
- package/dist/components/atoms/{Radio/Group/index.d.mts → radio/group.d.mts} +18 -4
- package/dist/components/atoms/radio/group.d.mts.map +1 -0
- package/dist/components/atoms/{Radio/Group/index.mjs → radio/group.mjs} +7 -5
- package/dist/components/atoms/radio/group.mjs.map +1 -0
- package/dist/components/atoms/radio/index.d.mts +11 -0
- package/dist/components/atoms/radio/index.d.mts.map +1 -0
- package/dist/components/atoms/radio/index.mjs +10 -0
- package/dist/components/atoms/radio/index.mjs.map +1 -0
- package/dist/components/atoms/radio/radio.d.mts +34 -0
- package/dist/components/atoms/radio/radio.d.mts.map +1 -0
- package/dist/components/atoms/{Radio/index.mjs → radio/radio.mjs} +2 -4
- package/dist/components/atoms/radio/radio.mjs.map +1 -0
- package/dist/components/atoms/{Select/index.d.mts → select.d.mts} +4 -4
- package/dist/components/atoms/select.d.mts.map +1 -0
- package/dist/components/atoms/{Select/index.mjs → select.mjs} +5 -5
- package/dist/components/atoms/select.mjs.map +1 -0
- package/dist/components/atoms/skeleton/button.d.mts +11 -0
- package/dist/components/atoms/skeleton/button.d.mts.map +1 -0
- package/dist/components/atoms/{Skeleton/Button/index.mjs → skeleton/button.mjs} +4 -4
- package/dist/components/atoms/{Skeleton/Button/index.mjs.map → skeleton/button.mjs.map} +1 -1
- package/dist/components/atoms/skeleton/index.d.mts +13 -0
- package/dist/components/atoms/skeleton/index.d.mts.map +1 -0
- package/dist/components/atoms/skeleton/index.mjs +12 -0
- package/dist/components/atoms/skeleton/index.mjs.map +1 -0
- package/dist/components/atoms/skeleton/node.d.mts +11 -0
- package/dist/components/atoms/skeleton/node.d.mts.map +1 -0
- package/dist/components/atoms/{Skeleton/Node/index.mjs → skeleton/node.mjs} +4 -4
- package/dist/components/atoms/skeleton/node.mjs.map +1 -0
- package/dist/components/atoms/{Skeleton/index.d.mts → skeleton/skeleton.d.mts} +19 -31
- package/dist/components/atoms/skeleton/skeleton.d.mts.map +1 -0
- package/dist/components/atoms/{Skeleton/index.mjs → skeleton/skeleton.mjs} +2 -6
- package/dist/components/atoms/skeleton/skeleton.mjs.map +1 -0
- package/dist/components/atoms/{Spin/index.d.mts → spin.d.mts} +2 -2
- package/dist/components/atoms/spin.d.mts.map +1 -0
- package/dist/components/atoms/{Spin/index.mjs → spin.mjs} +3 -3
- package/dist/components/atoms/spin.mjs.map +1 -0
- package/dist/components/atoms/{Switch/index.d.mts → switch.d.mts} +2 -2
- package/dist/components/atoms/switch.d.mts.map +1 -0
- package/dist/components/atoms/{Switch/index.mjs → switch.mjs} +5 -5
- package/dist/components/atoms/switch.mjs.map +1 -0
- package/dist/components/atoms/{Typography/Link/index.d.mts → typography/link.d.mts} +3 -3
- package/dist/components/atoms/typography/link.d.mts.map +1 -0
- package/dist/components/atoms/{Typography/Link/index.mjs → typography/link.mjs} +3 -3
- package/dist/components/atoms/typography/link.mjs.map +1 -0
- package/dist/components/atoms/{Typography/Paragraph/index.d.mts → typography/paragraph.d.mts} +3 -3
- package/dist/components/atoms/typography/paragraph.d.mts.map +1 -0
- package/dist/components/atoms/{Typography/Paragraph/index.mjs → typography/paragraph.mjs} +3 -3
- package/dist/components/atoms/typography/paragraph.mjs.map +1 -0
- package/dist/components/atoms/{Typography/Text/index.d.mts → typography/text.d.mts} +3 -3
- package/dist/components/atoms/typography/text.d.mts.map +1 -0
- package/dist/components/atoms/{Typography/Text/index.mjs → typography/text.mjs} +3 -3
- package/dist/components/atoms/typography/text.mjs.map +1 -0
- package/dist/components/atoms/{Typography/Title/index.d.mts → typography/title.d.mts} +3 -3
- package/dist/components/atoms/typography/title.d.mts.map +1 -0
- package/dist/components/atoms/{Typography/Title/index.mjs → typography/title.mjs} +3 -3
- package/dist/components/atoms/typography/title.mjs.map +1 -0
- package/dist/components/atoms/typography/typography.d.mts +11 -0
- package/dist/components/atoms/typography/typography.d.mts.map +1 -0
- package/dist/components/atoms/typography/typography.mjs +13 -0
- package/dist/components/atoms/typography/typography.mjs.map +1 -0
- package/dist/components/molecules/{Collapse/index.d.mts → collapse.d.mts} +2 -2
- package/dist/components/molecules/collapse.d.mts.map +1 -0
- package/dist/components/molecules/{Collapse/index.mjs → collapse.mjs} +5 -5
- package/dist/components/molecules/collapse.mjs.map +1 -0
- package/dist/components/molecules/{Dropdown/index.d.mts → dropdown.d.mts} +4 -3
- package/dist/components/molecules/dropdown.d.mts.map +1 -0
- package/dist/components/molecules/{Dropdown/index.mjs → dropdown.mjs} +5 -4
- package/dist/components/molecules/dropdown.mjs.map +1 -0
- package/dist/components/molecules/index.d.mts +6 -5
- package/dist/components/molecules/index.mjs +6 -5
- package/dist/components/molecules/marquees/index.d.mts +11 -0
- package/dist/components/molecules/marquees/index.d.mts.map +1 -0
- package/dist/components/molecules/marquees/index.mjs +10 -0
- package/dist/components/molecules/marquees/index.mjs.map +1 -0
- package/dist/components/molecules/marquees/item.d.mts +25 -0
- package/dist/components/molecules/marquees/item.d.mts.map +1 -0
- package/dist/components/molecules/{Marquees/Item/index.mjs → marquees/item.mjs} +4 -2
- package/dist/components/molecules/marquees/item.mjs.map +1 -0
- package/dist/components/molecules/marquees/marquees.d.mts +21 -0
- package/dist/components/molecules/marquees/marquees.d.mts.map +1 -0
- package/dist/components/molecules/{Marquees/index.mjs → marquees/marquees.mjs} +3 -4
- package/dist/components/molecules/marquees/marquees.mjs.map +1 -0
- package/dist/components/molecules/menu/item/index.mjs +3 -0
- package/dist/components/molecules/{Menu/Item/index.mjs → menu/item/item.mjs} +6 -4
- package/dist/components/molecules/menu/item/item.mjs.map +1 -0
- package/dist/components/molecules/{Menu/Item/Label/index.mjs → menu/item/label.mjs} +4 -4
- package/dist/components/molecules/menu/item/label.mjs.map +1 -0
- package/dist/components/molecules/menu/menu.d.mts +62 -0
- package/dist/components/molecules/menu/menu.d.mts.map +1 -0
- package/dist/components/molecules/menu/menu.mjs +70 -0
- package/dist/components/molecules/menu/menu.mjs.map +1 -0
- package/dist/components/molecules/{Reveals/Item/index.d.mts → reveals/item.d.mts} +2 -2
- package/dist/components/molecules/reveals/item.d.mts.map +1 -0
- package/dist/components/molecules/{Reveals/Item/index.mjs → reveals/item.mjs} +3 -3
- package/dist/components/molecules/reveals/item.mjs.map +1 -0
- package/dist/components/molecules/reveals/reveals.d.mts +29 -0
- package/dist/components/molecules/reveals/reveals.d.mts.map +1 -0
- package/dist/components/molecules/reveals/reveals.mjs +28 -0
- package/dist/components/molecules/reveals/reveals.mjs.map +1 -0
- package/dist/components/molecules/splitter/index.d.mts +11 -0
- package/dist/components/molecules/splitter/index.d.mts.map +1 -0
- package/dist/components/molecules/splitter/index.mjs +10 -0
- package/dist/components/molecules/splitter/index.mjs.map +1 -0
- package/dist/components/molecules/splitter/panel.d.mts +17 -0
- package/dist/components/molecules/splitter/panel.d.mts.map +1 -0
- package/dist/components/molecules/splitter/panel.mjs +18 -0
- package/dist/components/molecules/splitter/panel.mjs.map +1 -0
- package/dist/components/molecules/splitter/splitter.d.mts +30 -0
- package/dist/components/molecules/splitter/splitter.d.mts.map +1 -0
- package/dist/components/molecules/{Splitter/index.mjs → splitter/splitter.mjs} +7 -14
- package/dist/components/molecules/splitter/splitter.mjs.map +1 -0
- package/dist/components/organisms/{Drawer/index.d.mts → drawer.d.mts} +2 -2
- package/dist/components/organisms/drawer.d.mts.map +1 -0
- package/dist/components/organisms/{Drawer/index.mjs → drawer.mjs} +6 -6
- package/dist/components/organisms/drawer.mjs.map +1 -0
- package/dist/components/organisms/index.d.mts +4 -4
- package/dist/components/organisms/index.mjs +4 -4
- package/dist/components/organisms/list/index.d.mts +11 -0
- package/dist/components/organisms/list/index.d.mts.map +1 -0
- package/dist/components/organisms/list/index.mjs +10 -0
- package/dist/components/organisms/list/index.mjs.map +1 -0
- package/dist/components/organisms/list/item.d.mts +11 -0
- package/dist/components/organisms/list/item.d.mts.map +1 -0
- package/dist/components/organisms/{List/Item/index.mjs → list/item.mjs} +3 -3
- package/dist/components/organisms/list/item.mjs.map +1 -0
- package/dist/components/organisms/{List/index.d.mts → list/list.d.mts} +17 -24
- package/dist/components/organisms/list/list.d.mts.map +1 -0
- package/dist/components/organisms/{List/index.mjs → list/list.mjs} +3 -5
- package/dist/components/organisms/list/list.mjs.map +1 -0
- package/dist/components/organisms/{Modal/index.d.mts → modal.d.mts} +2 -2
- package/dist/components/organisms/modal.d.mts.map +1 -0
- package/dist/components/organisms/{Modal/index.mjs → modal.mjs} +6 -6
- package/dist/components/organisms/modal.mjs.map +1 -0
- package/dist/components/organisms/swiper/index.d.mts +11 -0
- package/dist/components/organisms/swiper/index.d.mts.map +1 -0
- package/dist/components/organisms/swiper/index.mjs +10 -0
- package/dist/components/organisms/swiper/index.mjs.map +1 -0
- package/dist/components/organisms/swiper/slide.d.mts +15 -0
- package/dist/components/organisms/swiper/slide.d.mts.map +1 -0
- package/dist/components/organisms/{Swiper/Slide/index.mjs → swiper/slide.mjs} +5 -3
- package/dist/components/organisms/swiper/slide.mjs.map +1 -0
- package/dist/components/organisms/{Swiper/index.d.mts → swiper/swiper.d.mts} +12 -23
- package/dist/components/organisms/swiper/swiper.d.mts.map +1 -0
- package/dist/components/organisms/{Swiper/index.mjs → swiper/swiper.mjs} +5 -7
- package/dist/components/organisms/swiper/swiper.mjs.map +1 -0
- package/dist/components/templates/layout/content.d.mts +12 -0
- package/dist/components/templates/layout/content.d.mts.map +1 -0
- package/dist/components/templates/{Layout/Content/index.mjs → layout/content.mjs} +3 -3
- package/dist/components/templates/layout/content.mjs.map +1 -0
- package/dist/components/templates/layout/footer.d.mts +12 -0
- package/dist/components/templates/layout/footer.d.mts.map +1 -0
- package/dist/components/templates/{Layout/Footer/index.mjs → layout/footer.mjs} +3 -3
- package/dist/components/templates/layout/footer.mjs.map +1 -0
- package/dist/components/templates/layout/header.d.mts +12 -0
- package/dist/components/templates/layout/header.d.mts.map +1 -0
- package/dist/components/templates/{Layout/Header/index.mjs → layout/header.mjs} +3 -3
- package/dist/components/templates/layout/header.mjs.map +1 -0
- package/dist/components/templates/layout/layout.d.mts +12 -0
- package/dist/components/templates/layout/layout.d.mts.map +1 -0
- package/dist/components/templates/layout/layout.mjs +18 -0
- package/dist/components/templates/layout/layout.mjs.map +1 -0
- package/dist/components/templates/layout/sider.d.mts +34 -0
- package/dist/components/templates/layout/sider.d.mts.map +1 -0
- package/dist/components/templates/{Layout/Sider/index.mjs → layout/sider.mjs} +3 -3
- package/dist/components/templates/layout/sider.mjs.map +1 -0
- package/dist/core/button.d.mts +2 -2
- package/dist/core/dialog.mjs.map +1 -1
- package/dist/index.d.mts +20 -20
- package/dist/index.mjs +20 -20
- package/dist/style.css +0 -4
- package/package.json +1 -1
- package/dist/Menu.d.mts.map +0 -1
- package/dist/Menu.mjs.map +0 -1
- package/dist/components/atoms/Checkbox/Group/index.d.mts.map +0 -1
- package/dist/components/atoms/Checkbox/Group/index.mjs.map +0 -1
- package/dist/components/atoms/Checkbox/index.d.mts +0 -44
- package/dist/components/atoms/Checkbox/index.d.mts.map +0 -1
- package/dist/components/atoms/Checkbox/index.mjs.map +0 -1
- package/dist/components/atoms/ColorPicker/index.d.mts.map +0 -1
- package/dist/components/atoms/ColorPicker/index.mjs.map +0 -1
- package/dist/components/atoms/FloatButton/BackTop/index.d.mts +0 -12
- package/dist/components/atoms/FloatButton/BackTop/index.d.mts.map +0 -1
- package/dist/components/atoms/FloatButton/BackTop/index.mjs.map +0 -1
- package/dist/components/atoms/FloatButton/index.d.mts +0 -22
- package/dist/components/atoms/FloatButton/index.d.mts.map +0 -1
- package/dist/components/atoms/FloatButton/index.mjs.map +0 -1
- package/dist/components/atoms/Input/Search/index.d.mts +0 -15
- package/dist/components/atoms/Input/Search/index.d.mts.map +0 -1
- package/dist/components/atoms/Input/Search/index.mjs.map +0 -1
- package/dist/components/atoms/Input/TextArea/index.d.mts +0 -1
- package/dist/components/atoms/Input/TextArea/index.mjs.map +0 -1
- package/dist/components/atoms/Input/index.d.mts +0 -31
- package/dist/components/atoms/Input/index.d.mts.map +0 -1
- package/dist/components/atoms/Input/index.mjs.map +0 -1
- package/dist/components/atoms/Popover/index.d.mts.map +0 -1
- package/dist/components/atoms/Popover/index.mjs.map +0 -1
- package/dist/components/atoms/Progress/index.d.mts.map +0 -1
- package/dist/components/atoms/Progress/index.mjs.map +0 -1
- package/dist/components/atoms/Radio/Group/index.d.mts.map +0 -1
- package/dist/components/atoms/Radio/Group/index.mjs.map +0 -1
- package/dist/components/atoms/Radio/index.d.mts +0 -50
- package/dist/components/atoms/Radio/index.d.mts.map +0 -1
- package/dist/components/atoms/Radio/index.mjs.map +0 -1
- package/dist/components/atoms/Select/index.d.mts.map +0 -1
- package/dist/components/atoms/Select/index.mjs.map +0 -1
- package/dist/components/atoms/Skeleton/Button/index.d.mts +0 -2
- package/dist/components/atoms/Skeleton/Node/index.d.mts +0 -2
- package/dist/components/atoms/Skeleton/Node/index.mjs.map +0 -1
- package/dist/components/atoms/Skeleton/index.d.mts.map +0 -1
- package/dist/components/atoms/Skeleton/index.mjs.map +0 -1
- package/dist/components/atoms/Spin/index.d.mts.map +0 -1
- package/dist/components/atoms/Spin/index.mjs.map +0 -1
- package/dist/components/atoms/Switch/index.d.mts.map +0 -1
- package/dist/components/atoms/Switch/index.mjs.map +0 -1
- package/dist/components/atoms/Typography/Link/index.d.mts.map +0 -1
- package/dist/components/atoms/Typography/Link/index.mjs.map +0 -1
- package/dist/components/atoms/Typography/Paragraph/index.d.mts.map +0 -1
- package/dist/components/atoms/Typography/Paragraph/index.mjs.map +0 -1
- package/dist/components/atoms/Typography/Text/index.d.mts.map +0 -1
- package/dist/components/atoms/Typography/Text/index.mjs.map +0 -1
- package/dist/components/atoms/Typography/Title/index.d.mts.map +0 -1
- package/dist/components/atoms/Typography/Title/index.mjs.map +0 -1
- package/dist/components/molecules/Collapse/index.d.mts.map +0 -1
- package/dist/components/molecules/Collapse/index.mjs.map +0 -1
- package/dist/components/molecules/Dropdown/index.d.mts.map +0 -1
- package/dist/components/molecules/Dropdown/index.mjs.map +0 -1
- package/dist/components/molecules/Marquees/Item/index.d.mts +0 -17
- package/dist/components/molecules/Marquees/Item/index.d.mts.map +0 -1
- package/dist/components/molecules/Marquees/Item/index.mjs.map +0 -1
- package/dist/components/molecules/Marquees/index.d.mts +0 -31
- package/dist/components/molecules/Marquees/index.d.mts.map +0 -1
- package/dist/components/molecules/Marquees/index.mjs.map +0 -1
- package/dist/components/molecules/Menu/Item/Label/index.mjs.map +0 -1
- package/dist/components/molecules/Menu/Item/index.mjs.map +0 -1
- package/dist/components/molecules/Reveals/Item/index.d.mts.map +0 -1
- package/dist/components/molecules/Reveals/Item/index.mjs.map +0 -1
- package/dist/components/molecules/Splitter/index.d.mts +0 -31
- package/dist/components/molecules/Splitter/index.d.mts.map +0 -1
- package/dist/components/molecules/Splitter/index.mjs.map +0 -1
- package/dist/components/organisms/Drawer/index.d.mts.map +0 -1
- package/dist/components/organisms/Drawer/index.mjs.map +0 -1
- package/dist/components/organisms/List/Item/index.mjs.map +0 -1
- package/dist/components/organisms/List/index.d.mts.map +0 -1
- package/dist/components/organisms/List/index.mjs.map +0 -1
- package/dist/components/organisms/Modal/index.d.mts.map +0 -1
- package/dist/components/organisms/Modal/index.mjs.map +0 -1
- package/dist/components/organisms/Swiper/Slide/index.mjs.map +0 -1
- package/dist/components/organisms/Swiper/index.d.mts.map +0 -1
- package/dist/components/organisms/Swiper/index.mjs.map +0 -1
- package/dist/components/templates/Layout/Content/index.d.mts +0 -7
- package/dist/components/templates/Layout/Content/index.d.mts.map +0 -1
- package/dist/components/templates/Layout/Content/index.mjs.map +0 -1
- package/dist/components/templates/Layout/Footer/index.d.mts +0 -7
- package/dist/components/templates/Layout/Footer/index.d.mts.map +0 -1
- package/dist/components/templates/Layout/Footer/index.mjs.map +0 -1
- package/dist/components/templates/Layout/Header/index.d.mts +0 -7
- package/dist/components/templates/Layout/Header/index.d.mts.map +0 -1
- package/dist/components/templates/Layout/Header/index.mjs.map +0 -1
- package/dist/components/templates/Layout/Sider/index.d.mts +0 -19
- package/dist/components/templates/Layout/Sider/index.d.mts.map +0 -1
- package/dist/components/templates/Layout/Sider/index.mjs.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/templates/layout/layout.d.ts
|
|
4
|
+
interface Props extends React.ComponentPropsWithoutRef<'div'> {}
|
|
5
|
+
declare const Layout: ({
|
|
6
|
+
children,
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: Props) => react_jsx_runtime0.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Layout, Props };
|
|
12
|
+
//# sourceMappingURL=layout.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.mts","names":[],"sources":["../../../../src/components/templates/layout/layout.tsx"],"mappings":";;;UAMiB,KAAA,SAAc,KAAA,CAAM,wBAAA;AAAA,cAO/B,MAAA;EAAU,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAAmC,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { cn } from "../../../utils.mjs";
|
|
2
|
+
import Sider from "./sider.mjs";
|
|
3
|
+
import { Children, isValidElement } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/templates/layout/layout.tsx
|
|
7
|
+
const hasSiderChild = (children) => Children.toArray(children).some((child) => isValidElement(child) && child.type === Sider);
|
|
8
|
+
const Layout = ({ children, className, ...props }) => {
|
|
9
|
+
return /* @__PURE__ */ jsx("div", {
|
|
10
|
+
className: cn("flex min-h-0 w-full flex-1", hasSiderChild(children) ? "flex-row" : "flex-col", className),
|
|
11
|
+
...props,
|
|
12
|
+
children
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Layout as default };
|
|
18
|
+
//# sourceMappingURL=layout.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.mjs","names":[],"sources":["../../../../src/components/templates/layout/layout.tsx"],"sourcesContent":["import { Children, isValidElement } from 'react';\n\nimport { cn } from '@repo/ui/utils';\n\nimport Sider from './sider';\n\nexport interface Props extends React.ComponentPropsWithoutRef<'div'> {}\n\nconst hasSiderChild = (children: React.ReactNode) =>\n Children.toArray(children).some(\n child => isValidElement(child) && child.type === Sider,\n );\n\nconst Layout = ({ children, className, ...props }: Props) => {\n const isRow = hasSiderChild(children);\n\n return (\n <div\n className={cn(\n 'flex min-h-0 w-full flex-1',\n isRow ? 'flex-row' : 'flex-col',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n};\n\nexport default Layout;\n"],"mappings":";;;;;;AAQA,MAAM,iBAAiB,aACrB,SAAS,QAAQ,SAAS,CAAC,MACzB,UAAS,eAAe,MAAM,IAAI,MAAM,SAAS,MAClD;AAEH,MAAM,UAAU,EAAE,UAAU,WAAW,GAAG,YAAmB;AAG3D,QACE,oBAAC;EACC,WAAW,GACT,8BALQ,cAAc,SAAS,GAMvB,aAAa,YACrB,UACD;EACD,GAAI;EAEH;GACG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/templates/layout/sider.d.ts
|
|
4
|
+
interface Props extends Omit<React.ComponentPropsWithoutRef<'aside'>, 'onCollapse'> {
|
|
5
|
+
width?: number | string;
|
|
6
|
+
collapsedWidth?: number | string;
|
|
7
|
+
collapsible?: boolean;
|
|
8
|
+
defaultCollapsed?: boolean;
|
|
9
|
+
collapsed?: boolean;
|
|
10
|
+
reverseArrow?: boolean;
|
|
11
|
+
trigger?: React.ReactNode;
|
|
12
|
+
classNames?: {
|
|
13
|
+
trigger?: string;
|
|
14
|
+
};
|
|
15
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
declare const Sider: ({
|
|
18
|
+
children,
|
|
19
|
+
className,
|
|
20
|
+
classNames,
|
|
21
|
+
style,
|
|
22
|
+
width,
|
|
23
|
+
collapsedWidth,
|
|
24
|
+
collapsible,
|
|
25
|
+
defaultCollapsed,
|
|
26
|
+
collapsed: _collapsed,
|
|
27
|
+
reverseArrow,
|
|
28
|
+
trigger,
|
|
29
|
+
onCollapse: _onCollapse,
|
|
30
|
+
...props
|
|
31
|
+
}: Props) => react_jsx_runtime0.JSX.Element;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { Props, Sider };
|
|
34
|
+
//# sourceMappingURL=sider.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sider.d.mts","names":[],"sources":["../../../../src/components/templates/layout/sider.tsx"],"mappings":";;;UAQiB,KAAA,SAAc,IAAA,CAC7B,KAAA,CAAM,wBAAA;EAGN,KAAA;EACA,cAAA;EACA,WAAA;EACA,gBAAA;EACA,SAAA;EACA,YAAA;EACA,OAAA,GAAU,KAAA,CAAM,SAAA;EAChB,UAAA;IACE,OAAA;EAAA;EAEF,UAAA,IAAc,SAAA;AAAA;AAAA,cAMV,KAAA;EAAS,QAAA;EAAA,SAAA;EAAA,UAAA;EAAA,KAAA;EAAA,KAAA;EAAA,cAAA;EAAA,WAAA;EAAA,gBAAA;EAAA,SAAA,EAAA,UAAA;EAAA,YAAA;EAAA,OAAA;EAAA,UAAA,EAAA,WAAA;EAAA,GAAA;AAAA,GAcZ,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../../utils.mjs";
|
|
4
4
|
import { PanelLeftClose, PanelLeftOpen } from "lucide-react";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
|
-
//#region src/components/templates/
|
|
8
|
+
//#region src/components/templates/layout/sider.tsx
|
|
9
9
|
const toCssSize = (value) => typeof value === "number" ? `${value}px` : value;
|
|
10
10
|
const Sider = ({ children, className, classNames, style, width = 200, collapsedWidth = 80, collapsible = false, defaultCollapsed = false, collapsed: _collapsed, reverseArrow = false, trigger, onCollapse: _onCollapse = () => {}, ...props }) => {
|
|
11
11
|
const [uncontrolledCollapsed, setUncontrolledCollapsed] = useState(defaultCollapsed);
|
|
@@ -39,4 +39,4 @@ const Sider = ({ children, className, classNames, style, width = 200, collapsedW
|
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
41
41
|
export { Sider as default };
|
|
42
|
-
//# sourceMappingURL=
|
|
42
|
+
//# sourceMappingURL=sider.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sider.mjs","names":[],"sources":["../../../../src/components/templates/layout/sider.tsx"],"sourcesContent":["'use client';\n\nimport { useState } from 'react';\n\nimport { PanelLeftClose, PanelLeftOpen } from 'lucide-react';\n\nimport { cn } from '@repo/ui/utils';\n\nexport interface Props extends Omit<\n React.ComponentPropsWithoutRef<'aside'>,\n 'onCollapse'\n> {\n width?: number | string;\n collapsedWidth?: number | string;\n collapsible?: boolean;\n defaultCollapsed?: boolean;\n collapsed?: boolean;\n reverseArrow?: boolean;\n trigger?: React.ReactNode;\n classNames?: {\n trigger?: string;\n };\n onCollapse?: (collapsed: boolean) => void;\n}\n\nconst toCssSize = (value: number | string) =>\n typeof value === 'number' ? `${value}px` : value;\n\nconst Sider = ({\n children,\n className,\n classNames,\n style,\n width = 200,\n collapsedWidth = 80,\n collapsible = false,\n defaultCollapsed = false,\n collapsed: _collapsed,\n reverseArrow = false,\n trigger,\n onCollapse: _onCollapse = () => {},\n ...props\n}: Props) => {\n const [uncontrolledCollapsed, setUncontrolledCollapsed] =\n useState(defaultCollapsed);\n\n const controlled = _collapsed !== undefined;\n const collapsed = controlled ? _collapsed : uncontrolledCollapsed;\n\n const onCollapse = () => {\n const next = !collapsed;\n\n if (!controlled) {\n setUncontrolledCollapsed(next);\n }\n _onCollapse(next);\n };\n\n const TriggerIcon =\n collapsed !== reverseArrow ? PanelLeftOpen : PanelLeftClose;\n\n return (\n <aside\n className={cn(\n 'z-100 flex h-full shrink-0 flex-col overflow-hidden',\n 'transition-[width] duration-200',\n className,\n //\n )}\n style={{\n width: toCssSize(collapsed ? collapsedWidth : width),\n ...style,\n }}\n {...props}\n >\n <div className=\"min-h-0 flex-1 overflow-auto\">{children}</div>\n {collapsible && (\n <button\n type=\"button\"\n aria-label={collapsed ? '펼치기' : '접기'}\n onClick={onCollapse}\n className={cn(\n 'flex w-full shrink-0 items-center justify-center py-2',\n 'cursor-pointer transition-colors hover:bg-black/5',\n classNames?.trigger,\n //\n )}\n >\n {trigger ?? <TriggerIcon className=\"size-4\" />}\n </button>\n )}\n </aside>\n );\n};\n\nexport default Sider;\n"],"mappings":";;;;;;;;AAyBA,MAAM,aAAa,UACjB,OAAO,UAAU,WAAW,GAAG,MAAM,MAAM;AAE7C,MAAM,SAAS,EACb,UACA,WACA,YACA,OACA,QAAQ,KACR,iBAAiB,IACjB,cAAc,OACd,mBAAmB,OACnB,WAAW,YACX,eAAe,OACf,SACA,YAAY,oBAAoB,IAChC,GAAG,YACQ;CACX,MAAM,CAAC,uBAAuB,4BAC5B,SAAS,iBAAiB;CAE5B,MAAM,aAAa,eAAe;CAClC,MAAM,YAAY,aAAa,aAAa;CAE5C,MAAM,mBAAmB;EACvB,MAAM,OAAO,CAAC;AAEd,MAAI,CAAC,WACH,0BAAyB,KAAK;AAEhC,cAAY,KAAK;;CAGnB,MAAM,cACJ,cAAc,eAAe,gBAAgB;AAE/C,QACE,qBAAC;EACC,WAAW,GACT,uDACA,mCACA,UAED;EACD,OAAO;GACL,OAAO,UAAU,YAAY,iBAAiB,MAAM;GACpD,GAAG;GACJ;EACD,GAAI;aAEJ,oBAAC;GAAI,WAAU;GAAgC;IAAe,EAC7D,eACC,oBAAC;GACC,MAAK;GACL,cAAY,YAAY,QAAQ;GAChC,SAAS;GACT,WAAW,GACT,yDACA,qDACA,YAAY,QAEb;aAEA,WAAW,oBAAC,eAAY,WAAU,WAAW;IACvC;GAEL"}
|
package/dist/core/button.d.mts
CHANGED
|
@@ -8,8 +8,8 @@ declare namespace button_d_exports {
|
|
|
8
8
|
export { Button, Props, buttonVariants };
|
|
9
9
|
}
|
|
10
10
|
declare const buttonVariants: (props?: ({
|
|
11
|
-
variant?: "link" | "default" | "
|
|
12
|
-
size?: "
|
|
11
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
12
|
+
size?: "icon" | "default" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
13
13
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
14
14
|
type Props = React$1.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
15
15
|
asChild?: boolean;
|
package/dist/core/dialog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.mjs","names":[],"sources":["../../src/core/dialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from '@repo/ui/utils';\n\nimport Button from '../components/atoms/
|
|
1
|
+
{"version":3,"file":"dialog.mjs","names":[],"sources":["../../src/core/dialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from '@repo/ui/utils';\n\nimport Button from '../components/atoms/button';\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n `data-[state=open]:animate-in data-[state=closed]:animate-out\n data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0\n z-50 bg-black/50`,\n className,\n )}\n {...props}\n />\n );\n}\n\ninterface CustomContentProps {\n classNames?: Record<string, string>;\n closeIcon?: React.ReactNode;\n closable?: boolean | { disabled?: boolean };\n container?: HTMLElement;\n onCancel?: () => void;\n}\n\nfunction DialogContent({\n className,\n children,\n // showCloseButton = true,\n classNames,\n closeIcon: _closeIcon,\n closable,\n container,\n onCancel,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean;\n} & CustomContentProps) {\n const closeIcon = (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n className=\"ring-offset-background focus:ring-ring\n data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\n absolute top-4 right-4 rounded-xs opacity-70 transition-opacity\n hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden\n disabled:pointer-events-none [&_svg]:pointer-events-none\n [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n disabled={typeof closable === 'object' && closable.disabled}\n onClick={onCancel}\n >\n {_closeIcon || <XIcon />}\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n );\n\n return (\n <DialogPortal data-slot=\"dialog-portal\" container={container}>\n <DialogOverlay className={cn(classNames?.mask)} />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n `bg-background data-[state=open]:animate-in\n data-[state=closed]:animate-out data-[state=closed]:fade-out-0\n data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95\n data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid\n w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]\n gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none\n sm:max-w-lg`,\n className,\n )}\n {...props}\n >\n {children}\n {closable && closeIcon}\n {/* {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-accent\n data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs\n opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2\n focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none\n [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n >\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )} */}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn('flex flex-col gap-2 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<'div'> & {\n showCloseButton?: boolean;\n}) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close asChild>\n <Button variant=\"outlined\">Close</Button>\n </DialogPrimitive.Close>\n )}\n </div>\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn('text-lg leading-none font-semibold', className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAWA,SAAS,OAAO,EACd,GAAG,SACiD;AACpD,QAAO,oBAAC,gBAAgB;EAAK,aAAU;EAAS,GAAI;GAAS;;AAG/D,SAAS,cAAc,EACrB,GAAG,SACoD;AACvD,QAAO,oBAAC,gBAAgB;EAAQ,aAAU;EAAiB,GAAI;GAAS;;AAG1E,SAAS,aAAa,EACpB,GAAG,SACmD;AACtD,QAAO,oBAAC,gBAAgB;EAAO,aAAU;EAAgB,GAAI;GAAS;;AAGxE,SAAS,YAAY,EACnB,GAAG,SACkD;AACrD,QAAO,oBAAC,gBAAgB;EAAM,aAAU;EAAe,GAAI;GAAS;;AAGtE,SAAS,cAAc,EACrB,WACA,GAAG,SACoD;AACvD,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GACT;;2BAGA,UACD;EACD,GAAI;GACJ;;AAYN,SAAS,cAAc,EACrB,WACA,UAEA,YACA,WAAW,YACX,UACA,WACA,UACA,GAAG,SAGmB;CACtB,MAAM,YACJ,qBAAC,gBAAgB;EACf,aAAU;EACV,WAAU;EAMV,UAAU,OAAO,aAAa,YAAY,SAAS;EACnD,SAAS;aAER,cAAc,oBAAC,UAAQ,EACxB,oBAAC;GAAK,WAAU;aAAU;IAAY;GAChB;AAG1B,QACE,qBAAC;EAAa,aAAU;EAA2B;aACjD,oBAAC,iBAAc,WAAW,GAAG,YAAY,KAAK,GAAI,EAClD,qBAAC,gBAAgB;GACf,aAAU;GACV,WAAW,GACT;;;;;;wBAOA,UACD;GACD,GAAI;cAEH,UACA,YAAY;IAcW;GACb;;AAInB,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;AAC1E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,gDAAgD,UAAU;EACxE,GAAI;GACJ;;AAIN,SAAS,aAAa,EACpB,WACA,kBAAkB,OAClB,UACA,GAAG,SAGF;AACD,QACE,qBAAC;EACC,aAAU;EACV,WAAW,GACT,0DACA,UACD;EACD,GAAI;aAEH,UACA,mBACC,oBAAC,gBAAgB;GAAM;aACrB,oBAAC;IAAO,SAAQ;cAAW;KAAc;IACnB;GAEtB;;AAIV,SAAS,YAAY,EACnB,WACA,GAAG,SACkD;AACrD,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GAAG,sCAAsC,UAAU;EAC9D,GAAI;GACJ;;AAIN,SAAS,kBAAkB,EACzB,WACA,GAAG,SACwD;AAC3D,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ"}
|
package/dist/index.d.mts
CHANGED
|
@@ -2,31 +2,31 @@ import Button from "./Button.mjs";
|
|
|
2
2
|
import Tag from "./Tag.mjs";
|
|
3
3
|
import Typography from "./Typography.mjs";
|
|
4
4
|
import Card from "./Card.mjs";
|
|
5
|
-
import Menu from "./
|
|
5
|
+
import { Menu } from "./components/molecules/menu/menu.mjs";
|
|
6
6
|
import Reveals from "./Reveals.mjs";
|
|
7
7
|
import Space from "./Space.mjs";
|
|
8
8
|
import Layout from "./Layout.mjs";
|
|
9
|
-
import { Checkbox } from "./components/atoms/
|
|
10
|
-
import { ColorPicker } from "./components/atoms/
|
|
11
|
-
import { FloatButton } from "./components/atoms/
|
|
12
|
-
import { Input } from "./components/atoms/
|
|
13
|
-
import { Popover } from "./components/atoms/
|
|
14
|
-
import { Progress } from "./components/atoms/
|
|
15
|
-
import { Radio } from "./components/atoms/
|
|
16
|
-
import { Select } from "./components/atoms/
|
|
17
|
-
import { Skeleton } from "./components/atoms/
|
|
18
|
-
import { Spin } from "./components/atoms/
|
|
19
|
-
import { Switch } from "./components/atoms/
|
|
9
|
+
import { Checkbox } from "./components/atoms/checkbox/index.mjs";
|
|
10
|
+
import { ColorPicker } from "./components/atoms/color-picker.mjs";
|
|
11
|
+
import { FloatButton } from "./components/atoms/float-button/index.mjs";
|
|
12
|
+
import { Input } from "./components/atoms/input/index.mjs";
|
|
13
|
+
import { Popover } from "./components/atoms/popover.mjs";
|
|
14
|
+
import { Progress } from "./components/atoms/progress.mjs";
|
|
15
|
+
import { Radio } from "./components/atoms/radio/index.mjs";
|
|
16
|
+
import { Select } from "./components/atoms/select.mjs";
|
|
17
|
+
import { Skeleton } from "./components/atoms/skeleton/index.mjs";
|
|
18
|
+
import { Spin } from "./components/atoms/spin.mjs";
|
|
19
|
+
import { Switch } from "./components/atoms/switch.mjs";
|
|
20
20
|
import "./components/atoms/index.mjs";
|
|
21
|
-
import { Collapse } from "./components/molecules/
|
|
22
|
-
import { Dropdown } from "./components/molecules/
|
|
23
|
-
import { Marquees } from "./components/molecules/
|
|
24
|
-
import { Splitter } from "./components/molecules/
|
|
21
|
+
import { Collapse } from "./components/molecules/collapse.mjs";
|
|
22
|
+
import { Dropdown } from "./components/molecules/dropdown.mjs";
|
|
23
|
+
import { Marquees } from "./components/molecules/marquees/index.mjs";
|
|
24
|
+
import { Splitter } from "./components/molecules/splitter/index.mjs";
|
|
25
25
|
import "./components/molecules/index.mjs";
|
|
26
|
-
import { Drawer, Props as Props$1 } from "./components/organisms/
|
|
27
|
-
import { List } from "./components/organisms/
|
|
28
|
-
import { Modal } from "./components/organisms/
|
|
29
|
-
import { Swiper } from "./components/organisms/
|
|
26
|
+
import { Drawer, Props as Props$1 } from "./components/organisms/drawer.mjs";
|
|
27
|
+
import { List } from "./components/organisms/list/index.mjs";
|
|
28
|
+
import { Modal } from "./components/organisms/modal.mjs";
|
|
29
|
+
import { Swiper } from "./components/organisms/swiper/index.mjs";
|
|
30
30
|
import "./components/organisms/index.mjs";
|
|
31
31
|
import "./components/templates/index.mjs";
|
|
32
32
|
import { ThemeConfig, ThemeToken } from "./providers/Config/types.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import "./style.mjs";
|
|
2
2
|
import Button from "./Button.mjs";
|
|
3
|
-
import Checkbox from "./components/atoms/
|
|
3
|
+
import Checkbox from "./components/atoms/checkbox/index.mjs";
|
|
4
4
|
import Typography from "./Typography.mjs";
|
|
5
|
-
import Popover from "./components/atoms/
|
|
6
|
-
import ColorPicker from "./components/atoms/
|
|
7
|
-
import FloatButton from "./components/atoms/
|
|
8
|
-
import Input from "./components/atoms/
|
|
9
|
-
import Progress from "./components/atoms/
|
|
10
|
-
import Radio from "./components/atoms/
|
|
11
|
-
import Select from "./components/atoms/
|
|
12
|
-
import Skeleton from "./components/atoms/
|
|
13
|
-
import Spin from "./components/atoms/
|
|
14
|
-
import Switch from "./components/atoms/
|
|
5
|
+
import Popover from "./components/atoms/popover.mjs";
|
|
6
|
+
import ColorPicker from "./components/atoms/color-picker.mjs";
|
|
7
|
+
import FloatButton from "./components/atoms/float-button/index.mjs";
|
|
8
|
+
import Input from "./components/atoms/input/index.mjs";
|
|
9
|
+
import Progress from "./components/atoms/progress.mjs";
|
|
10
|
+
import Radio from "./components/atoms/radio/index.mjs";
|
|
11
|
+
import Select from "./components/atoms/select.mjs";
|
|
12
|
+
import Skeleton from "./components/atoms/skeleton/index.mjs";
|
|
13
|
+
import Spin from "./components/atoms/spin.mjs";
|
|
14
|
+
import Switch from "./components/atoms/switch.mjs";
|
|
15
15
|
import Tag from "./Tag.mjs";
|
|
16
16
|
import "./components/atoms/index.mjs";
|
|
17
17
|
import Card from "./Card.mjs";
|
|
18
|
-
import Collapse from "./components/molecules/
|
|
19
|
-
import Menu from "./
|
|
20
|
-
import Dropdown from "./components/molecules/
|
|
21
|
-
import Marquees from "./components/molecules/
|
|
18
|
+
import Collapse from "./components/molecules/collapse.mjs";
|
|
19
|
+
import Menu from "./components/molecules/menu/menu.mjs";
|
|
20
|
+
import Dropdown from "./components/molecules/dropdown.mjs";
|
|
21
|
+
import Marquees from "./components/molecules/marquees/index.mjs";
|
|
22
22
|
import Reveals from "./Reveals.mjs";
|
|
23
|
-
import Splitter from "./components/molecules/
|
|
23
|
+
import Splitter from "./components/molecules/splitter/index.mjs";
|
|
24
24
|
import Space from "./Space.mjs";
|
|
25
25
|
import "./components/molecules/index.mjs";
|
|
26
|
-
import Drawer from "./components/organisms/
|
|
27
|
-
import List from "./components/organisms/
|
|
28
|
-
import Modal from "./components/organisms/
|
|
29
|
-
import Swiper from "./components/organisms/
|
|
26
|
+
import Drawer from "./components/organisms/drawer.mjs";
|
|
27
|
+
import List from "./components/organisms/list/index.mjs";
|
|
28
|
+
import Modal from "./components/organisms/modal.mjs";
|
|
29
|
+
import Swiper from "./components/organisms/swiper/index.mjs";
|
|
30
30
|
import "./components/organisms/index.mjs";
|
|
31
31
|
import Layout from "./Layout.mjs";
|
|
32
32
|
import "./components/templates/index.mjs";
|
package/dist/style.css
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
--color-green-500: oklch(72.3% 0.219 149.579);
|
|
12
12
|
--color-green-600: oklch(62.7% 0.194 149.214);
|
|
13
13
|
--color-blue-400: oklch(70.7% 0.165 254.624);
|
|
14
|
-
--color-gray-200: oklch(92.8% 0.006 264.531);
|
|
15
14
|
--color-black: #000;
|
|
16
15
|
--color-white: #fff;
|
|
17
16
|
--spacing: 0.25rem;
|
|
@@ -893,9 +892,6 @@
|
|
|
893
892
|
.border-destructive {
|
|
894
893
|
border-color: var(--destructive);
|
|
895
894
|
}
|
|
896
|
-
.border-gray-200 {
|
|
897
|
-
border-color: var(--color-gray-200);
|
|
898
|
-
}
|
|
899
895
|
.border-green-500 {
|
|
900
896
|
border-color: var(--color-green-500);
|
|
901
897
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbpark/ui-kit",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.3",
|
|
4
4
|
"description": "Modern React UI component library built with TypeScript, Tailwind CSS, and Radix UI. Featuring atoms, molecules, organisms and layout templates for building beautiful interfaces.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
package/dist/Menu.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.mts","names":[],"sources":["../src/components/molecules/Menu/index.tsx"],"mappings":";;;UAQiB,QAAA;EACf,KAAA,EAAO,KAAA,CAAM,SAAA;EACb,GAAA,EAAK,KAAA,CAAM,GAAA;EACX,IAAA;EACA,IAAA;EACA,QAAA,GAAW,QAAA;AAAA;AAAA,UAGI,KAAA;EACf,IAAA;EACA,YAAA,GAAe,KAAA,CAAM,GAAA;EACrB,mBAAA,GAAsB,KAAA,CAAM,GAAA;EAC5B,YAAA,GAAe,YAAA;EACf,MAAA;EACA,YAAA;EACA,UAAA;IACE,QAAA;IACA,OAAA;IACA,IAAA;IACA,KAAA;EAAA;EAGF,MAAA;IACE,QAAA,GAAW,KAAA,CAAM,aAAA;IACjB,OAAA,GAAU,KAAA,CAAM,aAAA;IAChB,IAAA,GAAO,KAAA,CAAM,aAAA;IACb,KAAA,GAAQ,KAAA,CAAM,aAAA;EAAA;EAGhB,OAAA,GAAU,iBAAA;EACV,QAAA,GAAW,iBAAA;AAAA;AAAA,UAGI,SAAA,SAEb,KAAA,EACA,IAAA,CAAK,KAAA,CAAM,wBAAA;EACb,KAAA,GAAQ,QAAA;AAAA;AAAA,KAGE,iBAAA,IAAqB,MAAA;EAC/B,QAAA,EAAU,KAAA,CAAM,UAAA;EAChB,GAAA,EAAK,KAAA,CAAM,GAAA;EACX,OAAA,EAAS,KAAA,CAAM,GAAA;EACf,IAAA,EAAM,QAAA;AAAA;AAAA,cAGK,eAAA;AAAA,KAQD,YAAA,GAAe,WAAA,CAAY,KAAA,CAAM,GAAA;AAAA,cAEhC,iBAAA,GACX,KAAA,EAAO,QAAA,IACP,eAAA,EAAiB,WAAA,CAAY,KAAA,CAAM,GAAA,MAClC,YAAA;AAAA,cAeU,OAAA,GACX,IAAA,EAAM,QAAA,EACN,UAAA,EAAY,WAAA,CAAY,KAAA,CAAM,GAAA;AAAA,cAiB1B,IAAA;EAAQ,KAAA;EAAA,IAAA;EAAA,mBAAA;EAAA,YAAA,EAAA,aAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAA,MAAA;EAAA,YAAA;EAAA,OAAA;EAAA,QAAA,EAAA,SAAA;EAAA,GAAA;AAAA,GAaX,SAAA,KAAS,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/Menu.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.mjs","names":[],"sources":["../src/components/molecules/Menu/index.tsx"],"sourcesContent":["'use client';\n\nimport { useMemo, useState } from 'react';\n\nimport { cn } from '@repo/ui/utils';\n\nimport Item from './Item';\n\nexport interface MenuItem {\n label: React.ReactNode;\n key: React.Key;\n type?: string;\n path?: string;\n children?: MenuItem[];\n}\n\nexport interface Props {\n mode?: 'horizontal' | 'vertical' | 'inline';\n selectedKeys?: React.Key[];\n defaultSelectedKeys?: React.Key[];\n selectionMap?: SelectionMap;\n offset?: [number, number];\n inlineOffset?: number;\n classNames?: {\n rootItem?: string;\n subMenu?: string;\n item?: string;\n label?: string;\n // open?: string;\n };\n styles?: {\n rootItem?: React.CSSProperties;\n subMenu?: React.CSSProperties;\n item?: React.CSSProperties;\n label?: React.CSSProperties;\n // open?: React.CSSProperties;\n };\n onClick?: ClickEventHandler;\n onSelect?: ClickEventHandler;\n}\n\nexport interface MenuProps\n extends\n Props,\n Omit<React.ComponentPropsWithoutRef<'ul'>, 'onClick' | 'onSelect'> {\n items?: MenuItem[];\n}\n\nexport type ClickEventHandler = (params: {\n domEvent: React.MouseEvent;\n key: React.Key;\n keyPath: React.Key[];\n item: MenuItem;\n}) => void;\n\nexport const MENU_CLASSNAMES = [\n 'p-0',\n 'bg-white',\n 'shadow-md',\n 'rounded-md',\n //\n];\n\nexport type SelectionMap = ReadonlyMap<React.Key, boolean>;\n\nexport const buildSelectionMap = (\n items: MenuItem[],\n selectedKeysSet: ReadonlySet<React.Key>,\n): SelectionMap => {\n const map = new Map<React.Key, boolean>();\n\n const dfs = (node: MenuItem): boolean => {\n const self = selectedKeysSet.has(node.key);\n const hasSelectedChild = node.children?.some(child => dfs(child)) ?? false;\n const isSelected = self || hasSelectedChild;\n map.set(node.key, isSelected);\n return isSelected;\n };\n\n items.forEach(dfs);\n return map;\n};\n\nexport const findKey = (\n menu: MenuItem,\n targetKeys: ReadonlySet<React.Key>,\n): boolean => {\n if (targetKeys.has(menu.key)) {\n return true;\n }\n\n if (menu.children && Array.isArray(menu.children)) {\n for (const child of menu.children) {\n if (findKey(child, targetKeys)) {\n return true;\n }\n }\n }\n\n return false;\n};\n\nconst Menu = ({\n items,\n mode = 'vertical',\n defaultSelectedKeys = [],\n selectedKeys: _selectedKeys,\n className,\n classNames,\n styles,\n offset,\n inlineOffset,\n onClick,\n onSelect: _onSelect,\n ...props\n}: MenuProps) => {\n const controlled = _selectedKeys !== undefined;\n const [uncontrolledSelectedKeys, setUncontrolledSelectedKeys] = useState<\n React.Key[]\n >(defaultSelectedKeys ?? []);\n\n const selectedKeys = controlled\n ? (_selectedKeys as React.Key[])\n : uncontrolledSelectedKeys;\n\n const selectedKeysSet = useMemo(\n () => new Set<React.Key>(selectedKeys ?? []),\n [selectedKeys],\n );\n\n const selectionMap = useMemo(\n () => buildSelectionMap(items ?? [], selectedKeysSet),\n [items, selectedKeysSet],\n );\n\n const onSelect = (params: {\n domEvent: React.MouseEvent;\n key: React.Key;\n keyPath: React.Key[];\n item: MenuItem;\n }) => {\n if (!controlled) {\n setUncontrolledSelectedKeys([params.key]);\n }\n _onSelect?.(params);\n };\n\n return (\n <ul\n role=\"menu\"\n className={cn(\n MENU_CLASSNAMES,\n mode === 'horizontal' ? 'flex' : 'inline-block',\n className,\n )}\n {...props}\n >\n {items?.map(item => (\n <Item\n root\n {...item}\n key={item.key}\n itemKey={item.key}\n keyPath={[item.key]}\n selectedKeys={selectedKeys}\n selectionMap={selectionMap}\n mode={mode}\n classNames={classNames}\n styles={styles}\n offset={offset}\n inlineOffset={inlineOffset}\n onClick={onClick}\n onSelect={onSelect}\n />\n ))}\n </ul>\n );\n};\n\nexport default Menu;\n"],"mappings":";;;;;;;;AAuDA,MAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CAED;AAID,MAAa,qBACX,OACA,oBACiB;CACjB,MAAM,sBAAM,IAAI,KAAyB;CAEzC,MAAM,OAAO,SAA4B;EACvC,MAAM,OAAO,gBAAgB,IAAI,KAAK,IAAI;EAC1C,MAAM,mBAAmB,KAAK,UAAU,MAAK,UAAS,IAAI,MAAM,CAAC,IAAI;EACrE,MAAM,aAAa,QAAQ;AAC3B,MAAI,IAAI,KAAK,KAAK,WAAW;AAC7B,SAAO;;AAGT,OAAM,QAAQ,IAAI;AAClB,QAAO;;AAGT,MAAa,WACX,MACA,eACY;AACZ,KAAI,WAAW,IAAI,KAAK,IAAI,CAC1B,QAAO;AAGT,KAAI,KAAK,YAAY,MAAM,QAAQ,KAAK,SAAS,EAC/C;OAAK,MAAM,SAAS,KAAK,SACvB,KAAI,QAAQ,OAAO,WAAW,CAC5B,QAAO;;AAKb,QAAO;;AAGT,MAAM,QAAQ,EACZ,OACA,OAAO,YACP,sBAAsB,EAAE,EACxB,cAAc,eACd,WACA,YACA,QACA,QACA,cACA,SACA,UAAU,WACV,GAAG,YACY;CACf,MAAM,aAAa,kBAAkB;CACrC,MAAM,CAAC,0BAA0B,+BAA+B,SAE9D,uBAAuB,EAAE,CAAC;CAE5B,MAAM,eAAe,aAChB,gBACD;CAEJ,MAAM,kBAAkB,cAChB,IAAI,IAAe,gBAAgB,EAAE,CAAC,EAC5C,CAAC,aAAa,CACf;CAED,MAAM,eAAe,cACb,kBAAkB,SAAS,EAAE,EAAE,gBAAgB,EACrD,CAAC,OAAO,gBAAgB,CACzB;CAED,MAAM,YAAY,WAKZ;AACJ,MAAI,CAAC,WACH,6BAA4B,CAAC,OAAO,IAAI,CAAC;AAE3C,cAAY,OAAO;;AAGrB,QACE,oBAAC;EACC,MAAK;EACL,WAAW,GACT,iBACA,SAAS,eAAe,SAAS,gBACjC,UACD;EACD,GAAI;YAEH,OAAO,KAAI,SACV,8BAAC;GACC;GACA,GAAI;GACJ,KAAK,KAAK;GACV,SAAS,KAAK;GACd,SAAS,CAAC,KAAK,IAAI;GACL;GACA;GACR;GACM;GACJ;GACA;GACM;GACL;GACC;IACV,CACF;GACC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../../src/components/atoms/Checkbox/Group/index.tsx"],"mappings":";;;KAMY,WAAA;AAAA,KAEP,MAAA;EACH,KAAA;EACA,KAAA,EAAO,WAAA;AAAA;AAAA,KAGJ,OAAA,qCAA4C,MAAA;AAAA,UAEhC,KAAA,SAAc,IAAA,CAC7B,KAAA,CAAM,wBAAA;EAGN,OAAA,GAAU,OAAA;EACV,WAAA;EACA,SAAA;EACA,UAAA,GAAa,MAAA;EACb,YAAA,GAAe,WAAA;EACf,KAAA,GAAQ,WAAA;EACR,QAAA,IAAY,MAAA,EAAQ,WAAA;AAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/components/atoms/Checkbox/Group/index.tsx"],"sourcesContent":["import { useState } from 'react';\n\nimport { cn } from '@repo/ui/utils';\n\nimport Checkbox from '..';\n\nexport type OptionValue = string | number | boolean;\n\ntype Option = {\n label: string;\n value: OptionValue;\n};\n\ntype Options = string[] | number[] | boolean[] | Option[];\n\nexport interface Props extends Omit<\n React.ComponentPropsWithoutRef<'div'>,\n 'onChange' | 'defaultValue' | 'value'\n> {\n options?: Options;\n orientation?: 'vertical' | 'horizontal';\n placement?: 'left' | 'right';\n classNames?: Record<string, string>;\n defaultValue?: OptionValue[];\n value?: OptionValue[];\n onChange?: (values: OptionValue[]) => void;\n}\n\nconst Group = ({\n orientation = 'vertical',\n placement = 'left',\n className,\n classNames = {},\n options: _options = [],\n defaultValue,\n value: _value,\n onChange: _onChange = () => {},\n}: Props) => {\n const [uncontrolledValue, setUncontrolledValue] = useState<OptionValue[]>(\n defaultValue || [],\n );\n\n const controlled = _value !== undefined;\n const value = controlled ? _value : uncontrolledValue;\n\n const options: Option[] = _options.map(item =>\n typeof item === 'object'\n ? item\n : {\n label: `${item}`,\n value: item,\n },\n );\n\n const onChange = (checked: boolean, optionValue: OptionValue) => {\n const nextValue = checked\n ? [...value, optionValue]\n : value.filter(v => v !== optionValue);\n\n if (!controlled) {\n setUncontrolledValue(nextValue);\n }\n _onChange(nextValue);\n };\n\n return (\n <ul\n className={cn(\n orientation === 'vertical' ? 'space-y-2' : 'flex gap-2',\n className,\n )}\n >\n {options.map((item: Option) => {\n const checked = value.includes(item.value);\n\n return (\n <li\n key={String(item.value)}\n className={cn('flex', classNames?.wrapper)}\n >\n <Checkbox\n placement={placement}\n className={cn(classNames?.item)}\n value={item.value}\n checked={checked}\n onChange={checked => onChange(checked, item.value)}\n >\n {item.label}\n </Checkbox>\n </li>\n );\n })}\n </ul>\n );\n};\n\nexport default Group;\n"],"mappings":";;;;;;AA4BA,MAAM,SAAS,EACb,cAAc,YACd,YAAY,QACZ,WACA,aAAa,EAAE,EACf,SAAS,WAAW,EAAE,EACtB,cACA,OAAO,QACP,UAAU,kBAAkB,SACjB;CACX,MAAM,CAAC,mBAAmB,wBAAwB,SAChD,gBAAgB,EAAE,CACnB;CAED,MAAM,aAAa,WAAW;CAC9B,MAAM,QAAQ,aAAa,SAAS;CAEpC,MAAM,UAAoB,SAAS,KAAI,SACrC,OAAO,SAAS,WACZ,OACA;EACE,OAAO,GAAG;EACV,OAAO;EACR,CACN;CAED,MAAM,YAAY,SAAkB,gBAA6B;EAC/D,MAAM,YAAY,UACd,CAAC,GAAG,OAAO,YAAY,GACvB,MAAM,QAAO,MAAK,MAAM,YAAY;AAExC,MAAI,CAAC,WACH,sBAAqB,UAAU;AAEjC,YAAU,UAAU;;AAGtB,QACE,oBAAC;EACC,WAAW,GACT,gBAAgB,aAAa,cAAc,cAC3C,UACD;YAEA,QAAQ,KAAK,SAAiB;GAC7B,MAAM,UAAU,MAAM,SAAS,KAAK,MAAM;AAE1C,UACE,oBAAC;IAEC,WAAW,GAAG,QAAQ,YAAY,QAAQ;cAE1C,oBAAC;KACY;KACX,WAAW,GAAG,YAAY,KAAK;KAC/B,OAAO,KAAK;KACH;KACT,WAAU,YAAW,SAAS,SAAS,KAAK,MAAM;eAEjD,KAAK;MACG;MAXN,OAAO,KAAK,MAAM,CAYpB;IAEP;GACC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { OptionValue, Props as Props$1 } from "./Group/index.mjs";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/atoms/Checkbox/index.d.ts
|
|
5
|
-
interface Props extends Omit<React.ComponentPropsWithoutRef<'div'>, 'onChange'> {
|
|
6
|
-
placement?: 'left' | 'right';
|
|
7
|
-
defaultChecked?: boolean;
|
|
8
|
-
checked?: boolean;
|
|
9
|
-
value?: OptionValue;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
icons?: {
|
|
12
|
-
checked: React.ReactNode;
|
|
13
|
-
unchecked: React.ReactNode;
|
|
14
|
-
};
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
onChange?: (checked: boolean) => void;
|
|
17
|
-
}
|
|
18
|
-
declare const Checkbox: {
|
|
19
|
-
({
|
|
20
|
-
placement,
|
|
21
|
-
value,
|
|
22
|
-
children,
|
|
23
|
-
className,
|
|
24
|
-
icons,
|
|
25
|
-
disabled,
|
|
26
|
-
defaultChecked,
|
|
27
|
-
checked: _checked,
|
|
28
|
-
onChange: _onChange,
|
|
29
|
-
...props
|
|
30
|
-
}: Props): react_jsx_runtime0.JSX.Element;
|
|
31
|
-
Group: ({
|
|
32
|
-
orientation,
|
|
33
|
-
placement,
|
|
34
|
-
className,
|
|
35
|
-
classNames,
|
|
36
|
-
options: _options,
|
|
37
|
-
defaultValue,
|
|
38
|
-
value: _value,
|
|
39
|
-
onChange: _onChange
|
|
40
|
-
}: Props$1) => react_jsx_runtime0.JSX.Element;
|
|
41
|
-
};
|
|
42
|
-
//#endregion
|
|
43
|
-
export { Checkbox };
|
|
44
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../src/components/atoms/Checkbox/index.tsx"],"mappings":";;;;UAciB,KAAA,SAAc,IAAA,CAC7B,KAAA,CAAM,wBAAA;EAGN,SAAA;EACA,cAAA;EACA,OAAA;EACA,KAAA,GAAQ,WAAA;EACR,QAAA;EACA,KAAA;IAAU,OAAA,EAAS,KAAA,CAAM,SAAA;IAAW,SAAA,EAAW,KAAA,CAAM,SAAA;EAAA;EACrD,QAAA,GAAW,KAAA,CAAM,SAAA;EACjB,QAAA,IAAY,OAAA;AAAA;AAAA,cAGR,QAAA;EAAA;;;;;;;;;;;KAWH,KAAA,GAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["checkbox","label"],"sources":["../../../../src/components/atoms/Checkbox/index.tsx"],"sourcesContent":["'use client';\n\nimport { useId, useState } from 'react';\n\nimport { Square, SquareCheck } from 'lucide-react';\n\nimport { checkbox, label } from '@repo/ui/core';\nimport { cn } from '@repo/ui/utils';\n\nimport Group, { type OptionValue } from './Group';\n\nconst { Checkbox: CoreCheckbox } = checkbox;\nconst { Label: CoreLabel } = label;\n\nexport interface Props extends Omit<\n React.ComponentPropsWithoutRef<'div'>,\n 'onChange'\n> {\n placement?: 'left' | 'right';\n defaultChecked?: boolean;\n checked?: boolean;\n value?: OptionValue;\n disabled?: boolean;\n icons?: { checked: React.ReactNode; unchecked: React.ReactNode };\n children?: React.ReactNode;\n onChange?: (checked: boolean) => void;\n}\n\nconst Checkbox = ({\n placement = 'left',\n value = '',\n children,\n className,\n icons,\n disabled,\n defaultChecked,\n checked: _checked,\n onChange: _onChange = () => {},\n ...props\n}: Props) => {\n const [uncontrolledChecked, setUncontrolledChecked] = useState<boolean>(\n defaultChecked || false,\n );\n\n const reactId = useId();\n\n const id = typeof value === 'boolean' || !value ? reactId : String(value);\n const controlled = _checked !== undefined;\n const checked = controlled ? _checked : uncontrolledChecked;\n\n const cursorClassName = disabled ? 'cursor-not-allowed' : 'cursor-pointer';\n\n const onChange = (next: boolean) => {\n if (disabled) {\n return;\n }\n\n if (!controlled) {\n setUncontrolledChecked(next);\n }\n _onChange(next);\n };\n\n const renderContent = icons ? (\n <>\n <input\n id={id}\n hidden\n type=\"checkbox\"\n checked={checked}\n onChange={e => {\n onChange(e.target.checked);\n }}\n />\n <span\n className={cn(cursorClassName, disabled && 'opacity-50')}\n onClick={() => {\n document.getElementById(id)?.click();\n }}\n >\n {checked\n ? (icons.checked ?? <SquareCheck />)\n : (icons.unchecked ?? <Square />)}\n </span>\n {children && (\n <label\n className={cn(cursorClassName, disabled && 'opacity-50')}\n htmlFor={id}\n >\n {children}\n </label>\n )}\n </>\n ) : (\n <>\n <CoreCheckbox\n id={id}\n checked={checked}\n disabled={disabled}\n className={cn(cursorClassName)}\n onCheckedChange={onChange}\n />\n {children && (\n <CoreLabel htmlFor={id} className={cn(cursorClassName, 'text-left')}>\n {children}\n </CoreLabel>\n )}\n </>\n );\n\n return (\n <div\n className={cn(\n 'flex items-center gap-x-2',\n placement === 'right' && 'flex-row-reverse',\n cursorClassName,\n className,\n //\n )}\n {...props}\n >\n {renderContent}\n </div>\n );\n};\n\nCheckbox.Group = Group;\n\nexport default Checkbox;\n"],"mappings":";;;;;;;;;;;;AAWA,MAAM,EAAE,UAAU,iBAAiBA;AACnC,MAAM,EAAE,OAAO,cAAcC;AAgB7B,MAAM,YAAY,EAChB,YAAY,QACZ,QAAQ,IACR,UACA,WACA,OACA,UACA,gBACA,SAAS,UACT,UAAU,kBAAkB,IAC5B,GAAG,YACQ;CACX,MAAM,CAAC,qBAAqB,0BAA0B,SACpD,kBAAkB,MACnB;CAED,MAAM,UAAU,OAAO;CAEvB,MAAM,KAAK,OAAO,UAAU,aAAa,CAAC,QAAQ,UAAU,OAAO,MAAM;CACzE,MAAM,aAAa,aAAa;CAChC,MAAM,UAAU,aAAa,WAAW;CAExC,MAAM,kBAAkB,WAAW,uBAAuB;CAE1D,MAAM,YAAY,SAAkB;AAClC,MAAI,SACF;AAGF,MAAI,CAAC,WACH,wBAAuB,KAAK;AAE9B,YAAU,KAAK;;CAGjB,MAAM,gBAAgB,QACpB;EACE,oBAAC;GACK;GACJ;GACA,MAAK;GACI;GACT,WAAU,MAAK;AACb,aAAS,EAAE,OAAO,QAAQ;;IAE5B;EACF,oBAAC;GACC,WAAW,GAAG,iBAAiB,YAAY,aAAa;GACxD,eAAe;AACb,aAAS,eAAe,GAAG,EAAE,OAAO;;aAGrC,UACI,MAAM,WAAW,oBAAC,gBAAc,GAChC,MAAM,aAAa,oBAAC,WAAS;IAC7B;EACN,YACC,oBAAC;GACC,WAAW,GAAG,iBAAiB,YAAY,aAAa;GACxD,SAAS;GAER;IACK;KAET,GAEH,8CACE,oBAAC;EACK;EACK;EACC;EACV,WAAW,GAAG,gBAAgB;EAC9B,iBAAiB;GACjB,EACD,YACC,oBAAC;EAAU,SAAS;EAAI,WAAW,GAAG,iBAAiB,YAAY;EAChE;GACS,IAEb;AAGL,QACE,oBAAC;EACC,WAAW,GACT,6BACA,cAAc,WAAW,oBACzB,iBACA,UAED;EACD,GAAI;YAEH;GACG;;AAIV,SAAS,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../src/components/atoms/ColorPicker/index.tsx"],"mappings":";;;UASU,KAAA;EACR,YAAA;EACA,KAAA;EACA,QAAA;EACA,QAAA,IAAY,KAAA;AAAA;AAAA,cAGR,WAAA;EAAe,YAAA;EAAA,KAAA,EAAA,MAAA;EAAA,QAAA;EAAA,QAAA,EAAA;AAAA,GAKlB,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/components/atoms/ColorPicker/index.tsx"],"sourcesContent":["'use client';\n\nimport { useState } from 'react';\nimport { HexColorPicker } from 'react-colorful';\n\nimport { cn } from '@repo/ui/utils';\n\nimport Popover from '../Popover';\n\ninterface Props {\n defaultValue?: string;\n value?: string;\n showText?: boolean;\n onChange?: (color: string) => void;\n}\n\nconst ColorPicker = ({\n defaultValue,\n value: _value,\n showText,\n onChange: _onChange = () => {},\n}: Props) => {\n const [uncontrolledValue, setUncontrolledValue] = useState<string>(\n defaultValue || '#fff',\n );\n\n const controlled = _value !== undefined;\n const value = controlled ? _value : uncontrolledValue;\n\n const onChange = (color: string) => {\n if (!controlled) {\n setUncontrolledValue(color);\n }\n _onChange(color);\n };\n\n return (\n <Popover\n placement=\"bottomLeft\"\n content={<HexColorPicker color={value} onChange={onChange} />}\n >\n <div\n className={cn(\n 'inline-flex items-center',\n 'rounded border p-0.5',\n //\n )}\n >\n <div\n className={cn(\n 'size-6 cursor-pointer rounded border',\n 'shadow-sm',\n //\n )}\n style={{ backgroundColor: value }}\n />\n {showText && (\n <span className=\"px-1 font-mono text-sm font-medium\">\n {value.toUpperCase()}\n </span>\n )}\n </div>\n </Popover>\n );\n};\n\nexport default ColorPicker;\n"],"mappings":";;;;;;;;;AAgBA,MAAM,eAAe,EACnB,cACA,OAAO,QACP,UACA,UAAU,kBAAkB,SACjB;CACX,MAAM,CAAC,mBAAmB,wBAAwB,SAChD,gBAAgB,OACjB;CAED,MAAM,aAAa,WAAW;CAC9B,MAAM,QAAQ,aAAa,SAAS;CAEpC,MAAM,YAAY,UAAkB;AAClC,MAAI,CAAC,WACH,sBAAqB,MAAM;AAE7B,YAAU,MAAM;;AAGlB,QACE,oBAAC;EACC,WAAU;EACV,SAAS,oBAAC;GAAe,OAAO;GAAiB;IAAY;YAE7D,qBAAC;GACC,WAAW,GACT,4BACA,uBAED;cAED,oBAAC;IACC,WAAW,GACT,wCACA,YAED;IACD,OAAO,EAAE,iBAAiB,OAAO;KACjC,EACD,YACC,oBAAC;IAAK,WAAU;cACb,MAAM,aAAa;KACf;IAEL;GACE"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Props as Props$1 } from "../../../../Button.mjs";
|
|
2
|
-
import { MouseEvent } from "react";
|
|
3
|
-
import "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/atoms/FloatButton/BackTop/index.d.ts
|
|
6
|
-
interface Props extends Props$1 {
|
|
7
|
-
visibilityHeight?: number;
|
|
8
|
-
onClick?: (e: MouseEvent<HTMLElement>) => void;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { Props };
|
|
12
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../../src/components/atoms/FloatButton/BackTop/index.tsx"],"mappings":";;;;;UAUiB,KAAA,SAAc,OAAA;EAC7B,gBAAA;EACA,OAAA,IAAW,CAAA,EAAG,UAAA,CAAW,WAAA;AAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/components/atoms/FloatButton/BackTop/index.tsx"],"sourcesContent":["import { MouseEvent } from 'react';\n\nimport { useWindowScroll } from '@uidotdev/usehooks';\nimport { ArrowUp } from 'lucide-react';\n\nimport { cn } from '@repo/ui/utils';\n\nimport FloatButton from '..';\nimport { type Props as ButtonProps } from '../../Button';\n\nexport interface Props extends ButtonProps {\n visibilityHeight?: number;\n onClick?: (e: MouseEvent<HTMLElement>) => void;\n}\n\nconst BackTop = ({\n visibilityHeight = 450,\n className,\n onClick,\n ...props\n}: Props) => {\n const [{ y }, scrollTo] = useWindowScroll();\n\n return (\n <FloatButton\n icon={<ArrowUp />}\n className={cn(\n className,\n (!y || visibilityHeight > y) && 'hidden',\n //\n )}\n onClick={e => {\n scrollTo({ left: 0, top: 0, behavior: 'smooth' });\n onClick?.(e);\n }}\n {...props}\n />\n );\n};\n\nexport default BackTop;\n"],"mappings":";;;;;;;AAeA,MAAM,WAAW,EACf,mBAAmB,KACnB,WACA,SACA,GAAG,YACQ;CACX,MAAM,CAAC,EAAE,KAAK,YAAY,iBAAiB;AAE3C,QACE,oBAAC;EACC,MAAM,oBAAC,YAAU;EACjB,WAAW,GACT,YACC,CAAC,KAAK,mBAAmB,MAAM,SAEjC;EACD,UAAS,MAAK;AACZ,YAAS;IAAE,MAAM;IAAG,KAAK;IAAG,UAAU;IAAU,CAAC;AACjD,aAAU,EAAE;;EAEd,GAAI;GACJ"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Props as Props$1 } from "../../../Button.mjs";
|
|
2
|
-
import { Props as Props$2 } from "./BackTop/index.mjs";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/atoms/FloatButton/index.d.ts
|
|
6
|
-
interface Props extends Props$1 {}
|
|
7
|
-
declare const FloatButton: {
|
|
8
|
-
({
|
|
9
|
-
className,
|
|
10
|
-
children,
|
|
11
|
-
...props
|
|
12
|
-
}: Props): react_jsx_runtime0.JSX.Element;
|
|
13
|
-
BackTop: ({
|
|
14
|
-
visibilityHeight,
|
|
15
|
-
className,
|
|
16
|
-
onClick,
|
|
17
|
-
...props
|
|
18
|
-
}: Props$2) => react_jsx_runtime0.JSX.Element;
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
export { FloatButton };
|
|
22
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../src/components/atoms/FloatButton/index.tsx"],"mappings":";;;;;UAKiB,KAAA,SAAc,OAAA;AAAA,cAEzB,WAAA;EAAA;;;;KAAkD,KAAA,GAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/components/atoms/FloatButton/index.tsx"],"sourcesContent":["import { cn } from '@repo/ui/utils';\n\nimport Button, { Props as ButtonProps } from '../Button';\nimport BackTop from './BackTop';\n\nexport interface Props extends ButtonProps {}\n\nconst FloatButton = ({ className, children, ...props }: Props) => {\n return (\n <Button\n className={cn(\n 'fixed right-5 bottom-5 rounded-full',\n 'bg-white hover:bg-white',\n 'z-50 h-12 w-12',\n 'shadow-md',\n className,\n )}\n variant=\"outlined\"\n {...props}\n >\n {children}\n </Button>\n );\n};\n\nFloatButton.BackTop = BackTop;\n\nexport default FloatButton;\n"],"mappings":";;;;;;AAOA,MAAM,eAAe,EAAE,WAAW,UAAU,GAAG,YAAmB;AAChE,QACE,oBAAC;EACC,WAAW,GACT,uCACA,2BACA,kBACA,aACA,UACD;EACD,SAAQ;EACR,GAAI;EAEH;GACM;;AAIb,YAAY,UAAU"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
//#region src/components/atoms/Input/Search/index.d.ts
|
|
4
|
-
interface Props extends React.ComponentPropsWithRef<'input'> {
|
|
5
|
-
allowClear?: boolean;
|
|
6
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement> | {
|
|
7
|
-
target: {
|
|
8
|
-
value: string;
|
|
9
|
-
};
|
|
10
|
-
}) => void;
|
|
11
|
-
onSearch?: (value: string) => void;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { Props };
|
|
15
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../../src/components/atoms/Input/Search/index.tsx"],"mappings":";;;UAaiB,KAAA,SAAc,KAAA,CAAM,qBAAA;EACnC,UAAA;EACA,QAAA,IACE,CAAA,EAAG,KAAA,CAAM,WAAA,CAAY,gBAAA;IAAsB,MAAA;MAAU,KAAA;IAAA;EAAA;EAEvD,QAAA,IAAY,KAAA;AAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["input","Search","SearchOutlined"],"sources":["../../../../../src/components/atoms/Input/Search/index.tsx"],"sourcesContent":["'use client';\n\nimport { useRef } from 'react';\n\nimport { CircleX, Search as SearchOutlined } from 'lucide-react';\n\nimport { input } from '@repo/ui/core';\nimport { cn } from '@repo/ui/utils';\n\nimport Button from '../../Button';\n\nconst { Input: Core } = input;\n\nexport interface Props extends React.ComponentPropsWithRef<'input'> {\n allowClear?: boolean;\n onChange?: (\n e: React.ChangeEvent<HTMLInputElement> | { target: { value: string } },\n ) => void;\n onSearch?: (value: string) => void;\n}\n\nconst Search = ({\n ref,\n className,\n defaultValue,\n value,\n allowClear = true,\n onChange,\n onSearch: _onSearch,\n ...props\n}: Props) => {\n const internalRef = useRef<HTMLInputElement>(null);\n const inputRef = (ref as React.RefObject<HTMLInputElement>) || internalRef;\n\n const onClear = () => {\n if (inputRef.current) {\n inputRef.current.value = '';\n\n const event = {\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>;\n onChange?.(event);\n }\n };\n\n const onSearch = () => {\n if (inputRef.current) {\n _onSearch?.(inputRef.current.value);\n }\n };\n\n return (\n <div\n className={cn(\n 'flex items-center',\n 'rounded-md',\n className,\n //\n )}\n >\n <div\n className={cn(\n 'relative grow',\n 'inline-flex items-center',\n //\n )}\n >\n <Core\n ref={inputRef}\n inputMode=\"search\"\n type=\"search\"\n enterKeyHint=\"search\"\n className={cn(\n 'rounded-r-none',\n '[&::-webkit-search-cancel-button]:hidden',\n '[&::-webkit-search-decoration]:hidden',\n //\n )}\n value={value}\n defaultValue={defaultValue}\n onChange={onChange}\n onKeyDown={e => {\n if (e.key === 'Enter') {\n onSearch();\n }\n }}\n {...props}\n />\n <CircleX\n className={cn(\n 'absolute right-2 size-4',\n 'shrink-0 cursor-pointer',\n (!allowClear || (value !== undefined && !value)) && 'hidden',\n )}\n onClick={onClear}\n />\n </div>\n <Button\n icon={<SearchOutlined />}\n className={cn(\n 'rounded-l-none',\n 'size-9',\n //\n )}\n onClick={onSearch}\n />\n </div>\n );\n};\n\nSearch.displayName = 'Search';\n\nexport default Search;\n"],"mappings":";;;;;;;;;;;AAWA,MAAM,EAAE,OAAO,SAASA;AAUxB,MAAMC,YAAU,EACd,KACA,WACA,cACA,OACA,aAAa,MACb,UACA,UAAU,WACV,GAAG,YACQ;CACX,MAAM,cAAc,OAAyB,KAAK;CAClD,MAAM,WAAY,OAA6C;CAE/D,MAAM,gBAAgB;AACpB,MAAI,SAAS,SAAS;AACpB,YAAS,QAAQ,QAAQ;AAKzB,cAHc,EACZ,QAAQ,EAAE,OAAO,IAAI,EACtB,CACgB;;;CAIrB,MAAM,iBAAiB;AACrB,MAAI,SAAS,QACX,aAAY,SAAS,QAAQ,MAAM;;AAIvC,QACE,qBAAC;EACC,WAAW,GACT,qBACA,cACA,UAED;aAED,qBAAC;GACC,WAAW,GACT,iBACA,2BAED;cAED,oBAAC;IACC,KAAK;IACL,WAAU;IACV,MAAK;IACL,cAAa;IACb,WAAW,GACT,kBACA,4CACA,wCAED;IACM;IACO;IACJ;IACV,YAAW,MAAK;AACd,SAAI,EAAE,QAAQ,QACZ,WAAU;;IAGd,GAAI;KACJ,EACF,oBAAC;IACC,WAAW,GACT,2BACA,4BACC,CAAC,cAAe,UAAU,UAAa,CAAC,UAAW,SACrD;IACD,SAAS;KACT;IACE,EACN,oBAAC;GACC,MAAM,oBAACC,WAAiB;GACxB,WAAW,GACT,kBACA,SAED;GACD,SAAS;IACT;GACE;;AAIV,SAAO,cAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["textarea"],"sources":["../../../../../src/components/atoms/Input/TextArea/index.tsx"],"sourcesContent":["import { textarea } from '@repo/ui/core';\nimport { cn } from '@repo/ui/utils';\n\nconst { Textarea: Core } = textarea;\n\nconst TextArea = ({\n className,\n ref,\n ...props\n}: React.ComponentPropsWithRef<'textarea'>) => {\n return (\n <Core\n ref={ref}\n className={cn(\n className,\n //\n )}\n {...props}\n />\n );\n};\n\nexport default TextArea;\n"],"mappings":";;;;;;AAGA,MAAM,EAAE,UAAU,SAASA;AAE3B,MAAM,YAAY,EAChB,WACA,KACA,GAAG,YAC0C;AAC7C,QACE,oBAAC;EACM;EACL,WAAW,GACT,UAED;EACD,GAAI;GACJ"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Props } from "./Search/index.mjs";
|
|
2
|
-
import "./TextArea/index.mjs";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/atoms/Input/index.d.ts
|
|
6
|
-
declare const Input: {
|
|
7
|
-
({
|
|
8
|
-
...props
|
|
9
|
-
}: React.ComponentPropsWithoutRef<"input">): react_jsx_runtime0.JSX.Element;
|
|
10
|
-
Search: {
|
|
11
|
-
({
|
|
12
|
-
ref,
|
|
13
|
-
className,
|
|
14
|
-
defaultValue,
|
|
15
|
-
value,
|
|
16
|
-
allowClear,
|
|
17
|
-
onChange,
|
|
18
|
-
onSearch: _onSearch,
|
|
19
|
-
...props
|
|
20
|
-
}: Props): react_jsx_runtime0.JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
23
|
-
TextArea: ({
|
|
24
|
-
className,
|
|
25
|
-
ref,
|
|
26
|
-
...props
|
|
27
|
-
}: React.ComponentPropsWithRef<"textarea">) => react_jsx_runtime0.JSX.Element;
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
30
|
-
export { Input };
|
|
31
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../src/components/atoms/Input/index.tsx"],"mappings":";;;;;cAOM,KAAA;EAAA;IAAA;KAAuB,KAAA,CAAM,wBAAA,YAAiC,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["input"],"sources":["../../../../src/components/atoms/Input/index.tsx"],"sourcesContent":["import { input } from '@repo/ui/core';\n\nimport Search from './Search';\nimport TextArea from './TextArea';\n\nconst { Input: Core } = input;\n\nconst Input = ({ ...props }: React.ComponentPropsWithoutRef<'input'>) => {\n return <Core {...props} />;\n};\n\nInput.Search = Search;\nInput.TextArea = TextArea;\n\nexport { Search, TextArea };\n\nexport default Input;\n"],"mappings":";;;;;;;AAKA,MAAM,EAAE,OAAO,SAASA;AAExB,MAAM,SAAS,EAAE,GAAG,YAAqD;AACvE,QAAO,oBAAC,QAAK,GAAI,QAAS;;AAG5B,MAAM,SAAS;AACf,MAAM,WAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../src/components/atoms/Popover/index.tsx"],"mappings":";;;KAOK,SAAA;AAAA,UAcK,KAAA,SAAc,IAAA,CACtB,KAAA,CAAM,wBAAA;EAGN,KAAA,GAAQ,KAAA,CAAM,SAAA;EACd,SAAA,GAAY,SAAA;EACZ,OAAA,EAAS,KAAA,CAAM,SAAA;AAAA;AAAA,cAkNX,OAAA;EAAW,KAAA;EAAA,SAAA;EAAA,SAAA;EAAA,OAAA;EAAA;AAAA,GAMd,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["popover"],"sources":["../../../../src/components/atoms/Popover/index.tsx"],"sourcesContent":["import { popover } from '@repo/ui/core';\nimport { cn, renderConditional } from '@repo/ui/utils';\n\nimport Typography from '../Typography';\n\nconst { Popover: CorePopover, PopoverContent, PopoverTrigger } = popover;\n\ntype Placement =\n | 'top'\n | 'left'\n | 'right'\n | 'bottom'\n | 'topLeft'\n | 'topRight'\n | 'bottomLeft'\n | 'bottomRight'\n | 'leftTop'\n | 'leftBottom'\n | 'rightTop'\n | 'rightBottom';\n\ninterface Props extends Omit<\n React.ComponentPropsWithoutRef<'div'>,\n 'title' | 'content'\n> {\n title?: React.ReactNode;\n placement?: Placement;\n content: React.ReactNode;\n}\n\nconst placementMap = {\n top: {\n side: 'top',\n align: 'center',\n },\n left: {\n side: 'left',\n align: 'center',\n },\n right: {\n side: 'right',\n align: 'center',\n },\n bottom: {\n side: 'bottom',\n align: 'center',\n },\n topLeft: {\n side: 'top',\n align: 'start',\n },\n topRight: {\n side: 'top',\n align: 'end',\n },\n bottomLeft: {\n side: 'bottom',\n align: 'start',\n },\n bottomRight: {\n side: 'bottom',\n align: 'end',\n },\n leftTop: {\n side: 'left',\n align: 'start',\n },\n leftBottom: {\n side: 'left',\n align: 'end',\n },\n rightTop: {\n side: 'right',\n align: 'start',\n },\n rightBottom: {\n side: 'right',\n align: 'end',\n },\n} as const;\n\nconst beforeBase = 'before:content-[\"\"] before:absolute before:h-0 before:w-0';\nconst afterBase = 'after:content-[\"\"] after:absolute after:h-0 after:w-0';\n\nconst vBorderShape =\n 'before:border-l-[9px] before:border-r-[9px] before:border-l-transparent before:border-r-transparent';\nconst hBorderShape =\n 'before:border-t-[9px] before:border-b-[9px] before:border-t-transparent before:border-b-transparent';\nconst vFillShape =\n 'after:border-l-8 after:border-r-8 after:border-l-transparent after:border-r-transparent';\nconst hFillShape =\n 'after:border-t-8 after:border-b-8 after:border-t-transparent after:border-b-transparent';\n\nconst topBorder = 'before:border-t-[9px] before:border-t-border';\nconst bottomBorder = 'before:border-b-[9px] before:border-b-border';\nconst leftBorder = 'before:border-l-[9px] before:border-l-border';\nconst rightBorder = 'before:border-r-[9px] before:border-r-border';\nconst topFill = 'after:border-t-8 after:border-t-popover';\nconst bottomFill = 'after:border-b-8 after:border-b-popover';\nconst leftFill = 'after:border-l-8 after:border-l-popover';\nconst rightFill = 'after:border-r-8 after:border-r-popover';\n\nconst arrowStyles: Record<Placement, string> = {\n top: [\n 'absolute left-1/2 -translate-x-1/2 top-full',\n beforeBase,\n 'before:top-0 before:left-1/2 before:-translate-x-1/2',\n vBorderShape,\n topBorder,\n afterBase,\n 'after:-top-px after:left-1/2 after:-translate-x-1/2',\n vFillShape,\n topFill,\n ].join(' '),\n topLeft: [\n 'absolute left-4 top-full',\n beforeBase,\n 'before:top-0 before:left-0',\n vBorderShape,\n topBorder,\n afterBase,\n 'after:-top-px after:left-px',\n vFillShape,\n topFill,\n ].join(' '),\n topRight: [\n 'absolute right-4 top-full',\n beforeBase,\n 'before:top-0 before:right-0',\n vBorderShape,\n topBorder,\n afterBase,\n 'after:-top-px after:right-px',\n vFillShape,\n topFill,\n ].join(' '),\n bottom: [\n 'absolute left-1/2 -translate-x-1/2 bottom-full',\n beforeBase,\n 'before:bottom-0 before:left-1/2 before:-translate-x-1/2',\n vBorderShape,\n bottomBorder,\n afterBase,\n 'after:-bottom-px after:left-1/2 after:-translate-x-1/2',\n vFillShape,\n bottomFill,\n ].join(' '),\n bottomLeft: [\n 'absolute left-4 bottom-full',\n beforeBase,\n 'before:bottom-0 before:left-0',\n vBorderShape,\n bottomBorder,\n afterBase,\n 'after:-bottom-px after:left-px',\n vFillShape,\n bottomFill,\n ].join(' '),\n bottomRight: [\n 'absolute right-4 bottom-full',\n beforeBase,\n 'before:bottom-0 before:right-0',\n vBorderShape,\n bottomBorder,\n afterBase,\n 'after:-bottom-px after:right-px',\n vFillShape,\n bottomFill,\n ].join(' '),\n left: [\n 'absolute top-1/2 -translate-y-1/2 left-full',\n beforeBase,\n 'before:left-0 before:top-1/2 before:-translate-y-1/2',\n hBorderShape,\n leftBorder,\n afterBase,\n 'after:-left-px after:top-1/2 after:-translate-y-1/2',\n hFillShape,\n leftFill,\n ].join(' '),\n leftTop: [\n 'absolute top-4 left-full',\n beforeBase,\n 'before:left-0 before:top-0',\n hBorderShape,\n leftBorder,\n afterBase,\n 'after:-left-px after:top-px',\n hFillShape,\n leftFill,\n ].join(' '),\n leftBottom: [\n 'absolute bottom-4 left-full',\n beforeBase,\n 'before:left-0 before:bottom-0',\n hBorderShape,\n leftBorder,\n afterBase,\n 'after:-left-px after:bottom-px',\n hFillShape,\n leftFill,\n ].join(' '),\n right: [\n 'absolute top-1/2 -translate-y-1/2 right-full',\n beforeBase,\n 'before:right-0 before:top-1/2 before:-translate-y-1/2',\n hBorderShape,\n rightBorder,\n afterBase,\n 'after:-right-px after:top-1/2 after:-translate-y-1/2',\n hFillShape,\n rightFill,\n ].join(' '),\n rightTop: [\n 'absolute top-4 right-full',\n beforeBase,\n 'before:right-0 before:top-0',\n hBorderShape,\n rightBorder,\n afterBase,\n 'after:-right-px after:top-px',\n hFillShape,\n rightFill,\n ].join(' '),\n rightBottom: [\n 'absolute bottom-4 right-full',\n beforeBase,\n 'before:right-0 before:bottom-0',\n hBorderShape,\n rightBorder,\n afterBase,\n 'after:-right-px after:bottom-px',\n hFillShape,\n rightFill,\n ].join(' '),\n};\n\nconst Popover = ({\n title,\n placement = 'top',\n className,\n content,\n children,\n}: Props) => {\n return (\n <CorePopover>\n <PopoverTrigger asChild>{children}</PopoverTrigger>\n <PopoverContent\n align={placementMap[placement].align}\n side={placementMap[placement].side}\n sideOffset={16}\n className={cn('relative w-auto', className)}\n >\n {renderConditional(title, v => (\n <Typography.Title level={6}>{v}</Typography.Title>\n ))}\n {content}\n <div className={cn(arrowStyles[placement])} />\n </PopoverContent>\n </CorePopover>\n );\n};\n\nexport default Popover;\n"],"mappings":";;;;;;;AAKA,MAAM,EAAE,SAAS,aAAa,gBAAgB,mBAAmBA;AAyBjE,MAAM,eAAe;CACnB,KAAK;EACH,MAAM;EACN,OAAO;EACR;CACD,MAAM;EACJ,MAAM;EACN,OAAO;EACR;CACD,OAAO;EACL,MAAM;EACN,OAAO;EACR;CACD,QAAQ;EACN,MAAM;EACN,OAAO;EACR;CACD,SAAS;EACP,MAAM;EACN,OAAO;EACR;CACD,UAAU;EACR,MAAM;EACN,OAAO;EACR;CACD,YAAY;EACV,MAAM;EACN,OAAO;EACR;CACD,aAAa;EACX,MAAM;EACN,OAAO;EACR;CACD,SAAS;EACP,MAAM;EACN,OAAO;EACR;CACD,YAAY;EACV,MAAM;EACN,OAAO;EACR;CACD,UAAU;EACR,MAAM;EACN,OAAO;EACR;CACD,aAAa;EACX,MAAM;EACN,OAAO;EACR;CACF;AAED,MAAM,aAAa;AACnB,MAAM,YAAY;AAElB,MAAM,eACJ;AACF,MAAM,eACJ;AACF,MAAM,aACJ;AACF,MAAM,aACJ;AAEF,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,aAAa;AACnB,MAAM,cAAc;AACpB,MAAM,UAAU;AAChB,MAAM,aAAa;AACnB,MAAM,WAAW;AACjB,MAAM,YAAY;AAElB,MAAM,cAAyC;CAC7C,KAAK;EACH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACX,SAAS;EACP;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACX,UAAU;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACX,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACX,YAAY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACX,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACX,MAAM;EACJ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACX,SAAS;EACP;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACX,YAAY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACX,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACX,UAAU;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACX,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC,KAAK,IAAI;CACZ;AAED,MAAM,WAAW,EACf,OACA,YAAY,OACZ,WACA,SACA,eACW;AACX,QACE,qBAAC,0BACC,oBAAC;EAAe;EAAS;GAA0B,EACnD,qBAAC;EACC,OAAO,aAAa,WAAW;EAC/B,MAAM,aAAa,WAAW;EAC9B,YAAY;EACZ,WAAW,GAAG,mBAAmB,UAAU;;GAE1C,kBAAkB,QAAO,MACxB,oBAAC,WAAW;IAAM,OAAO;cAAI;KAAqB,CAClD;GACD;GACD,oBAAC,SAAI,WAAW,GAAG,YAAY,WAAW,GAAI;;GAC/B,IACL"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../src/components/atoms/Progress/index.tsx"],"mappings":";;;UAKiB,KAAA,SAAc,KAAA,CAAM,wBAAA;EACnC,KAAA;EACA,SAAA;EACA,UAAA;IACE,UAAA;IACA,GAAA;EAAA;AAAA;AAAA,cAIE,QAAA;EAAY,KAAA;EAAA,SAAA;EAAA,SAAA;EAAA;AAAA,GAMf,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["progress"],"sources":["../../../../src/components/atoms/Progress/index.tsx"],"sourcesContent":["import { progress } from '@repo/ui/core';\nimport { cn } from '@repo/ui/utils';\n\nconst { Progress: Core } = progress;\n\nexport interface Props extends React.ComponentPropsWithoutRef<'div'> {\n value: number;\n direction?: 'horizontal' | 'vertical';\n classNames?: {\n background?: string;\n bar?: string;\n };\n}\n\nconst Progress = ({\n value,\n className,\n direction = 'horizontal',\n classNames,\n //\n}: Props) => {\n const isHorizontal = direction === 'horizontal';\n const dimension = isHorizontal ? 'width' : 'height';\n const normalizedValue = Number.isFinite(value)\n ? Math.min(100, Math.max(0, value))\n : 0;\n\n return (\n <Core\n value={normalizedValue}\n className={cn(\n isHorizontal ? 'h-4 w-full' : 'flex h-full w-4 flex-col justify-end',\n className,\n classNames?.background,\n //\n )}\n barClassName={cn('flex-none', classNames?.bar)}\n barStyle={{\n transform: 'none',\n [dimension]: `${normalizedValue}%`,\n //\n }}\n />\n );\n};\n\nexport default Progress;\n"],"mappings":";;;;;;AAGA,MAAM,EAAE,UAAU,SAASA;AAW3B,MAAM,YAAY,EAChB,OACA,WACA,YAAY,cACZ,iBAEW;CACX,MAAM,eAAe,cAAc;CACnC,MAAM,YAAY,eAAe,UAAU;CAC3C,MAAM,kBAAkB,OAAO,SAAS,MAAM,GAC1C,KAAK,IAAI,KAAK,KAAK,IAAI,GAAG,MAAM,CAAC,GACjC;AAEJ,QACE,oBAAC;EACC,OAAO;EACP,WAAW,GACT,eAAe,eAAe,wCAC9B,WACA,YAAY,WAEb;EACD,cAAc,GAAG,aAAa,YAAY,IAAI;EAC9C,UAAU;GACR,WAAW;IACV,YAAY,GAAG,gBAAgB;GAEjC;GACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../../src/components/atoms/Radio/Group/index.tsx"],"mappings":";;;KAOY,WAAA;AAAA,KAEP,MAAA;EACH,KAAA;EACA,KAAA,EAAO,WAAA;EACP,QAAA;AAAA;AAAA,KAGG,OAAA,qCAA4C,MAAA;AAAA,UAEhC,KAAA,SAAc,IAAA,CAC7B,KAAA,CAAM,wBAAA;EAGN,OAAA,GAAU,OAAA;EACV,WAAA;EACA,SAAA;EACA,UAAA,GAAa,MAAA;EACb,YAAA,GAAe,WAAA;EACf,KAAA,GAAQ,WAAA;EACR,UAAA;EACA,WAAA;EACA,IAAA;EACA,QAAA;EACA,QAAA,IAAY,KAAA,EAAO,WAAA;AAAA"}
|