@club-employes/utopia 4.315.0 → 4.316.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,12 @@
1
+ import { OrderRecapProps } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<OrderRecapProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
+ confirm: () => any;
5
+ manage: () => any;
6
+ updateCagnotteValue: (value: number) => any;
7
+ }, string, PublicProps, Readonly<OrderRecapProps> & Readonly<{
8
+ onConfirm?: (() => any) | undefined;
9
+ onManage?: (() => any) | undefined;
10
+ onUpdateCagnotteValue?: ((value: number) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as OrderRecap } from './OrderRecap';
@@ -0,0 +1,46 @@
1
+ export interface OrderRecapPriceLine {
2
+ label: string;
3
+ value: string;
4
+ }
5
+ export interface OrderRecapDiscountSection {
6
+ label: string;
7
+ total: string;
8
+ color: 'accent' | 'subvention';
9
+ lines: OrderRecapPriceLine[];
10
+ defaultExpanded?: boolean;
11
+ }
12
+ export interface OrderRecapCagnotte {
13
+ title: string;
14
+ captionLabel: string;
15
+ captionValue: string;
16
+ maxValue: number;
17
+ appliedValue: number;
18
+ currencyIcon: string;
19
+ }
20
+ export interface OrderRecapProps {
21
+ title: string;
22
+ publicPriceLabel: string;
23
+ publicPrice: string;
24
+ /** Delivery row — hidden when absent */
25
+ delivery?: {
26
+ label: string;
27
+ value: string;
28
+ };
29
+ advantages?: {
30
+ title: string;
31
+ manageLabel: string;
32
+ };
33
+ discounts?: OrderRecapDiscountSection[];
34
+ /** Cagnotte block — hidden when absent */
35
+ cagnotte?: OrderRecapCagnotte;
36
+ total: {
37
+ label: string;
38
+ value: string;
39
+ };
40
+ confirm: {
41
+ label: string;
42
+ loading?: boolean;
43
+ disabled?: boolean;
44
+ };
45
+ errorMessage?: string;
46
+ }
@@ -30,3 +30,5 @@ export { AddressForm } from './AddressForm';
30
30
  export type { AddressFormProps, AddressFormSchema, AddressFormRow, AddressFormFieldConfig, AddressFormFieldType, AddressFormSection } from './AddressForm';
31
31
  export { ProductRecap } from './ProductRecap';
32
32
  export type { ProductRecapProps } from './ProductRecap';
33
+ export { OrderRecap } from './OrderRecap';
34
+ export type { OrderRecapProps } from './OrderRecap';
package/dist/index.d.ts CHANGED
@@ -92,6 +92,7 @@ export type { CarousselProps } from './components/organisms/Caroussel/types';
92
92
  export type { MetricCardProps, MetricCardGroupProps } from './components/organisms';
93
93
  export type { InputSearchProps } from './components/organisms/InputSearch/types';
94
94
  export type { ProductRecapProps } from './components/organisms/ProductRecap/types';
95
+ export type { OrderRecapProps } from './components/organisms/OrderRecap/types';
95
96
  export type { AddressFormProps, AddressFormSchema, AddressFormSection } from './components/organisms/AddressForm/types';
96
97
  export type { CartPreviewProps, CartPreviewItemProps, CartPreviewPrice, CartPreviewPriceLine } from './components/organisms/CartPreview/types';
97
98
  export { clubEmployesDark, clubEmployesLight } from './themes/club-employes';