@club-employes/utopia 4.348.0 → 4.350.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 { DeliveryMethodCardProps } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<DeliveryMethodCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
+ select: () => any;
5
+ }, string, PublicProps, Readonly<DeliveryMethodCardProps> & Readonly<{
6
+ onSelect?: (() => any) | undefined;
7
+ }>, {
8
+ disabled: boolean;
9
+ active: boolean;
10
+ selectable: boolean;
11
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
12
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DeliveryMethodCard } from './DeliveryMethodCard';
2
+ export type { DeliveryMethodCardProps } from './types';
@@ -0,0 +1,18 @@
1
+ export interface DeliveryMethodCardProps {
2
+ title?: string;
3
+ description?: string;
4
+ delay?: string;
5
+ img?: string;
6
+ selectable?: boolean;
7
+ selected?: boolean;
8
+ /** Pre-formatted price, e.g. "3,30 €". When set, the card renders the
9
+ * summary layout (icon box + title + right-aligned price). The component
10
+ * never formats the value itself. */
11
+ price?: string;
12
+ /** Icon name shown in the summary-layout icon box. Defaults to an envelope. */
13
+ icon?: string;
14
+ /** Selected state for the summary layout (blue border + tint). */
15
+ active?: boolean;
16
+ /** Disables selection. */
17
+ disabled?: boolean;
18
+ }
@@ -28,9 +28,8 @@ interface GrantTreeNode {
28
28
  dropdownModelValue?: string | number | boolean;
29
29
  }
30
30
  type __VLS_Props = {
31
- modelValue?: string | number | boolean;
31
+ modelValue?: string | undefined;
32
32
  node: GrantTreeNode;
33
- groupEnabled?: boolean;
34
33
  };
35
34
  declare function __VLS_template(): {
36
35
  attrs: Partial<{}>;
@@ -43,10 +42,10 @@ declare function __VLS_template(): {
43
42
  };
44
43
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
45
44
  declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
46
- "update:modelValue": (value?: string | number | boolean | undefined) => any;
45
+ "update:modelValue": (value?: string | undefined) => any;
47
46
  "update:dropdownValue": (value?: string | number | boolean | undefined) => any;
48
47
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
49
- "onUpdate:modelValue"?: ((value?: string | number | boolean | undefined) => any) | undefined;
48
+ "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
50
49
  "onUpdate:dropdownValue"?: ((value?: string | number | boolean | undefined) => any) | undefined;
51
50
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
52
51
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -56,17 +56,12 @@ export type { EmptyStateProps } from './EmptyState';
56
56
  export { UserCard } from './UserCard';
57
57
  export type { UserCardProps, UserCardTab, UserCardFeature, UserCardLocale, UserCardLink } from './UserCard';
58
58
  export { SubventionCard, type SubventionCardProps } from './SubventionCard';
59
- export { ArticlePreview } from './ArticlePreview';
60
- export type { ArticlePreviewProps } from './ArticlePreview';
61
- export { DownloadList } from './DownloadList';
62
- export type { DownloadListProps } from './DownloadList';
63
- export { TromboItem, TromboItemEmptyState } from './TromboItem';
64
- export type { TromboItemProps } from './TromboItem';
65
- export { CountryDropDown, countriesToDropDownOptions, countryDisplayName, countryLabelForCode, countryToDropDownOption, filterCountriesByCodes, orderedCountriesForPicker } from './CountryDropDown';
66
- export type { CountryDropDownBaseProps, CountryDropDownPassthroughProps, CountryDropDownProps } from './CountryDropDown';
67
- export { GrantSelect, type GrantSelectItemProps, GrantSelectTree } from './GrantSelect';
59
+ export { ArticlePreview, type ArticlePreviewProps } from './ArticlePreview';
60
+ export { DownloadList, type DownloadListProps } from './DownloadList';
61
+ export { TromboItem, TromboItemEmptyState, type TromboItemProps } from './TromboItem';
62
+ export { CountryDropDown, countriesToDropDownOptions, countryDisplayName, countryLabelForCode, countryToDropDownOption, filterCountriesByCodes, orderedCountriesForPicker, type CountryDropDownProps, type CountryDropDownPassthroughProps, type CountryDropDownBaseProps } from './CountryDropDown';
63
+ export { GrantSelect, GrantSelectTree, type GrantSelectItemProps } from './GrantSelect';
68
64
  export { CartStepper, type CartStepperProps, type CartStepperStep } from './CartStepper';
69
- export { CartPreviewItem } from './CartPreviewItem';
70
- export type { CartPreviewItemProps } from './CartPreviewItem';
71
- export { DateRange } from './DateRange';
72
- export type { DateRangeProps, DateRangeValue, DateRangeTrigger } from './DateRange';
65
+ export { CartPreviewItem, type CartPreviewItemProps } from './CartPreviewItem';
66
+ export { DateRange, type DateRangeProps, type DateRangeValue, type DateRangeTrigger } from './DateRange';
67
+ export { DeliveryMethodCard, type DeliveryMethodCardProps } from './DeliveryMethodCard';
@@ -0,0 +1,7 @@
1
+ import { DeliveryMethodProductRecap } from './types.ts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = DeliveryMethodProductRecap & {
4
+ loading: boolean;
5
+ };
6
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { DeliveryMethodSelectorProps, DeliveryMethodProductRecap, DeliveryMethod } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<DeliveryMethodSelectorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
+ "show-more": () => any;
5
+ "select-method": (index: number) => any;
6
+ }, string, PublicProps, Readonly<DeliveryMethodSelectorProps> & Readonly<{
7
+ "onShow-more"?: (() => any) | undefined;
8
+ "onSelect-method"?: ((index: number) => any) | undefined;
9
+ }>, {
10
+ loading: boolean;
11
+ products: DeliveryMethodProductRecap[];
12
+ methods: DeliveryMethod[];
13
+ showMore: boolean;
14
+ showMoreLabel: string;
15
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DeliveryMethodSelector } from './DeliveryMethodSelector';
2
+ export type { DeliveryMethodSelectorProps } from './types';
@@ -0,0 +1,41 @@
1
+ export interface DeliveryMethodProductRecap {
2
+ /** Product title, e.g. "Entrée adulte Disneyland". */
3
+ title?: string;
4
+ /** Brand / category line, e.g. "Disney land". */
5
+ brand?: string;
6
+ /** Typology tag rendered as a ghost chip, e.g. "E-billet". */
7
+ tag?: string;
8
+ /** Thumbnail image src. Falls back to a placeholder when omitted. */
9
+ image?: string;
10
+ /** Object-fit value for the thumbnail image. */
11
+ imageFit?: 'cover' | 'contain' | 'fill' | 'logo';
12
+ }
13
+ /** A single selectable shipping/delivery method. */
14
+ export interface DeliveryMethod {
15
+ /** Whether this method is currently selected. Selection is driven externally. */
16
+ active: boolean;
17
+ /** Method name, e.g. "Lettre suivie". */
18
+ title?: string;
19
+ /** Pre-formatted price, e.g. "3,30 €". The component never formats. */
20
+ price?: string;
21
+ /** Delay copy, e.g. "5 à 12 jours". */
22
+ delay?: string;
23
+ /** Description e.g. "à partie de 40€ d'achats" */
24
+ description?: string;
25
+ /** Icon name shown in the method's icon box. Defaults to an envelope. */
26
+ icon?: string;
27
+ /** Disables selection of this method. */
28
+ disabled?: boolean;
29
+ }
30
+ export interface DeliveryMethodSelectorProps {
31
+ /** Whether the component is in a loading state. */
32
+ loading?: boolean;
33
+ /** Products the chosen delivery method applies to. */
34
+ products: DeliveryMethodProductRecap[];
35
+ /** Delivery methods to display. Their `active` flag drives the selected state. */
36
+ methods: DeliveryMethod[];
37
+ /** Shows the "show more" button that reveals additional delivery methods. */
38
+ showMore?: boolean;
39
+ /** Label for the show-more button. */
40
+ showMoreLabel?: string;
41
+ }
@@ -32,3 +32,5 @@ export { ProductRecap, type ProductRecapProps } from './ProductRecap';
32
32
  export { OrderRecap, type OrderRecapProps, type OrderRecapMessage } from './OrderRecap';
33
33
  export { SummaryMetricCard } from './SummaryMetricCard';
34
34
  export type { SummaryMetricCardProps } from './SummaryMetricCard';
35
+ export { DeliveryMethodSelector } from './DeliveryMethodSelector';
36
+ export type { DeliveryMethodSelectorProps } from './DeliveryMethodSelector';
package/dist/index.d.ts CHANGED
@@ -75,6 +75,7 @@ export type { CountryDropDownProps } from './components/molecules/CountryDropDow
75
75
  export type { GrantSelectItemProps } from './components/molecules/GrantSelect/types';
76
76
  export type { CartStepperProps, CartStepperStep } from './components/molecules/CartStepper/types';
77
77
  export type { DateRangeProps, DateRangeValue, DateRangeTrigger } from './components/molecules/DateRange/types';
78
+ export type { DeliveryMethodCardProps } from './components/molecules/DeliveryMethodCard/types';
78
79
  export { TromboItem, TromboItemEmptyState } from './components/molecules/TromboItem';
79
80
  export type { AuthLayoutProps } from './components/layouts/AuthLayout/types';
80
81
  export type { MfePageProps, ShyHeaderMode } from './components/layouts/MfePage/types';
@@ -97,6 +98,7 @@ export type { InputSearchProps } from './components/organisms/InputSearch/types'
97
98
  export type { ProductRecapProps } from './components/organisms/ProductRecap/types';
98
99
  export type { OrderRecapProps, OrderRecapMessage } from './components/organisms/OrderRecap/types';
99
100
  export type { SummaryMetricCardProps } from './components/organisms/SummaryMetricCard/types';
101
+ export type { DeliveryMethodSelectorProps } from './components/organisms/DeliveryMethodSelector/types';
100
102
  export type { AddressFormProps, AddressFormSchema, AddressFormSection } from './components/organisms/AddressForm/types';
101
103
  export type { CartPreviewProps, CartPreviewPrice, CartPreviewPriceLine } from './components/organisms/CartPreview/types';
102
104
  export type { CartPreviewItemProps } from './components/molecules/CartPreviewItem/types';