@club-employes/utopia 4.165.0 → 4.167.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.
@@ -3,6 +3,7 @@ export interface InputTextProps {
3
3
  label?: string;
4
4
  placeholder?: string;
5
5
  type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url';
6
+ numberClamp?: boolean;
6
7
  inputmode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
7
8
  state?: 'default' | 'error' | 'valid' | 'incomplete' | 'completed';
8
9
  size?: 'extra-small' | 'small' | 'medium' | 'large';
@@ -98,6 +98,7 @@ declare const __VLS_component: DefineComponent<ModalProps, {}, {}, {}, {}, Compo
98
98
  }>, {
99
99
  title: string;
100
100
  size: ModalSize;
101
+ variant: "default" | "form";
101
102
  position: ModalPosition;
102
103
  animation: ModalAnimation;
103
104
  closeOnOverlayClick: boolean;
@@ -105,6 +106,7 @@ declare const __VLS_component: DefineComponent<ModalProps, {}, {}, {}, {}, Compo
105
106
  showCloseButton: boolean;
106
107
  showHeader: boolean;
107
108
  showFooter: boolean;
109
+ showEnlargeLabel: boolean;
108
110
  focusTrap: boolean;
109
111
  blurBackdrop: boolean;
110
112
  mobileBehavior: ModalMobileBehavior;
@@ -1,6 +1,6 @@
1
1
  export type ModalSize = 'sm' | 'md' | 'lg' | 'full';
2
2
  export type ModalPosition = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
3
- export type ModalAnimation = 'slide-top' | 'slide-horizontal' | 'slide-horizontal-left' | 'slide-bottom';
3
+ export type ModalAnimation = 'slide-top' | 'slide-horizontal' | 'slide-horizontal-right' | 'slide-horizontal-left' | 'slide-bottom';
4
4
  export type ModalMobileBehavior = 'bottom-sheet' | 'center';
5
5
  export type ModalChangeReason = 'open' | 'close' | 'overlay' | 'escape' | 'close-button';
6
6
  export interface ModalProps {
@@ -8,11 +8,14 @@ export interface ModalProps {
8
8
  defaultOpen?: boolean;
9
9
  title?: string;
10
10
  size?: ModalSize;
11
+ /** Variante visuelle du panneau modal (par ex. 'form' pour modals de formulaire large) */
12
+ variant?: 'default' | 'form';
11
13
  position?: ModalPosition;
12
14
  closeOnOverlayClick?: boolean;
13
15
  showCloseButton?: boolean;
14
16
  showHeader?: boolean;
15
17
  showFooter?: boolean;
18
+ showEnlargeLabel?: boolean;
16
19
  disableScrollLock?: boolean;
17
20
  focusTrap?: boolean;
18
21
  blurBackdrop?: boolean;
@@ -1,21 +1,23 @@
1
- import { ProductSummaryProps } from './types';
1
+ import { ProductSummaryProps, ProductSummaryAdditionalInfo } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { OptionSelectProps } from '../..';
4
4
  declare const _default: DefineComponent<ProductSummaryProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5
5
  "update:quantity": (value: number) => any;
6
6
  "click:button": (value: MouseEvent) => any;
7
+ "update:amount": (value: number) => any;
8
+ "update:subvention": (value: string | null) => any;
9
+ "update:subventionActive": (value: boolean) => any;
7
10
  }, string, PublicProps, Readonly<ProductSummaryProps> & Readonly<{
8
11
  "onUpdate:quantity"?: ((value: number) => any) | undefined;
9
12
  "onClick:button"?: ((value: MouseEvent) => any) | undefined;
13
+ "onUpdate:amount"?: ((value: number) => any) | undefined;
14
+ "onUpdate:subvention"?: ((value: string | null) => any) | undefined;
15
+ "onUpdate:subventionActive"?: ((value: boolean) => any) | undefined;
10
16
  }>, {
11
17
  options: OptionSelectProps[];
12
18
  outOfStock: boolean;
13
19
  outOfStockChipLabel: string;
14
20
  outOfStockDescription: string;
15
- additionalInfo: {
16
- icon: string;
17
- label: string;
18
- value: string;
19
- }[];
21
+ additionalInfo: ProductSummaryAdditionalInfo[];
20
22
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
21
23
  export default _default;
@@ -1,2 +1,2 @@
1
1
  export { default as ProductSummary } from './ProductSummary';
2
- export type { ProductSummaryProps, ProductSummaryPrice, ProductSummaryQuantity, ProductSummaryButton } from './types';
2
+ export type { ProductSummaryProps, ProductSummaryTitles, ProductSummaryPrice, ProductSummaryAmount, ProductSummaryQuantity, ProductSummarySubvention, ProductSummaryButton, ProductSummaryTips, ProductSummaryValidity, ProductSummaryAdditionalInfo } from './types';
@@ -1,4 +1,8 @@
1
1
  import { OptionSelectProps } from '../../molecules/OptionSelect';
2
+ export interface ProductSummaryTitles {
3
+ label: string;
4
+ discount?: string;
5
+ }
2
6
  export interface ProductSummaryPrice {
3
7
  label: string;
4
8
  totalLabel: string;
@@ -8,6 +12,14 @@ export interface ProductSummaryPrice {
8
12
  formattedSavingInfo: string;
9
13
  formattedSavingInfoTooltip: string;
10
14
  }
15
+ export interface ProductSummaryAmount {
16
+ label?: string;
17
+ tooltip?: string;
18
+ icon?: string;
19
+ value: number;
20
+ min: number;
21
+ max: number;
22
+ }
11
23
  export interface ProductSummaryQuantity {
12
24
  label: string;
13
25
  amount: number;
@@ -15,41 +27,53 @@ export interface ProductSummaryQuantity {
15
27
  max: number;
16
28
  step: number;
17
29
  }
30
+ export interface ProductSummarySubvention {
31
+ label: string;
32
+ active: boolean;
33
+ modelValue: string | null;
34
+ subventions: {
35
+ label: string;
36
+ value: string;
37
+ }[];
38
+ comment?: string;
39
+ }
40
+ export interface ProductSummaryTips {
41
+ title: string;
42
+ content: string;
43
+ }
44
+ export interface ProductSummaryValidity {
45
+ label: string;
46
+ options: {
47
+ label: string;
48
+ valid: boolean;
49
+ }[];
50
+ }
51
+ export interface ProductSummaryAdditionalInfo {
52
+ icon: string;
53
+ label: string;
54
+ value: string;
55
+ }
18
56
  export interface ProductSummaryButton {
19
57
  label: string;
20
58
  icon?: string;
21
59
  disabled?: boolean;
22
60
  }
23
61
  export interface ProductSummaryProps {
24
- titles: {
25
- label: string;
26
- discount?: string;
27
- }[];
62
+ titles: ProductSummaryTitles[];
28
63
  type?: string;
29
64
  brand?: string;
30
65
  address?: string;
31
66
  outOfStock?: boolean;
32
67
  outOfStockChipLabel?: string;
33
68
  outOfStockDescription?: string;
34
- tips?: {
35
- title: string;
36
- content: string;
37
- };
69
+ tips?: ProductSummaryTips;
70
+ amount?: ProductSummaryAmount;
38
71
  options?: OptionSelectProps[];
39
72
  code?: string;
73
+ subvention?: ProductSummarySubvention;
40
74
  price?: ProductSummaryPrice;
41
75
  quantity?: ProductSummaryQuantity;
42
76
  button?: ProductSummaryButton;
43
- validity?: {
44
- label: string;
45
- options: {
46
- label: string;
47
- valid: boolean;
48
- }[];
49
- };
50
- additionalInfo?: {
51
- icon: string;
52
- label: string;
53
- value: string;
54
- }[];
77
+ validity?: ProductSummaryValidity;
78
+ additionalInfo?: ProductSummaryAdditionalInfo[];
55
79
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "generated": "2026-02-19T11:33:31.620Z",
2
+ "generated": "2026-02-20T16:54:05.509Z",
3
3
  "count": 1239,
4
4
  "icons": [
5
5
  "Accessibility",
package/dist/index.d.ts CHANGED
@@ -59,7 +59,7 @@ export type { MenuSectionItem } from './components/organisms/MenuSection/types';
59
59
  export type { MyEditorProps } from './components/organisms/MyEditor/types';
60
60
  export type { PageNavigationProps } from './components/organisms/PageNavigation/types';
61
61
  export type { ProductCardProps } from './components/organisms/ProductCard/types';
62
- export type { ProductSummaryProps, ProductSummaryPrice, ProductSummaryQuantity, ProductSummaryButton } from './components/organisms/ProductSummary/types';
62
+ export type { ProductSummaryProps, ProductSummaryTitles, ProductSummaryPrice, ProductSummaryAmount, ProductSummaryQuantity, ProductSummarySubvention, ProductSummaryButton, ProductSummaryTips, ProductSummaryValidity, ProductSummaryAdditionalInfo } from './components/organisms/ProductSummary/types';
63
63
  export { CellContentType, CellFilterType } from './components/organisms/Table';
64
64
  export type { CellContent, CellProps, ColumnOrder, ColumnType, MatchMode, SortConfig, TableProps, TableRequestData, TableEmptyStateProps } from './components/organisms/Table/types';
65
65
  export type { TransactionProps } from './components/organisms/Transaction/types';