@dododog/ui 0.2.1 → 0.4.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/dist/{chunk-OK3E73OK.js → chunk-2XH74PQR.js} +14 -0
- package/dist/chunk-36JNXXGH.js +360 -0
- package/dist/chunk-5A3MVRZJ.js +109 -0
- package/dist/{chunk-KVVXKSMQ.mjs → chunk-7JYJ7ICL.mjs} +14 -0
- package/dist/{chunk-NWLJ7VQF.js → chunk-AIA3NHCK.js} +1 -2
- package/dist/{chunk-YSJAEDMG.js → chunk-E24VNM6S.js} +8 -5
- package/dist/{chunk-RQGC6RPI.mjs → chunk-FL3GD5FJ.mjs} +1 -2
- package/dist/{chunk-TNGW36OC.mjs → chunk-LRNSVRUN.mjs} +2 -0
- package/dist/{chunk-76DZXGKJ.mjs → chunk-N6THLJIG.mjs} +8 -5
- package/dist/chunk-PBDPZTHK.mjs +53 -0
- package/dist/chunk-PU4CWOWU.mjs +87 -0
- package/dist/chunk-S732LTPT.js +75 -0
- package/dist/{chunk-3BPC4LNH.js → chunk-T4AT3YCT.js} +2 -0
- package/dist/chunk-XH2MVC4W.mjs +337 -0
- package/dist/components/AnchorTabs/index.d.mts +41 -0
- package/dist/components/AnchorTabs/index.d.ts +41 -0
- package/dist/components/AnchorTabs/index.js +11 -0
- package/dist/components/AnchorTabs/index.mjs +2 -0
- package/dist/components/Counter/index.js +2 -2
- package/dist/components/Counter/index.mjs +1 -1
- package/dist/components/DateRangePicker/index.js +3 -3
- package/dist/components/DateRangePicker/index.mjs +1 -1
- package/dist/components/DetailList/index.d.mts +8 -2
- package/dist/components/DetailList/index.d.ts +8 -2
- package/dist/components/DetailList/index.js +2 -2
- package/dist/components/DetailList/index.mjs +1 -1
- package/dist/components/FloatingDock/index.d.mts +44 -0
- package/dist/components/FloatingDock/index.d.ts +44 -0
- package/dist/components/FloatingDock/index.js +11 -0
- package/dist/components/FloatingDock/index.mjs +2 -0
- package/dist/components/RoomTypeCard/index.d.mts +92 -0
- package/dist/components/RoomTypeCard/index.d.ts +92 -0
- package/dist/components/RoomTypeCard/index.js +16 -0
- package/dist/components/RoomTypeCard/index.mjs +3 -0
- package/dist/index.d.mts +125 -4
- package/dist/index.d.ts +125 -4
- package/dist/index.js +542 -102
- package/dist/index.mjs +426 -22
- package/dist/tailwind-preset.d.mts +11 -0
- package/dist/tailwind-preset.d.ts +11 -0
- package/dist/tailwind-preset.js +7 -7
- package/dist/tailwind-preset.mjs +1 -1
- package/dist/tokens/index.d.mts +11 -0
- package/dist/tokens/index.d.ts +11 -0
- package/dist/tokens/index.js +8 -8
- package/dist/tokens/index.mjs +1 -1
- package/package.json +16 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,15 +21,20 @@ export { EmptyState, EmptyStateProps } from './components/EmptyState/index.js';
|
|
|
21
21
|
export { Stepper, StepperProps, StepperStep } from './components/Stepper/index.js';
|
|
22
22
|
export { Sidebar, SidebarItem, SidebarProps } from './components/Sidebar/index.js';
|
|
23
23
|
export { BottomNavBar, BottomNavBarProps, BottomNavItem } from './components/BottomNavBar/index.js';
|
|
24
|
+
export { FloatingDock, FloatingDockItem, FloatingDockProps } from './components/FloatingDock/index.js';
|
|
24
25
|
export { SegmentedControl, SegmentedControlOption, SegmentedControlProps } from './components/SegmentedControl/index.js';
|
|
25
26
|
export { Drawer, DrawerProps } from './components/Drawer/index.js';
|
|
26
27
|
export { TabItem, Tabs, TabsProps } from './components/Tabs/index.js';
|
|
28
|
+
export { AnchorTabItem, AnchorTabs, AnchorTabsProps } from './components/AnchorTabs/index.js';
|
|
27
29
|
export { FilterPill, FilterPillProps } from './components/FilterPill/index.js';
|
|
28
30
|
export { Avatar, AvatarProps } from './components/Avatar/index.js';
|
|
29
31
|
export { Tooltip, TooltipProps } from './components/Tooltip/index.js';
|
|
30
32
|
export { Divider, DividerProps } from './components/Divider/index.js';
|
|
31
33
|
export { DatePickerInput, DatePickerInputProps, DateRangePicker, DateRangePickerProps } from './components/DateRangePicker/index.js';
|
|
32
34
|
export { SearchBar, SearchBarField, SearchBarProps } from './components/SearchBar/index.js';
|
|
35
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
36
|
+
import * as React from 'react';
|
|
37
|
+
import { VariantProps } from 'class-variance-authority';
|
|
33
38
|
export { GuestPicker, GuestPickerProps } from './components/GuestPicker/index.js';
|
|
34
39
|
export { MegaMenu, MegaMenuCard, MegaMenuColumn, MegaMenuLink, MegaMenuProps, MegaMenuSection } from './components/MegaMenu/index.js';
|
|
35
40
|
export { Footer, FooterLinkGroup, FooterProps } from './components/Footer/index.js';
|
|
@@ -59,9 +64,125 @@ export { Switch, SwitchProps, switchThumbVariants, switchTrackVariants } from '.
|
|
|
59
64
|
export { DualRangeSlider, DualRangeSliderProps } from './components/DualRangeSlider/index.js';
|
|
60
65
|
export { CardList, CardListProps } from './components/CardList/index.js';
|
|
61
66
|
export { FilterAccordion, FilterAccordionItemData, FilterAccordionProps } from './components/FilterAccordion/index.js';
|
|
67
|
+
export { RoomRate, RoomRateCancellation, RoomRateCancellationKind, RoomTypeCard, RoomTypeCardProps, RoomTypeCardSkeleton, RoomTypeCardSkeletonProps, RoomTypeData } from './components/RoomTypeCard/index.js';
|
|
68
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
62
69
|
export { cn } from './utils/index.js';
|
|
63
|
-
import 'class-variance-authority/types';
|
|
64
|
-
import 'react';
|
|
65
|
-
import 'class-variance-authority';
|
|
66
|
-
import 'react/jsx-runtime';
|
|
67
70
|
import 'clsx';
|
|
71
|
+
|
|
72
|
+
declare const searchFieldVariants: (props?: ({
|
|
73
|
+
size?: "md" | "lg" | "xl" | null | undefined;
|
|
74
|
+
variant?: "default" | "hero" | null | undefined;
|
|
75
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
76
|
+
interface SearchFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof searchFieldVariants> {
|
|
77
|
+
/** Callback when the clear button is clicked */
|
|
78
|
+
onClear?: () => void;
|
|
79
|
+
/** Additional class for the outer container */
|
|
80
|
+
containerClassName?: string;
|
|
81
|
+
/** Result count to display below the field */
|
|
82
|
+
resultCount?: number;
|
|
83
|
+
/** Label for the result count (e.g. "races trouvées") */
|
|
84
|
+
resultLabel?: string;
|
|
85
|
+
}
|
|
86
|
+
declare const SearchField: React.ForwardRefExoticComponent<SearchFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
87
|
+
|
|
88
|
+
interface DogFriendlyStat {
|
|
89
|
+
/** Libellé court, ex: "Taille acceptée" */
|
|
90
|
+
label: string;
|
|
91
|
+
/** Valeur mise en avant, ex: "Tous gabarits" ou "À confirmer" */
|
|
92
|
+
value: string;
|
|
93
|
+
/** Précision optionnelle, ex: "jusqu'à 2 chiens" */
|
|
94
|
+
note?: string;
|
|
95
|
+
}
|
|
96
|
+
interface DogFriendlyPanelProps extends React.HTMLAttributes<HTMLElement> {
|
|
97
|
+
/** Titre du bloc */
|
|
98
|
+
title?: string;
|
|
99
|
+
/** Info chien confirmée par l'établissement (vs à confirmer) */
|
|
100
|
+
confirmed?: boolean;
|
|
101
|
+
/** Libellé quand confirmé */
|
|
102
|
+
confirmedLabel?: string;
|
|
103
|
+
/** Libellé quand non confirmé */
|
|
104
|
+
unconfirmedLabel?: string;
|
|
105
|
+
/** Mini-cartes de faits (2 sur mobile, jusqu'à 4 sur desktop) */
|
|
106
|
+
stats: DogFriendlyStat[];
|
|
107
|
+
/** À-côtés dog-friendly (issus des équipements ETG mappés FR) */
|
|
108
|
+
perks?: string[];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Bandeau signature dog-friendly de la fiche hébergement.
|
|
112
|
+
* Met en avant l'accueil du chien : faits clés (taille, frais, jardin…) + à-côtés.
|
|
113
|
+
*/
|
|
114
|
+
declare function DogFriendlyPanel({ title, confirmed, confirmedLabel, unconfirmedLabel, stats, perks, className, ...props }: DogFriendlyPanelProps): react_jsx_runtime.JSX.Element;
|
|
115
|
+
|
|
116
|
+
interface ReviewSubScore {
|
|
117
|
+
/** Libellé, ex: "Propreté" */
|
|
118
|
+
label: string;
|
|
119
|
+
/** Note /10 */
|
|
120
|
+
value: number;
|
|
121
|
+
}
|
|
122
|
+
interface ReviewItem {
|
|
123
|
+
/** Note /10 de l'avis */
|
|
124
|
+
score: number;
|
|
125
|
+
/** Libellé de la note, ex: "Excellent" */
|
|
126
|
+
scoreLabel: string;
|
|
127
|
+
/** Texte de l'avis (déjà en français) */
|
|
128
|
+
text: string;
|
|
129
|
+
/** Auteur */
|
|
130
|
+
author: string;
|
|
131
|
+
/** Contexte, ex: "Famille · 3 nuits · juin 2026" */
|
|
132
|
+
meta?: string;
|
|
133
|
+
/** Avis vérifié */
|
|
134
|
+
verified?: boolean;
|
|
135
|
+
/** Langue d'origine si traduit, ex: "l'anglais" → "Traduit de l'anglais" */
|
|
136
|
+
translatedFrom?: string;
|
|
137
|
+
}
|
|
138
|
+
interface ReviewSummaryProps extends React.HTMLAttributes<HTMLElement> {
|
|
139
|
+
/** Note globale /10 */
|
|
140
|
+
score?: number;
|
|
141
|
+
/** Libellé global, ex: "Très bien" */
|
|
142
|
+
scoreLabel?: string;
|
|
143
|
+
/** Nombre d'avis vérifiés */
|
|
144
|
+
count?: number;
|
|
145
|
+
/** Titre de la section */
|
|
146
|
+
title?: string;
|
|
147
|
+
/** Libellé du volume d'avis (D2 : "avis vérifiés" ; ne PAS afficher de plateforme non sourcée) */
|
|
148
|
+
countLabel?: string;
|
|
149
|
+
/** Sources RÉELLES uniquement (ex: ["Booking"]) — affichées après le volume ; laisser vide si aucune */
|
|
150
|
+
sources?: string[];
|
|
151
|
+
/** Sous-notes détaillées (/10) */
|
|
152
|
+
subScores?: ReviewSubScore[];
|
|
153
|
+
/** Avis mis en avant */
|
|
154
|
+
reviews?: ReviewItem[];
|
|
155
|
+
/** Callback bouton "Afficher tous les avis" */
|
|
156
|
+
onSeeAll?: () => void;
|
|
157
|
+
/** Libellé du bouton (par défaut dérivé du count) */
|
|
158
|
+
seeAllLabel?: string;
|
|
159
|
+
/** Message quand aucun avis */
|
|
160
|
+
emptyLabel?: string;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Bloc avis consolidé de la fiche hébergement (échelle /10 unique).
|
|
164
|
+
* Remplace les blocs avis redondants. N'affiche que des sources réelles.
|
|
165
|
+
*/
|
|
166
|
+
declare function ReviewSummary({ score, scoreLabel, count, title, countLabel, sources, subScores, reviews, onSeeAll, seeAllLabel, emptyLabel, className, ...props }: ReviewSummaryProps): react_jsx_runtime.JSX.Element;
|
|
167
|
+
|
|
168
|
+
interface MobileBookingBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
169
|
+
/** Prix total déjà formaté, ex: "248 €" */
|
|
170
|
+
price: string;
|
|
171
|
+
/** Précision sous le prix, ex: "2 nuits · taxes incl." */
|
|
172
|
+
meta?: string;
|
|
173
|
+
/** Réassurance, ex: "Vous ne serez pas débité maintenant" */
|
|
174
|
+
reassurance?: string;
|
|
175
|
+
/** Libellé du bouton d'action */
|
|
176
|
+
ctaLabel?: string;
|
|
177
|
+
/** Action de réservation */
|
|
178
|
+
onReserve?: () => void;
|
|
179
|
+
/** Désactive l'action (ex: aucune disponibilité) */
|
|
180
|
+
disabled?: boolean;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Barre de réservation collante en bas d'écran (mobile).
|
|
184
|
+
* Présentationnelle : reçoit un prix déjà formaté (cf. buildRateDisplay côté app).
|
|
185
|
+
*/
|
|
186
|
+
declare function MobileBookingBar({ price, meta, reassurance, ctaLabel, onReserve, disabled, className, ...props }: MobileBookingBarProps): react_jsx_runtime.JSX.Element;
|
|
187
|
+
|
|
188
|
+
export { DogFriendlyPanel, type DogFriendlyPanelProps, type DogFriendlyStat, MobileBookingBar, type MobileBookingBarProps, type ReviewItem, type ReviewSubScore, ReviewSummary, type ReviewSummaryProps, SearchField, type SearchFieldProps, searchFieldVariants };
|