io-sanita-theme 2.20.2 → 2.20.3

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.20.3](https://github.com/RedTurtle/io-sanita-theme/compare/2.20.2...2.20.3) (2025-09-10)
4
+
5
+ ### Bug Fixes
6
+
7
+ * fixed b_size select filter and subsite parent header when header is sticky ([#104](https://github.com/RedTurtle/io-sanita-theme/issues/104)) ([38b19a0](https://github.com/RedTurtle/io-sanita-theme/commit/38b19a0ab7eea01841c749b89a0fb1a35003f791))
8
+ * fixed sort_order selectFilter options ([#106](https://github.com/RedTurtle/io-sanita-theme/issues/106)) ([6307487](https://github.com/RedTurtle/io-sanita-theme/commit/6307487b1ec92ee71a366e702e852a320fd2851d))
9
+
3
10
  ## [2.20.2](https://github.com/RedTurtle/io-sanita-theme/compare/2.20.1...2.20.2) (2025-09-01)
4
11
 
5
12
  ### Maintenance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io-sanita-theme",
3
- "version": "2.20.2",
3
+ "version": "2.20.3",
4
4
  "description": "io-sanita-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -5,7 +5,8 @@ import { useDispatch, useSelector } from 'react-redux';
5
5
  import { searchContent } from '@plone/volto/actions/search/search';
6
6
  import { getVocabulary } from '@plone/volto/actions/vocabularies/vocabularies';
7
7
 
8
- const SelectFilter = ({ options, value, id, onChange, placeholder }) => {
8
+
9
+ const SelectFilter = ({ options, value, id, onChange, placeholder, sortVocabulary = false, b_size = -1 }) => {
9
10
  const dispatch = useDispatch();
10
11
 
11
12
  const state = useSelector((state) => {
@@ -23,7 +24,6 @@ const SelectFilter = ({ options, value, id, onChange, placeholder }) => {
23
24
  label: i.title,
24
25
  };
25
26
  });
26
-
27
27
  const vocabularies = state?.vocabularies;
28
28
 
29
29
  useEffect(() => {
@@ -46,7 +46,7 @@ const SelectFilter = ({ options, value, id, onChange, placeholder }) => {
46
46
  );
47
47
  }
48
48
  } else if (options.vocabulary) {
49
- dispatch(getVocabulary({ vocabNameOrURL: options.vocabulary }));
49
+ dispatch(getVocabulary({ vocabNameOrURL: options.vocabulary, size: b_size }));
50
50
  }
51
51
  }, []);
52
52
 
@@ -54,6 +54,10 @@ const SelectFilter = ({ options, value, id, onChange, placeholder }) => {
54
54
  ? vocabularies?.[options.vocabulary]?.items
55
55
  : selectOptions;
56
56
 
57
+ if (sortVocabulary && select_options?.length > 0) {
58
+ select_options.sort((a, b) => a.label.localeCompare(b.label));
59
+ }
60
+
57
61
  return (
58
62
  <div className="filter-wrapper select-filter">
59
63
  <SelectInput
@@ -40,6 +40,10 @@
40
40
  }
41
41
  }
42
42
  }
43
+
44
+ .parent-site-menu {
45
+ display: none;
46
+ }
43
47
  }
44
48
  }
45
49
  }