instantsearch.js 4.48.0 → 4.49.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/CHANGELOG.md +20 -0
- package/cjs/components/Answers/Answers.js +4 -4
- package/cjs/components/Breadcrumb/Breadcrumb.js +4 -6
- package/cjs/components/ClearRefinements/ClearRefinements.js +2 -4
- package/cjs/components/CurrentRefinements/CurrentRefinements.js +2 -6
- package/cjs/components/GeoSearchControls/GeoSearchControls.js +3 -5
- package/cjs/components/Hits/Hits.js +2 -2
- package/cjs/components/InfiniteHits/InfiniteHits.js +4 -4
- package/cjs/components/MenuSelect/MenuSelect.js +2 -4
- package/cjs/components/Pagination/Pagination.js +3 -7
- package/cjs/components/Panel/Panel.js +2 -6
- package/cjs/components/PoweredBy/PoweredBy.js +6 -16
- package/cjs/components/RangeInput/RangeInput.js +4 -4
- package/cjs/components/RefinementList/RefinementList.js +4 -6
- package/cjs/components/Selector/Selector.js +3 -5
- package/cjs/components/Slider/Pit.js +2 -6
- package/cjs/components/Slider/Slider.js +3 -6
- package/cjs/components/Stats/Stats.js +2 -2
- package/cjs/connectors/current-refinements/connectCurrentRefinements.js +2 -0
- package/cjs/lib/InstantSearch.js +3 -1
- package/cjs/lib/utils/index.js +0 -13
- 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.js +263 -324
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/Answers/Answers.js +4 -4
- package/es/components/Breadcrumb/Breadcrumb.js +4 -6
- package/es/components/ClearRefinements/ClearRefinements.js +2 -4
- package/es/components/CurrentRefinements/CurrentRefinements.js +2 -4
- package/es/components/GeoSearchControls/GeoSearchControls.js +3 -5
- package/es/components/Hits/Hits.js +1 -1
- package/es/components/InfiniteHits/InfiniteHits.js +3 -3
- package/es/components/InternalHighlight/InternalHighlight.d.ts +0 -1
- package/es/components/MenuSelect/MenuSelect.js +2 -4
- package/es/components/Pagination/Pagination.js +2 -4
- package/es/components/Panel/Panel.js +2 -6
- package/es/components/PoweredBy/PoweredBy.js +6 -16
- package/es/components/RangeInput/RangeInput.js +2 -2
- package/es/components/RefinementList/RefinementList.js +4 -6
- package/es/components/Selector/Selector.js +1 -1
- package/es/components/Slider/Pit.js +2 -4
- package/es/components/Slider/Slider.js +3 -6
- package/es/components/Stats/Stats.js +1 -1
- package/es/connectors/current-refinements/connectCurrentRefinements.js +2 -0
- package/es/lib/InstantSearch.js +3 -1
- package/es/lib/utils/index.d.ts +0 -1
- package/es/lib/utils/index.js +0 -1
- 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 +2 -2
- 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 +2 -2
- 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 +3 -5
- package/cjs/lib/utils/cx.js +0 -10
- package/es/lib/utils/cx.d.ts +0 -1
- package/es/lib/utils/cx.js +0 -3
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _Pagination = _interopRequireDefault(require("../../components/Pagination/Pagination.js"));
|
|
13
13
|
|
|
@@ -109,45 +109,45 @@ var pagination = function pagination(widgetParams) {
|
|
|
109
109
|
var scrollTo = userScrollTo === true ? 'body' : userScrollTo;
|
|
110
110
|
var scrollToNode = scrollTo !== false ? (0, _index.getContainerNode)(scrollTo) : false;
|
|
111
111
|
var cssClasses = {
|
|
112
|
-
root: (0,
|
|
113
|
-
noRefinementRoot: (0,
|
|
112
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
113
|
+
noRefinementRoot: (0, _uiComponentsShared.cx)(suit({
|
|
114
114
|
modifierName: 'noRefinement'
|
|
115
115
|
}), userCssClasses.noRefinementRoot),
|
|
116
|
-
list: (0,
|
|
116
|
+
list: (0, _uiComponentsShared.cx)(suit({
|
|
117
117
|
descendantName: 'list'
|
|
118
118
|
}), userCssClasses.list),
|
|
119
|
-
item: (0,
|
|
119
|
+
item: (0, _uiComponentsShared.cx)(suit({
|
|
120
120
|
descendantName: 'item'
|
|
121
121
|
}), userCssClasses.item),
|
|
122
|
-
firstPageItem: (0,
|
|
122
|
+
firstPageItem: (0, _uiComponentsShared.cx)(suit({
|
|
123
123
|
descendantName: 'item',
|
|
124
124
|
modifierName: 'firstPage'
|
|
125
125
|
}), userCssClasses.firstPageItem),
|
|
126
|
-
lastPageItem: (0,
|
|
126
|
+
lastPageItem: (0, _uiComponentsShared.cx)(suit({
|
|
127
127
|
descendantName: 'item',
|
|
128
128
|
modifierName: 'lastPage'
|
|
129
129
|
}), userCssClasses.lastPageItem),
|
|
130
|
-
previousPageItem: (0,
|
|
130
|
+
previousPageItem: (0, _uiComponentsShared.cx)(suit({
|
|
131
131
|
descendantName: 'item',
|
|
132
132
|
modifierName: 'previousPage'
|
|
133
133
|
}), userCssClasses.previousPageItem),
|
|
134
|
-
nextPageItem: (0,
|
|
134
|
+
nextPageItem: (0, _uiComponentsShared.cx)(suit({
|
|
135
135
|
descendantName: 'item',
|
|
136
136
|
modifierName: 'nextPage'
|
|
137
137
|
}), userCssClasses.nextPageItem),
|
|
138
|
-
pageItem: (0,
|
|
138
|
+
pageItem: (0, _uiComponentsShared.cx)(suit({
|
|
139
139
|
descendantName: 'item',
|
|
140
140
|
modifierName: 'page'
|
|
141
141
|
}), userCssClasses.pageItem),
|
|
142
|
-
selectedItem: (0,
|
|
142
|
+
selectedItem: (0, _uiComponentsShared.cx)(suit({
|
|
143
143
|
descendantName: 'item',
|
|
144
144
|
modifierName: 'selected'
|
|
145
145
|
}), userCssClasses.selectedItem),
|
|
146
|
-
disabledItem: (0,
|
|
146
|
+
disabledItem: (0, _uiComponentsShared.cx)(suit({
|
|
147
147
|
descendantName: 'item',
|
|
148
148
|
modifierName: 'disabled'
|
|
149
149
|
}), userCssClasses.disabledItem),
|
|
150
|
-
link: (0,
|
|
150
|
+
link: (0, _uiComponentsShared.cx)(suit({
|
|
151
151
|
descendantName: 'link'
|
|
152
152
|
}), userCssClasses.link)
|
|
153
153
|
};
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _index = require("../../lib/utils/index.js");
|
|
13
13
|
|
|
@@ -74,29 +74,29 @@ var panel = function panel(panelWidgetParams) {
|
|
|
74
74
|
return false;
|
|
75
75
|
};
|
|
76
76
|
var cssClasses = {
|
|
77
|
-
root: (0,
|
|
78
|
-
noRefinementRoot: (0,
|
|
77
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
78
|
+
noRefinementRoot: (0, _uiComponentsShared.cx)(suit({
|
|
79
79
|
modifierName: 'noRefinement'
|
|
80
80
|
}), userCssClasses.noRefinementRoot),
|
|
81
|
-
collapsibleRoot: (0,
|
|
81
|
+
collapsibleRoot: (0, _uiComponentsShared.cx)(suit({
|
|
82
82
|
modifierName: 'collapsible'
|
|
83
83
|
}), userCssClasses.collapsibleRoot),
|
|
84
|
-
collapsedRoot: (0,
|
|
84
|
+
collapsedRoot: (0, _uiComponentsShared.cx)(suit({
|
|
85
85
|
modifierName: 'collapsed'
|
|
86
86
|
}), userCssClasses.collapsedRoot),
|
|
87
|
-
collapseButton: (0,
|
|
87
|
+
collapseButton: (0, _uiComponentsShared.cx)(suit({
|
|
88
88
|
descendantName: 'collapseButton'
|
|
89
89
|
}), userCssClasses.collapseButton),
|
|
90
|
-
collapseIcon: (0,
|
|
90
|
+
collapseIcon: (0, _uiComponentsShared.cx)(suit({
|
|
91
91
|
descendantName: 'collapseIcon'
|
|
92
92
|
}), userCssClasses.collapseIcon),
|
|
93
|
-
body: (0,
|
|
93
|
+
body: (0, _uiComponentsShared.cx)(suit({
|
|
94
94
|
descendantName: 'body'
|
|
95
95
|
}), userCssClasses.body),
|
|
96
|
-
header: (0,
|
|
96
|
+
header: (0, _uiComponentsShared.cx)(suit({
|
|
97
97
|
descendantName: 'header'
|
|
98
98
|
}), userCssClasses.header),
|
|
99
|
-
footer: (0,
|
|
99
|
+
footer: (0, _uiComponentsShared.cx)(suit({
|
|
100
100
|
descendantName: 'footer'
|
|
101
101
|
}), userCssClasses.footer)
|
|
102
102
|
};
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _PoweredBy = _interopRequireDefault(require("../../components/PoweredBy/PoweredBy.js"));
|
|
13
13
|
|
|
@@ -64,13 +64,13 @@ var poweredBy = function poweredBy(widgetParams) {
|
|
|
64
64
|
|
|
65
65
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
66
66
|
var cssClasses = {
|
|
67
|
-
root: (0,
|
|
67
|
+
root: (0, _uiComponentsShared.cx)(suit(), suit({
|
|
68
68
|
modifierName: theme === 'dark' ? 'dark' : 'light'
|
|
69
69
|
}), userCssClasses.root),
|
|
70
|
-
link: (0,
|
|
70
|
+
link: (0, _uiComponentsShared.cx)(suit({
|
|
71
71
|
descendantName: 'link'
|
|
72
72
|
}), userCssClasses.link),
|
|
73
|
-
logo: (0,
|
|
73
|
+
logo: (0, _uiComponentsShared.cx)(suit({
|
|
74
74
|
descendantName: 'logo'
|
|
75
75
|
}), userCssClasses.logo)
|
|
76
76
|
};
|
|
@@ -7,7 +7,7 @@ exports.default = exports.defaultTemplates = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _index = require("../../lib/utils/index.js");
|
|
13
13
|
|
|
@@ -68,7 +68,7 @@ var queryRuleCustomData = function queryRuleCustomData(widgetParams) {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
var cssClasses = {
|
|
71
|
-
root: (0,
|
|
71
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root)
|
|
72
72
|
};
|
|
73
73
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
74
74
|
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _RangeInput = _interopRequireDefault(require("../../components/RangeInput/RangeInput.js"));
|
|
13
13
|
|
|
@@ -116,31 +116,31 @@ var rangeInput = function rangeInput(widgetParams) {
|
|
|
116
116
|
|
|
117
117
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
118
118
|
var cssClasses = {
|
|
119
|
-
root: (0,
|
|
120
|
-
noRefinement: (0,
|
|
119
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
120
|
+
noRefinement: (0, _uiComponentsShared.cx)(suit({
|
|
121
121
|
modifierName: 'noRefinement'
|
|
122
122
|
})),
|
|
123
|
-
form: (0,
|
|
123
|
+
form: (0, _uiComponentsShared.cx)(suit({
|
|
124
124
|
descendantName: 'form'
|
|
125
125
|
}), userCssClasses.form),
|
|
126
|
-
label: (0,
|
|
126
|
+
label: (0, _uiComponentsShared.cx)(suit({
|
|
127
127
|
descendantName: 'label'
|
|
128
128
|
}), userCssClasses.label),
|
|
129
|
-
input: (0,
|
|
129
|
+
input: (0, _uiComponentsShared.cx)(suit({
|
|
130
130
|
descendantName: 'input'
|
|
131
131
|
}), userCssClasses.input),
|
|
132
|
-
inputMin: (0,
|
|
132
|
+
inputMin: (0, _uiComponentsShared.cx)(suit({
|
|
133
133
|
descendantName: 'input',
|
|
134
134
|
modifierName: 'min'
|
|
135
135
|
}), userCssClasses.inputMin),
|
|
136
|
-
inputMax: (0,
|
|
136
|
+
inputMax: (0, _uiComponentsShared.cx)(suit({
|
|
137
137
|
descendantName: 'input',
|
|
138
138
|
modifierName: 'max'
|
|
139
139
|
}), userCssClasses.inputMax),
|
|
140
|
-
separator: (0,
|
|
140
|
+
separator: (0, _uiComponentsShared.cx)(suit({
|
|
141
141
|
descendantName: 'separator'
|
|
142
142
|
}), userCssClasses.separator),
|
|
143
|
-
submit: (0,
|
|
143
|
+
submit: (0, _uiComponentsShared.cx)(suit({
|
|
144
144
|
descendantName: 'submit'
|
|
145
145
|
}), userCssClasses.submit)
|
|
146
146
|
};
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _Slider = _interopRequireDefault(require("../../components/Slider/Slider.js"));
|
|
13
13
|
|
|
@@ -117,8 +117,8 @@ var rangeSlider = function rangeSlider(widgetParams) {
|
|
|
117
117
|
|
|
118
118
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
119
119
|
var cssClasses = {
|
|
120
|
-
root: (0,
|
|
121
|
-
disabledRoot: (0,
|
|
120
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
121
|
+
disabledRoot: (0, _uiComponentsShared.cx)(suit({
|
|
122
122
|
modifierName: 'disabled'
|
|
123
123
|
}), userCssClasses.disabledRoot)
|
|
124
124
|
};
|
|
@@ -9,7 +9,7 @@ var _preact = require("preact");
|
|
|
9
9
|
|
|
10
10
|
var _formatNumber = require("../../lib/formatNumber.js");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
13
13
|
|
|
14
14
|
function ItemWrapper(_ref) {
|
|
15
15
|
var children = _ref.children,
|
|
@@ -20,14 +20,14 @@ function ItemWrapper(_ref) {
|
|
|
20
20
|
|
|
21
21
|
if (count) {
|
|
22
22
|
return (0, _preact.h)("a", {
|
|
23
|
-
className: (0,
|
|
23
|
+
className: (0, _uiComponentsShared.cx)(cssClasses.link),
|
|
24
24
|
"aria-label": "".concat(value, " & up"),
|
|
25
25
|
href: url
|
|
26
26
|
}, children);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
return (0, _preact.h)("div", {
|
|
30
|
-
className: (0,
|
|
30
|
+
className: (0, _uiComponentsShared.cx)(cssClasses.link),
|
|
31
31
|
"aria-label": "".concat(value, " & up"),
|
|
32
32
|
disabled: true
|
|
33
33
|
}, children);
|
|
@@ -48,7 +48,7 @@ var defaultTemplates = {
|
|
|
48
48
|
}, stars.map(function (isFull, index) {
|
|
49
49
|
return (0, _preact.h)("svg", {
|
|
50
50
|
key: index,
|
|
51
|
-
className: (0,
|
|
51
|
+
className: (0, _uiComponentsShared.cx)(cssClasses.starIcon, isFull ? cssClasses.fullStarIcon : cssClasses.emptyStarIcon),
|
|
52
52
|
"aria-hidden": "true",
|
|
53
53
|
width: "24",
|
|
54
54
|
height: "24"
|
|
@@ -56,9 +56,9 @@ var defaultTemplates = {
|
|
|
56
56
|
xlinkHref: isFull ? '#ais-RatingMenu-starSymbol' : '#ais-RatingMenu-starEmptySymbol'
|
|
57
57
|
}));
|
|
58
58
|
}), (0, _preact.h)("span", {
|
|
59
|
-
className: (0,
|
|
59
|
+
className: (0, _uiComponentsShared.cx)(cssClasses.label)
|
|
60
60
|
}, "& Up"), count && (0, _preact.h)("span", {
|
|
61
|
-
className: (0,
|
|
61
|
+
className: (0, _uiComponentsShared.cx)(cssClasses.count)
|
|
62
62
|
}, (0, _formatNumber.formatNumber)(count)));
|
|
63
63
|
}
|
|
64
64
|
};
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _RefinementList = _interopRequireDefault(require("../../components/RefinementList/RefinementList.js"));
|
|
13
13
|
|
|
@@ -128,42 +128,42 @@ var ratingMenu = function ratingMenu(widgetParams) {
|
|
|
128
128
|
|
|
129
129
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
130
130
|
var cssClasses = {
|
|
131
|
-
root: (0,
|
|
132
|
-
noRefinementRoot: (0,
|
|
131
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
132
|
+
noRefinementRoot: (0, _uiComponentsShared.cx)(suit({
|
|
133
133
|
modifierName: 'noRefinement'
|
|
134
134
|
}), userCssClasses.noRefinementRoot),
|
|
135
|
-
list: (0,
|
|
135
|
+
list: (0, _uiComponentsShared.cx)(suit({
|
|
136
136
|
descendantName: 'list'
|
|
137
137
|
}), userCssClasses.list),
|
|
138
|
-
item: (0,
|
|
138
|
+
item: (0, _uiComponentsShared.cx)(suit({
|
|
139
139
|
descendantName: 'item'
|
|
140
140
|
}), userCssClasses.item),
|
|
141
|
-
selectedItem: (0,
|
|
141
|
+
selectedItem: (0, _uiComponentsShared.cx)(suit({
|
|
142
142
|
descendantName: 'item',
|
|
143
143
|
modifierName: 'selected'
|
|
144
144
|
}), userCssClasses.selectedItem),
|
|
145
|
-
disabledItem: (0,
|
|
145
|
+
disabledItem: (0, _uiComponentsShared.cx)(suit({
|
|
146
146
|
descendantName: 'item',
|
|
147
147
|
modifierName: 'disabled'
|
|
148
148
|
}), userCssClasses.disabledItem),
|
|
149
|
-
link: (0,
|
|
149
|
+
link: (0, _uiComponentsShared.cx)(suit({
|
|
150
150
|
descendantName: 'link'
|
|
151
151
|
}), userCssClasses.link),
|
|
152
|
-
starIcon: (0,
|
|
152
|
+
starIcon: (0, _uiComponentsShared.cx)(suit({
|
|
153
153
|
descendantName: 'starIcon'
|
|
154
154
|
}), userCssClasses.starIcon),
|
|
155
|
-
fullStarIcon: (0,
|
|
155
|
+
fullStarIcon: (0, _uiComponentsShared.cx)(suit({
|
|
156
156
|
descendantName: 'starIcon',
|
|
157
157
|
modifierName: 'full'
|
|
158
158
|
}), userCssClasses.fullStarIcon),
|
|
159
|
-
emptyStarIcon: (0,
|
|
159
|
+
emptyStarIcon: (0, _uiComponentsShared.cx)(suit({
|
|
160
160
|
descendantName: 'starIcon',
|
|
161
161
|
modifierName: 'empty'
|
|
162
162
|
}), userCssClasses.emptyStarIcon),
|
|
163
|
-
label: (0,
|
|
163
|
+
label: (0, _uiComponentsShared.cx)(suit({
|
|
164
164
|
descendantName: 'label'
|
|
165
165
|
}), userCssClasses.label),
|
|
166
|
-
count: (0,
|
|
166
|
+
count: (0, _uiComponentsShared.cx)(suit({
|
|
167
167
|
descendantName: 'count'
|
|
168
168
|
}), userCssClasses.count)
|
|
169
169
|
};
|
|
@@ -9,7 +9,7 @@ var _preact = require("preact");
|
|
|
9
9
|
|
|
10
10
|
var _formatNumber = require("../../lib/formatNumber.js");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
13
13
|
|
|
14
14
|
var defaultTemplates = {
|
|
15
15
|
item: function item(_ref) {
|
|
@@ -20,19 +20,19 @@ var defaultTemplates = {
|
|
|
20
20
|
isRefined = _ref.isRefined,
|
|
21
21
|
isFromSearch = _ref.isFromSearch;
|
|
22
22
|
return (0, _preact.h)("label", {
|
|
23
|
-
className: (0,
|
|
23
|
+
className: (0, _uiComponentsShared.cx)(cssClasses.label)
|
|
24
24
|
}, (0, _preact.h)("input", {
|
|
25
25
|
type: "checkbox",
|
|
26
|
-
className: (0,
|
|
26
|
+
className: (0, _uiComponentsShared.cx)(cssClasses.checkbox),
|
|
27
27
|
value: value,
|
|
28
28
|
defaultChecked: isRefined
|
|
29
29
|
}), (0, _preact.h)("span", {
|
|
30
|
-
className: (0,
|
|
30
|
+
className: (0, _uiComponentsShared.cx)(cssClasses.labelText),
|
|
31
31
|
dangerouslySetInnerHTML: isFromSearch ? {
|
|
32
32
|
__html: highlighted
|
|
33
33
|
} : undefined
|
|
34
34
|
}, !isFromSearch && highlighted), (0, _preact.h)("span", {
|
|
35
|
-
className: (0,
|
|
35
|
+
className: (0, _uiComponentsShared.cx)(cssClasses.count)
|
|
36
36
|
}, (0, _formatNumber.formatNumber)(count)));
|
|
37
37
|
},
|
|
38
38
|
showMoreText: function showMoreText(_ref2) {
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _RefinementList = _interopRequireDefault(require("../../components/RefinementList/RefinementList.js"));
|
|
13
13
|
|
|
@@ -142,69 +142,69 @@ var refinementList = function refinementList(widgetParams) {
|
|
|
142
142
|
var escapeFacetValues = searchable ? Boolean(searchableEscapeFacetValues) : false;
|
|
143
143
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
144
144
|
var cssClasses = {
|
|
145
|
-
root: (0,
|
|
146
|
-
noRefinementRoot: (0,
|
|
145
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
146
|
+
noRefinementRoot: (0, _uiComponentsShared.cx)(suit({
|
|
147
147
|
modifierName: 'noRefinement'
|
|
148
148
|
}), userCssClasses.noRefinementRoot),
|
|
149
|
-
list: (0,
|
|
149
|
+
list: (0, _uiComponentsShared.cx)(suit({
|
|
150
150
|
descendantName: 'list'
|
|
151
151
|
}), userCssClasses.list),
|
|
152
|
-
item: (0,
|
|
152
|
+
item: (0, _uiComponentsShared.cx)(suit({
|
|
153
153
|
descendantName: 'item'
|
|
154
154
|
}), userCssClasses.item),
|
|
155
|
-
selectedItem: (0,
|
|
155
|
+
selectedItem: (0, _uiComponentsShared.cx)(suit({
|
|
156
156
|
descendantName: 'item',
|
|
157
157
|
modifierName: 'selected'
|
|
158
158
|
}), userCssClasses.selectedItem),
|
|
159
|
-
searchBox: (0,
|
|
159
|
+
searchBox: (0, _uiComponentsShared.cx)(suit({
|
|
160
160
|
descendantName: 'searchBox'
|
|
161
161
|
}), userCssClasses.searchBox),
|
|
162
|
-
label: (0,
|
|
162
|
+
label: (0, _uiComponentsShared.cx)(suit({
|
|
163
163
|
descendantName: 'label'
|
|
164
164
|
}), userCssClasses.label),
|
|
165
|
-
checkbox: (0,
|
|
165
|
+
checkbox: (0, _uiComponentsShared.cx)(suit({
|
|
166
166
|
descendantName: 'checkbox'
|
|
167
167
|
}), userCssClasses.checkbox),
|
|
168
|
-
labelText: (0,
|
|
168
|
+
labelText: (0, _uiComponentsShared.cx)(suit({
|
|
169
169
|
descendantName: 'labelText'
|
|
170
170
|
}), userCssClasses.labelText),
|
|
171
|
-
count: (0,
|
|
171
|
+
count: (0, _uiComponentsShared.cx)(suit({
|
|
172
172
|
descendantName: 'count'
|
|
173
173
|
}), userCssClasses.count),
|
|
174
|
-
noResults: (0,
|
|
174
|
+
noResults: (0, _uiComponentsShared.cx)(suit({
|
|
175
175
|
descendantName: 'noResults'
|
|
176
176
|
}), userCssClasses.noResults),
|
|
177
|
-
showMore: (0,
|
|
177
|
+
showMore: (0, _uiComponentsShared.cx)(suit({
|
|
178
178
|
descendantName: 'showMore'
|
|
179
179
|
}), userCssClasses.showMore),
|
|
180
|
-
disabledShowMore: (0,
|
|
180
|
+
disabledShowMore: (0, _uiComponentsShared.cx)(suit({
|
|
181
181
|
descendantName: 'showMore',
|
|
182
182
|
modifierName: 'disabled'
|
|
183
183
|
}), userCssClasses.disabledShowMore),
|
|
184
184
|
searchable: {
|
|
185
|
-
root: (0,
|
|
186
|
-
form: (0,
|
|
185
|
+
root: (0, _uiComponentsShared.cx)(searchBoxSuit(), userCssClasses.searchableRoot),
|
|
186
|
+
form: (0, _uiComponentsShared.cx)(searchBoxSuit({
|
|
187
187
|
descendantName: 'form'
|
|
188
188
|
}), userCssClasses.searchableForm),
|
|
189
|
-
input: (0,
|
|
189
|
+
input: (0, _uiComponentsShared.cx)(searchBoxSuit({
|
|
190
190
|
descendantName: 'input'
|
|
191
191
|
}), userCssClasses.searchableInput),
|
|
192
|
-
submit: (0,
|
|
192
|
+
submit: (0, _uiComponentsShared.cx)(searchBoxSuit({
|
|
193
193
|
descendantName: 'submit'
|
|
194
194
|
}), userCssClasses.searchableSubmit),
|
|
195
|
-
submitIcon: (0,
|
|
195
|
+
submitIcon: (0, _uiComponentsShared.cx)(searchBoxSuit({
|
|
196
196
|
descendantName: 'submitIcon'
|
|
197
197
|
}), userCssClasses.searchableSubmitIcon),
|
|
198
|
-
reset: (0,
|
|
198
|
+
reset: (0, _uiComponentsShared.cx)(searchBoxSuit({
|
|
199
199
|
descendantName: 'reset'
|
|
200
200
|
}), userCssClasses.searchableReset),
|
|
201
|
-
resetIcon: (0,
|
|
201
|
+
resetIcon: (0, _uiComponentsShared.cx)(searchBoxSuit({
|
|
202
202
|
descendantName: 'resetIcon'
|
|
203
203
|
}), userCssClasses.searchableResetIcon),
|
|
204
|
-
loadingIndicator: (0,
|
|
204
|
+
loadingIndicator: (0, _uiComponentsShared.cx)(searchBoxSuit({
|
|
205
205
|
descendantName: 'loadingIndicator'
|
|
206
206
|
}), userCssClasses.searchableLoadingIndicator),
|
|
207
|
-
loadingIcon: (0,
|
|
207
|
+
loadingIcon: (0, _uiComponentsShared.cx)(searchBoxSuit({
|
|
208
208
|
descendantName: 'loadingIcon'
|
|
209
209
|
}), userCssClasses.searchableLoadingIcon)
|
|
210
210
|
}
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _index = require("../../lib/utils/index.js");
|
|
13
13
|
|
|
@@ -63,11 +63,11 @@ var relevantSort = function relevantSort(widgetParams) {
|
|
|
63
63
|
|
|
64
64
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
65
65
|
var cssClasses = {
|
|
66
|
-
root: (0,
|
|
67
|
-
text: (0,
|
|
66
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
67
|
+
text: (0, _uiComponentsShared.cx)(suit({
|
|
68
68
|
descendantName: 'text'
|
|
69
69
|
}), userCssClasses.text),
|
|
70
|
-
button: (0,
|
|
70
|
+
button: (0, _uiComponentsShared.cx)(suit({
|
|
71
71
|
descendantName: 'button'
|
|
72
72
|
}), userCssClasses.button)
|
|
73
73
|
};
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _index = require("../../lib/utils/index.js");
|
|
13
13
|
|
|
@@ -98,29 +98,29 @@ var searchBox = function searchBox(widgetParams) {
|
|
|
98
98
|
|
|
99
99
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
100
100
|
var cssClasses = {
|
|
101
|
-
root: (0,
|
|
102
|
-
form: (0,
|
|
101
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
102
|
+
form: (0, _uiComponentsShared.cx)(suit({
|
|
103
103
|
descendantName: 'form'
|
|
104
104
|
}), userCssClasses.form),
|
|
105
|
-
input: (0,
|
|
105
|
+
input: (0, _uiComponentsShared.cx)(suit({
|
|
106
106
|
descendantName: 'input'
|
|
107
107
|
}), userCssClasses.input),
|
|
108
|
-
submit: (0,
|
|
108
|
+
submit: (0, _uiComponentsShared.cx)(suit({
|
|
109
109
|
descendantName: 'submit'
|
|
110
110
|
}), userCssClasses.submit),
|
|
111
|
-
submitIcon: (0,
|
|
111
|
+
submitIcon: (0, _uiComponentsShared.cx)(suit({
|
|
112
112
|
descendantName: 'submitIcon'
|
|
113
113
|
}), userCssClasses.submitIcon),
|
|
114
|
-
reset: (0,
|
|
114
|
+
reset: (0, _uiComponentsShared.cx)(suit({
|
|
115
115
|
descendantName: 'reset'
|
|
116
116
|
}), userCssClasses.reset),
|
|
117
|
-
resetIcon: (0,
|
|
117
|
+
resetIcon: (0, _uiComponentsShared.cx)(suit({
|
|
118
118
|
descendantName: 'resetIcon'
|
|
119
119
|
}), userCssClasses.resetIcon),
|
|
120
|
-
loadingIndicator: (0,
|
|
120
|
+
loadingIndicator: (0, _uiComponentsShared.cx)(suit({
|
|
121
121
|
descendantName: 'loadingIndicator'
|
|
122
122
|
}), userCssClasses.loadingIndicator),
|
|
123
|
-
loadingIcon: (0,
|
|
123
|
+
loadingIcon: (0, _uiComponentsShared.cx)(suit({
|
|
124
124
|
descendantName: 'loadingIcon'
|
|
125
125
|
}), userCssClasses.loadingIcon)
|
|
126
126
|
};
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _Selector = _interopRequireDefault(require("../../components/Selector/Selector.js"));
|
|
13
13
|
|
|
@@ -72,11 +72,11 @@ var sortBy = function sortBy(widgetParams) {
|
|
|
72
72
|
|
|
73
73
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
74
74
|
var cssClasses = {
|
|
75
|
-
root: (0,
|
|
76
|
-
select: (0,
|
|
75
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
76
|
+
select: (0, _uiComponentsShared.cx)(suit({
|
|
77
77
|
descendantName: 'select'
|
|
78
78
|
}), userCssClasses.select),
|
|
79
|
-
option: (0,
|
|
79
|
+
option: (0, _uiComponentsShared.cx)(suit({
|
|
80
80
|
descendantName: 'option'
|
|
81
81
|
}), userCssClasses.option)
|
|
82
82
|
};
|
|
@@ -7,7 +7,7 @@ exports.default = exports.defaultTemplates = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _Stats = _interopRequireDefault(require("../../components/Stats/Stats.js"));
|
|
13
13
|
|
|
@@ -145,8 +145,8 @@ var stats = function stats(widgetParams) {
|
|
|
145
145
|
|
|
146
146
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
147
147
|
var cssClasses = {
|
|
148
|
-
root: (0,
|
|
149
|
-
text: (0,
|
|
148
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
149
|
+
text: (0, _uiComponentsShared.cx)(suit({
|
|
150
150
|
descendantName: 'text'
|
|
151
151
|
}), userCssClasses.text)
|
|
152
152
|
};
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _ToggleRefinement = _interopRequireDefault(require("../../components/ToggleRefinement/ToggleRefinement.js"));
|
|
13
13
|
|
|
@@ -92,14 +92,14 @@ var toggleRefinement = function toggleRefinement(widgetParams) {
|
|
|
92
92
|
|
|
93
93
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
94
94
|
var cssClasses = {
|
|
95
|
-
root: (0,
|
|
96
|
-
label: (0,
|
|
95
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
96
|
+
label: (0, _uiComponentsShared.cx)(suit({
|
|
97
97
|
descendantName: 'label'
|
|
98
98
|
}), userCssClasses.label),
|
|
99
|
-
checkbox: (0,
|
|
99
|
+
checkbox: (0, _uiComponentsShared.cx)(suit({
|
|
100
100
|
descendantName: 'checkbox'
|
|
101
101
|
}), userCssClasses.checkbox),
|
|
102
|
-
labelText: (0,
|
|
102
|
+
labelText: (0, _uiComponentsShared.cx)(suit({
|
|
103
103
|
descendantName: 'labelText'
|
|
104
104
|
}), userCssClasses.labelText)
|
|
105
105
|
};
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _preact = require("preact");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _uiComponentsShared = require("@algolia/ui-components-shared");
|
|
11
11
|
|
|
12
12
|
var _index = require("../../lib/utils/index.js");
|
|
13
13
|
|
|
@@ -71,11 +71,11 @@ var voiceSearch = function voiceSearch(widgetParams) {
|
|
|
71
71
|
|
|
72
72
|
var containerNode = (0, _index.getContainerNode)(container);
|
|
73
73
|
var cssClasses = {
|
|
74
|
-
root: (0,
|
|
75
|
-
button: (0,
|
|
74
|
+
root: (0, _uiComponentsShared.cx)(suit(), userCssClasses.root),
|
|
75
|
+
button: (0, _uiComponentsShared.cx)(suit({
|
|
76
76
|
descendantName: 'button'
|
|
77
77
|
}), userCssClasses.button),
|
|
78
|
-
status: (0,
|
|
78
|
+
status: (0, _uiComponentsShared.cx)(suit({
|
|
79
79
|
descendantName: 'status'
|
|
80
80
|
}), userCssClasses.status)
|
|
81
81
|
};
|