@club-employes/utopia 4.421.0 → 4.422.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/components/molecules/OfferCard/OfferCard.d.ts +12 -0
- package/dist/components/molecules/OfferCard/index.d.ts +2 -0
- package/dist/components/molecules/OfferCard/types.d.ts +41 -0
- package/dist/components/molecules/index.d.ts +2 -0
- package/dist/i18n/messages/fr.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5087 -4908
- package/dist/utopia.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OfferCardProps } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<OfferCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
|
+
action: (event: MouseEvent) => any;
|
|
5
|
+
}, string, PublicProps, Readonly<OfferCardProps> & Readonly<{
|
|
6
|
+
onAction?: ((event: MouseEvent) => any) | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
10
|
+
offerCardRef: HTMLDivElement;
|
|
11
|
+
}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IconName } from '../../atoms/Icon/types';
|
|
2
|
+
/**
|
|
3
|
+
* Tonalité d'un fait secondaire de la zone meta.
|
|
4
|
+
* - `muted` : information neutre (défaut)
|
|
5
|
+
* - `warning` : information à surveiller (échéance proche, quota presque épuisé)
|
|
6
|
+
*/
|
|
7
|
+
export type OfferCardMetaTone = 'muted' | 'warning';
|
|
8
|
+
/** Un fait secondaire affiché en bas de carte. */
|
|
9
|
+
export interface OfferCardMeta {
|
|
10
|
+
/** Libellé déjà formaté par l'appelant (ex. « Jusqu'à 10,00 € / demande »). */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Icône optionnelle affichée à gauche du libellé. */
|
|
13
|
+
icon?: IconName;
|
|
14
|
+
/** Tonalité visuelle du fait. */
|
|
15
|
+
tone?: OfferCardMetaTone;
|
|
16
|
+
}
|
|
17
|
+
export interface OfferCardProps {
|
|
18
|
+
/** Titre de l'offre (ex. « Billetterie — Offre Wassim »). */
|
|
19
|
+
title: string;
|
|
20
|
+
/** Sous-titre sous le titre (ex. « Catégorie : Billetterie »). */
|
|
21
|
+
subtitle?: string;
|
|
22
|
+
/** Icône de l'en-tête, affichée dans son cartouche. */
|
|
23
|
+
icon?: IconName;
|
|
24
|
+
/** Montant restant, déjà formaté (ex. « 65,00 € »). */
|
|
25
|
+
amount?: string;
|
|
26
|
+
/** Précision accolée au montant, déjà formatée (ex. « restants sur 100,00 € »). */
|
|
27
|
+
amountHint?: string;
|
|
28
|
+
/** Remplissage de la barre de progression, en pourcentage (0–100). */
|
|
29
|
+
progressPercentage?: number;
|
|
30
|
+
/** Faits secondaires affichés en bas de carte, dans l'ordre fourni. */
|
|
31
|
+
metas?: OfferCardMeta[];
|
|
32
|
+
/**
|
|
33
|
+
* Offre indisponible : la carte est atténuée et le bouton d'action est
|
|
34
|
+
* désactivé. Les faits secondaires perdent leur tonalité `warning`.
|
|
35
|
+
*/
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Libellé du bouton d'action. Par défaut : socle i18n (`offerCard.action`). */
|
|
38
|
+
actionLabel?: string;
|
|
39
|
+
/** Langue. Aucun défaut statique : prop > locale globale > `fr`. */
|
|
40
|
+
language?: 'fr' | 'en';
|
|
41
|
+
}
|
|
@@ -74,3 +74,5 @@ export { Tree } from './Tree';
|
|
|
74
74
|
export type { TreeProps } from './Tree';
|
|
75
75
|
export { VerticalStepper } from './VerticalStepper';
|
|
76
76
|
export type { VerticalStepperProps, VerticalStep, VerticalStepStatus, VerticalStepperStatus } from './VerticalStepper';
|
|
77
|
+
export { OfferCard } from './OfferCard';
|
|
78
|
+
export type { OfferCardProps, OfferCardMeta, OfferCardMetaTone } from './OfferCard';
|
package/dist/index.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ export { MyUserGroups } from './components/molecules/MyUserGroups';
|
|
|
112
112
|
export type { MyUserGroupsProps, UserGroupCriterion } from './components/molecules/MyUserGroups/types';
|
|
113
113
|
export type { TreeProps, TreeNode, TreeSelectionKey } from './components/molecules/Tree/types';
|
|
114
114
|
export type { VerticalStepperProps, VerticalStep, VerticalStepStatus, VerticalStepperStatus } from './components/molecules/VerticalStepper/types';
|
|
115
|
+
export type { OfferCardProps, OfferCardMeta, OfferCardMetaTone } from './components/molecules/OfferCard/types';
|
|
115
116
|
export { clubEmployesDark, clubEmployesLight } from './themes/club-employes';
|
|
116
117
|
export { gifteoDark, gifteoLight } from './themes/gifteo';
|
|
117
118
|
export type { LoaderProps } from './components/templates/Loader/types';
|