@dododog/ui 0.10.1 → 0.11.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-BXFU7V2X.js +156 -0
- package/dist/chunk-CWXP2ZI2.js +79 -0
- package/dist/chunk-DM76AK4A.mjs +67 -0
- package/dist/chunk-LO2XNMZO.mjs +134 -0
- package/dist/chunk-OGB5LIXN.js +89 -0
- package/dist/chunk-ZEPXWD6U.mjs +57 -0
- package/dist/components/SectionHeader/index.d.mts +30 -0
- package/dist/components/SectionHeader/index.d.ts +30 -0
- package/dist/components/SectionHeader/index.js +11 -0
- package/dist/components/SectionHeader/index.mjs +2 -0
- package/dist/components/StatTile/index.d.mts +28 -0
- package/dist/components/StatTile/index.d.ts +28 -0
- package/dist/components/StatTile/index.js +11 -0
- package/dist/components/StatTile/index.mjs +2 -0
- package/dist/components/TripHeroCard/index.d.mts +38 -0
- package/dist/components/TripHeroCard/index.d.ts +38 -0
- package/dist/components/TripHeroCard/index.js +11 -0
- package/dist/components/TripHeroCard/index.mjs +2 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +143 -128
- package/dist/index.mjs +27 -24
- package/package.json +16 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface StatTileProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
4
|
+
/** Libellé de la tuile (ex : "Réservations à venir"). */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Valeur mise en avant (ex : "3", "80 %"). */
|
|
7
|
+
value: React.ReactNode;
|
|
8
|
+
/** Icône (ReactNode, ex : lucide) rendue dans la pastille. */
|
|
9
|
+
icon: React.ReactNode;
|
|
10
|
+
/** Cible du lien — rend toute la tuile cliquable. */
|
|
11
|
+
href?: string;
|
|
12
|
+
/** Texte d'aide secondaire sous la valeur. */
|
|
13
|
+
hint?: string;
|
|
14
|
+
/** Render personnalisé du lien (ex : next/link). */
|
|
15
|
+
renderLink?: (props: {
|
|
16
|
+
href: string;
|
|
17
|
+
className: string;
|
|
18
|
+
"aria-label"?: string;
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}) => React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Tuile compacte « at-a-glance » du dashboard : pastille d'icône, valeur
|
|
24
|
+
* proéminente, libellé. Toute la tuile est cliquable si `href` est fourni.
|
|
25
|
+
*/
|
|
26
|
+
declare const StatTile: React.ForwardRefExoticComponent<StatTileProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
|
|
28
|
+
export { StatTile, type StatTileProps };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface StatTileProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
4
|
+
/** Libellé de la tuile (ex : "Réservations à venir"). */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Valeur mise en avant (ex : "3", "80 %"). */
|
|
7
|
+
value: React.ReactNode;
|
|
8
|
+
/** Icône (ReactNode, ex : lucide) rendue dans la pastille. */
|
|
9
|
+
icon: React.ReactNode;
|
|
10
|
+
/** Cible du lien — rend toute la tuile cliquable. */
|
|
11
|
+
href?: string;
|
|
12
|
+
/** Texte d'aide secondaire sous la valeur. */
|
|
13
|
+
hint?: string;
|
|
14
|
+
/** Render personnalisé du lien (ex : next/link). */
|
|
15
|
+
renderLink?: (props: {
|
|
16
|
+
href: string;
|
|
17
|
+
className: string;
|
|
18
|
+
"aria-label"?: string;
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}) => React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Tuile compacte « at-a-glance » du dashboard : pastille d'icône, valeur
|
|
24
|
+
* proéminente, libellé. Toute la tuile est cliquable si `href` est fourni.
|
|
25
|
+
*/
|
|
26
|
+
declare const StatTile: React.ForwardRefExoticComponent<StatTileProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
|
|
28
|
+
export { StatTile, type StatTileProps };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type TripStatusTone = "confirmed" | "pending" | "processing";
|
|
4
|
+
interface TripHeroData {
|
|
5
|
+
hotelName: string;
|
|
6
|
+
/** Photo de l'hôtel. Fallback dégradé si absente. */
|
|
7
|
+
hotelImage?: string | null;
|
|
8
|
+
city?: string | null;
|
|
9
|
+
address?: string | null;
|
|
10
|
+
/** Dates déjà formatées (ex : "12 juil."). */
|
|
11
|
+
checkinLabel: string;
|
|
12
|
+
checkoutLabel: string;
|
|
13
|
+
nights: number;
|
|
14
|
+
/** Compte à rebours déjà formaté (ex : "Dans 5 jours", "Aujourd'hui"). */
|
|
15
|
+
countdownLabel: string;
|
|
16
|
+
/** Met le compte à rebours en avant (séjour proche). */
|
|
17
|
+
isSoon?: boolean;
|
|
18
|
+
/** Libellé du statut (ex : "Confirmée"). */
|
|
19
|
+
statusLabel?: string | null;
|
|
20
|
+
statusTone?: TripStatusTone;
|
|
21
|
+
/** Prix total déjà formaté (ex : "1 234,00 €"). */
|
|
22
|
+
priceLabel?: string | null;
|
|
23
|
+
dogName?: string | null;
|
|
24
|
+
}
|
|
25
|
+
interface TripHeroCardProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
|
|
26
|
+
trip: TripHeroData;
|
|
27
|
+
/** Actions rapides (bon, itinéraire, annuler…) rendues sous les détails. */
|
|
28
|
+
actions?: React.ReactNode;
|
|
29
|
+
/** Render personnalisé de l'image (ex : next/image). */
|
|
30
|
+
renderImage?: (props: {
|
|
31
|
+
src: string;
|
|
32
|
+
alt: string;
|
|
33
|
+
className: string;
|
|
34
|
+
}) => React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
declare const TripHeroCard: React.ForwardRefExoticComponent<TripHeroCardProps & React.RefAttributes<HTMLElement>>;
|
|
37
|
+
|
|
38
|
+
export { TripHeroCard, type TripHeroCardProps, type TripHeroData, type TripStatusTone };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type TripStatusTone = "confirmed" | "pending" | "processing";
|
|
4
|
+
interface TripHeroData {
|
|
5
|
+
hotelName: string;
|
|
6
|
+
/** Photo de l'hôtel. Fallback dégradé si absente. */
|
|
7
|
+
hotelImage?: string | null;
|
|
8
|
+
city?: string | null;
|
|
9
|
+
address?: string | null;
|
|
10
|
+
/** Dates déjà formatées (ex : "12 juil."). */
|
|
11
|
+
checkinLabel: string;
|
|
12
|
+
checkoutLabel: string;
|
|
13
|
+
nights: number;
|
|
14
|
+
/** Compte à rebours déjà formaté (ex : "Dans 5 jours", "Aujourd'hui"). */
|
|
15
|
+
countdownLabel: string;
|
|
16
|
+
/** Met le compte à rebours en avant (séjour proche). */
|
|
17
|
+
isSoon?: boolean;
|
|
18
|
+
/** Libellé du statut (ex : "Confirmée"). */
|
|
19
|
+
statusLabel?: string | null;
|
|
20
|
+
statusTone?: TripStatusTone;
|
|
21
|
+
/** Prix total déjà formaté (ex : "1 234,00 €"). */
|
|
22
|
+
priceLabel?: string | null;
|
|
23
|
+
dogName?: string | null;
|
|
24
|
+
}
|
|
25
|
+
interface TripHeroCardProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
|
|
26
|
+
trip: TripHeroData;
|
|
27
|
+
/** Actions rapides (bon, itinéraire, annuler…) rendues sous les détails. */
|
|
28
|
+
actions?: React.ReactNode;
|
|
29
|
+
/** Render personnalisé de l'image (ex : next/image). */
|
|
30
|
+
renderImage?: (props: {
|
|
31
|
+
src: string;
|
|
32
|
+
alt: string;
|
|
33
|
+
className: string;
|
|
34
|
+
}) => React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
declare const TripHeroCard: React.ForwardRefExoticComponent<TripHeroCardProps & React.RefAttributes<HTMLElement>>;
|
|
37
|
+
|
|
38
|
+
export { TripHeroCard, type TripHeroCardProps, type TripHeroData, type TripStatusTone };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkBXFU7V2X_js = require('../../chunk-BXFU7V2X.js');
|
|
4
|
+
require('../../chunk-ADIDI7AJ.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "TripHeroCard", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkBXFU7V2X_js.TripHeroCard; }
|
|
11
|
+
});
|
package/dist/index.d.mts
CHANGED
|
@@ -9,7 +9,6 @@ export { Breadcrumb, BreadcrumbItem, BreadcrumbProps, breadcrumbVariants } from
|
|
|
9
9
|
export { ImageWithFallback, ImageWithFallbackProps } from './components/ImageWithFallback/index.mjs';
|
|
10
10
|
export { HotelCard, HotelCardData, HotelCardProps } from './components/HotelCard/index.mjs';
|
|
11
11
|
export { DogCard, DogCardData, DogCardProps } from './components/DogCard/index.mjs';
|
|
12
|
-
export { SearchLoadingChecklist, SearchLoadingChecklistProps, SearchLoadingStep } from './components/SearchLoadingChecklist/index.mjs';
|
|
13
12
|
export { RadioGroup, RadioGroupItemOption, RadioGroupProps } from './components/RadioGroup/index.mjs';
|
|
14
13
|
export { Checkbox, CheckboxProps } from './components/Checkbox/index.mjs';
|
|
15
14
|
export { Toggle, ToggleProps } from './components/Toggle/index.mjs';
|
|
@@ -62,6 +61,7 @@ export { IconBadge, IconBadgeProps, iconBadgeVariants } from './components/IconB
|
|
|
62
61
|
export { PriceDisplay, PriceDisplayProps } from './components/PriceDisplay/index.mjs';
|
|
63
62
|
export { DetailItem, DetailList, DetailListProps } from './components/DetailList/index.mjs';
|
|
64
63
|
export { LoadingOverlay, LoadingOverlayProps } from './components/LoadingOverlay/index.mjs';
|
|
64
|
+
export { SearchLoadingChecklist, SearchLoadingChecklistProps, SearchLoadingStep } from './components/SearchLoadingChecklist/index.mjs';
|
|
65
65
|
export { Switch, SwitchProps, switchThumbVariants, switchTrackVariants } from './components/Switch/index.mjs';
|
|
66
66
|
export { DualRangeSlider, DualRangeSliderProps } from './components/DualRangeSlider/index.mjs';
|
|
67
67
|
export { CardList, CardListProps } from './components/CardList/index.mjs';
|
|
@@ -69,6 +69,9 @@ export { FilterAccordion, FilterAccordionItemData, FilterAccordionProps } from '
|
|
|
69
69
|
export { RoomRate, RoomRateCancellation, RoomRateCancellationKind, RoomRateDetail, RoomTypeCard, RoomTypeCardProps, RoomTypeCardSkeleton, RoomTypeCardSkeletonProps, RoomTypeData } from './components/RoomTypeCard/index.mjs';
|
|
70
70
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
71
71
|
export { SignInCallout, SignInCalloutProps, signInCalloutVariants } from './components/SignInCallout/index.mjs';
|
|
72
|
+
export { SectionHeader, SectionHeaderProps } from './components/SectionHeader/index.mjs';
|
|
73
|
+
export { StatTile, StatTileProps } from './components/StatTile/index.mjs';
|
|
74
|
+
export { TripHeroCard, TripHeroCardProps, TripHeroData, TripStatusTone } from './components/TripHeroCard/index.mjs';
|
|
72
75
|
export { cn } from './utils/index.mjs';
|
|
73
76
|
import 'clsx';
|
|
74
77
|
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export { Breadcrumb, BreadcrumbItem, BreadcrumbProps, breadcrumbVariants } from
|
|
|
9
9
|
export { ImageWithFallback, ImageWithFallbackProps } from './components/ImageWithFallback/index.js';
|
|
10
10
|
export { HotelCard, HotelCardData, HotelCardProps } from './components/HotelCard/index.js';
|
|
11
11
|
export { DogCard, DogCardData, DogCardProps } from './components/DogCard/index.js';
|
|
12
|
-
export { SearchLoadingChecklist, SearchLoadingChecklistProps, SearchLoadingStep } from './components/SearchLoadingChecklist/index.js';
|
|
13
12
|
export { RadioGroup, RadioGroupItemOption, RadioGroupProps } from './components/RadioGroup/index.js';
|
|
14
13
|
export { Checkbox, CheckboxProps } from './components/Checkbox/index.js';
|
|
15
14
|
export { Toggle, ToggleProps } from './components/Toggle/index.js';
|
|
@@ -62,6 +61,7 @@ export { IconBadge, IconBadgeProps, iconBadgeVariants } from './components/IconB
|
|
|
62
61
|
export { PriceDisplay, PriceDisplayProps } from './components/PriceDisplay/index.js';
|
|
63
62
|
export { DetailItem, DetailList, DetailListProps } from './components/DetailList/index.js';
|
|
64
63
|
export { LoadingOverlay, LoadingOverlayProps } from './components/LoadingOverlay/index.js';
|
|
64
|
+
export { SearchLoadingChecklist, SearchLoadingChecklistProps, SearchLoadingStep } from './components/SearchLoadingChecklist/index.js';
|
|
65
65
|
export { Switch, SwitchProps, switchThumbVariants, switchTrackVariants } from './components/Switch/index.js';
|
|
66
66
|
export { DualRangeSlider, DualRangeSliderProps } from './components/DualRangeSlider/index.js';
|
|
67
67
|
export { CardList, CardListProps } from './components/CardList/index.js';
|
|
@@ -69,6 +69,9 @@ export { FilterAccordion, FilterAccordionItemData, FilterAccordionProps } from '
|
|
|
69
69
|
export { RoomRate, RoomRateCancellation, RoomRateCancellationKind, RoomRateDetail, RoomTypeCard, RoomTypeCardProps, RoomTypeCardSkeleton, RoomTypeCardSkeletonProps, RoomTypeData } from './components/RoomTypeCard/index.js';
|
|
70
70
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
71
71
|
export { SignInCallout, SignInCalloutProps, signInCalloutVariants } from './components/SignInCallout/index.js';
|
|
72
|
+
export { SectionHeader, SectionHeaderProps } from './components/SectionHeader/index.js';
|
|
73
|
+
export { StatTile, StatTileProps } from './components/StatTile/index.js';
|
|
74
|
+
export { TripHeroCard, TripHeroCardProps, TripHeroData, TripStatusTone } from './components/TripHeroCard/index.js';
|
|
72
75
|
export { cn } from './utils/index.js';
|
|
73
76
|
import 'clsx';
|
|
74
77
|
|