@dododog/ui 0.1.0
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.md +126 -0
- package/dist/chunk-2AB5ZHY5.mjs +32 -0
- package/dist/chunk-2ASKBL63.mjs +80 -0
- package/dist/chunk-2MJTZ6RR.mjs +43 -0
- package/dist/chunk-2POGTS27.mjs +40 -0
- package/dist/chunk-333YD5QI.mjs +192 -0
- package/dist/chunk-36Y7UU32.mjs +34 -0
- package/dist/chunk-3BPC4LNH.js +75 -0
- package/dist/chunk-3R7PT3JG.js +215 -0
- package/dist/chunk-3VU6TPAT.js +102 -0
- package/dist/chunk-4U5MNA3B.mjs +101 -0
- package/dist/chunk-5257MWFI.mjs +93 -0
- package/dist/chunk-6ASRTUXO.js +107 -0
- package/dist/chunk-6EG6EAHW.js +108 -0
- package/dist/chunk-74B2EGKT.mjs +99 -0
- package/dist/chunk-762LQMWP.js +73 -0
- package/dist/chunk-76DZXGKJ.mjs +58 -0
- package/dist/chunk-77WKG2D7.js +80 -0
- package/dist/chunk-7IJOHVNJ.js +88 -0
- package/dist/chunk-7LJS5LNR.js +365 -0
- package/dist/chunk-7W3TFPIF.js +111 -0
- package/dist/chunk-ADIDI7AJ.js +11 -0
- package/dist/chunk-B47HQHX3.mjs +187 -0
- package/dist/chunk-BQWVWK74.mjs +125 -0
- package/dist/chunk-BUXVK2HE.mjs +79 -0
- package/dist/chunk-C4RZBOKH.js +138 -0
- package/dist/chunk-CNWUOKCY.mjs +342 -0
- package/dist/chunk-DFXXGKMI.js +90 -0
- package/dist/chunk-DGEXT7PN.mjs +85 -0
- package/dist/chunk-DLOHAW74.js +101 -0
- package/dist/chunk-DMCMWOBJ.mjs +81 -0
- package/dist/chunk-DS4LM7OS.js +66 -0
- package/dist/chunk-DTIYZ3TQ.js +54 -0
- package/dist/chunk-E4B6LXK7.mjs +45 -0
- package/dist/chunk-E6ZNND75.js +65 -0
- package/dist/chunk-EEIPCJQ2.mjs +72 -0
- package/dist/chunk-EJ7LDW7E.mjs +212 -0
- package/dist/chunk-ERL3WXNY.mjs +114 -0
- package/dist/chunk-EUEM2D5M.mjs +117 -0
- package/dist/chunk-EY4ZIR3P.js +62 -0
- package/dist/chunk-F2BUMJYW.mjs +64 -0
- package/dist/chunk-FZ7UNXSC.mjs +67 -0
- package/dist/chunk-GBWVIY3C.mjs +139 -0
- package/dist/chunk-GRG4USTC.mjs +57 -0
- package/dist/chunk-GXKON34B.js +86 -0
- package/dist/chunk-H3JNRTAI.js +116 -0
- package/dist/chunk-HN6B4TAW.js +139 -0
- package/dist/chunk-HS3MAW3G.js +123 -0
- package/dist/chunk-I4S3R6C6.js +105 -0
- package/dist/chunk-I4WCNTNP.mjs +49 -0
- package/dist/chunk-IEHX4DU6.js +49 -0
- package/dist/chunk-IJIUUBFT.js +94 -0
- package/dist/chunk-IMKLN273.mjs +9 -0
- package/dist/chunk-IRKM5UF4.js +137 -0
- package/dist/chunk-JP5ZR2HI.mjs +64 -0
- package/dist/chunk-KOO5ZXLD.js +234 -0
- package/dist/chunk-KQK7LFWM.mjs +101 -0
- package/dist/chunk-KVVXKSMQ.mjs +118 -0
- package/dist/chunk-KZSGVMUG.js +169 -0
- package/dist/chunk-L7OYR6U3.js +75 -0
- package/dist/chunk-LFIZX2S6.mjs +85 -0
- package/dist/chunk-MCF3EQTV.js +135 -0
- package/dist/chunk-MKOKWME3.js +76 -0
- package/dist/chunk-MPL35D5G.mjs +44 -0
- package/dist/chunk-MY6BYO5F.js +41 -0
- package/dist/chunk-N2Q4Z2FU.js +97 -0
- package/dist/chunk-N3JU7JS7.js +86 -0
- package/dist/chunk-NBDPT3XQ.js +121 -0
- package/dist/chunk-NCSFXSOZ.mjs +69 -0
- package/dist/chunk-NCU5PY34.js +90 -0
- package/dist/chunk-NHB2TI2B.js +210 -0
- package/dist/chunk-NZ7GF6RF.mjs +113 -0
- package/dist/chunk-O2W7NR33.mjs +43 -0
- package/dist/chunk-OCUHCDAQ.mjs +27 -0
- package/dist/chunk-ODUY7NXD.js +256 -0
- package/dist/chunk-OK3E73OK.js +126 -0
- package/dist/chunk-OOPP4ES2.mjs +80 -0
- package/dist/chunk-P7GAKOCX.js +102 -0
- package/dist/chunk-PAHSQMXV.mjs +65 -0
- package/dist/chunk-PG4I4NWO.js +103 -0
- package/dist/chunk-PND5YKFN.js +68 -0
- package/dist/chunk-PPDKQ3FF.mjs +115 -0
- package/dist/chunk-PXHZ4CXG.mjs +234 -0
- package/dist/chunk-Q7BKR6O7.mjs +84 -0
- package/dist/chunk-QU6ZRLKO.mjs +54 -0
- package/dist/chunk-QWDKSY6Y.js +56 -0
- package/dist/chunk-R4DC7XPP.mjs +147 -0
- package/dist/chunk-RJWHPHHX.mjs +39 -0
- package/dist/chunk-S5TLUDNM.js +95 -0
- package/dist/chunk-SCGN5H6D.js +112 -0
- package/dist/chunk-SGDC4IVX.mjs +120 -0
- package/dist/chunk-SZ3SV4SJ.mjs +116 -0
- package/dist/chunk-T5FLQQP6.js +106 -0
- package/dist/chunk-TDGU5Y2P.js +136 -0
- package/dist/chunk-TE4WHZ4Q.js +88 -0
- package/dist/chunk-TNGW36OC.mjs +53 -0
- package/dist/chunk-TNWMTKNR.mjs +75 -0
- package/dist/chunk-TT7L3ZU7.js +65 -0
- package/dist/chunk-TZHT7NZU.js +142 -0
- package/dist/chunk-U3XWNFHH.js +161 -0
- package/dist/chunk-UGYMWWKT.mjs +79 -0
- package/dist/chunk-UKCH6RYL.mjs +93 -0
- package/dist/chunk-UQRQZLMQ.mjs +46 -0
- package/dist/chunk-UYDZKAGZ.mjs +48 -0
- package/dist/chunk-V5J2XLPD.mjs +90 -0
- package/dist/chunk-VOZPGXQD.mjs +51 -0
- package/dist/chunk-VQVRKRSM.mjs +89 -0
- package/dist/chunk-VTELEOT7.js +100 -0
- package/dist/chunk-VWFY24XF.js +89 -0
- package/dist/chunk-W7DZZS6L.js +70 -0
- package/dist/chunk-WBRVUWGC.js +147 -0
- package/dist/chunk-WOG6V7OW.mjs +65 -0
- package/dist/chunk-WVEJS2J2.mjs +66 -0
- package/dist/chunk-XHRDPJTF.js +92 -0
- package/dist/chunk-XQVODPHL.mjs +90 -0
- package/dist/chunk-XXC2YD3D.js +67 -0
- package/dist/chunk-XZU2SISM.mjs +38 -0
- package/dist/chunk-YN4HPIRC.js +72 -0
- package/dist/chunk-YSJAEDMG.js +80 -0
- package/dist/chunk-YVTUUNAX.mjs +77 -0
- package/dist/chunk-YZTVHCLK.js +124 -0
- package/dist/chunk-Z5S7LHMY.js +61 -0
- package/dist/chunk-ZAUYE2EI.js +118 -0
- package/dist/chunk-ZLF7IL3Y.mjs +67 -0
- package/dist/chunk-ZZ4EWC53.mjs +52 -0
- package/dist/components/Accordion/index.d.mts +24 -0
- package/dist/components/Accordion/index.d.ts +24 -0
- package/dist/components/Accordion/index.js +11 -0
- package/dist/components/Accordion/index.mjs +2 -0
- package/dist/components/Alert/index.d.mts +40 -0
- package/dist/components/Alert/index.d.ts +40 -0
- package/dist/components/Alert/index.js +11 -0
- package/dist/components/Alert/index.mjs +2 -0
- package/dist/components/Autocomplete/index.d.mts +27 -0
- package/dist/components/Autocomplete/index.d.ts +27 -0
- package/dist/components/Autocomplete/index.js +15 -0
- package/dist/components/Autocomplete/index.mjs +2 -0
- package/dist/components/Avatar/index.d.mts +13 -0
- package/dist/components/Avatar/index.d.ts +13 -0
- package/dist/components/Avatar/index.js +11 -0
- package/dist/components/Avatar/index.mjs +2 -0
- package/dist/components/Badge/index.d.mts +13 -0
- package/dist/components/Badge/index.d.ts +13 -0
- package/dist/components/Badge/index.js +15 -0
- package/dist/components/Badge/index.mjs +2 -0
- package/dist/components/Banner/index.d.mts +19 -0
- package/dist/components/Banner/index.d.ts +19 -0
- package/dist/components/Banner/index.js +15 -0
- package/dist/components/Banner/index.mjs +2 -0
- package/dist/components/BottomNavBar/index.d.mts +17 -0
- package/dist/components/BottomNavBar/index.d.ts +17 -0
- package/dist/components/BottomNavBar/index.js +11 -0
- package/dist/components/BottomNavBar/index.mjs +2 -0
- package/dist/components/Breadcrumb/index.d.mts +23 -0
- package/dist/components/Breadcrumb/index.d.ts +23 -0
- package/dist/components/Breadcrumb/index.js +15 -0
- package/dist/components/Breadcrumb/index.mjs +2 -0
- package/dist/components/Button/index.d.mts +17 -0
- package/dist/components/Button/index.d.ts +17 -0
- package/dist/components/Button/index.js +15 -0
- package/dist/components/Button/index.mjs +2 -0
- package/dist/components/Card/index.d.mts +30 -0
- package/dist/components/Card/index.d.ts +30 -0
- package/dist/components/Card/index.js +35 -0
- package/dist/components/Card/index.mjs +2 -0
- package/dist/components/CardList/index.d.mts +30 -0
- package/dist/components/CardList/index.d.ts +30 -0
- package/dist/components/CardList/index.js +11 -0
- package/dist/components/CardList/index.mjs +2 -0
- package/dist/components/Carousel/index.d.mts +15 -0
- package/dist/components/Carousel/index.d.ts +15 -0
- package/dist/components/Carousel/index.js +11 -0
- package/dist/components/Carousel/index.mjs +2 -0
- package/dist/components/Checkbox/index.d.mts +16 -0
- package/dist/components/Checkbox/index.d.ts +16 -0
- package/dist/components/Checkbox/index.js +11 -0
- package/dist/components/Checkbox/index.mjs +2 -0
- package/dist/components/Counter/index.d.mts +14 -0
- package/dist/components/Counter/index.d.ts +14 -0
- package/dist/components/Counter/index.js +11 -0
- package/dist/components/Counter/index.mjs +2 -0
- package/dist/components/DateRangePicker/index.d.mts +26 -0
- package/dist/components/DateRangePicker/index.d.ts +26 -0
- package/dist/components/DateRangePicker/index.js +15 -0
- package/dist/components/DateRangePicker/index.mjs +2 -0
- package/dist/components/DetailList/index.d.mts +17 -0
- package/dist/components/DetailList/index.d.ts +17 -0
- package/dist/components/DetailList/index.js +11 -0
- package/dist/components/DetailList/index.mjs +2 -0
- package/dist/components/Divider/index.d.mts +10 -0
- package/dist/components/Divider/index.d.ts +10 -0
- package/dist/components/Divider/index.js +11 -0
- package/dist/components/Divider/index.mjs +2 -0
- package/dist/components/Drawer/index.d.mts +13 -0
- package/dist/components/Drawer/index.d.ts +13 -0
- package/dist/components/Drawer/index.js +11 -0
- package/dist/components/Drawer/index.mjs +2 -0
- package/dist/components/DropdownMenu/index.d.mts +19 -0
- package/dist/components/DropdownMenu/index.d.ts +19 -0
- package/dist/components/DropdownMenu/index.js +11 -0
- package/dist/components/DropdownMenu/index.mjs +2 -0
- package/dist/components/DualRangeSlider/index.d.mts +26 -0
- package/dist/components/DualRangeSlider/index.d.ts +26 -0
- package/dist/components/DualRangeSlider/index.js +11 -0
- package/dist/components/DualRangeSlider/index.mjs +2 -0
- package/dist/components/EmptyState/index.d.mts +12 -0
- package/dist/components/EmptyState/index.d.ts +12 -0
- package/dist/components/EmptyState/index.js +11 -0
- package/dist/components/EmptyState/index.mjs +2 -0
- package/dist/components/ErrorBoundary/index.d.mts +21 -0
- package/dist/components/ErrorBoundary/index.d.ts +21 -0
- package/dist/components/ErrorBoundary/index.js +11 -0
- package/dist/components/ErrorBoundary/index.mjs +2 -0
- package/dist/components/FilterAccordion/index.d.mts +16 -0
- package/dist/components/FilterAccordion/index.d.ts +16 -0
- package/dist/components/FilterAccordion/index.js +11 -0
- package/dist/components/FilterAccordion/index.mjs +2 -0
- package/dist/components/FilterPill/index.d.mts +13 -0
- package/dist/components/FilterPill/index.d.ts +13 -0
- package/dist/components/FilterPill/index.js +11 -0
- package/dist/components/FilterPill/index.mjs +2 -0
- package/dist/components/Footer/index.d.mts +46 -0
- package/dist/components/Footer/index.d.ts +46 -0
- package/dist/components/Footer/index.js +11 -0
- package/dist/components/Footer/index.mjs +2 -0
- package/dist/components/GuestPicker/index.d.mts +31 -0
- package/dist/components/GuestPicker/index.d.ts +31 -0
- package/dist/components/GuestPicker/index.js +11 -0
- package/dist/components/GuestPicker/index.mjs +2 -0
- package/dist/components/Header/index.d.mts +37 -0
- package/dist/components/Header/index.d.ts +37 -0
- package/dist/components/Header/index.js +11 -0
- package/dist/components/Header/index.mjs +2 -0
- package/dist/components/HotelCard/index.d.mts +45 -0
- package/dist/components/HotelCard/index.d.ts +45 -0
- package/dist/components/HotelCard/index.js +11 -0
- package/dist/components/HotelCard/index.mjs +2 -0
- package/dist/components/IconBadge/index.d.mts +14 -0
- package/dist/components/IconBadge/index.d.ts +14 -0
- package/dist/components/IconBadge/index.js +15 -0
- package/dist/components/IconBadge/index.mjs +2 -0
- package/dist/components/ImageGallery/index.d.mts +16 -0
- package/dist/components/ImageGallery/index.d.ts +16 -0
- package/dist/components/ImageGallery/index.js +11 -0
- package/dist/components/ImageGallery/index.mjs +2 -0
- package/dist/components/ImageWithFallback/index.d.mts +17 -0
- package/dist/components/ImageWithFallback/index.d.ts +17 -0
- package/dist/components/ImageWithFallback/index.js +11 -0
- package/dist/components/ImageWithFallback/index.mjs +2 -0
- package/dist/components/Input/index.d.mts +18 -0
- package/dist/components/Input/index.d.ts +18 -0
- package/dist/components/Input/index.js +15 -0
- package/dist/components/Input/index.mjs +2 -0
- package/dist/components/Lightbox/index.d.mts +15 -0
- package/dist/components/Lightbox/index.d.ts +15 -0
- package/dist/components/Lightbox/index.js +11 -0
- package/dist/components/Lightbox/index.mjs +2 -0
- package/dist/components/LinkCard/index.d.mts +12 -0
- package/dist/components/LinkCard/index.d.ts +12 -0
- package/dist/components/LinkCard/index.js +11 -0
- package/dist/components/LinkCard/index.mjs +2 -0
- package/dist/components/LoadingOverlay/index.d.mts +12 -0
- package/dist/components/LoadingOverlay/index.d.ts +12 -0
- package/dist/components/LoadingOverlay/index.js +11 -0
- package/dist/components/LoadingOverlay/index.mjs +2 -0
- package/dist/components/MegaMenu/index.d.mts +52 -0
- package/dist/components/MegaMenu/index.d.ts +52 -0
- package/dist/components/MegaMenu/index.js +11 -0
- package/dist/components/MegaMenu/index.mjs +2 -0
- package/dist/components/MobileMenu/index.d.mts +35 -0
- package/dist/components/MobileMenu/index.d.ts +35 -0
- package/dist/components/MobileMenu/index.js +11 -0
- package/dist/components/MobileMenu/index.mjs +2 -0
- package/dist/components/Modal/index.d.mts +12 -0
- package/dist/components/Modal/index.d.ts +12 -0
- package/dist/components/Modal/index.js +11 -0
- package/dist/components/Modal/index.mjs +2 -0
- package/dist/components/Pagination/index.d.mts +13 -0
- package/dist/components/Pagination/index.d.ts +13 -0
- package/dist/components/Pagination/index.js +11 -0
- package/dist/components/Pagination/index.mjs +2 -0
- package/dist/components/PriceDisplay/index.d.mts +14 -0
- package/dist/components/PriceDisplay/index.d.ts +14 -0
- package/dist/components/PriceDisplay/index.js +11 -0
- package/dist/components/PriceDisplay/index.mjs +2 -0
- package/dist/components/ProgressBar/index.d.mts +19 -0
- package/dist/components/ProgressBar/index.d.ts +19 -0
- package/dist/components/ProgressBar/index.js +19 -0
- package/dist/components/ProgressBar/index.mjs +2 -0
- package/dist/components/RadioGroup/index.d.mts +21 -0
- package/dist/components/RadioGroup/index.d.ts +21 -0
- package/dist/components/RadioGroup/index.js +11 -0
- package/dist/components/RadioGroup/index.mjs +2 -0
- package/dist/components/Rating/index.d.mts +12 -0
- package/dist/components/Rating/index.d.ts +12 -0
- package/dist/components/Rating/index.js +11 -0
- package/dist/components/Rating/index.mjs +2 -0
- package/dist/components/SearchBar/index.d.mts +20 -0
- package/dist/components/SearchBar/index.d.ts +20 -0
- package/dist/components/SearchBar/index.js +11 -0
- package/dist/components/SearchBar/index.mjs +2 -0
- package/dist/components/SegmentedControl/index.d.mts +15 -0
- package/dist/components/SegmentedControl/index.d.ts +15 -0
- package/dist/components/SegmentedControl/index.js +11 -0
- package/dist/components/SegmentedControl/index.mjs +2 -0
- package/dist/components/Select/index.d.mts +26 -0
- package/dist/components/Select/index.d.ts +26 -0
- package/dist/components/Select/index.js +15 -0
- package/dist/components/Select/index.mjs +2 -0
- package/dist/components/Sidebar/index.d.mts +19 -0
- package/dist/components/Sidebar/index.d.ts +19 -0
- package/dist/components/Sidebar/index.js +11 -0
- package/dist/components/Sidebar/index.mjs +2 -0
- package/dist/components/Skeleton/index.d.mts +31 -0
- package/dist/components/Skeleton/index.d.ts +31 -0
- package/dist/components/Skeleton/index.js +23 -0
- package/dist/components/Skeleton/index.mjs +2 -0
- package/dist/components/Spinner/index.d.mts +13 -0
- package/dist/components/Spinner/index.d.ts +13 -0
- package/dist/components/Spinner/index.js +15 -0
- package/dist/components/Spinner/index.mjs +2 -0
- package/dist/components/StatCard/index.d.mts +15 -0
- package/dist/components/StatCard/index.d.ts +15 -0
- package/dist/components/StatCard/index.js +11 -0
- package/dist/components/StatCard/index.mjs +2 -0
- package/dist/components/StatusBadge/index.d.mts +16 -0
- package/dist/components/StatusBadge/index.d.ts +16 -0
- package/dist/components/StatusBadge/index.js +15 -0
- package/dist/components/StatusBadge/index.mjs +2 -0
- package/dist/components/Stepper/index.d.mts +16 -0
- package/dist/components/Stepper/index.d.ts +16 -0
- package/dist/components/Stepper/index.js +11 -0
- package/dist/components/Stepper/index.mjs +2 -0
- package/dist/components/Switch/index.d.mts +22 -0
- package/dist/components/Switch/index.d.ts +22 -0
- package/dist/components/Switch/index.js +19 -0
- package/dist/components/Switch/index.mjs +2 -0
- package/dist/components/Tabs/index.d.mts +18 -0
- package/dist/components/Tabs/index.d.ts +18 -0
- package/dist/components/Tabs/index.js +11 -0
- package/dist/components/Tabs/index.mjs +2 -0
- package/dist/components/Tag/index.d.mts +15 -0
- package/dist/components/Tag/index.d.ts +15 -0
- package/dist/components/Tag/index.js +15 -0
- package/dist/components/Tag/index.mjs +2 -0
- package/dist/components/Textarea/index.d.mts +16 -0
- package/dist/components/Textarea/index.d.ts +16 -0
- package/dist/components/Textarea/index.js +15 -0
- package/dist/components/Textarea/index.mjs +2 -0
- package/dist/components/Toast/index.d.mts +16 -0
- package/dist/components/Toast/index.d.ts +16 -0
- package/dist/components/Toast/index.js +15 -0
- package/dist/components/Toast/index.mjs +2 -0
- package/dist/components/Toggle/index.d.mts +13 -0
- package/dist/components/Toggle/index.d.ts +13 -0
- package/dist/components/Toggle/index.js +11 -0
- package/dist/components/Toggle/index.mjs +2 -0
- package/dist/components/Tooltip/index.d.mts +11 -0
- package/dist/components/Tooltip/index.d.ts +11 -0
- package/dist/components/Tooltip/index.js +11 -0
- package/dist/components/Tooltip/index.mjs +2 -0
- package/dist/components/VerticalMarquee/index.d.mts +16 -0
- package/dist/components/VerticalMarquee/index.d.ts +16 -0
- package/dist/components/VerticalMarquee/index.js +11 -0
- package/dist/components/VerticalMarquee/index.mjs +2 -0
- package/dist/index.d.mts +66 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +418 -0
- package/dist/index.mjs +61 -0
- package/dist/tailwind-preset.d.mts +159 -0
- package/dist/tailwind-preset.d.ts +159 -0
- package/dist/tailwind-preset.js +19 -0
- package/dist/tailwind-preset.mjs +17 -0
- package/dist/tokens/index.d.mts +208 -0
- package/dist/tokens/index.d.ts +208 -0
- package/dist/tokens/index.js +84 -0
- package/dist/tokens/index.mjs +53 -0
- package/dist/typography-BUlhEnfy.d.mts +16 -0
- package/dist/typography-BUlhEnfy.d.ts +16 -0
- package/dist/utils/index.d.mts +5 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.js +10 -0
- package/dist/utils/index.mjs +1 -0
- package/package.json +379 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkADIDI7AJ_js = require('./chunk-ADIDI7AJ.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
|
+
|
|
27
|
+
var DetailList = React__namespace.forwardRef(
|
|
28
|
+
({ items, direction = "vertical", dividers = true, className, ...props }, ref) => {
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30
|
+
"dl",
|
|
31
|
+
{
|
|
32
|
+
ref,
|
|
33
|
+
className: chunkADIDI7AJ_js.cn(
|
|
34
|
+
direction === "horizontal" ? "flex flex-wrap gap-6" : "space-y-0",
|
|
35
|
+
className
|
|
36
|
+
),
|
|
37
|
+
...props,
|
|
38
|
+
children: items.map((item, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: chunkADIDI7AJ_js.cn(
|
|
42
|
+
direction === "vertical" && "flex items-center justify-between py-3",
|
|
43
|
+
direction === "vertical" && dividers && i < items.length - 1 && "border-b border-gray-100",
|
|
44
|
+
direction === "horizontal" && "flex flex-col"
|
|
45
|
+
),
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
48
|
+
"dt",
|
|
49
|
+
{
|
|
50
|
+
className: chunkADIDI7AJ_js.cn(
|
|
51
|
+
"flex items-center gap-2 text-sm text-text-secondary",
|
|
52
|
+
direction === "horizontal" && "text-xs uppercase tracking-wider mb-1"
|
|
53
|
+
),
|
|
54
|
+
children: [
|
|
55
|
+
item.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0", "aria-hidden": "true", children: item.icon }),
|
|
56
|
+
item.label
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
61
|
+
"dd",
|
|
62
|
+
{
|
|
63
|
+
className: chunkADIDI7AJ_js.cn(
|
|
64
|
+
"text-sm font-medium text-primary",
|
|
65
|
+
direction === "horizontal" && "text-lg font-bold"
|
|
66
|
+
),
|
|
67
|
+
children: item.value
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
i
|
|
73
|
+
))
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
DetailList.displayName = "DetailList";
|
|
79
|
+
|
|
80
|
+
exports.DetailList = DetailList;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { cn } from './chunk-IMKLN273.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var toastVariants = cva(
|
|
7
|
+
"flex items-start gap-3 w-full max-w-sm p-4 rounded-xl shadow-lg border transition-all duration-300",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
success: "bg-white border-green-200 text-green-800",
|
|
12
|
+
error: "bg-white border-red-200 text-red-800",
|
|
13
|
+
warning: "bg-white border-amber-200 text-amber-800",
|
|
14
|
+
info: "bg-white border-blue-200 text-blue-800"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
variant: "info"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
var iconMap = {
|
|
23
|
+
success: /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "text-green-500 flex-shrink-0 mt-0.5", "aria-hidden": "true", children: [
|
|
24
|
+
/* @__PURE__ */ jsx("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
25
|
+
/* @__PURE__ */ jsx("path", { d: "m9 11 3 3L22 4" })
|
|
26
|
+
] }),
|
|
27
|
+
error: /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "text-red-500 flex-shrink-0 mt-0.5", "aria-hidden": "true", children: [
|
|
28
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
29
|
+
/* @__PURE__ */ jsx("path", { d: "m15 9-6 6" }),
|
|
30
|
+
/* @__PURE__ */ jsx("path", { d: "m9 9 6 6" })
|
|
31
|
+
] }),
|
|
32
|
+
warning: /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "text-amber-500 flex-shrink-0 mt-0.5", "aria-hidden": "true", children: [
|
|
33
|
+
/* @__PURE__ */ jsx("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
|
|
34
|
+
/* @__PURE__ */ jsx("path", { d: "M12 9v4" }),
|
|
35
|
+
/* @__PURE__ */ jsx("path", { d: "M12 17h.01" })
|
|
36
|
+
] }),
|
|
37
|
+
info: /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "text-blue-500 flex-shrink-0 mt-0.5", "aria-hidden": "true", children: [
|
|
38
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
39
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16v-4" }),
|
|
40
|
+
/* @__PURE__ */ jsx("path", { d: "M12 8h.01" })
|
|
41
|
+
] })
|
|
42
|
+
};
|
|
43
|
+
var Toast = React.forwardRef(
|
|
44
|
+
({ variant = "info", title, description, onClose, icon, className, ...props }, ref) => {
|
|
45
|
+
return /* @__PURE__ */ jsxs(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
ref,
|
|
49
|
+
role: "alert",
|
|
50
|
+
className: cn(toastVariants({ variant }), className),
|
|
51
|
+
...props,
|
|
52
|
+
children: [
|
|
53
|
+
icon || iconMap[variant || "info"],
|
|
54
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
55
|
+
title && /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold", children: title }),
|
|
56
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-sm opacity-80 mt-0.5", children: description })
|
|
57
|
+
] }),
|
|
58
|
+
onClose && /* @__PURE__ */ jsx(
|
|
59
|
+
"button",
|
|
60
|
+
{
|
|
61
|
+
onClick: onClose,
|
|
62
|
+
className: "flex-shrink-0 p-1 rounded-lg hover:bg-black/5 transition-colors",
|
|
63
|
+
"aria-label": "Close",
|
|
64
|
+
children: /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
65
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
66
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
67
|
+
] })
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
Toast.displayName = "Toast";
|
|
76
|
+
|
|
77
|
+
export { Toast, toastVariants };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkADIDI7AJ_js = require('./chunk-ADIDI7AJ.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
6
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
|
+
|
|
29
|
+
var buttonVariants = classVarianceAuthority.cva(
|
|
30
|
+
"inline-flex items-center justify-center font-medium rounded-full transition-all duration-200 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
31
|
+
{
|
|
32
|
+
variants: {
|
|
33
|
+
variant: {
|
|
34
|
+
primary: "bg-secondary text-white hover:bg-secondary-dark shadow-md hover:shadow-lg",
|
|
35
|
+
secondary: "bg-primary text-white hover:bg-primary-dark",
|
|
36
|
+
accent: "bg-accent text-white hover:bg-accent-dark",
|
|
37
|
+
outline: "border-2 border-primary text-primary hover:bg-primary hover:text-white",
|
|
38
|
+
ghost: "text-primary hover:bg-gray-100"
|
|
39
|
+
},
|
|
40
|
+
size: {
|
|
41
|
+
sm: "px-4 py-2 text-sm",
|
|
42
|
+
md: "px-6 py-3 text-base",
|
|
43
|
+
lg: "px-8 py-4 text-lg"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
variant: "primary",
|
|
48
|
+
size: "md"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
var Button = React__namespace.forwardRef(
|
|
53
|
+
({
|
|
54
|
+
className,
|
|
55
|
+
variant,
|
|
56
|
+
size,
|
|
57
|
+
asChild = false,
|
|
58
|
+
isLoading = false,
|
|
59
|
+
leftIcon,
|
|
60
|
+
rightIcon,
|
|
61
|
+
children,
|
|
62
|
+
disabled,
|
|
63
|
+
...props
|
|
64
|
+
}, ref) => {
|
|
65
|
+
if (asChild) {
|
|
66
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
+
reactSlot.Slot,
|
|
68
|
+
{
|
|
69
|
+
ref,
|
|
70
|
+
className: chunkADIDI7AJ_js.cn(buttonVariants({ variant, size, className })),
|
|
71
|
+
...props,
|
|
72
|
+
children
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
77
|
+
"button",
|
|
78
|
+
{
|
|
79
|
+
ref,
|
|
80
|
+
className: chunkADIDI7AJ_js.cn(buttonVariants({ variant, size, className })),
|
|
81
|
+
disabled: disabled || isLoading,
|
|
82
|
+
...props,
|
|
83
|
+
children: [
|
|
84
|
+
isLoading ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
85
|
+
"svg",
|
|
86
|
+
{
|
|
87
|
+
className: "animate-spin -ml-1 mr-2 h-4 w-4",
|
|
88
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
89
|
+
fill: "none",
|
|
90
|
+
viewBox: "0 0 24 24",
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
93
|
+
"circle",
|
|
94
|
+
{
|
|
95
|
+
className: "opacity-25",
|
|
96
|
+
cx: "12",
|
|
97
|
+
cy: "12",
|
|
98
|
+
r: "10",
|
|
99
|
+
stroke: "currentColor",
|
|
100
|
+
strokeWidth: "4"
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
104
|
+
"path",
|
|
105
|
+
{
|
|
106
|
+
className: "opacity-75",
|
|
107
|
+
fill: "currentColor",
|
|
108
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
) : leftIcon ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mr-2", children: leftIcon }) : null,
|
|
114
|
+
children,
|
|
115
|
+
rightIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-2", children: rightIcon })
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
Button.displayName = "Button";
|
|
122
|
+
|
|
123
|
+
exports.Button = Button;
|
|
124
|
+
exports.buttonVariants = buttonVariants;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkADIDI7AJ_js = require('./chunk-ADIDI7AJ.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
+
|
|
28
|
+
var badgeVariants = classVarianceAuthority.cva("inline-flex items-center font-medium rounded-full", {
|
|
29
|
+
variants: {
|
|
30
|
+
variant: {
|
|
31
|
+
default: "bg-primary text-white",
|
|
32
|
+
secondary: "bg-secondary text-white",
|
|
33
|
+
accent: "bg-accent text-white",
|
|
34
|
+
success: "bg-green-500 text-white",
|
|
35
|
+
warning: "bg-yellow-500 text-white",
|
|
36
|
+
outline: "border border-primary text-primary bg-transparent"
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
sm: "px-2 py-0.5 text-xs",
|
|
40
|
+
md: "px-3 py-1 text-sm"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
defaultVariants: {
|
|
44
|
+
variant: "default",
|
|
45
|
+
size: "sm"
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
var Badge = React__namespace.forwardRef(
|
|
49
|
+
({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
50
|
+
"span",
|
|
51
|
+
{
|
|
52
|
+
ref,
|
|
53
|
+
className: chunkADIDI7AJ_js.cn(badgeVariants({ variant, size, className })),
|
|
54
|
+
...props
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
);
|
|
58
|
+
Badge.displayName = "Badge";
|
|
59
|
+
|
|
60
|
+
exports.Badge = Badge;
|
|
61
|
+
exports.badgeVariants = badgeVariants;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkADIDI7AJ_js = require('./chunk-ADIDI7AJ.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
+
|
|
28
|
+
var cardVariants = classVarianceAuthority.cva("bg-white rounded-2xl shadow-card overflow-hidden", {
|
|
29
|
+
variants: {
|
|
30
|
+
padding: {
|
|
31
|
+
none: "",
|
|
32
|
+
sm: "p-4",
|
|
33
|
+
md: "p-6",
|
|
34
|
+
lg: "p-8"
|
|
35
|
+
},
|
|
36
|
+
hover: {
|
|
37
|
+
true: "hover:shadow-card-hover transition-shadow duration-300",
|
|
38
|
+
false: ""
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
padding: "none",
|
|
43
|
+
hover: true
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
var Card = React__namespace.forwardRef(
|
|
47
|
+
({ className, padding, hover, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref,
|
|
51
|
+
className: chunkADIDI7AJ_js.cn(cardVariants({ padding, hover, className })),
|
|
52
|
+
...props
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
);
|
|
56
|
+
Card.displayName = "Card";
|
|
57
|
+
var cardImageVariants = classVarianceAuthority.cva(
|
|
58
|
+
"relative overflow-hidden rounded-t-2xl w-full",
|
|
59
|
+
{
|
|
60
|
+
variants: {
|
|
61
|
+
aspectRatio: {
|
|
62
|
+
square: "aspect-square",
|
|
63
|
+
video: "aspect-video",
|
|
64
|
+
wide: "aspect-[21/9]"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
defaultVariants: {
|
|
68
|
+
aspectRatio: "video"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
var CardImage = React__namespace.forwardRef(
|
|
73
|
+
({ className, aspectRatio, overlay, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
ref,
|
|
77
|
+
className: chunkADIDI7AJ_js.cn(cardImageVariants({ aspectRatio, className })),
|
|
78
|
+
...props,
|
|
79
|
+
children: [
|
|
80
|
+
children,
|
|
81
|
+
overlay && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/60 to-transparent", children: overlay })
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
);
|
|
86
|
+
CardImage.displayName = "CardImage";
|
|
87
|
+
var CardContent = React__namespace.forwardRef(
|
|
88
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: chunkADIDI7AJ_js.cn("p-4 md:p-6", className), ...props })
|
|
89
|
+
);
|
|
90
|
+
CardContent.displayName = "CardContent";
|
|
91
|
+
var CardTitle = React__namespace.forwardRef(
|
|
92
|
+
({ className, as: Comp = "h3", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
93
|
+
Comp,
|
|
94
|
+
{
|
|
95
|
+
ref,
|
|
96
|
+
className: chunkADIDI7AJ_js.cn("font-heading font-bold text-primary", className),
|
|
97
|
+
...props
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
);
|
|
101
|
+
CardTitle.displayName = "CardTitle";
|
|
102
|
+
var CardDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
103
|
+
"p",
|
|
104
|
+
{
|
|
105
|
+
ref,
|
|
106
|
+
className: chunkADIDI7AJ_js.cn("text-text-secondary text-sm mt-2", className),
|
|
107
|
+
...props
|
|
108
|
+
}
|
|
109
|
+
));
|
|
110
|
+
CardDescription.displayName = "CardDescription";
|
|
111
|
+
|
|
112
|
+
exports.Card = Card;
|
|
113
|
+
exports.CardContent = CardContent;
|
|
114
|
+
exports.CardDescription = CardDescription;
|
|
115
|
+
exports.CardImage = CardImage;
|
|
116
|
+
exports.CardTitle = CardTitle;
|
|
117
|
+
exports.cardImageVariants = cardImageVariants;
|
|
118
|
+
exports.cardVariants = cardVariants;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { cn } from './chunk-IMKLN273.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var Drawer = React.forwardRef(
|
|
6
|
+
({ isOpen, onClose, children, side = "right", title, className }, ref) => {
|
|
7
|
+
React.useEffect(() => {
|
|
8
|
+
if (!isOpen) return;
|
|
9
|
+
const handleKeyDown = (e) => {
|
|
10
|
+
if (e.key === "Escape") onClose();
|
|
11
|
+
};
|
|
12
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
13
|
+
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
14
|
+
}, [isOpen, onClose]);
|
|
15
|
+
React.useEffect(() => {
|
|
16
|
+
if (!isOpen) return;
|
|
17
|
+
const prev = document.body.style.overflow;
|
|
18
|
+
document.body.style.overflow = "hidden";
|
|
19
|
+
return () => {
|
|
20
|
+
document.body.style.overflow = prev;
|
|
21
|
+
};
|
|
22
|
+
}, [isOpen]);
|
|
23
|
+
if (!isOpen) return null;
|
|
24
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: "fixed inset-0 z-50", role: "dialog", "aria-modal": "true", "aria-label": title, children: [
|
|
25
|
+
/* @__PURE__ */ jsx(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
className: "absolute inset-0 bg-black/50 transition-opacity",
|
|
29
|
+
onClick: onClose,
|
|
30
|
+
"aria-hidden": "true"
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ jsxs(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
className: cn(
|
|
37
|
+
"absolute top-0 bottom-0 bg-white shadow-xl flex flex-col",
|
|
38
|
+
side === "right" && "right-0 w-full max-w-md",
|
|
39
|
+
side === "left" && "left-0 w-full max-w-md",
|
|
40
|
+
className
|
|
41
|
+
),
|
|
42
|
+
children: [
|
|
43
|
+
title && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-4 h-16 border-b border-gray-100 shrink-0", children: [
|
|
44
|
+
/* @__PURE__ */ jsx("h2", { className: "text-lg font-heading font-semibold text-primary", children: title }),
|
|
45
|
+
/* @__PURE__ */ jsx(
|
|
46
|
+
"button",
|
|
47
|
+
{
|
|
48
|
+
onClick: onClose,
|
|
49
|
+
className: "p-2 hover:bg-gray-100 rounded-full transition-colors",
|
|
50
|
+
"aria-label": "Fermer",
|
|
51
|
+
children: /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
52
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
53
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
54
|
+
] })
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] }),
|
|
58
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto", children })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] });
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
Drawer.displayName = "Drawer";
|
|
66
|
+
|
|
67
|
+
export { Drawer };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { cn } from './chunk-IMKLN273.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var textareaVariants = cva(
|
|
7
|
+
"w-full border bg-white transition-all placeholder:text-text-muted text-primary resize-vertical",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
sm: "px-3 py-2 text-sm rounded-xl",
|
|
12
|
+
md: "px-4 py-3 text-sm rounded-xl",
|
|
13
|
+
lg: "px-4 py-3 text-base rounded-xl"
|
|
14
|
+
},
|
|
15
|
+
variant: {
|
|
16
|
+
default: "border-gray-200 focus:border-secondary focus:outline-none focus:ring-1 focus:ring-secondary",
|
|
17
|
+
error: "border-red-300 focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-red-500"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
size: "md",
|
|
22
|
+
variant: "default"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
var Textarea = React.forwardRef(
|
|
27
|
+
({ className, size, variant, label, error, required, rows = 4, ...props }, ref) => {
|
|
28
|
+
const resolvedVariant = error ? "error" : variant ?? "default";
|
|
29
|
+
return /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
|
|
30
|
+
label && /* @__PURE__ */ jsxs("label", { className: "block text-sm font-medium text-primary mb-1.5", children: [
|
|
31
|
+
label,
|
|
32
|
+
required && /* @__PURE__ */ jsx("span", { className: "text-secondary", children: " *" })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
"textarea",
|
|
36
|
+
{
|
|
37
|
+
ref,
|
|
38
|
+
rows,
|
|
39
|
+
className: cn(
|
|
40
|
+
textareaVariants({ size, variant: resolvedVariant }),
|
|
41
|
+
className
|
|
42
|
+
),
|
|
43
|
+
...props
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
error && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-red-500", children: error })
|
|
47
|
+
] });
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
Textarea.displayName = "Textarea";
|
|
51
|
+
|
|
52
|
+
export { Textarea, textareaVariants };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface AccordionItemData {
|
|
4
|
+
key: string;
|
|
5
|
+
title: string;
|
|
6
|
+
content: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
interface AccordionProps {
|
|
9
|
+
items: AccordionItemData[];
|
|
10
|
+
defaultOpenIndex?: number | null;
|
|
11
|
+
/** Open multiple items by default (requires `allowMultiple`). Takes precedence over `defaultOpenIndex`. */
|
|
12
|
+
defaultOpenIndexes?: number[];
|
|
13
|
+
allowMultiple?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
interface AccordionItemProps {
|
|
18
|
+
title: string;
|
|
19
|
+
isOpen: boolean;
|
|
20
|
+
onToggle: () => void;
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { Accordion, type AccordionItemData, type AccordionItemProps, type AccordionProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface AccordionItemData {
|
|
4
|
+
key: string;
|
|
5
|
+
title: string;
|
|
6
|
+
content: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
interface AccordionProps {
|
|
9
|
+
items: AccordionItemData[];
|
|
10
|
+
defaultOpenIndex?: number | null;
|
|
11
|
+
/** Open multiple items by default (requires `allowMultiple`). Takes precedence over `defaultOpenIndex`. */
|
|
12
|
+
defaultOpenIndexes?: number[];
|
|
13
|
+
allowMultiple?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
interface AccordionItemProps {
|
|
18
|
+
title: string;
|
|
19
|
+
isOpen: boolean;
|
|
20
|
+
onToggle: () => void;
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { Accordion, type AccordionItemData, type AccordionItemProps, type AccordionProps };
|