@mobielnl/elements 0.12.23 → 0.12.25
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/elements.css +1 -1
- package/dist/elements.js +5 -5
- package/dist/elements.umd.cjs +134 -132
- package/dist/{index-q4BtYrTI.js → index-BkgkTFrf.js} +21576 -20919
- package/dist/index-CSAejUDF.js +1678 -0
- package/dist/index.d.ts +115 -16
- package/package.json +4 -4
- package/dist/index-D7hWcsBq.js +0 -1763
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,23 @@ export declare type AddToCartEvent = {
|
|
|
30
30
|
proposition: ProductCardPropositionFragment;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
declare type AlertClassNames = {
|
|
34
|
+
/** Alert container */
|
|
35
|
+
base?: string;
|
|
36
|
+
/** Alert title text */
|
|
37
|
+
title?: string;
|
|
38
|
+
/** Alert description text */
|
|
39
|
+
description?: string;
|
|
40
|
+
/** Alert main content wrapper */
|
|
41
|
+
mainWrapper?: string;
|
|
42
|
+
/** Alert close button */
|
|
43
|
+
closeButton?: string;
|
|
44
|
+
/** Alert icon wrapper */
|
|
45
|
+
iconWrapper?: string;
|
|
46
|
+
/** Alert icon */
|
|
47
|
+
alertIcon?: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
33
50
|
declare type AverageSectionClassNames = {
|
|
34
51
|
/** Container for the average per month section */
|
|
35
52
|
container?: string;
|
|
@@ -110,6 +127,22 @@ declare type BundleModalClassNames = {
|
|
|
110
127
|
confirmButton?: string;
|
|
111
128
|
};
|
|
112
129
|
|
|
130
|
+
/**
|
|
131
|
+
* ClassNames for styling different parts of the `BundlePrice` component
|
|
132
|
+
*/
|
|
133
|
+
declare type BundlePriceClassNames = {
|
|
134
|
+
/** The base container for the pricing and promotion text */
|
|
135
|
+
base?: string;
|
|
136
|
+
/** The wrapper container for the pricing */
|
|
137
|
+
wrapper?: string;
|
|
138
|
+
/** The normal price of the radio */
|
|
139
|
+
normalPrice?: string;
|
|
140
|
+
/** The promotion price of the radio */
|
|
141
|
+
promotionPrice?: string;
|
|
142
|
+
/** The promotion text of the radio */
|
|
143
|
+
promotionText?: string;
|
|
144
|
+
};
|
|
145
|
+
|
|
113
146
|
/**
|
|
114
147
|
* ClassNames for styling different parts of the `BundleSelector` component
|
|
115
148
|
*/
|
|
@@ -120,12 +153,18 @@ declare type BundleSelectorClassNames = {
|
|
|
120
153
|
contractTermGroup?: string;
|
|
121
154
|
/** Contract term section heading */
|
|
122
155
|
contractTermLabel?: string;
|
|
156
|
+
/** Contract term section heading number */
|
|
157
|
+
contractTermLabelNumber?: string;
|
|
123
158
|
/** Contract term radio group class styling slots - see type `RadioGroupClassNames` */
|
|
124
159
|
contractTermRadioGroup?: RadioGroupClassNames;
|
|
125
160
|
/** Container wrapping each bundle type set heading and its radio/checkbox group */
|
|
126
161
|
bundleTypeSetGroup?: string;
|
|
127
162
|
/** Bundle type set section heading */
|
|
128
163
|
bundleTypeSetLabel?: string;
|
|
164
|
+
/** Bundle type set section heading number */
|
|
165
|
+
bundleTypeSetLabelNumber?: string;
|
|
166
|
+
/** Bundle type set section heading info icon */
|
|
167
|
+
bundleTypeSetLabelInfoIcon?: string;
|
|
129
168
|
/** Button that opens the modal with more bundle options */
|
|
130
169
|
showMoreButton?: string;
|
|
131
170
|
/** Bundle type set radio group class styling slots (used when `multiSelect` is false) - see type `RadioGroupClassNames` */
|
|
@@ -208,6 +247,12 @@ declare type CheckboxGroupClassNames = {
|
|
|
208
247
|
icon?: string;
|
|
209
248
|
/** The text associated with the checkbox */
|
|
210
249
|
label?: string;
|
|
250
|
+
/** Bundle Price component class styling slots - see type `BundlePriceClassNames` */
|
|
251
|
+
bundlePrice?: BundlePriceClassNames;
|
|
252
|
+
/** Image wrapper */
|
|
253
|
+
imgWrapper?: string;
|
|
254
|
+
/** Image */
|
|
255
|
+
img?: string;
|
|
211
256
|
};
|
|
212
257
|
};
|
|
213
258
|
|
|
@@ -548,22 +593,7 @@ declare type ErrorAlertClassNames = {
|
|
|
548
593
|
/** Main wrapper container for the error component */
|
|
549
594
|
base?: string;
|
|
550
595
|
/** Alert component class styling slots */
|
|
551
|
-
alert?:
|
|
552
|
-
/** Alert container */
|
|
553
|
-
base?: string;
|
|
554
|
-
/** Alert title text */
|
|
555
|
-
title?: string;
|
|
556
|
-
/** Alert description text */
|
|
557
|
-
description?: string;
|
|
558
|
-
/** Alert main content wrapper */
|
|
559
|
-
mainWrapper?: string;
|
|
560
|
-
/** Alert close button */
|
|
561
|
-
closeButton?: string;
|
|
562
|
-
/** Alert icon wrapper */
|
|
563
|
-
iconWrapper?: string;
|
|
564
|
-
/** Alert icon */
|
|
565
|
-
alertIcon?: string;
|
|
566
|
-
};
|
|
596
|
+
alert?: AlertClassNames;
|
|
567
597
|
/** Refresh page button */
|
|
568
598
|
button?: string;
|
|
569
599
|
};
|
|
@@ -1410,6 +1440,8 @@ declare type ProductHeaderClassNames = {
|
|
|
1410
1440
|
};
|
|
1411
1441
|
/** Stock status indicator – see ProductStockStatus */
|
|
1412
1442
|
productStockStatus?: NonNullable<MainImageClassNames['phoneImage']>['stockIndicator'];
|
|
1443
|
+
/** Wrapper container for the proposition header and promotion list */
|
|
1444
|
+
propositionHeaderPromotionListWrapper?: string;
|
|
1413
1445
|
/** Proposition header class styling slots */
|
|
1414
1446
|
propositionHeader?: PropositionHeaderClassNames;
|
|
1415
1447
|
/** Carousel class styling slots (smartphone product images) - see type `CarouselClassNames` */
|
|
@@ -1806,6 +1838,11 @@ export declare function PropositionSelector({ propositionKey, classNames, initia
|
|
|
1806
1838
|
export declare type PropositionSelectorClassNames = {
|
|
1807
1839
|
/** Wrapper container for the entire proposition selector */
|
|
1808
1840
|
base?: string;
|
|
1841
|
+
/** Main content wrapper container */
|
|
1842
|
+
mainContentWrapper?: string;
|
|
1843
|
+
/** Alert class styling slots - see type `AlertClassNames`
|
|
1844
|
+
* @note only visible for fixed propositions with the same fixed provider in profile */
|
|
1845
|
+
sameFixedProviderAlert?: AlertClassNames;
|
|
1809
1846
|
/** HandsetCreditSelector component class styling slots - see type `HandsetCreditSelectorClassNames` */
|
|
1810
1847
|
handsetCreditSelector?: HandsetCreditSelectorClassNames;
|
|
1811
1848
|
/** ProductHeader class styling slots - see type `ProductHeaderClassNames` */
|
|
@@ -1818,6 +1855,12 @@ export declare type PropositionSelectorClassNames = {
|
|
|
1818
1855
|
promotionList?: PromotionListClassNames;
|
|
1819
1856
|
/** PropositionSpecifications class styling slots (bundle info section) */
|
|
1820
1857
|
propositionSpecifications?: {
|
|
1858
|
+
/** Base container for the bundle info section */
|
|
1859
|
+
base?: string;
|
|
1860
|
+
/** Title for the bundle info section */
|
|
1861
|
+
title?: string;
|
|
1862
|
+
/** Link for the bundle info section */
|
|
1863
|
+
link?: string;
|
|
1821
1864
|
/** Wrapper container for the specifications */
|
|
1822
1865
|
wrapper?: string;
|
|
1823
1866
|
/** Specification item */
|
|
@@ -1831,15 +1874,31 @@ export declare type PropositionSelectorClassNames = {
|
|
|
1831
1874
|
extraCosts?: string;
|
|
1832
1875
|
/** Sidebar card containing the cost overview, CTA button and extra costs */
|
|
1833
1876
|
sidebarCard?: {
|
|
1877
|
+
/** Sidebar layout wrapper container for the sidebar card and content below the CTA
|
|
1878
|
+
*
|
|
1879
|
+
* @note Desktop: This wrapper the second column of the layout and is sticky to the top of the screen
|
|
1880
|
+
*/
|
|
1881
|
+
layoutWrapper?: string;
|
|
1834
1882
|
/** The Card wrapper element */
|
|
1835
1883
|
base?: string;
|
|
1884
|
+
/** Wrapper container for the title and provider image */
|
|
1885
|
+
titleWrapper?: string;
|
|
1836
1886
|
/** The "Totale kosten overzicht" title heading */
|
|
1837
1887
|
title?: string;
|
|
1888
|
+
/** Provider image – wrapper and img */
|
|
1889
|
+
providerImage?: {
|
|
1890
|
+
wrapper?: string;
|
|
1891
|
+
img?: string;
|
|
1892
|
+
};
|
|
1838
1893
|
/** The add-to-cart CTA button */
|
|
1839
1894
|
ctaButton?: string;
|
|
1840
1895
|
};
|
|
1841
1896
|
/** BundleSelector component class styling slots - see type `BundleSelectorClassNames` */
|
|
1842
1897
|
bundleSelector?: BundleSelectorClassNames;
|
|
1898
|
+
/** Retention section class styling slots - see type `SectionClassNames` */
|
|
1899
|
+
retentionSelector?: SectionClassNames_2;
|
|
1900
|
+
/** Modification section class styling slots - see type `SectionClassNames` */
|
|
1901
|
+
modificationSelector?: SectionClassNames_2;
|
|
1843
1902
|
/** BundleModal component class styling slots - see type `BundleModalClassNames` */
|
|
1844
1903
|
bundleModal?: BundleModalClassNames;
|
|
1845
1904
|
/** Profile buttons component class styling slots - see type `SelectorClassNames` */
|
|
@@ -1871,6 +1930,13 @@ export declare type PropositionSelectorProps = {
|
|
|
1871
1930
|
/** Target for the click-out URL on mobiel.nl
|
|
1872
1931
|
* @default 'cart' */
|
|
1873
1932
|
clickOutTarget?: 'cart' | 'checkout';
|
|
1933
|
+
/** Custom ReactNode content below the CTA card component
|
|
1934
|
+
*
|
|
1935
|
+
* @note Desktop: Content will be displayed below the CTA card component in the sidebar/second column
|
|
1936
|
+
* @note Mobile: Content will be displayed below the CTA card component at the bottom of the screen
|
|
1937
|
+
* @default null
|
|
1938
|
+
*/
|
|
1939
|
+
contentBelowCTA?: ReactNode;
|
|
1874
1940
|
/** Callback function to handle proposition key changes */
|
|
1875
1941
|
onPropositionKeyChange?: (propositionKey: string) => void;
|
|
1876
1942
|
/** Callback function to handle profile changes */
|
|
@@ -1916,6 +1982,8 @@ export declare type PropositionSelectorProps = {
|
|
|
1916
1982
|
* }}
|
|
1917
1983
|
*/
|
|
1918
1984
|
onRender?: () => void;
|
|
1985
|
+
/** Boolean to hide number retention question when profile if filled. Does not apply to fixed propositions */
|
|
1986
|
+
hideRetentionOnFilledProfile?: boolean;
|
|
1919
1987
|
};
|
|
1920
1988
|
|
|
1921
1989
|
export declare type ProviderOption = {
|
|
@@ -1993,6 +2061,12 @@ declare type RadioGroupClassNames = {
|
|
|
1993
2061
|
control?: string;
|
|
1994
2062
|
/** Description slot for the radio */
|
|
1995
2063
|
description?: string;
|
|
2064
|
+
/** Bundle Price component class styling slots - see type `BundlePriceClassNames` */
|
|
2065
|
+
bundlePrice?: BundlePriceClassNames;
|
|
2066
|
+
/** Image wrapper */
|
|
2067
|
+
imgWrapper?: string;
|
|
2068
|
+
/** Image */
|
|
2069
|
+
img?: string;
|
|
1996
2070
|
};
|
|
1997
2071
|
};
|
|
1998
2072
|
|
|
@@ -2061,6 +2135,20 @@ declare type SectionClassNames = {
|
|
|
2061
2135
|
table?: TableClassNames;
|
|
2062
2136
|
};
|
|
2063
2137
|
|
|
2138
|
+
/**
|
|
2139
|
+
* ClassNames for styling different parts of the `Section` component
|
|
2140
|
+
*/
|
|
2141
|
+
declare type SectionClassNames_2 = {
|
|
2142
|
+
/** Root container */
|
|
2143
|
+
base?: string;
|
|
2144
|
+
/** Section title */
|
|
2145
|
+
title?: string;
|
|
2146
|
+
/** Section number pill */
|
|
2147
|
+
number?: string;
|
|
2148
|
+
/** Section description */
|
|
2149
|
+
description?: string;
|
|
2150
|
+
};
|
|
2151
|
+
|
|
2064
2152
|
/**
|
|
2065
2153
|
* ClassNames for styling different parts of the `SelectFilter` component
|
|
2066
2154
|
*/
|
|
@@ -2601,9 +2689,12 @@ export declare type Translations = {
|
|
|
2601
2689
|
};
|
|
2602
2690
|
propositionSelector: {
|
|
2603
2691
|
return: string;
|
|
2692
|
+
sameFixedProviderTitle: string;
|
|
2693
|
+
sameFixedProviderDescription: string;
|
|
2604
2694
|
productVersionTitle: string;
|
|
2605
2695
|
benefitsTitle: string;
|
|
2606
2696
|
bundleSelectorTitle: string;
|
|
2697
|
+
moreBundleInfo: string;
|
|
2607
2698
|
totalCostsOverviewTitle: string;
|
|
2608
2699
|
cta: string;
|
|
2609
2700
|
handsetCreditTitle: string;
|
|
@@ -2615,6 +2706,14 @@ export declare type Translations = {
|
|
|
2615
2706
|
installationFee: string;
|
|
2616
2707
|
none: string;
|
|
2617
2708
|
showMore: string;
|
|
2709
|
+
retentionTitle: string;
|
|
2710
|
+
retentionDescription: string;
|
|
2711
|
+
retentionYes: string;
|
|
2712
|
+
retentionNo: string;
|
|
2713
|
+
modificationTitle: string;
|
|
2714
|
+
modificationDescription: string;
|
|
2715
|
+
modificationYes: string;
|
|
2716
|
+
modificationNo: string;
|
|
2618
2717
|
};
|
|
2619
2718
|
handsetCreditSelector: {
|
|
2620
2719
|
handsetPriceInfo: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobielnl/elements",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.25",
|
|
4
4
|
"description": "Mobiel.nl Elements - React component library for partner websites",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"@graphql-codegen/typescript-operations": "^4.4.0",
|
|
51
51
|
"@heroui/accordion": "^2.2.29",
|
|
52
52
|
"@heroui/alert": "^2.2.29",
|
|
53
|
-
"@heroui/avatar": "^2.2.
|
|
53
|
+
"@heroui/avatar": "^2.2.25",
|
|
54
54
|
"@heroui/badge": "^2.2.18",
|
|
55
55
|
"@heroui/button": "^2.2.29",
|
|
56
56
|
"@heroui/card": "^2.2.27",
|
|
57
57
|
"@heroui/checkbox": "^2.3.29",
|
|
58
58
|
"@heroui/chip": "^2.2.24",
|
|
59
59
|
"@heroui/divider": "^2.2.21",
|
|
60
|
-
"@heroui/image": "^2.2.
|
|
60
|
+
"@heroui/image": "^2.2.19",
|
|
61
61
|
"@heroui/input": "^2.4.30",
|
|
62
62
|
"@heroui/link": "^2.2.25",
|
|
63
63
|
"@heroui/listbox": "^2.3.28",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"swr": "^2.3.2",
|
|
109
109
|
"tailwindcss": "^4.1.18",
|
|
110
110
|
"typescript": "~5.8.3",
|
|
111
|
-
"vite": "7.3.
|
|
111
|
+
"vite": "7.3.5",
|
|
112
112
|
"vite-plugin-dts": "^4.5.0",
|
|
113
113
|
"vitest": "^4.1.8",
|
|
114
114
|
"zod": "^4.1.12"
|