@plurix/ecom-components 1.14.1-bugfix-1891.0 → 1.14.1-bugfix-1891.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,51 +1,52 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { useEffect as p } from "react";
3
- import { Title as f } from "../components/Title.js";
1
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
+ import { useEffect as f } from "react";
3
+ import { Title as d } from "../components/Title.js";
4
4
  import { SetViewButton as n } from "../components/SetViewButton.js";
5
- import { ArrowIcon as d } from "../../../assets/svgs/ArrowIcon.js";
6
- import { ShoppingBagsIcon as h } from "../../../assets/svgs/ShoppingBagsIcon.js";
7
- import { ShoppingIcon as v } from "../../../assets/svgs/ShoppingIcon.js";
8
- import { useRegionalizationContext as u } from "../context/RegionalizationContext.js";
9
- import { formatPrice as I } from "../utils/formatPrice.js";
10
- const C = () => {
5
+ import { ArrowIcon as h } from "../../../assets/svgs/ArrowIcon.js";
6
+ import { ShoppingBagsIcon as v } from "../../../assets/svgs/ShoppingBagsIcon.js";
7
+ import { ShoppingIcon as u } from "../../../assets/svgs/ShoppingIcon.js";
8
+ import { useRegionalizationContext as I } from "../context/RegionalizationContext.js";
9
+ import { formatPrice as S } from "../utils/formatPrice.js";
10
+ const y = () => {
11
11
  const {
12
- titleText: a,
12
+ titleText: c,
13
13
  moreInfosText: l,
14
- deliveryPrice: t,
15
- priceStockInformation: m,
16
- backToDelivery: c,
17
- setBackToDelivery: r,
14
+ deliveryPrice: r,
15
+ priceStockInformation: a,
16
+ backToDelivery: s,
17
+ setBackToDelivery: t,
18
18
  status: i,
19
- setStatus: s
20
- } = u();
21
- return p(() => {
22
- c && (r == null || r(!1)), (i == null ? void 0 : i.status) === "failed" && s({});
23
- }, [c, i]), /* @__PURE__ */ o("div", { className: "inital-view-container", children: [
24
- /* @__PURE__ */ e(f, { title: a }),
25
- /* @__PURE__ */ e("p", { className: "price-stock-information", children: m }),
26
- /* @__PURE__ */ o(n, { view: "MoreInfosScreen", className: "more-infos-button", children: [
19
+ setStatus: m,
20
+ postalCode: p
21
+ } = I();
22
+ return console.log("sbs deliveryPrice", r), console.log("sbs status", i), console.log("sbs postalCode", p), f(() => {
23
+ s && (t == null || t(!1)), (i == null ? void 0 : i.status) === "failed" && m({});
24
+ }, [s, i]), /* @__PURE__ */ e("div", { className: "inital-view-container", children: [
25
+ /* @__PURE__ */ o(d, { title: c }),
26
+ /* @__PURE__ */ o("p", { className: "price-stock-information", children: a }),
27
+ /* @__PURE__ */ e(n, { view: "MoreInfosScreen", className: "more-infos-button", children: [
27
28
  l,
28
- /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(d, { color: "var(--color-main)" }) })
29
+ /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(h, { color: "var(--color-main)" }) })
29
30
  ] }),
30
- /* @__PURE__ */ o("div", { className: "delivery-option-container", children: [
31
- /* @__PURE__ */ o(n, { view: "PostalCodeInputScreen", className: "option", children: [
32
- /* @__PURE__ */ e(h, {}),
33
- /* @__PURE__ */ e("h4", { children: "Receber em casa" }),
34
- /* @__PURE__ */ o("p", { children: [
31
+ /* @__PURE__ */ e("div", { className: "delivery-option-container", children: [
32
+ /* @__PURE__ */ e(n, { view: "PostalCodeInputScreen", className: "option", children: [
33
+ /* @__PURE__ */ o(v, {}),
34
+ /* @__PURE__ */ o("h4", { children: "Receber em casa" }),
35
+ /* @__PURE__ */ e("p", { children: [
35
36
  " ",
36
37
  "A partir de",
37
38
  " ",
38
- t ? I(t) : "Consulte o valor"
39
+ r ? S(r) : "Consulte o valor"
39
40
  ] })
40
41
  ] }),
41
- /* @__PURE__ */ o(n, { view: "PickupPointInfoScreen", className: "option", children: [
42
- /* @__PURE__ */ e(v, {}),
43
- /* @__PURE__ */ e("h4", { children: "Retirar na Loja" }),
44
- /* @__PURE__ */ e("p", { children: " Grátis" })
42
+ /* @__PURE__ */ e(n, { view: "PickupPointInfoScreen", className: "option", children: [
43
+ /* @__PURE__ */ o(u, {}),
44
+ /* @__PURE__ */ o("h4", { children: "Retirar na Loja" }),
45
+ /* @__PURE__ */ o("p", { children: " Grátis" })
45
46
  ] })
46
47
  ] })
47
48
  ] });
48
49
  };
49
50
  export {
50
- C as InitialView
51
+ y as InitialView
51
52
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@plurix/ecom-components",
3
3
  "author": "Plurix",
4
4
  "private": false,
5
- "version": "1.14.1-bugfix-1891.0",
5
+ "version": "1.14.1-bugfix-1891.1",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",