@haus-storefront-react/order-lines 0.0.16 → 0.0.18
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 +37 -0
- package/{browser-ponyfill-B1Cdybyl.js → browser-ponyfill-Bbqv9ZbN.js} +1 -1
- package/{browser-ponyfill-CXARzZXU.mjs → browser-ponyfill-CDdjP3hY.mjs} +1 -1
- package/{index-D2_CE4Nu.mjs → index-B22_dC8X.mjs} +2468 -2467
- package/index-C18xAHmF.js +118 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/lib/order-lines.d.ts +8 -11
- package/package.json +6 -6
- package/index-DzCaUD6B.js +0 -118
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C18xAHmF.js");exports.OrderLines=e.OrderLines;exports.createOrderLinesScope=e.createOrderLinesScope;exports.useOrderLinesProps=e.useOrderLinesProps;
|
package/index.mjs
CHANGED
package/lib/order-lines.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { OrderLine, CurrencyCode, Price as PriceType, AsChildProps } from '@haus-storefront-react/shared-types';
|
|
1
|
+
import { OrderLine, CurrencyCode, Price as PriceType, AsChildProps, ChildrenProps } from '@haus-storefront-react/shared-types';
|
|
2
2
|
import { Scope } from '@haus-storefront-react/common-utils';
|
|
3
|
+
import { QuantityButtonsRootProps } from '@haus-storefront-react/common-ui';
|
|
3
4
|
import { ButtonHTMLAttributes, ImgHTMLAttributes } from 'react';
|
|
4
5
|
import { UseOrderLinesResult } from './use-order-lines-props';
|
|
5
6
|
import * as React from 'react';
|
|
@@ -36,19 +37,15 @@ interface OrderLineImageProps extends ImgHTMLAttributes<HTMLImageElement>, AsChi
|
|
|
36
37
|
}
|
|
37
38
|
interface OrderLineRemoveProps extends ButtonHTMLAttributes<HTMLButtonElement>, AsChildProps {
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
-
min?: number;
|
|
41
|
-
max?: number;
|
|
42
|
-
step?: number;
|
|
43
|
-
}
|
|
40
|
+
type OrderLineQuantityProps = Omit<QuantityButtonsRootProps, 'value' | 'onValueChange'>;
|
|
44
41
|
interface OrderLinesPriceProps {
|
|
45
|
-
children?:
|
|
42
|
+
children?: ChildrenProps<{
|
|
46
43
|
price: PriceType;
|
|
47
44
|
priceWithTax: PriceType;
|
|
48
45
|
currencyCode: CurrencyCode;
|
|
49
46
|
isPromotion: boolean;
|
|
50
47
|
isFromPrice: boolean;
|
|
51
|
-
}
|
|
48
|
+
}>;
|
|
52
49
|
withDiscountPrice?: boolean;
|
|
53
50
|
}
|
|
54
51
|
/**
|
|
@@ -136,13 +133,13 @@ export declare const OrderLines: {
|
|
|
136
133
|
displayName: string;
|
|
137
134
|
};
|
|
138
135
|
Decrement: {
|
|
139
|
-
({ children,
|
|
136
|
+
({ children, asChild, __scopeQuantityButtons, ...props }: import('@haus-storefront-react/common-ui').QuantityButtonsDecrementProps & {
|
|
140
137
|
__scopeQuantityButtons?: Scope;
|
|
141
138
|
}): import("react/jsx-runtime").JSX.Element;
|
|
142
139
|
displayName: string;
|
|
143
140
|
};
|
|
144
141
|
Input: {
|
|
145
|
-
({
|
|
142
|
+
({ asChild, __scopeQuantityButtons, ...props }: import('@haus-storefront-react/common-ui').QuantityButtonsInputProps & {
|
|
146
143
|
__scopeQuantityButtons?: Scope;
|
|
147
144
|
}): import("react/jsx-runtime").JSX.Element;
|
|
148
145
|
displayName: string;
|
|
@@ -182,7 +179,7 @@ export declare const OrderLines: {
|
|
|
182
179
|
* - isFromPrice: Whether the price is a "from" price
|
|
183
180
|
*/
|
|
184
181
|
Price: {
|
|
185
|
-
({ children, withDiscountPrice, __scopeOrderLines, }: ScopedProps<OrderLinesPriceProps>): React.ReactNode
|
|
182
|
+
({ children, withDiscountPrice, __scopeOrderLines, }: ScopedProps<OrderLinesPriceProps>): React.ReactNode | React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
186
183
|
displayName: string;
|
|
187
184
|
};
|
|
188
185
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haus-storefront-react/order-lines",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@haus-storefront-react/common-ui": "0.0.
|
|
15
|
-
"@haus-storefront-react/common-utils": "0.0.
|
|
16
|
-
"@haus-storefront-react/core": "0.0.
|
|
17
|
-
"@haus-storefront-react/hooks": "0.0.
|
|
18
|
-
"@haus-storefront-react/shared-types": "0.0.
|
|
14
|
+
"@haus-storefront-react/common-ui": "0.0.18",
|
|
15
|
+
"@haus-storefront-react/common-utils": "0.0.18",
|
|
16
|
+
"@haus-storefront-react/core": "0.0.18",
|
|
17
|
+
"@haus-storefront-react/hooks": "0.0.18",
|
|
18
|
+
"@haus-storefront-react/shared-types": "0.0.18"
|
|
19
19
|
}
|
|
20
20
|
}
|