@shopflowateam/ui 1.0.9 → 1.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.
- package/package.json +1 -1
- package/pkg/index.cjs.js +2 -2
- package/pkg/index.es.js +3 -3
package/package.json
CHANGED
package/pkg/index.cjs.js
CHANGED
|
@@ -9,7 +9,7 @@ const formatCurrency = (amountInCents) => {
|
|
|
9
9
|
currency: "USD"
|
|
10
10
|
}).format((amountInCents || 0) / 100);
|
|
11
11
|
};
|
|
12
|
-
const ProductCardQwik = qwik.
|
|
12
|
+
const ProductCardQwik = qwik.componentQrl(qwik.inlinedQrl(({ product }) => {
|
|
13
13
|
const formattedPrice = formatCurrency(product.price);
|
|
14
14
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
15
15
|
class: "group h-full flex flex-col [container-type:inline-size]",
|
|
@@ -57,7 +57,7 @@ const ProductCardQwik = qwik.component$(({ product }) => {
|
|
|
57
57
|
})
|
|
58
58
|
]
|
|
59
59
|
});
|
|
60
|
-
});
|
|
60
|
+
}, "ProductCard_onRender"));
|
|
61
61
|
qwikReact.qwikify$(ProductCardQwik, {
|
|
62
62
|
eagerness: "hover"
|
|
63
63
|
});
|
package/pkg/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { componentQrl, inlinedQrl } from "@builder.io/qwik";
|
|
3
3
|
import { qwikify$ } from "@builder.io/qwik-react";
|
|
4
4
|
const formatCurrency = (amountInCents) => {
|
|
5
5
|
return new Intl.NumberFormat("en-US", {
|
|
@@ -7,7 +7,7 @@ const formatCurrency = (amountInCents) => {
|
|
|
7
7
|
currency: "USD"
|
|
8
8
|
}).format((amountInCents || 0) / 100);
|
|
9
9
|
};
|
|
10
|
-
const ProductCardQwik =
|
|
10
|
+
const ProductCardQwik = componentQrl(inlinedQrl(({ product }) => {
|
|
11
11
|
const formattedPrice = formatCurrency(product.price);
|
|
12
12
|
return /* @__PURE__ */ jsxs("div", {
|
|
13
13
|
class: "group h-full flex flex-col [container-type:inline-size]",
|
|
@@ -55,7 +55,7 @@ const ProductCardQwik = component$(({ product }) => {
|
|
|
55
55
|
})
|
|
56
56
|
]
|
|
57
57
|
});
|
|
58
|
-
});
|
|
58
|
+
}, "ProductCard_onRender"));
|
|
59
59
|
qwikify$(ProductCardQwik, {
|
|
60
60
|
eagerness: "hover"
|
|
61
61
|
});
|