@mobielnl/elements 0.13.9 → 0.13.11
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 +1 -1
- package/dist/elements.umd.cjs +79 -79
- package/dist/{index-PaKk_Mqj.js → index-CTZMUOCI.js} +5098 -5048
- package/dist/{index-BpFvGQnl.js → index-DfOu9ata.js} +1 -1
- package/dist/index.d.ts +30 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as ne, i as Ot, a as z, m as ie, r as $e, h as je, b as Ft, w as se, c as Te, d as Ce, e as qe, f as de, g as De, t as L, j as Rt, k as H, l as E, o as $, p as Kt, s as R, v as Lt, M as j, W as ze, q as xe, N as Et, u as Bt, x as Gt, y as Nt, z as Ht, K as Xe, A as _t, B as Ae, C as Wt, D as Ut, E as $t, F as jt, G as Ye, H as qt, I as zt, J as Xt, L as Pe, O as ke, P as Y, Q as Ie, R as Yt, V as Zt, S as Jt, T as Qt, U as en, X as tn, Y as nn, Z as Ze, _ as sn, $ as rn, a0 as on, a1 as an, a2 as cn, a3 as Je, a4 as Qe, a5 as et, a6 as tt, a7 as ln } from "./index-
|
|
2
|
+
import { n as ne, i as Ot, a as z, m as ie, r as $e, h as je, b as Ft, w as se, c as Te, d as Ce, e as qe, f as de, g as De, t as L, j as Rt, k as H, l as E, o as $, p as Kt, s as R, v as Lt, M as j, W as ze, q as xe, N as Et, u as Bt, x as Gt, y as Nt, z as Ht, K as Xe, A as _t, B as Ae, C as Wt, D as Ut, E as $t, F as jt, G as Ye, H as qt, I as zt, J as Xt, L as Pe, O as ke, P as Y, Q as Ie, R as Yt, V as Zt, S as Jt, T as Qt, U as en, X as tn, Y as nn, Z as Ze, _ as sn, $ as rn, a0 as on, a1 as an, a2 as cn, a3 as Je, a4 as Qe, a5 as et, a6 as tt, a7 as ln } from "./index-CTZMUOCI.js";
|
|
3
3
|
import { Fragment as un } from "react";
|
|
4
4
|
var It = typeof globalThis < "u" && globalThis.process ? globalThis.process : { env: { NODE_ENV: "production" } };
|
|
5
5
|
const re = (...t) => t.reduce((e, n) => (i) => n(e(i))), nt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -1883,7 +1883,7 @@ declare type PropositionOverviewClassNames = {
|
|
|
1883
1883
|
creditInfo?: CreditInfoClassNames_2;
|
|
1884
1884
|
};
|
|
1885
1885
|
|
|
1886
|
-
export declare function PropositionSelector({ propositionKey, giftConfig, classNames, initialProfile, onProfileChange, onPropositionKeyChange, onError, onAction, ...props }: PropositionSelectorProps): JSX.Element;
|
|
1886
|
+
export declare function PropositionSelector({ propositionKey, giftConfig, classNames, initialProfile, onProfileChange, onPropositionKeyChange, onError, onAction, filters, ...props }: PropositionSelectorProps): JSX.Element;
|
|
1887
1887
|
|
|
1888
1888
|
/**
|
|
1889
1889
|
* ClassNames for styling different parts of the `PropositionSelector` component
|
|
@@ -1996,6 +1996,24 @@ export declare type PropositionSelectorClassNames = {
|
|
|
1996
1996
|
};
|
|
1997
1997
|
};
|
|
1998
1998
|
|
|
1999
|
+
export declare type PropositionSelectorFilters = {
|
|
2000
|
+
/** Allowed contract terms in months. Omitted = all terms from the API.
|
|
2001
|
+
* @example [24] */
|
|
2002
|
+
contractTerms?: number[];
|
|
2003
|
+
/**
|
|
2004
|
+
* Minimum download speed in Mbit/s for fixed internet options.
|
|
2005
|
+
* @example { min: 400 }
|
|
2006
|
+
*/
|
|
2007
|
+
fixedInternetDataSpeedDown?: {
|
|
2008
|
+
min: number;
|
|
2009
|
+
};
|
|
2010
|
+
/**
|
|
2011
|
+
* Hide bundle options by exact `name` or `label`.
|
|
2012
|
+
* @example ['Eerste maanden korting']
|
|
2013
|
+
*/
|
|
2014
|
+
hiddenBundleSets?: string[];
|
|
2015
|
+
};
|
|
2016
|
+
|
|
1999
2017
|
export declare type PropositionSelectorProps = RequiredProps & {
|
|
2000
2018
|
/** Class slots for styling */
|
|
2001
2019
|
classNames?: PropositionSelectorClassNames;
|
|
@@ -2025,6 +2043,17 @@ export declare type PropositionSelectorProps = RequiredProps & {
|
|
|
2025
2043
|
*
|
|
2026
2044
|
* @example collapsibleBundleTypeSets={['Kies je welkomstcadeau']} */
|
|
2027
2045
|
collapsibleBundleTypeSets?: string[];
|
|
2046
|
+
/**
|
|
2047
|
+
* Restrict which contract terms, internet speeds, and bundle options are offered in the selector.
|
|
2048
|
+
*
|
|
2049
|
+
* @example
|
|
2050
|
+
* filters={{
|
|
2051
|
+
* contractTerms: [24],
|
|
2052
|
+
* fixedInternetDataSpeedDown: { min: 400 },
|
|
2053
|
+
* hiddenBundleSets: ['Eerste maanden korting'],
|
|
2054
|
+
* }}
|
|
2055
|
+
*/
|
|
2056
|
+
filters?: PropositionSelectorFilters;
|
|
2028
2057
|
/** Callback function to handle proposition key changes */
|
|
2029
2058
|
onPropositionKeyChange?: (propositionKey: string) => void;
|
|
2030
2059
|
/** Callback function to handle profile changes */
|