@club-employes/utopia 4.421.0 → 4.423.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.
@@ -36,6 +36,7 @@ declare const __VLS_component: DefineComponent<AppShellProps, {}, {}, {}, {}, Co
36
36
  tone: ShellTone;
37
37
  menuItems: ShellMenuEntry[];
38
38
  headerHeight: number;
39
+ footerVariant: "bar" | "content";
39
40
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
40
41
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
42
  export default _default;
@@ -39,6 +39,14 @@ export interface AppShellProps {
39
39
  headerMaxWidth?: string;
40
40
  /** Autorise le repli de la sidebar en rail 72px (persisté via useTheme). */
41
41
  collapsible?: boolean;
42
+ /**
43
+ * Variante du slot footer. 'bar' (défaut) : barre fixe de 64px alignée sur
44
+ * l'encart user de la sidebar (version + liens légaux). 'content' : conteneur
45
+ * libre — hauteur auto, aucun fond/bordure imposé — pour un footer riche
46
+ * stylé par l'app (ex. ce-carte-ui) ; il reste un landmark hors du <main>,
47
+ * ancré en bas du viewport sur les pages courtes par le flex de la colonne.
48
+ */
49
+ footerVariant?: 'bar' | 'content';
42
50
  }
43
51
  export interface ShellHeaderProps {
44
52
  /** Tone appliqué en standalone (hors AppShell, ex. parité ce_front). */
@@ -1,4 +1,4 @@
1
- import { MfePageProps, ShyHeaderMode, FooterVariant } from './types';
1
+ import { MfePageProps, FooterVariant, ShyHeaderMode } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
@@ -17,8 +17,8 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
17
  declare const __VLS_component: DefineComponent<MfePageProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<MfePageProps> & Readonly<{}>, {
18
18
  padding: "none" | "small" | "medium" | "large";
19
19
  intro: string;
20
- shyHeader: ShyHeaderMode;
21
20
  footerVariant: FooterVariant;
21
+ shyHeader: ShyHeaderMode;
22
22
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
23
23
  footerSentinel: HTMLDivElement;
24
24
  }, HTMLDivElement>;
@@ -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,2 @@
1
+ export { default as OfferCard } from './OfferCard';
2
+ export type { OfferCardProps, OfferCardMeta, OfferCardMetaTone } from './types';
@@ -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';
@@ -386,6 +386,9 @@ declare const _default: {
386
386
  editGroup: string;
387
387
  deleteGroup: string;
388
388
  };
389
+ offerCard: {
390
+ action: string;
391
+ };
389
392
  optionSelect: {
390
393
  placeholder: string;
391
394
  outOfStock: string;
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';