@mobielnl/elements 0.13.8 → 0.13.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 +1 -1
- package/dist/elements.umd.cjs +127 -127
- package/dist/{index-CIPNe-KD.js → index-7r5HfQfH.js} +1 -1
- package/dist/{index-CilzxGog.js → index-CrJ3n4D8.js} +11309 -11060
- package/dist/index.d.ts +58 -18
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1147,23 +1147,8 @@ declare type PostcodeCheckModalClassNames = {
|
|
|
1147
1147
|
/** Input label styling */
|
|
1148
1148
|
label?: string;
|
|
1149
1149
|
};
|
|
1150
|
-
/** Error alert message */
|
|
1151
|
-
errorAlert?:
|
|
1152
|
-
/** Alert container */
|
|
1153
|
-
base?: string;
|
|
1154
|
-
/** Alert title text */
|
|
1155
|
-
title?: string;
|
|
1156
|
-
/** Alert description text */
|
|
1157
|
-
description?: string;
|
|
1158
|
-
/** Alert main content wrapper */
|
|
1159
|
-
mainWrapper?: string;
|
|
1160
|
-
/** Alert close button */
|
|
1161
|
-
closeButton?: string;
|
|
1162
|
-
/** Alert icon wrapper */
|
|
1163
|
-
iconWrapper?: string;
|
|
1164
|
-
/** Alert icon */
|
|
1165
|
-
alertIcon?: string;
|
|
1166
|
-
};
|
|
1150
|
+
/** Error alert message - see type `AlertClassNames` */
|
|
1151
|
+
errorAlert?: AlertClassNames;
|
|
1167
1152
|
};
|
|
1168
1153
|
/** Provider selection section */
|
|
1169
1154
|
provider?: {
|
|
@@ -1898,7 +1883,7 @@ declare type PropositionOverviewClassNames = {
|
|
|
1898
1883
|
creditInfo?: CreditInfoClassNames_2;
|
|
1899
1884
|
};
|
|
1900
1885
|
|
|
1901
|
-
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;
|
|
1902
1887
|
|
|
1903
1888
|
/**
|
|
1904
1889
|
* ClassNames for styling different parts of the `PropositionSelector` component
|
|
@@ -1953,6 +1938,29 @@ export declare type PropositionSelectorClassNames = {
|
|
|
1953
1938
|
/** Section class styling slots - see type `SectionClassNames` */
|
|
1954
1939
|
section?: SectionClassNames_2;
|
|
1955
1940
|
};
|
|
1941
|
+
/** Postcode check form component class styling slots */
|
|
1942
|
+
postcodeCheckForm?: {
|
|
1943
|
+
/** Section class styling slots - see type `SectionClassNames` */
|
|
1944
|
+
section?: SectionClassNames_2;
|
|
1945
|
+
/** Form element container */
|
|
1946
|
+
container?: string;
|
|
1947
|
+
/** Container for postcode, number, and numberAddon inputs */
|
|
1948
|
+
inputsContainer?: string;
|
|
1949
|
+
/** Input field styling slots */
|
|
1950
|
+
input?: {
|
|
1951
|
+
/** Input wrapper styling */
|
|
1952
|
+
inputWrapper?: string;
|
|
1953
|
+
/** Input element styling */
|
|
1954
|
+
input?: string;
|
|
1955
|
+
/** Input label styling */
|
|
1956
|
+
label?: string;
|
|
1957
|
+
};
|
|
1958
|
+
/** Error alert message - see type `AlertClassNames` */
|
|
1959
|
+
errorAlert?: AlertClassNames;
|
|
1960
|
+
/** CTA button styling
|
|
1961
|
+
* @example "Controleer aanbod" */
|
|
1962
|
+
ctaButton?: string;
|
|
1963
|
+
};
|
|
1956
1964
|
/** Retention section class styling slots - see type `SectionClassNames` */
|
|
1957
1965
|
retentionSelector?: SectionClassNames_2 & {
|
|
1958
1966
|
/** Radio group class styling slots - see type `RadioGroupClassNames` */
|
|
@@ -1988,6 +1996,24 @@ export declare type PropositionSelectorClassNames = {
|
|
|
1988
1996
|
};
|
|
1989
1997
|
};
|
|
1990
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
|
+
|
|
1991
2017
|
export declare type PropositionSelectorProps = RequiredProps & {
|
|
1992
2018
|
/** Class slots for styling */
|
|
1993
2019
|
classNames?: PropositionSelectorClassNames;
|
|
@@ -2017,6 +2043,17 @@ export declare type PropositionSelectorProps = RequiredProps & {
|
|
|
2017
2043
|
*
|
|
2018
2044
|
* @example collapsibleBundleTypeSets={['Kies je welkomstcadeau']} */
|
|
2019
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;
|
|
2020
2057
|
/** Callback function to handle proposition key changes */
|
|
2021
2058
|
onPropositionKeyChange?: (propositionKey: string) => void;
|
|
2022
2059
|
/** Callback function to handle profile changes */
|
|
@@ -2904,6 +2941,9 @@ export declare type Translations = {
|
|
|
2904
2941
|
sameFixedProviderDescription: string;
|
|
2905
2942
|
noMatchingPropositionTitle: string;
|
|
2906
2943
|
noMatchingPropositionDescription: string;
|
|
2944
|
+
postcodeCheckTitle: string;
|
|
2945
|
+
postcodeCheckDescription: string;
|
|
2946
|
+
postcodeCheckCTA: string;
|
|
2907
2947
|
productVersionTitle: string;
|
|
2908
2948
|
benefitsTitle: string;
|
|
2909
2949
|
moreBundleInfo: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobielnl/elements",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.10",
|
|
4
4
|
"description": "Mobiel.nl Elements - React component library for partner websites",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@types/react": "^19.2.9",
|
|
87
87
|
"@types/react-dom": "^19.2.3",
|
|
88
88
|
"@vitejs/plugin-react-swc": "^4.0.0",
|
|
89
|
-
"@vitest/coverage-v8": "4.1.
|
|
89
|
+
"@vitest/coverage-v8": "4.1.11",
|
|
90
90
|
"chromatic": "^13.3.5",
|
|
91
91
|
"cross-env": "^7.0.3",
|
|
92
92
|
"dotenv": "^17.4.2",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"typescript": "~5.8.3",
|
|
113
113
|
"vite": "7.3.5",
|
|
114
114
|
"vite-plugin-dts": "^4.5.0",
|
|
115
|
-
"vitest": "4.1.
|
|
115
|
+
"vitest": "4.1.11",
|
|
116
116
|
"zod": "^4.1.12"
|
|
117
117
|
},
|
|
118
118
|
"msw": {
|