@mobielnl/elements 0.12.9 → 0.12.10
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.js +4 -3
- package/dist/elements.umd.cjs +422 -108
- package/dist/{index-DbVXxL82.js → index-Cbak1rDD.js} +22695 -17212
- package/dist/{index-BomnOT_0.js → index-Cfu89JTt.js} +1 -1
- package/dist/index.d.ts +91 -0
- package/package.json +1 -1
|
@@ -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-Cbak1rDD.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
|
@@ -276,6 +276,11 @@ declare type DetailsModalClassNames = {
|
|
|
276
276
|
costOverview?: CostOverviewClassNames;
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
+
export declare type DetailsModalState = {
|
|
280
|
+
proposition: ProductCardPropositionFragment;
|
|
281
|
+
tab: DetailsModalTab;
|
|
282
|
+
};
|
|
283
|
+
|
|
279
284
|
declare type DetailsModalTab = 'general' | 'conditions' | 'channels' | 'costs';
|
|
280
285
|
|
|
281
286
|
/** Event fired when proposition details are viewed */
|
|
@@ -508,6 +513,43 @@ declare type GeneralClassNames = {
|
|
|
508
513
|
base?: string;
|
|
509
514
|
} & SectionClassNames;
|
|
510
515
|
|
|
516
|
+
/**
|
|
517
|
+
* ClassNames for styling different parts of the `HandsetCreditSelector` component
|
|
518
|
+
*/
|
|
519
|
+
declare type HandsetCreditSelectorClassNames = {
|
|
520
|
+
/** Root container */
|
|
521
|
+
base?: string;
|
|
522
|
+
/** Row containing the one-time and monthly fee display */
|
|
523
|
+
priceRow?: string;
|
|
524
|
+
/** One-time fee label */
|
|
525
|
+
oneTimeLabel?: string;
|
|
526
|
+
/** One-time fee value */
|
|
527
|
+
oneTimeValue?: string;
|
|
528
|
+
/** Monthly fee label */
|
|
529
|
+
monthlyLabel?: string;
|
|
530
|
+
/** Monthly fee value */
|
|
531
|
+
monthlyValue?: string;
|
|
532
|
+
/** Row containing the slider and buttons */
|
|
533
|
+
sliderRow?: string;
|
|
534
|
+
/** Decrement button */
|
|
535
|
+
decrementButton?: string;
|
|
536
|
+
/** Increment button */
|
|
537
|
+
incrementButton?: string;
|
|
538
|
+
/** Slider component class styling slots - matches HeroUI Slider classNames */
|
|
539
|
+
slider?: {
|
|
540
|
+
/** Represents individual steps or intervals on the Slider */
|
|
541
|
+
step?: string;
|
|
542
|
+
/** The base bar of the Slider, along which the thumb moves */
|
|
543
|
+
track?: string;
|
|
544
|
+
/** A visual representation of the selected value */
|
|
545
|
+
filler?: string;
|
|
546
|
+
/** The interactive element that users drag along the track */
|
|
547
|
+
thumb?: string;
|
|
548
|
+
};
|
|
549
|
+
/** Credit check info text */
|
|
550
|
+
creditCheckText?: string;
|
|
551
|
+
};
|
|
552
|
+
|
|
511
553
|
/**
|
|
512
554
|
* ClassNames for styling the `Label` component within `PropositionCard`
|
|
513
555
|
*/
|
|
@@ -1160,6 +1202,26 @@ declare type ProductCardPropositionFragment = {
|
|
|
1160
1202
|
|
|
1161
1203
|
export declare type ProductCategory = 'sim-only-proposition' | 'fixed-proposition' | 'smartphone-proposition' | 'smartphone-proposition-extended';
|
|
1162
1204
|
|
|
1205
|
+
/** ClassNames for styling the `ProductHeader` component */
|
|
1206
|
+
declare type ProductHeaderClassNames = {
|
|
1207
|
+
/** Wrapper container for the product header */
|
|
1208
|
+
base?: string;
|
|
1209
|
+
/** Product image (smartphone) – wrapper and img */
|
|
1210
|
+
productImage?: {
|
|
1211
|
+
wrapper?: string;
|
|
1212
|
+
img?: string;
|
|
1213
|
+
};
|
|
1214
|
+
/** Provider image (fixed/sim-only) – wrapper and img */
|
|
1215
|
+
providerImage?: {
|
|
1216
|
+
wrapper?: string;
|
|
1217
|
+
img?: string;
|
|
1218
|
+
};
|
|
1219
|
+
/** Stock status indicator – see ProductStockStatus */
|
|
1220
|
+
productStockStatus?: NonNullable<MainImageClassNames['phoneImage']>['stockIndicator'];
|
|
1221
|
+
/** Proposition header class styling slots */
|
|
1222
|
+
propositionHeader?: PropositionHeaderClassNames;
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1163
1225
|
export declare function ProductResults({ classNames, initialSelectedFilters, initialProfile, onProfileChange, onError, onAction, ...props }: ProductResultsProps): JSX.Element;
|
|
1164
1226
|
|
|
1165
1227
|
/**
|
|
@@ -1538,6 +1600,35 @@ declare type PropositionOverviewClassNames = {
|
|
|
1538
1600
|
creditInfo?: CreditInfoClassNames_2;
|
|
1539
1601
|
};
|
|
1540
1602
|
|
|
1603
|
+
export declare function PropositionSelector({ propositionKey, classNames, initialProfile, onProfileChange, onError, ...props }: PropositionSelectorProps): JSX.Element;
|
|
1604
|
+
|
|
1605
|
+
export declare type PropositionSelectorClassNames = {
|
|
1606
|
+
base?: string;
|
|
1607
|
+
/** HandsetCreditSelector component class styling slots */
|
|
1608
|
+
handsetCreditSelector?: HandsetCreditSelectorClassNames;
|
|
1609
|
+
/** ProductHeader class styling slots (base, productImage, providerImage, productStockStatus, propositionHeader) */
|
|
1610
|
+
productHeader?: ProductHeaderClassNames;
|
|
1611
|
+
};
|
|
1612
|
+
|
|
1613
|
+
export declare type PropositionSelectorProps = {
|
|
1614
|
+
/** Initial proposition key
|
|
1615
|
+
* @example
|
|
1616
|
+
* '1412-10116|1413-10646|plv-398' */
|
|
1617
|
+
propositionKey: string;
|
|
1618
|
+
/** Class slots for styling */
|
|
1619
|
+
classNames?: PropositionSelectorClassNames;
|
|
1620
|
+
/** Initial user profile */
|
|
1621
|
+
initialProfile?: Partial<Profile>;
|
|
1622
|
+
/** Callback function to handle profile changes */
|
|
1623
|
+
onProfileChange?: (profile: Partial<Profile>) => void;
|
|
1624
|
+
/** Callback function to add search params for the click-out URL */
|
|
1625
|
+
addClickoutSearchParams?: (searchParams: URLSearchParams) => URLSearchParams;
|
|
1626
|
+
/** Callback function called when an error occurs */
|
|
1627
|
+
onError?: (error: Error) => void;
|
|
1628
|
+
/** Callback function to handle return click */
|
|
1629
|
+
onReturnClick?: () => void;
|
|
1630
|
+
};
|
|
1631
|
+
|
|
1541
1632
|
export declare type ProviderOption = {
|
|
1542
1633
|
slug: string;
|
|
1543
1634
|
name: string;
|