@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/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DzCaUD6B.js");exports.OrderLines=e.OrderLines;exports.createOrderLinesScope=e.createOrderLinesScope;exports.useOrderLinesProps=e.useOrderLinesProps;
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
@@ -1,4 +1,4 @@
1
- import { O as s, a, u as o } from "./index-D2_CE4Nu.mjs";
1
+ import { O as s, a, u as o } from "./index-B22_dC8X.mjs";
2
2
  export {
3
3
  s as OrderLines,
4
4
  a as createOrderLinesScope,
@@ -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
- interface OrderLineQuantityProps extends AsChildProps {
40
- min?: number;
41
- max?: number;
42
- step?: number;
43
- }
40
+ type OrderLineQuantityProps = Omit<QuantityButtonsRootProps, 'value' | 'onValueChange'>;
44
41
  interface OrderLinesPriceProps {
45
- children?: (props: {
42
+ children?: ChildrenProps<{
46
43
  price: PriceType;
47
44
  priceWithTax: PriceType;
48
45
  currencyCode: CurrencyCode;
49
46
  isPromotion: boolean;
50
47
  isFromPrice: boolean;
51
- }) => React.ReactNode;
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, className, asChild, __scopeQuantityButtons, ...props }: import('@haus-storefront-react/common-ui').QuantityButtonsDecrementProps & {
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
- ({ className, asChild, __scopeQuantityButtons, ...props }: import('@haus-storefront-react/common-ui').QuantityButtonsInputProps & {
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.16",
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.16",
15
- "@haus-storefront-react/common-utils": "0.0.16",
16
- "@haus-storefront-react/core": "0.0.16",
17
- "@haus-storefront-react/hooks": "0.0.16",
18
- "@haus-storefront-react/shared-types": "0.0.16"
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
  }