@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,95 @@
|
|
|
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
|
+
var ErrorBoundary = class extends react.Component {
|
|
8
|
+
constructor(props) {
|
|
9
|
+
super(props);
|
|
10
|
+
this.handleRetry = () => {
|
|
11
|
+
this.setState({ hasError: false, error: void 0 });
|
|
12
|
+
};
|
|
13
|
+
this.state = { hasError: false };
|
|
14
|
+
}
|
|
15
|
+
static getDerivedStateFromError(error) {
|
|
16
|
+
return { hasError: true, error };
|
|
17
|
+
}
|
|
18
|
+
componentDidCatch(error, errorInfo) {
|
|
19
|
+
console.error("[ErrorBoundary] Caught error:", error, errorInfo);
|
|
20
|
+
this.props.onError?.(error, errorInfo);
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
if (this.state.hasError) {
|
|
24
|
+
if (this.props.fallback) {
|
|
25
|
+
return this.props.fallback;
|
|
26
|
+
}
|
|
27
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: chunkADIDI7AJ_js.cn(
|
|
31
|
+
"p-6 bg-white rounded-xl border border-sand-dark text-center",
|
|
32
|
+
this.props.className
|
|
33
|
+
),
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
36
|
+
"svg",
|
|
37
|
+
{
|
|
38
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
+
width: "48",
|
|
40
|
+
height: "48",
|
|
41
|
+
viewBox: "0 0 24 24",
|
|
42
|
+
fill: "none",
|
|
43
|
+
stroke: "currentColor",
|
|
44
|
+
strokeWidth: "2",
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeLinejoin: "round",
|
|
47
|
+
className: "text-secondary mx-auto mb-4",
|
|
48
|
+
"aria-hidden": "true",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsxRuntime.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" }),
|
|
51
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 9v4" }),
|
|
52
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 17h.01" })
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-heading text-lg text-primary mb-2", children: "Something went wrong" }),
|
|
57
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-text-secondary text-sm mb-4", children: "Some elements could not be displayed." }),
|
|
58
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
59
|
+
"button",
|
|
60
|
+
{
|
|
61
|
+
onClick: this.handleRetry,
|
|
62
|
+
className: "inline-flex items-center gap-2 px-4 py-2 bg-secondary text-white rounded-lg hover:bg-secondary-dark transition-colors",
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
65
|
+
"svg",
|
|
66
|
+
{
|
|
67
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
68
|
+
width: "16",
|
|
69
|
+
height: "16",
|
|
70
|
+
viewBox: "0 0 24 24",
|
|
71
|
+
fill: "none",
|
|
72
|
+
stroke: "currentColor",
|
|
73
|
+
strokeWidth: "2",
|
|
74
|
+
strokeLinecap: "round",
|
|
75
|
+
strokeLinejoin: "round",
|
|
76
|
+
"aria-hidden": "true",
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }),
|
|
79
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M21 3v5h-5" })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
"Retry"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
return this.props.children;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
exports.ErrorBoundary = ErrorBoundary;
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
function getPageRange(current, total, siblings) {
|
|
28
|
+
const totalNumbers = siblings * 2 + 3;
|
|
29
|
+
if (total <= totalNumbers + 2) {
|
|
30
|
+
return Array.from({ length: total }, (_, i) => i + 1);
|
|
31
|
+
}
|
|
32
|
+
const leftSibling = Math.max(current - siblings, 2);
|
|
33
|
+
const rightSibling = Math.min(current + siblings, total - 1);
|
|
34
|
+
const showLeftDots = leftSibling > 2;
|
|
35
|
+
const showRightDots = rightSibling < total - 1;
|
|
36
|
+
const pages = [1];
|
|
37
|
+
if (showLeftDots) {
|
|
38
|
+
pages.push("dots");
|
|
39
|
+
}
|
|
40
|
+
for (let i = leftSibling; i <= rightSibling; i++) {
|
|
41
|
+
pages.push(i);
|
|
42
|
+
}
|
|
43
|
+
if (showRightDots) {
|
|
44
|
+
pages.push("dots");
|
|
45
|
+
}
|
|
46
|
+
pages.push(total);
|
|
47
|
+
return pages;
|
|
48
|
+
}
|
|
49
|
+
var Pagination = React__namespace.forwardRef(
|
|
50
|
+
({ currentPage, totalPages, onPageChange, siblingCount = 1, className }, ref) => {
|
|
51
|
+
if (totalPages <= 1) return null;
|
|
52
|
+
const pages = getPageRange(currentPage, totalPages, siblingCount);
|
|
53
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
54
|
+
"nav",
|
|
55
|
+
{
|
|
56
|
+
ref,
|
|
57
|
+
role: "navigation",
|
|
58
|
+
"aria-label": "Pagination",
|
|
59
|
+
className: chunkADIDI7AJ_js.cn("flex items-center justify-center gap-1", className),
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62
|
+
"button",
|
|
63
|
+
{
|
|
64
|
+
onClick: () => onPageChange(currentPage - 1),
|
|
65
|
+
disabled: currentPage === 1,
|
|
66
|
+
className: "flex items-center justify-center w-10 h-10 rounded-lg border border-gray-200 text-primary hover:bg-gray-50 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",
|
|
67
|
+
"aria-label": "Page pr\xE9c\xE9dente",
|
|
68
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("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: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m15 18-6-6 6-6" }) })
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
pages.map(
|
|
72
|
+
(page, i) => page === "dots" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
73
|
+
"span",
|
|
74
|
+
{
|
|
75
|
+
className: "flex items-center justify-center w-10 h-10 text-gray-400 text-sm",
|
|
76
|
+
"aria-hidden": "true",
|
|
77
|
+
children: "..."
|
|
78
|
+
},
|
|
79
|
+
`dots-${i}`
|
|
80
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
81
|
+
"button",
|
|
82
|
+
{
|
|
83
|
+
onClick: () => onPageChange(page),
|
|
84
|
+
className: chunkADIDI7AJ_js.cn(
|
|
85
|
+
"flex items-center justify-center w-10 h-10 rounded-lg text-sm font-medium transition-colors",
|
|
86
|
+
page === currentPage ? "bg-secondary text-white" : "border border-gray-200 text-primary hover:bg-gray-50"
|
|
87
|
+
),
|
|
88
|
+
"aria-label": `Page ${page}`,
|
|
89
|
+
"aria-current": page === currentPage ? "page" : void 0,
|
|
90
|
+
children: page
|
|
91
|
+
},
|
|
92
|
+
page
|
|
93
|
+
)
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
96
|
+
"button",
|
|
97
|
+
{
|
|
98
|
+
onClick: () => onPageChange(currentPage + 1),
|
|
99
|
+
disabled: currentPage === totalPages,
|
|
100
|
+
className: "flex items-center justify-center w-10 h-10 rounded-lg border border-gray-200 text-primary hover:bg-gray-50 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",
|
|
101
|
+
"aria-label": "Page suivante",
|
|
102
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("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: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m9 18 6-6-6-6" }) })
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
Pagination.displayName = "Pagination";
|
|
111
|
+
|
|
112
|
+
exports.Pagination = Pagination;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { cn } from './chunk-IMKLN273.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var starSizes = {
|
|
6
|
+
sm: "w-3 h-3",
|
|
7
|
+
md: "w-4 h-4",
|
|
8
|
+
lg: "w-5 h-5"
|
|
9
|
+
};
|
|
10
|
+
var textSizes = {
|
|
11
|
+
sm: "text-xs",
|
|
12
|
+
md: "text-sm",
|
|
13
|
+
lg: "text-base"
|
|
14
|
+
};
|
|
15
|
+
function StarIcon({ className }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(
|
|
17
|
+
"svg",
|
|
18
|
+
{
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
+
viewBox: "0 0 24 24",
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
stroke: "currentColor",
|
|
23
|
+
strokeWidth: "2",
|
|
24
|
+
strokeLinecap: "round",
|
|
25
|
+
strokeLinejoin: "round",
|
|
26
|
+
className,
|
|
27
|
+
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" })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function StarHalfIcon({ className }) {
|
|
32
|
+
return /* @__PURE__ */ jsxs(
|
|
33
|
+
"svg",
|
|
34
|
+
{
|
|
35
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
+
viewBox: "0 0 24 24",
|
|
37
|
+
stroke: "currentColor",
|
|
38
|
+
strokeWidth: "2",
|
|
39
|
+
strokeLinecap: "round",
|
|
40
|
+
strokeLinejoin: "round",
|
|
41
|
+
className,
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "half", children: /* @__PURE__ */ jsx("rect", { x: "0", y: "0", width: "12", height: "24" }) }) }),
|
|
44
|
+
/* @__PURE__ */ jsx(
|
|
45
|
+
"polygon",
|
|
46
|
+
{
|
|
47
|
+
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",
|
|
48
|
+
fill: "currentColor",
|
|
49
|
+
clipPath: "url(#half)"
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ jsx(
|
|
53
|
+
"polygon",
|
|
54
|
+
{
|
|
55
|
+
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",
|
|
56
|
+
fill: "none"
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
var Rating = React.forwardRef(
|
|
64
|
+
({
|
|
65
|
+
value,
|
|
66
|
+
max = 5,
|
|
67
|
+
size = "md",
|
|
68
|
+
showValue = false,
|
|
69
|
+
reviewCount,
|
|
70
|
+
className,
|
|
71
|
+
...props
|
|
72
|
+
}, ref) => {
|
|
73
|
+
const fullStars = Math.floor(value);
|
|
74
|
+
const hasHalfStar = value % 1 >= 0.5;
|
|
75
|
+
const emptyStars = max - fullStars - (hasHalfStar ? 1 : 0);
|
|
76
|
+
return /* @__PURE__ */ jsxs(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
ref,
|
|
80
|
+
className: cn("flex items-center gap-1", className),
|
|
81
|
+
role: "img",
|
|
82
|
+
"aria-label": `${value} sur ${max} \xE9toiles`,
|
|
83
|
+
...props,
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
86
|
+
Array.from({ length: fullStars }).map((_, i) => /* @__PURE__ */ jsx(
|
|
87
|
+
StarIcon,
|
|
88
|
+
{
|
|
89
|
+
className: cn(starSizes[size], "fill-yellow-400 text-yellow-400")
|
|
90
|
+
},
|
|
91
|
+
`full-${i}`
|
|
92
|
+
)),
|
|
93
|
+
hasHalfStar && /* @__PURE__ */ jsx(
|
|
94
|
+
StarHalfIcon,
|
|
95
|
+
{
|
|
96
|
+
className: cn(starSizes[size], "text-yellow-400")
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
Array.from({ length: emptyStars }).map((_, i) => /* @__PURE__ */ jsx(
|
|
100
|
+
StarIcon,
|
|
101
|
+
{
|
|
102
|
+
className: cn(starSizes[size], "fill-none text-gray-300")
|
|
103
|
+
},
|
|
104
|
+
`empty-${i}`
|
|
105
|
+
))
|
|
106
|
+
] }),
|
|
107
|
+
showValue && /* @__PURE__ */ jsx("span", { className: cn("font-medium text-primary", textSizes[size]), children: value.toFixed(1) }),
|
|
108
|
+
reviewCount !== void 0 && /* @__PURE__ */ jsxs("span", { className: cn("text-text-muted", textSizes[size]), children: [
|
|
109
|
+
"(",
|
|
110
|
+
reviewCount,
|
|
111
|
+
" avis)"
|
|
112
|
+
] })
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
Rating.displayName = "Rating";
|
|
119
|
+
|
|
120
|
+
export { Rating };
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
children
|
|
9
|
+
}) => /* @__PURE__ */ jsx("a", { href, className, children });
|
|
10
|
+
var Footer = React.forwardRef(
|
|
11
|
+
({
|
|
12
|
+
brand,
|
|
13
|
+
linkGroups = [],
|
|
14
|
+
bottomLinks = [],
|
|
15
|
+
bottomExtra,
|
|
16
|
+
copyright,
|
|
17
|
+
tagline,
|
|
18
|
+
renderLink = defaultRenderLink,
|
|
19
|
+
className
|
|
20
|
+
}, ref) => {
|
|
21
|
+
const year = (/* @__PURE__ */ new Date()).getFullYear();
|
|
22
|
+
return /* @__PURE__ */ jsxs("footer", { ref, className: cn("bg-primary text-white", className), children: [
|
|
23
|
+
/* @__PURE__ */ jsx("div", { className: "py-12 md:py-16", children: /* @__PURE__ */ jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: cn(
|
|
27
|
+
"grid gap-8",
|
|
28
|
+
brand ? "grid-cols-2 md:grid-cols-3 lg:grid-cols-5" : "grid-cols-2 md:grid-cols-4"
|
|
29
|
+
),
|
|
30
|
+
children: [
|
|
31
|
+
brand && /* @__PURE__ */ jsxs("div", { className: "col-span-2 md:col-span-3 lg:col-span-1", children: [
|
|
32
|
+
/* @__PURE__ */ jsx("div", { className: "mb-4", children: brand.logo }),
|
|
33
|
+
brand.description && /* @__PURE__ */ jsx("p", { className: "text-white/80 text-sm mb-6", children: brand.description }),
|
|
34
|
+
brand.contactEmail && /* @__PURE__ */ jsxs(
|
|
35
|
+
"a",
|
|
36
|
+
{
|
|
37
|
+
href: `mailto:${brand.contactEmail}`,
|
|
38
|
+
className: "flex items-center gap-2 text-sm text-white/70 hover:text-secondary transition-colors",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ jsxs(
|
|
41
|
+
"svg",
|
|
42
|
+
{
|
|
43
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
44
|
+
width: "16",
|
|
45
|
+
height: "16",
|
|
46
|
+
viewBox: "0 0 24 24",
|
|
47
|
+
fill: "none",
|
|
48
|
+
stroke: "currentColor",
|
|
49
|
+
strokeWidth: "2",
|
|
50
|
+
strokeLinecap: "round",
|
|
51
|
+
strokeLinejoin: "round",
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ jsx("rect", { width: "20", height: "16", x: "2", y: "4", rx: "2" }),
|
|
54
|
+
/* @__PURE__ */ jsx("path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
brand.contactEmail
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] }),
|
|
63
|
+
linkGroups.map((group) => /* @__PURE__ */ jsxs("div", { children: [
|
|
64
|
+
/* @__PURE__ */ jsx("p", { className: "font-heading font-bold mb-4", children: group.title }),
|
|
65
|
+
/* @__PURE__ */ jsx("ul", { className: "space-y-2", children: group.links.map((link) => /* @__PURE__ */ jsx("li", { children: renderLink({
|
|
66
|
+
href: link.href,
|
|
67
|
+
className: "text-sm text-white/70 hover:text-secondary transition-colors",
|
|
68
|
+
children: link.label
|
|
69
|
+
}) }, link.label)) }),
|
|
70
|
+
group.cta && /* @__PURE__ */ jsx("div", { className: "mt-3", children: renderLink({
|
|
71
|
+
href: group.cta.href,
|
|
72
|
+
className: "inline-flex items-center gap-1 text-sm font-medium text-secondary hover:text-secondary/80 transition-colors",
|
|
73
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
74
|
+
group.cta.label,
|
|
75
|
+
/* @__PURE__ */ jsxs(
|
|
76
|
+
"svg",
|
|
77
|
+
{
|
|
78
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
79
|
+
width: "14",
|
|
80
|
+
height: "14",
|
|
81
|
+
viewBox: "0 0 24 24",
|
|
82
|
+
fill: "none",
|
|
83
|
+
stroke: "currentColor",
|
|
84
|
+
strokeWidth: "2",
|
|
85
|
+
strokeLinecap: "round",
|
|
86
|
+
strokeLinejoin: "round",
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ jsx("path", { d: "M5 12h14" }),
|
|
89
|
+
/* @__PURE__ */ jsx("path", { d: "m12 5 7 7-7 7" })
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] })
|
|
94
|
+
}) })
|
|
95
|
+
] }, group.title))
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
) }) }),
|
|
99
|
+
/* @__PURE__ */ jsx("div", { className: "border-t border-white/10 py-6", children: /* @__PURE__ */ jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4", children: [
|
|
100
|
+
(bottomLinks.length > 0 || bottomExtra) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap justify-center gap-x-4 gap-y-2 text-sm text-white/60", children: [
|
|
101
|
+
bottomLinks.map((link) => /* @__PURE__ */ jsx(React.Fragment, { children: renderLink({
|
|
102
|
+
href: link.href,
|
|
103
|
+
className: "hover:text-white transition-colors",
|
|
104
|
+
children: link.label
|
|
105
|
+
}) }, link.label)),
|
|
106
|
+
bottomExtra
|
|
107
|
+
] }),
|
|
108
|
+
tagline && /* @__PURE__ */ jsx("div", { className: "text-sm text-white/60", children: tagline }),
|
|
109
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-white/60", children: copyright || `\xA9 ${year} DodoDog. Tous droits r\xE9serv\xE9s.` })
|
|
110
|
+
] }) }) })
|
|
111
|
+
] });
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
Footer.displayName = "Footer";
|
|
115
|
+
|
|
116
|
+
export { Footer };
|
|
@@ -0,0 +1,106 @@
|
|
|
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 DropdownMenu = React__namespace.forwardRef(
|
|
28
|
+
({ trigger, items, onSelect, align = "left", className }, ref) => {
|
|
29
|
+
const [open, setOpen] = React__namespace.useState(false);
|
|
30
|
+
const containerRef = React__namespace.useRef(null);
|
|
31
|
+
React__namespace.useEffect(() => {
|
|
32
|
+
function handleClickOutside(e) {
|
|
33
|
+
if (containerRef.current && !containerRef.current.contains(e.target)) {
|
|
34
|
+
setOpen(false);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (open) {
|
|
38
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
39
|
+
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
40
|
+
}
|
|
41
|
+
}, [open]);
|
|
42
|
+
React__namespace.useEffect(() => {
|
|
43
|
+
function handleEscape(e) {
|
|
44
|
+
if (e.key === "Escape") setOpen(false);
|
|
45
|
+
}
|
|
46
|
+
if (open) {
|
|
47
|
+
document.addEventListener("keydown", handleEscape);
|
|
48
|
+
return () => document.removeEventListener("keydown", handleEscape);
|
|
49
|
+
}
|
|
50
|
+
}, [open]);
|
|
51
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: chunkADIDI7AJ_js.cn("relative inline-block", className), children: [
|
|
52
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
ref: containerRef,
|
|
56
|
+
onClick: () => setOpen((o) => !o),
|
|
57
|
+
role: "button",
|
|
58
|
+
tabIndex: 0,
|
|
59
|
+
"aria-expanded": open,
|
|
60
|
+
"aria-haspopup": "menu",
|
|
61
|
+
onKeyDown: (e) => {
|
|
62
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
63
|
+
e.preventDefault();
|
|
64
|
+
setOpen((o) => !o);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
children: trigger
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
open && /* @__PURE__ */ jsxRuntime.jsx(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
role: "menu",
|
|
74
|
+
className: chunkADIDI7AJ_js.cn(
|
|
75
|
+
"absolute z-50 mt-1 min-w-[180px] bg-white rounded-xl border border-gray-200 shadow-lg py-1 animate-megamenu-in",
|
|
76
|
+
align === "right" ? "right-0" : "left-0"
|
|
77
|
+
),
|
|
78
|
+
children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
79
|
+
"button",
|
|
80
|
+
{
|
|
81
|
+
role: "menuitem",
|
|
82
|
+
disabled: item.disabled,
|
|
83
|
+
onClick: () => {
|
|
84
|
+
onSelect(item.id);
|
|
85
|
+
setOpen(false);
|
|
86
|
+
},
|
|
87
|
+
className: chunkADIDI7AJ_js.cn(
|
|
88
|
+
"flex items-center gap-2 w-full px-4 py-2.5 text-sm text-left transition-colors",
|
|
89
|
+
item.destructive ? "text-red-600 hover:bg-red-50" : "text-gray-700 hover:bg-gray-50",
|
|
90
|
+
item.disabled && "opacity-40 cursor-not-allowed"
|
|
91
|
+
),
|
|
92
|
+
children: [
|
|
93
|
+
item.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0", "aria-hidden": "true", children: item.icon }),
|
|
94
|
+
item.label
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
item.id
|
|
98
|
+
))
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
] });
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
DropdownMenu.displayName = "DropdownMenu";
|
|
105
|
+
|
|
106
|
+
exports.DropdownMenu = DropdownMenu;
|
|
@@ -0,0 +1,136 @@
|
|
|
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 DualRangeSlider = React__namespace.forwardRef(
|
|
28
|
+
({
|
|
29
|
+
min,
|
|
30
|
+
max,
|
|
31
|
+
step = 1,
|
|
32
|
+
valueMin,
|
|
33
|
+
valueMax,
|
|
34
|
+
onChangeMin,
|
|
35
|
+
onChangeMax,
|
|
36
|
+
formatLabel,
|
|
37
|
+
minGap,
|
|
38
|
+
className
|
|
39
|
+
}, ref) => {
|
|
40
|
+
const gap = minGap ?? step;
|
|
41
|
+
const range = max - min;
|
|
42
|
+
const leftPercent = range > 0 ? (valueMin - min) / range * 100 : 0;
|
|
43
|
+
const rightPercent = range > 0 ? 100 - (valueMax - min) / range * 100 : 0;
|
|
44
|
+
const handleMinChange = (e) => {
|
|
45
|
+
const v = Number(e.target.value);
|
|
46
|
+
onChangeMin(Math.min(v, valueMax - gap));
|
|
47
|
+
};
|
|
48
|
+
const handleMaxChange = (e) => {
|
|
49
|
+
const v = Number(e.target.value);
|
|
50
|
+
onChangeMax(Math.max(v, valueMin + gap));
|
|
51
|
+
};
|
|
52
|
+
const labelMin = formatLabel ? formatLabel(valueMin, "min") : String(valueMin);
|
|
53
|
+
const labelMax = formatLabel ? formatLabel(valueMax, "max") : String(valueMax);
|
|
54
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: chunkADIDI7AJ_js.cn("w-full", className), children: [
|
|
55
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative h-2", children: [
|
|
56
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 rounded-full bg-gray-200" }),
|
|
57
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
className: "absolute h-full rounded-full bg-secondary",
|
|
61
|
+
style: { left: `${leftPercent}%`, right: `${rightPercent}%` }
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
65
|
+
"input",
|
|
66
|
+
{
|
|
67
|
+
type: "range",
|
|
68
|
+
min,
|
|
69
|
+
max,
|
|
70
|
+
step,
|
|
71
|
+
value: valueMin,
|
|
72
|
+
onChange: handleMinChange,
|
|
73
|
+
"aria-label": "Minimum",
|
|
74
|
+
className: chunkADIDI7AJ_js.cn(
|
|
75
|
+
"absolute w-full h-2 appearance-none bg-transparent pointer-events-none",
|
|
76
|
+
// Webkit thumb
|
|
77
|
+
"[&::-webkit-slider-thumb]:pointer-events-auto",
|
|
78
|
+
"[&::-webkit-slider-thumb]:appearance-none",
|
|
79
|
+
"[&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5",
|
|
80
|
+
"[&::-webkit-slider-thumb]:bg-white",
|
|
81
|
+
"[&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-secondary",
|
|
82
|
+
"[&::-webkit-slider-thumb]:rounded-full",
|
|
83
|
+
"[&::-webkit-slider-thumb]:cursor-pointer",
|
|
84
|
+
"[&::-webkit-slider-thumb]:shadow-md",
|
|
85
|
+
// Firefox thumb
|
|
86
|
+
"[&::-moz-range-thumb]:pointer-events-auto",
|
|
87
|
+
"[&::-moz-range-thumb]:appearance-none",
|
|
88
|
+
"[&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5",
|
|
89
|
+
"[&::-moz-range-thumb]:bg-white",
|
|
90
|
+
"[&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-secondary",
|
|
91
|
+
"[&::-moz-range-thumb]:rounded-full",
|
|
92
|
+
"[&::-moz-range-thumb]:cursor-pointer"
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
+
"input",
|
|
98
|
+
{
|
|
99
|
+
type: "range",
|
|
100
|
+
min,
|
|
101
|
+
max,
|
|
102
|
+
step,
|
|
103
|
+
value: valueMax,
|
|
104
|
+
onChange: handleMaxChange,
|
|
105
|
+
"aria-label": "Maximum",
|
|
106
|
+
className: chunkADIDI7AJ_js.cn(
|
|
107
|
+
"absolute w-full h-2 appearance-none bg-transparent pointer-events-none",
|
|
108
|
+
"[&::-webkit-slider-thumb]:pointer-events-auto",
|
|
109
|
+
"[&::-webkit-slider-thumb]:appearance-none",
|
|
110
|
+
"[&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5",
|
|
111
|
+
"[&::-webkit-slider-thumb]:bg-white",
|
|
112
|
+
"[&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-secondary",
|
|
113
|
+
"[&::-webkit-slider-thumb]:rounded-full",
|
|
114
|
+
"[&::-webkit-slider-thumb]:cursor-pointer",
|
|
115
|
+
"[&::-webkit-slider-thumb]:shadow-md",
|
|
116
|
+
"[&::-moz-range-thumb]:pointer-events-auto",
|
|
117
|
+
"[&::-moz-range-thumb]:appearance-none",
|
|
118
|
+
"[&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5",
|
|
119
|
+
"[&::-moz-range-thumb]:bg-white",
|
|
120
|
+
"[&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-secondary",
|
|
121
|
+
"[&::-moz-range-thumb]:rounded-full",
|
|
122
|
+
"[&::-moz-range-thumb]:cursor-pointer"
|
|
123
|
+
)
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
] }),
|
|
127
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between text-xs text-gray-500 mt-2", children: [
|
|
128
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: labelMin }),
|
|
129
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: labelMax })
|
|
130
|
+
] })
|
|
131
|
+
] });
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
DualRangeSlider.displayName = "DualRangeSlider";
|
|
135
|
+
|
|
136
|
+
exports.DualRangeSlider = DualRangeSlider;
|