@club-employes/utopia 4.406.0 → 4.413.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.
@@ -1,6 +1,7 @@
1
1
  import { EmptyStateProps } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { IconName, IconSize } from '../..';
3
+ import { IconName, IconSize, Icon3DName } from '../..';
4
+ import { ButtonColor } from '../../atoms/Button/types';
4
5
  declare const _default: DefineComponent<EmptyStateProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<EmptyStateProps> & Readonly<{}>, {
5
6
  title: string;
6
7
  icon: IconName;
@@ -9,5 +10,9 @@ declare const _default: DefineComponent<EmptyStateProps, {}, {}, {}, {}, Compone
9
10
  iconSize: IconSize;
10
11
  iconColor: string;
11
12
  buttonAction: () => void;
13
+ iconType: "3d" | "default";
14
+ icon3D: Icon3DName;
15
+ icon3DSize: number;
16
+ buttonColor: ButtonColor;
12
17
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
13
18
  export default _default;
@@ -1,4 +1,6 @@
1
1
  import { IconName, IconSize } from '../../atoms/Icon/types';
2
+ import { Icon3DName } from '../../atoms/Icon3D/types';
3
+ import { ButtonColor } from '../../atoms/Button/types';
2
4
  export interface EmptyStateProps {
3
5
  title?: string;
4
6
  description?: string;
@@ -7,4 +9,8 @@ export interface EmptyStateProps {
7
9
  icon?: IconName;
8
10
  iconSize?: IconSize;
9
11
  iconColor?: string;
12
+ iconType?: '3d' | 'default';
13
+ icon3D?: Icon3DName;
14
+ icon3DSize?: number;
15
+ buttonColor?: ButtonColor;
10
16
  }
@@ -0,0 +1,32 @@
1
+ import { VerticalStep, VerticalStepStatus, VerticalStepperProps, VerticalStepperStatus } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type ResolvedStep = VerticalStep & {
4
+ status: VerticalStepStatus;
5
+ icon?: string;
6
+ connectorCompleted: boolean;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ step?(_: {
12
+ step: ResolvedStep;
13
+ index: number;
14
+ status: VerticalStepStatus;
15
+ }): any;
16
+ };
17
+ refs: {};
18
+ rootEl: HTMLOListElement;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: DefineComponent<VerticalStepperProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<VerticalStepperProps> & Readonly<{}>, {
22
+ steps: VerticalStep[];
23
+ status: VerticalStepperStatus;
24
+ currentStepIndex: number;
25
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLOListElement>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,2 @@
1
+ export { default as VerticalStepper } from './VerticalStepper';
2
+ export { type VerticalStepperProps, type VerticalStep, type VerticalStepStatus, type VerticalStepperStatus, } from './types';
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Statut que peut porter l'étape courante : en cours, terminée (parcours
3
+ * bouclé) ou en échec. `'pending'` n'en fait pas partie — une étape courante
4
+ * ne peut pas être à venir.
5
+ */
6
+ export type VerticalStepperStatus = "completed" | "current" | "error";
7
+ /**
8
+ * État de rendu d'une étape : celui de l'étape courante, ou `'pending'` pour
9
+ * celles qui la suivent. C'est ce que reçoit le slot `step`.
10
+ */
11
+ export type VerticalStepStatus = VerticalStepperStatus | "pending";
12
+ export interface VerticalStep {
13
+ id: string | number;
14
+ label: string;
15
+ description?: string;
16
+ icon?: string;
17
+ }
18
+ export interface VerticalStepperProps {
19
+ /** Liste des étapes, affichées de haut en bas. */
20
+ steps: VerticalStep[];
21
+ /**
22
+ * Index (0-based) de l'étape courante : `0` désigne la première étape.
23
+ * Les étapes précédentes sont `'completed'`, les suivantes `'pending'`.
24
+ *
25
+ * `-1` ne désigne aucune étape : toutes sont alors `'pending'`.
26
+ */
27
+ currentStepIndex?: number;
28
+ /**
29
+ * Statut de l'étape courante — la seule dont le statut varie.
30
+ * `'completed'` sur la dernière étape marque un parcours terminé.
31
+ */
32
+ status?: VerticalStepperStatus;
33
+ /**
34
+ * Langue des libellés de statut lus par les lecteurs d'écran.
35
+ * Sans valeur : locale globale Utopia (`setUtopiaLocale`), puis `'fr'`.
36
+ */
37
+ language?: "fr" | "en";
38
+ }
@@ -69,3 +69,5 @@ export { MyUserGroups } from './MyUserGroups';
69
69
  export type { MyUserGroupsProps } from './MyUserGroups';
70
70
  export { Tree } from './Tree';
71
71
  export type { TreeProps } from './Tree';
72
+ export { VerticalStepper } from './VerticalStepper';
73
+ export type { VerticalStepperProps, VerticalStep, VerticalStepStatus, VerticalStepperStatus } from './VerticalStepper';
@@ -0,0 +1,49 @@
1
+ import { ImageFits } from '../../atoms';
2
+ import { ContestCardProps, ContestCardVariant, ContestCardSize, ChipVariant } from './types';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: DefineComponent<ContestCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
+ click: (event: MouseEvent) => any;
15
+ download: () => any;
16
+ "lot-a-gagner": () => any;
17
+ participer: () => any;
18
+ reglement: () => any;
19
+ }, string, PublicProps, Readonly<ContestCardProps> & Readonly<{
20
+ onClick?: ((event: MouseEvent) => any) | undefined;
21
+ onDownload?: (() => any) | undefined;
22
+ "onLot-a-gagner"?: (() => any) | undefined;
23
+ onParticiper?: (() => any) | undefined;
24
+ onReglement?: (() => any) | undefined;
25
+ }>, {
26
+ variant: ContestCardVariant;
27
+ size: ContestCardSize;
28
+ disabled: boolean;
29
+ imageFit: ImageFits;
30
+ imageAspectRatio: number;
31
+ chipVariant: ChipVariant;
32
+ drawDate: string;
33
+ clickable: boolean;
34
+ showLotAGagner: boolean;
35
+ showParticiper: boolean;
36
+ showReglement: boolean;
37
+ showDownload: boolean;
38
+ lotAGagnerLabel: string;
39
+ participerLabel: string;
40
+ reglementLabel: string;
41
+ downloadLabel: string;
42
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
43
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
+ export default _default;
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1 @@
1
+ export { default as ContestCard } from './ContestCard';
@@ -0,0 +1,28 @@
1
+ import { ImageFits } from '../../atoms/DefaultImage/types';
2
+ export type ContestCardVariant = 'default' | 'primary' | 'secondary';
3
+ export type ContestCardSize = 'small' | 'medium' | 'large';
4
+ export type ChipVariant = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'subvention' | 'echeque';
5
+ export interface ContestCardProps {
6
+ image?: string;
7
+ imageAlt?: string;
8
+ imageFit?: ImageFits;
9
+ imageAspectRatio?: number;
10
+ chipLabel?: string;
11
+ chipVariant?: ChipVariant;
12
+ title?: string;
13
+ subTitle?: string;
14
+ description?: string;
15
+ drawDate?: string;
16
+ variant?: ContestCardVariant;
17
+ size?: ContestCardSize;
18
+ disabled?: boolean;
19
+ clickable?: boolean;
20
+ showLotAGagner?: boolean;
21
+ showParticiper?: boolean;
22
+ showReglement?: boolean;
23
+ showDownload?: boolean;
24
+ lotAGagnerLabel?: string;
25
+ participerLabel?: string;
26
+ reglementLabel?: string;
27
+ downloadLabel?: string;
28
+ }
@@ -41,3 +41,5 @@ export type { CustomCriterionVProps, CustomCriterionValueType } from './CustomCr
41
41
  export { CartConfirmation, type CartConfirmationProps, type CartConfirmationSavingColor } from './CartConfirmation';
42
42
  export { UserSelection } from './UserSelection';
43
43
  export type { UserSelectionProps } from './UserSelection';
44
+ export { ContestCard } from './ContestCard';
45
+ export type { ContestCardProps } from './ContestCard';
@@ -468,6 +468,12 @@ declare const _default: {
468
468
  tableEmptyState: {
469
469
  logoAlt: string;
470
470
  };
471
+ verticalStepper: {
472
+ statusCompleted: string;
473
+ statusCurrent: string;
474
+ statusPending: string;
475
+ statusError: string;
476
+ };
471
477
  tree: {
472
478
  loading: string;
473
479
  filterPlaceholder: string;
package/dist/index.d.ts CHANGED
@@ -103,12 +103,14 @@ export type { CustomCriteriaSectionProps, CustomCriterion } from './components/o
103
103
  export type { CustomCriterionVProps, CustomCriterionValueType } from './components/organisms/CustomCriterionV/types';
104
104
  export type { CartConfirmationProps, CartConfirmationSavingColor } from './components/organisms/CartConfirmation/types';
105
105
  export type { UserSelectionProps } from './components/organisms/UserSelection/types';
106
+ export type { ContestCardProps } from './components/organisms/ContestCard/types';
106
107
  export type { AddressFormProps, AddressFormSchema, AddressFormSection } from './components/organisms/AddressForm/types';
107
108
  export type { CartPreviewProps, CartPreviewPrice, CartPreviewPriceLine } from './components/organisms/CartPreview/types';
108
109
  export type { CartPreviewItemProps } from './components/molecules/CartPreviewItem/types';
109
110
  export { MyUserGroups } from './components/molecules/MyUserGroups';
110
111
  export type { MyUserGroupsProps, UserGroupCriterion } from './components/molecules/MyUserGroups/types';
111
112
  export type { TreeProps, TreeNode, TreeSelectionKey } from './components/molecules/Tree/types';
113
+ export type { VerticalStepperProps, VerticalStep, VerticalStepStatus, VerticalStepperStatus } from './components/molecules/VerticalStepper/types';
112
114
  export { clubEmployesDark, clubEmployesLight } from './themes/club-employes';
113
115
  export { gifteoDark, gifteoLight } from './themes/gifteo';
114
116
  export type { LoaderProps } from './components/templates/Loader/types';