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.modern.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useRef, createElement, forwardRef, useImperativeHandle } from 'react';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
2
3
|
import { FaPhone, FaChevronLeft, FaChevronRight, FaArrowLeft, FaArrowRight as FaArrowRight$1, FaFacebookSquare, FaFacebookMessenger } from 'react-icons/fa';
|
|
3
4
|
import { IoLocationOutline } from 'react-icons/io5';
|
|
4
5
|
import { PiHandbagSimpleLight } from 'react-icons/pi';
|
|
@@ -109,7 +110,9 @@ var Button = function Button(props) {
|
|
|
109
110
|
_props$style = props.style,
|
|
110
111
|
style = _props$style === void 0 ? {} : _props$style,
|
|
111
112
|
_props$shopConfigStyl = props.shopConfigStyle,
|
|
112
|
-
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl
|
|
113
|
+
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
114
|
+
_props$onClick = props.onClick,
|
|
115
|
+
onClick = _props$onClick === void 0 ? function () {} : _props$onClick;
|
|
113
116
|
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;
|
|
114
117
|
var _style = _extends({
|
|
115
118
|
backgroundColor: shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : (_shopConfigStyle$colo = shopConfigStyle.color) === null || _shopConfigStyle$colo === void 0 ? void 0 : _shopConfigStyle$colo.primary
|
|
@@ -117,7 +120,8 @@ var Button = function Button(props) {
|
|
|
117
120
|
return /*#__PURE__*/React__default.createElement("button", {
|
|
118
121
|
type: "button",
|
|
119
122
|
className: _className,
|
|
120
|
-
style: _style
|
|
123
|
+
style: _style,
|
|
124
|
+
onClick: onClick
|
|
121
125
|
}, label);
|
|
122
126
|
};
|
|
123
127
|
|
|
@@ -126,6 +130,10 @@ var Hero10 = function Hero10(props) {
|
|
|
126
130
|
var shopConfigStyle = props.shopConfigStyle,
|
|
127
131
|
data = props.data;
|
|
128
132
|
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
133
|
+
var count = useSelector(function (state) {
|
|
134
|
+
var _state$counter;
|
|
135
|
+
return state === null || state === void 0 ? void 0 : (_state$counter = state.counter) === null || _state$counter === void 0 ? void 0 : _state$counter.value;
|
|
136
|
+
});
|
|
129
137
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
130
138
|
className: "relative w-full bg-cover bg-center bg-no-repeat ",
|
|
131
139
|
style: {
|
|
@@ -6680,7 +6688,6 @@ var Features1 = function Features1(props) {
|
|
|
6680
6688
|
textBody = _shopConfigStyle$colo4 === void 0 ? "#000" : _shopConfigStyle$colo4,
|
|
6681
6689
|
_shopConfigStyle$colo5 = _shopConfigStyle$colo.background,
|
|
6682
6690
|
background = _shopConfigStyle$colo5 === void 0 ? "#fff" : _shopConfigStyle$colo5;
|
|
6683
|
-
console.log("Features1 data", data);
|
|
6684
6691
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
6685
6692
|
className: "relative w-full py-12 px-4 xl:px-20",
|
|
6686
6693
|
style: {
|