@dododog/ui 0.10.0 → 0.10.1
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/dist/chunk-4A3AQ66D.mjs +134 -0
- package/dist/chunk-BS7R7VDS.js +156 -0
- package/dist/components/DogCard/index.d.mts +44 -0
- package/dist/components/DogCard/index.d.ts +44 -0
- package/dist/components/DogCard/index.js +11 -0
- package/dist/components/DogCard/index.mjs +2 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +118 -113
- package/dist/index.mjs +24 -23
- package/package.json +16 -11
|
@@ -0,0 +1,134 @@
|
|
|
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 CrownIcon({ className }) {
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
"svg",
|
|
8
|
+
{
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
width: "14",
|
|
11
|
+
height: "14",
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
fill: "currentColor",
|
|
14
|
+
className,
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
children: /* @__PURE__ */ jsx("path", { d: "M5 16 3 6l5.5 4L12 5l3.5 5L21 6l-2 10H5Zm0 2h14v2H5v-2Z" })
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function PawIcon({ className }) {
|
|
21
|
+
return /* @__PURE__ */ jsxs(
|
|
22
|
+
"svg",
|
|
23
|
+
{
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25
|
+
width: "24",
|
|
26
|
+
height: "24",
|
|
27
|
+
viewBox: "0 0 24 24",
|
|
28
|
+
fill: "currentColor",
|
|
29
|
+
className,
|
|
30
|
+
"aria-hidden": "true",
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsx("circle", { cx: "5.5", cy: "12.5", r: "2" }),
|
|
33
|
+
/* @__PURE__ */ jsx("circle", { cx: "9.5", cy: "7.5", r: "2" }),
|
|
34
|
+
/* @__PURE__ */ jsx("circle", { cx: "14.5", cy: "7.5", r: "2" }),
|
|
35
|
+
/* @__PURE__ */ jsx("circle", { cx: "18.5", cy: "12.5", r: "2" }),
|
|
36
|
+
/* @__PURE__ */ jsx("path", { d: "M12 11c-2.2 0-4 1.9-4 4.2 0 1.6 1.2 2.8 2.8 2.8.6 0 .9-.2 1.2-.2s.6.2 1.2.2c1.6 0 2.8-1.2 2.8-2.8C16 12.9 14.2 11 12 11Z" })
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
var INITIAL_COLORS = [
|
|
42
|
+
"bg-emerald-100 text-emerald-700",
|
|
43
|
+
"bg-amber-100 text-amber-700",
|
|
44
|
+
"bg-sky-100 text-sky-700",
|
|
45
|
+
"bg-violet-100 text-violet-700",
|
|
46
|
+
"bg-rose-100 text-rose-700"
|
|
47
|
+
];
|
|
48
|
+
function initialColor(name) {
|
|
49
|
+
let hash = 0;
|
|
50
|
+
for (let i = 0; i < name.length; i++) {
|
|
51
|
+
hash = name.charCodeAt(i) + ((hash << 5) - hash);
|
|
52
|
+
}
|
|
53
|
+
return INITIAL_COLORS[Math.abs(hash) % INITIAL_COLORS.length];
|
|
54
|
+
}
|
|
55
|
+
function InfoChip({ children }) {
|
|
56
|
+
return /* @__PURE__ */ jsx("span", { className: "inline-flex items-center rounded-full bg-sand px-2.5 py-0.5 text-xs font-medium text-text-secondary", children });
|
|
57
|
+
}
|
|
58
|
+
var DogCard = React.forwardRef(
|
|
59
|
+
({ dog, actions, renderImage, renderLink, className, ...props }, ref) => {
|
|
60
|
+
const imageSrc = dog.photoUrl || dog.breedImageUrl || null;
|
|
61
|
+
const initial = dog.name.charAt(0).toUpperCase() || "?";
|
|
62
|
+
const chips = [
|
|
63
|
+
dog.sizeLabel,
|
|
64
|
+
dog.sexLabel,
|
|
65
|
+
dog.ageLabel,
|
|
66
|
+
dog.weightLabel,
|
|
67
|
+
dog.breed
|
|
68
|
+
].filter((v) => Boolean(v));
|
|
69
|
+
const media = /* @__PURE__ */ jsxs("div", { className: "relative aspect-[4/3] w-full overflow-hidden bg-sand", children: [
|
|
70
|
+
imageSrc ? renderImage ? renderImage({
|
|
71
|
+
src: imageSrc,
|
|
72
|
+
alt: dog.name,
|
|
73
|
+
className: "h-full w-full object-cover"
|
|
74
|
+
}) : /* @__PURE__ */ jsx(
|
|
75
|
+
"img",
|
|
76
|
+
{
|
|
77
|
+
src: imageSrc,
|
|
78
|
+
alt: dog.name,
|
|
79
|
+
className: "h-full w-full object-cover"
|
|
80
|
+
}
|
|
81
|
+
) : /* @__PURE__ */ jsxs(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
className: cn(
|
|
85
|
+
"flex h-full w-full flex-col items-center justify-center gap-1",
|
|
86
|
+
initialColor(dog.name)
|
|
87
|
+
),
|
|
88
|
+
"aria-label": dog.name,
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ jsx(PawIcon, { className: "h-7 w-7 opacity-50" }),
|
|
91
|
+
/* @__PURE__ */ jsx("span", { className: "text-2xl font-bold", children: initial })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
dog.isPrimary && /* @__PURE__ */ jsxs("span", { className: "absolute left-2 top-2 inline-flex items-center gap-1 rounded-full bg-secondary/95 px-2 py-1 text-[11px] font-semibold text-white shadow-sm", children: [
|
|
96
|
+
/* @__PURE__ */ jsx(CrownIcon, { className: "h-3 w-3" }),
|
|
97
|
+
"Principal"
|
|
98
|
+
] })
|
|
99
|
+
] });
|
|
100
|
+
const info = /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col p-4", children: [
|
|
101
|
+
/* @__PURE__ */ jsx("h3", { className: "truncate font-heading text-base font-semibold text-primary", children: dog.name }),
|
|
102
|
+
chips.length > 0 && /* @__PURE__ */ jsx("div", { className: "mt-2 flex flex-wrap gap-1.5", children: chips.map((chip, i) => /* @__PURE__ */ jsx(InfoChip, { children: chip }, `${chip}-${i}`)) })
|
|
103
|
+
] });
|
|
104
|
+
const linkClassName = "group flex flex-1 flex-col rounded-t-xl transition-opacity hover:opacity-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2";
|
|
105
|
+
const linkLabel = `Voir le passeport de ${dog.name}`;
|
|
106
|
+
const body = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
107
|
+
media,
|
|
108
|
+
info
|
|
109
|
+
] });
|
|
110
|
+
return /* @__PURE__ */ jsxs(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
ref,
|
|
114
|
+
className: cn(
|
|
115
|
+
"flex flex-col overflow-hidden rounded-xl border border-sand-dark bg-white transition-shadow hover:shadow-lg",
|
|
116
|
+
className
|
|
117
|
+
),
|
|
118
|
+
...props,
|
|
119
|
+
children: [
|
|
120
|
+
dog.href ? renderLink ? renderLink({
|
|
121
|
+
href: dog.href,
|
|
122
|
+
className: linkClassName,
|
|
123
|
+
children: body,
|
|
124
|
+
"aria-label": linkLabel
|
|
125
|
+
}) : /* @__PURE__ */ jsx("a", { href: dog.href, className: linkClassName, "aria-label": linkLabel, children: body }) : /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col", children: body }),
|
|
126
|
+
actions && /* @__PURE__ */ jsx("div", { className: "flex items-center justify-end gap-1 border-t border-sand-dark px-3 py-2", children: actions })
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
DogCard.displayName = "DogCard";
|
|
133
|
+
|
|
134
|
+
export { DogCard };
|
|
@@ -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 CrownIcon({ className }) {
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
+
"svg",
|
|
30
|
+
{
|
|
31
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32
|
+
width: "14",
|
|
33
|
+
height: "14",
|
|
34
|
+
viewBox: "0 0 24 24",
|
|
35
|
+
fill: "currentColor",
|
|
36
|
+
className,
|
|
37
|
+
"aria-hidden": "true",
|
|
38
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 16 3 6l5.5 4L12 5l3.5 5L21 6l-2 10H5Zm0 2h14v2H5v-2Z" })
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function PawIcon({ className }) {
|
|
43
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
44
|
+
"svg",
|
|
45
|
+
{
|
|
46
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
47
|
+
width: "24",
|
|
48
|
+
height: "24",
|
|
49
|
+
viewBox: "0 0 24 24",
|
|
50
|
+
fill: "currentColor",
|
|
51
|
+
className,
|
|
52
|
+
"aria-hidden": "true",
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "5.5", cy: "12.5", r: "2" }),
|
|
55
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "9.5", cy: "7.5", r: "2" }),
|
|
56
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "14.5", cy: "7.5", r: "2" }),
|
|
57
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "18.5", cy: "12.5", r: "2" }),
|
|
58
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 11c-2.2 0-4 1.9-4 4.2 0 1.6 1.2 2.8 2.8 2.8.6 0 .9-.2 1.2-.2s.6.2 1.2.2c1.6 0 2.8-1.2 2.8-2.8C16 12.9 14.2 11 12 11Z" })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
var INITIAL_COLORS = [
|
|
64
|
+
"bg-emerald-100 text-emerald-700",
|
|
65
|
+
"bg-amber-100 text-amber-700",
|
|
66
|
+
"bg-sky-100 text-sky-700",
|
|
67
|
+
"bg-violet-100 text-violet-700",
|
|
68
|
+
"bg-rose-100 text-rose-700"
|
|
69
|
+
];
|
|
70
|
+
function initialColor(name) {
|
|
71
|
+
let hash = 0;
|
|
72
|
+
for (let i = 0; i < name.length; i++) {
|
|
73
|
+
hash = name.charCodeAt(i) + ((hash << 5) - hash);
|
|
74
|
+
}
|
|
75
|
+
return INITIAL_COLORS[Math.abs(hash) % INITIAL_COLORS.length];
|
|
76
|
+
}
|
|
77
|
+
function InfoChip({ children }) {
|
|
78
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex items-center rounded-full bg-sand px-2.5 py-0.5 text-xs font-medium text-text-secondary", children });
|
|
79
|
+
}
|
|
80
|
+
var DogCard = React__namespace.forwardRef(
|
|
81
|
+
({ dog, actions, renderImage, renderLink, className, ...props }, ref) => {
|
|
82
|
+
const imageSrc = dog.photoUrl || dog.breedImageUrl || null;
|
|
83
|
+
const initial = dog.name.charAt(0).toUpperCase() || "?";
|
|
84
|
+
const chips = [
|
|
85
|
+
dog.sizeLabel,
|
|
86
|
+
dog.sexLabel,
|
|
87
|
+
dog.ageLabel,
|
|
88
|
+
dog.weightLabel,
|
|
89
|
+
dog.breed
|
|
90
|
+
].filter((v) => Boolean(v));
|
|
91
|
+
const media = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative aspect-[4/3] w-full overflow-hidden bg-sand", children: [
|
|
92
|
+
imageSrc ? renderImage ? renderImage({
|
|
93
|
+
src: imageSrc,
|
|
94
|
+
alt: dog.name,
|
|
95
|
+
className: "h-full w-full object-cover"
|
|
96
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
+
"img",
|
|
98
|
+
{
|
|
99
|
+
src: imageSrc,
|
|
100
|
+
alt: dog.name,
|
|
101
|
+
className: "h-full w-full object-cover"
|
|
102
|
+
}
|
|
103
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
className: chunkADIDI7AJ_js.cn(
|
|
107
|
+
"flex h-full w-full flex-col items-center justify-center gap-1",
|
|
108
|
+
initialColor(dog.name)
|
|
109
|
+
),
|
|
110
|
+
"aria-label": dog.name,
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ jsxRuntime.jsx(PawIcon, { className: "h-7 w-7 opacity-50" }),
|
|
113
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-2xl font-bold", children: initial })
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
dog.isPrimary && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "absolute left-2 top-2 inline-flex items-center gap-1 rounded-full bg-secondary/95 px-2 py-1 text-[11px] font-semibold text-white shadow-sm", children: [
|
|
118
|
+
/* @__PURE__ */ jsxRuntime.jsx(CrownIcon, { className: "h-3 w-3" }),
|
|
119
|
+
"Principal"
|
|
120
|
+
] })
|
|
121
|
+
] });
|
|
122
|
+
const info = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col p-4", children: [
|
|
123
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "truncate font-heading text-base font-semibold text-primary", children: dog.name }),
|
|
124
|
+
chips.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 flex flex-wrap gap-1.5", children: chips.map((chip, i) => /* @__PURE__ */ jsxRuntime.jsx(InfoChip, { children: chip }, `${chip}-${i}`)) })
|
|
125
|
+
] });
|
|
126
|
+
const linkClassName = "group flex flex-1 flex-col rounded-t-xl transition-opacity hover:opacity-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2";
|
|
127
|
+
const linkLabel = `Voir le passeport de ${dog.name}`;
|
|
128
|
+
const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
129
|
+
media,
|
|
130
|
+
info
|
|
131
|
+
] });
|
|
132
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
133
|
+
"div",
|
|
134
|
+
{
|
|
135
|
+
ref,
|
|
136
|
+
className: chunkADIDI7AJ_js.cn(
|
|
137
|
+
"flex flex-col overflow-hidden rounded-xl border border-sand-dark bg-white transition-shadow hover:shadow-lg",
|
|
138
|
+
className
|
|
139
|
+
),
|
|
140
|
+
...props,
|
|
141
|
+
children: [
|
|
142
|
+
dog.href ? renderLink ? renderLink({
|
|
143
|
+
href: dog.href,
|
|
144
|
+
className: linkClassName,
|
|
145
|
+
children: body,
|
|
146
|
+
"aria-label": linkLabel
|
|
147
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: dog.href, className: linkClassName, "aria-label": linkLabel, children: body }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-1 flex-col", children: body }),
|
|
148
|
+
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-end gap-1 border-t border-sand-dark px-3 py-2", children: actions })
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
DogCard.displayName = "DogCard";
|
|
155
|
+
|
|
156
|
+
exports.DogCard = DogCard;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface DogCardData {
|
|
4
|
+
name: string;
|
|
5
|
+
/** Photo personnelle du chien (prioritaire). */
|
|
6
|
+
photoUrl?: string | null;
|
|
7
|
+
/** Image de la race, utilisée en repli quand `photoUrl` est absente. */
|
|
8
|
+
breedImageUrl?: string | null;
|
|
9
|
+
/** Libellé de taille déjà traduit ("Petit", "Grand"…). */
|
|
10
|
+
sizeLabel?: string | null;
|
|
11
|
+
/** Libellé de sexe déjà traduit ("Mâle", "Femelle"). */
|
|
12
|
+
sexLabel?: string | null;
|
|
13
|
+
/** Nom de la race. */
|
|
14
|
+
breed?: string | null;
|
|
15
|
+
/** Âge déjà formaté ("6 ans", "8 mois"). */
|
|
16
|
+
ageLabel?: string | null;
|
|
17
|
+
/** Poids déjà formaté ("32 kg"). */
|
|
18
|
+
weightLabel?: string | null;
|
|
19
|
+
/** Chien principal du foyer. */
|
|
20
|
+
isPrimary?: boolean;
|
|
21
|
+
/** Lien vers le passeport du chien. */
|
|
22
|
+
href?: string;
|
|
23
|
+
}
|
|
24
|
+
interface DogCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
25
|
+
dog: DogCardData;
|
|
26
|
+
/** Actions (éditer / supprimer) rendues par le consommateur en pied de carte. */
|
|
27
|
+
actions?: React.ReactNode;
|
|
28
|
+
/** Render personnalisé de l'image (ex : next/image). */
|
|
29
|
+
renderImage?: (props: {
|
|
30
|
+
src: string;
|
|
31
|
+
alt: string;
|
|
32
|
+
className: string;
|
|
33
|
+
}) => React.ReactNode;
|
|
34
|
+
/** Render personnalisé du lien (ex : next/link). */
|
|
35
|
+
renderLink?: (props: {
|
|
36
|
+
href: string;
|
|
37
|
+
className: string;
|
|
38
|
+
children: React.ReactNode;
|
|
39
|
+
"aria-label"?: string;
|
|
40
|
+
}) => React.ReactNode;
|
|
41
|
+
}
|
|
42
|
+
declare const DogCard: React.ForwardRefExoticComponent<DogCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
|
|
44
|
+
export { DogCard, type DogCardData, type DogCardProps };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface DogCardData {
|
|
4
|
+
name: string;
|
|
5
|
+
/** Photo personnelle du chien (prioritaire). */
|
|
6
|
+
photoUrl?: string | null;
|
|
7
|
+
/** Image de la race, utilisée en repli quand `photoUrl` est absente. */
|
|
8
|
+
breedImageUrl?: string | null;
|
|
9
|
+
/** Libellé de taille déjà traduit ("Petit", "Grand"…). */
|
|
10
|
+
sizeLabel?: string | null;
|
|
11
|
+
/** Libellé de sexe déjà traduit ("Mâle", "Femelle"). */
|
|
12
|
+
sexLabel?: string | null;
|
|
13
|
+
/** Nom de la race. */
|
|
14
|
+
breed?: string | null;
|
|
15
|
+
/** Âge déjà formaté ("6 ans", "8 mois"). */
|
|
16
|
+
ageLabel?: string | null;
|
|
17
|
+
/** Poids déjà formaté ("32 kg"). */
|
|
18
|
+
weightLabel?: string | null;
|
|
19
|
+
/** Chien principal du foyer. */
|
|
20
|
+
isPrimary?: boolean;
|
|
21
|
+
/** Lien vers le passeport du chien. */
|
|
22
|
+
href?: string;
|
|
23
|
+
}
|
|
24
|
+
interface DogCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
25
|
+
dog: DogCardData;
|
|
26
|
+
/** Actions (éditer / supprimer) rendues par le consommateur en pied de carte. */
|
|
27
|
+
actions?: React.ReactNode;
|
|
28
|
+
/** Render personnalisé de l'image (ex : next/image). */
|
|
29
|
+
renderImage?: (props: {
|
|
30
|
+
src: string;
|
|
31
|
+
alt: string;
|
|
32
|
+
className: string;
|
|
33
|
+
}) => React.ReactNode;
|
|
34
|
+
/** Render personnalisé du lien (ex : next/link). */
|
|
35
|
+
renderLink?: (props: {
|
|
36
|
+
href: string;
|
|
37
|
+
className: string;
|
|
38
|
+
children: React.ReactNode;
|
|
39
|
+
"aria-label"?: string;
|
|
40
|
+
}) => React.ReactNode;
|
|
41
|
+
}
|
|
42
|
+
declare const DogCard: React.ForwardRefExoticComponent<DogCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
|
|
44
|
+
export { DogCard, type DogCardData, type DogCardProps };
|
package/dist/index.d.mts
CHANGED
|
@@ -8,6 +8,8 @@ export { Select, SelectOption, SelectProps, selectVariants } from './components/
|
|
|
8
8
|
export { Breadcrumb, BreadcrumbItem, BreadcrumbProps, breadcrumbVariants } from './components/Breadcrumb/index.mjs';
|
|
9
9
|
export { ImageWithFallback, ImageWithFallbackProps } from './components/ImageWithFallback/index.mjs';
|
|
10
10
|
export { HotelCard, HotelCardData, HotelCardProps } from './components/HotelCard/index.mjs';
|
|
11
|
+
export { DogCard, DogCardData, DogCardProps } from './components/DogCard/index.mjs';
|
|
12
|
+
export { SearchLoadingChecklist, SearchLoadingChecklistProps, SearchLoadingStep } from './components/SearchLoadingChecklist/index.mjs';
|
|
11
13
|
export { RadioGroup, RadioGroupItemOption, RadioGroupProps } from './components/RadioGroup/index.mjs';
|
|
12
14
|
export { Checkbox, CheckboxProps } from './components/Checkbox/index.mjs';
|
|
13
15
|
export { Toggle, ToggleProps } from './components/Toggle/index.mjs';
|
|
@@ -60,7 +62,6 @@ export { IconBadge, IconBadgeProps, iconBadgeVariants } from './components/IconB
|
|
|
60
62
|
export { PriceDisplay, PriceDisplayProps } from './components/PriceDisplay/index.mjs';
|
|
61
63
|
export { DetailItem, DetailList, DetailListProps } from './components/DetailList/index.mjs';
|
|
62
64
|
export { LoadingOverlay, LoadingOverlayProps } from './components/LoadingOverlay/index.mjs';
|
|
63
|
-
export { SearchLoadingChecklist, SearchLoadingChecklistProps, SearchLoadingStep } from './components/SearchLoadingChecklist/index.mjs';
|
|
64
65
|
export { Switch, SwitchProps, switchThumbVariants, switchTrackVariants } from './components/Switch/index.mjs';
|
|
65
66
|
export { DualRangeSlider, DualRangeSliderProps } from './components/DualRangeSlider/index.mjs';
|
|
66
67
|
export { CardList, CardListProps } from './components/CardList/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export { Select, SelectOption, SelectProps, selectVariants } from './components/
|
|
|
8
8
|
export { Breadcrumb, BreadcrumbItem, BreadcrumbProps, breadcrumbVariants } from './components/Breadcrumb/index.js';
|
|
9
9
|
export { ImageWithFallback, ImageWithFallbackProps } from './components/ImageWithFallback/index.js';
|
|
10
10
|
export { HotelCard, HotelCardData, HotelCardProps } from './components/HotelCard/index.js';
|
|
11
|
+
export { DogCard, DogCardData, DogCardProps } from './components/DogCard/index.js';
|
|
12
|
+
export { SearchLoadingChecklist, SearchLoadingChecklistProps, SearchLoadingStep } from './components/SearchLoadingChecklist/index.js';
|
|
11
13
|
export { RadioGroup, RadioGroupItemOption, RadioGroupProps } from './components/RadioGroup/index.js';
|
|
12
14
|
export { Checkbox, CheckboxProps } from './components/Checkbox/index.js';
|
|
13
15
|
export { Toggle, ToggleProps } from './components/Toggle/index.js';
|
|
@@ -60,7 +62,6 @@ export { IconBadge, IconBadgeProps, iconBadgeVariants } from './components/IconB
|
|
|
60
62
|
export { PriceDisplay, PriceDisplayProps } from './components/PriceDisplay/index.js';
|
|
61
63
|
export { DetailItem, DetailList, DetailListProps } from './components/DetailList/index.js';
|
|
62
64
|
export { LoadingOverlay, LoadingOverlayProps } from './components/LoadingOverlay/index.js';
|
|
63
|
-
export { SearchLoadingChecklist, SearchLoadingChecklistProps, SearchLoadingStep } from './components/SearchLoadingChecklist/index.js';
|
|
64
65
|
export { Switch, SwitchProps, switchThumbVariants, switchTrackVariants } from './components/Switch/index.js';
|
|
65
66
|
export { DualRangeSlider, DualRangeSliderProps } from './components/DualRangeSlider/index.js';
|
|
66
67
|
export { CardList, CardListProps } from './components/CardList/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,71 +1,72 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk762LQMWP_js = require('./chunk-762LQMWP.js');
|
|
4
4
|
var chunkL7OYR6U3_js = require('./chunk-L7OYR6U3.js');
|
|
5
|
+
var chunkI4S3R6C6_js = require('./chunk-I4S3R6C6.js');
|
|
5
6
|
var chunkVTELEOT7_js = require('./chunk-VTELEOT7.js');
|
|
6
7
|
var chunkDTIYZ3TQ_js = require('./chunk-DTIYZ3TQ.js');
|
|
7
8
|
var chunkE6ZNND75_js = require('./chunk-E6ZNND75.js');
|
|
8
9
|
var chunkN3JU7JS7_js = require('./chunk-N3JU7JS7.js');
|
|
10
|
+
var chunkDS4LM7OS_js = require('./chunk-DS4LM7OS.js');
|
|
9
11
|
var chunkWXSBKARZ_js = require('./chunk-WXSBKARZ.js');
|
|
10
12
|
var chunkXHRDPJTF_js = require('./chunk-XHRDPJTF.js');
|
|
13
|
+
var chunk3VU6TPAT_js = require('./chunk-3VU6TPAT.js');
|
|
11
14
|
var chunkTT7L3ZU7_js = require('./chunk-TT7L3ZU7.js');
|
|
12
15
|
var chunkDFXXGKMI_js = require('./chunk-DFXXGKMI.js');
|
|
13
|
-
var
|
|
14
|
-
var chunkI4S3R6C6_js = require('./chunk-I4S3R6C6.js');
|
|
15
|
-
var chunk762LQMWP_js = require('./chunk-762LQMWP.js');
|
|
16
|
-
var chunkGXKON34B_js = require('./chunk-GXKON34B.js');
|
|
16
|
+
var chunk7IJOHVNJ_js = require('./chunk-7IJOHVNJ.js');
|
|
17
17
|
var chunkTZHT7NZU_js = require('./chunk-TZHT7NZU.js');
|
|
18
|
+
var chunkPG4I4NWO_js = require('./chunk-PG4I4NWO.js');
|
|
19
|
+
var chunkHS3MAW3G_js = require('./chunk-HS3MAW3G.js');
|
|
18
20
|
var chunkKFQILIZO_js = require('./chunk-KFQILIZO.js');
|
|
19
21
|
var chunkNCU5PY34_js = require('./chunk-NCU5PY34.js');
|
|
20
|
-
var chunkHS3MAW3G_js = require('./chunk-HS3MAW3G.js');
|
|
21
22
|
var chunk6KW7ZSKR_js = require('./chunk-6KW7ZSKR.js');
|
|
22
23
|
var chunkQWDKSY6Y_js = require('./chunk-QWDKSY6Y.js');
|
|
23
24
|
var chunk3R7PT3JG_js = require('./chunk-3R7PT3JG.js');
|
|
24
|
-
var
|
|
25
|
+
var chunkPRDIS2VR_js = require('./chunk-PRDIS2VR.js');
|
|
26
|
+
var chunkW7DZZS6L_js = require('./chunk-W7DZZS6L.js');
|
|
25
27
|
var chunkTE4WHZ4Q_js = require('./chunk-TE4WHZ4Q.js');
|
|
26
28
|
var chunkHN6B4TAW_js = require('./chunk-HN6B4TAW.js');
|
|
27
29
|
var chunkKZSGVMUG_js = require('./chunk-KZSGVMUG.js');
|
|
28
|
-
var chunkNBDPT3XQ_js = require('./chunk-NBDPT3XQ.js');
|
|
29
30
|
var chunkSCGN5H6D_js = require('./chunk-SCGN5H6D.js');
|
|
31
|
+
var chunkNBDPT3XQ_js = require('./chunk-NBDPT3XQ.js');
|
|
32
|
+
var chunkGXKON34B_js = require('./chunk-GXKON34B.js');
|
|
30
33
|
var chunkB4LR4H6R_js = require('./chunk-B4LR4H6R.js');
|
|
31
|
-
var
|
|
32
|
-
var
|
|
34
|
+
var chunkZCQJN4IT_js = require('./chunk-ZCQJN4IT.js');
|
|
35
|
+
var chunkYN4HPIRC_js = require('./chunk-YN4HPIRC.js');
|
|
33
36
|
var chunkIRKM5UF4_js = require('./chunk-IRKM5UF4.js');
|
|
34
37
|
var chunkECVKFE6U_js = require('./chunk-ECVKFE6U.js');
|
|
35
|
-
var chunkYN4HPIRC_js = require('./chunk-YN4HPIRC.js');
|
|
36
|
-
var chunkMKOKWME3_js = require('./chunk-MKOKWME3.js');
|
|
37
38
|
var chunkDLOHAW74_js = require('./chunk-DLOHAW74.js');
|
|
38
39
|
var chunk77WKG2D7_js = require('./chunk-77WKG2D7.js');
|
|
39
40
|
var chunkU3XWNFHH_js = require('./chunk-U3XWNFHH.js');
|
|
40
|
-
var
|
|
41
|
-
var chunkTDGU5Y2P_js = require('./chunk-TDGU5Y2P.js');
|
|
41
|
+
var chunkMKOKWME3_js = require('./chunk-MKOKWME3.js');
|
|
42
42
|
var chunkIEHX4DU6_js = require('./chunk-IEHX4DU6.js');
|
|
43
|
+
var chunkT5FLQQP6_js = require('./chunk-T5FLQQP6.js');
|
|
43
44
|
var chunkS5TLUDNM_js = require('./chunk-S5TLUDNM.js');
|
|
44
|
-
var chunk7W3TFPIF_js = require('./chunk-7W3TFPIF.js');
|
|
45
45
|
var chunkTJDHGNMR_js = require('./chunk-TJDHGNMR.js');
|
|
46
|
-
var
|
|
46
|
+
var chunkTDGU5Y2P_js = require('./chunk-TDGU5Y2P.js');
|
|
47
|
+
var chunk7W3TFPIF_js = require('./chunk-7W3TFPIF.js');
|
|
47
48
|
var chunkC4RZBOKH_js = require('./chunk-C4RZBOKH.js');
|
|
48
49
|
var chunkKOO5ZXLD_js = require('./chunk-KOO5ZXLD.js');
|
|
49
|
-
var
|
|
50
|
-
var chunkIJIUUBFT_js = require('./chunk-IJIUUBFT.js');
|
|
50
|
+
var chunk6EG6EAHW_js = require('./chunk-6EG6EAHW.js');
|
|
51
51
|
var chunkT4AT3YCT_js = require('./chunk-T4AT3YCT.js');
|
|
52
52
|
var chunkAIA3NHCK_js = require('./chunk-AIA3NHCK.js');
|
|
53
|
+
var chunkBS7R7VDS_js = require('./chunk-BS7R7VDS.js');
|
|
53
54
|
var chunkE24VNM6S_js = require('./chunk-E24VNM6S.js');
|
|
55
|
+
var chunkMY6BYO5F_js = require('./chunk-MY6BYO5F.js');
|
|
54
56
|
var chunkXXC2YD3D_js = require('./chunk-XXC2YD3D.js');
|
|
55
57
|
var chunkVWFY24XF_js = require('./chunk-VWFY24XF.js');
|
|
56
|
-
var chunkT5FLQQP6_js = require('./chunk-T5FLQQP6.js');
|
|
57
|
-
var chunkEY4ZIR3P_js = require('./chunk-EY4ZIR3P.js');
|
|
58
58
|
var chunkZ5S7LHMY_js = require('./chunk-Z5S7LHMY.js');
|
|
59
|
-
var
|
|
59
|
+
var chunkNHB2TI2B_js = require('./chunk-NHB2TI2B.js');
|
|
60
60
|
var chunkPND5YKFN_js = require('./chunk-PND5YKFN.js');
|
|
61
61
|
var chunkH3JNRTAI_js = require('./chunk-H3JNRTAI.js');
|
|
62
62
|
var chunkYZTVHCLK_js = require('./chunk-YZTVHCLK.js');
|
|
63
63
|
var chunkZAUYE2EI_js = require('./chunk-ZAUYE2EI.js');
|
|
64
|
-
var
|
|
64
|
+
var chunkIJIUUBFT_js = require('./chunk-IJIUUBFT.js');
|
|
65
|
+
var chunkP7GAKOCX_js = require('./chunk-P7GAKOCX.js');
|
|
65
66
|
var chunkMCF3EQTV_js = require('./chunk-MCF3EQTV.js');
|
|
66
67
|
var chunkWBRVUWGC_js = require('./chunk-WBRVUWGC.js');
|
|
67
68
|
var chunkWXEZA6NE_js = require('./chunk-WXEZA6NE.js');
|
|
68
|
-
var
|
|
69
|
+
var chunkEY4ZIR3P_js = require('./chunk-EY4ZIR3P.js');
|
|
69
70
|
var chunkADIDI7AJ_js = require('./chunk-ADIDI7AJ.js');
|
|
70
71
|
var React = require('react');
|
|
71
72
|
var classVarianceAuthority = require('class-variance-authority');
|
|
@@ -486,13 +487,9 @@ function MobileBookingBar({
|
|
|
486
487
|
);
|
|
487
488
|
}
|
|
488
489
|
|
|
489
|
-
Object.defineProperty(exports, "
|
|
490
|
-
enumerable: true,
|
|
491
|
-
get: function () { return chunk7IJOHVNJ_js.Tag; }
|
|
492
|
-
});
|
|
493
|
-
Object.defineProperty(exports, "tagVariants", {
|
|
490
|
+
Object.defineProperty(exports, "Tabs", {
|
|
494
491
|
enumerable: true,
|
|
495
|
-
get: function () { return
|
|
492
|
+
get: function () { return chunk762LQMWP_js.Tabs; }
|
|
496
493
|
});
|
|
497
494
|
Object.defineProperty(exports, "Textarea", {
|
|
498
495
|
enumerable: true,
|
|
@@ -502,6 +499,18 @@ Object.defineProperty(exports, "textareaVariants", {
|
|
|
502
499
|
enumerable: true,
|
|
503
500
|
get: function () { return chunkL7OYR6U3_js.textareaVariants; }
|
|
504
501
|
});
|
|
502
|
+
Object.defineProperty(exports, "Switch", {
|
|
503
|
+
enumerable: true,
|
|
504
|
+
get: function () { return chunkI4S3R6C6_js.Switch; }
|
|
505
|
+
});
|
|
506
|
+
Object.defineProperty(exports, "switchThumbVariants", {
|
|
507
|
+
enumerable: true,
|
|
508
|
+
get: function () { return chunkI4S3R6C6_js.switchThumbVariants; }
|
|
509
|
+
});
|
|
510
|
+
Object.defineProperty(exports, "switchTrackVariants", {
|
|
511
|
+
enumerable: true,
|
|
512
|
+
get: function () { return chunkI4S3R6C6_js.switchTrackVariants; }
|
|
513
|
+
});
|
|
505
514
|
Object.defineProperty(exports, "Toast", {
|
|
506
515
|
enumerable: true,
|
|
507
516
|
get: function () { return chunkVTELEOT7_js.Toast; }
|
|
@@ -522,6 +531,10 @@ Object.defineProperty(exports, "VerticalMarquee", {
|
|
|
522
531
|
enumerable: true,
|
|
523
532
|
get: function () { return chunkN3JU7JS7_js.VerticalMarquee; }
|
|
524
533
|
});
|
|
534
|
+
Object.defineProperty(exports, "Sidebar", {
|
|
535
|
+
enumerable: true,
|
|
536
|
+
get: function () { return chunkDS4LM7OS_js.Sidebar; }
|
|
537
|
+
});
|
|
525
538
|
Object.defineProperty(exports, "SignInCallout", {
|
|
526
539
|
enumerable: true,
|
|
527
540
|
get: function () { return chunkWXSBKARZ_js.SignInCallout; }
|
|
@@ -538,6 +551,10 @@ Object.defineProperty(exports, "spinnerVariants", {
|
|
|
538
551
|
enumerable: true,
|
|
539
552
|
get: function () { return chunkXHRDPJTF_js.spinnerVariants; }
|
|
540
553
|
});
|
|
554
|
+
Object.defineProperty(exports, "Stepper", {
|
|
555
|
+
enumerable: true,
|
|
556
|
+
get: function () { return chunk3VU6TPAT_js.Stepper; }
|
|
557
|
+
});
|
|
541
558
|
Object.defineProperty(exports, "StatCard", {
|
|
542
559
|
enumerable: true,
|
|
543
560
|
get: function () { return chunkTT7L3ZU7_js.StatCard; }
|
|
@@ -550,33 +567,33 @@ Object.defineProperty(exports, "statusBadgeVariants", {
|
|
|
550
567
|
enumerable: true,
|
|
551
568
|
get: function () { return chunkDFXXGKMI_js.statusBadgeVariants; }
|
|
552
569
|
});
|
|
553
|
-
Object.defineProperty(exports, "
|
|
570
|
+
Object.defineProperty(exports, "Tag", {
|
|
554
571
|
enumerable: true,
|
|
555
|
-
get: function () { return
|
|
572
|
+
get: function () { return chunk7IJOHVNJ_js.Tag; }
|
|
556
573
|
});
|
|
557
|
-
Object.defineProperty(exports, "
|
|
574
|
+
Object.defineProperty(exports, "tagVariants", {
|
|
558
575
|
enumerable: true,
|
|
559
|
-
get: function () { return
|
|
576
|
+
get: function () { return chunk7IJOHVNJ_js.tagVariants; }
|
|
560
577
|
});
|
|
561
|
-
Object.defineProperty(exports, "
|
|
578
|
+
Object.defineProperty(exports, "Rating", {
|
|
562
579
|
enumerable: true,
|
|
563
|
-
get: function () { return
|
|
580
|
+
get: function () { return chunkTZHT7NZU_js.Rating; }
|
|
564
581
|
});
|
|
565
|
-
Object.defineProperty(exports, "
|
|
582
|
+
Object.defineProperty(exports, "ProgressBar", {
|
|
566
583
|
enumerable: true,
|
|
567
|
-
get: function () { return
|
|
584
|
+
get: function () { return chunkPG4I4NWO_js.ProgressBar; }
|
|
568
585
|
});
|
|
569
|
-
Object.defineProperty(exports, "
|
|
586
|
+
Object.defineProperty(exports, "progressBarVariants", {
|
|
570
587
|
enumerable: true,
|
|
571
|
-
get: function () { return
|
|
588
|
+
get: function () { return chunkPG4I4NWO_js.progressBarVariants; }
|
|
572
589
|
});
|
|
573
|
-
Object.defineProperty(exports, "
|
|
590
|
+
Object.defineProperty(exports, "progressFillVariants", {
|
|
574
591
|
enumerable: true,
|
|
575
|
-
get: function () { return
|
|
592
|
+
get: function () { return chunkPG4I4NWO_js.progressFillVariants; }
|
|
576
593
|
});
|
|
577
|
-
Object.defineProperty(exports, "
|
|
594
|
+
Object.defineProperty(exports, "SearchBar", {
|
|
578
595
|
enumerable: true,
|
|
579
|
-
get: function () { return
|
|
596
|
+
get: function () { return chunkHS3MAW3G_js.SearchBar; }
|
|
580
597
|
});
|
|
581
598
|
Object.defineProperty(exports, "RoomTypeCard", {
|
|
582
599
|
enumerable: true,
|
|
@@ -602,10 +619,6 @@ Object.defineProperty(exports, "SkeletonText", {
|
|
|
602
619
|
enumerable: true,
|
|
603
620
|
get: function () { return chunkNCU5PY34_js.SkeletonText; }
|
|
604
621
|
});
|
|
605
|
-
Object.defineProperty(exports, "SearchBar", {
|
|
606
|
-
enumerable: true,
|
|
607
|
-
get: function () { return chunkHS3MAW3G_js.SearchBar; }
|
|
608
|
-
});
|
|
609
622
|
Object.defineProperty(exports, "SearchLoadingChecklist", {
|
|
610
623
|
enumerable: true,
|
|
611
624
|
get: function () { return chunk6KW7ZSKR_js.SearchLoadingChecklist; }
|
|
@@ -622,9 +635,17 @@ Object.defineProperty(exports, "selectVariants", {
|
|
|
622
635
|
enumerable: true,
|
|
623
636
|
get: function () { return chunk3R7PT3JG_js.selectVariants; }
|
|
624
637
|
});
|
|
625
|
-
Object.defineProperty(exports, "
|
|
638
|
+
Object.defineProperty(exports, "PromoBanner", {
|
|
626
639
|
enumerable: true,
|
|
627
|
-
get: function () { return
|
|
640
|
+
get: function () { return chunkPRDIS2VR_js.PromoBanner; }
|
|
641
|
+
});
|
|
642
|
+
Object.defineProperty(exports, "promoBannerVariants", {
|
|
643
|
+
enumerable: true,
|
|
644
|
+
get: function () { return chunkPRDIS2VR_js.promoBannerVariants; }
|
|
645
|
+
});
|
|
646
|
+
Object.defineProperty(exports, "LinkCard", {
|
|
647
|
+
enumerable: true,
|
|
648
|
+
get: function () { return chunkW7DZZS6L_js.LinkCard; }
|
|
628
649
|
});
|
|
629
650
|
Object.defineProperty(exports, "LoadingOverlay", {
|
|
630
651
|
enumerable: true,
|
|
@@ -638,37 +659,33 @@ Object.defineProperty(exports, "MobileMenu", {
|
|
|
638
659
|
enumerable: true,
|
|
639
660
|
get: function () { return chunkKZSGVMUG_js.MobileMenu; }
|
|
640
661
|
});
|
|
641
|
-
Object.defineProperty(exports, "Modal", {
|
|
642
|
-
enumerable: true,
|
|
643
|
-
get: function () { return chunkNBDPT3XQ_js.Modal; }
|
|
644
|
-
});
|
|
645
662
|
Object.defineProperty(exports, "Pagination", {
|
|
646
663
|
enumerable: true,
|
|
647
664
|
get: function () { return chunkSCGN5H6D_js.Pagination; }
|
|
648
665
|
});
|
|
649
|
-
Object.defineProperty(exports, "
|
|
666
|
+
Object.defineProperty(exports, "Modal", {
|
|
650
667
|
enumerable: true,
|
|
651
|
-
get: function () { return
|
|
668
|
+
get: function () { return chunkNBDPT3XQ_js.Modal; }
|
|
652
669
|
});
|
|
653
|
-
Object.defineProperty(exports, "
|
|
670
|
+
Object.defineProperty(exports, "RadioGroup", {
|
|
654
671
|
enumerable: true,
|
|
655
|
-
get: function () { return
|
|
672
|
+
get: function () { return chunkGXKON34B_js.RadioGroup; }
|
|
656
673
|
});
|
|
657
|
-
Object.defineProperty(exports, "
|
|
674
|
+
Object.defineProperty(exports, "PriceDisplay", {
|
|
658
675
|
enumerable: true,
|
|
659
|
-
get: function () { return
|
|
676
|
+
get: function () { return chunkB4LR4H6R_js.PriceDisplay; }
|
|
660
677
|
});
|
|
661
|
-
Object.defineProperty(exports, "
|
|
678
|
+
Object.defineProperty(exports, "FloatingDock", {
|
|
662
679
|
enumerable: true,
|
|
663
|
-
get: function () { return
|
|
680
|
+
get: function () { return chunkZCQJN4IT_js.FloatingDock; }
|
|
664
681
|
});
|
|
665
|
-
Object.defineProperty(exports, "
|
|
682
|
+
Object.defineProperty(exports, "IconBadge", {
|
|
666
683
|
enumerable: true,
|
|
667
|
-
get: function () { return
|
|
684
|
+
get: function () { return chunkYN4HPIRC_js.IconBadge; }
|
|
668
685
|
});
|
|
669
|
-
Object.defineProperty(exports, "
|
|
686
|
+
Object.defineProperty(exports, "iconBadgeVariants", {
|
|
670
687
|
enumerable: true,
|
|
671
|
-
get: function () { return
|
|
688
|
+
get: function () { return chunkYN4HPIRC_js.iconBadgeVariants; }
|
|
672
689
|
});
|
|
673
690
|
Object.defineProperty(exports, "Header", {
|
|
674
691
|
enumerable: true,
|
|
@@ -678,18 +695,6 @@ Object.defineProperty(exports, "HotelCard", {
|
|
|
678
695
|
enumerable: true,
|
|
679
696
|
get: function () { return chunkECVKFE6U_js.HotelCard; }
|
|
680
697
|
});
|
|
681
|
-
Object.defineProperty(exports, "IconBadge", {
|
|
682
|
-
enumerable: true,
|
|
683
|
-
get: function () { return chunkYN4HPIRC_js.IconBadge; }
|
|
684
|
-
});
|
|
685
|
-
Object.defineProperty(exports, "iconBadgeVariants", {
|
|
686
|
-
enumerable: true,
|
|
687
|
-
get: function () { return chunkYN4HPIRC_js.iconBadgeVariants; }
|
|
688
|
-
});
|
|
689
|
-
Object.defineProperty(exports, "ImageGallery", {
|
|
690
|
-
enumerable: true,
|
|
691
|
-
get: function () { return chunkMKOKWME3_js.ImageGallery; }
|
|
692
|
-
});
|
|
693
698
|
Object.defineProperty(exports, "ImageWithFallback", {
|
|
694
699
|
enumerable: true,
|
|
695
700
|
get: function () { return chunkDLOHAW74_js.ImageWithFallback; }
|
|
@@ -706,33 +711,33 @@ Object.defineProperty(exports, "Lightbox", {
|
|
|
706
711
|
enumerable: true,
|
|
707
712
|
get: function () { return chunkU3XWNFHH_js.Lightbox; }
|
|
708
713
|
});
|
|
709
|
-
Object.defineProperty(exports, "
|
|
710
|
-
enumerable: true,
|
|
711
|
-
get: function () { return chunkW7DZZS6L_js.LinkCard; }
|
|
712
|
-
});
|
|
713
|
-
Object.defineProperty(exports, "DualRangeSlider", {
|
|
714
|
+
Object.defineProperty(exports, "ImageGallery", {
|
|
714
715
|
enumerable: true,
|
|
715
|
-
get: function () { return
|
|
716
|
+
get: function () { return chunkMKOKWME3_js.ImageGallery; }
|
|
716
717
|
});
|
|
717
718
|
Object.defineProperty(exports, "EmptyState", {
|
|
718
719
|
enumerable: true,
|
|
719
720
|
get: function () { return chunkIEHX4DU6_js.EmptyState; }
|
|
720
721
|
});
|
|
721
|
-
Object.defineProperty(exports, "
|
|
722
|
+
Object.defineProperty(exports, "DropdownMenu", {
|
|
722
723
|
enumerable: true,
|
|
723
|
-
get: function () { return
|
|
724
|
+
get: function () { return chunkT5FLQQP6_js.DropdownMenu; }
|
|
724
725
|
});
|
|
725
|
-
Object.defineProperty(exports, "
|
|
726
|
+
Object.defineProperty(exports, "ErrorBoundary", {
|
|
726
727
|
enumerable: true,
|
|
727
|
-
get: function () { return
|
|
728
|
+
get: function () { return chunkS5TLUDNM_js.ErrorBoundary; }
|
|
728
729
|
});
|
|
729
730
|
Object.defineProperty(exports, "FilterPill", {
|
|
730
731
|
enumerable: true,
|
|
731
732
|
get: function () { return chunkTJDHGNMR_js.FilterPill; }
|
|
732
733
|
});
|
|
733
|
-
Object.defineProperty(exports, "
|
|
734
|
+
Object.defineProperty(exports, "DualRangeSlider", {
|
|
734
735
|
enumerable: true,
|
|
735
|
-
get: function () { return
|
|
736
|
+
get: function () { return chunkTDGU5Y2P_js.DualRangeSlider; }
|
|
737
|
+
});
|
|
738
|
+
Object.defineProperty(exports, "FilterAccordion", {
|
|
739
|
+
enumerable: true,
|
|
740
|
+
get: function () { return chunk7W3TFPIF_js.FilterAccordion; }
|
|
736
741
|
});
|
|
737
742
|
Object.defineProperty(exports, "Footer", {
|
|
738
743
|
enumerable: true,
|
|
@@ -742,13 +747,13 @@ Object.defineProperty(exports, "GuestPicker", {
|
|
|
742
747
|
enumerable: true,
|
|
743
748
|
get: function () { return chunkKOO5ZXLD_js.GuestPicker; }
|
|
744
749
|
});
|
|
745
|
-
Object.defineProperty(exports, "
|
|
750
|
+
Object.defineProperty(exports, "Banner", {
|
|
746
751
|
enumerable: true,
|
|
747
|
-
get: function () { return
|
|
752
|
+
get: function () { return chunk6EG6EAHW_js.Banner; }
|
|
748
753
|
});
|
|
749
|
-
Object.defineProperty(exports, "
|
|
754
|
+
Object.defineProperty(exports, "bannerVariants", {
|
|
750
755
|
enumerable: true,
|
|
751
|
-
get: function () { return
|
|
756
|
+
get: function () { return chunk6EG6EAHW_js.bannerVariants; }
|
|
752
757
|
});
|
|
753
758
|
Object.defineProperty(exports, "Counter", {
|
|
754
759
|
enumerable: true,
|
|
@@ -762,10 +767,18 @@ Object.defineProperty(exports, "DateRangePicker", {
|
|
|
762
767
|
enumerable: true,
|
|
763
768
|
get: function () { return chunkAIA3NHCK_js.DateRangePicker; }
|
|
764
769
|
});
|
|
770
|
+
Object.defineProperty(exports, "DogCard", {
|
|
771
|
+
enumerable: true,
|
|
772
|
+
get: function () { return chunkBS7R7VDS_js.DogCard; }
|
|
773
|
+
});
|
|
765
774
|
Object.defineProperty(exports, "DetailList", {
|
|
766
775
|
enumerable: true,
|
|
767
776
|
get: function () { return chunkE24VNM6S_js.DetailList; }
|
|
768
777
|
});
|
|
778
|
+
Object.defineProperty(exports, "CardList", {
|
|
779
|
+
enumerable: true,
|
|
780
|
+
get: function () { return chunkMY6BYO5F_js.CardList; }
|
|
781
|
+
});
|
|
769
782
|
Object.defineProperty(exports, "Divider", {
|
|
770
783
|
enumerable: true,
|
|
771
784
|
get: function () { return chunkXXC2YD3D_js.Divider; }
|
|
@@ -774,14 +787,6 @@ Object.defineProperty(exports, "Drawer", {
|
|
|
774
787
|
enumerable: true,
|
|
775
788
|
get: function () { return chunkVWFY24XF_js.Drawer; }
|
|
776
789
|
});
|
|
777
|
-
Object.defineProperty(exports, "DropdownMenu", {
|
|
778
|
-
enumerable: true,
|
|
779
|
-
get: function () { return chunkT5FLQQP6_js.DropdownMenu; }
|
|
780
|
-
});
|
|
781
|
-
Object.defineProperty(exports, "Avatar", {
|
|
782
|
-
enumerable: true,
|
|
783
|
-
get: function () { return chunkEY4ZIR3P_js.Avatar; }
|
|
784
|
-
});
|
|
785
790
|
Object.defineProperty(exports, "Badge", {
|
|
786
791
|
enumerable: true,
|
|
787
792
|
get: function () { return chunkZ5S7LHMY_js.Badge; }
|
|
@@ -790,13 +795,13 @@ Object.defineProperty(exports, "badgeVariants", {
|
|
|
790
795
|
enumerable: true,
|
|
791
796
|
get: function () { return chunkZ5S7LHMY_js.badgeVariants; }
|
|
792
797
|
});
|
|
793
|
-
Object.defineProperty(exports, "
|
|
798
|
+
Object.defineProperty(exports, "Autocomplete", {
|
|
794
799
|
enumerable: true,
|
|
795
|
-
get: function () { return
|
|
800
|
+
get: function () { return chunkNHB2TI2B_js.Autocomplete; }
|
|
796
801
|
});
|
|
797
|
-
Object.defineProperty(exports, "
|
|
802
|
+
Object.defineProperty(exports, "autocompleteInputVariants", {
|
|
798
803
|
enumerable: true,
|
|
799
|
-
get: function () { return
|
|
804
|
+
get: function () { return chunkNHB2TI2B_js.autocompleteInputVariants; }
|
|
800
805
|
});
|
|
801
806
|
Object.defineProperty(exports, "BottomNavBar", {
|
|
802
807
|
enumerable: true,
|
|
@@ -846,9 +851,13 @@ Object.defineProperty(exports, "cardVariants", {
|
|
|
846
851
|
enumerable: true,
|
|
847
852
|
get: function () { return chunkZAUYE2EI_js.cardVariants; }
|
|
848
853
|
});
|
|
849
|
-
Object.defineProperty(exports, "
|
|
854
|
+
Object.defineProperty(exports, "Checkbox", {
|
|
850
855
|
enumerable: true,
|
|
851
|
-
get: function () { return
|
|
856
|
+
get: function () { return chunkIJIUUBFT_js.Checkbox; }
|
|
857
|
+
});
|
|
858
|
+
Object.defineProperty(exports, "Carousel", {
|
|
859
|
+
enumerable: true,
|
|
860
|
+
get: function () { return chunkP7GAKOCX_js.Carousel; }
|
|
852
861
|
});
|
|
853
862
|
Object.defineProperty(exports, "Accordion", {
|
|
854
863
|
enumerable: true,
|
|
@@ -862,13 +871,9 @@ Object.defineProperty(exports, "AnchorTabs", {
|
|
|
862
871
|
enumerable: true,
|
|
863
872
|
get: function () { return chunkWXEZA6NE_js.AnchorTabs; }
|
|
864
873
|
});
|
|
865
|
-
Object.defineProperty(exports, "
|
|
866
|
-
enumerable: true,
|
|
867
|
-
get: function () { return chunkNHB2TI2B_js.Autocomplete; }
|
|
868
|
-
});
|
|
869
|
-
Object.defineProperty(exports, "autocompleteInputVariants", {
|
|
874
|
+
Object.defineProperty(exports, "Avatar", {
|
|
870
875
|
enumerable: true,
|
|
871
|
-
get: function () { return
|
|
876
|
+
get: function () { return chunkEY4ZIR3P_js.Avatar; }
|
|
872
877
|
});
|
|
873
878
|
Object.defineProperty(exports, "cn", {
|
|
874
879
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Tabs } from './chunk-VOZPGXQD.mjs';
|
|
2
2
|
export { Textarea, textareaVariants } from './chunk-ZZ4EWC53.mjs';
|
|
3
|
+
export { Switch, switchThumbVariants, switchTrackVariants } from './chunk-DMCMWOBJ.mjs';
|
|
3
4
|
export { Toast, toastVariants } from './chunk-YVTUUNAX.mjs';
|
|
4
5
|
export { Toggle } from './chunk-2AB5ZHY5.mjs';
|
|
5
6
|
export { Tooltip } from './chunk-2MJTZ6RR.mjs';
|
|
6
7
|
export { VerticalMarquee } from './chunk-JP5ZR2HI.mjs';
|
|
8
|
+
export { Sidebar } from './chunk-MPL35D5G.mjs';
|
|
7
9
|
export { SignInCallout, signInCalloutVariants } from './chunk-Z3KRMKHP.mjs';
|
|
8
10
|
export { Spinner, spinnerVariants } from './chunk-NCSFXSOZ.mjs';
|
|
11
|
+
export { Stepper } from './chunk-2ASKBL63.mjs';
|
|
9
12
|
export { StatCard } from './chunk-O2W7NR33.mjs';
|
|
10
13
|
export { StatusBadge, statusBadgeVariants } from './chunk-FZ7UNXSC.mjs';
|
|
11
|
-
export {
|
|
12
|
-
export { Switch, switchThumbVariants, switchTrackVariants } from './chunk-DMCMWOBJ.mjs';
|
|
13
|
-
export { Tabs } from './chunk-VOZPGXQD.mjs';
|
|
14
|
-
export { RadioGroup } from './chunk-F2BUMJYW.mjs';
|
|
14
|
+
export { Tag, tagVariants } from './chunk-WOG6V7OW.mjs';
|
|
15
15
|
export { Rating } from './chunk-SGDC4IVX.mjs';
|
|
16
|
+
export { ProgressBar, progressBarVariants, progressFillVariants } from './chunk-UGYMWWKT.mjs';
|
|
17
|
+
export { SearchBar } from './chunk-KQK7LFWM.mjs';
|
|
16
18
|
export { RoomTypeCard, RoomTypeCardSkeleton } from './chunk-IGBEBAPY.mjs';
|
|
17
19
|
export { Skeleton, SkeletonCircle, SkeletonImage, SkeletonText } from './chunk-PAHSQMXV.mjs';
|
|
18
|
-
export { SearchBar } from './chunk-KQK7LFWM.mjs';
|
|
19
20
|
export { SearchLoadingChecklist } from './chunk-SRYZ4N7T.mjs';
|
|
20
21
|
export { SegmentedControl } from './chunk-36Y7UU32.mjs';
|
|
21
22
|
export { Select, selectVariants } from './chunk-333YD5QI.mjs';
|
|
22
|
-
export {
|
|
23
|
+
export { PromoBanner, promoBannerVariants } from './chunk-FNDR3WOZ.mjs';
|
|
24
|
+
export { LinkCard } from './chunk-UYDZKAGZ.mjs';
|
|
23
25
|
export { LoadingOverlay } from './chunk-WVEJS2J2.mjs';
|
|
24
26
|
export { MegaMenu } from './chunk-EUEM2D5M.mjs';
|
|
25
27
|
export { MobileMenu } from './chunk-R4DC7XPP.mjs';
|
|
26
|
-
export { Modal } from './chunk-74B2EGKT.mjs';
|
|
27
28
|
export { Pagination } from './chunk-XQVODPHL.mjs';
|
|
29
|
+
export { Modal } from './chunk-74B2EGKT.mjs';
|
|
30
|
+
export { RadioGroup } from './chunk-F2BUMJYW.mjs';
|
|
28
31
|
export { PriceDisplay } from './chunk-REXLQTNE.mjs';
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
32
|
+
export { FloatingDock } from './chunk-P2SGBTKS.mjs';
|
|
33
|
+
export { IconBadge, iconBadgeVariants } from './chunk-I4WCNTNP.mjs';
|
|
31
34
|
export { Header } from './chunk-PPDKQ3FF.mjs';
|
|
32
35
|
export { HotelCard } from './chunk-XSSRFA5O.mjs';
|
|
33
|
-
export { IconBadge, iconBadgeVariants } from './chunk-I4WCNTNP.mjs';
|
|
34
|
-
export { ImageGallery } from './chunk-QU6ZRLKO.mjs';
|
|
35
36
|
export { ImageWithFallback } from './chunk-BUXVK2HE.mjs';
|
|
36
37
|
export { Input, inputVariants } from './chunk-GRG4USTC.mjs';
|
|
37
38
|
export { Lightbox } from './chunk-GBWVIY3C.mjs';
|
|
38
|
-
export {
|
|
39
|
-
export { DualRangeSlider } from './chunk-ERL3WXNY.mjs';
|
|
39
|
+
export { ImageGallery } from './chunk-QU6ZRLKO.mjs';
|
|
40
40
|
export { EmptyState } from './chunk-OCUHCDAQ.mjs';
|
|
41
|
+
export { DropdownMenu } from './chunk-Q7BKR6O7.mjs';
|
|
41
42
|
export { ErrorBoundary } from './chunk-5257MWFI.mjs';
|
|
42
|
-
export { FilterAccordion } from './chunk-VQVRKRSM.mjs';
|
|
43
43
|
export { FilterPill } from './chunk-YKBASX5A.mjs';
|
|
44
|
-
export {
|
|
44
|
+
export { DualRangeSlider } from './chunk-ERL3WXNY.mjs';
|
|
45
|
+
export { FilterAccordion } from './chunk-VQVRKRSM.mjs';
|
|
45
46
|
export { Footer } from './chunk-SZ3SV4SJ.mjs';
|
|
46
47
|
export { GuestPicker } from './chunk-EJ7LDW7E.mjs';
|
|
47
|
-
export {
|
|
48
|
-
export { Checkbox } from './chunk-EEIPCJQ2.mjs';
|
|
48
|
+
export { Banner, bannerVariants } from './chunk-LFIZX2S6.mjs';
|
|
49
49
|
export { Counter } from './chunk-LRNSVRUN.mjs';
|
|
50
50
|
export { DatePickerInput, DateRangePicker } from './chunk-FL3GD5FJ.mjs';
|
|
51
|
+
export { DogCard } from './chunk-4A3AQ66D.mjs';
|
|
51
52
|
export { DetailList } from './chunk-N6THLJIG.mjs';
|
|
53
|
+
export { CardList } from './chunk-RJWHPHHX.mjs';
|
|
52
54
|
export { Divider } from './chunk-E4B6LXK7.mjs';
|
|
53
55
|
export { Drawer } from './chunk-ZLF7IL3Y.mjs';
|
|
54
|
-
export { DropdownMenu } from './chunk-Q7BKR6O7.mjs';
|
|
55
|
-
export { Avatar } from './chunk-2POGTS27.mjs';
|
|
56
56
|
export { Badge, badgeVariants } from './chunk-XZU2SISM.mjs';
|
|
57
|
-
export {
|
|
57
|
+
export { Autocomplete, autocompleteInputVariants } from './chunk-B47HQHX3.mjs';
|
|
58
58
|
export { BottomNavBar } from './chunk-UQRQZLMQ.mjs';
|
|
59
59
|
export { Breadcrumb, breadcrumbVariants } from './chunk-UKCH6RYL.mjs';
|
|
60
60
|
export { Button, buttonVariants } from './chunk-4U5MNA3B.mjs';
|
|
61
61
|
export { Card, CardContent, CardDescription, CardImage, CardTitle, cardImageVariants, cardVariants } from './chunk-V5J2XLPD.mjs';
|
|
62
|
-
export {
|
|
62
|
+
export { Checkbox } from './chunk-EEIPCJQ2.mjs';
|
|
63
|
+
export { Carousel } from './chunk-OOPP4ES2.mjs';
|
|
63
64
|
export { Accordion } from './chunk-NZ7GF6RF.mjs';
|
|
64
65
|
export { Alert } from './chunk-BQWVWK74.mjs';
|
|
65
66
|
export { AnchorTabs } from './chunk-M2H6QUAL.mjs';
|
|
66
|
-
export {
|
|
67
|
+
export { Avatar } from './chunk-2POGTS27.mjs';
|
|
67
68
|
import { cn } from './chunk-IMKLN273.mjs';
|
|
68
69
|
export { cn } from './chunk-IMKLN273.mjs';
|
|
69
70
|
import * as React from 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dododog/ui",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "React UI component library for DodoDog — pet-friendly travel platform",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -103,6 +103,11 @@
|
|
|
103
103
|
"import": "./dist/components/DateRangePicker/index.mjs",
|
|
104
104
|
"require": "./dist/components/DateRangePicker/index.js"
|
|
105
105
|
},
|
|
106
|
+
"./dog-card": {
|
|
107
|
+
"types": "./dist/components/DogCard/index.d.ts",
|
|
108
|
+
"import": "./dist/components/DogCard/index.mjs",
|
|
109
|
+
"require": "./dist/components/DogCard/index.js"
|
|
110
|
+
},
|
|
106
111
|
"./detail-list": {
|
|
107
112
|
"types": "./dist/components/DetailList/index.d.ts",
|
|
108
113
|
"import": "./dist/components/DetailList/index.mjs",
|
|
@@ -372,19 +377,25 @@
|
|
|
372
377
|
"main": "./dist/index.js",
|
|
373
378
|
"module": "./dist/index.mjs",
|
|
374
379
|
"types": "./dist/index.d.ts",
|
|
380
|
+
"scripts": {
|
|
381
|
+
"build": "NODE_OPTIONS='--max-old-space-size=8192' tsup",
|
|
382
|
+
"dev": "tsup --watch",
|
|
383
|
+
"lint": "eslint . --max-warnings 0",
|
|
384
|
+
"clean": "rm -rf .turbo node_modules dist"
|
|
385
|
+
},
|
|
375
386
|
"peerDependencies": {
|
|
376
387
|
"react": ">=18",
|
|
377
388
|
"tailwindcss": ">=3"
|
|
378
389
|
},
|
|
379
390
|
"devDependencies": {
|
|
391
|
+
"@dododog/eslint-config": "workspace:*",
|
|
392
|
+
"@dododog/typescript-config": "workspace:*",
|
|
380
393
|
"@types/react": "^18.2.61",
|
|
381
394
|
"@types/react-dom": "^18.2.19",
|
|
382
395
|
"eslint": "^8.57.0",
|
|
383
396
|
"react": "^18.2.0",
|
|
384
397
|
"tsup": "^8.0.2",
|
|
385
|
-
"typescript": "5.5.4"
|
|
386
|
-
"@dododog/eslint-config": "0.0.0",
|
|
387
|
-
"@dododog/typescript-config": "0.0.0"
|
|
398
|
+
"typescript": "5.5.4"
|
|
388
399
|
},
|
|
389
400
|
"publishConfig": {
|
|
390
401
|
"access": "public"
|
|
@@ -394,11 +405,5 @@
|
|
|
394
405
|
"class-variance-authority": "^0.7.1",
|
|
395
406
|
"clsx": "^2.1.1",
|
|
396
407
|
"tailwind-merge": "^2.6.1"
|
|
397
|
-
},
|
|
398
|
-
"scripts": {
|
|
399
|
-
"build": "NODE_OPTIONS='--max-old-space-size=8192' tsup",
|
|
400
|
-
"dev": "tsup --watch",
|
|
401
|
-
"lint": "eslint . --max-warnings 0",
|
|
402
|
-
"clean": "rm -rf .turbo node_modules dist"
|
|
403
408
|
}
|
|
404
|
-
}
|
|
409
|
+
}
|