@sentecacommerce-theme/lib 0.12.93 → 0.12.94
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/navigation/components/SearchBox/Components/EmptyBox/index.js +7 -7
- package/dist/cjs/navigation/components/SearchBox/index.js +4 -4
- package/dist/esm/navigation/components/SearchBox/Components/EmptyBox/index.js +7 -7
- package/dist/esm/navigation/components/SearchBox/index.js +4 -4
- package/dist/types/navigation/components/SearchBox/Components/EmptyBox/index.d.ts +5 -4
- package/dist/types/navigation/components/SearchBox/index.d.ts +7 -6
- package/package.json +4 -4
@@ -89,38 +89,38 @@ var EmptyBox = function(param) {
|
|
89
89
|
textColor: textColor || '',
|
90
90
|
onClose: onClose
|
91
91
|
})), /*#__PURE__*/ _react.default.createElement(SuggestedSearches, null, canDisplayPopular && /*#__PURE__*/ _react.default.createElement(_.PopularSearches, {
|
92
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
92
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.popularSearches) || '',
|
93
93
|
onClose: onClose,
|
94
94
|
textColor: textColor || '',
|
95
95
|
labelsColor: labelsColor || ''
|
96
96
|
}), withRecent && canDisplayRecent && /*#__PURE__*/ _react.default.createElement(_.RecentSearches, {
|
97
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
97
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.recentSearches) || '',
|
98
98
|
data: searchHistory,
|
99
99
|
onClose: onClose,
|
100
100
|
textColor: textColor || '',
|
101
101
|
labelsColor: labelsColor || ''
|
102
102
|
}))) : /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement(_.Container, {
|
103
103
|
labelsColor: labelsColor,
|
104
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
104
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.products) || '',
|
105
105
|
onlyMobile: true
|
106
106
|
}, /*#__PURE__*/ _react.default.createElement(NoResultsDesc, {
|
107
107
|
className: "SEARCH_BOX_NO_RESULT"
|
108
|
-
},
|
108
|
+
}, labels === null || labels === void 0 ? void 0 : labels.noResults)), /*#__PURE__*/ _react.default.createElement(PromoCol, {
|
109
109
|
backgroundColor: backgroundColor
|
110
110
|
}, /*#__PURE__*/ _react.default.createElement(_.Products, {
|
111
111
|
data: promoOffers,
|
112
112
|
textColor: textColor || '',
|
113
113
|
labelsColor: labelsColor || '',
|
114
114
|
onClose: onClose,
|
115
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
115
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.promoOffers) || '',
|
116
116
|
offers: true
|
117
117
|
})), /*#__PURE__*/ _react.default.createElement(_.Container, {
|
118
118
|
labelsColor: labelsColor,
|
119
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
119
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.products) || '',
|
120
120
|
onlyDesktop: true
|
121
121
|
}, /*#__PURE__*/ _react.default.createElement(NoResultsDesc, {
|
122
122
|
className: "SEARCH_BOX_NO_RESULT"
|
123
|
-
},
|
123
|
+
}, labels === null || labels === void 0 ? void 0 : labels.noResults))))));
|
124
124
|
};
|
125
125
|
exports.EmptyBox = EmptyBox;
|
126
126
|
var Wrapper = _styledComponents.default.div.attrs({
|
@@ -203,14 +203,14 @@ var SearchBox = function(param) {
|
|
203
203
|
data: displayableBrands,
|
204
204
|
onClose: onClose,
|
205
205
|
searchValue: searchValue || '',
|
206
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
206
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.suggestedBrands) || '',
|
207
207
|
labelsColor: labelsColor || '',
|
208
208
|
textColor: textColor || ''
|
209
209
|
})), suggestedCategories.length > 0 && /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement(_components.Suggestions, {
|
210
210
|
data: suggestedCategories,
|
211
211
|
onClose: onClose,
|
212
212
|
searchValue: searchValue || '',
|
213
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
213
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.suggestedCategories) || '',
|
214
214
|
labelsColor: labelsColor || '',
|
215
215
|
textColor: textColor || ''
|
216
216
|
}))), /*#__PURE__*/ _react.default.createElement(ProductsWrapper, {
|
@@ -218,7 +218,7 @@ var SearchBox = function(param) {
|
|
218
218
|
}, /*#__PURE__*/ _react.default.createElement(_components.Products, {
|
219
219
|
data: suggestions,
|
220
220
|
bottomMenu: bottomMenu,
|
221
|
-
title: labels === null || labels === void 0 ? void 0 : labels.
|
221
|
+
title: labels === null || labels === void 0 ? void 0 : labels.products,
|
222
222
|
priceColor: priceColor,
|
223
223
|
labelsColor: labelsColor,
|
224
224
|
textColor: textColor,
|
@@ -227,7 +227,7 @@ var SearchBox = function(param) {
|
|
227
227
|
productSpacing: productSpacing
|
228
228
|
}), bottomMenu === BottomMenuEnum.promo && promoOffers && /*#__PURE__*/ _react.default.createElement(_components.Products, {
|
229
229
|
data: promoOffers,
|
230
|
-
title: labels.
|
230
|
+
title: labels.promoOffers,
|
231
231
|
labelsColor: labelsColor,
|
232
232
|
textColor: textColor,
|
233
233
|
onClose: onClose,
|
@@ -80,38 +80,38 @@ export var EmptyBox = function(param) {
|
|
80
80
|
textColor: textColor || '',
|
81
81
|
onClose: onClose
|
82
82
|
})), /*#__PURE__*/ React.createElement(SuggestedSearches, null, canDisplayPopular && /*#__PURE__*/ React.createElement(PopularSearches, {
|
83
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
83
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.popularSearches) || '',
|
84
84
|
onClose: onClose,
|
85
85
|
textColor: textColor || '',
|
86
86
|
labelsColor: labelsColor || ''
|
87
87
|
}), withRecent && canDisplayRecent && /*#__PURE__*/ React.createElement(RecentSearches, {
|
88
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
88
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.recentSearches) || '',
|
89
89
|
data: searchHistory,
|
90
90
|
onClose: onClose,
|
91
91
|
textColor: textColor || '',
|
92
92
|
labelsColor: labelsColor || ''
|
93
93
|
}))) : /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Container, {
|
94
94
|
labelsColor: labelsColor,
|
95
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
95
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.products) || '',
|
96
96
|
onlyMobile: true
|
97
97
|
}, /*#__PURE__*/ React.createElement(NoResultsDesc, {
|
98
98
|
className: "SEARCH_BOX_NO_RESULT"
|
99
|
-
},
|
99
|
+
}, labels === null || labels === void 0 ? void 0 : labels.noResults)), /*#__PURE__*/ React.createElement(PromoCol, {
|
100
100
|
backgroundColor: backgroundColor
|
101
101
|
}, /*#__PURE__*/ React.createElement(Products, {
|
102
102
|
data: promoOffers,
|
103
103
|
textColor: textColor || '',
|
104
104
|
labelsColor: labelsColor || '',
|
105
105
|
onClose: onClose,
|
106
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
106
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.promoOffers) || '',
|
107
107
|
offers: true
|
108
108
|
})), /*#__PURE__*/ React.createElement(Container, {
|
109
109
|
labelsColor: labelsColor,
|
110
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
110
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.products) || '',
|
111
111
|
onlyDesktop: true
|
112
112
|
}, /*#__PURE__*/ React.createElement(NoResultsDesc, {
|
113
113
|
className: "SEARCH_BOX_NO_RESULT"
|
114
|
-
},
|
114
|
+
}, labels === null || labels === void 0 ? void 0 : labels.noResults))))));
|
115
115
|
};
|
116
116
|
var Wrapper = styled.div.attrs({
|
117
117
|
className: 'd-flex flex-column flex-lg-row mx-lg-auto '
|
@@ -173,14 +173,14 @@ export var SearchBox = function(param) {
|
|
173
173
|
data: displayableBrands,
|
174
174
|
onClose: onClose,
|
175
175
|
searchValue: searchValue || '',
|
176
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
176
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.suggestedBrands) || '',
|
177
177
|
labelsColor: labelsColor || '',
|
178
178
|
textColor: textColor || ''
|
179
179
|
})), suggestedCategories.length > 0 && /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Suggestions, {
|
180
180
|
data: suggestedCategories,
|
181
181
|
onClose: onClose,
|
182
182
|
searchValue: searchValue || '',
|
183
|
-
title: (labels === null || labels === void 0 ? void 0 : labels.
|
183
|
+
title: (labels === null || labels === void 0 ? void 0 : labels.suggestedCategories) || '',
|
184
184
|
labelsColor: labelsColor || '',
|
185
185
|
textColor: textColor || ''
|
186
186
|
}))), /*#__PURE__*/ React.createElement(ProductsWrapper, {
|
@@ -188,7 +188,7 @@ export var SearchBox = function(param) {
|
|
188
188
|
}, /*#__PURE__*/ React.createElement(Products, {
|
189
189
|
data: suggestions,
|
190
190
|
bottomMenu: bottomMenu,
|
191
|
-
title: labels === null || labels === void 0 ? void 0 : labels.
|
191
|
+
title: labels === null || labels === void 0 ? void 0 : labels.products,
|
192
192
|
priceColor: priceColor,
|
193
193
|
labelsColor: labelsColor,
|
194
194
|
textColor: textColor,
|
@@ -197,7 +197,7 @@ export var SearchBox = function(param) {
|
|
197
197
|
productSpacing: productSpacing
|
198
198
|
}), bottomMenu === BottomMenuEnum.promo && promoOffers && /*#__PURE__*/ React.createElement(Products, {
|
199
199
|
data: promoOffers,
|
200
|
-
title: labels.
|
200
|
+
title: labels.promoOffers,
|
201
201
|
labelsColor: labelsColor,
|
202
202
|
textColor: textColor,
|
203
203
|
onClose: onClose,
|
@@ -3,11 +3,12 @@ interface EmptyBoxProps {
|
|
3
3
|
backgroundColor?: StringField;
|
4
4
|
searchHistory?: any[];
|
5
5
|
labels: GroupField<{
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
promoOffers: StringField;
|
7
|
+
products: StringField;
|
8
|
+
recentSearches: StringField;
|
9
|
+
popularSearches: StringField;
|
10
10
|
blogLabel: StringField;
|
11
|
+
noResults: StringField;
|
11
12
|
blog: GroupField<{
|
12
13
|
blogTitle: StringField;
|
13
14
|
image: StringField;
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { StringField, GroupField, BooleanField, NumberField } from '@sentecacommerce-theme/cms';
|
2
2
|
interface SearchLabels {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
recentSearches: StringField;
|
4
|
+
popularSearches: StringField;
|
5
|
+
suggestedBrands: StringField;
|
6
|
+
suggestedCategories: StringField;
|
7
|
+
promoOffers: StringField;
|
8
|
+
products: StringField;
|
9
9
|
blogLabel: StringField;
|
10
|
+
noResults: StringField;
|
10
11
|
blog: GroupField<{
|
11
12
|
blogTitle: StringField;
|
12
13
|
image: StringField;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentecacommerce-theme/lib",
|
3
3
|
"sideEffects": false,
|
4
|
-
"version": "0.12.
|
4
|
+
"version": "0.12.94",
|
5
5
|
"main": "dist/cjs/index.js",
|
6
6
|
"module": "dist/esm/index.js",
|
7
7
|
"types": "dist/types/index.d.ts",
|
@@ -31,13 +31,13 @@
|
|
31
31
|
"watch:cjs": "swc src --out-dir dist/cjs -w",
|
32
32
|
"watch:esm": "swc src --out-dir dist/esm --no-swcrc -w"
|
33
33
|
},
|
34
|
-
"gitHead": "
|
34
|
+
"gitHead": "48c1b5df2b10751ae514f0b53e1c6810bd72471c",
|
35
35
|
"peerDependencies": {
|
36
36
|
"react-query": "^2.26.2"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@sentecacommerce-theme/base": "^0.12.
|
40
|
-
"@sentecacommerce-theme/cms": "^0.12.
|
39
|
+
"@sentecacommerce-theme/base": "^0.12.94",
|
40
|
+
"@sentecacommerce-theme/cms": "^0.12.94",
|
41
41
|
"@sentecacommerce/sdk": "2.0.161",
|
42
42
|
"body-scroll-lock": "^3.1.5",
|
43
43
|
"copy-to-clipboard": "^3.3.1",
|