ywana-core8 0.0.726 → 0.0.727
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.modern.js
CHANGED
@@ -10244,7 +10244,8 @@ var CollectionFilters = function CollectionFilters(props) {
|
|
10244
10244
|
var schema = props.schema,
|
10245
10245
|
children = props.children;
|
10246
10246
|
var context = useContext(CollectionContext);
|
10247
|
-
var filters = context.filters
|
10247
|
+
var filters = context.filters,
|
10248
|
+
selected = context.selected;
|
10248
10249
|
|
10249
10250
|
var _useState = useState(false),
|
10250
10251
|
open = _useState[0],
|
@@ -10277,8 +10278,9 @@ var CollectionFilters = function CollectionFilters(props) {
|
|
10277
10278
|
|
10278
10279
|
return acc;
|
10279
10280
|
}, {});
|
10281
|
+
var style = selected ? 'selected' : '';
|
10280
10282
|
return /*#__PURE__*/React.createElement("div", {
|
10281
|
-
className: "collection-filters"
|
10283
|
+
className: "collection-filters " + style
|
10282
10284
|
}, /*#__PURE__*/React.createElement("header", null, /*#__PURE__*/React.createElement("div", {
|
10283
10285
|
className: "custom-filters"
|
10284
10286
|
}, children), /*#__PURE__*/React.createElement(CollectionFiltersResume, {
|