@gem-sdk/plugin-cart-drawer 1.23.0-staging.376 → 1.23.0-staging.383
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/dist/cjs/components/CartFooter.js +1 -1
- package/dist/cjs/components/CartOrderNote.js +4 -4
- package/dist/cjs/components/DiscountCodeItem.js +1 -1
- package/dist/esm/components/CartFooter.js +1 -1
- package/dist/esm/components/CartOrderNote.js +4 -4
- package/dist/esm/components/DiscountCodeItem.js +1 -1
- package/package.json +4 -4
|
@@ -22,7 +22,7 @@ const CartFooter = ({ checkoutUrl, price, openMode })=>{
|
|
|
22
22
|
checkoutPopup.current = window.open(urlCheckout, 'checkout', `scrollbars=yes, width=${w / systemZoom}, height=${h / systemZoom}, top=${top}, left=${left}`);
|
|
23
23
|
checkoutPopup.current?.focus();
|
|
24
24
|
} else {
|
|
25
|
-
window.open(urlCheckout);
|
|
25
|
+
!!urlCheckout && window.open(urlCheckout);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
@@ -49,12 +49,12 @@ const CartOrderNote = ({ triggerUpdate, debounce, placeholder })=>{
|
|
|
49
49
|
onChange
|
|
50
50
|
};
|
|
51
51
|
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
52
|
-
className: "flex flex-col",
|
|
52
|
+
className: "gp-flex gp-flex-col",
|
|
53
53
|
children: [
|
|
54
54
|
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
55
|
-
className: "mb-4 border-b border-b-[#F1F3F4] pb-3",
|
|
55
|
+
className: "gp-mb-4 gp-border-b gp-border-b-[#F1F3F4] gp-pb-3",
|
|
56
56
|
children: /*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
57
|
-
className: "font-semibold text-[#424242]",
|
|
57
|
+
className: "gp-font-semibold gp-text-[#424242]",
|
|
58
58
|
children: "Order Note"
|
|
59
59
|
})
|
|
60
60
|
}),
|
|
@@ -62,7 +62,7 @@ const CartOrderNote = ({ triggerUpdate, debounce, placeholder })=>{
|
|
|
62
62
|
defaultValue: cart?.note,
|
|
63
63
|
placeholder: placeholder,
|
|
64
64
|
ref: textRef,
|
|
65
|
-
className: "w-full rounded border p-4 outline-none",
|
|
65
|
+
className: "gp-w-full gp-rounded gp-border gp-p-4 gp-outline-none",
|
|
66
66
|
...inputProps
|
|
67
67
|
})
|
|
68
68
|
]
|
|
@@ -101,7 +101,7 @@ const DiscountCodeItem = ({ item })=>{
|
|
|
101
101
|
/*#__PURE__*/ jsxRuntime.jsx("button", {
|
|
102
102
|
disabled: isMutating,
|
|
103
103
|
onClick: ()=>removeCode(item.code),
|
|
104
|
-
className: "gp-flex gp-aspect-square gp-h-full gp-items-center
|
|
104
|
+
className: "gp-flex gp-aspect-square gp-h-full gp-items-center gp-justify-center",
|
|
105
105
|
children: isMutating ? /*#__PURE__*/ jsxRuntime.jsx(LoadingIcon.default, {
|
|
106
106
|
className: "gp-text-g-brand"
|
|
107
107
|
}) : /*#__PURE__*/ jsxRuntime.jsx("svg", {
|
|
@@ -18,7 +18,7 @@ const CartFooter = ({ checkoutUrl, price, openMode })=>{
|
|
|
18
18
|
checkoutPopup.current = window.open(urlCheckout, 'checkout', `scrollbars=yes, width=${w / systemZoom}, height=${h / systemZoom}, top=${top}, left=${left}`);
|
|
19
19
|
checkoutPopup.current?.focus();
|
|
20
20
|
} else {
|
|
21
|
-
window.open(urlCheckout);
|
|
21
|
+
!!urlCheckout && window.open(urlCheckout);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
return /*#__PURE__*/ jsxs("div", {
|
|
@@ -45,12 +45,12 @@ const CartOrderNote = ({ triggerUpdate, debounce, placeholder })=>{
|
|
|
45
45
|
onChange
|
|
46
46
|
};
|
|
47
47
|
return /*#__PURE__*/ jsxs("div", {
|
|
48
|
-
className: "flex flex-col",
|
|
48
|
+
className: "gp-flex gp-flex-col",
|
|
49
49
|
children: [
|
|
50
50
|
/*#__PURE__*/ jsx("div", {
|
|
51
|
-
className: "mb-4 border-b border-b-[#F1F3F4] pb-3",
|
|
51
|
+
className: "gp-mb-4 gp-border-b gp-border-b-[#F1F3F4] gp-pb-3",
|
|
52
52
|
children: /*#__PURE__*/ jsx("span", {
|
|
53
|
-
className: "font-semibold text-[#424242]",
|
|
53
|
+
className: "gp-font-semibold gp-text-[#424242]",
|
|
54
54
|
children: "Order Note"
|
|
55
55
|
})
|
|
56
56
|
}),
|
|
@@ -58,7 +58,7 @@ const CartOrderNote = ({ triggerUpdate, debounce, placeholder })=>{
|
|
|
58
58
|
defaultValue: cart?.note,
|
|
59
59
|
placeholder: placeholder,
|
|
60
60
|
ref: textRef,
|
|
61
|
-
className: "w-full rounded border p-4 outline-none",
|
|
61
|
+
className: "gp-w-full gp-rounded gp-border gp-p-4 gp-outline-none",
|
|
62
62
|
...inputProps
|
|
63
63
|
})
|
|
64
64
|
]
|
|
@@ -97,7 +97,7 @@ const DiscountCodeItem = ({ item })=>{
|
|
|
97
97
|
/*#__PURE__*/ jsx("button", {
|
|
98
98
|
disabled: isMutating,
|
|
99
99
|
onClick: ()=>removeCode(item.code),
|
|
100
|
-
className: "gp-flex gp-aspect-square gp-h-full gp-items-center
|
|
100
|
+
className: "gp-flex gp-aspect-square gp-h-full gp-items-center gp-justify-center",
|
|
101
101
|
children: isMutating ? /*#__PURE__*/ jsx(LoadingIcon, {
|
|
102
102
|
className: "gp-text-g-brand"
|
|
103
103
|
}) : /*#__PURE__*/ jsx("svg", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/plugin-cart-drawer",
|
|
3
|
-
"version": "1.23.0-staging.
|
|
3
|
+
"version": "1.23.0-staging.383",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"test": "jest -c ./../../helpers/jest.config.ts"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@gem-sdk/components": "1.23.0-staging.
|
|
23
|
-
"@gem-sdk/core": "1.23.0-staging.
|
|
24
|
-
"@gem-sdk/styles": "1.23.0-staging.
|
|
22
|
+
"@gem-sdk/components": "1.23.0-staging.384",
|
|
23
|
+
"@gem-sdk/core": "1.23.0-staging.384",
|
|
24
|
+
"@gem-sdk/styles": "1.23.0-staging.383"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^17 || ^18",
|