@propeller-commerce/propeller-v2-react-ui 0.16.0 → 0.19.0
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/CHANGELOG.md +142 -9
- package/README.md +17 -5
- package/dist/index.cjs +432 -287
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +150 -8
- package/dist/index.d.ts +150 -8
- package/dist/index.js +434 -289
- package/dist/index.js.map +1 -1
- package/dist/pure.cjs +30 -23
- package/dist/pure.cjs.map +1 -1
- package/dist/pure.d.cts +38 -1
- package/dist/pure.d.ts +38 -1
- package/dist/pure.js +31 -24
- package/dist/pure.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -555,7 +555,7 @@ interface AddItemOptions {
|
|
|
555
555
|
onAddToCart?: (product: Product, clusterId?: number, quantity?: number, childItems?: {
|
|
556
556
|
productId: number;
|
|
557
557
|
quantity: number;
|
|
558
|
-
}[], notes?: string, price?: number) => Cart
|
|
558
|
+
}[], notes?: string, price?: number) => Cart | Promise<Cart>;
|
|
559
559
|
/** Fires after the item is added — receives the updated cart and the matched line item. */
|
|
560
560
|
afterAddToCart?: (cart: Cart, item: CartMainItem | null) => void;
|
|
561
561
|
/** When `true`, rejects the add if `product.inventory.totalQuantity` is below `quantity`. */
|
|
@@ -597,6 +597,15 @@ interface UseCartReturn {
|
|
|
597
597
|
cart: Cart;
|
|
598
598
|
item: CartMainItem | null;
|
|
599
599
|
}, string>>;
|
|
600
|
+
/**
|
|
601
|
+
* Adds several products in one call, sequentially, threading the resolved
|
|
602
|
+
* cart id from each add into the next. Use this instead of looping over
|
|
603
|
+
* `addItem` yourself. Stops at the first failure and returns that error.
|
|
604
|
+
*/
|
|
605
|
+
addItems: (items: AddItemOptions[]) => Promise<Result<{
|
|
606
|
+
cart: Cart;
|
|
607
|
+
items: (CartMainItem | null)[];
|
|
608
|
+
}, string>>;
|
|
600
609
|
/** Updates a line item's quantity. */
|
|
601
610
|
updateItemQuantity: (cartItemId: string, quantity: number) => Promise<Cart | undefined>;
|
|
602
611
|
/** Debounced update of a line item's notes (`debounceMs` defaults to 500). */
|
|
@@ -894,6 +903,13 @@ interface FavoriteListFormData {
|
|
|
894
903
|
isDefault: boolean;
|
|
895
904
|
}
|
|
896
905
|
/** Options for {@link useFavorites}. */
|
|
906
|
+
/** What a favorite-list mutation did — see `onListChanged`. */
|
|
907
|
+
interface FavoriteListChange {
|
|
908
|
+
action: 'created' | 'updated' | 'deleted';
|
|
909
|
+
listId?: string | number;
|
|
910
|
+
name?: string;
|
|
911
|
+
isDefault?: boolean;
|
|
912
|
+
}
|
|
897
913
|
interface UseFavoritesOptions {
|
|
898
914
|
/** GraphQL client the hook derives its Services bundle from. */
|
|
899
915
|
graphqlClient: GraphQLClient;
|
|
@@ -908,7 +924,15 @@ interface UseFavoritesOptions {
|
|
|
908
924
|
/** Override: fires instead of the default `deleteFavoriteList` call. */
|
|
909
925
|
onDelete?: (id: string) => void;
|
|
910
926
|
/** Fires after any list create / update / delete completes. */
|
|
911
|
-
|
|
927
|
+
/**
|
|
928
|
+
* Called after a list mutation succeeds.
|
|
929
|
+
*
|
|
930
|
+
* The `change` argument is optional so existing zero-argument callbacks keep
|
|
931
|
+
* working, but without it a host cannot tell a create from a delete — which
|
|
932
|
+
* makes the hook useless for analytics, audit trails or optimistic UI that
|
|
933
|
+
* needs to know WHAT happened rather than merely THAT something did.
|
|
934
|
+
*/
|
|
935
|
+
onListChanged?: (change?: FavoriteListChange) => void;
|
|
912
936
|
}
|
|
913
937
|
/** State and favorite-list actions returned by {@link useFavorites}. */
|
|
914
938
|
interface UseFavoritesReturn {
|
|
@@ -1412,6 +1436,9 @@ interface UseProductSearchOptions {
|
|
|
1412
1436
|
/** Portal configuration: base category fallback plus image filters. */
|
|
1413
1437
|
configuration: {
|
|
1414
1438
|
baseCategoryId?: number;
|
|
1439
|
+
/** The channel's anonymous user, seeded by the host. Scopes logged-out
|
|
1440
|
+
* listings exactly like the SSR seed does. */
|
|
1441
|
+
anonymousUserId?: number;
|
|
1415
1442
|
imageSearchFiltersGrid?: MediaImageProductSearchInput;
|
|
1416
1443
|
imageVariantFiltersMedium?: TransformationsInput;
|
|
1417
1444
|
};
|
|
@@ -1547,6 +1574,9 @@ interface UseQuickOrderOptions {
|
|
|
1547
1574
|
imageVariantFiltersSmall?: TransformationsInput;
|
|
1548
1575
|
/** Catalog root. Without it the search returns nothing — see `searchProducts`. */
|
|
1549
1576
|
baseCategoryId?: number;
|
|
1577
|
+
/** The channel's anonymous user, seeded by the host. Scopes logged-out
|
|
1578
|
+
* listings exactly like the SSR seed does. */
|
|
1579
|
+
anonymousUserId?: number;
|
|
1550
1580
|
};
|
|
1551
1581
|
/** Fires when `submit` creates a fresh cart — persist the cart id. */
|
|
1552
1582
|
onCartCreated?: (cart: Cart) => void;
|
|
@@ -1659,6 +1689,9 @@ interface UseSparePartsOptions {
|
|
|
1659
1689
|
pageSize?: number;
|
|
1660
1690
|
/** Image filter config, mirroring `useProductSearch`'s `configuration`. */
|
|
1661
1691
|
configuration?: {
|
|
1692
|
+
/** The channel's anonymous user, seeded by the host. Scopes logged-out
|
|
1693
|
+
* listings exactly like the SSR seed does. */
|
|
1694
|
+
anonymousUserId?: number;
|
|
1662
1695
|
imageSearchFiltersGrid?: unknown;
|
|
1663
1696
|
imageVariantFiltersMedium?: unknown;
|
|
1664
1697
|
};
|
|
@@ -1773,6 +1806,9 @@ interface UseProductSliderOptions {
|
|
|
1773
1806
|
companyId?: number;
|
|
1774
1807
|
/** Portal configuration: image search/variant filters. */
|
|
1775
1808
|
configuration?: {
|
|
1809
|
+
/** The channel's anonymous user, seeded by the host. Scopes logged-out
|
|
1810
|
+
* listings exactly like the SSR seed does. */
|
|
1811
|
+
anonymousUserId?: number;
|
|
1776
1812
|
imageSearchFiltersGrid?: MediaImageProductSearchInput;
|
|
1777
1813
|
imageVariantFiltersMedium?: TransformationsInput;
|
|
1778
1814
|
};
|
|
@@ -2673,7 +2709,7 @@ interface AddToCartProps {
|
|
|
2673
2709
|
* Callback to handle adding the product to cart.
|
|
2674
2710
|
* If not provided the component calls CartService.addItemToCart internally.
|
|
2675
2711
|
*/
|
|
2676
|
-
onAddToCart?: (product: Product, clusterId?: number, quantity?: number, childItems?: CartChildItemInput[], notes?: string, price?: number, showModal?: boolean) => Cart
|
|
2712
|
+
onAddToCart?: (product: Product, clusterId?: number, quantity?: number, childItems?: CartChildItemInput[], notes?: string, price?: number, showModal?: boolean) => Cart | Promise<Cart>;
|
|
2677
2713
|
/**
|
|
2678
2714
|
* Callback triggered after adding the product to cart.
|
|
2679
2715
|
*/
|
|
@@ -2698,6 +2734,11 @@ interface AddToCartProps {
|
|
|
2698
2734
|
language?: string;
|
|
2699
2735
|
/** Additional CSS class for the root element */
|
|
2700
2736
|
className?: string;
|
|
2737
|
+
/**
|
|
2738
|
+
* Labels for the bonus-items block in the success modal.
|
|
2739
|
+
* Keys: `title` ('Bonus items'), `sku` ('SKU').
|
|
2740
|
+
*/
|
|
2741
|
+
bonusItemsLabels?: Record<string, string>;
|
|
2701
2742
|
/** Callback fired when the "Proceed to checkout" modal button is clicked */
|
|
2702
2743
|
onProceedToCheckout?: () => void;
|
|
2703
2744
|
/** Callback fired when the "Request a Quote" modal button is clicked */
|
|
@@ -2779,6 +2820,13 @@ interface AddToCartEvents {
|
|
|
2779
2820
|
declare function AddToCart(rawProps: AddToCartProps): React$1.JSX.Element;
|
|
2780
2821
|
declare const _default$1: React$1.MemoExoticComponent<typeof AddToCart>;
|
|
2781
2822
|
|
|
2823
|
+
/** Which way the favorite toggle went — see `onFavoriteChanged`. */
|
|
2824
|
+
interface FavoriteChange {
|
|
2825
|
+
action: 'added' | 'removed';
|
|
2826
|
+
listId?: string | number;
|
|
2827
|
+
productId?: number;
|
|
2828
|
+
clusterId?: number;
|
|
2829
|
+
}
|
|
2782
2830
|
interface AddToFavoriteProps {
|
|
2783
2831
|
/** The initialized GraphQL Client instance. Resolved from PropellerProvider when omitted. */
|
|
2784
2832
|
graphqlClient?: GraphQLClient;
|
|
@@ -2793,7 +2841,15 @@ interface AddToFavoriteProps {
|
|
|
2793
2841
|
/** UI string overrides */
|
|
2794
2842
|
labels?: Record<string, string>;
|
|
2795
2843
|
/** Called after a favorite list mutation (add/remove) succeeds */
|
|
2796
|
-
|
|
2844
|
+
/**
|
|
2845
|
+
* Called after the favorite toggle succeeds, with which way it went.
|
|
2846
|
+
*
|
|
2847
|
+
* The argument is optional so existing zero-argument callbacks keep working.
|
|
2848
|
+
* Without it an add and a removal are indistinguishable, so a host cannot
|
|
2849
|
+
* report "added to wishlist" without inventing the direction — and a
|
|
2850
|
+
* wishlist metric that also counts removals is worse than none.
|
|
2851
|
+
*/
|
|
2852
|
+
onFavoriteChanged?: (change?: FavoriteChange) => void;
|
|
2797
2853
|
}
|
|
2798
2854
|
/**
|
|
2799
2855
|
* Favorite toggle button for a product or cluster: opens a modal to add the
|
|
@@ -3085,6 +3141,12 @@ declare function CartBonusItems(rawProps: CartBonusItemsProps): React$1.JSX.Elem
|
|
|
3085
3141
|
*/
|
|
3086
3142
|
|
|
3087
3143
|
interface CartCarriersProps {
|
|
3144
|
+
/**
|
|
3145
|
+
* Storefront language ('EN', 'NL', …). Decides the number format prices are
|
|
3146
|
+
* rendered in — without it they fall back to Dutch separators regardless of
|
|
3147
|
+
* the language the shopper is reading.
|
|
3148
|
+
*/
|
|
3149
|
+
language?: string;
|
|
3088
3150
|
/** Shopping cart object from which the carriers will be displayed */
|
|
3089
3151
|
cart: Cart;
|
|
3090
3152
|
/** The CSS class for the carriers container */
|
|
@@ -3326,7 +3388,8 @@ interface CartIconAndSidebarProps {
|
|
|
3326
3388
|
/**
|
|
3327
3389
|
* Labels for the component.
|
|
3328
3390
|
* Available keys: cartIconLabel, totalLabel, itemsLabel, emptyCart,
|
|
3329
|
-
* continueShopping, qty, total, checkoutButton, cartPageButton,
|
|
3391
|
+
* continueShopping, qty, total, totalExclVat, checkoutButton, cartPageButton,
|
|
3392
|
+
* closeLabel
|
|
3330
3393
|
*/
|
|
3331
3394
|
labels?: Record<string, string>;
|
|
3332
3395
|
/**
|
|
@@ -3433,6 +3496,12 @@ declare function CartOverview(props: CartOverviewProps): React$1.JSX.Element;
|
|
|
3433
3496
|
*/
|
|
3434
3497
|
|
|
3435
3498
|
interface CartPaymethodsProps {
|
|
3499
|
+
/**
|
|
3500
|
+
* Storefront language ('EN', 'NL', …). Decides the number format prices are
|
|
3501
|
+
* rendered in — without it they fall back to Dutch separators regardless of
|
|
3502
|
+
* the language the shopper is reading. Resolved from `<PropellerProvider>` when omitted.
|
|
3503
|
+
*/
|
|
3504
|
+
language?: string;
|
|
3436
3505
|
/** Shopping cart object from which the payment methods will be displayed */
|
|
3437
3506
|
cart: Cart;
|
|
3438
3507
|
/** Authenticated user — used for cart creation / lookup. Resolved from `<PropellerProvider>` when not passed explicitly. */
|
|
@@ -3474,10 +3543,18 @@ declare function CartPaymethods(rawProps: CartPaymethodsProps): React$1.JSX.Elem
|
|
|
3474
3543
|
*/
|
|
3475
3544
|
|
|
3476
3545
|
interface CartSummaryProps {
|
|
3546
|
+
/**
|
|
3547
|
+
* Storefront language ('EN', 'NL', …). Decides the number format prices are
|
|
3548
|
+
* rendered in — without it they fall back to Dutch separators regardless of
|
|
3549
|
+
* the language the shopper is reading. Resolved from `<PropellerProvider>` when omitted.
|
|
3550
|
+
*/
|
|
3551
|
+
language?: string;
|
|
3477
3552
|
/** The shopping cart used to populate the cart summary data */
|
|
3478
3553
|
cart: Cart;
|
|
3479
3554
|
/** Cart summary block title */
|
|
3480
3555
|
title?: string;
|
|
3556
|
+
/** Extra classes for the panel root, merged over the defaults via tailwind-merge. */
|
|
3557
|
+
className?: string;
|
|
3481
3558
|
/** Labels for the component */
|
|
3482
3559
|
labels?: Record<string, string>;
|
|
3483
3560
|
/** Display the subtotal of the shopping cart. Defaults to `true`. */
|
|
@@ -4531,8 +4608,12 @@ interface FavoriteListsProps {
|
|
|
4531
4608
|
}) => void;
|
|
4532
4609
|
/** Action function triggered when deleting a favorite list. If not provided, the default action is executed */
|
|
4533
4610
|
onDelete?: (favoriteListId: string) => void;
|
|
4534
|
-
/**
|
|
4535
|
-
|
|
4611
|
+
/**
|
|
4612
|
+
* Called after any list mutation succeeds, with what it did.
|
|
4613
|
+
*
|
|
4614
|
+
* The argument is optional so existing zero-argument callbacks keep working.
|
|
4615
|
+
*/
|
|
4616
|
+
onListChanged?: (change?: FavoriteListChange) => void;
|
|
4536
4617
|
}
|
|
4537
4618
|
/**
|
|
4538
4619
|
* Lists the user's favorite lists with inline edit, delete and create-list
|
|
@@ -4678,6 +4759,8 @@ interface GridFiltersProps {
|
|
|
4678
4759
|
/** Translated labels keyed by the slugs used inside the component (see
|
|
4679
4760
|
* `getLabel` calls). Missing keys fall back to the English defaults. */
|
|
4680
4761
|
labels?: Record<string, string>;
|
|
4762
|
+
/** Currency symbol shown in the price-range inputs. Falls back to PropellerInfra.currency, then `'€'`. */
|
|
4763
|
+
currency?: string;
|
|
4681
4764
|
}
|
|
4682
4765
|
/**
|
|
4683
4766
|
* Faceted filter sidebar for a product grid: collapsible attribute checkbox
|
|
@@ -5196,9 +5279,22 @@ interface OrderItemCardProps {
|
|
|
5196
5279
|
* This component is RSC-safe (no hooks, no context), so the host has to pass
|
|
5197
5280
|
* it — there is nothing to read it from. Without it a non-default storefront
|
|
5198
5281
|
* renders default-language names and, worse, default-language slugs in the
|
|
5199
|
-
* links
|
|
5282
|
+
* links.
|
|
5200
5283
|
*/
|
|
5201
5284
|
language?: string;
|
|
5285
|
+
/**
|
|
5286
|
+
* URL builders from the host's configuration. Supply them and the item link
|
|
5287
|
+
* is generated the same way every other link on the storefront is — which is
|
|
5288
|
+
* what carries the locale prefix. Without it the component falls back to a
|
|
5289
|
+
* bare `/product/:id/:slug`, and on a prefixed storefront that link drops the
|
|
5290
|
+
* visitor onto the default language.
|
|
5291
|
+
*/
|
|
5292
|
+
configuration?: {
|
|
5293
|
+
urls?: {
|
|
5294
|
+
getProductUrl?: (product: Product, language?: string) => string;
|
|
5295
|
+
getClusterUrl?: (cluster: Cluster, language?: string) => string;
|
|
5296
|
+
};
|
|
5297
|
+
};
|
|
5202
5298
|
/** Should the item title be a link to the PDP */
|
|
5203
5299
|
titleLinkable?: boolean;
|
|
5204
5300
|
/** Display a small thumbnail of the order item */
|
|
@@ -5273,6 +5369,12 @@ declare function OrderBonusItems(rawProps: OrderBonusItemsProps): React$1.JSX.El
|
|
|
5273
5369
|
*/
|
|
5274
5370
|
|
|
5275
5371
|
interface OrderListProps {
|
|
5372
|
+
/**
|
|
5373
|
+
* Storefront language ('EN', 'NL', …). Decides the number format prices are
|
|
5374
|
+
* rendered in — without it they fall back to Dutch separators regardless of
|
|
5375
|
+
* the language the shopper is reading. Resolved from `<PropellerProvider>` when omitted.
|
|
5376
|
+
*/
|
|
5377
|
+
language?: string;
|
|
5276
5378
|
/** The authenticated user (Contact or Customer). Resolved from PropellerProvider when omitted. */
|
|
5277
5379
|
user?: Contact | Customer | null;
|
|
5278
5380
|
/** The initialized GraphQL Client instance. Resolved from PropellerProvider when omitted. */
|
|
@@ -5418,6 +5520,9 @@ interface QuickOrderProps {
|
|
|
5418
5520
|
* has no access to.
|
|
5419
5521
|
*/
|
|
5420
5522
|
baseCategoryId?: number;
|
|
5523
|
+
/** The channel's anonymous user, seeded by the host. Scopes logged-out
|
|
5524
|
+
* listings exactly like the SSR seed does. */
|
|
5525
|
+
anonymousUserId?: number;
|
|
5421
5526
|
};
|
|
5422
5527
|
/** Tax zone for price calculation. Defaults to `'NL'`. */
|
|
5423
5528
|
taxZone?: string;
|
|
@@ -5440,6 +5545,12 @@ interface QuickOrderProps {
|
|
|
5440
5545
|
parseSpreadsheet?: (file: File) => Promise<QuickOrderUploadLine[]>;
|
|
5441
5546
|
/** URL to a downloadable XLSX template (shown next to the upload control). */
|
|
5442
5547
|
templateUrl?: string;
|
|
5548
|
+
/**
|
|
5549
|
+
* Called when the template link is clicked. Navigation is untouched — this is
|
|
5550
|
+
* a notification, not a handler: a buyer fetching the template is a
|
|
5551
|
+
* quick-order intent signal that otherwise leaves no trace at all.
|
|
5552
|
+
*/
|
|
5553
|
+
onTemplateDownload?: () => void;
|
|
5443
5554
|
/** Max upload file size in bytes. Defaults to 2 MB. */
|
|
5444
5555
|
maxUploadBytes?: number;
|
|
5445
5556
|
/** Max rows accepted from an upload. Defaults to 500. */
|
|
@@ -5509,6 +5620,12 @@ declare function OrderShipments(props: OrderShipmentsProps): React$1.JSX.Element
|
|
|
5509
5620
|
*/
|
|
5510
5621
|
|
|
5511
5622
|
interface OrderSummaryProps {
|
|
5623
|
+
/**
|
|
5624
|
+
* Storefront language ('EN', 'NL', …). Decides the number format prices are
|
|
5625
|
+
* rendered in — without it they fall back to Dutch separators regardless of
|
|
5626
|
+
* the language the shopper is reading.
|
|
5627
|
+
*/
|
|
5628
|
+
language?: string;
|
|
5512
5629
|
/** The order object from propeller-sdk-v2 */
|
|
5513
5630
|
order: any;
|
|
5514
5631
|
/** The CSS class for the order summary container */
|
|
@@ -5572,6 +5689,12 @@ declare function OrderSummary(props: OrderSummaryProps): React$1.JSX.Element;
|
|
|
5572
5689
|
*/
|
|
5573
5690
|
|
|
5574
5691
|
interface OrderTotalsProps {
|
|
5692
|
+
/**
|
|
5693
|
+
* Storefront language ('EN', 'NL', …). Decides the number format prices are
|
|
5694
|
+
* rendered in — without it they fall back to Dutch separators regardless of
|
|
5695
|
+
* the language the shopper is reading.
|
|
5696
|
+
*/
|
|
5697
|
+
language?: string;
|
|
5575
5698
|
/** The order/quote used to populate the summary data */
|
|
5576
5699
|
order: Order;
|
|
5577
5700
|
/** Order summary block title */
|
|
@@ -5654,6 +5777,12 @@ declare function PriceToggle(props: PriceToggleProps): React$1.JSX.Element;
|
|
|
5654
5777
|
*/
|
|
5655
5778
|
|
|
5656
5779
|
interface ProductBulkPricesProps {
|
|
5780
|
+
/**
|
|
5781
|
+
* Storefront language ('EN', 'NL', …). Decides the number format prices are
|
|
5782
|
+
* rendered in — without it they fall back to Dutch separators regardless of
|
|
5783
|
+
* the language the shopper is reading.
|
|
5784
|
+
*/
|
|
5785
|
+
language?: string;
|
|
5657
5786
|
/**
|
|
5658
5787
|
* Bulk price tiers from the product.
|
|
5659
5788
|
* Obtain from `product.bulkPrices`.
|
|
@@ -5940,6 +6069,8 @@ interface ProductCardProps {
|
|
|
5940
6069
|
* See `ProductPriceProps.labels` for slugs (inclTax, exclTax, loginToSeePrices). */
|
|
5941
6070
|
priceLabels?: Record<string, string>;
|
|
5942
6071
|
/** Replaces the default price block. Receives `PriceComponentProps`. */
|
|
6072
|
+
/** Currency symbol used when formatting the price. Falls back to PropellerInfra.currency, then `'€'`. */
|
|
6073
|
+
currency?: string;
|
|
5943
6074
|
priceComponent?: React$1.ComponentType<_propeller_commerce_propeller_v2_core_ui.PriceComponentProps>;
|
|
5944
6075
|
/** Replaces the default stock/availability block. Receives `StockComponentProps`. */
|
|
5945
6076
|
stockComponent?: React$1.ComponentType<_propeller_commerce_propeller_v2_core_ui.StockComponentProps>;
|
|
@@ -6312,6 +6443,9 @@ interface ProductGridProps {
|
|
|
6312
6443
|
*/
|
|
6313
6444
|
configuration?: {
|
|
6314
6445
|
baseCategoryId?: number;
|
|
6446
|
+
/** The channel's anonymous user, seeded by the host. Scopes logged-out
|
|
6447
|
+
* listings exactly like the SSR seed does. */
|
|
6448
|
+
anonymousUserId?: number;
|
|
6315
6449
|
imageSearchFiltersGrid?: MediaImageProductSearchInput;
|
|
6316
6450
|
imageVariantFiltersMedium?: TransformationsInput;
|
|
6317
6451
|
urls?: {
|
|
@@ -6634,6 +6768,12 @@ declare const ProductInfoExport: ProductInfoComponent;
|
|
|
6634
6768
|
*/
|
|
6635
6769
|
|
|
6636
6770
|
interface ProductPriceProps {
|
|
6771
|
+
/**
|
|
6772
|
+
* Storefront language ('EN', 'NL', …). Decides the number format prices are
|
|
6773
|
+
* rendered in — without it they fall back to Dutch separators regardless of
|
|
6774
|
+
* the language the shopper is reading.
|
|
6775
|
+
*/
|
|
6776
|
+
language?: string;
|
|
6637
6777
|
/**
|
|
6638
6778
|
* ProductPrice object from the product.
|
|
6639
6779
|
* Obtain from `product.price`.
|
|
@@ -7403,6 +7543,8 @@ interface SearchBarProps {
|
|
|
7403
7543
|
priceLabels?: Record<string, string>;
|
|
7404
7544
|
/** Additional class name for the container */
|
|
7405
7545
|
containerClassName?: string;
|
|
7546
|
+
/** Extra classes for the search input, merged over the defaults via tailwind-merge. */
|
|
7547
|
+
inputClassName?: string;
|
|
7406
7548
|
/** Tax zone used for price calculation. Defaults to 'NL'. */
|
|
7407
7549
|
taxZone?: string;
|
|
7408
7550
|
/**
|