@undrr/undrr-mangrove 2.2.0 → 2.4.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.
Files changed (100) hide show
  1. package/README.md +1 -1
  2. package/components/BookCard.js +5 -2
  3. package/components/Breadcrumbs.js +2 -2
  4. package/components/Checkbox.js +3 -2
  5. package/components/Chips.js +2 -2
  6. package/components/ContentCard.js +8 -2
  7. package/components/ContentTeaser.js +8 -2
  8. package/components/CopyButton.js +3 -2
  9. package/components/CtaButton.js +3 -2
  10. package/components/Drawer.js +2 -2
  11. package/components/Drawer.js.LICENSE.txt +1 -1
  12. package/components/DrupalContentPatterns.js +1 -1
  13. package/components/EmbedContainer.js +3 -2
  14. package/components/Footer.js +2 -2
  15. package/components/FormAction.js +3 -2
  16. package/components/FormErrorSummary.js +2 -2
  17. package/components/FormGroup.js +3 -2
  18. package/components/FullWidth.js +3 -2
  19. package/components/Gallery.js +3 -2
  20. package/components/Hero.js +6 -2
  21. package/components/HighlightBox.js +3 -2
  22. package/components/HorizontalBookCard.js +6 -2
  23. package/components/HorizontalBookCard.js.LICENSE.txt +1 -1
  24. package/components/HorizontalCard.js +6 -2
  25. package/components/HorizontalCard.js.LICENSE.txt +1 -1
  26. package/components/IconCard.js +4 -2
  27. package/components/IconCard.js.LICENSE.txt +1 -1
  28. package/components/Legend.js +3 -2
  29. package/components/Loader.js +2 -2
  30. package/components/MegaMenu.js +7 -2
  31. package/components/Notice.js +3 -2
  32. package/components/PageHeader.js +4 -2
  33. package/components/Pager.js +7 -2
  34. package/components/ProgressBar.js +3 -2
  35. package/components/QuoteHighlight.js +3 -2
  36. package/components/QuoteHighlight.js.LICENSE.txt +1 -1
  37. package/components/Radio.js +3 -2
  38. package/components/Range.js +3 -2
  39. package/components/ScrollContainer.js +2 -2
  40. package/components/SegmentedControl.js +6 -2
  41. package/components/Select.js +3 -2
  42. package/components/ServiceNotice.js +4 -2
  43. package/components/ShareButtons.js +4 -2
  44. package/components/ShowMore.js +3 -2
  45. package/components/SkipLink.js +3 -2
  46. package/components/StatsCard.js +5 -2
  47. package/components/StatsCard.js.LICENSE.txt +1 -1
  48. package/components/SyndicationSearchWidget.js +31 -2
  49. package/components/Tab.js +7 -2
  50. package/components/TextCta.js +4 -2
  51. package/components/TextCta.js.LICENSE.txt +1 -1
  52. package/components/TextInput.js +3 -2
  53. package/components/Textarea.js +3 -2
  54. package/components/Tree.js +7 -2
  55. package/components/UserFeedback.js +2 -2
  56. package/components/VerticalCard.js +6 -2
  57. package/components/VerticalCard.js.LICENSE.txt +1 -1
  58. package/components/hydrate.js +2 -2
  59. package/css/style-all.css +16 -10
  60. package/css/style-all.css.map +1 -1
  61. package/css/style-delta.css +16 -10
  62. package/css/style-delta.css.map +1 -1
  63. package/css/style-gutenberg.css +1 -1
  64. package/css/style-irp.css +16 -10
  65. package/css/style-irp.css.map +1 -1
  66. package/css/style-mcr.css +16 -10
  67. package/css/style-mcr.css.map +1 -1
  68. package/css/style-preventionweb.css +16 -10
  69. package/css/style-preventionweb.css.map +1 -1
  70. package/css/style.css +16 -10
  71. package/css/style.css.map +1 -1
  72. package/docs/EDITORIAL-MANUAL.md +2 -2
  73. package/docs/llms-editorial-manual.txt +1 -1
  74. package/docs/llms-page-building.txt +4 -2
  75. package/docs/llms-search-widget.txt +3 -1
  76. package/error-pages/401.html +1 -1
  77. package/error-pages/403.html +1 -1
  78. package/error-pages/404.html +1 -1
  79. package/error-pages/429.html +1 -1
  80. package/error-pages/500.html +1 -1
  81. package/error-pages/502.html +1 -1
  82. package/error-pages/503.html +1 -1
  83. package/error-pages/504.html +1 -1
  84. package/error-pages/5xx.html +1 -1
  85. package/error-pages/challenge.html +1 -1
  86. package/error-pages/managed-challenge.html +1 -1
  87. package/js/dialog.js +205 -0
  88. package/package.json +1 -1
  89. package/scss/Atom/BaseTypography/Code/code.scss +0 -1
  90. package/scss/Atom/Table/table.scss +0 -1
  91. package/scss/Atom/Tag/tag.scss +0 -1
  92. package/scss/Components/Buttons/ShareButtons/share-buttons.scss +18 -0
  93. package/scss/Components/Cards/StatsCard/stats-card.scss +0 -1
  94. package/scss/Components/Dialog/dialog.scss +87 -0
  95. package/scss/Components/MegaMenu/mega-menu.scss +460 -33
  96. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +70 -2
  97. package/scss/Patterns/Content/Publication/publication-record.scss +110 -0
  98. package/scss/Patterns/LandingPages/publication-example.scss +28 -0
  99. package/scss/assets/scss/_components.scss +1 -0
  100. package/scss/assets/scss/_variables.scss +1 -1
@@ -0,0 +1,110 @@
1
+ /**
2
+ * Experimental publication record composition, built on the ArticleStory shell and reading layout.
3
+ * https://github.com/unisdr/undrr-mangrove/blob/main/stories/Patterns/Content/Publication/PublicationRecord.mdx
4
+ */
5
+ @use "../../../assets/scss/mixins" as *;
6
+
7
+ .mg-publication-record {
8
+ overflow-wrap: anywhere;
9
+
10
+ main a:not(.mg-tag) {
11
+ text-decoration-line: underline;
12
+ }
13
+ }
14
+
15
+ .mg-publication-record__layout {
16
+ max-inline-size: var(--mg-reading-with-contents-width);
17
+ padding-block-end: var(--mg-spacing-400);
18
+ }
19
+
20
+ .mg-publication-record__header {
21
+ margin-block-end: var(--mg-spacing-300);
22
+
23
+ h1 {
24
+ max-inline-size: 49rem;
25
+ }
26
+ }
27
+
28
+ .mg-publication-record__metadata {
29
+ display: grid;
30
+ grid-template-columns: minmax(0, 1fr);
31
+ gap: var(--mg-spacing-200);
32
+
33
+ dt {
34
+ font-weight: 700;
35
+ margin-block-end: var(--mg-spacing-50);
36
+ }
37
+
38
+ dd {
39
+ overflow-wrap: anywhere;
40
+ margin-inline-start: 0;
41
+ }
42
+
43
+ ul {
44
+ @include mg-list-unmarked;
45
+
46
+ margin-block: 0;
47
+ padding-inline-start: 0;
48
+ }
49
+ }
50
+
51
+ .mg-publication-record__identity {
52
+ display: flex;
53
+ flex-wrap: wrap;
54
+ gap: var(--mg-spacing-200) var(--mg-spacing-300);
55
+
56
+ > div {
57
+ min-inline-size: 0;
58
+ max-inline-size: 100%;
59
+ }
60
+ }
61
+
62
+ .mg-publication-record__resources {
63
+ @include mg-list-unmarked;
64
+
65
+ padding-inline-start: 0;
66
+
67
+ li {
68
+ padding-block: var(--mg-spacing-150);
69
+ border-block-end: 1px solid rgb(var(--mg-color-neutral-200));
70
+ }
71
+
72
+ li:first-child {
73
+ padding-block-start: var(--mg-spacing-50);
74
+ }
75
+
76
+ p {
77
+ margin-block: var(--mg-spacing-50) 0;
78
+ }
79
+ }
80
+
81
+ .mg-publication-record__reading {
82
+ align-items: start;
83
+ }
84
+
85
+ .mg-publication-record__main,
86
+ .mg-publication-record__aside {
87
+ min-inline-size: 0;
88
+
89
+ > * + * {
90
+ margin-block-start: var(--mg-spacing-300);
91
+ }
92
+
93
+ > :first-child,
94
+ > section > h2:first-child {
95
+ margin-block-start: 0;
96
+ }
97
+ }
98
+
99
+ .mg-publication-record__cover {
100
+ margin: 0;
101
+ max-inline-size: 14rem;
102
+
103
+ img {
104
+ display: block;
105
+ inline-size: 100%;
106
+ block-size: auto;
107
+ padding: 0;
108
+ border: 1px solid rgb(var(--mg-color-neutral-600) / 0.2);
109
+ }
110
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Publication branding example
3
+ *
4
+ * Consumer-owned report expression for the paired Publication page stories.
5
+ * This is story scaffolding, not an additional component API or theme.
6
+ *
7
+ * Full documentation:
8
+ * https://github.com/PreventionWeb/undrr-mangrove/blob/main/stories/Patterns/LandingPages/PublicationPage.mdx
9
+ */
10
+
11
+ // Existing theme token: the report changes its masthead surface, not the
12
+ // theme's interactive colours, fonts, responsive geometry or focus rules.
13
+ .mg-publication-example--branded {
14
+ --mg-color-hero: var(--mg-color-neutral-900);
15
+ }
16
+
17
+ // A documented Hero property is set on the component that owns its value.
18
+ // Changing the shared copy-width hook keeps copy and protective veil aligned.
19
+ .mg-publication-example--branded .mg-hero {
20
+ --mg-hero-overlay-max-width: 44rem;
21
+ }
22
+
23
+ // The only direct presentation override belongs to consumer-authored prose.
24
+ // It never reaches a shared component's children or interaction states.
25
+ .mg-publication-example--branded .mg-publication-example__intro {
26
+ border-inline-start: 4px solid rgb(var(--mg-color-interactive));
27
+ padding-inline-start: var(--mg-spacing-200);
28
+ }
@@ -102,3 +102,4 @@
102
102
  @use "../../Patterns/RichContent/rich-content" as *;
103
103
  @use "../../Patterns/ContentTeaser/content-teaser";
104
104
  @use "../../Patterns/ContentCard/content-card";
105
+ @use "../../Components/Dialog/dialog" as *;
@@ -4,7 +4,7 @@
4
4
  * Storybook: https://mangrove.undrr.org/
5
5
  * LLMs context: https://mangrove.undrr.org/llms.txt
6
6
  * Repository: https://github.com/PreventionWeb/undrr-mangrove
7
- * Version: 2.2.0
7
+ * Version: 2.4.0
8
8
  *
9
9
  * ██╗ ██╗███╗ ██╗██████╗ ██████╗ ██████╗
10
10
  * ██║ ██║████╗ ██║██╔══██╗██╔══██╗██╔══██╗