@club-employes/utopia 4.430.0 → 4.431.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.
@@ -0,0 +1,18 @@
1
+ import { CampaignAncvCardProps } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { IconName, IconSize, Icon3DName } from '../..';
4
+ declare const _default: DefineComponent<CampaignAncvCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5
+ pay: () => any;
6
+ }, string, PublicProps, Readonly<CampaignAncvCardProps> & Readonly<{
7
+ onPay?: (() => any) | undefined;
8
+ }>, {
9
+ icon: IconName;
10
+ disabled: boolean;
11
+ iconSize: IconSize;
12
+ iconColor: string;
13
+ iconBgColor: string;
14
+ iconType: "3d" | "default";
15
+ icon3D: Icon3DName;
16
+ icon3DSize: number;
17
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
18
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as CampaignAncvCard } from './CampaignAncvCard';
2
+ export type { CampaignAncvCardProps } from './types';
@@ -0,0 +1,35 @@
1
+ import { Icon3DName, IconName, IconSize } from '../../atoms';
2
+ export interface CampaignAncvCardProps {
3
+ /** Type d'icône affichée : "3d" (illustration Icon3D, ex: logo ANCV) ou "default" (icône simple Icon) */
4
+ iconType?: '3d' | 'default';
5
+ /** Icône simple (2D), utilisée quand iconType="default" */
6
+ icon?: IconName;
7
+ /** Taille de l'icône simple */
8
+ iconSize?: IconSize;
9
+ /** Couleur de l'icône simple (token de couleur) */
10
+ iconColor?: string;
11
+ /** Couleur de fond du chip carré affiché derrière l'icône simple */
12
+ iconBgColor?: string;
13
+ /** Icône 3D illustrée, utilisée quand iconType="3d" (ex: logo ANCV) */
14
+ icon3D?: Icon3DName;
15
+ /** Taille de l'icône 3D en pixels */
16
+ icon3DSize?: number;
17
+ /** Libellé de la campagne */
18
+ label: string;
19
+ /** Référence de la campagne, valeur brute déjà formatée (ex: "ANCVC6a2a791ece9f7") */
20
+ reference: string;
21
+ /** Montant à payer par le salarié, déjà formaté (ex: "30 €") */
22
+ amount: string;
23
+ /** Valeur faciale de la campagne, déjà formatée (ex: "50 €") */
24
+ faceValue: string;
25
+ /** Date de lancement, déjà formatée (ex: "22-07-2024") */
26
+ launchDate: string;
27
+ /** Date de fin, déjà formatée (ex: "22-07-2024") */
28
+ endDate: string;
29
+ /** Désactive la carte : masque le bouton Payer et grise icône/textes */
30
+ disabled?: boolean;
31
+ /** Libellé du bouton d'action, surcharge le libellé i18n par défaut ("Payer") */
32
+ payLabel?: string;
33
+ /** Langue des libellés internes (Référence, Valeur faciale, dates, Payer) : prop > locale globale Utopia > 'fr' */
34
+ language?: 'fr' | 'en';
35
+ }
@@ -46,3 +46,5 @@ export { ContestCard } from './ContestCard';
46
46
  export type { ContestCardProps } from './ContestCard';
47
47
  export { ExplanationStepper } from './ExplanationStepper';
48
48
  export type { ExplanationStepperProps } from './ExplanationStepper';
49
+ export { CampaignAncvCard } from './CampaignAncvCard';
50
+ export type { CampaignAncvCardProps } from './CampaignAncvCard';
@@ -80,6 +80,13 @@ declare const _default: {
80
80
  showMore: string;
81
81
  showLess: string;
82
82
  };
83
+ campaignAncvCard: {
84
+ reference: string;
85
+ faceValue: string;
86
+ launchDate: string;
87
+ endDate: string;
88
+ pay: string;
89
+ };
83
90
  cartPreview: {
84
91
  title: string;
85
92
  buttonLabel: string;
package/dist/index.d.ts CHANGED
@@ -105,6 +105,7 @@ export type { CartConfirmationProps, CartConfirmationSavingColor } from './compo
105
105
  export type { UserSelectionProps } from './components/organisms/UserSelection/types';
106
106
  export type { ContestCardProps } from './components/organisms/ContestCard/types';
107
107
  export type { ExplanationStepperProps } from './components/organisms/ExplanationStepper/types';
108
+ export type { CampaignAncvCardProps } from './components/organisms/CampaignAncvCard/types';
108
109
  export type { AddressFormProps, AddressFormSchema, AddressFormSection } from './components/organisms/AddressForm/types';
109
110
  export type { CartPreviewProps, CartPreviewPrice, CartPreviewPriceLine } from './components/organisms/CartPreview/types';
110
111
  export type { CartPreviewItemProps } from './components/molecules/CartPreviewItem/types';