@haus-storefront-react/order-lines 0.0.6 → 0.0.7-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 +10 -0
- package/{browser-ponyfill-B6lTNNAJ.js → browser-ponyfill-BoRI_3F-.js} +1 -1
- package/{browser-ponyfill-CbV_jVX5.mjs → browser-ponyfill-CsPwRALx.mjs} +1 -1
- package/{index-Bi_u4Jz1.mjs → index-DK_plH4g.mjs} +3139 -3537
- package/index-DdTWg2u-.js +118 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/lib/order-lines.d.ts +1 -10
- package/package.json +6 -6
- package/index-Bdo94aeJ.js +0 -118
package/index.mjs
CHANGED
package/lib/order-lines.d.ts
CHANGED
|
@@ -44,9 +44,7 @@ interface OrderLinesPriceProps {
|
|
|
44
44
|
priceWithTax: PriceType;
|
|
45
45
|
currencyCode: CurrencyCode;
|
|
46
46
|
isPromotion: boolean;
|
|
47
|
-
isCampaign: boolean;
|
|
48
47
|
isFromPrice: boolean;
|
|
49
|
-
ordinaryPrice?: PriceType;
|
|
50
48
|
}) => React.ReactNode;
|
|
51
49
|
withDiscountPrice?: boolean;
|
|
52
50
|
}
|
|
@@ -161,13 +159,8 @@ export declare const OrderLines: {
|
|
|
161
159
|
* @example
|
|
162
160
|
* ```tsx
|
|
163
161
|
* <OrderLines.Price>
|
|
164
|
-
* {({ price, currencyCode, isFromPrice
|
|
162
|
+
* {({ price, currencyCode, isFromPrice }) => (
|
|
165
163
|
* <div>
|
|
166
|
-
* {isCampaign && ordinaryPrice && (
|
|
167
|
-
* <div className="original-price">
|
|
168
|
-
* <span price={ordinaryPrice} currencyCode={currencyCode} />
|
|
169
|
-
* </div>
|
|
170
|
-
* )}
|
|
171
164
|
* <div className="current-price">
|
|
172
165
|
* {isFromPrice ? 'From ' : ''}
|
|
173
166
|
* <span price={price} currencyCode={currencyCode} />
|
|
@@ -183,9 +176,7 @@ export declare const OrderLines: {
|
|
|
183
176
|
* - priceWithTax: The current price with tax
|
|
184
177
|
* - currencyCode: The currency code
|
|
185
178
|
* - isPromotion: Whether the price is a promotion
|
|
186
|
-
* - isCampaign: Whether the price is part of a campaign
|
|
187
179
|
* - isFromPrice: Whether the price is a "from" price
|
|
188
|
-
* - ordinaryPrice: The original price before campaign/promotion
|
|
189
180
|
*/
|
|
190
181
|
Price: {
|
|
191
182
|
({ children, withDiscountPrice, __scopeOrderLines, }: ScopedProps<OrderLinesPriceProps>): React.ReactNode;
|
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.7-0",
|
|
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.7-0",
|
|
15
|
+
"@haus-storefront-react/common-utils": "0.0.7-0",
|
|
16
|
+
"@haus-storefront-react/core": "0.0.7-0",
|
|
17
|
+
"@haus-storefront-react/hooks": "0.0.7-0",
|
|
18
|
+
"@haus-storefront-react/shared-types": "0.0.7-0"
|
|
19
19
|
}
|
|
20
20
|
}
|