instantsearch.js 4.64.2 → 4.65.0
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/cjs/components/Answers/Answers.js +2 -2
- package/cjs/components/Breadcrumb/Breadcrumb.js +4 -4
- package/cjs/components/ClearRefinements/ClearRefinements.js +2 -2
- package/cjs/components/CurrentRefinements/CurrentRefinements.js +2 -2
- package/cjs/components/GeoSearchControls/GeoSearchControls.js +3 -3
- package/cjs/components/Highlight/Highlight.js +5 -5
- package/cjs/components/Hits/Hits.js +2 -2
- package/cjs/components/InfiniteHits/InfiniteHits.js +4 -4
- package/cjs/components/InternalHighlight/InternalHighlight.js +2 -2
- package/cjs/components/MenuSelect/MenuSelect.js +2 -2
- package/cjs/components/Pagination/Pagination.js +3 -3
- package/cjs/components/Panel/Panel.js +2 -2
- package/cjs/components/RangeInput/RangeInput.js +4 -4
- package/cjs/components/RefinementList/RefinementList.js +4 -4
- package/cjs/components/ReverseHighlight/ReverseHighlight.js +5 -5
- package/cjs/components/ReverseSnippet/ReverseSnippet.js +5 -5
- package/cjs/components/Selector/Selector.js +3 -3
- package/cjs/components/Slider/Pit.js +2 -2
- package/cjs/components/Slider/Slider.js +3 -3
- package/cjs/components/Snippet/Snippet.js +5 -5
- package/cjs/components/Stats/Stats.js +2 -2
- package/cjs/components/Template/Template.js +64 -7
- package/cjs/connectors/autocomplete/connectAutocomplete.js +3 -1
- package/cjs/connectors/geo-search/connectGeoSearch.js +3 -1
- package/cjs/connectors/hits/connectHits.js +6 -2
- package/cjs/connectors/infinite-hits/connectInfiniteHits.js +6 -2
- package/cjs/lib/utils/createSendEventForHits.js +8 -8
- package/cjs/lib/version.js +1 -1
- package/cjs/widgets/answers/answers.js +7 -7
- package/cjs/widgets/breadcrumb/breadcrumb.js +8 -8
- package/cjs/widgets/clear-refinements/clear-refinements.js +4 -4
- package/cjs/widgets/current-refinements/current-refinements.js +9 -9
- package/cjs/widgets/geo-search/geo-search.js +11 -11
- package/cjs/widgets/hierarchical-menu/defaultTemplates.js +4 -4
- package/cjs/widgets/hierarchical-menu/hierarchical-menu.js +14 -14
- package/cjs/widgets/hits/hits.js +5 -5
- package/cjs/widgets/hits-per-page/hits-per-page.js +4 -4
- package/cjs/widgets/infinite-hits/infinite-hits.js +9 -9
- package/cjs/widgets/menu/defaultTemplates.js +4 -4
- package/cjs/widgets/menu/menu.js +11 -11
- package/cjs/widgets/menu-select/menu-select.js +5 -5
- package/cjs/widgets/numeric-menu/numeric-menu.js +9 -9
- package/cjs/widgets/pagination/pagination.js +13 -13
- package/cjs/widgets/panel/panel.js +10 -10
- package/cjs/widgets/powered-by/powered-by.js +4 -4
- package/cjs/widgets/query-rule-custom-data/query-rule-custom-data.js +2 -2
- package/cjs/widgets/range-input/range-input.js +10 -10
- package/cjs/widgets/range-slider/range-slider.js +3 -3
- package/cjs/widgets/rating-menu/defaultTemplates.js +6 -6
- package/cjs/widgets/rating-menu/rating-menu.js +13 -13
- package/cjs/widgets/refinement-list/defaultTemplates.js +5 -5
- package/cjs/widgets/refinement-list/refinement-list.js +23 -23
- package/cjs/widgets/relevant-sort/relevant-sort.js +4 -4
- package/cjs/widgets/search-box/search-box.js +10 -10
- package/cjs/widgets/sort-by/sort-by.js +4 -4
- package/cjs/widgets/stats/stats.js +3 -3
- package/cjs/widgets/toggle-refinement/toggle-refinement.js +5 -5
- package/cjs/widgets/voice-search/voice-search.js +4 -4
- package/dist/instantsearch.development.d.ts +6 -2
- package/dist/instantsearch.development.js +213 -155
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +6 -2
- package/dist/instantsearch.production.min.d.ts +6 -2
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/Answers/Answers.js +1 -1
- package/es/components/Breadcrumb/Breadcrumb.js +1 -1
- package/es/components/ClearRefinements/ClearRefinements.js +1 -1
- package/es/components/CurrentRefinements/CurrentRefinements.js +1 -1
- package/es/components/GeoSearchControls/GeoSearchControls.js +1 -1
- package/es/components/Highlight/Highlight.d.ts +1 -1
- package/es/components/Highlight/Highlight.js +1 -1
- package/es/components/Hits/Hits.js +1 -1
- package/es/components/InfiniteHits/InfiniteHits.js +1 -1
- package/es/components/InternalHighlight/InternalHighlight.d.ts +1 -1
- package/es/components/InternalHighlight/InternalHighlight.js +1 -1
- package/es/components/MenuSelect/MenuSelect.js +1 -1
- package/es/components/Pagination/Pagination.js +1 -1
- package/es/components/Panel/Panel.js +1 -1
- package/es/components/RangeInput/RangeInput.js +1 -1
- package/es/components/RefinementList/RefinementList.js +1 -1
- package/es/components/ReverseHighlight/ReverseHighlight.d.ts +1 -1
- package/es/components/ReverseHighlight/ReverseHighlight.js +1 -1
- package/es/components/ReverseSnippet/ReverseSnippet.d.ts +1 -1
- package/es/components/ReverseSnippet/ReverseSnippet.js +1 -1
- package/es/components/Selector/Selector.js +1 -1
- package/es/components/Slider/Pit.js +1 -1
- package/es/components/Slider/Slider.js +1 -1
- package/es/components/Snippet/Snippet.d.ts +1 -1
- package/es/components/Snippet/Snippet.js +1 -1
- package/es/components/Stats/Stats.js +1 -1
- package/es/components/Template/Template.d.ts +1 -1
- package/es/components/Template/Template.js +65 -8
- package/es/connectors/autocomplete/connectAutocomplete.d.ts +4 -0
- package/es/connectors/autocomplete/connectAutocomplete.js +3 -1
- package/es/connectors/geo-search/connectGeoSearch.js +3 -1
- package/es/connectors/hits/connectHits.js +6 -2
- package/es/connectors/infinite-hits/connectInfiniteHits.js +6 -2
- package/es/lib/utils/createSendEventForHits.d.ts +6 -6
- package/es/lib/utils/createSendEventForHits.js +8 -8
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/widgets/answers/answers.js +1 -1
- package/es/widgets/breadcrumb/breadcrumb.js +1 -1
- package/es/widgets/clear-refinements/clear-refinements.js +1 -1
- package/es/widgets/current-refinements/current-refinements.js +1 -1
- package/es/widgets/geo-search/geo-search.js +1 -1
- package/es/widgets/hierarchical-menu/defaultTemplates.js +1 -1
- package/es/widgets/hierarchical-menu/hierarchical-menu.js +1 -1
- package/es/widgets/hits/hits.js +1 -1
- package/es/widgets/hits-per-page/hits-per-page.js +1 -1
- package/es/widgets/infinite-hits/infinite-hits.js +1 -1
- package/es/widgets/menu/defaultTemplates.js +1 -1
- package/es/widgets/menu/menu.js +1 -1
- package/es/widgets/menu-select/menu-select.js +1 -1
- package/es/widgets/numeric-menu/numeric-menu.js +1 -1
- package/es/widgets/pagination/pagination.js +1 -1
- package/es/widgets/panel/panel.js +1 -1
- package/es/widgets/powered-by/powered-by.js +1 -1
- package/es/widgets/query-rule-custom-data/query-rule-custom-data.js +1 -1
- package/es/widgets/range-input/range-input.js +1 -1
- package/es/widgets/range-slider/range-slider.js +1 -1
- package/es/widgets/rating-menu/defaultTemplates.js +1 -1
- package/es/widgets/rating-menu/rating-menu.js +1 -1
- package/es/widgets/refinement-list/defaultTemplates.js +1 -1
- package/es/widgets/refinement-list/refinement-list.js +1 -1
- package/es/widgets/relevant-sort/relevant-sort.js +1 -1
- package/es/widgets/search-box/search-box.js +1 -1
- package/es/widgets/sort-by/sort-by.js +1 -1
- package/es/widgets/stats/stats.js +1 -1
- package/es/widgets/toggle-refinement/toggle-refinement.js +1 -1
- package/es/widgets/voice-search/voice-search.js +1 -1
- package/package.json +6 -7
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _MenuSelect = _interopRequireDefault(require("../../components/MenuSelect/MenuSelect"));
|
|
10
10
|
var _connectMenu = _interopRequireDefault(require("../../connectors/menu/connectMenu"));
|
|
@@ -66,14 +66,14 @@ var menuSelect = function menuSelect(widgetParams) {
|
|
|
66
66
|
}
|
|
67
67
|
var containerNode = (0, _utils.getContainerNode)(container);
|
|
68
68
|
var cssClasses = {
|
|
69
|
-
root: (0,
|
|
70
|
-
noRefinementRoot: (0,
|
|
69
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), userCssClasses.root),
|
|
70
|
+
noRefinementRoot: (0, _instantsearchUiComponents.cx)(suit({
|
|
71
71
|
modifierName: 'noRefinement'
|
|
72
72
|
}), userCssClasses.noRefinementRoot),
|
|
73
|
-
select: (0,
|
|
73
|
+
select: (0, _instantsearchUiComponents.cx)(suit({
|
|
74
74
|
descendantName: 'select'
|
|
75
75
|
}), userCssClasses.select),
|
|
76
|
-
option: (0,
|
|
76
|
+
option: (0, _instantsearchUiComponents.cx)(suit({
|
|
77
77
|
descendantName: 'option'
|
|
78
78
|
}), userCssClasses.option)
|
|
79
79
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _RefinementList = _interopRequireDefault(require("../../components/RefinementList/RefinementList"));
|
|
10
10
|
var _connectNumericMenu = _interopRequireDefault(require("../../connectors/numeric-menu/connectNumericMenu"));
|
|
@@ -67,27 +67,27 @@ var numericMenu = function numericMenu(widgetParams) {
|
|
|
67
67
|
}
|
|
68
68
|
var containerNode = (0, _utils.getContainerNode)(container);
|
|
69
69
|
var cssClasses = {
|
|
70
|
-
root: (0,
|
|
71
|
-
noRefinementRoot: (0,
|
|
70
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), userCssClasses.root),
|
|
71
|
+
noRefinementRoot: (0, _instantsearchUiComponents.cx)(suit({
|
|
72
72
|
modifierName: 'noRefinement'
|
|
73
73
|
}), userCssClasses.noRefinementRoot),
|
|
74
|
-
list: (0,
|
|
74
|
+
list: (0, _instantsearchUiComponents.cx)(suit({
|
|
75
75
|
descendantName: 'list'
|
|
76
76
|
}), userCssClasses.list),
|
|
77
|
-
item: (0,
|
|
77
|
+
item: (0, _instantsearchUiComponents.cx)(suit({
|
|
78
78
|
descendantName: 'item'
|
|
79
79
|
}), userCssClasses.item),
|
|
80
|
-
selectedItem: (0,
|
|
80
|
+
selectedItem: (0, _instantsearchUiComponents.cx)(suit({
|
|
81
81
|
descendantName: 'item',
|
|
82
82
|
modifierName: 'selected'
|
|
83
83
|
}), userCssClasses.selectedItem),
|
|
84
|
-
label: (0,
|
|
84
|
+
label: (0, _instantsearchUiComponents.cx)(suit({
|
|
85
85
|
descendantName: 'label'
|
|
86
86
|
}), userCssClasses.label),
|
|
87
|
-
radio: (0,
|
|
87
|
+
radio: (0, _instantsearchUiComponents.cx)(suit({
|
|
88
88
|
descendantName: 'radio'
|
|
89
89
|
}), userCssClasses.radio),
|
|
90
|
-
labelText: (0,
|
|
90
|
+
labelText: (0, _instantsearchUiComponents.cx)(suit({
|
|
91
91
|
descendantName: 'labelText'
|
|
92
92
|
}), userCssClasses.labelText)
|
|
93
93
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _Pagination = _interopRequireDefault(require("../../components/Pagination/Pagination"));
|
|
10
10
|
var _connectPagination = _interopRequireDefault(require("../../connectors/pagination/connectPagination"));
|
|
@@ -106,45 +106,45 @@ var pagination = function pagination(widgetParams) {
|
|
|
106
106
|
var scrollTo = userScrollTo === true ? 'body' : userScrollTo;
|
|
107
107
|
var scrollToNode = scrollTo !== false ? (0, _utils.getContainerNode)(scrollTo) : false;
|
|
108
108
|
var cssClasses = {
|
|
109
|
-
root: (0,
|
|
110
|
-
noRefinementRoot: (0,
|
|
109
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), userCssClasses.root),
|
|
110
|
+
noRefinementRoot: (0, _instantsearchUiComponents.cx)(suit({
|
|
111
111
|
modifierName: 'noRefinement'
|
|
112
112
|
}), userCssClasses.noRefinementRoot),
|
|
113
|
-
list: (0,
|
|
113
|
+
list: (0, _instantsearchUiComponents.cx)(suit({
|
|
114
114
|
descendantName: 'list'
|
|
115
115
|
}), userCssClasses.list),
|
|
116
|
-
item: (0,
|
|
116
|
+
item: (0, _instantsearchUiComponents.cx)(suit({
|
|
117
117
|
descendantName: 'item'
|
|
118
118
|
}), userCssClasses.item),
|
|
119
|
-
firstPageItem: (0,
|
|
119
|
+
firstPageItem: (0, _instantsearchUiComponents.cx)(suit({
|
|
120
120
|
descendantName: 'item',
|
|
121
121
|
modifierName: 'firstPage'
|
|
122
122
|
}), userCssClasses.firstPageItem),
|
|
123
|
-
lastPageItem: (0,
|
|
123
|
+
lastPageItem: (0, _instantsearchUiComponents.cx)(suit({
|
|
124
124
|
descendantName: 'item',
|
|
125
125
|
modifierName: 'lastPage'
|
|
126
126
|
}), userCssClasses.lastPageItem),
|
|
127
|
-
previousPageItem: (0,
|
|
127
|
+
previousPageItem: (0, _instantsearchUiComponents.cx)(suit({
|
|
128
128
|
descendantName: 'item',
|
|
129
129
|
modifierName: 'previousPage'
|
|
130
130
|
}), userCssClasses.previousPageItem),
|
|
131
|
-
nextPageItem: (0,
|
|
131
|
+
nextPageItem: (0, _instantsearchUiComponents.cx)(suit({
|
|
132
132
|
descendantName: 'item',
|
|
133
133
|
modifierName: 'nextPage'
|
|
134
134
|
}), userCssClasses.nextPageItem),
|
|
135
|
-
pageItem: (0,
|
|
135
|
+
pageItem: (0, _instantsearchUiComponents.cx)(suit({
|
|
136
136
|
descendantName: 'item',
|
|
137
137
|
modifierName: 'page'
|
|
138
138
|
}), userCssClasses.pageItem),
|
|
139
|
-
selectedItem: (0,
|
|
139
|
+
selectedItem: (0, _instantsearchUiComponents.cx)(suit({
|
|
140
140
|
descendantName: 'item',
|
|
141
141
|
modifierName: 'selected'
|
|
142
142
|
}), userCssClasses.selectedItem),
|
|
143
|
-
disabledItem: (0,
|
|
143
|
+
disabledItem: (0, _instantsearchUiComponents.cx)(suit({
|
|
144
144
|
descendantName: 'item',
|
|
145
145
|
modifierName: 'disabled'
|
|
146
146
|
}), userCssClasses.disabledItem),
|
|
147
|
-
link: (0,
|
|
147
|
+
link: (0, _instantsearchUiComponents.cx)(suit({
|
|
148
148
|
descendantName: 'link'
|
|
149
149
|
}), userCssClasses.link)
|
|
150
150
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _Panel = _interopRequireDefault(require("../../components/Panel/Panel"));
|
|
10
10
|
var _suit = require("../../lib/suit");
|
|
@@ -64,29 +64,29 @@ var panel = function panel(panelWidgetParams) {
|
|
|
64
64
|
return false;
|
|
65
65
|
};
|
|
66
66
|
var cssClasses = {
|
|
67
|
-
root: (0,
|
|
68
|
-
noRefinementRoot: (0,
|
|
67
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), userCssClasses.root),
|
|
68
|
+
noRefinementRoot: (0, _instantsearchUiComponents.cx)(suit({
|
|
69
69
|
modifierName: 'noRefinement'
|
|
70
70
|
}), userCssClasses.noRefinementRoot),
|
|
71
|
-
collapsibleRoot: (0,
|
|
71
|
+
collapsibleRoot: (0, _instantsearchUiComponents.cx)(suit({
|
|
72
72
|
modifierName: 'collapsible'
|
|
73
73
|
}), userCssClasses.collapsibleRoot),
|
|
74
|
-
collapsedRoot: (0,
|
|
74
|
+
collapsedRoot: (0, _instantsearchUiComponents.cx)(suit({
|
|
75
75
|
modifierName: 'collapsed'
|
|
76
76
|
}), userCssClasses.collapsedRoot),
|
|
77
|
-
collapseButton: (0,
|
|
77
|
+
collapseButton: (0, _instantsearchUiComponents.cx)(suit({
|
|
78
78
|
descendantName: 'collapseButton'
|
|
79
79
|
}), userCssClasses.collapseButton),
|
|
80
|
-
collapseIcon: (0,
|
|
80
|
+
collapseIcon: (0, _instantsearchUiComponents.cx)(suit({
|
|
81
81
|
descendantName: 'collapseIcon'
|
|
82
82
|
}), userCssClasses.collapseIcon),
|
|
83
|
-
body: (0,
|
|
83
|
+
body: (0, _instantsearchUiComponents.cx)(suit({
|
|
84
84
|
descendantName: 'body'
|
|
85
85
|
}), userCssClasses.body),
|
|
86
|
-
header: (0,
|
|
86
|
+
header: (0, _instantsearchUiComponents.cx)(suit({
|
|
87
87
|
descendantName: 'header'
|
|
88
88
|
}), userCssClasses.header),
|
|
89
|
-
footer: (0,
|
|
89
|
+
footer: (0, _instantsearchUiComponents.cx)(suit({
|
|
90
90
|
descendantName: 'footer'
|
|
91
91
|
}), userCssClasses.footer)
|
|
92
92
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _PoweredBy = _interopRequireDefault(require("../../components/PoweredBy/PoweredBy"));
|
|
10
10
|
var _connectPoweredBy = _interopRequireDefault(require("../../connectors/powered-by/connectPoweredBy"));
|
|
@@ -51,13 +51,13 @@ var poweredBy = function poweredBy(widgetParams) {
|
|
|
51
51
|
}
|
|
52
52
|
var containerNode = (0, _utils.getContainerNode)(container);
|
|
53
53
|
var cssClasses = {
|
|
54
|
-
root: (0,
|
|
54
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), suit({
|
|
55
55
|
modifierName: theme === 'dark' ? 'dark' : 'light'
|
|
56
56
|
}), userCssClasses.root),
|
|
57
|
-
link: (0,
|
|
57
|
+
link: (0, _instantsearchUiComponents.cx)(suit({
|
|
58
58
|
descendantName: 'link'
|
|
59
59
|
}), userCssClasses.link),
|
|
60
|
-
logo: (0,
|
|
60
|
+
logo: (0, _instantsearchUiComponents.cx)(suit({
|
|
61
61
|
descendantName: 'logo'
|
|
62
62
|
}), userCssClasses.logo)
|
|
63
63
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultTemplates = exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _QueryRuleCustomData = _interopRequireDefault(require("../../components/QueryRuleCustomData/QueryRuleCustomData"));
|
|
10
10
|
var _connectQueryRules = _interopRequireDefault(require("../../connectors/query-rules/connectQueryRules"));
|
|
@@ -56,7 +56,7 @@ var queryRuleCustomData = function queryRuleCustomData(widgetParams) {
|
|
|
56
56
|
throw new Error(withUsage('The `container` option is required.'));
|
|
57
57
|
}
|
|
58
58
|
var cssClasses = {
|
|
59
|
-
root: (0,
|
|
59
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), userCssClasses.root)
|
|
60
60
|
};
|
|
61
61
|
var containerNode = (0, _utils.getContainerNode)(container);
|
|
62
62
|
var templates = _objectSpread(_objectSpread({}, defaultTemplates), userTemplates);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
9
9
|
var _preact = require("preact");
|
|
10
10
|
var _RangeInput = _interopRequireDefault(require("../../components/RangeInput/RangeInput"));
|
|
11
11
|
var _connectRange = _interopRequireDefault(require("../../connectors/range/connectRange"));
|
|
@@ -93,31 +93,31 @@ var rangeInput = function rangeInput(widgetParams) {
|
|
|
93
93
|
}
|
|
94
94
|
var containerNode = (0, _utils.getContainerNode)(container);
|
|
95
95
|
var cssClasses = {
|
|
96
|
-
root: (0,
|
|
97
|
-
noRefinement: (0,
|
|
96
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), userCssClasses.root),
|
|
97
|
+
noRefinement: (0, _instantsearchUiComponents.cx)(suit({
|
|
98
98
|
modifierName: 'noRefinement'
|
|
99
99
|
})),
|
|
100
|
-
form: (0,
|
|
100
|
+
form: (0, _instantsearchUiComponents.cx)(suit({
|
|
101
101
|
descendantName: 'form'
|
|
102
102
|
}), userCssClasses.form),
|
|
103
|
-
label: (0,
|
|
103
|
+
label: (0, _instantsearchUiComponents.cx)(suit({
|
|
104
104
|
descendantName: 'label'
|
|
105
105
|
}), userCssClasses.label),
|
|
106
|
-
input: (0,
|
|
106
|
+
input: (0, _instantsearchUiComponents.cx)(suit({
|
|
107
107
|
descendantName: 'input'
|
|
108
108
|
}), userCssClasses.input),
|
|
109
|
-
inputMin: (0,
|
|
109
|
+
inputMin: (0, _instantsearchUiComponents.cx)(suit({
|
|
110
110
|
descendantName: 'input',
|
|
111
111
|
modifierName: 'min'
|
|
112
112
|
}), userCssClasses.inputMin),
|
|
113
|
-
inputMax: (0,
|
|
113
|
+
inputMax: (0, _instantsearchUiComponents.cx)(suit({
|
|
114
114
|
descendantName: 'input',
|
|
115
115
|
modifierName: 'max'
|
|
116
116
|
}), userCssClasses.inputMax),
|
|
117
|
-
separator: (0,
|
|
117
|
+
separator: (0, _instantsearchUiComponents.cx)(suit({
|
|
118
118
|
descendantName: 'separator'
|
|
119
119
|
}), userCssClasses.separator),
|
|
120
|
-
submit: (0,
|
|
120
|
+
submit: (0, _instantsearchUiComponents.cx)(suit({
|
|
121
121
|
descendantName: 'submit'
|
|
122
122
|
}), userCssClasses.submit)
|
|
123
123
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
9
9
|
var _preact = require("preact");
|
|
10
10
|
var _Slider = _interopRequireDefault(require("../../components/Slider/Slider"));
|
|
11
11
|
var _connectRange = _interopRequireDefault(require("../../connectors/range/connectRange"));
|
|
@@ -96,8 +96,8 @@ var rangeSlider = function rangeSlider(widgetParams) {
|
|
|
96
96
|
}
|
|
97
97
|
var containerNode = (0, _utils.getContainerNode)(container);
|
|
98
98
|
var cssClasses = {
|
|
99
|
-
root: (0,
|
|
100
|
-
disabledRoot: (0,
|
|
99
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), userCssClasses.root),
|
|
100
|
+
disabledRoot: (0, _instantsearchUiComponents.cx)(suit({
|
|
101
101
|
modifierName: 'disabled'
|
|
102
102
|
}), userCssClasses.disabledRoot)
|
|
103
103
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _formatNumber = require("../../lib/formatNumber");
|
|
10
10
|
function ItemWrapper(_ref) {
|
|
@@ -15,13 +15,13 @@ function ItemWrapper(_ref) {
|
|
|
15
15
|
cssClasses = _ref.cssClasses;
|
|
16
16
|
if (count) {
|
|
17
17
|
return (0, _preact.h)("a", {
|
|
18
|
-
className: (0,
|
|
18
|
+
className: (0, _instantsearchUiComponents.cx)(cssClasses.link),
|
|
19
19
|
"aria-label": "".concat(value, " & up"),
|
|
20
20
|
href: url
|
|
21
21
|
}, children);
|
|
22
22
|
}
|
|
23
23
|
return (0, _preact.h)("div", {
|
|
24
|
-
className: (0,
|
|
24
|
+
className: (0, _instantsearchUiComponents.cx)(cssClasses.link),
|
|
25
25
|
"aria-label": "".concat(value, " & up"),
|
|
26
26
|
disabled: true
|
|
27
27
|
}, children);
|
|
@@ -41,7 +41,7 @@ var defaultTemplates = {
|
|
|
41
41
|
}, stars.map(function (isFull, index) {
|
|
42
42
|
return (0, _preact.h)("svg", {
|
|
43
43
|
key: index,
|
|
44
|
-
className: (0,
|
|
44
|
+
className: (0, _instantsearchUiComponents.cx)(cssClasses.starIcon, isFull ? cssClasses.fullStarIcon : cssClasses.emptyStarIcon),
|
|
45
45
|
"aria-hidden": "true",
|
|
46
46
|
width: "24",
|
|
47
47
|
height: "24"
|
|
@@ -49,9 +49,9 @@ var defaultTemplates = {
|
|
|
49
49
|
xlinkHref: isFull ? '#ais-RatingMenu-starSymbol' : '#ais-RatingMenu-starEmptySymbol'
|
|
50
50
|
}));
|
|
51
51
|
}), (0, _preact.h)("span", {
|
|
52
|
-
className: (0,
|
|
52
|
+
className: (0, _instantsearchUiComponents.cx)(cssClasses.label)
|
|
53
53
|
}, "& Up"), count && (0, _preact.h)("span", {
|
|
54
|
-
className: (0,
|
|
54
|
+
className: (0, _instantsearchUiComponents.cx)(cssClasses.count)
|
|
55
55
|
}, (0, _formatNumber.formatNumber)(count)));
|
|
56
56
|
}
|
|
57
57
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _RefinementList = _interopRequireDefault(require("../../components/RefinementList/RefinementList"));
|
|
10
10
|
var _connectRatingMenu = _interopRequireDefault(require("../../connectors/rating-menu/connectRatingMenu"));
|
|
@@ -111,42 +111,42 @@ var ratingMenu = function ratingMenu(widgetParams) {
|
|
|
111
111
|
}
|
|
112
112
|
var containerNode = (0, _utils.getContainerNode)(container);
|
|
113
113
|
var cssClasses = {
|
|
114
|
-
root: (0,
|
|
115
|
-
noRefinementRoot: (0,
|
|
114
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), userCssClasses.root),
|
|
115
|
+
noRefinementRoot: (0, _instantsearchUiComponents.cx)(suit({
|
|
116
116
|
modifierName: 'noRefinement'
|
|
117
117
|
}), userCssClasses.noRefinementRoot),
|
|
118
|
-
list: (0,
|
|
118
|
+
list: (0, _instantsearchUiComponents.cx)(suit({
|
|
119
119
|
descendantName: 'list'
|
|
120
120
|
}), userCssClasses.list),
|
|
121
|
-
item: (0,
|
|
121
|
+
item: (0, _instantsearchUiComponents.cx)(suit({
|
|
122
122
|
descendantName: 'item'
|
|
123
123
|
}), userCssClasses.item),
|
|
124
|
-
selectedItem: (0,
|
|
124
|
+
selectedItem: (0, _instantsearchUiComponents.cx)(suit({
|
|
125
125
|
descendantName: 'item',
|
|
126
126
|
modifierName: 'selected'
|
|
127
127
|
}), userCssClasses.selectedItem),
|
|
128
|
-
disabledItem: (0,
|
|
128
|
+
disabledItem: (0, _instantsearchUiComponents.cx)(suit({
|
|
129
129
|
descendantName: 'item',
|
|
130
130
|
modifierName: 'disabled'
|
|
131
131
|
}), userCssClasses.disabledItem),
|
|
132
|
-
link: (0,
|
|
132
|
+
link: (0, _instantsearchUiComponents.cx)(suit({
|
|
133
133
|
descendantName: 'link'
|
|
134
134
|
}), userCssClasses.link),
|
|
135
|
-
starIcon: (0,
|
|
135
|
+
starIcon: (0, _instantsearchUiComponents.cx)(suit({
|
|
136
136
|
descendantName: 'starIcon'
|
|
137
137
|
}), userCssClasses.starIcon),
|
|
138
|
-
fullStarIcon: (0,
|
|
138
|
+
fullStarIcon: (0, _instantsearchUiComponents.cx)(suit({
|
|
139
139
|
descendantName: 'starIcon',
|
|
140
140
|
modifierName: 'full'
|
|
141
141
|
}), userCssClasses.fullStarIcon),
|
|
142
|
-
emptyStarIcon: (0,
|
|
142
|
+
emptyStarIcon: (0, _instantsearchUiComponents.cx)(suit({
|
|
143
143
|
descendantName: 'starIcon',
|
|
144
144
|
modifierName: 'empty'
|
|
145
145
|
}), userCssClasses.emptyStarIcon),
|
|
146
|
-
label: (0,
|
|
146
|
+
label: (0, _instantsearchUiComponents.cx)(suit({
|
|
147
147
|
descendantName: 'label'
|
|
148
148
|
}), userCssClasses.label),
|
|
149
|
-
count: (0,
|
|
149
|
+
count: (0, _instantsearchUiComponents.cx)(suit({
|
|
150
150
|
descendantName: 'count'
|
|
151
151
|
}), userCssClasses.count)
|
|
152
152
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _formatNumber = require("../../lib/formatNumber");
|
|
10
10
|
var defaultTemplates = {
|
|
@@ -16,19 +16,19 @@ var defaultTemplates = {
|
|
|
16
16
|
isRefined = _ref.isRefined,
|
|
17
17
|
isFromSearch = _ref.isFromSearch;
|
|
18
18
|
return (0, _preact.h)("label", {
|
|
19
|
-
className: (0,
|
|
19
|
+
className: (0, _instantsearchUiComponents.cx)(cssClasses.label)
|
|
20
20
|
}, (0, _preact.h)("input", {
|
|
21
21
|
type: "checkbox",
|
|
22
|
-
className: (0,
|
|
22
|
+
className: (0, _instantsearchUiComponents.cx)(cssClasses.checkbox),
|
|
23
23
|
value: value,
|
|
24
24
|
defaultChecked: isRefined
|
|
25
25
|
}), (0, _preact.h)("span", {
|
|
26
|
-
className: (0,
|
|
26
|
+
className: (0, _instantsearchUiComponents.cx)(cssClasses.labelText),
|
|
27
27
|
dangerouslySetInnerHTML: isFromSearch ? {
|
|
28
28
|
__html: highlighted
|
|
29
29
|
} : undefined
|
|
30
30
|
}, !isFromSearch && highlighted), (0, _preact.h)("span", {
|
|
31
|
-
className: (0,
|
|
31
|
+
className: (0, _instantsearchUiComponents.cx)(cssClasses.count)
|
|
32
32
|
}, (0, _formatNumber.formatNumber)(count)));
|
|
33
33
|
},
|
|
34
34
|
showMoreText: function showMoreText(_ref2) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _RefinementList = _interopRequireDefault(require("../../components/RefinementList/RefinementList"));
|
|
10
10
|
var _connectRefinementList = _interopRequireDefault(require("../../connectors/refinement-list/connectRefinementList"));
|
|
@@ -125,69 +125,69 @@ var refinementList = function refinementList(widgetParams) {
|
|
|
125
125
|
var escapeFacetValues = searchable ? Boolean(searchableEscapeFacetValues) : false;
|
|
126
126
|
var containerNode = (0, _utils.getContainerNode)(container);
|
|
127
127
|
var cssClasses = {
|
|
128
|
-
root: (0,
|
|
129
|
-
noRefinementRoot: (0,
|
|
128
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), userCssClasses.root),
|
|
129
|
+
noRefinementRoot: (0, _instantsearchUiComponents.cx)(suit({
|
|
130
130
|
modifierName: 'noRefinement'
|
|
131
131
|
}), userCssClasses.noRefinementRoot),
|
|
132
|
-
list: (0,
|
|
132
|
+
list: (0, _instantsearchUiComponents.cx)(suit({
|
|
133
133
|
descendantName: 'list'
|
|
134
134
|
}), userCssClasses.list),
|
|
135
|
-
item: (0,
|
|
135
|
+
item: (0, _instantsearchUiComponents.cx)(suit({
|
|
136
136
|
descendantName: 'item'
|
|
137
137
|
}), userCssClasses.item),
|
|
138
|
-
selectedItem: (0,
|
|
138
|
+
selectedItem: (0, _instantsearchUiComponents.cx)(suit({
|
|
139
139
|
descendantName: 'item',
|
|
140
140
|
modifierName: 'selected'
|
|
141
141
|
}), userCssClasses.selectedItem),
|
|
142
|
-
searchBox: (0,
|
|
142
|
+
searchBox: (0, _instantsearchUiComponents.cx)(suit({
|
|
143
143
|
descendantName: 'searchBox'
|
|
144
144
|
}), userCssClasses.searchBox),
|
|
145
|
-
label: (0,
|
|
145
|
+
label: (0, _instantsearchUiComponents.cx)(suit({
|
|
146
146
|
descendantName: 'label'
|
|
147
147
|
}), userCssClasses.label),
|
|
148
|
-
checkbox: (0,
|
|
148
|
+
checkbox: (0, _instantsearchUiComponents.cx)(suit({
|
|
149
149
|
descendantName: 'checkbox'
|
|
150
150
|
}), userCssClasses.checkbox),
|
|
151
|
-
labelText: (0,
|
|
151
|
+
labelText: (0, _instantsearchUiComponents.cx)(suit({
|
|
152
152
|
descendantName: 'labelText'
|
|
153
153
|
}), userCssClasses.labelText),
|
|
154
|
-
count: (0,
|
|
154
|
+
count: (0, _instantsearchUiComponents.cx)(suit({
|
|
155
155
|
descendantName: 'count'
|
|
156
156
|
}), userCssClasses.count),
|
|
157
|
-
noResults: (0,
|
|
157
|
+
noResults: (0, _instantsearchUiComponents.cx)(suit({
|
|
158
158
|
descendantName: 'noResults'
|
|
159
159
|
}), userCssClasses.noResults),
|
|
160
|
-
showMore: (0,
|
|
160
|
+
showMore: (0, _instantsearchUiComponents.cx)(suit({
|
|
161
161
|
descendantName: 'showMore'
|
|
162
162
|
}), userCssClasses.showMore),
|
|
163
|
-
disabledShowMore: (0,
|
|
163
|
+
disabledShowMore: (0, _instantsearchUiComponents.cx)(suit({
|
|
164
164
|
descendantName: 'showMore',
|
|
165
165
|
modifierName: 'disabled'
|
|
166
166
|
}), userCssClasses.disabledShowMore),
|
|
167
167
|
searchable: {
|
|
168
|
-
root: (0,
|
|
169
|
-
form: (0,
|
|
168
|
+
root: (0, _instantsearchUiComponents.cx)(searchBoxSuit(), userCssClasses.searchableRoot),
|
|
169
|
+
form: (0, _instantsearchUiComponents.cx)(searchBoxSuit({
|
|
170
170
|
descendantName: 'form'
|
|
171
171
|
}), userCssClasses.searchableForm),
|
|
172
|
-
input: (0,
|
|
172
|
+
input: (0, _instantsearchUiComponents.cx)(searchBoxSuit({
|
|
173
173
|
descendantName: 'input'
|
|
174
174
|
}), userCssClasses.searchableInput),
|
|
175
|
-
submit: (0,
|
|
175
|
+
submit: (0, _instantsearchUiComponents.cx)(searchBoxSuit({
|
|
176
176
|
descendantName: 'submit'
|
|
177
177
|
}), userCssClasses.searchableSubmit),
|
|
178
|
-
submitIcon: (0,
|
|
178
|
+
submitIcon: (0, _instantsearchUiComponents.cx)(searchBoxSuit({
|
|
179
179
|
descendantName: 'submitIcon'
|
|
180
180
|
}), userCssClasses.searchableSubmitIcon),
|
|
181
|
-
reset: (0,
|
|
181
|
+
reset: (0, _instantsearchUiComponents.cx)(searchBoxSuit({
|
|
182
182
|
descendantName: 'reset'
|
|
183
183
|
}), userCssClasses.searchableReset),
|
|
184
|
-
resetIcon: (0,
|
|
184
|
+
resetIcon: (0, _instantsearchUiComponents.cx)(searchBoxSuit({
|
|
185
185
|
descendantName: 'resetIcon'
|
|
186
186
|
}), userCssClasses.searchableResetIcon),
|
|
187
|
-
loadingIndicator: (0,
|
|
187
|
+
loadingIndicator: (0, _instantsearchUiComponents.cx)(searchBoxSuit({
|
|
188
188
|
descendantName: 'loadingIndicator'
|
|
189
189
|
}), userCssClasses.searchableLoadingIndicator),
|
|
190
|
-
loadingIcon: (0,
|
|
190
|
+
loadingIcon: (0, _instantsearchUiComponents.cx)(searchBoxSuit({
|
|
191
191
|
descendantName: 'loadingIcon'
|
|
192
192
|
}), userCssClasses.searchableLoadingIcon)
|
|
193
193
|
}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _RelevantSort = _interopRequireDefault(require("../../components/RelevantSort/RelevantSort"));
|
|
10
10
|
var _connectRelevantSort = _interopRequireDefault(require("../../connectors/relevant-sort/connectRelevantSort"));
|
|
@@ -50,11 +50,11 @@ var relevantSort = function relevantSort(widgetParams) {
|
|
|
50
50
|
}
|
|
51
51
|
var containerNode = (0, _utils.getContainerNode)(container);
|
|
52
52
|
var cssClasses = {
|
|
53
|
-
root: (0,
|
|
54
|
-
text: (0,
|
|
53
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), userCssClasses.root),
|
|
54
|
+
text: (0, _instantsearchUiComponents.cx)(suit({
|
|
55
55
|
descendantName: 'text'
|
|
56
56
|
}), userCssClasses.text),
|
|
57
|
-
button: (0,
|
|
57
|
+
button: (0, _instantsearchUiComponents.cx)(suit({
|
|
58
58
|
descendantName: 'button'
|
|
59
59
|
}), userCssClasses.button)
|
|
60
60
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
var _SearchBox = _interopRequireDefault(require("../../components/SearchBox/SearchBox"));
|
|
10
10
|
var _connectSearchBox = _interopRequireDefault(require("../../connectors/search-box/connectSearchBox"));
|
|
@@ -90,29 +90,29 @@ var searchBox = function searchBox(widgetParams) {
|
|
|
90
90
|
}
|
|
91
91
|
var containerNode = (0, _utils.getContainerNode)(container);
|
|
92
92
|
var cssClasses = {
|
|
93
|
-
root: (0,
|
|
94
|
-
form: (0,
|
|
93
|
+
root: (0, _instantsearchUiComponents.cx)(suit(), userCssClasses.root),
|
|
94
|
+
form: (0, _instantsearchUiComponents.cx)(suit({
|
|
95
95
|
descendantName: 'form'
|
|
96
96
|
}), userCssClasses.form),
|
|
97
|
-
input: (0,
|
|
97
|
+
input: (0, _instantsearchUiComponents.cx)(suit({
|
|
98
98
|
descendantName: 'input'
|
|
99
99
|
}), userCssClasses.input),
|
|
100
|
-
submit: (0,
|
|
100
|
+
submit: (0, _instantsearchUiComponents.cx)(suit({
|
|
101
101
|
descendantName: 'submit'
|
|
102
102
|
}), userCssClasses.submit),
|
|
103
|
-
submitIcon: (0,
|
|
103
|
+
submitIcon: (0, _instantsearchUiComponents.cx)(suit({
|
|
104
104
|
descendantName: 'submitIcon'
|
|
105
105
|
}), userCssClasses.submitIcon),
|
|
106
|
-
reset: (0,
|
|
106
|
+
reset: (0, _instantsearchUiComponents.cx)(suit({
|
|
107
107
|
descendantName: 'reset'
|
|
108
108
|
}), userCssClasses.reset),
|
|
109
|
-
resetIcon: (0,
|
|
109
|
+
resetIcon: (0, _instantsearchUiComponents.cx)(suit({
|
|
110
110
|
descendantName: 'resetIcon'
|
|
111
111
|
}), userCssClasses.resetIcon),
|
|
112
|
-
loadingIndicator: (0,
|
|
112
|
+
loadingIndicator: (0, _instantsearchUiComponents.cx)(suit({
|
|
113
113
|
descendantName: 'loadingIndicator'
|
|
114
114
|
}), userCssClasses.loadingIndicator),
|
|
115
|
-
loadingIcon: (0,
|
|
115
|
+
loadingIcon: (0, _instantsearchUiComponents.cx)(suit({
|
|
116
116
|
descendantName: 'loadingIcon'
|
|
117
117
|
}), userCssClasses.loadingIcon)
|
|
118
118
|
};
|