s-platform-landing-section 0.1.6 → 0.1.8
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/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +15 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +7 -2
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var React__default = _interopDefault(React);
|
|
5
|
+
var reactRedux = require('react-redux');
|
|
5
6
|
var fa = require('react-icons/fa');
|
|
6
7
|
var io5 = require('react-icons/io5');
|
|
7
8
|
var pi = require('react-icons/pi');
|
|
@@ -112,7 +113,9 @@ var Button = function Button(props) {
|
|
|
112
113
|
_props$style = props.style,
|
|
113
114
|
style = _props$style === void 0 ? {} : _props$style,
|
|
114
115
|
_props$shopConfigStyl = props.shopConfigStyle,
|
|
115
|
-
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl
|
|
116
|
+
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
117
|
+
_props$onClick = props.onClick,
|
|
118
|
+
onClick = _props$onClick === void 0 ? function () {} : _props$onClick;
|
|
116
119
|
var _className = "text-white font-medium rounded-lg text-sm px-4 py-2.5 " + ((shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.buttonClass) || "") + " " + className;
|
|
117
120
|
var _style = _extends({
|
|
118
121
|
backgroundColor: shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : (_shopConfigStyle$colo = shopConfigStyle.color) === null || _shopConfigStyle$colo === void 0 ? void 0 : _shopConfigStyle$colo.primary
|
|
@@ -120,7 +123,8 @@ var Button = function Button(props) {
|
|
|
120
123
|
return /*#__PURE__*/React__default.createElement("button", {
|
|
121
124
|
type: "button",
|
|
122
125
|
className: _className,
|
|
123
|
-
style: _style
|
|
126
|
+
style: _style,
|
|
127
|
+
onClick: onClick
|
|
124
128
|
}, label);
|
|
125
129
|
};
|
|
126
130
|
|
|
@@ -129,6 +133,9 @@ var Hero10 = function Hero10(props) {
|
|
|
129
133
|
var shopConfigStyle = props.shopConfigStyle,
|
|
130
134
|
data = props.data;
|
|
131
135
|
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
136
|
+
var count = reactRedux.useSelector(function (state) {
|
|
137
|
+
return state.counter.value;
|
|
138
|
+
});
|
|
132
139
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
133
140
|
className: "relative w-full bg-cover bg-center bg-no-repeat ",
|
|
134
141
|
style: {
|
|
@@ -6683,7 +6690,6 @@ var Features1 = function Features1(props) {
|
|
|
6683
6690
|
textBody = _shopConfigStyle$colo4 === void 0 ? "#000" : _shopConfigStyle$colo4,
|
|
6684
6691
|
_shopConfigStyle$colo5 = _shopConfigStyle$colo.background,
|
|
6685
6692
|
background = _shopConfigStyle$colo5 === void 0 ? "#fff" : _shopConfigStyle$colo5;
|
|
6686
|
-
console.log("Features1 data", data);
|
|
6687
6693
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
6688
6694
|
className: "relative w-full py-12 px-4 xl:px-20",
|
|
6689
6695
|
style: {
|
|
@@ -6941,14 +6947,16 @@ var Treatments1 = function Treatments1(props) {
|
|
|
6941
6947
|
textBody = _shopConfigStyle$colo4 === void 0 ? "#000" : _shopConfigStyle$colo4,
|
|
6942
6948
|
_shopConfigStyle$colo5 = _shopConfigStyle$colo.background,
|
|
6943
6949
|
background = _shopConfigStyle$colo5 === void 0 ? "#fff" : _shopConfigStyle$colo5;
|
|
6950
|
+
var _useState = React.useState({
|
|
6951
|
+
size: 1
|
|
6952
|
+
}),
|
|
6953
|
+
params = _useState[0];
|
|
6944
6954
|
var _ProductController = ProductController(_extends({}, props, {
|
|
6945
|
-
params:
|
|
6946
|
-
size: 1
|
|
6947
|
-
}
|
|
6955
|
+
params: params
|
|
6948
6956
|
})),
|
|
6949
6957
|
_ProductController$pr = _ProductController.products,
|
|
6950
6958
|
products = _ProductController$pr === void 0 ? [] : _ProductController$pr;
|
|
6951
|
-
console.log("Treatments1 products");
|
|
6959
|
+
console.log("Treatments1 products 1", products);
|
|
6952
6960
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
6953
6961
|
className: "relative w-full py-12 px-4 xl:px-20",
|
|
6954
6962
|
style: {
|