s-platform-landing-section 0.1.7 → 0.1.9
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 +10 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -3
- 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,10 @@ 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
|
+
var _state$counter;
|
|
138
|
+
return state === null || state === void 0 ? void 0 : (_state$counter = state.counter) === null || _state$counter === void 0 ? void 0 : _state$counter.value;
|
|
139
|
+
});
|
|
132
140
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
133
141
|
className: "relative w-full bg-cover bg-center bg-no-repeat ",
|
|
134
142
|
style: {
|
|
@@ -6683,7 +6691,6 @@ var Features1 = function Features1(props) {
|
|
|
6683
6691
|
textBody = _shopConfigStyle$colo4 === void 0 ? "#000" : _shopConfigStyle$colo4,
|
|
6684
6692
|
_shopConfigStyle$colo5 = _shopConfigStyle$colo.background,
|
|
6685
6693
|
background = _shopConfigStyle$colo5 === void 0 ? "#fff" : _shopConfigStyle$colo5;
|
|
6686
|
-
console.log("Features1 data", data);
|
|
6687
6694
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
6688
6695
|
className: "relative w-full py-12 px-4 xl:px-20",
|
|
6689
6696
|
style: {
|