@gem-sdk/plugin-sticky-add-to-cart 1.11.1-d738d93-d738d933 → 1.11.1-experimental-f662f2d9
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/StickyAddToCart.js +2 -28
- package/dist/cjs/setting/StickyAddToCart.js +1 -1
- package/dist/cjs/setting/index.js +1 -3
- package/dist/esm/components/StickyAddToCart.js +2 -28
- package/dist/esm/setting/StickyAddToCart.js +1 -1
- package/dist/esm/setting/index.js +1 -3
- package/package.json +4 -4
|
@@ -5,34 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var components = require('@gem-sdk/components');
|
|
7
7
|
|
|
8
|
-
const StickyAddToCart = ()=>{
|
|
9
|
-
return
|
|
10
|
-
className: "fixed inset-x-0 bottom-0 z-90 flex items-center gap-4 bg-white p-4",
|
|
11
|
-
children: [
|
|
12
|
-
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
13
|
-
className: "w-20",
|
|
14
|
-
children: /*#__PURE__*/ jsxRuntime.jsx(components.ProductImages, {})
|
|
15
|
-
}),
|
|
16
|
-
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
17
|
-
className: "flex flex-col gap-2",
|
|
18
|
-
children: [
|
|
19
|
-
/*#__PURE__*/ jsxRuntime.jsx(components.ProductTitle, {}),
|
|
20
|
-
/*#__PURE__*/ jsxRuntime.jsx(components.ProductPrice, {})
|
|
21
|
-
]
|
|
22
|
-
}),
|
|
23
|
-
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
24
|
-
className: "ml-auto flex gap-4",
|
|
25
|
-
children: [
|
|
26
|
-
/*#__PURE__*/ jsxRuntime.jsx(components.ProductQuantity, {}),
|
|
27
|
-
/*#__PURE__*/ jsxRuntime.jsx(components.ProductButton, {
|
|
28
|
-
setting: {
|
|
29
|
-
actionEffect: 'open-cart-drawer'
|
|
30
|
-
}
|
|
31
|
-
})
|
|
32
|
-
]
|
|
33
|
-
})
|
|
34
|
-
]
|
|
35
|
-
});
|
|
8
|
+
const StickyAddToCart = () => {
|
|
9
|
+
return (jsxRuntime.jsxs("div", { className: "fixed inset-x-0 bottom-0 z-90 flex items-center gap-4 bg-white p-4", children: [jsxRuntime.jsx("div", { className: "w-20", children: jsxRuntime.jsx(components.ProductImages, {}) }), jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [jsxRuntime.jsx(components.ProductTitle, {}), jsxRuntime.jsx(components.ProductPrice, {})] }), jsxRuntime.jsxs("div", { className: "ml-auto flex gap-4", children: [jsxRuntime.jsx(components.ProductQuantity, {}), jsxRuntime.jsx(components.ProductButton, { setting: { actionEffect: 'open-cart-drawer' } })] })] }));
|
|
36
10
|
};
|
|
37
11
|
StickyAddToCart.defaultProps = {};
|
|
38
12
|
|
|
@@ -4,8 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var StickyAddToCart = require('./StickyAddToCart.js');
|
|
6
6
|
|
|
7
|
-
var index = {
|
|
8
|
-
StickyAddToCart: StickyAddToCart.default
|
|
9
|
-
};
|
|
7
|
+
var index = { StickyAddToCart: StickyAddToCart.default };
|
|
10
8
|
|
|
11
9
|
exports.default = index;
|
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { ProductImages, ProductTitle, ProductPrice, ProductQuantity, ProductButton } from '@gem-sdk/components';
|
|
3
3
|
|
|
4
|
-
const StickyAddToCart = ()=>{
|
|
5
|
-
return
|
|
6
|
-
className: "fixed inset-x-0 bottom-0 z-90 flex items-center gap-4 bg-white p-4",
|
|
7
|
-
children: [
|
|
8
|
-
/*#__PURE__*/ jsx("div", {
|
|
9
|
-
className: "w-20",
|
|
10
|
-
children: /*#__PURE__*/ jsx(ProductImages, {})
|
|
11
|
-
}),
|
|
12
|
-
/*#__PURE__*/ jsxs("div", {
|
|
13
|
-
className: "flex flex-col gap-2",
|
|
14
|
-
children: [
|
|
15
|
-
/*#__PURE__*/ jsx(ProductTitle, {}),
|
|
16
|
-
/*#__PURE__*/ jsx(ProductPrice, {})
|
|
17
|
-
]
|
|
18
|
-
}),
|
|
19
|
-
/*#__PURE__*/ jsxs("div", {
|
|
20
|
-
className: "ml-auto flex gap-4",
|
|
21
|
-
children: [
|
|
22
|
-
/*#__PURE__*/ jsx(ProductQuantity, {}),
|
|
23
|
-
/*#__PURE__*/ jsx(ProductButton, {
|
|
24
|
-
setting: {
|
|
25
|
-
actionEffect: 'open-cart-drawer'
|
|
26
|
-
}
|
|
27
|
-
})
|
|
28
|
-
]
|
|
29
|
-
})
|
|
30
|
-
]
|
|
31
|
-
});
|
|
4
|
+
const StickyAddToCart = () => {
|
|
5
|
+
return (jsxs("div", { className: "fixed inset-x-0 bottom-0 z-90 flex items-center gap-4 bg-white p-4", children: [jsx("div", { className: "w-20", children: jsx(ProductImages, {}) }), jsxs("div", { className: "flex flex-col gap-2", children: [jsx(ProductTitle, {}), jsx(ProductPrice, {})] }), jsxs("div", { className: "ml-auto flex gap-4", children: [jsx(ProductQuantity, {}), jsx(ProductButton, { setting: { actionEffect: 'open-cart-drawer' } })] })] }));
|
|
32
6
|
};
|
|
33
7
|
StickyAddToCart.defaultProps = {};
|
|
34
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/plugin-sticky-add-to-cart",
|
|
3
|
-
"version": "1.11.1-
|
|
3
|
+
"version": "1.11.1-experimental-f662f2d9",
|
|
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.12.0-
|
|
23
|
-
"@gem-sdk/core": "1.
|
|
24
|
-
"@gem-sdk/styles": "1.
|
|
22
|
+
"@gem-sdk/components": "1.12.0-experimental-f662f2d9",
|
|
23
|
+
"@gem-sdk/core": "1.12.0-experimental-f662f2d9",
|
|
24
|
+
"@gem-sdk/styles": "1.12.0-experimental-f662f2d9"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^17 || ^18",
|