@mobielnl/elements 0.12.23 → 0.12.24
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 +1 -1
- package/dist/elements.umd.cjs +61 -61
- package/dist/{index-q4BtYrTI.js → index-D3B78uDJ.js} +5020 -4872
- package/dist/{index-D7hWcsBq.js → index-V6otpA26.js} +1 -1
- package/dist/index.d.ts +54 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as j, i as N, m as Z, r as ze, h as qe, a as Lt, w as Q, b as pe, c as Ce, d as Xe, e as oe, f as Pe, t as O, g as Nt, j as G, v as Gt, k as $, M as H, K as Ye, l as $t, o as Ht, p as ge, q as Wt, s as _t, u as jt, x as Je, y as Ut, z as zt, A as qt, B as ke, C as Fe, D as z, E as Oe, F as Xt, V as Yt, G as Jt, H as Zt, I as Qt, J as en, L as tn, N as Ze, O as nn, P as sn, Q as rn, R as an, S as on, T as Qe, U as et, W as tt, X as nt, Y as ln } from "./index-
|
|
2
|
+
import { n as j, i as N, m as Z, r as ze, h as qe, a as Lt, w as Q, b as pe, c as Ce, d as Xe, e as oe, f as Pe, t as O, g as Nt, j as G, v as Gt, k as $, M as H, K as Ye, l as $t, o as Ht, p as ge, q as Wt, s as _t, u as jt, x as Je, y as Ut, z as zt, A as qt, B as ke, C as Fe, D as z, E as Oe, F as Xt, V as Yt, G as Jt, H as Zt, I as Qt, J as en, L as tn, N as Ze, O as nn, P as sn, Q as rn, R as an, S as on, T as Qe, U as et, W as tt, X as nt, Y as ln } from "./index-D3B78uDJ.js";
|
|
3
3
|
import { Fragment as un } from "react";
|
|
4
4
|
var Bt = typeof globalThis < "u" && globalThis.process ? globalThis.process : { env: { NODE_ENV: "production" } };
|
|
5
5
|
// @__NO_SIDE_EFFECTS__
|
package/dist/index.d.ts
CHANGED
|
@@ -110,6 +110,22 @@ declare type BundleModalClassNames = {
|
|
|
110
110
|
confirmButton?: string;
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
+
/**
|
|
114
|
+
* ClassNames for styling different parts of the `BundlePrice` component
|
|
115
|
+
*/
|
|
116
|
+
declare type BundlePriceClassNames = {
|
|
117
|
+
/** The base container for the pricing and promotion text */
|
|
118
|
+
base?: string;
|
|
119
|
+
/** The wrapper container for the pricing */
|
|
120
|
+
wrapper?: string;
|
|
121
|
+
/** The normal price of the radio */
|
|
122
|
+
normalPrice?: string;
|
|
123
|
+
/** The promotion price of the radio */
|
|
124
|
+
promotionPrice?: string;
|
|
125
|
+
/** The promotion text of the radio */
|
|
126
|
+
promotionText?: string;
|
|
127
|
+
};
|
|
128
|
+
|
|
113
129
|
/**
|
|
114
130
|
* ClassNames for styling different parts of the `BundleSelector` component
|
|
115
131
|
*/
|
|
@@ -120,12 +136,18 @@ declare type BundleSelectorClassNames = {
|
|
|
120
136
|
contractTermGroup?: string;
|
|
121
137
|
/** Contract term section heading */
|
|
122
138
|
contractTermLabel?: string;
|
|
139
|
+
/** Contract term section heading number */
|
|
140
|
+
contractTermLabelNumber?: string;
|
|
123
141
|
/** Contract term radio group class styling slots - see type `RadioGroupClassNames` */
|
|
124
142
|
contractTermRadioGroup?: RadioGroupClassNames;
|
|
125
143
|
/** Container wrapping each bundle type set heading and its radio/checkbox group */
|
|
126
144
|
bundleTypeSetGroup?: string;
|
|
127
145
|
/** Bundle type set section heading */
|
|
128
146
|
bundleTypeSetLabel?: string;
|
|
147
|
+
/** Bundle type set section heading number */
|
|
148
|
+
bundleTypeSetLabelNumber?: string;
|
|
149
|
+
/** Bundle type set section heading info icon */
|
|
150
|
+
bundleTypeSetLabelInfoIcon?: string;
|
|
129
151
|
/** Button that opens the modal with more bundle options */
|
|
130
152
|
showMoreButton?: string;
|
|
131
153
|
/** Bundle type set radio group class styling slots (used when `multiSelect` is false) - see type `RadioGroupClassNames` */
|
|
@@ -208,6 +230,8 @@ declare type CheckboxGroupClassNames = {
|
|
|
208
230
|
icon?: string;
|
|
209
231
|
/** The text associated with the checkbox */
|
|
210
232
|
label?: string;
|
|
233
|
+
/** Bundle Price component class styling slots - see type `BundlePriceClassNames` */
|
|
234
|
+
bundlePrice?: BundlePriceClassNames;
|
|
211
235
|
};
|
|
212
236
|
};
|
|
213
237
|
|
|
@@ -1410,6 +1434,8 @@ declare type ProductHeaderClassNames = {
|
|
|
1410
1434
|
};
|
|
1411
1435
|
/** Stock status indicator – see ProductStockStatus */
|
|
1412
1436
|
productStockStatus?: NonNullable<MainImageClassNames['phoneImage']>['stockIndicator'];
|
|
1437
|
+
/** Wrapper container for the proposition header and promotion list */
|
|
1438
|
+
propositionHeaderPromotionListWrapper?: string;
|
|
1413
1439
|
/** Proposition header class styling slots */
|
|
1414
1440
|
propositionHeader?: PropositionHeaderClassNames;
|
|
1415
1441
|
/** Carousel class styling slots (smartphone product images) - see type `CarouselClassNames` */
|
|
@@ -1818,6 +1844,12 @@ export declare type PropositionSelectorClassNames = {
|
|
|
1818
1844
|
promotionList?: PromotionListClassNames;
|
|
1819
1845
|
/** PropositionSpecifications class styling slots (bundle info section) */
|
|
1820
1846
|
propositionSpecifications?: {
|
|
1847
|
+
/** Base container for the bundle info section */
|
|
1848
|
+
base?: string;
|
|
1849
|
+
/** Title for the bundle info section */
|
|
1850
|
+
title?: string;
|
|
1851
|
+
/** Link for the bundle info section */
|
|
1852
|
+
link?: string;
|
|
1821
1853
|
/** Wrapper container for the specifications */
|
|
1822
1854
|
wrapper?: string;
|
|
1823
1855
|
/** Specification item */
|
|
@@ -1831,10 +1863,22 @@ export declare type PropositionSelectorClassNames = {
|
|
|
1831
1863
|
extraCosts?: string;
|
|
1832
1864
|
/** Sidebar card containing the cost overview, CTA button and extra costs */
|
|
1833
1865
|
sidebarCard?: {
|
|
1866
|
+
/** Sidebar layout wrapper container for the sidebar card and content below the CTA
|
|
1867
|
+
*
|
|
1868
|
+
* @note Desktop: This wrapper the second column of the layout and is sticky to the top of the screen
|
|
1869
|
+
*/
|
|
1870
|
+
layoutWrapper?: string;
|
|
1834
1871
|
/** The Card wrapper element */
|
|
1835
1872
|
base?: string;
|
|
1873
|
+
/** Wrapper container for the title and provider image */
|
|
1874
|
+
titleWrapper?: string;
|
|
1836
1875
|
/** The "Totale kosten overzicht" title heading */
|
|
1837
1876
|
title?: string;
|
|
1877
|
+
/** Provider image – wrapper and img */
|
|
1878
|
+
providerImage?: {
|
|
1879
|
+
wrapper?: string;
|
|
1880
|
+
img?: string;
|
|
1881
|
+
};
|
|
1838
1882
|
/** The add-to-cart CTA button */
|
|
1839
1883
|
ctaButton?: string;
|
|
1840
1884
|
};
|
|
@@ -1871,6 +1915,13 @@ export declare type PropositionSelectorProps = {
|
|
|
1871
1915
|
/** Target for the click-out URL on mobiel.nl
|
|
1872
1916
|
* @default 'cart' */
|
|
1873
1917
|
clickOutTarget?: 'cart' | 'checkout';
|
|
1918
|
+
/** Custom ReactNode content below the CTA card component
|
|
1919
|
+
*
|
|
1920
|
+
* @note Desktop: Content will be displayed below the CTA card component in the sidebar/second column
|
|
1921
|
+
* @note Mobile: Content will be displayed below the CTA card component at the bottom of the screen
|
|
1922
|
+
* @default null
|
|
1923
|
+
*/
|
|
1924
|
+
contentBelowCTA?: ReactNode;
|
|
1874
1925
|
/** Callback function to handle proposition key changes */
|
|
1875
1926
|
onPropositionKeyChange?: (propositionKey: string) => void;
|
|
1876
1927
|
/** Callback function to handle profile changes */
|
|
@@ -1993,6 +2044,8 @@ declare type RadioGroupClassNames = {
|
|
|
1993
2044
|
control?: string;
|
|
1994
2045
|
/** Description slot for the radio */
|
|
1995
2046
|
description?: string;
|
|
2047
|
+
/** Bundle Price component class styling slots - see type `BundlePriceClassNames` */
|
|
2048
|
+
bundlePrice?: BundlePriceClassNames;
|
|
1996
2049
|
};
|
|
1997
2050
|
};
|
|
1998
2051
|
|
|
@@ -2604,6 +2657,7 @@ export declare type Translations = {
|
|
|
2604
2657
|
productVersionTitle: string;
|
|
2605
2658
|
benefitsTitle: string;
|
|
2606
2659
|
bundleSelectorTitle: string;
|
|
2660
|
+
moreBundleInfo: string;
|
|
2607
2661
|
totalCostsOverviewTitle: string;
|
|
2608
2662
|
cta: string;
|
|
2609
2663
|
handsetCreditTitle: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobielnl/elements",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.24",
|
|
4
4
|
"description": "Mobiel.nl Elements - React component library for partner websites",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -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"
|