@citygross/components_v2 0.1.0 → 0.1.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.
@@ -1,25 +1,25 @@
1
1
  import { TSummaryItem } from '../CartItemSummary/CartItemSummary.js';
2
2
 
3
3
  declare type TCartSummary = {
4
- title?: string;
5
- subTitle?: string;
6
4
  bags?: TSummaryItem[];
7
- groceries?: TSummaryItem[];
8
- charges?: TSummaryItem[];
9
5
  cateredMeals?: TSummaryItem[];
6
+ charges?: TSummaryItem[];
10
7
  deliveryFee?: {
11
8
  amount: number;
12
9
  taxAmount: number;
13
10
  taxPercentage: number;
14
11
  totalDiscountAmount: number;
15
12
  };
13
+ groceries?: TSummaryItem[];
14
+ saveLabel?: string;
15
+ shippingLabel?: string;
16
+ subtitle?: string;
17
+ taxLabel?: string;
18
+ title?: string;
16
19
  totalAmount: number;
17
20
  totalDiscount: number;
18
- totalTaxAmount: number;
19
21
  totalLabel?: string;
20
- taxLabel?: string;
21
- shippingLabel?: string;
22
- saveLabel?: string;
22
+ totalTaxAmount: number;
23
23
  };
24
24
  declare function CartSummary({ saveLabel, shippingLabel, totalLabel, taxLabel, ...cartSummary }: TCartSummary): JSX.Element;
25
25
 
@@ -38,7 +38,7 @@ function CartSummary({
38
38
  const sumOfBags = calculateSummaryLine(bags);
39
39
  const sumOfGroceries = calculateSummaryLine(groceries);
40
40
  const sumOfCateredMeals = calculateSummaryLine(cateredMeals);
41
- return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", { className: cartPaymentContainer }, cartSummary.title && /* @__PURE__ */ React.createElement("div", { className: cartSummaryTitle }, /* @__PURE__ */ React.createElement(H3, null, cartSummary.title), /* @__PURE__ */ React.createElement(BodyText, null, cartSummary.subTitle)), /* @__PURE__ */ React.createElement(
41
+ return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", { className: cartPaymentContainer }, cartSummary.title && /* @__PURE__ */ React.createElement("div", { className: cartSummaryTitle }, /* @__PURE__ */ React.createElement(H3, null, cartSummary.title), /* @__PURE__ */ React.createElement(BodyText, null, cartSummary.subtitle)), /* @__PURE__ */ React.createElement(
42
42
  "div",
43
43
  {
44
44
  className: cartSummaryHeader({
@@ -10,7 +10,7 @@ declare type TModal = {
10
10
  isConfirm?: boolean;
11
11
  onBackdropClick?: () => void;
12
12
  querySelector?: string;
13
- subTitle?: string;
13
+ subtitle?: string;
14
14
  title?: string;
15
15
  };
16
16
  declare const Modal: React.ForwardRefExoticComponent<TModal & React.RefAttributes<HTMLDivElement>>;
@@ -16,7 +16,7 @@ const Modal = forwardRef(
16
16
  isConfirm,
17
17
  onBackdropClick,
18
18
  querySelector = "#root",
19
- subTitle,
19
+ subtitle,
20
20
  title
21
21
  }, ref) => {
22
22
  const domSafe = typeof document !== "undefined";
@@ -46,7 +46,7 @@ const Modal = forwardRef(
46
46
  onClick: () => onBackdropClick && onBackdropClick()
47
47
  },
48
48
  /* @__PURE__ */ React.createElement(Icons.Cross, null)
49
- )), /* @__PURE__ */ React.createElement(BodyText, null, subTitle)),
49
+ )), /* @__PURE__ */ React.createElement(BodyText, null, subtitle)),
50
50
  children && /* @__PURE__ */ React.createElement("div", { className: childrenWrapper }, children),
51
51
  footer && /* @__PURE__ */ React.createElement(Fragment, null, /* @__PURE__ */ React.createElement(Spacer, null), /* @__PURE__ */ React.createElement("div", { className: footerWrapper }, footer))
52
52
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components_v2",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -77,5 +77,5 @@
77
77
  "react-slick": "^0.30.1",
78
78
  "slick-carousel": "^1.8.1"
79
79
  },
80
- "gitHead": "9689ed1055a89211b68777d29774bc3be1801ecb"
80
+ "gitHead": "6503b270afca2c157181872678b8e18314d99971"
81
81
  }