@club-employes/utopia 4.392.0 → 4.394.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/DateRange/types.d.ts +8 -0
- package/dist/components/organisms/CartConfirmation/types.d.ts +13 -5
- package/dist/components/organisms/OrderRecap/types.d.ts +4 -0
- package/dist/components/organisms/Table/types.d.ts +6 -0
- package/dist/i18n/messages/fr.d.ts +2 -0
- package/dist/index.js +7868 -7752
- package/dist/utopia.css +1 -1
- package/package.json +1 -1
|
@@ -27,4 +27,12 @@ export interface DateRangeProps {
|
|
|
27
27
|
maxDate?: Date | string;
|
|
28
28
|
teleport?: boolean;
|
|
29
29
|
language?: 'fr' | 'en';
|
|
30
|
+
/**
|
|
31
|
+
* Autorise la sélection d'une seule date (intervalle ouvert).
|
|
32
|
+
* Affiche une checkbox sous chaque input :
|
|
33
|
+
* - Première ("À partir de cette date") : désactive/vide la borne haute.
|
|
34
|
+
* - Seconde ("Jusqu'à cette date") : désactive/vide la borne basse.
|
|
35
|
+
* Le bouton Confirmer devient actif dès qu'une seule borne est sélectionnée.
|
|
36
|
+
*/
|
|
37
|
+
allowSingleDate?: boolean;
|
|
30
38
|
}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { ProductRecapProps } from '../ProductRecap/types';
|
|
2
|
-
/** A read-only info block — delivery/billing address
|
|
2
|
+
/** A read-only info block — delivery/billing address.
|
|
3
3
|
* `lines` are pre-formatted strings, each rendered as its own row. */
|
|
4
|
-
export interface
|
|
4
|
+
export interface CartConfirmationAddress {
|
|
5
5
|
title: string;
|
|
6
|
-
lines
|
|
6
|
+
lines?: string[];
|
|
7
|
+
}
|
|
8
|
+
export type CartConfirmationPaymentType = 'default' | 'google-pay' | 'apple-pay';
|
|
9
|
+
/** A read-only info block — payment details.
|
|
10
|
+
* `lines` are pre-formatted strings, each rendered as its own row. */
|
|
11
|
+
export interface CartConfirmationPayment {
|
|
12
|
+
title: string;
|
|
13
|
+
type: CartConfirmationPaymentType;
|
|
14
|
+
lines?: string[];
|
|
7
15
|
}
|
|
8
16
|
/** Color of the leading bullet on a savings line. */
|
|
9
17
|
export type CartConfirmationSavingColor = 'accent' | 'subvention' | 'echeque' | 'secondary';
|
|
@@ -48,9 +56,9 @@ export interface CartConfirmationProps {
|
|
|
48
56
|
/** Product rows. Rendered read-only (no stepper, no delete) by CartConfirmation. */
|
|
49
57
|
products?: ProductRecapProps[];
|
|
50
58
|
/** Delivery & billing address block. */
|
|
51
|
-
address?:
|
|
59
|
+
address?: CartConfirmationAddress[];
|
|
52
60
|
/** Payment details block. */
|
|
53
|
-
payment?:
|
|
61
|
+
payment?: CartConfirmationPayment;
|
|
54
62
|
/** Totals + savings column. */
|
|
55
63
|
summary?: CartConfirmationSummary;
|
|
56
64
|
}
|
|
@@ -13,6 +13,9 @@ export interface OrderRecapCagnotte {
|
|
|
13
13
|
title: string;
|
|
14
14
|
captionLabel: string;
|
|
15
15
|
captionValue: string;
|
|
16
|
+
coinConversionReminder?: string;
|
|
17
|
+
coinDiscountLabel?: string;
|
|
18
|
+
coinDiscountValue?: string;
|
|
16
19
|
maxValue: number;
|
|
17
20
|
appliedValue: number;
|
|
18
21
|
currencyIcon: string;
|
|
@@ -42,6 +45,7 @@ export interface OrderRecapProps {
|
|
|
42
45
|
title: string;
|
|
43
46
|
manageLabel?: string;
|
|
44
47
|
hasSubvention?: boolean;
|
|
48
|
+
disabled?: boolean;
|
|
45
49
|
};
|
|
46
50
|
discounts?: OrderRecapDiscountSection[];
|
|
47
51
|
/** Cagnotte block — hidden when absent */
|
|
@@ -88,6 +88,12 @@ export interface DateRangeFilterContentType {
|
|
|
88
88
|
* Prioritaire sur content.toKey si les deux sont définis.
|
|
89
89
|
*/
|
|
90
90
|
toKey?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Autorise la sélection d'une seule date (intervalle ouvert).
|
|
93
|
+
* Affiche une checkbox sous chaque borne permettant de filtrer
|
|
94
|
+
* "à partir de cette date" ou "jusqu'à cette date".
|
|
95
|
+
*/
|
|
96
|
+
allowSingleDate?: boolean;
|
|
91
97
|
}
|
|
92
98
|
export interface RangeFilterContentType {
|
|
93
99
|
/** Label du DropFilter (ex. "Valeurs", "Budget") */
|