@mobielnl/elements 0.12.13 → 0.12.15

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.
@@ -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-D9WG7ZWU.js";
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-CM45x7Oj.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
@@ -274,6 +274,26 @@ declare type CombiDealModalClassNames = {
274
274
  submitButton?: string;
275
275
  };
276
276
 
277
+ declare type ContentModalClassNames = {
278
+ /** The backdrop slot, it is displayed behind the modal */
279
+ backdrop?: string;
280
+ /** The wrapper slot of the modal. It wraps the base and the backdrop slots */
281
+ wrapper?: string;
282
+ /** The main slot of the modal content */
283
+ base?: string;
284
+ /** The header of the modal, it is displayed at the top of the modal */
285
+ header?: string;
286
+ /** The body of the modal, it is displayed in the middle of the modal */
287
+ body?: string;
288
+ /** The footer of the modal, it is displayed at the bottom of the modal */
289
+ footer?: string;
290
+ /** The close button (X) of the modal in top-right corner */
291
+ closeButton?: string;
292
+ /** The primary button of the modal, it is displayed at the bottom of the modal
293
+ * @example "Sluiten" */
294
+ primaryButton?: string;
295
+ };
296
+
277
297
  declare type CostOverviewClassNames = {
278
298
  /** The base container of the cost overview */
279
299
  base?: string;
@@ -1774,7 +1794,7 @@ declare type PropositionOverviewClassNames = {
1774
1794
  creditInfo?: CreditInfoClassNames_2;
1775
1795
  };
1776
1796
 
1777
- export declare function PropositionSelector({ propositionKey, classNames, initialProfile, onProfileChange, onError, onAction, ...props }: PropositionSelectorProps): JSX.Element;
1797
+ export declare function PropositionSelector({ propositionKey, classNames, initialProfile, onProfileChange, onPropositionKeyChange, onError, onAction, ...props }: PropositionSelectorProps): JSX.Element;
1778
1798
 
1779
1799
  /**
1780
1800
  * ClassNames for styling different parts of the `PropositionSelector` component
@@ -1828,6 +1848,8 @@ export declare type PropositionSelectorClassNames = {
1828
1848
  results?: {
1829
1849
  /** Details modal class styling slots - see type `DetailsModalClassNames` */
1830
1850
  detailsModal?: DetailsModalClassNames;
1851
+ /** Content modal class styling slots - see type `ContentModalClassNames` */
1852
+ contentModal?: ContentModalClassNames;
1831
1853
  /** Credit info class styling slots - see type `CreditInfoClassNames` */
1832
1854
  creditInfo?: CreditInfoClassNames_2;
1833
1855
  };
@@ -1845,6 +1867,8 @@ export declare type PropositionSelectorProps = {
1845
1867
  /** Target for the click-out URL on mobiel.nl
1846
1868
  * @default 'cart' */
1847
1869
  clickOutTarget?: 'cart' | 'checkout';
1870
+ /** Callback function to handle proposition key changes */
1871
+ onPropositionKeyChange?: (propositionKey: string) => void;
1848
1872
  /** Callback function to handle profile changes */
1849
1873
  onProfileChange?: (profile: Partial<Profile>) => void;
1850
1874
  /** Callback function to add search params for the click-out URL */
@@ -1982,6 +2006,8 @@ declare type ResultsClassNames = {
1982
2006
  postcodeCheckLoading?: PostcodeCheckLoadingClassNames;
1983
2007
  /** Details modal class styling slots - see type `DetailsModalClassNames` */
1984
2008
  detailsModal?: DetailsModalClassNames;
2009
+ /** Content modal class styling slots - see type `ContentModalClassNames` */
2010
+ contentModal?: ContentModalClassNames;
1985
2011
  };
1986
2012
 
1987
2013
  declare type ResultsNotFoundClassNames = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobielnl/elements",
3
- "version": "0.12.13",
3
+ "version": "0.12.15",
4
4
  "description": "Mobiel.nl Elements - React component library for partner websites",
5
5
  "private": false,
6
6
  "type": "module",
@@ -48,6 +48,7 @@
48
48
  "@graphql-codegen/typescript": "^4.1.2",
49
49
  "@graphql-codegen/typescript-graphql-request": "^6.2.0",
50
50
  "@graphql-codegen/typescript-operations": "^4.4.0",
51
+ "@heroui/accordion": "^2.2.29",
51
52
  "@heroui/alert": "^2.2.29",
52
53
  "@heroui/avatar": "^2.2.24",
53
54
  "@heroui/badge": "^2.2.18",
@@ -93,6 +94,7 @@
93
94
  "i18next": "^25.7.3",
94
95
  "js-cookie": "^3.0.5",
95
96
  "lodash": "^4.18.1",
97
+ "markdown-to-jsx": "^9.7.15",
96
98
  "msw": "^2.12.7",
97
99
  "msw-storybook-addon": "^2.0.6",
98
100
  "postcss-prefix-selector": "^2.1.1",