design-comuni-plone-theme 11.1.4 → 11.2.1

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/RELEASE.md +26 -1
  3. package/locales/de/LC_MESSAGES/volto.po +35 -0
  4. package/locales/en/LC_MESSAGES/volto.po +35 -0
  5. package/locales/es/LC_MESSAGES/volto.po +35 -0
  6. package/locales/fr/LC_MESSAGES/volto.po +35 -0
  7. package/locales/it/LC_MESSAGES/volto.po +35 -0
  8. package/locales/volto.pot +36 -1
  9. package/package.json +2 -2
  10. package/publiccode.yml +2 -2
  11. package/src/components/Collapse.jsx +16 -11
  12. package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Block.jsx +32 -44
  13. package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/Block.jsx +28 -34
  14. package/src/components/ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx +33 -37
  15. package/src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx +16 -6
  16. package/src/components/ItaliaTheme/MenuSecondary/MenuSecondary.jsx +3 -2
  17. package/src/components/ItaliaTheme/Search/ResultItem.jsx +30 -15
  18. package/src/components/ItaliaTheme/Search/Search.jsx +49 -19
  19. package/src/config/italiaConfig.js +5 -6
  20. package/src/customizations/volto/components/manage/Blocks/HTML/Edit.jsx +42 -16
  21. package/src/customizations/volto/components/manage/Blocks/Listing/ListingBody.jsx +6 -2
  22. package/src/customizations/volto/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +6 -7
  23. package/src/customizations/volto/components/theme/Navigation/Navigation.jsx +65 -36
  24. package/src/overrideTranslations.jsx +28 -0
  25. package/src/theme/ItaliaTheme/Blocks/_alert.scss +6 -4
  26. package/src/theme/ItaliaTheme/Blocks/_countdown.scss +1 -1
  27. package/src/theme/ItaliaTheme/Blocks/_gridGalleryTemplate.scss +7 -2
  28. package/src/theme/ItaliaTheme/Blocks/_numbers.scss +1 -1
  29. package/src/theme/ItaliaTheme/Components/_card.scss +1 -1
  30. package/src/theme/ItaliaTheme/Components/_search.scss +1 -0
  31. package/src/theme/ItaliaTheme/_main.scss +4 -1
  32. package/src/theme/_site-variables.scss +7 -4
  33. package/src/theme/bootstrap-override/_bootstrap-italia-site.scss +1 -0
  34. package/src/theme/bootstrap-override/bootstrap-italia/_callout.scss +2 -2
  35. package/src/theme/bootstrap-override/bootstrap-italia/_focus.scss +3 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
 
2
2
 
3
+ ## [11.2.1](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.2.0...v11.2.1) (2024-01-15)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * callout style in draftJs ([#481](https://github.com/redturtle/design-comuni-plone-theme/issues/481)) ([34b8de7](https://github.com/redturtle/design-comuni-plone-theme/commit/34b8de7ead0c2639ddd131f2cbb530833546101e))
9
+ * recurrence string and edit recurrence ([#482](https://github.com/redturtle/design-comuni-plone-theme/issues/482)) ([276cbef](https://github.com/redturtle/design-comuni-plone-theme/commit/276cbef5fea86942173e5ba556bbae2cc47bd7a1))
10
+
11
+
12
+ ### Documentation
13
+
14
+ * updated publiccode and release log ([01eb885](https://github.com/redturtle/design-comuni-plone-theme/commit/01eb885524bcd54c21edfcdaf56a1a156bfea54a))
15
+
16
+ ## [11.2.0](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.1.4...v11.2.0) (2024-01-11)
17
+
18
+
19
+ ### Features
20
+
21
+ * customizable Alert block colors and text color ([#470](https://github.com/redturtle/design-comuni-plone-theme/issues/470)) ([4aa6f76](https://github.com/redturtle/design-comuni-plone-theme/commit/4aa6f7607be0ac8a76f1d519eee82483d9320a05))
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * a11y for navigation in megamenu and mobile menu ([#456](https://github.com/redturtle/design-comuni-plone-theme/issues/456)) ([6e4c1ef](https://github.com/redturtle/design-comuni-plone-theme/commit/6e4c1efbf96c372bf78a67ecf86ade64b7b2bb6a))
27
+ * **a11y:** a11y - colore sfondo opzione con focus in tendina "ordina per" ([#457](https://github.com/redturtle/design-comuni-plone-theme/issues/457)) ([d81b3a9](https://github.com/redturtle/design-comuni-plone-theme/commit/d81b3a9f34822242e10942a4acccb5978996a06b))
28
+ * added aria-live and aria-labels for filters in Search page ([#462](https://github.com/redturtle/design-comuni-plone-theme/issues/462)) ([13cf7da](https://github.com/redturtle/design-comuni-plone-theme/commit/13cf7dac5f8aaf5deaee5720ccd2e9a54c6326db))
29
+ * added focus style for skiplinks for a11y ([#458](https://github.com/redturtle/design-comuni-plone-theme/issues/458)) ([94e5cca](https://github.com/redturtle/design-comuni-plone-theme/commit/94e5cca0b671aa5bfc1febf4f51b306f71de43be))
30
+ * aria tags to avoid double feedback on SR ([#468](https://github.com/redturtle/design-comuni-plone-theme/issues/468)) ([867df42](https://github.com/redturtle/design-comuni-plone-theme/commit/867df42a8ae96f0546afb43e12490553648128f7))
31
+ * background color contrast for blocks number, countdown and gallery grid ([#433](https://github.com/redturtle/design-comuni-plone-theme/issues/433)) ([d005222](https://github.com/redturtle/design-comuni-plone-theme/commit/d005222a994d0117f41fcf7d9e93ead1c8e71f1f))
32
+ * broken videos in Video Gallery block ([#461](https://github.com/redturtle/design-comuni-plone-theme/issues/461)) ([e977673](https://github.com/redturtle/design-comuni-plone-theme/commit/e9776738df702dd915e1dab45f3cdbb227fa4a6a))
33
+ * default in white header scss variable ([3194ab8](https://github.com/redturtle/design-comuni-plone-theme/commit/3194ab8139edfadff747494c9609e7b2fa79b057))
34
+ * font and spaces of Card blocks ([#476](https://github.com/redturtle/design-comuni-plone-theme/issues/476)) ([3b45cc8](https://github.com/redturtle/design-comuni-plone-theme/commit/3b45cc890f769ab839f9abd30968ff9ca4ef82e7))
35
+ * listing bg color ([#475](https://github.com/redturtle/design-comuni-plone-theme/issues/475)) ([544be04](https://github.com/redturtle/design-comuni-plone-theme/commit/544be046ddca345f1b0c9073a4a57c876281031b))
36
+ * lowered flex basis of card-body in LocationItem cards ([#460](https://github.com/redturtle/design-comuni-plone-theme/issues/460)) ([697f54c](https://github.com/redturtle/design-comuni-plone-theme/commit/697f54c9f81947898caa27f4aa76dee0b16d0616))
37
+ * toolbar buttons for html block ([#477](https://github.com/redturtle/design-comuni-plone-theme/issues/477)) ([ed41904](https://github.com/redturtle/design-comuni-plone-theme/commit/ed419046c9184387e4daac4de86f8b0cd09924b4))
38
+
39
+
40
+ ### Maintenance
41
+
42
+ * **deps:** bump http-cache-semantics from 4.1.0 to 4.1.1 ([#464](https://github.com/redturtle/design-comuni-plone-theme/issues/464)) ([88d5d2c](https://github.com/redturtle/design-comuni-plone-theme/commit/88d5d2c8423ea3052ad2a4ea54623e072a86e0e8))
43
+ * **deps:** bump json5 from 1.0.1 to 1.0.2 ([#467](https://github.com/redturtle/design-comuni-plone-theme/issues/467)) ([1dbc958](https://github.com/redturtle/design-comuni-plone-theme/commit/1dbc9582e49866edc74ff65ce4b96c8218e713d9))
44
+ * **deps:** bump semver from 5.7.1 to 5.7.2 ([#446](https://github.com/redturtle/design-comuni-plone-theme/issues/446)) ([49a6e2f](https://github.com/redturtle/design-comuni-plone-theme/commit/49a6e2f217b779ba4f57ca030335af12b91b7337))
45
+ * **deps:** bump simple-git from 3.14.1 to 3.22.0 ([#465](https://github.com/redturtle/design-comuni-plone-theme/issues/465)) ([6d956dd](https://github.com/redturtle/design-comuni-plone-theme/commit/6d956dda6575f6acd5321b223b67c593db27d1e1))
46
+ * replace react-highlight-words with simple custom code ([#463](https://github.com/redturtle/design-comuni-plone-theme/issues/463)) ([809e92e](https://github.com/redturtle/design-comuni-plone-theme/commit/809e92e647a23dfcfb2d3c15616e17fc32388984))
47
+
48
+
49
+ ### Documentation
50
+
51
+ * updated publiccode and release log ([285b7ce](https://github.com/redturtle/design-comuni-plone-theme/commit/285b7ced0dc20b0e6e35d9849ded449913279a83))
52
+
3
53
  ## [11.1.4](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.1.3...v11.1.4) (2024-01-05)
4
54
 
5
55
 
package/RELEASE.md CHANGED
@@ -41,7 +41,32 @@
41
41
  - ...
42
42
  -->
43
43
 
44
- ## Versione 11.1.4 (dd/mm/yyyy)
44
+ ## Versione 11.2.1 (15/01/2024)
45
+
46
+ ### Migliorie
47
+
48
+ - Migliorata il testo della ricorrenza di un evento.
49
+
50
+ ### Fix
51
+
52
+ - Risolto un problema nell'edit della ricorrenza di un evento.
53
+ - Risolto problema con lo stile "callout", icona megafono dell'editor di testo con sfondo bianco e bordo grigio
54
+
55
+ ## Versione 11.2.0 (11/01/2024)
56
+
57
+ ### Migliorie
58
+
59
+ - Migliorata l'accessibilità nella pagina di Ricerca.
60
+ - Diminuita la larghezza del testo nelle card che indicano i luoghi.
61
+
62
+ ### Fix
63
+
64
+ - Risolto un problema nel blocco Video Gallery, per cui alcuni video di youtube non erano riproducibili.
65
+ - Risolto problema nel funzionamento della toolbar per il blocco HTML.
66
+ - Sistemate spaziature e font su mobile del blocco Card con Immagine e Card Semplice, migliorato il layout di quest'ultimo.
67
+ - È stato migliorato il contrasto minimo necessario tra sfondo e testo nei blocchi numeri, countdown e galleria a griglia.
68
+
69
+ ## Versione 11.1.4 (05/01/2024)
45
70
 
46
71
  ### Fix
47
72
 
@@ -742,6 +742,11 @@ msgstr ""
742
742
  msgid "actions"
743
743
  msgstr ""
744
744
 
745
+ #: components/ItaliaTheme/Search/Search
746
+ # defaultMessage: {filterNumber} filtri attivati
747
+ msgid "active_filters"
748
+ msgstr ""
749
+
745
750
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
746
751
  # defaultMessage: Vai alla ricerca per sezioni avanzata
747
752
  msgid "advandedSectionsFilters"
@@ -2914,6 +2919,36 @@ msgstr ""
2914
2919
  msgid "risultati_indagini_customer_satisfaction"
2915
2920
  msgstr ""
2916
2921
 
2922
+ #: overrideTranslations
2923
+ # defaultMessage: il giorno
2924
+ msgid "rrule_in"
2925
+ msgstr ""
2926
+
2927
+ #: overrideTranslations
2928
+ # defaultMessage: _
2929
+ msgid "rrule_nd"
2930
+ msgstr ""
2931
+
2932
+ #: overrideTranslations
2933
+ # defaultMessage: il
2934
+ msgid "rrule_on the"
2935
+ msgstr ""
2936
+
2937
+ #: overrideTranslations
2938
+ # defaultMessage: _
2939
+ msgid "rrule_rd"
2940
+ msgstr ""
2941
+
2942
+ #: overrideTranslations
2943
+ # defaultMessage: _
2944
+ msgid "rrule_st"
2945
+ msgstr ""
2946
+
2947
+ #: overrideTranslations
2948
+ # defaultMessage: _
2949
+ msgid "rrule_th"
2950
+ msgstr ""
2951
+
2917
2952
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
2918
2953
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
2919
2954
  # defaultMessage: No results from RSS feed.
@@ -727,6 +727,11 @@ msgstr ""
727
727
  msgid "actions"
728
728
  msgstr "View actions"
729
729
 
730
+ #: components/ItaliaTheme/Search/Search
731
+ # defaultMessage: {filterNumber} filtri attivati
732
+ msgid "active_filters"
733
+ msgstr ""
734
+
730
735
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
731
736
  # defaultMessage: Vai alla ricerca per sezioni avanzata
732
737
  msgid "advandedSectionsFilters"
@@ -2899,6 +2904,36 @@ msgstr "Rights"
2899
2904
  msgid "risultati_indagini_customer_satisfaction"
2900
2905
  msgstr "Customer satisfaction survey results"
2901
2906
 
2907
+ #: overrideTranslations
2908
+ # defaultMessage: il giorno
2909
+ msgid "rrule_in"
2910
+ msgstr "in"
2911
+
2912
+ #: overrideTranslations
2913
+ # defaultMessage: _
2914
+ msgid "rrule_nd"
2915
+ msgstr "nd"
2916
+
2917
+ #: overrideTranslations
2918
+ # defaultMessage: il
2919
+ msgid "rrule_on the"
2920
+ msgstr "on the"
2921
+
2922
+ #: overrideTranslations
2923
+ # defaultMessage: _
2924
+ msgid "rrule_rd"
2925
+ msgstr "rd"
2926
+
2927
+ #: overrideTranslations
2928
+ # defaultMessage: _
2929
+ msgid "rrule_st"
2930
+ msgstr "st"
2931
+
2932
+ #: overrideTranslations
2933
+ # defaultMessage: _
2934
+ msgid "rrule_th"
2935
+ msgstr "th"
2936
+
2902
2937
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
2903
2938
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
2904
2939
  # defaultMessage: No results from RSS feed.
@@ -736,6 +736,11 @@ msgstr ""
736
736
  msgid "actions"
737
737
  msgstr "Ver acciones"
738
738
 
739
+ #: components/ItaliaTheme/Search/Search
740
+ # defaultMessage: {filterNumber} filtri attivati
741
+ msgid "active_filters"
742
+ msgstr ""
743
+
739
744
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
740
745
  # defaultMessage: Vai alla ricerca per sezioni avanzata
741
746
  msgid "advandedSectionsFilters"
@@ -2908,6 +2913,36 @@ msgstr "Derechos"
2908
2913
  msgid "risultati_indagini_customer_satisfaction"
2909
2914
  msgstr "Resultados de la encuesta de satisfacción del cliente"
2910
2915
 
2916
+ #: overrideTranslations
2917
+ # defaultMessage: il giorno
2918
+ msgid "rrule_in"
2919
+ msgstr ""
2920
+
2921
+ #: overrideTranslations
2922
+ # defaultMessage: _
2923
+ msgid "rrule_nd"
2924
+ msgstr ""
2925
+
2926
+ #: overrideTranslations
2927
+ # defaultMessage: il
2928
+ msgid "rrule_on the"
2929
+ msgstr ""
2930
+
2931
+ #: overrideTranslations
2932
+ # defaultMessage: _
2933
+ msgid "rrule_rd"
2934
+ msgstr ""
2935
+
2936
+ #: overrideTranslations
2937
+ # defaultMessage: _
2938
+ msgid "rrule_st"
2939
+ msgstr ""
2940
+
2941
+ #: overrideTranslations
2942
+ # defaultMessage: _
2943
+ msgid "rrule_th"
2944
+ msgstr ""
2945
+
2911
2946
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
2912
2947
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
2913
2948
  # defaultMessage: No results from RSS feed.
@@ -744,6 +744,11 @@ msgstr ""
744
744
  msgid "actions"
745
745
  msgstr "Voir les actions"
746
746
 
747
+ #: components/ItaliaTheme/Search/Search
748
+ # defaultMessage: {filterNumber} filtri attivati
749
+ msgid "active_filters"
750
+ msgstr ""
751
+
747
752
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
748
753
  # defaultMessage: Vai alla ricerca per sezioni avanzata
749
754
  msgid "advandedSectionsFilters"
@@ -2916,6 +2921,36 @@ msgstr "Droits"
2916
2921
  msgid "risultati_indagini_customer_satisfaction"
2917
2922
  msgstr "Résultats des enquêtes de satisfaction clients"
2918
2923
 
2924
+ #: overrideTranslations
2925
+ # defaultMessage: il giorno
2926
+ msgid "rrule_in"
2927
+ msgstr ""
2928
+
2929
+ #: overrideTranslations
2930
+ # defaultMessage: _
2931
+ msgid "rrule_nd"
2932
+ msgstr ""
2933
+
2934
+ #: overrideTranslations
2935
+ # defaultMessage: il
2936
+ msgid "rrule_on the"
2937
+ msgstr ""
2938
+
2939
+ #: overrideTranslations
2940
+ # defaultMessage: _
2941
+ msgid "rrule_rd"
2942
+ msgstr ""
2943
+
2944
+ #: overrideTranslations
2945
+ # defaultMessage: _
2946
+ msgid "rrule_st"
2947
+ msgstr ""
2948
+
2949
+ #: overrideTranslations
2950
+ # defaultMessage: _
2951
+ msgid "rrule_th"
2952
+ msgstr ""
2953
+
2919
2954
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
2920
2955
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
2921
2956
  # defaultMessage: No results from RSS feed.
@@ -727,6 +727,11 @@ msgstr "Account"
727
727
  msgid "actions"
728
728
  msgstr "Vedi azioni"
729
729
 
730
+ #: components/ItaliaTheme/Search/Search
731
+ # defaultMessage: {filterNumber} filtri attivati
732
+ msgid "active_filters"
733
+ msgstr ""
734
+
730
735
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
731
736
  # defaultMessage: Vai alla ricerca per sezioni avanzata
732
737
  msgid "advandedSectionsFilters"
@@ -2899,6 +2904,36 @@ msgstr "Diritti"
2899
2904
  msgid "risultati_indagini_customer_satisfaction"
2900
2905
  msgstr "Risultati indagini di customer satisfaction"
2901
2906
 
2907
+ #: overrideTranslations
2908
+ # defaultMessage: il giorno
2909
+ msgid "rrule_in"
2910
+ msgstr "il giorno"
2911
+
2912
+ #: overrideTranslations
2913
+ # defaultMessage: _
2914
+ msgid "rrule_nd"
2915
+ msgstr " "
2916
+
2917
+ #: overrideTranslations
2918
+ # defaultMessage: il
2919
+ msgid "rrule_on the"
2920
+ msgstr "il giorno"
2921
+
2922
+ #: overrideTranslations
2923
+ # defaultMessage: _
2924
+ msgid "rrule_rd"
2925
+ msgstr " "
2926
+
2927
+ #: overrideTranslations
2928
+ # defaultMessage: _
2929
+ msgid "rrule_st"
2930
+ msgstr " "
2931
+
2932
+ #: overrideTranslations
2933
+ # defaultMessage: _
2934
+ msgid "rrule_th"
2935
+ msgstr " "
2936
+
2902
2937
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
2903
2938
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
2904
2939
  # defaultMessage: No results from RSS feed.
package/locales/volto.pot CHANGED
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Plone\n"
4
- "POT-Creation-Date: 2023-12-20T09:24:02.911Z\n"
4
+ "POT-Creation-Date: 2024-01-11T13:44:40.490Z\n"
5
5
  "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
6
  "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
7
  "MIME-Version: 1.0\n"
@@ -729,6 +729,11 @@ msgstr ""
729
729
  msgid "actions"
730
730
  msgstr ""
731
731
 
732
+ #: components/ItaliaTheme/Search/Search
733
+ # defaultMessage: {filterNumber} filtri attivati
734
+ msgid "active_filters"
735
+ msgstr ""
736
+
732
737
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
733
738
  # defaultMessage: Vai alla ricerca per sezioni avanzata
734
739
  msgid "advandedSectionsFilters"
@@ -2901,6 +2906,36 @@ msgstr ""
2901
2906
  msgid "risultati_indagini_customer_satisfaction"
2902
2907
  msgstr ""
2903
2908
 
2909
+ #: overrideTranslations
2910
+ # defaultMessage: il giorno
2911
+ msgid "rrule_in"
2912
+ msgstr ""
2913
+
2914
+ #: overrideTranslations
2915
+ # defaultMessage: _
2916
+ msgid "rrule_nd"
2917
+ msgstr ""
2918
+
2919
+ #: overrideTranslations
2920
+ # defaultMessage: il
2921
+ msgid "rrule_on the"
2922
+ msgstr ""
2923
+
2924
+ #: overrideTranslations
2925
+ # defaultMessage: _
2926
+ msgid "rrule_rd"
2927
+ msgstr ""
2928
+
2929
+ #: overrideTranslations
2930
+ # defaultMessage: _
2931
+ msgid "rrule_st"
2932
+ msgstr ""
2933
+
2934
+ #: overrideTranslations
2935
+ # defaultMessage: _
2936
+ msgid "rrule_th"
2937
+ msgstr ""
2938
+
2904
2939
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
2905
2940
  #: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
2906
2941
  # defaultMessage: No results from RSS feed.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "11.1.4",
5
+ "version": "11.2.1",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
@@ -131,8 +131,8 @@
131
131
  "htmldiff-js": "1.0.5",
132
132
  "marked": "9.0.0",
133
133
  "react-dropzone": "11.0.1",
134
+ "react-focus-lock": "2.9.4",
134
135
  "react-google-recaptcha-v3": "1.7.0",
135
- "react-highlight-words": "0.18.0",
136
136
  "react-select": "^4.3.1",
137
137
  "react-slick": "^0.29.0",
138
138
  "slick-carousel": "1.8.1",
package/publiccode.yml CHANGED
@@ -227,9 +227,9 @@ maintenance:
227
227
  name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
228
228
  platforms:
229
229
  - web
230
- releaseDate: '2024-01-05'
230
+ releaseDate: '2024-01-15'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.1.4
232
+ softwareVersion: 11.2.1
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -39,10 +39,10 @@ const Collapse = ({
39
39
  children,
40
40
  isOpen,
41
41
  onOverlayClick,
42
+ showCloseButton = true, // deprecato da v12.0.0
42
43
  ...attributes
43
44
  }) => {
44
45
  const intl = useIntl();
45
-
46
46
  if (navbar && header) {
47
47
  const classes = classNames(className, 'navbar-collapse', {
48
48
  expanded: isOpen,
@@ -60,16 +60,21 @@ const Collapse = ({
60
60
  style={{ display: isOpen ? 'block' : 'none' }}
61
61
  onClick={onOverlayClick}
62
62
  ></div>
63
- <div className="close-div">
64
- <button
65
- className="btn close-menu"
66
- type="button"
67
- title={intl.formatMessage(messages.CloseMenu)}
68
- onClick={onOverlayClick}
69
- >
70
- <Icon color="white" icon="it-close-big" padding={false} />
71
- </button>
72
- </div>
63
+ {/* Deprecato - non viene più utilizzato da v12.0.0 per ragioni di accessibilità
64
+ Close button ora presente in Navigation.jsx
65
+ */}
66
+ {showCloseButton && (
67
+ <div className="close-div">
68
+ <button
69
+ className="btn close-menu"
70
+ type="button"
71
+ title={intl.formatMessage(messages.CloseMenu)}
72
+ onClick={onOverlayClick}
73
+ >
74
+ <Icon color="white" icon="it-close-big" padding={false} />
75
+ </button>
76
+ </div>
77
+ )}
73
78
  {children}
74
79
  </CollapseBase>
75
80
  );
@@ -1,14 +1,7 @@
1
1
  /* eslint-disable jsx-a11y/no-static-element-interactions */
2
2
  /* eslint-disable jsx-a11y/click-events-have-key-events */
3
- import React, { useState, useRef, useEffect } from 'react';
4
- import {
5
- Card,
6
- CardBody,
7
- CardText,
8
- Container,
9
- Row,
10
- Col,
11
- } from 'design-react-kit';
3
+ import React, { useState, useEffect } from 'react';
4
+ import { Card, CardBody, Container, Row, Col } from 'design-react-kit';
12
5
  import { defineMessages, useIntl } from 'react-intl';
13
6
  import PropTypes from 'prop-types';
14
7
  import redraft from 'redraft';
@@ -113,7 +106,7 @@ const Block = ({
113
106
  )}
114
107
  </h2>
115
108
  <Card color="white" className="card-bg rounded" noWrapper={false}>
116
- <CardBody className="pb-0">
109
+ <CardBody>
117
110
  {inEditMode ? (
118
111
  <Container>
119
112
  <Row
@@ -123,19 +116,20 @@ const Block = ({
123
116
  })}
124
117
  >
125
118
  {hasImage && (
126
- <Col className="py-4 px-0" key={'col-0'}>
119
+ <Col className="my-1 px-0" key={'col-0'}>
127
120
  {renderImage(data?.image, hasImage, data?.sizeNatural)}
128
121
  </Col>
129
122
  )}
130
123
  <div
131
124
  key={'col-1'}
132
- className={cx('p-4 mb-2', {
125
+ className={cx('px-4 mb-2', {
133
126
  'col-12': !hasImage,
134
127
  'col-8':
135
128
  (hasImage && data?.sizeImage === 's') ||
136
129
  (hasImage && !data?.sizeImage),
137
130
  'col-6': hasImage && data?.sizeImage === 'm',
138
131
  'col-4': hasImage && data?.sizeImage === 'l',
132
+ 'ps-0': data?.rightImage,
139
133
  })}
140
134
  >
141
135
  <div
@@ -146,29 +140,24 @@ const Block = ({
146
140
  setSelectedField('content');
147
141
  }}
148
142
  >
149
- <CardText
150
- className="simple-text-card text"
151
- style={{ padding: 0 }}
152
- >
153
- <TextEditorWidget
154
- data={data}
155
- fieldName="image_card_content"
156
- selected={selectedField === 'content'}
157
- block={block}
158
- onChangeBlock={(data) => onChange(data)}
159
- placeholder={intl.formatMessage(
160
- messages.image_card_content,
161
- )}
162
- showToolbar={true}
163
- onSelectBlock={onSelectBlock}
164
- onAddBlock={onAddBlock}
165
- index={index}
166
- onFocusNextBlock={onFocusNextBlock}
167
- onFocusPreviousBlock={() => {
168
- setSelectedField('title');
169
- }}
170
- />
171
- </CardText>
143
+ <TextEditorWidget
144
+ data={data}
145
+ fieldName="image_card_content"
146
+ selected={selectedField === 'content'}
147
+ block={block}
148
+ onChangeBlock={(data) => onChange(data)}
149
+ placeholder={intl.formatMessage(
150
+ messages.image_card_content,
151
+ )}
152
+ showToolbar={true}
153
+ onSelectBlock={onSelectBlock}
154
+ onAddBlock={onAddBlock}
155
+ index={index}
156
+ onFocusNextBlock={onFocusNextBlock}
157
+ onFocusPreviousBlock={() => {
158
+ setSelectedField('title');
159
+ }}
160
+ />
172
161
  </div>
173
162
  </div>
174
163
  </Row>
@@ -180,28 +169,27 @@ const Block = ({
180
169
  'revert-row': data?.rightImage,
181
170
  })}
182
171
  >
183
- <Col className="py-4 px-0" key={'col-0'} data-testid={'col-0'}>
172
+ <Col className="my-1 p-0" key={'col-0'} data-testid={'col-0'}>
184
173
  {renderImage(data?.image, hasImage, data?.sizeNatural)}
185
174
  </Col>
186
175
  <div
187
176
  key={'col-1'}
188
177
  data-testid={'col-1'}
189
- className={cx('p-4', {
178
+ className={cx('px-4', {
190
179
  'col-12': !hasImage,
191
180
  'col-8':
192
181
  (hasImage && data?.sizeImage === 's') ||
193
182
  (hasImage && !data?.sizeImage),
194
183
  'col-6': hasImage && data?.sizeImage === 'm',
195
184
  'col-4': hasImage && data?.sizeImage === 'l',
185
+ 'ps-0': data?.rightImage,
196
186
  })}
197
187
  >
198
- <CardText>
199
- {redraft(
200
- content,
201
- config.settings.richtextViewSettings.ToHTMLRenderers,
202
- config.settings.richtextViewSettings.ToHTMLOptions,
203
- )}
204
- </CardText>
188
+ {redraft(
189
+ content,
190
+ config.settings.richtextViewSettings.ToHTMLRenderers,
191
+ config.settings.richtextViewSettings.ToHTMLOptions,
192
+ )}
205
193
  </div>
206
194
  </Row>
207
195
  </Container>