@mobielnl/elements 0.13.7 → 0.13.9

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/index.d.ts CHANGED
@@ -707,17 +707,18 @@ declare type GeneralClassNames = {
707
707
  } & SectionClassNames;
708
708
 
709
709
  export declare type GiftConfig = {
710
- /** Initial bundle set unit key used to find an available fixed proposition
711
- * @example '1636-11788' */
712
- initialBundleSetUnitKey: string;
713
- /** Optional fixed provider slug to narrow the gift proposition search to only one fixed provider
710
+ /** Optional gift bundle set unit key used to find the most popular available fixed proposition that includes this gift
711
+ * @example '1636-11788'
712
+ * @note When omitted, the most popular available fixed proposition at the address is used */
713
+ initialBundleSetUnitKey?: string;
714
+ /** Optional fixed provider slug to narrow the proposition search to only one fixed provider
714
715
  * @example 'odido' */
715
716
  fixedProviderSlug?: FixedProviderSlug;
716
717
  /** Locks customer benefit (klantvoordeel) to a single mobile provider. Skips the CombiDeal modal and
717
718
  * mobile provider picker. Yes/No only asks whether the visitor is already a mobile customer of this provider.
718
719
  * @example 'odido' */
719
720
  mobileProviderSlug?: MobileProviderSlug;
720
- /** Custom ReactNode content shown when no matching fixed proposition is found for the `initialBundleSetUnitKey` and address
721
+ /** Custom ReactNode content shown when no matching fixed proposition is found
721
722
  * @note This will override the default not found state */
722
723
  notFoundState?: ReactNode;
723
724
  };
@@ -1146,23 +1147,8 @@ declare type PostcodeCheckModalClassNames = {
1146
1147
  /** Input label styling */
1147
1148
  label?: string;
1148
1149
  };
1149
- /** Error alert message */
1150
- errorAlert?: {
1151
- /** Alert container */
1152
- base?: string;
1153
- /** Alert title text */
1154
- title?: string;
1155
- /** Alert description text */
1156
- description?: string;
1157
- /** Alert main content wrapper */
1158
- mainWrapper?: string;
1159
- /** Alert close button */
1160
- closeButton?: string;
1161
- /** Alert icon wrapper */
1162
- iconWrapper?: string;
1163
- /** Alert icon */
1164
- alertIcon?: string;
1165
- };
1150
+ /** Error alert message - see type `AlertClassNames` */
1151
+ errorAlert?: AlertClassNames;
1166
1152
  };
1167
1153
  /** Provider selection section */
1168
1154
  provider?: {
@@ -1911,7 +1897,7 @@ export declare type PropositionSelectorClassNames = {
1911
1897
  * @note only visible for fixed propositions with the same fixed provider in profile */
1912
1898
  sameFixedProviderAlert?: AlertClassNames;
1913
1899
  /** Alert class styling slots - see type `AlertClassNames`
1914
- * @note only visible when `giftConfig.initialBundleSetUnitKey` prop returns no matching fixed proposition for the address */
1900
+ * @note only visible when a `giftConfig` search returns no matching fixed proposition */
1915
1901
  noMatchingPropositionAlert?: AlertClassNames;
1916
1902
  /** ProductHeader class styling slots - see type `ProductHeaderClassNames` */
1917
1903
  productHeader?: ProductHeaderClassNames;
@@ -1952,6 +1938,29 @@ export declare type PropositionSelectorClassNames = {
1952
1938
  /** Section class styling slots - see type `SectionClassNames` */
1953
1939
  section?: SectionClassNames_2;
1954
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
+ };
1955
1964
  /** Retention section class styling slots - see type `SectionClassNames` */
1956
1965
  retentionSelector?: SectionClassNames_2 & {
1957
1966
  /** Radio group class styling slots - see type `RadioGroupClassNames` */
@@ -2270,12 +2279,14 @@ declare type RadioGroupClassNames = {
2270
2279
  declare type RequiredProps = {
2271
2280
  /** Initial proposition key
2272
2281
  * @example '1412-10116|1413-10646|plv-398'
2273
- * @note Required unless `giftConfig` is provided with a valid address in `initialProfile` */
2282
+ * @note Required unless `giftConfig` is provided */
2274
2283
  propositionKey: string;
2275
2284
  giftConfig?: never;
2276
2285
  } | {
2277
2286
  propositionKey?: never;
2278
- /** Configuration for pre-selected gift bundle set unit key and provider used to find an available fixed proposition
2287
+ /** Configuration used to find the most popular available fixed proposition.
2288
+ * Optionally include a gift unit key and/or an address in `initialProfile`.
2289
+ * Without an address, the Mobiel.nl service point (2266AD / 22) is used for the search for normal proposition results.
2279
2290
  * @note Cannot be used together with `propositionKey` prop. Only applicable for fixed propositions */
2280
2291
  giftConfig: GiftConfig;
2281
2292
  };
@@ -2901,6 +2912,9 @@ export declare type Translations = {
2901
2912
  sameFixedProviderDescription: string;
2902
2913
  noMatchingPropositionTitle: string;
2903
2914
  noMatchingPropositionDescription: string;
2915
+ postcodeCheckTitle: string;
2916
+ postcodeCheckDescription: string;
2917
+ postcodeCheckCTA: string;
2904
2918
  productVersionTitle: string;
2905
2919
  benefitsTitle: string;
2906
2920
  moreBundleInfo: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobielnl/elements",
3
- "version": "0.13.7",
3
+ "version": "0.13.9",
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.10",
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.10",
115
+ "vitest": "4.1.11",
116
116
  "zod": "^4.1.12"
117
117
  },
118
118
  "msw": {