@mobielnl/elements 0.13.16 → 0.13.17
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 +98 -96
- package/dist/{index-Cqq4EpkI.js → index-BD-rBtRq.js} +6526 -6487
- package/dist/{index-B6jjXGby.js → index-CkZqyY86.js} +1 -1
- package/dist/index.d.ts +23 -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-BD-rBtRq.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
|
@@ -718,6 +718,10 @@ export declare type GiftConfig = {
|
|
|
718
718
|
* mobile provider picker. Yes/No only asks whether the visitor is already a mobile customer of this provider.
|
|
719
719
|
* @example 'odido' */
|
|
720
720
|
mobileProviderSlug?: MobileProviderSlug;
|
|
721
|
+
/** Modification block scopes that always apply to this inflow, on top of the blocks from the profile.
|
|
722
|
+
* They are not stored in the profile, so they only apply within this `PropositionSelector`
|
|
723
|
+
* @example ['segment/odido/odidocadeau'] */
|
|
724
|
+
modificationBlocks?: string[];
|
|
721
725
|
/** Custom ReactNode content shown when no matching fixed proposition is found
|
|
722
726
|
* @note This will override the default not found state */
|
|
723
727
|
notFoundState?: ReactNode;
|
|
@@ -2012,6 +2016,19 @@ export declare type PropositionSelectorClassNames = {
|
|
|
2012
2016
|
};
|
|
2013
2017
|
};
|
|
2014
2018
|
|
|
2019
|
+
export declare type PropositionSelectorContentSlots = {
|
|
2020
|
+
sidebarCard?: {
|
|
2021
|
+
/** Custom content below the CTA card in the sidebar (desktop) or at the bottom (mobile). */
|
|
2022
|
+
after?: ReactNode;
|
|
2023
|
+
ctaButton?: {
|
|
2024
|
+
/** Custom content directly before the main order button, outside its clickable area. */
|
|
2025
|
+
before?: ReactNode;
|
|
2026
|
+
/** Custom content directly after the main order button, outside its clickable area. */
|
|
2027
|
+
after?: ReactNode;
|
|
2028
|
+
};
|
|
2029
|
+
};
|
|
2030
|
+
};
|
|
2031
|
+
|
|
2015
2032
|
export declare type PropositionSelectorFilters = {
|
|
2016
2033
|
/** Allowed contract terms in months. Omitted = all terms from the API.
|
|
2017
2034
|
* @example [24] */
|
|
@@ -2041,13 +2058,18 @@ export declare type PropositionSelectorProps = RequiredProps & {
|
|
|
2041
2058
|
clickOutTarget?: 'cart' | 'upsell' | 'checkout';
|
|
2042
2059
|
/** Custom loading UI ReactNode content shown during postcode check, proposition search and data fetch */
|
|
2043
2060
|
loadingState?: ReactNode;
|
|
2044
|
-
/**
|
|
2061
|
+
/**
|
|
2062
|
+
* Custom ReactNode content below the CTA card component.
|
|
2063
|
+
*
|
|
2064
|
+
* @deprecated Use `contentSlots.sidebarCard.after` instead. Will be removed in version 0.14.0.
|
|
2045
2065
|
*
|
|
2046
2066
|
* @note Desktop: Content will be displayed below the CTA card component in the sidebar/second column
|
|
2047
2067
|
* @note Mobile: Content will be displayed below the CTA card component at the bottom of the screen
|
|
2048
2068
|
* @default null
|
|
2049
2069
|
*/
|
|
2050
2070
|
contentBelowCTA?: ReactNode;
|
|
2071
|
+
/** Optional custom content around the main order button and CTA card. */
|
|
2072
|
+
contentSlots?: PropositionSelectorContentSlots;
|
|
2051
2073
|
/** Boolean to hide number retention question when profile if filled. Does not apply to fixed propositions */
|
|
2052
2074
|
hideRetentionOnFilledProfile?: boolean;
|
|
2053
2075
|
/**
|