@dododog/ui 0.10.1 → 0.12.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.
Files changed (55) hide show
  1. package/dist/chunk-AGNY5DBW.mjs +116 -0
  2. package/dist/chunk-BXFU7V2X.js +156 -0
  3. package/dist/chunk-CRQ4XOCC.mjs +107 -0
  4. package/dist/chunk-CWXP2ZI2.js +79 -0
  5. package/dist/chunk-DFC6XK57.js +55 -0
  6. package/dist/chunk-DM76AK4A.mjs +67 -0
  7. package/dist/chunk-DUT3ABEI.mjs +108 -0
  8. package/dist/chunk-G3LZ32WA.js +129 -0
  9. package/dist/chunk-HB2XJOBZ.js +141 -0
  10. package/dist/chunk-IKQYFSBW.mjs +33 -0
  11. package/dist/chunk-JSRYMZCT.js +99 -0
  12. package/dist/chunk-LO2XNMZO.mjs +134 -0
  13. package/dist/chunk-NKD7FXZR.mjs +77 -0
  14. package/dist/chunk-OGB5LIXN.js +89 -0
  15. package/dist/chunk-OZULAGYL.mjs +1 -0
  16. package/dist/chunk-SEHALSKW.js +130 -0
  17. package/dist/chunk-VNURXHKK.js +2 -0
  18. package/dist/chunk-ZEPXWD6U.mjs +57 -0
  19. package/dist/components/ActiveStayCard/index.d.mts +36 -0
  20. package/dist/components/ActiveStayCard/index.d.ts +36 -0
  21. package/dist/components/ActiveStayCard/index.js +12 -0
  22. package/dist/components/ActiveStayCard/index.mjs +3 -0
  23. package/dist/components/DogAvatar/index.d.mts +37 -0
  24. package/dist/components/DogAvatar/index.d.ts +37 -0
  25. package/dist/components/DogAvatar/index.js +24 -0
  26. package/dist/components/DogAvatar/index.mjs +3 -0
  27. package/dist/components/ImpactCard/index.d.mts +12 -0
  28. package/dist/components/ImpactCard/index.d.ts +12 -0
  29. package/dist/components/ImpactCard/index.js +11 -0
  30. package/dist/components/ImpactCard/index.mjs +2 -0
  31. package/dist/components/SearchWidget/index.d.mts +20 -0
  32. package/dist/components/SearchWidget/index.d.ts +20 -0
  33. package/dist/components/SearchWidget/index.js +11 -0
  34. package/dist/components/SearchWidget/index.mjs +2 -0
  35. package/dist/components/SectionHeader/index.d.mts +30 -0
  36. package/dist/components/SectionHeader/index.d.ts +30 -0
  37. package/dist/components/SectionHeader/index.js +11 -0
  38. package/dist/components/SectionHeader/index.mjs +2 -0
  39. package/dist/components/StatTile/index.d.mts +28 -0
  40. package/dist/components/StatTile/index.d.ts +28 -0
  41. package/dist/components/StatTile/index.js +11 -0
  42. package/dist/components/StatTile/index.mjs +2 -0
  43. package/dist/components/StayListRow/index.d.mts +31 -0
  44. package/dist/components/StayListRow/index.d.ts +31 -0
  45. package/dist/components/StayListRow/index.js +12 -0
  46. package/dist/components/StayListRow/index.mjs +3 -0
  47. package/dist/components/TripHeroCard/index.d.mts +38 -0
  48. package/dist/components/TripHeroCard/index.d.ts +38 -0
  49. package/dist/components/TripHeroCard/index.js +11 -0
  50. package/dist/components/TripHeroCard/index.mjs +2 -0
  51. package/dist/index.d.mts +9 -1
  52. package/dist/index.d.ts +9 -1
  53. package/dist/index.js +206 -153
  54. package/dist/index.mjs +40 -31
  55. package/package.json +41 -1
@@ -0,0 +1,116 @@
1
+ import { cn } from './chunk-IMKLN273.mjs';
2
+ import * as React from 'react';
3
+ import { jsx, jsxs } from 'react/jsx-runtime';
4
+
5
+ function DogGlyph({ size }) {
6
+ return /* @__PURE__ */ jsxs(
7
+ "svg",
8
+ {
9
+ viewBox: "0 0 24 24",
10
+ width: size,
11
+ height: size,
12
+ fill: "none",
13
+ stroke: "#fff",
14
+ strokeWidth: 2.1,
15
+ strokeLinecap: "round",
16
+ strokeLinejoin: "round",
17
+ "aria-hidden": "true",
18
+ style: { width: "58%", height: "58%" },
19
+ children: [
20
+ /* @__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" }),
21
+ /* @__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" }),
22
+ /* @__PURE__ */ jsx("path", { d: "M8 14v.5" }),
23
+ /* @__PURE__ */ jsx("path", { d: "M16 14v.5" }),
24
+ /* @__PURE__ */ jsx("path", { d: "M11.25 16.25h1.5L12 17l-.75-.75Z" }),
25
+ /* @__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.309" })
26
+ ]
27
+ }
28
+ );
29
+ }
30
+ var DOG_AVATAR_COLORS = [
31
+ "#f27c54",
32
+ "#00bfb3",
33
+ "#e0a458",
34
+ "#c96f4a",
35
+ "#7ba05b"
36
+ ];
37
+ function dogAvatarColor(name) {
38
+ let hash = 0;
39
+ for (let i = 0; i < name.length; i++) {
40
+ hash = name.charCodeAt(i) + ((hash << 5) - hash);
41
+ }
42
+ return DOG_AVATAR_COLORS[Math.abs(hash) % DOG_AVATAR_COLORS.length];
43
+ }
44
+ var DogAvatar = React.forwardRef(
45
+ ({ name, color, size = 46, ringColor, className, style, ...props }, ref) => {
46
+ const bg = color ?? dogAvatarColor(name);
47
+ return /* @__PURE__ */ jsx(
48
+ "div",
49
+ {
50
+ ref,
51
+ role: "img",
52
+ "aria-label": name,
53
+ className: cn("grid place-items-center rounded-full", className),
54
+ style: {
55
+ width: size,
56
+ height: size,
57
+ background: bg,
58
+ border: ringColor ? `2px solid ${ringColor}` : void 0,
59
+ ...style
60
+ },
61
+ ...props,
62
+ children: /* @__PURE__ */ jsx(DogGlyph, { size })
63
+ }
64
+ );
65
+ }
66
+ );
67
+ DogAvatar.displayName = "DogAvatar";
68
+ var DogAvatarStack = React.forwardRef(
69
+ ({
70
+ dogs,
71
+ size = 26,
72
+ max = 4,
73
+ overlap = 8,
74
+ ringColor = "#fff",
75
+ className,
76
+ ...props
77
+ }, ref) => {
78
+ const shown = dogs.slice(0, max);
79
+ const extra = dogs.length - shown.length;
80
+ return /* @__PURE__ */ jsxs("div", { ref, className: cn("flex items-center", className), ...props, children: [
81
+ shown.map((dog, i) => /* @__PURE__ */ jsx(
82
+ DogAvatar,
83
+ {
84
+ name: dog.name,
85
+ color: dog.color ?? DOG_AVATAR_COLORS[i % DOG_AVATAR_COLORS.length],
86
+ size,
87
+ ringColor,
88
+ style: i > 0 ? { marginLeft: -overlap } : void 0
89
+ },
90
+ `${dog.name}-${i}`
91
+ )),
92
+ extra > 0 && /* @__PURE__ */ jsxs(
93
+ "div",
94
+ {
95
+ className: "grid place-items-center rounded-full font-bold text-text-secondary",
96
+ style: {
97
+ width: size,
98
+ height: size,
99
+ marginLeft: -overlap,
100
+ background: "#f5f0e8",
101
+ border: `2px solid ${ringColor}`,
102
+ fontSize: Math.round(size * 0.4)
103
+ },
104
+ "aria-label": `${extra} de plus`,
105
+ children: [
106
+ "+",
107
+ extra
108
+ ]
109
+ }
110
+ )
111
+ ] });
112
+ }
113
+ );
114
+ DogAvatarStack.displayName = "DogAvatarStack";
115
+
116
+ export { DOG_AVATAR_COLORS, DogAvatar, DogAvatarStack, dogAvatarColor };
@@ -0,0 +1,156 @@
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 MapPinIcon({ className }) {
28
+ return /* @__PURE__ */ jsxRuntime.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, "aria-hidden": "true", children: [
29
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z" }),
30
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "10", r: "3" })
31
+ ] });
32
+ }
33
+ function CalendarIcon({ className }) {
34
+ return /* @__PURE__ */ jsxRuntime.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, "aria-hidden": "true", children: [
35
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 2v4M16 2v4M3 10h18" }),
36
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2" })
37
+ ] });
38
+ }
39
+ function DogIcon({ className }) {
40
+ return /* @__PURE__ */ jsxRuntime.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, "aria-hidden": "true", children: [
41
+ /* @__PURE__ */ jsxRuntime.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" }),
42
+ /* @__PURE__ */ jsxRuntime.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" }),
43
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 14v.5M16 14v.5M11.25 16.25h1.5L12 17l-.75-.75Z" }),
44
+ /* @__PURE__ */ jsxRuntime.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" })
45
+ ] });
46
+ }
47
+ var STATUS_STYLES = {
48
+ confirmed: "bg-accent/15 text-accent",
49
+ pending: "bg-amber-100 text-amber-700",
50
+ processing: "bg-sky-100 text-sky-700"
51
+ };
52
+ var TripHeroCard = React__namespace.forwardRef(
53
+ ({ trip, actions, renderImage, className, ...props }, ref) => {
54
+ const {
55
+ hotelName,
56
+ hotelImage,
57
+ city,
58
+ address,
59
+ checkinLabel,
60
+ checkoutLabel,
61
+ nights,
62
+ countdownLabel,
63
+ isSoon,
64
+ statusLabel,
65
+ statusTone = "confirmed",
66
+ priceLabel,
67
+ dogName
68
+ } = trip;
69
+ const media = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative aspect-[16/10] w-full overflow-hidden bg-gradient-to-br from-sand-dark to-sand md:aspect-auto md:h-full md:min-h-[15rem]", children: [
70
+ hotelImage ? renderImage ? renderImage({
71
+ src: hotelImage,
72
+ alt: hotelName,
73
+ className: "h-full w-full object-cover"
74
+ }) : /* @__PURE__ */ jsxRuntime.jsx("img", { src: hotelImage, alt: hotelName, className: "h-full w-full object-cover" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-full w-full items-center justify-center text-text-muted", children: /* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, { className: "h-10 w-10" }) }),
75
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 h-24 bg-gradient-to-t from-black/55 to-transparent" }),
76
+ /* @__PURE__ */ jsxRuntime.jsxs(
77
+ "span",
78
+ {
79
+ className: chunkADIDI7AJ_js.cn(
80
+ "absolute bottom-3 left-3 inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-semibold shadow-sm backdrop-blur-sm",
81
+ isSoon ? "bg-secondary text-white" : "bg-white/90 text-primary"
82
+ ),
83
+ children: [
84
+ /* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, { className: "h-3.5 w-3.5" }),
85
+ countdownLabel
86
+ ]
87
+ }
88
+ )
89
+ ] });
90
+ return /* @__PURE__ */ jsxRuntime.jsx(
91
+ "section",
92
+ {
93
+ ref,
94
+ "aria-label": "Prochain s\xE9jour",
95
+ className: chunkADIDI7AJ_js.cn(
96
+ "overflow-hidden rounded-2xl border border-sand-dark bg-white shadow-card",
97
+ className
98
+ ),
99
+ ...props,
100
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col md:flex-row", children: [
101
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "md:w-2/5 md:shrink-0", children: media }),
102
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col gap-4 p-5", children: [
103
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
104
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
105
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold uppercase tracking-wide text-secondary", children: "Prochain s\xE9jour" }),
106
+ statusLabel && /* @__PURE__ */ jsxRuntime.jsx(
107
+ "span",
108
+ {
109
+ className: chunkADIDI7AJ_js.cn(
110
+ "inline-flex items-center rounded-full px-2 py-0.5 text-xs font-semibold",
111
+ STATUS_STYLES[statusTone]
112
+ ),
113
+ children: statusLabel
114
+ }
115
+ )
116
+ ] }),
117
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "mt-1 font-heading text-2xl font-bold text-primary", children: hotelName }),
118
+ (city || address) && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "mt-1 inline-flex items-center gap-1.5 text-sm text-text-secondary", children: [
119
+ /* @__PURE__ */ jsxRuntime.jsx(MapPinIcon, { className: "h-4 w-4 shrink-0 text-text-muted" }),
120
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: [city, address].filter(Boolean).join(" \xB7 ") })
121
+ ] })
122
+ ] }),
123
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2 text-sm", children: [
124
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1.5 text-primary", children: [
125
+ /* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, { className: "h-4 w-4 text-text-muted" }),
126
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-medium", children: [
127
+ checkinLabel,
128
+ " \u2192 ",
129
+ checkoutLabel
130
+ ] }),
131
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-text-muted", children: [
132
+ "\xB7 ",
133
+ nights,
134
+ " nuit",
135
+ nights > 1 ? "s" : ""
136
+ ] })
137
+ ] }),
138
+ dogName && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1.5 text-text-secondary", children: [
139
+ /* @__PURE__ */ jsxRuntime.jsx(DogIcon, { className: "h-4 w-4 text-secondary" }),
140
+ dogName
141
+ ] })
142
+ ] }),
143
+ priceLabel && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-baseline gap-1.5", children: [
144
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-text-muted", children: "Total" }),
145
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-heading text-xl font-bold text-primary tabular-nums", children: priceLabel })
146
+ ] }),
147
+ actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-auto flex flex-wrap gap-2 pt-1", children: actions })
148
+ ] })
149
+ ] })
150
+ }
151
+ );
152
+ }
153
+ );
154
+ TripHeroCard.displayName = "TripHeroCard";
155
+
156
+ exports.TripHeroCard = TripHeroCard;
@@ -0,0 +1,107 @@
1
+ import { DogAvatarStack } from './chunk-AGNY5DBW.mjs';
2
+ import { cn } from './chunk-IMKLN273.mjs';
3
+ import * as React from 'react';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ function MapPinIcon({ size = 15 }) {
7
+ return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
8
+ /* @__PURE__ */ jsx("path", { d: "M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z" }),
9
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "10", r: "3" })
10
+ ] });
11
+ }
12
+ var boxClass = "flex-1 rounded-2xl border border-sand-dark/70 bg-sand-light px-3.5 py-2.5";
13
+ var boxLabelClass = "text-[11px] font-semibold uppercase tracking-[0.04em] text-text-secondary";
14
+ var primaryBtnClass = "flex min-h-[44px] flex-1 items-center justify-center gap-2 rounded-full bg-secondary px-4 py-3 text-sm font-semibold text-white shadow-[0_8px_18px_-8px_rgba(242,124,84,0.7)] transition-colors hover:bg-secondary-dark focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2";
15
+ var ActiveStayCard = React.forwardRef(
16
+ ({
17
+ statusLabel = "S\xE9jour en cours",
18
+ petBadge,
19
+ hotelName,
20
+ location,
21
+ priceLabel,
22
+ priceNote,
23
+ checkinLabel,
24
+ checkoutLabel,
25
+ countdownLabel,
26
+ dogs = [],
27
+ imageUrl,
28
+ primaryActionLabel = "Voir la r\xE9servation",
29
+ primaryActionHref,
30
+ secondaryActions,
31
+ renderImage,
32
+ renderLink,
33
+ className,
34
+ ...props
35
+ }, ref) => {
36
+ const primaryBtn = primaryActionHref ? renderLink ? renderLink({
37
+ href: primaryActionHref,
38
+ className: primaryBtnClass,
39
+ children: primaryActionLabel
40
+ }) : /* @__PURE__ */ jsx("a", { href: primaryActionHref, className: primaryBtnClass, children: primaryActionLabel }) : /* @__PURE__ */ jsx("button", { type: "button", className: primaryBtnClass, children: primaryActionLabel });
41
+ return /* @__PURE__ */ jsxs(
42
+ "section",
43
+ {
44
+ ref,
45
+ "aria-label": statusLabel,
46
+ className: cn(
47
+ "overflow-hidden rounded-[22px] border border-sand-dark bg-white shadow-[0_14px_30px_-16px_rgba(29,34,48,0.3)] md:rounded-3xl",
48
+ className
49
+ ),
50
+ ...props,
51
+ children: [
52
+ /* @__PURE__ */ jsxs("div", { className: "relative h-[150px] md:h-[200px]", children: [
53
+ imageUrl ? renderImage ? renderImage({ src: imageUrl, alt: hotelName, className: "h-full w-full object-cover" }) : /* @__PURE__ */ jsx("img", { src: imageUrl, alt: hotelName, className: "h-full w-full object-cover" }) : /* @__PURE__ */ jsx("div", { className: "h-full w-full bg-gradient-to-br from-accent-light to-accent-dark" }),
54
+ /* @__PURE__ */ jsxs("span", { className: "absolute left-3.5 top-3.5 inline-flex items-center gap-1.5 rounded-full bg-white px-3 py-1.5 text-[11.5px] font-bold text-accent-dark md:text-xs", children: [
55
+ /* @__PURE__ */ jsx("span", { className: "h-1.5 w-1.5 animate-pulse rounded-full bg-accent" }),
56
+ statusLabel
57
+ ] }),
58
+ petBadge && /* @__PURE__ */ jsx("span", { className: "absolute right-3.5 top-3.5 rounded-full bg-white/90 px-3 py-1.5 text-[11.5px] font-bold text-accent-dark backdrop-blur-sm md:text-xs", children: petBadge })
59
+ ] }),
60
+ /* @__PURE__ */ jsxs("div", { className: "p-[18px] md:p-[22px]", children: [
61
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
62
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
63
+ /* @__PURE__ */ jsx("h2", { className: "font-heading text-xl font-bold leading-[1.15] text-primary md:text-2xl", children: hotelName }),
64
+ location && /* @__PURE__ */ jsxs("p", { className: "mt-1.5 inline-flex items-center gap-1.5 text-[13px] text-text-secondary md:text-sm", children: [
65
+ /* @__PURE__ */ jsx(MapPinIcon, {}),
66
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: location })
67
+ ] })
68
+ ] }),
69
+ priceLabel && /* @__PURE__ */ jsxs("div", { className: "shrink-0 text-right", children: [
70
+ /* @__PURE__ */ jsx("div", { className: "font-heading text-lg font-bold text-primary md:text-[22px]", children: priceLabel }),
71
+ priceNote && /* @__PURE__ */ jsx("div", { className: "text-[11px] text-text-secondary md:text-xs", children: priceNote })
72
+ ] })
73
+ ] }),
74
+ /* @__PURE__ */ jsxs("div", { className: "mt-3.5 flex items-center justify-between rounded-2xl border border-sand-dark/70 bg-sand-light px-3.5 py-2.5 md:hidden", children: [
75
+ /* @__PURE__ */ jsxs("div", { children: [
76
+ /* @__PURE__ */ jsx("div", { className: boxLabelClass, children: "D\xE9part dans" }),
77
+ /* @__PURE__ */ jsx("div", { className: "mt-0.5 text-[14.5px] font-bold text-primary", children: countdownLabel ?? `${checkinLabel} \u2192 ${checkoutLabel}` })
78
+ ] }),
79
+ dogs.length > 0 && /* @__PURE__ */ jsx(DogAvatarStack, { dogs, size: 26, ringColor: "#faf7f2" })
80
+ ] }),
81
+ /* @__PURE__ */ jsxs("div", { className: "mt-4 hidden gap-2.5 md:flex", children: [
82
+ /* @__PURE__ */ jsxs("div", { className: boxClass, children: [
83
+ /* @__PURE__ */ jsx("div", { className: boxLabelClass, children: "Arriv\xE9e" }),
84
+ /* @__PURE__ */ jsx("div", { className: "mt-0.5 text-[14.5px] font-semibold text-primary", children: checkinLabel })
85
+ ] }),
86
+ /* @__PURE__ */ jsxs("div", { className: boxClass, children: [
87
+ /* @__PURE__ */ jsx("div", { className: boxLabelClass, children: "D\xE9part" }),
88
+ /* @__PURE__ */ jsx("div", { className: "mt-0.5 text-[14.5px] font-semibold text-primary", children: checkoutLabel })
89
+ ] }),
90
+ /* @__PURE__ */ jsxs("div", { className: boxClass, children: [
91
+ /* @__PURE__ */ jsx("div", { className: boxLabelClass, children: "Chiens" }),
92
+ /* @__PURE__ */ jsx("div", { className: "mt-1", children: dogs.length > 0 ? /* @__PURE__ */ jsx(DogAvatarStack, { dogs, size: 22, overlap: 0, className: "gap-1", ringColor: "transparent" }) : /* @__PURE__ */ jsx("span", { className: "text-[13px] text-text-secondary", children: "\u2014" }) })
93
+ ] })
94
+ ] }),
95
+ /* @__PURE__ */ jsxs("div", { className: "mt-4 flex gap-2.5", children: [
96
+ primaryBtn,
97
+ secondaryActions && /* @__PURE__ */ jsx("div", { className: "hidden gap-2.5 md:flex", children: secondaryActions })
98
+ ] })
99
+ ] })
100
+ ]
101
+ }
102
+ );
103
+ }
104
+ );
105
+ ActiveStayCard.displayName = "ActiveStayCard";
106
+
107
+ export { ActiveStayCard };
@@ -0,0 +1,79 @@
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 ChevronRightIcon({ className }) {
28
+ return /* @__PURE__ */ jsxRuntime.jsx(
29
+ "svg",
30
+ {
31
+ xmlns: "http://www.w3.org/2000/svg",
32
+ width: "16",
33
+ height: "16",
34
+ viewBox: "0 0 24 24",
35
+ fill: "none",
36
+ stroke: "currentColor",
37
+ strokeWidth: "2",
38
+ strokeLinecap: "round",
39
+ strokeLinejoin: "round",
40
+ className,
41
+ "aria-hidden": "true",
42
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m9 18 6-6-6-6" })
43
+ }
44
+ );
45
+ }
46
+ var StatTile = React__namespace.forwardRef(
47
+ ({ label, value, icon, href, hint, renderLink, className, ...props }, ref) => {
48
+ const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
49
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-sand text-secondary", children: icon }),
50
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
51
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-baseline gap-1.5", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-heading text-2xl font-bold leading-none text-primary tabular-nums", children: value }) }),
52
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 truncate text-sm font-medium text-text-secondary", children: label }),
53
+ hint && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-xs text-text-muted", children: hint })
54
+ ] }),
55
+ href && /* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon, { className: "h-4 w-4 shrink-0 self-center text-text-muted" })
56
+ ] });
57
+ const baseClassName = chunkADIDI7AJ_js.cn(
58
+ "flex items-center gap-3 rounded-2xl border border-sand-dark bg-white p-4",
59
+ className
60
+ );
61
+ if (href) {
62
+ const linkClassName = chunkADIDI7AJ_js.cn(
63
+ baseClassName,
64
+ "min-h-[44px] transition-shadow hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"
65
+ );
66
+ const ariaLabel = `${label} : ${typeof value === "string" || typeof value === "number" ? value : ""}`.trim();
67
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, ...props, children: renderLink ? renderLink({
68
+ href,
69
+ className: linkClassName,
70
+ "aria-label": ariaLabel,
71
+ children: body
72
+ }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: linkClassName, "aria-label": ariaLabel, children: body }) });
73
+ }
74
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: baseClassName, ...props, children: body });
75
+ }
76
+ );
77
+ StatTile.displayName = "StatTile";
78
+
79
+ exports.StatTile = StatTile;
@@ -0,0 +1,55 @@
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 HeartIcon() {
28
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "#f5a083", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.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.29 1.51 4.04 3 5.5l7 7Z" }) });
29
+ }
30
+ var ImpactCard = React__namespace.forwardRef(
31
+ ({ badgeLabel = "Voyage engag\xE9", amountLabel, description, className, ...props }, ref) => {
32
+ return /* @__PURE__ */ jsxRuntime.jsxs(
33
+ "div",
34
+ {
35
+ ref,
36
+ className: chunkADIDI7AJ_js.cn(
37
+ "rounded-[22px] bg-primary p-5 text-white shadow-[0_10px_26px_-14px_rgba(29,34,48,0.5)]",
38
+ className
39
+ ),
40
+ ...props,
41
+ children: [
42
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "inline-flex items-center gap-1.5 rounded-full bg-white/[0.12] px-2.5 py-1 text-[11px] font-semibold text-[#ffd9c6]", children: [
43
+ /* @__PURE__ */ jsxRuntime.jsx(HeartIcon, {}),
44
+ badgeLabel
45
+ ] }),
46
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 font-heading text-[26px] font-bold", children: amountLabel }),
47
+ description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-[12.5px] leading-[1.45] text-white/70", children: description })
48
+ ]
49
+ }
50
+ );
51
+ }
52
+ );
53
+ ImpactCard.displayName = "ImpactCard";
54
+
55
+ exports.ImpactCard = ImpactCard;
@@ -0,0 +1,67 @@
1
+ import { cn } from './chunk-IMKLN273.mjs';
2
+ import * as React from 'react';
3
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
4
+
5
+ function ChevronRightIcon({ className }) {
6
+ return /* @__PURE__ */ jsx(
7
+ "svg",
8
+ {
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ width: "16",
11
+ height: "16",
12
+ viewBox: "0 0 24 24",
13
+ fill: "none",
14
+ stroke: "currentColor",
15
+ strokeWidth: "2",
16
+ strokeLinecap: "round",
17
+ strokeLinejoin: "round",
18
+ className,
19
+ "aria-hidden": "true",
20
+ children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
21
+ }
22
+ );
23
+ }
24
+ var SectionHeader = React.forwardRef(
25
+ ({
26
+ title,
27
+ subtitle,
28
+ icon,
29
+ actionLabel,
30
+ actionHref,
31
+ renderLink,
32
+ as: Heading = "h2",
33
+ className,
34
+ ...props
35
+ }, ref) => {
36
+ const linkClassName = "inline-flex items-center gap-1 rounded text-sm font-medium text-secondary transition-colors hover:text-secondary/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2";
37
+ const linkChildren = /* @__PURE__ */ jsxs(Fragment, { children: [
38
+ actionLabel,
39
+ /* @__PURE__ */ jsx(ChevronRightIcon, { className: "h-4 w-4" })
40
+ ] });
41
+ return /* @__PURE__ */ jsxs(
42
+ "div",
43
+ {
44
+ ref,
45
+ className: cn("flex items-end justify-between gap-3", className),
46
+ ...props,
47
+ children: [
48
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-start gap-2", children: [
49
+ icon && /* @__PURE__ */ jsx("span", { className: "mt-0.5 shrink-0 text-secondary", children: icon }),
50
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
51
+ /* @__PURE__ */ jsx(Heading, { className: "font-heading text-xl font-semibold text-primary", children: title }),
52
+ subtitle && /* @__PURE__ */ jsx("p", { className: "mt-0.5 text-sm text-text-secondary", children: subtitle })
53
+ ] })
54
+ ] }),
55
+ actionLabel && actionHref && (renderLink ? renderLink({
56
+ href: actionHref,
57
+ className: linkClassName,
58
+ children: linkChildren
59
+ }) : /* @__PURE__ */ jsx("a", { href: actionHref, className: linkClassName, children: linkChildren }))
60
+ ]
61
+ }
62
+ );
63
+ }
64
+ );
65
+ SectionHeader.displayName = "SectionHeader";
66
+
67
+ export { SectionHeader };