@haus-storefront-react/order-lines 0.0.6-0 → 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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { O as s, a, u as o } from "./index-BnqALv6w.mjs";
1
+ import { O as s, a, u as o } from "./index-DK_plH4g.mjs";
2
2
  export {
3
3
  s as OrderLines,
4
4
  a as createOrderLinesScope,
@@ -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, isCampaign, ordinaryPrice }) => (
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.6-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.6-0",
15
- "@haus-storefront-react/common-utils": "0.0.6-0",
16
- "@haus-storefront-react/core": "0.0.6-0",
17
- "@haus-storefront-react/hooks": "0.0.6-0",
18
- "@haus-storefront-react/shared-types": "0.0.6-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
  }