@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,234 @@
|
|
|
1
|
+
import { cn } from './chunk-IMKLN273.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function MapPinIcon({ className }) {
|
|
6
|
+
return /* @__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", className, children: [
|
|
7
|
+
/* @__PURE__ */ jsx("path", { d: "M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z" }),
|
|
8
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "10", r: "3" })
|
|
9
|
+
] });
|
|
10
|
+
}
|
|
11
|
+
function DogIcon({ className }) {
|
|
12
|
+
return /* @__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", className, children: [
|
|
13
|
+
/* @__PURE__ */ jsx("path", { d: "M10 5.172C10 3.782 8.423 2.679 6.5 3c-2.823.47-4.113 6.006-4 7 .08.703 1.725 1.722 3.656 1 1.261-.472 1.96-1.45 2.344-2.5" }),
|
|
14
|
+
/* @__PURE__ */ jsx("path", { d: "M14.267 5.172c0-1.39 1.577-2.493 3.5-2.172 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5" }),
|
|
15
|
+
/* @__PURE__ */ jsx("path", { d: "M8 14v.5" }),
|
|
16
|
+
/* @__PURE__ */ jsx("path", { d: "M16 14v.5" }),
|
|
17
|
+
/* @__PURE__ */ jsx("path", { d: "M11.25 16.25h1.5L12 17l-.75-.75Z" }),
|
|
18
|
+
/* @__PURE__ */ jsx("path", { d: "M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444c0-1.061-.162-2.2-.493-3.309m-9.243-6.082A8.801 8.801 0 0 1 12 5c.78 0 1.5.108 2.161.306" })
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
function StarIcon({ className }) {
|
|
22
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "currentColor", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className, children: /* @__PURE__ */ jsx("polygon", { points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" }) });
|
|
23
|
+
}
|
|
24
|
+
function HeartIcon({ className, filled }) {
|
|
25
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: filled ? "currentColor" : "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className, children: /* @__PURE__ */ jsx("path", { d: "M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" }) });
|
|
26
|
+
}
|
|
27
|
+
function CheckIcon({ className }) {
|
|
28
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className, children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" }) });
|
|
29
|
+
}
|
|
30
|
+
function formatPrice(price) {
|
|
31
|
+
return new Intl.NumberFormat("fr-FR", {
|
|
32
|
+
style: "currency",
|
|
33
|
+
currency: "EUR",
|
|
34
|
+
minimumFractionDigits: 0,
|
|
35
|
+
maximumFractionDigits: 0
|
|
36
|
+
}).format(price);
|
|
37
|
+
}
|
|
38
|
+
var HotelCard = React.forwardRef(
|
|
39
|
+
({
|
|
40
|
+
hotel,
|
|
41
|
+
isFavorite = false,
|
|
42
|
+
onToggleFavorite,
|
|
43
|
+
isSponsored,
|
|
44
|
+
priceLoading = false,
|
|
45
|
+
isIndicativePrice = false,
|
|
46
|
+
noAvailability = false,
|
|
47
|
+
layout = "auto",
|
|
48
|
+
renderLink,
|
|
49
|
+
renderImage,
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}, ref) => {
|
|
53
|
+
const isV = layout === "vertical";
|
|
54
|
+
const isH = layout === "horizontal";
|
|
55
|
+
const linkClassName = cn(
|
|
56
|
+
"flex",
|
|
57
|
+
isV ? "flex-col" : isH ? "flex-row" : "flex-col md:flex-row"
|
|
58
|
+
);
|
|
59
|
+
const linkContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60
|
+
/* @__PURE__ */ jsxs("div", { className: cn(
|
|
61
|
+
"relative flex-shrink-0 aspect-[4/3] overflow-hidden",
|
|
62
|
+
isV ? "w-full" : isH ? "w-72 lg:w-80" : "w-full md:w-72 lg:w-80"
|
|
63
|
+
), children: [
|
|
64
|
+
renderImage ? renderImage({
|
|
65
|
+
src: hotel.mainImage,
|
|
66
|
+
alt: hotel.name,
|
|
67
|
+
className: "object-cover w-full h-full"
|
|
68
|
+
}) : /* @__PURE__ */ jsx(
|
|
69
|
+
"img",
|
|
70
|
+
{
|
|
71
|
+
src: hotel.mainImage,
|
|
72
|
+
alt: hotel.name,
|
|
73
|
+
className: "object-cover w-full h-full"
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute top-3 left-3 flex flex-wrap gap-2", children: [
|
|
77
|
+
/* @__PURE__ */ jsxs("span", { className: "px-2 py-1 bg-secondary text-white text-xs font-medium rounded-md flex items-center gap-1", children: [
|
|
78
|
+
/* @__PURE__ */ jsx(DogIcon, { className: "w-3 h-3" }),
|
|
79
|
+
/* @__PURE__ */ jsx("span", { className: isV ? "hidden" : isH ? "inline" : "hidden md:inline", children: "Voyage engag\xE9" })
|
|
80
|
+
] }),
|
|
81
|
+
hotel.originalPrice && hotel.pricePerNight && hotel.originalPrice > hotel.pricePerNight && /* @__PURE__ */ jsxs("span", { className: "px-2 py-1 bg-accent text-white text-xs font-medium rounded-md", children: [
|
|
82
|
+
"-",
|
|
83
|
+
Math.round(
|
|
84
|
+
(1 - hotel.pricePerNight / hotel.originalPrice) * 100
|
|
85
|
+
),
|
|
86
|
+
"%"
|
|
87
|
+
] })
|
|
88
|
+
] }),
|
|
89
|
+
onToggleFavorite && /* @__PURE__ */ jsx(
|
|
90
|
+
"button",
|
|
91
|
+
{
|
|
92
|
+
onClick: (e) => {
|
|
93
|
+
e.preventDefault();
|
|
94
|
+
onToggleFavorite();
|
|
95
|
+
},
|
|
96
|
+
"aria-label": isFavorite ? "Retirer des favoris" : "Ajouter aux favoris",
|
|
97
|
+
"aria-pressed": isFavorite,
|
|
98
|
+
className: "absolute top-3 right-3 p-2 bg-white/90 backdrop-blur-sm rounded-full hover:bg-white hover:scale-110 active:scale-90 transition-all duration-200 shadow-sm group",
|
|
99
|
+
children: /* @__PURE__ */ jsx(
|
|
100
|
+
HeartIcon,
|
|
101
|
+
{
|
|
102
|
+
filled: isFavorite,
|
|
103
|
+
className: cn(
|
|
104
|
+
"w-5 h-5 transition-all duration-300",
|
|
105
|
+
isFavorite ? "text-secondary scale-110" : "text-primary group-hover:text-secondary"
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ jsx("div", { className: cn("absolute bottom-3 left-1/2 -translate-x-1/2 gap-1.5", isV ? "hidden" : isH ? "flex" : "hidden md:flex"), children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx(
|
|
112
|
+
"span",
|
|
113
|
+
{
|
|
114
|
+
className: cn(
|
|
115
|
+
"w-1.5 h-1.5 rounded-full",
|
|
116
|
+
i === 0 ? "bg-white" : "bg-white/50"
|
|
117
|
+
)
|
|
118
|
+
},
|
|
119
|
+
i
|
|
120
|
+
)) })
|
|
121
|
+
] }),
|
|
122
|
+
/* @__PURE__ */ jsxs("div", { className: cn("relative flex-1 flex flex-col", isV ? "p-3" : isH ? "p-5" : "p-3 md:p-5"), children: [
|
|
123
|
+
hotel.reviewRating != null && hotel.reviewRating > 0 && /* @__PURE__ */ jsxs("div", { className: cn("absolute top-0 flex flex-col items-center rounded-b-lg shadow-sm bg-primary", isV ? "right-3 px-2.5 py-2" : isH ? "right-5 px-3 py-2.5" : "right-3 md:right-5 px-2.5 py-2 md:px-3 md:py-2.5"), children: [
|
|
124
|
+
/* @__PURE__ */ jsx("span", { className: cn("text-white font-bold leading-tight", isV ? "text-sm" : isH ? "text-base" : "text-sm md:text-base"), children: hotel.reviewRating.toFixed(1) }),
|
|
125
|
+
hotel.reviewCount != null && hotel.reviewCount > 0 && /* @__PURE__ */ jsxs("span", { className: cn("text-white/80 leading-tight mt-0.5", isV ? "text-[9px]" : isH ? "text-[10px]" : "text-[9px] md:text-[10px]"), children: [
|
|
126
|
+
hotel.reviewCount.toLocaleString("fr-FR"),
|
|
127
|
+
" avis"
|
|
128
|
+
] })
|
|
129
|
+
] }),
|
|
130
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
131
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 text-text-muted text-sm mb-1", children: [
|
|
132
|
+
/* @__PURE__ */ jsx(MapPinIcon, { className: "w-4 h-4" }),
|
|
133
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
134
|
+
hotel.city || "Ville inconnue",
|
|
135
|
+
hotel.region && hotel.region !== hotel.city ? `, ${hotel.region}` : ""
|
|
136
|
+
] })
|
|
137
|
+
] }),
|
|
138
|
+
/* @__PURE__ */ jsxs(
|
|
139
|
+
"div",
|
|
140
|
+
{
|
|
141
|
+
className: cn(
|
|
142
|
+
isV ? "flex flex-col gap-1 mb-1" : isH ? "flex items-baseline gap-2 mb-2" : "flex flex-col gap-1 mb-1 md:flex-row md:items-baseline md:gap-2 md:mb-2",
|
|
143
|
+
hotel.reviewRating != null && hotel.reviewRating > 0 && (isV ? "pr-16" : isH ? "pr-20" : "pr-16 md:pr-20")
|
|
144
|
+
),
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ jsx("h3", { className: cn("font-heading text-primary hover:text-secondary transition-colors line-clamp-1", isV ? "text-base" : isH ? "text-xl" : "text-base md:text-xl"), children: hotel.name }),
|
|
147
|
+
hotel.rating != null && hotel.rating > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-0.5 shrink-0", children: Array.from({ length: hotel.rating }, (_, i) => /* @__PURE__ */ jsx(
|
|
148
|
+
StarIcon,
|
|
149
|
+
{
|
|
150
|
+
className: "w-3 h-3 fill-amber-400 text-amber-400"
|
|
151
|
+
},
|
|
152
|
+
i
|
|
153
|
+
)) })
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
),
|
|
157
|
+
hotel.amenities && hotel.amenities.length > 0 && /* @__PURE__ */ jsx("div", { className: cn("flex flex-wrap gap-x-3 gap-y-1", isV ? "mb-2" : isH ? "mb-3" : "mb-2 md:mb-3"), children: hotel.amenities.slice(0, 6).map((amenity, i) => /* @__PURE__ */ jsxs(
|
|
158
|
+
"span",
|
|
159
|
+
{
|
|
160
|
+
className: cn(
|
|
161
|
+
"text-xs text-text-muted flex items-center gap-1",
|
|
162
|
+
i >= 3 && (isV ? "hidden" : isH ? "flex" : "hidden md:flex")
|
|
163
|
+
),
|
|
164
|
+
children: [
|
|
165
|
+
/* @__PURE__ */ jsx(CheckIcon, { className: "w-3.5 h-3.5 text-accent flex-shrink-0" }),
|
|
166
|
+
amenity
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
i
|
|
170
|
+
)) }),
|
|
171
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex items-center text-sm", isV ? "gap-2" : isH ? "gap-4" : "gap-2 md:gap-4"), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-secondary", children: [
|
|
172
|
+
/* @__PURE__ */ jsx(DogIcon, { className: "w-4 h-4" }),
|
|
173
|
+
/* @__PURE__ */ jsx("span", { className: cn("font-medium", isV ? "text-xs" : isH ? "text-sm" : "text-xs md:text-sm"), children: hotel.petPolicyLabel || `Max ${hotel.maxDogs || 1} chien${(hotel.maxDogs || 1) > 1 ? "s" : ""}` })
|
|
174
|
+
] }) })
|
|
175
|
+
] }),
|
|
176
|
+
/* @__PURE__ */ jsxs("div", { className: cn("flex items-end justify-between border-t border-sand-dark", isV ? "mt-3 pt-3" : isH ? "mt-4 pt-4" : "mt-3 md:mt-4 pt-3 md:pt-4"), children: [
|
|
177
|
+
/* @__PURE__ */ jsx("div", { children: hotel.dogFeeUnknown ? /* @__PURE__ */ jsx("span", { className: cn("text-xs text-text-muted", isV ? "hidden" : isH ? "inline" : "hidden md:inline"), children: "Frais chien \xE0 confirmer" }) : hotel.dogFeePerNight === 0 ? /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 px-2 py-1 bg-accent/10 text-accent text-xs font-medium rounded-md", children: [
|
|
178
|
+
/* @__PURE__ */ jsx(DogIcon, { className: "w-3.5 h-3.5" }),
|
|
179
|
+
/* @__PURE__ */ jsx("span", { className: isV ? "hidden" : isH ? "inline" : "hidden md:inline", children: "Chien gratuit" }),
|
|
180
|
+
/* @__PURE__ */ jsx("span", { className: isV ? "inline" : isH ? "hidden" : "md:hidden", children: "Gratuit" })
|
|
181
|
+
] }) : hotel.dogFeePerNight != null ? /* @__PURE__ */ jsxs("span", { className: "text-xs text-text-muted", children: [
|
|
182
|
+
"+",
|
|
183
|
+
formatPrice(hotel.dogFeePerNight),
|
|
184
|
+
/* @__PURE__ */ jsx("span", { className: isV ? "hidden" : isH ? "inline" : "hidden md:inline", children: "/nuit par chien" })
|
|
185
|
+
] }) : null }),
|
|
186
|
+
/* @__PURE__ */ jsx("div", { className: "text-right", children: hotel.pricePerNight != null && hotel.pricePerNight > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
187
|
+
isIndicativePrice && /* @__PURE__ */ jsx("p", { className: "text-xs text-text-muted mb-0.5", children: "\xC0 partir de" }),
|
|
188
|
+
!isIndicativePrice && hotel.originalPrice && hotel.originalPrice > hotel.pricePerNight && /* @__PURE__ */ jsx("span", { className: cn("text-sm text-text-muted line-through mr-2", isV ? "hidden" : isH ? "inline" : "hidden md:inline"), children: formatPrice(hotel.originalPrice) }),
|
|
189
|
+
/* @__PURE__ */ jsx(
|
|
190
|
+
"span",
|
|
191
|
+
{
|
|
192
|
+
className: cn(
|
|
193
|
+
"font-heading font-bold text-primary",
|
|
194
|
+
isIndicativePrice ? isV ? "text-lg" : isH ? "text-xl" : "text-lg md:text-xl" : isV ? "text-xl" : isH ? "text-2xl" : "text-xl md:text-2xl"
|
|
195
|
+
),
|
|
196
|
+
children: formatPrice(hotel.pricePerNight)
|
|
197
|
+
}
|
|
198
|
+
),
|
|
199
|
+
/* @__PURE__ */ jsxs("span", { className: cn("text-text-muted", isV ? "text-xs" : isH ? "text-sm" : "text-xs md:text-sm"), children: [
|
|
200
|
+
" ",
|
|
201
|
+
"/ nuit"
|
|
202
|
+
] }),
|
|
203
|
+
!isIndicativePrice && /* @__PURE__ */ jsx("p", { className: cn("text-xs text-text-muted mt-1", isV ? "hidden" : isH ? "block" : "hidden md:block"), children: "Taxes et frais inclus" })
|
|
204
|
+
] }) : priceLoading ? /* @__PURE__ */ jsxs("div", { className: "animate-pulse flex flex-col items-end gap-1", children: [
|
|
205
|
+
/* @__PURE__ */ jsx("div", { className: "h-7 w-20 bg-sand rounded" }),
|
|
206
|
+
/* @__PURE__ */ jsx("div", { className: "h-3 w-14 bg-sand-light rounded" })
|
|
207
|
+
] }) : noAvailability ? /* @__PURE__ */ jsx("span", { className: "text-sm text-text-muted", children: "Non disponible" }) : /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-secondary", children: "Voir le prix \u2192" }) })
|
|
208
|
+
] })
|
|
209
|
+
] })
|
|
210
|
+
] });
|
|
211
|
+
return /* @__PURE__ */ jsxs(
|
|
212
|
+
"div",
|
|
213
|
+
{
|
|
214
|
+
ref,
|
|
215
|
+
className: cn(
|
|
216
|
+
"bg-white rounded-xl border border-sand-dark overflow-hidden hover:shadow-lg transition-shadow",
|
|
217
|
+
className
|
|
218
|
+
),
|
|
219
|
+
...props,
|
|
220
|
+
children: [
|
|
221
|
+
isSponsored && /* @__PURE__ */ jsx("div", { className: "bg-sand-light px-4 py-2 border-b border-sand-dark", children: /* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-text-muted", children: "Annonce sponsoris\xE9e" }) }),
|
|
222
|
+
renderLink ? renderLink({
|
|
223
|
+
href: hotel.href,
|
|
224
|
+
className: linkClassName,
|
|
225
|
+
children: linkContent
|
|
226
|
+
}) : /* @__PURE__ */ jsx("a", { href: hotel.href, className: linkClassName, children: linkContent })
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
);
|
|
232
|
+
HotelCard.displayName = "HotelCard";
|
|
233
|
+
|
|
234
|
+
export { HotelCard };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { cn } from './chunk-IMKLN273.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var DropdownMenu = React.forwardRef(
|
|
6
|
+
({ trigger, items, onSelect, align = "left", className }, ref) => {
|
|
7
|
+
const [open, setOpen] = React.useState(false);
|
|
8
|
+
const containerRef = React.useRef(null);
|
|
9
|
+
React.useEffect(() => {
|
|
10
|
+
function handleClickOutside(e) {
|
|
11
|
+
if (containerRef.current && !containerRef.current.contains(e.target)) {
|
|
12
|
+
setOpen(false);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
if (open) {
|
|
16
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
17
|
+
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
18
|
+
}
|
|
19
|
+
}, [open]);
|
|
20
|
+
React.useEffect(() => {
|
|
21
|
+
function handleEscape(e) {
|
|
22
|
+
if (e.key === "Escape") setOpen(false);
|
|
23
|
+
}
|
|
24
|
+
if (open) {
|
|
25
|
+
document.addEventListener("keydown", handleEscape);
|
|
26
|
+
return () => document.removeEventListener("keydown", handleEscape);
|
|
27
|
+
}
|
|
28
|
+
}, [open]);
|
|
29
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: cn("relative inline-block", className), children: [
|
|
30
|
+
/* @__PURE__ */ jsx(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
ref: containerRef,
|
|
34
|
+
onClick: () => setOpen((o) => !o),
|
|
35
|
+
role: "button",
|
|
36
|
+
tabIndex: 0,
|
|
37
|
+
"aria-expanded": open,
|
|
38
|
+
"aria-haspopup": "menu",
|
|
39
|
+
onKeyDown: (e) => {
|
|
40
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
setOpen((o) => !o);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
children: trigger
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
open && /* @__PURE__ */ jsx(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
role: "menu",
|
|
52
|
+
className: cn(
|
|
53
|
+
"absolute z-50 mt-1 min-w-[180px] bg-white rounded-xl border border-gray-200 shadow-lg py-1 animate-megamenu-in",
|
|
54
|
+
align === "right" ? "right-0" : "left-0"
|
|
55
|
+
),
|
|
56
|
+
children: items.map((item) => /* @__PURE__ */ jsxs(
|
|
57
|
+
"button",
|
|
58
|
+
{
|
|
59
|
+
role: "menuitem",
|
|
60
|
+
disabled: item.disabled,
|
|
61
|
+
onClick: () => {
|
|
62
|
+
onSelect(item.id);
|
|
63
|
+
setOpen(false);
|
|
64
|
+
},
|
|
65
|
+
className: cn(
|
|
66
|
+
"flex items-center gap-2 w-full px-4 py-2.5 text-sm text-left transition-colors",
|
|
67
|
+
item.destructive ? "text-red-600 hover:bg-red-50" : "text-gray-700 hover:bg-gray-50",
|
|
68
|
+
item.disabled && "opacity-40 cursor-not-allowed"
|
|
69
|
+
),
|
|
70
|
+
children: [
|
|
71
|
+
item.icon && /* @__PURE__ */ jsx("span", { className: "flex-shrink-0", "aria-hidden": "true", children: item.icon }),
|
|
72
|
+
item.label
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
item.id
|
|
76
|
+
))
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] });
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
DropdownMenu.displayName = "DropdownMenu";
|
|
83
|
+
|
|
84
|
+
export { DropdownMenu };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { cn } from './chunk-IMKLN273.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var ImageGallery = React.forwardRef(
|
|
6
|
+
({ images, className, maxVisible = 5, onImageClick }, ref) => {
|
|
7
|
+
if (images.length === 0) return null;
|
|
8
|
+
const visible = images.slice(0, maxVisible);
|
|
9
|
+
const remaining = images.length - maxVisible;
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
ref,
|
|
14
|
+
className: cn(
|
|
15
|
+
"grid gap-2 rounded-xl overflow-hidden",
|
|
16
|
+
visible.length === 1 && "grid-cols-1",
|
|
17
|
+
visible.length === 2 && "grid-cols-2",
|
|
18
|
+
visible.length >= 3 && "grid-cols-4 grid-rows-2",
|
|
19
|
+
className
|
|
20
|
+
),
|
|
21
|
+
children: visible.map((img, i) => /* @__PURE__ */ jsxs(
|
|
22
|
+
"button",
|
|
23
|
+
{
|
|
24
|
+
onClick: () => onImageClick?.(i),
|
|
25
|
+
className: cn(
|
|
26
|
+
"relative overflow-hidden group",
|
|
27
|
+
visible.length >= 3 && i === 0 && "col-span-2 row-span-2",
|
|
28
|
+
i === 0 ? "aspect-[4/3]" : "aspect-[3/2]"
|
|
29
|
+
),
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ jsx(
|
|
32
|
+
"img",
|
|
33
|
+
{
|
|
34
|
+
src: img.src,
|
|
35
|
+
alt: img.alt,
|
|
36
|
+
className: "absolute inset-0 w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",
|
|
37
|
+
loading: i === 0 ? "eager" : "lazy"
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
i === maxVisible - 1 && remaining > 0 && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/40 flex items-center justify-center", children: /* @__PURE__ */ jsxs("span", { className: "text-white text-xl font-bold", children: [
|
|
41
|
+
"+",
|
|
42
|
+
remaining
|
|
43
|
+
] }) })
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
i
|
|
47
|
+
))
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
ImageGallery.displayName = "ImageGallery";
|
|
53
|
+
|
|
54
|
+
export { ImageGallery };
|
|
@@ -0,0 +1,56 @@
|
|
|
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 SegmentedControl = React__namespace.forwardRef(
|
|
28
|
+
({ options, value, onChange, className }, ref) => {
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
ref,
|
|
33
|
+
className: chunkADIDI7AJ_js.cn("flex gap-1 bg-gray-100 rounded-full p-1", className),
|
|
34
|
+
role: "radiogroup",
|
|
35
|
+
children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
36
|
+
"button",
|
|
37
|
+
{
|
|
38
|
+
type: "button",
|
|
39
|
+
role: "radio",
|
|
40
|
+
"aria-checked": value === option.value,
|
|
41
|
+
onClick: () => onChange(option.value),
|
|
42
|
+
className: chunkADIDI7AJ_js.cn(
|
|
43
|
+
"px-3 py-1.5 text-sm rounded-full transition-all",
|
|
44
|
+
value === option.value ? "bg-white text-gray-900 shadow-sm font-medium" : "text-gray-600 hover:text-gray-900"
|
|
45
|
+
),
|
|
46
|
+
children: option.label
|
|
47
|
+
},
|
|
48
|
+
option.value
|
|
49
|
+
))
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
SegmentedControl.displayName = "SegmentedControl";
|
|
55
|
+
|
|
56
|
+
exports.SegmentedControl = SegmentedControl;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { cn } from './chunk-IMKLN273.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var defaultRenderLink = ({
|
|
6
|
+
href,
|
|
7
|
+
className,
|
|
8
|
+
onClick,
|
|
9
|
+
children
|
|
10
|
+
}) => /* @__PURE__ */ jsx("a", { href, className, onClick, children });
|
|
11
|
+
var MobileMenu = React.forwardRef(
|
|
12
|
+
({
|
|
13
|
+
items,
|
|
14
|
+
isOpen,
|
|
15
|
+
onClose,
|
|
16
|
+
header,
|
|
17
|
+
footer,
|
|
18
|
+
extraLinks,
|
|
19
|
+
renderLink = defaultRenderLink,
|
|
20
|
+
className
|
|
21
|
+
}, ref) => {
|
|
22
|
+
const [expandedSection, setExpandedSection] = React.useState(
|
|
23
|
+
null
|
|
24
|
+
);
|
|
25
|
+
React.useEffect(() => {
|
|
26
|
+
if (isOpen) {
|
|
27
|
+
const prev = document.body.style.overflow;
|
|
28
|
+
document.body.style.overflow = "hidden";
|
|
29
|
+
return () => {
|
|
30
|
+
document.body.style.overflow = prev;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}, [isOpen]);
|
|
34
|
+
React.useEffect(() => {
|
|
35
|
+
if (!isOpen) setExpandedSection(null);
|
|
36
|
+
}, [isOpen]);
|
|
37
|
+
if (!isOpen) return null;
|
|
38
|
+
const toggleSection = (label) => {
|
|
39
|
+
setExpandedSection(expandedSection === label ? null : label);
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ jsxs(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
ref,
|
|
45
|
+
className: cn("fixed inset-0 z-50 bg-white flex flex-col", className),
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-4 h-16 border-b border-gray-100 shrink-0", children: [
|
|
48
|
+
header || /* @__PURE__ */ jsx("div", {}),
|
|
49
|
+
/* @__PURE__ */ jsx(
|
|
50
|
+
"button",
|
|
51
|
+
{
|
|
52
|
+
onClick: onClose,
|
|
53
|
+
className: "p-2 hover:bg-gray-100 rounded-full transition-colors",
|
|
54
|
+
"aria-label": "Fermer le menu",
|
|
55
|
+
children: /* @__PURE__ */ jsxs(
|
|
56
|
+
"svg",
|
|
57
|
+
{
|
|
58
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
59
|
+
width: "24",
|
|
60
|
+
height: "24",
|
|
61
|
+
viewBox: "0 0 24 24",
|
|
62
|
+
fill: "none",
|
|
63
|
+
stroke: "currentColor",
|
|
64
|
+
strokeWidth: "2",
|
|
65
|
+
strokeLinecap: "round",
|
|
66
|
+
strokeLinejoin: "round",
|
|
67
|
+
className: "text-primary",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
70
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto px-4 py-4", children: /* @__PURE__ */ jsxs("nav", { className: "flex flex-col gap-1", children: [
|
|
78
|
+
items.map((item) => /* @__PURE__ */ jsx("div", { children: item.type === "link" ? /* @__PURE__ */ jsx(Fragment, { children: renderLink({
|
|
79
|
+
href: item.href || "#",
|
|
80
|
+
className: "flex items-center justify-between px-4 py-3.5 text-base font-medium text-primary hover:bg-gray-50 rounded-lg transition-colors",
|
|
81
|
+
onClick: onClose,
|
|
82
|
+
children: item.label
|
|
83
|
+
}) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
84
|
+
/* @__PURE__ */ jsxs(
|
|
85
|
+
"button",
|
|
86
|
+
{
|
|
87
|
+
onClick: () => toggleSection(item.label),
|
|
88
|
+
className: "flex items-center justify-between w-full px-4 py-3.5 text-base font-medium text-primary hover:bg-gray-50 rounded-lg transition-colors",
|
|
89
|
+
children: [
|
|
90
|
+
item.label,
|
|
91
|
+
/* @__PURE__ */ jsx(
|
|
92
|
+
"svg",
|
|
93
|
+
{
|
|
94
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
95
|
+
width: "20",
|
|
96
|
+
height: "20",
|
|
97
|
+
viewBox: "0 0 24 24",
|
|
98
|
+
fill: "none",
|
|
99
|
+
stroke: "currentColor",
|
|
100
|
+
strokeWidth: "2",
|
|
101
|
+
strokeLinecap: "round",
|
|
102
|
+
strokeLinejoin: "round",
|
|
103
|
+
className: cn(
|
|
104
|
+
"text-gray-400 transition-transform duration-200",
|
|
105
|
+
expandedSection === item.label && "rotate-180"
|
|
106
|
+
),
|
|
107
|
+
children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" })
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ jsx(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
className: cn(
|
|
117
|
+
"overflow-hidden transition-all duration-200",
|
|
118
|
+
expandedSection === item.label ? "max-h-[600px] opacity-100" : "max-h-0 opacity-0"
|
|
119
|
+
),
|
|
120
|
+
children: /* @__PURE__ */ jsx("div", { className: "pl-4 pb-2", children: item.children?.map((child) => /* @__PURE__ */ jsx(React.Fragment, { children: renderLink({
|
|
121
|
+
href: child.href,
|
|
122
|
+
className: "block px-4 py-2.5 text-sm text-gray-600 hover:text-primary hover:bg-gray-50 rounded-lg transition-colors",
|
|
123
|
+
onClick: onClose,
|
|
124
|
+
children: child.label
|
|
125
|
+
}) }, child.label)) })
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
] }) }, item.label)),
|
|
129
|
+
extraLinks && extraLinks.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
130
|
+
/* @__PURE__ */ jsx("hr", { className: "my-3 border-gray-100" }),
|
|
131
|
+
extraLinks.map((link) => /* @__PURE__ */ jsx(React.Fragment, { children: renderLink({
|
|
132
|
+
href: link.href,
|
|
133
|
+
className: "flex items-center gap-3 px-4 py-3.5 text-base font-medium text-primary hover:bg-gray-50 rounded-lg transition-colors",
|
|
134
|
+
onClick: onClose,
|
|
135
|
+
children: link.label
|
|
136
|
+
}) }, link.label))
|
|
137
|
+
] })
|
|
138
|
+
] }) }),
|
|
139
|
+
footer && /* @__PURE__ */ jsx("div", { className: "shrink-0 px-4 py-4 border-t border-gray-100 bg-white", children: footer })
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
MobileMenu.displayName = "MobileMenu";
|
|
146
|
+
|
|
147
|
+
export { MobileMenu };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { cn } from './chunk-IMKLN273.mjs';
|
|
2
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
function CardList({
|
|
5
|
+
items,
|
|
6
|
+
renderItem,
|
|
7
|
+
keyExtractor,
|
|
8
|
+
pageSize,
|
|
9
|
+
staggerDelay = 50,
|
|
10
|
+
loading = false,
|
|
11
|
+
loadingSkeleton,
|
|
12
|
+
hasMore = false,
|
|
13
|
+
loadingMore = false,
|
|
14
|
+
loadMoreRef,
|
|
15
|
+
loadMoreSkeleton,
|
|
16
|
+
gap = "gap-4",
|
|
17
|
+
className
|
|
18
|
+
}) {
|
|
19
|
+
if (loading) {
|
|
20
|
+
return /* @__PURE__ */ jsx(Fragment, { children: loadingSkeleton });
|
|
21
|
+
}
|
|
22
|
+
const effectivePageSize = pageSize ?? items.length;
|
|
23
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col", gap, className), children: [
|
|
24
|
+
items.map((item, index) => /* @__PURE__ */ jsx(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
className: "animate-card-appear",
|
|
28
|
+
style: {
|
|
29
|
+
animationDelay: `${index % effectivePageSize * staggerDelay}ms`
|
|
30
|
+
},
|
|
31
|
+
children: renderItem(item, index)
|
|
32
|
+
},
|
|
33
|
+
keyExtractor(item)
|
|
34
|
+
)),
|
|
35
|
+
hasMore && items.length > 0 && /* @__PURE__ */ jsx("div", { ref: loadMoreRef, children: loadingMore && loadMoreSkeleton })
|
|
36
|
+
] });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { CardList };
|