@commercelayer/react-components 2.50.0 → 2.50.1
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/lib/cjs/components/AddToCartButton.d.ts +1 -1
- package/lib/cjs/components/LineItemCode.d.ts +6 -2
- package/lib/cjs/components/LineItemCode.js +1 -1
- package/lib/cjs/components/LineItemImage.d.ts +4 -2
- package/lib/cjs/components/LineItemImage.js +1 -1
- package/lib/cjs/components/LineItemName.d.ts +4 -2
- package/lib/cjs/components/LineItemName.js +1 -1
- package/lib/cjs/components/ShippingMethodRadioButton.d.ts +4 -4
- package/lib/cjs/components/utils/AddressCardsTemplate.d.ts +1 -1
- package/lib/cjs/components/utils/PaymentCardsTemplate.d.ts +1 -1
- package/lib/cjs/index.d.ts +7 -4
- package/lib/esm/components/AddToCartButton.d.ts +1 -1
- package/lib/esm/components/LineItemCode.d.ts +6 -2
- package/lib/esm/components/LineItemCode.js +1 -1
- package/lib/esm/components/LineItemImage.d.ts +4 -2
- package/lib/esm/components/LineItemImage.js +1 -1
- package/lib/esm/components/LineItemName.d.ts +4 -2
- package/lib/esm/components/LineItemName.js +1 -1
- package/lib/esm/components/ShippingMethodRadioButton.d.ts +4 -4
- package/lib/esm/components/utils/AddressCardsTemplate.d.ts +1 -1
- package/lib/esm/components/utils/PaymentCardsTemplate.d.ts +1 -1
- package/lib/esm/index.d.ts +7 -4
- package/lib/tsconfig.prod.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.prod.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ declare type ChildrenProps = {
|
|
|
6
6
|
handleClick: () => AddToCartReturn;
|
|
7
7
|
} & Omit<AddToCartButtonProps, 'children'>;
|
|
8
8
|
declare type AddToCartButtonChildrenProps = FunctionChildren<ChildrenProps>;
|
|
9
|
-
export declare type
|
|
9
|
+
export declare type AddToCartButtonType = ChildrenProps;
|
|
10
10
|
declare type AddToCartButtonProps = {
|
|
11
11
|
children?: AddToCartButtonChildrenProps;
|
|
12
12
|
label?: string | ReactNode;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { LineItem } from '@commercelayer/sdk';
|
|
3
|
+
export declare type LineItemCodeType = Omit<LineItemNameProps, 'children'> & {
|
|
4
|
+
lineItem: LineItem;
|
|
5
|
+
skuCode: string;
|
|
6
|
+
};
|
|
3
7
|
declare type LineItemNameProps = {
|
|
4
|
-
children?: (props:
|
|
8
|
+
children?: (props: LineItemCodeType) => ReactNode;
|
|
5
9
|
type?: 'sku_code' | 'bundle_code';
|
|
6
10
|
} & JSX.IntrinsicElements['p'];
|
|
7
11
|
declare const LineItemCode: FunctionComponent<LineItemNameProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),LineItemChildrenContext_1=(0,tslib_1.__importDefault)(require("../context/LineItemChildrenContext")),Parent_1=(0,tslib_1.__importDefault)(require("./utils/Parent")),components_1=(0,tslib_1.__importDefault)(require("../config/components")),propTypes=components_1.default.LineItemCode.propTypes,displayName=components_1.default.LineItemCode.displayName,LineItemCode=_a=>{var{type="sku_code",children}=_a,p=(0,tslib_1.__rest)(_a,["type","children"]);const{lineItem}=(0,react_1.useContext)(LineItemChildrenContext_1.default),labelName=lineItem==null?void 0:lineItem[type],parentProps=Object.assign({},p);return children?(0,jsx_runtime_1.jsx)(Parent_1.default,Object.assign({},parentProps,{children}),void 0):(0,jsx_runtime_1.jsx)("p",Object.assign({},p,{children:labelName}),void 0)};LineItemCode.propTypes=propTypes,LineItemCode.displayName=displayName,exports.default=LineItemCode;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),LineItemChildrenContext_1=(0,tslib_1.__importDefault)(require("../context/LineItemChildrenContext")),Parent_1=(0,tslib_1.__importDefault)(require("./utils/Parent")),components_1=(0,tslib_1.__importDefault)(require("../config/components")),propTypes=components_1.default.LineItemCode.propTypes,displayName=components_1.default.LineItemCode.displayName,LineItemCode=_a=>{var{type="sku_code",children}=_a,p=(0,tslib_1.__rest)(_a,["type","children"]);const{lineItem}=(0,react_1.useContext)(LineItemChildrenContext_1.default),labelName=lineItem==null?void 0:lineItem[type],parentProps=Object.assign({lineItem,skuCode:labelName},p);return children?(0,jsx_runtime_1.jsx)(Parent_1.default,Object.assign({},parentProps,{children}),void 0):(0,jsx_runtime_1.jsx)("p",Object.assign({},p,{children:labelName}),void 0)};LineItemCode.propTypes=propTypes,LineItemCode.displayName=displayName,exports.default=LineItemCode;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { LineItem } from '@commercelayer/sdk';
|
|
3
|
+
export declare type LineItemImageType = Omit<LineItemImageProps, 'children'> & {
|
|
3
4
|
src: string;
|
|
5
|
+
lineItem: LineItem;
|
|
4
6
|
};
|
|
5
7
|
declare type LineItemImageProps = {
|
|
6
|
-
children?: (props:
|
|
8
|
+
children?: (props: LineItemImageType) => ReactNode;
|
|
7
9
|
width?: number;
|
|
8
10
|
} & Omit<JSX.IntrinsicElements['img'], 'src' | 'srcSet'>;
|
|
9
11
|
declare const LineItemImage: FunctionComponent<LineItemImageProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),Parent_1=(0,tslib_1.__importDefault)(require("./utils/Parent")),LineItemChildrenContext_1=(0,tslib_1.__importDefault)(require("../context/LineItemChildrenContext")),components_1=(0,tslib_1.__importDefault)(require("../config/components")),propTypes=components_1.default.LineItemImage.propTypes,displayName=components_1.default.LineItemImage.displayName,LineItemImage=props=>{const{lineItem}=(0,react_1.useContext)(LineItemChildrenContext_1.default),src=lineItem==null?void 0:lineItem.image_url,parenProps=Object.assign({src},props);return props.children?(0,jsx_runtime_1.jsx)(Parent_1.default,Object.assign({},parenProps,{children:props.children}),void 0):(0,jsx_runtime_1.jsx)("img",Object.assign({alt:"",src},props),void 0)};LineItemImage.propTypes=propTypes,LineItemImage.displayName=displayName,exports.default=LineItemImage;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),Parent_1=(0,tslib_1.__importDefault)(require("./utils/Parent")),LineItemChildrenContext_1=(0,tslib_1.__importDefault)(require("../context/LineItemChildrenContext")),components_1=(0,tslib_1.__importDefault)(require("../config/components")),propTypes=components_1.default.LineItemImage.propTypes,displayName=components_1.default.LineItemImage.displayName,LineItemImage=props=>{const{lineItem}=(0,react_1.useContext)(LineItemChildrenContext_1.default),src=lineItem==null?void 0:lineItem.image_url,parenProps=Object.assign({lineItem,src},props);return props.children?(0,jsx_runtime_1.jsx)(Parent_1.default,Object.assign({},parenProps,{children:props.children}),void 0):(0,jsx_runtime_1.jsx)("img",Object.assign({alt:"",src},props),void 0)};LineItemImage.propTypes=propTypes,LineItemImage.displayName=displayName,exports.default=LineItemImage;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { LineItem } from '@commercelayer/sdk';
|
|
3
|
+
export declare type LineItemNameType = Omit<LineItemNameProps, 'children'> & {
|
|
3
4
|
label: string;
|
|
5
|
+
lineItem: LineItem;
|
|
4
6
|
};
|
|
5
7
|
declare type LineItemNameProps = {
|
|
6
|
-
children?: (props:
|
|
8
|
+
children?: (props: LineItemNameType) => ReactNode;
|
|
7
9
|
} & JSX.IntrinsicElements['p'];
|
|
8
10
|
declare const LineItemName: FunctionComponent<LineItemNameProps>;
|
|
9
11
|
export default LineItemName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),LineItemChildrenContext_1=(0,tslib_1.__importDefault)(require("../context/LineItemChildrenContext")),Parent_1=(0,tslib_1.__importDefault)(require("./utils/Parent")),components_1=(0,tslib_1.__importDefault)(require("../config/components")),propTypes=components_1.default.LineItemName.propTypes,displayName=components_1.default.LineItemName.displayName,LineItemName=props=>{const{lineItem}=(0,react_1.useContext)(LineItemChildrenContext_1.default),label=lineItem==null?void 0:lineItem.name,parentProps=Object.assign({label},props);return props.children?(0,jsx_runtime_1.jsx)(Parent_1.default,Object.assign({},parentProps,{children:props.children}),void 0):(0,jsx_runtime_1.jsx)("p",Object.assign({},props,{children:label}),void 0)};LineItemName.propTypes=propTypes,LineItemName.displayName=displayName,exports.default=LineItemName;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),LineItemChildrenContext_1=(0,tslib_1.__importDefault)(require("../context/LineItemChildrenContext")),Parent_1=(0,tslib_1.__importDefault)(require("./utils/Parent")),components_1=(0,tslib_1.__importDefault)(require("../config/components")),propTypes=components_1.default.LineItemName.propTypes,displayName=components_1.default.LineItemName.displayName,LineItemName=props=>{const{lineItem}=(0,react_1.useContext)(LineItemChildrenContext_1.default),label=lineItem==null?void 0:lineItem.name,parentProps=Object.assign({label,lineItem},props);return props.children?(0,jsx_runtime_1.jsx)(Parent_1.default,Object.assign({},parentProps,{children:props.children}),void 0):(0,jsx_runtime_1.jsx)("p",Object.assign({},props,{children:label}),void 0)};LineItemName.propTypes=propTypes,LineItemName.displayName=displayName,exports.default=LineItemName;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { ShippingMethod } from '@commercelayer/sdk';
|
|
3
|
-
export declare type
|
|
3
|
+
export declare type ShippingMethodRadioButtonType = Omit<ShippingMethodRadioButtonProps, 'children'> & {
|
|
4
4
|
shippingMethod: ShippingMethod;
|
|
5
5
|
shipmentId: string;
|
|
6
6
|
};
|
|
7
|
-
export declare type
|
|
7
|
+
export declare type ShippingMethodRadioButtonOnChangeType = (shippingMethod: ShippingMethod, shipmentId: string) => void;
|
|
8
8
|
declare type ShippingMethodRadioButtonProps = {
|
|
9
|
-
children?: (props:
|
|
10
|
-
onChange?:
|
|
9
|
+
children?: (props: ShippingMethodRadioButtonType) => ReactNode;
|
|
10
|
+
onChange?: ShippingMethodRadioButtonOnChangeType;
|
|
11
11
|
} & Omit<JSX.IntrinsicElements['input'], 'onChange'>;
|
|
12
12
|
declare const ShippingMethodRadioButton: FunctionComponent<ShippingMethodRadioButtonProps>;
|
|
13
13
|
export default ShippingMethodRadioButton;
|
|
@@ -10,7 +10,7 @@ export declare type CustomerAddress = Address & {
|
|
|
10
10
|
handleSelect?: () => void;
|
|
11
11
|
};
|
|
12
12
|
export declare type AddressCardsTemplateChildren = FunctionChildren<ChildrenProps>;
|
|
13
|
-
export declare type
|
|
13
|
+
export declare type AddressCardsType = ChildrenProps;
|
|
14
14
|
declare type HandleSelect = (k: number, addressId: string, customerAddressId: string, disabled: boolean) => void;
|
|
15
15
|
declare type Props = {
|
|
16
16
|
customerAddresses: CustomerAddress[];
|
|
@@ -13,7 +13,7 @@ declare type CustomerPayment = PaymentSourceType & {
|
|
|
13
13
|
handleClick?: () => void;
|
|
14
14
|
};
|
|
15
15
|
export declare type CustomerCardsTemplateChildren = FunctionChildren<ChildrenProps>;
|
|
16
|
-
export declare type
|
|
16
|
+
export declare type CustomerCardsType = ChildrenProps;
|
|
17
17
|
declare type Props = {
|
|
18
18
|
customerPayments: CustomerPayment[];
|
|
19
19
|
children: CustomerCardsTemplateChildren;
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -85,7 +85,10 @@ export { default as TaxesAmount } from './components/TaxesAmount';
|
|
|
85
85
|
export { default as TotalAmount } from './components/TotalAmount';
|
|
86
86
|
export { default as VariantSelector } from './components/VariantSelector';
|
|
87
87
|
export { default as VariantsContainer } from './components/VariantsContainer';
|
|
88
|
-
export type {
|
|
89
|
-
export type {
|
|
90
|
-
export type {
|
|
91
|
-
export type {
|
|
88
|
+
export type { CustomerCardsType } from './components/utils/PaymentCardsTemplate';
|
|
89
|
+
export type { AddressCardsType } from './components/utils/AddressCardsTemplate';
|
|
90
|
+
export type { AddToCartButtonType } from './components/AddToCartButton';
|
|
91
|
+
export type { ShippingMethodRadioButtonType, ShippingMethodRadioButtonOnChangeType, } from './components/ShippingMethodRadioButton';
|
|
92
|
+
export type { LineItemCodeType } from './components/LineItemCode';
|
|
93
|
+
export type { LineItemNameType } from './components/LineItemName';
|
|
94
|
+
export type { LineItemImageType } from './components/LineItemImage';
|
|
@@ -6,7 +6,7 @@ declare type ChildrenProps = {
|
|
|
6
6
|
handleClick: () => AddToCartReturn;
|
|
7
7
|
} & Omit<AddToCartButtonProps, 'children'>;
|
|
8
8
|
declare type AddToCartButtonChildrenProps = FunctionChildren<ChildrenProps>;
|
|
9
|
-
export declare type
|
|
9
|
+
export declare type AddToCartButtonType = ChildrenProps;
|
|
10
10
|
declare type AddToCartButtonProps = {
|
|
11
11
|
children?: AddToCartButtonChildrenProps;
|
|
12
12
|
label?: string | ReactNode;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { LineItem } from '@commercelayer/sdk';
|
|
3
|
+
export declare type LineItemCodeType = Omit<LineItemNameProps, 'children'> & {
|
|
4
|
+
lineItem: LineItem;
|
|
5
|
+
skuCode: string;
|
|
6
|
+
};
|
|
3
7
|
declare type LineItemNameProps = {
|
|
4
|
-
children?: (props:
|
|
8
|
+
children?: (props: LineItemCodeType) => ReactNode;
|
|
5
9
|
type?: 'sku_code' | 'bundle_code';
|
|
6
10
|
} & JSX.IntrinsicElements['p'];
|
|
7
11
|
declare const LineItemCode: FunctionComponent<LineItemNameProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import{useContext}from"react";import LineItemChildrenContext from"../context/LineItemChildrenContext";import Parent from"./utils/Parent";import components from"../config/components";const propTypes=components.LineItemCode.propTypes,displayName=components.LineItemCode.displayName,LineItemCode=_a=>{var{type="sku_code",children}=_a,p=__rest(_a,["type","children"]);const{lineItem}=useContext(LineItemChildrenContext),labelName=lineItem==null?void 0:lineItem[type],parentProps=Object.assign({},p);return children?_jsx(Parent,Object.assign({},parentProps,{children}),void 0):_jsx("p",Object.assign({},p,{children:labelName}),void 0)};LineItemCode.propTypes=propTypes,LineItemCode.displayName=displayName;export default LineItemCode;
|
|
1
|
+
import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import{useContext}from"react";import LineItemChildrenContext from"../context/LineItemChildrenContext";import Parent from"./utils/Parent";import components from"../config/components";const propTypes=components.LineItemCode.propTypes,displayName=components.LineItemCode.displayName,LineItemCode=_a=>{var{type="sku_code",children}=_a,p=__rest(_a,["type","children"]);const{lineItem}=useContext(LineItemChildrenContext),labelName=lineItem==null?void 0:lineItem[type],parentProps=Object.assign({lineItem,skuCode:labelName},p);return children?_jsx(Parent,Object.assign({},parentProps,{children}),void 0):_jsx("p",Object.assign({},p,{children:labelName}),void 0)};LineItemCode.propTypes=propTypes,LineItemCode.displayName=displayName;export default LineItemCode;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { LineItem } from '@commercelayer/sdk';
|
|
3
|
+
export declare type LineItemImageType = Omit<LineItemImageProps, 'children'> & {
|
|
3
4
|
src: string;
|
|
5
|
+
lineItem: LineItem;
|
|
4
6
|
};
|
|
5
7
|
declare type LineItemImageProps = {
|
|
6
|
-
children?: (props:
|
|
8
|
+
children?: (props: LineItemImageType) => ReactNode;
|
|
7
9
|
width?: number;
|
|
8
10
|
} & Omit<JSX.IntrinsicElements['img'], 'src' | 'srcSet'>;
|
|
9
11
|
declare const LineItemImage: FunctionComponent<LineItemImageProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as _jsx}from"react/jsx-runtime";import{useContext}from"react";import Parent from"./utils/Parent";import LineItemChildrenContext from"../context/LineItemChildrenContext";import components from"../config/components";const propTypes=components.LineItemImage.propTypes,displayName=components.LineItemImage.displayName,LineItemImage=props=>{const{lineItem}=useContext(LineItemChildrenContext),src=lineItem==null?void 0:lineItem.image_url,parenProps=Object.assign({src},props);return props.children?_jsx(Parent,Object.assign({},parenProps,{children:props.children}),void 0):_jsx("img",Object.assign({alt:"",src},props),void 0)};LineItemImage.propTypes=propTypes,LineItemImage.displayName=displayName;export default LineItemImage;
|
|
1
|
+
import{jsx as _jsx}from"react/jsx-runtime";import{useContext}from"react";import Parent from"./utils/Parent";import LineItemChildrenContext from"../context/LineItemChildrenContext";import components from"../config/components";const propTypes=components.LineItemImage.propTypes,displayName=components.LineItemImage.displayName,LineItemImage=props=>{const{lineItem}=useContext(LineItemChildrenContext),src=lineItem==null?void 0:lineItem.image_url,parenProps=Object.assign({lineItem,src},props);return props.children?_jsx(Parent,Object.assign({},parenProps,{children:props.children}),void 0):_jsx("img",Object.assign({alt:"",src},props),void 0)};LineItemImage.propTypes=propTypes,LineItemImage.displayName=displayName;export default LineItemImage;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { LineItem } from '@commercelayer/sdk';
|
|
3
|
+
export declare type LineItemNameType = Omit<LineItemNameProps, 'children'> & {
|
|
3
4
|
label: string;
|
|
5
|
+
lineItem: LineItem;
|
|
4
6
|
};
|
|
5
7
|
declare type LineItemNameProps = {
|
|
6
|
-
children?: (props:
|
|
8
|
+
children?: (props: LineItemNameType) => ReactNode;
|
|
7
9
|
} & JSX.IntrinsicElements['p'];
|
|
8
10
|
declare const LineItemName: FunctionComponent<LineItemNameProps>;
|
|
9
11
|
export default LineItemName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as _jsx}from"react/jsx-runtime";import{useContext}from"react";import LineItemChildrenContext from"../context/LineItemChildrenContext";import Parent from"./utils/Parent";import components from"../config/components";const propTypes=components.LineItemName.propTypes,displayName=components.LineItemName.displayName,LineItemName=props=>{const{lineItem}=useContext(LineItemChildrenContext),label=lineItem==null?void 0:lineItem.name,parentProps=Object.assign({label},props);return props.children?_jsx(Parent,Object.assign({},parentProps,{children:props.children}),void 0):_jsx("p",Object.assign({},props,{children:label}),void 0)};LineItemName.propTypes=propTypes,LineItemName.displayName=displayName;export default LineItemName;
|
|
1
|
+
import{jsx as _jsx}from"react/jsx-runtime";import{useContext}from"react";import LineItemChildrenContext from"../context/LineItemChildrenContext";import Parent from"./utils/Parent";import components from"../config/components";const propTypes=components.LineItemName.propTypes,displayName=components.LineItemName.displayName,LineItemName=props=>{const{lineItem}=useContext(LineItemChildrenContext),label=lineItem==null?void 0:lineItem.name,parentProps=Object.assign({label,lineItem},props);return props.children?_jsx(Parent,Object.assign({},parentProps,{children:props.children}),void 0):_jsx("p",Object.assign({},props,{children:label}),void 0)};LineItemName.propTypes=propTypes,LineItemName.displayName=displayName;export default LineItemName;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { ShippingMethod } from '@commercelayer/sdk';
|
|
3
|
-
export declare type
|
|
3
|
+
export declare type ShippingMethodRadioButtonType = Omit<ShippingMethodRadioButtonProps, 'children'> & {
|
|
4
4
|
shippingMethod: ShippingMethod;
|
|
5
5
|
shipmentId: string;
|
|
6
6
|
};
|
|
7
|
-
export declare type
|
|
7
|
+
export declare type ShippingMethodRadioButtonOnChangeType = (shippingMethod: ShippingMethod, shipmentId: string) => void;
|
|
8
8
|
declare type ShippingMethodRadioButtonProps = {
|
|
9
|
-
children?: (props:
|
|
10
|
-
onChange?:
|
|
9
|
+
children?: (props: ShippingMethodRadioButtonType) => ReactNode;
|
|
10
|
+
onChange?: ShippingMethodRadioButtonOnChangeType;
|
|
11
11
|
} & Omit<JSX.IntrinsicElements['input'], 'onChange'>;
|
|
12
12
|
declare const ShippingMethodRadioButton: FunctionComponent<ShippingMethodRadioButtonProps>;
|
|
13
13
|
export default ShippingMethodRadioButton;
|
|
@@ -10,7 +10,7 @@ export declare type CustomerAddress = Address & {
|
|
|
10
10
|
handleSelect?: () => void;
|
|
11
11
|
};
|
|
12
12
|
export declare type AddressCardsTemplateChildren = FunctionChildren<ChildrenProps>;
|
|
13
|
-
export declare type
|
|
13
|
+
export declare type AddressCardsType = ChildrenProps;
|
|
14
14
|
declare type HandleSelect = (k: number, addressId: string, customerAddressId: string, disabled: boolean) => void;
|
|
15
15
|
declare type Props = {
|
|
16
16
|
customerAddresses: CustomerAddress[];
|
|
@@ -13,7 +13,7 @@ declare type CustomerPayment = PaymentSourceType & {
|
|
|
13
13
|
handleClick?: () => void;
|
|
14
14
|
};
|
|
15
15
|
export declare type CustomerCardsTemplateChildren = FunctionChildren<ChildrenProps>;
|
|
16
|
-
export declare type
|
|
16
|
+
export declare type CustomerCardsType = ChildrenProps;
|
|
17
17
|
declare type Props = {
|
|
18
18
|
customerPayments: CustomerPayment[];
|
|
19
19
|
children: CustomerCardsTemplateChildren;
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -85,7 +85,10 @@ export { default as TaxesAmount } from './components/TaxesAmount';
|
|
|
85
85
|
export { default as TotalAmount } from './components/TotalAmount';
|
|
86
86
|
export { default as VariantSelector } from './components/VariantSelector';
|
|
87
87
|
export { default as VariantsContainer } from './components/VariantsContainer';
|
|
88
|
-
export type {
|
|
89
|
-
export type {
|
|
90
|
-
export type {
|
|
91
|
-
export type {
|
|
88
|
+
export type { CustomerCardsType } from './components/utils/PaymentCardsTemplate';
|
|
89
|
+
export type { AddressCardsType } from './components/utils/AddressCardsTemplate';
|
|
90
|
+
export type { AddToCartButtonType } from './components/AddToCartButton';
|
|
91
|
+
export type { ShippingMethodRadioButtonType, ShippingMethodRadioButtonOnChangeType, } from './components/ShippingMethodRadioButton';
|
|
92
|
+
export type { LineItemCodeType } from './components/LineItemCode';
|
|
93
|
+
export type { LineItemNameType } from './components/LineItemName';
|
|
94
|
+
export type { LineItemImageType } from './components/LineItemImage';
|