@undrr/undrr-mangrove 2.0.0-alpha.2 → 2.0.0-alpha.4

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 (110) hide show
  1. package/README.md +4 -4
  2. package/components/BookCard.js +2 -2
  3. package/components/Breadcrumbs.js +2 -2
  4. package/components/Checkbox.js +2 -2
  5. package/components/Chips.js +2 -2
  6. package/components/CtaButton.js +2 -2
  7. package/components/EmbedContainer.js +2 -2
  8. package/components/Footer.js +2 -2
  9. package/components/FormAction.js +2 -2
  10. package/components/FormErrorSummary.js +2 -2
  11. package/components/FormGroup.js +2 -2
  12. package/components/FullWidth.js +2 -2
  13. package/components/Gallery.js +2 -2
  14. package/components/Hero.js +2 -2
  15. package/components/HighlightBox.js +2 -2
  16. package/components/HorizontalBookCard.js +2 -2
  17. package/components/HorizontalCard.js +2 -2
  18. package/components/IconCard.js +2 -2
  19. package/components/Loader.js +2 -2
  20. package/components/MegaMenu.js +2 -2
  21. package/components/PageHeader.js +2 -2
  22. package/components/Pager.js +2 -2
  23. package/components/QuoteHighlight.js +2 -2
  24. package/components/Radio.js +2 -2
  25. package/components/ScrollContainer.js +2 -2
  26. package/components/Select.js +2 -2
  27. package/components/ShareButtons.js +2 -2
  28. package/components/ShowMore.js +2 -2
  29. package/components/StatsCard.js +2 -2
  30. package/components/SyndicationSearchWidget.js +2 -2
  31. package/components/Tab.js +2 -2
  32. package/components/TextCta.js +2 -2
  33. package/components/TextInput.js +2 -2
  34. package/components/Textarea.js +2 -2
  35. package/components/UserFeedback.js +2 -2
  36. package/components/VerticalCard.js +2 -2
  37. package/components/hydrate.js +1 -1
  38. package/css/style-all.css +286 -42
  39. package/css/style-all.css.map +1 -1
  40. package/css/style-delta.css +286 -42
  41. package/css/style-delta.css.map +1 -1
  42. package/css/style-gutenberg.css +254 -13
  43. package/css/style-gutenberg.css.map +1 -1
  44. package/css/style-irp.css +286 -42
  45. package/css/style-irp.css.map +1 -1
  46. package/css/style-mcr.css +286 -42
  47. package/css/style-mcr.css.map +1 -1
  48. package/css/style-preventionweb.css +286 -42
  49. package/css/style-preventionweb.css.map +1 -1
  50. package/css/style.css +285 -41
  51. package/css/style.css.map +1 -1
  52. package/error-pages/401.html +1 -1
  53. package/error-pages/403.html +1 -1
  54. package/error-pages/404.html +1 -1
  55. package/error-pages/429.html +1 -1
  56. package/error-pages/500.html +1 -1
  57. package/error-pages/502.html +1 -1
  58. package/error-pages/503.html +1 -1
  59. package/error-pages/504.html +1 -1
  60. package/error-pages/5xx.html +1 -1
  61. package/error-pages/challenge.html +1 -1
  62. package/error-pages/managed-challenge.html +1 -1
  63. package/js/tabs.js +577 -401
  64. package/package.json +10 -10
  65. package/scss/Atom/BaseTypography/Code/code.scss +3 -3
  66. package/scss/Atom/EmptyState/empty-state.scss +117 -0
  67. package/scss/Atom/ReachElement/Details/details.scss +1 -1
  68. package/scss/Atom/StatusLabel/status-label.scss +64 -0
  69. package/scss/Atom/Tag/tag.scss +1 -8
  70. package/scss/Components/Boilerplate/boilerplate.scss +1 -2
  71. package/scss/Components/Breadcrumbs/breadcrumbs.scss +1 -8
  72. package/scss/Components/Buttons/Chips/chips.scss +7 -10
  73. package/scss/Components/Buttons/CtaButton/cta-button.scss +19 -22
  74. package/scss/Components/Buttons/ShareButtons/share-buttons.scss +9 -13
  75. package/scss/Components/Cards/Card/card.scss +13 -13
  76. package/scss/Components/Cards/StatsCard/stats-card.scss +5 -14
  77. package/scss/Components/CookieConsentBanner/cookie-consent-banner.scss +2 -10
  78. package/scss/Components/Footer/footer.scss +1 -8
  79. package/scss/Components/Forms/_form-base.scss +49 -37
  80. package/scss/Components/Gallery/gallery.scss +13 -16
  81. package/scss/Components/Hero/hero.scss +4 -19
  82. package/scss/Components/MegaMenu/mega-menu.scss +337 -22
  83. package/scss/Components/OnThisPageNav/on-this-page-nav.scss +2 -10
  84. package/scss/Components/Pager/pager.scss +1 -2
  85. package/scss/Components/PreviewAccess/preview-access.scss +21 -29
  86. package/scss/Components/Snackbar/snackbar.scss +1 -1
  87. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +13 -15
  88. package/scss/Components/Tab/tab.scss +269 -123
  89. package/scss/Components/TextCta/text-cta.scss +1 -1
  90. package/scss/Components/UserFeedback/user-feedback.scss +2 -8
  91. package/scss/assets/fonts/noto-kufi-arabic/noto-kufi-arabic.scss +73 -3
  92. package/scss/assets/fonts/noto-sans-arabic/noto-sans-arabic.scss +79 -0
  93. package/scss/assets/scss/_components.scss +2 -0
  94. package/scss/assets/scss/_fonts.scss +158 -2
  95. package/scss/assets/scss/_foundational.scss +45 -30
  96. package/scss/assets/scss/_mixins.scss +53 -8
  97. package/scss/assets/scss/_theme-delta.scss +6 -63
  98. package/scss/assets/scss/_theme-irp.scss +6 -34
  99. package/scss/assets/scss/_theme-mcr.scss +7 -52
  100. package/scss/assets/scss/_theme-preventionweb.scss +6 -32
  101. package/scss/assets/scss/_tokens-data-viz.scss +300 -0
  102. package/scss/assets/scss/_tokens-tabs.scss +32 -0
  103. package/scss/assets/scss/_utility.scss +4 -6
  104. package/scss/assets/scss/_variables.scss +221 -300
  105. package/scss/assets/scss/generated/_tokens-delta.scss +248 -0
  106. package/scss/assets/scss/generated/_tokens-irp.scss +114 -0
  107. package/scss/assets/scss/generated/_tokens-mangrove.scss +607 -0
  108. package/scss/assets/scss/generated/_tokens-mcr.scss +135 -0
  109. package/scss/assets/scss/generated/_tokens-preventionweb.scss +101 -0
  110. package/scss/assets/fonts/dubai/dubai.scss +0 -9
@@ -0,0 +1,248 @@
1
+ // GENERATED FILE — DO NOT EDIT.
2
+ // Brand: DELTA Resilience
3
+ // Selector: .mg-theme-delta
4
+ // Source: tokens/mangrove.yaml + tokens/undrr.yaml + tokens/delta.yaml
5
+ // Regenerate: yarn build:tokens
6
+ // Edit the YAML source, never this file.
7
+ // `npx jest tokens-source` fails if the two disagree.
8
+
9
+ // The .mg-theme-delta token block.
10
+ @mixin mg-tokens-delta {
11
+ // theme.loaded
12
+ // Runtime marker: lets JS and tooling detect that this brand theme is
13
+ // active, guarding the sub-brand body-class trap. See docs/RELEASE-2.0.md.
14
+ --mg-theme-loaded: delta;
15
+
16
+ // color.interactive
17
+ // UNDRR Blue. DELTA's own design system labels this swatch "UNDRR Blue -
18
+ // Corporate blue" and marks it Brand. 54 uses in DELTA's code, 1551 fills
19
+ // and 1645 strokes in its Figma file. It is rgb(0 79 145), identical to
20
+ // Mangrove's --mg-color-blue-900: DELTA's brand blue is UNDRR's.
21
+ --mg-color-interactive: 0 79 145;
22
+
23
+ // color.interactive-active
24
+ // Hover/active partner of the brand blue, 9 uses in DELTA. Note it is
25
+ // LIGHTER than the base colour, unlike Mangrove's convention of darkening
26
+ // on hover. That is DELTA's actual behaviour, not an error.
27
+ --mg-color-interactive-active: 16 108 184;
28
+
29
+ // color.tag
30
+ --mg-color-tag: var(--mg-color-interactive);
31
+
32
+ // color.tag--hover
33
+ --mg-color-tag--hover: var(--mg-color-interactive-active);
34
+
35
+ // color.button
36
+ --mg-color-button: var(--mg-color-neutral-0);
37
+
38
+ // color.button--hover
39
+ --mg-color-button--hover: var(--mg-color-neutral-0);
40
+
41
+ // color.button-background
42
+ // UNDRR Blue. DELTA's own design system labels this swatch "UNDRR Blue -
43
+ // Corporate blue" and marks it Brand. 54 uses in DELTA's code, 1551 fills
44
+ // and 1645 strokes in its Figma file. It is rgb(0 79 145), identical to
45
+ // Mangrove's --mg-color-blue-900: DELTA's brand blue is UNDRR's.
46
+ --mg-color-button-background: rgb(0 79 145);
47
+
48
+ // color.button-background--hover
49
+ // Hover/active partner of the brand blue, 9 uses in DELTA. Note it is
50
+ // LIGHTER than the base colour, unlike Mangrove's convention of darkening
51
+ // on hover. That is DELTA's actual behaviour, not an error.
52
+ --mg-color-button-background--hover: rgb(16 108 184);
53
+
54
+ // color.button-secondary-background
55
+ // UNDRR Teal, DELTA's secondary brand colour. Mangrove previously mapped
56
+ // the secondary button to the same blue as the primary, collapsing a
57
+ // genuine two-colour brand into one.
58
+ --mg-color-button-secondary-background: 0 123 122;
59
+
60
+ // color.button-secondary-background--hover
61
+ // Hover partner of UNDRR Teal, taken one step DOWN the teal ramp in DELTA's
62
+ // design file (#002323 #004646 #006968 #007B7A #00AFAE). DELTA's stylesheet
63
+ // uses #359999 here, a step UP, but white text on that is 3.40:1 and fails
64
+ // WCAG 1.4.3. #006968 is 6.52:1 and comes from DELTA's own ramp, so this is
65
+ // a deliberate, sourced divergence rather than an invented colour — the
66
+ // same call already made for DELTA's field border.
67
+ --mg-color-button-secondary-background--hover: 0 105 104;
68
+
69
+ // color.button-outline-primary
70
+ // UNDRR Blue. DELTA's own design system labels this swatch "UNDRR Blue -
71
+ // Corporate blue" and marks it Brand. 54 uses in DELTA's code, 1551 fills
72
+ // and 1645 strokes in its Figma file. It is rgb(0 79 145), identical to
73
+ // Mangrove's --mg-color-blue-900: DELTA's brand blue is UNDRR's.
74
+ --mg-color-button-outline-primary: 0 79 145;
75
+
76
+ // color.button-outline-primary--hover
77
+ // Hover/active partner of the brand blue, 9 uses in DELTA. Note it is
78
+ // LIGHTER than the base colour, unlike Mangrove's convention of darkening
79
+ // on hover. That is DELTA's actual behaviour, not an error.
80
+ --mg-color-button-outline-primary--hover: 16 108 184;
81
+
82
+ // color.button-outline-secondary
83
+ // UNDRR Teal, DELTA's secondary brand colour. Mangrove previously mapped
84
+ // the secondary button to the same blue as the primary, collapsing a
85
+ // genuine two-colour brand into one.
86
+ --mg-color-button-outline-secondary: 0 123 122;
87
+
88
+ // color.button-outline-secondary--hover
89
+ // Hover partner of UNDRR Teal, taken one step DOWN the teal ramp in DELTA's
90
+ // design file (#002323 #004646 #006968 #007B7A #00AFAE). DELTA's stylesheet
91
+ // uses #359999 here, a step UP, but white text on that is 3.40:1 and fails
92
+ // WCAG 1.4.3. #006968 is 6.52:1 and comes from DELTA's own ramp, so this is
93
+ // a deliberate, sourced divergence rather than an invented colour — the
94
+ // same call already made for DELTA's field border.
95
+ --mg-color-button-outline-secondary--hover: 0 105 104;
96
+
97
+ // color.text-button
98
+ --mg-color-text-button: var(--mg-color-neutral-0);
99
+
100
+ // color.form-check
101
+ --mg-color-form-check: var(--mg-color-interactive);
102
+
103
+ // color.form-check--hover
104
+ --mg-color-form-check--hover: var(--mg-color-interactive-active);
105
+
106
+ // color.form-check--checked
107
+ --mg-color-form-check--checked: var(--mg-color-interactive);
108
+
109
+ // color.form-focus
110
+ --mg-color-form-focus: var(--mg-color-interactive);
111
+
112
+ // color.mega-content-bg
113
+ --mg-color-mega-content-bg: var(--mg-color-white);
114
+
115
+ // color.hero
116
+ // UNDRR Blue. DELTA's own design system labels this swatch "UNDRR Blue -
117
+ // Corporate blue" and marks it Brand. 54 uses in DELTA's code, 1551 fills
118
+ // and 1645 strokes in its Figma file. It is rgb(0 79 145), identical to
119
+ // Mangrove's --mg-color-blue-900: DELTA's brand blue is UNDRR's.
120
+ --mg-color-hero: 0 79 145;
121
+
122
+ // color.hero-title
123
+ --mg-color-hero-title: oklch(68.5% 0.169 237.323);
124
+
125
+ // color.hero--tertiary
126
+ // Body text and overlay/shadow base.
127
+ --mg-color-hero--tertiary: rgb(24 24 35);
128
+
129
+ // color.hero-button-secondary-background
130
+ // UNDRR Blue. DELTA's own design system labels this swatch "UNDRR Blue -
131
+ // Corporate blue" and marks it Brand. 54 uses in DELTA's code, 1551 fills
132
+ // and 1645 strokes in its Figma file. It is rgb(0 79 145), identical to
133
+ // Mangrove's --mg-color-blue-900: DELTA's brand blue is UNDRR's.
134
+ --mg-color-hero-button-secondary-background: rgb(0 79 145);
135
+
136
+ // color.hero-button-secondary-color
137
+ --mg-color-hero-button-secondary-color: var(--mg-color-white);
138
+
139
+ // color.tabbar-background
140
+ --mg-color-tabbar-background: none;
141
+
142
+ // color.tab-background
143
+ // UNDRR Blue. DELTA's own design system labels this swatch "UNDRR Blue -
144
+ // Corporate blue" and marks it Brand. 54 uses in DELTA's code, 1551 fills
145
+ // and 1645 strokes in its Figma file. It is rgb(0 79 145), identical to
146
+ // Mangrove's --mg-color-blue-900: DELTA's brand blue is UNDRR's.
147
+ --mg-color-tab-background: rgb(0 79 145);
148
+
149
+ // color.tab-background--inactive
150
+ --mg-color-tab-background--inactive: rgb(var(--mg-color-white));
151
+
152
+ // color.tab-background--hover
153
+ // UNDRR Blue. DELTA's own design system labels this swatch "UNDRR Blue -
154
+ // Corporate blue" and marks it Brand. 54 uses in DELTA's code, 1551 fills
155
+ // and 1645 strokes in its Figma file. It is rgb(0 79 145), identical to
156
+ // Mangrove's --mg-color-blue-900: DELTA's brand blue is UNDRR's.
157
+ --mg-color-tab-background--hover: rgb(0 79 145 / 0.7);
158
+
159
+ // color.tab-border
160
+ --mg-color-tab-border: rgb(var(--mg-color-blue-200));
161
+
162
+ // color.tab-border--hover
163
+ // Hover/active partner of the brand blue, 9 uses in DELTA. Note it is
164
+ // LIGHTER than the base colour, unlike Mangrove's convention of darkening
165
+ // on hover. That is DELTA's actual behaviour, not an error.
166
+ --mg-color-tab-border--hover: rgb(16 108 184);
167
+
168
+ // color.tab-border--active
169
+ --mg-color-tab-border--active: rgb(var(--mg-color-blue-200));
170
+
171
+ // color.text-tab
172
+ --mg-color-text-tab: rgb(var(--mg-color-neutral-700));
173
+
174
+ // color.text-tab--hover
175
+ --mg-color-text-tab--hover: rgb(var(--mg-color-white));
176
+
177
+ // color.text-tab-active
178
+ --mg-color-text-tab-active: rgb(var(--mg-color-white));
179
+
180
+ // border-color.button
181
+ // DELTA's filled buttons carry no border. This is the case the channel
182
+ // convention could not express: a triplet cannot say "transparent", which
183
+ // is how the token came to hold two invalid declarations that both
184
+ // collapsed to nothing.
185
+ --mg-border-color-button: transparent;
186
+
187
+ // border-color.hero-button-secondary
188
+ --mg-border-color-hero-button-secondary: var(--mg-color-white);
189
+
190
+ // radius.tag
191
+ --mg-radius-tag: var(--mg-spacing-50);
192
+
193
+ // radius.button
194
+ --mg-radius-button: var(--mg-spacing-50);
195
+
196
+ // radius.form-input
197
+ --mg-radius-form-input: var(--mg-spacing-50);
198
+
199
+ // radius.tab
200
+ --mg-radius-tab: var(--mg-spacing-50) var(--mg-spacing-50) 0 0;
201
+
202
+ // radius.tab-section
203
+ --mg-radius-tab-section: var(--mg-spacing-50);
204
+
205
+ // padding.button
206
+ --mg-padding-button: var(--mg-spacing-100) var(--mg-spacing-200);
207
+
208
+ // padding.tab
209
+ --mg-padding-tab: var(--mg-spacing-150) var(--mg-spacing-200);
210
+
211
+ // padding.tab-section
212
+ --mg-padding-tab-section: var(--mg-spacing-300);
213
+
214
+ // border-width.button
215
+ --mg-border-width-button: 1px;
216
+
217
+ // font-size.button
218
+ --mg-font-size-button: 0.875rem;
219
+
220
+ // box-shadow.tab-section
221
+ --mg-box-shadow-tab-section: none;
222
+
223
+ // card.background
224
+ // Card / subtle surface fill. #f2f2f2 appears 11 times in DELTA; #fafafa,
225
+ // which Mangrove previously guessed, appears once.
226
+ --mg-card-background: rgb(242 242 242);
227
+
228
+ // card.padding
229
+ --mg-card-padding: var(--mg-spacing-150);
230
+
231
+ // card.border-radius
232
+ --mg-card-border-radius: var(--mg-spacing-50);
233
+
234
+ // card.icon-badge-radius
235
+ --mg-card-icon-badge-radius: 15%;
236
+
237
+ // opacity.hero
238
+ --mg-opacity-hero: 1;
239
+
240
+ // hero-overlay.max-width
241
+ --mg-hero-overlay-max-width: var(--mg-width-600);
242
+
243
+ // hero-overlay.padding
244
+ --mg-hero-overlay-padding: var(--mg-spacing-400);
245
+
246
+ // spacing.hero-overlay
247
+ --mg-spacing-hero-overlay: 1.25rem 0;
248
+ }
@@ -0,0 +1,114 @@
1
+ // GENERATED FILE — DO NOT EDIT.
2
+ // Brand: IRP
3
+ // Selector: .mg-theme-irp
4
+ // Source: tokens/mangrove.yaml + tokens/undrr.yaml + tokens/irp.yaml
5
+ // Regenerate: yarn build:tokens
6
+ // Edit the YAML source, never this file.
7
+ // `npx jest tokens-source` fails if the two disagree.
8
+
9
+ // The .mg-theme-irp token block.
10
+ @mixin mg-tokens-irp {
11
+ // theme.loaded
12
+ // Runtime marker: lets JS and tooling detect that this brand theme is
13
+ // active, guarding the sub-brand body-class trap. See docs/RELEASE-2.0.md.
14
+ --mg-theme-loaded: irp;
15
+
16
+ // color.interactive
17
+ // IRP blue. The interactive colour.
18
+ --mg-color-interactive: 15 120 191;
19
+
20
+ // color.interactive-active
21
+ // IRP blue. The interactive colour.
22
+ --mg-color-interactive-active: 15 120 191;
23
+
24
+ // color.tag
25
+ --mg-color-tag: var(--mg-color-interactive);
26
+
27
+ // color.tag--hover
28
+ --mg-color-tag--hover: var(--mg-color-interactive-active);
29
+
30
+ // color.button-background
31
+ --mg-color-button-background: rgb(15 120 191);
32
+
33
+ // color.button-background--hover
34
+ --mg-color-button-background--hover: rgb(var(--mg-color-orange-900));
35
+
36
+ // color.button-outline-primary
37
+ --mg-color-button-outline-primary: 15 120 191;
38
+
39
+ // color.button-outline-primary--hover
40
+ --mg-color-button-outline-primary--hover: var(--mg-color-orange-900);
41
+
42
+ // color.button-outline-secondary
43
+ --mg-color-button-outline-secondary: var(--mg-color-button-secondary-background);
44
+
45
+ // color.button-outline-secondary--hover
46
+ --mg-color-button-outline-secondary--hover: var(--mg-color-button-secondary-background--hover);
47
+
48
+ // color.form-check
49
+ --mg-color-form-check: var(--mg-color-interactive);
50
+
51
+ // color.form-check--hover
52
+ --mg-color-form-check--hover: var(--mg-color-interactive-active);
53
+
54
+ // color.form-check--checked
55
+ --mg-color-form-check--checked: var(--mg-color-interactive);
56
+
57
+ // color.form-focus
58
+ --mg-color-form-focus: var(--mg-color-interactive);
59
+
60
+ // color.hero
61
+ --mg-color-hero: var(--mg-color-interactive);
62
+
63
+ // color.tabbar-background
64
+ // IRP green, used only by the tab surface — the tabbar rail, the active tab
65
+ // fill and its borders.
66
+ --mg-color-tabbar-background: rgb(140 198 63 / 0.1);
67
+
68
+ // color.tab-background
69
+ // IRP green, used only by the tab surface — the tabbar rail, the active tab
70
+ // fill and its borders.
71
+ --mg-color-tab-background: rgb(140 198 63 / 0.3);
72
+
73
+ // color.tab-background--inactive
74
+ --mg-color-tab-background--inactive: var(--mg-color-tabbar-background);
75
+
76
+ // color.tab-background--hover
77
+ // IRP green, used only by the tab surface — the tabbar rail, the active tab
78
+ // fill and its borders.
79
+ --mg-color-tab-background--hover: rgb(140 198 63);
80
+
81
+ // color.tab-border
82
+ --mg-color-tab-border: rgb(var(--mg-color-neutral-300));
83
+
84
+ // color.tab-border--hover
85
+ // IRP green, used only by the tab surface — the tabbar rail, the active tab
86
+ // fill and its borders.
87
+ --mg-color-tab-border--hover: rgb(140 198 63 / 0.1);
88
+
89
+ // color.tab-border--active
90
+ // IRP green, used only by the tab surface — the tabbar rail, the active tab
91
+ // fill and its borders.
92
+ --mg-color-tab-border--active: rgb(140 198 63 / 0.1);
93
+
94
+ // color.text-tab
95
+ --mg-color-text-tab: rgb(var(--mg-color-neutral-500));
96
+
97
+ // color.text-tab-active
98
+ --mg-color-text-tab-active: rgb(var(--mg-color-neutral-700));
99
+
100
+ // radius.tag
101
+ --mg-radius-tag: var(--mg-spacing-50);
102
+
103
+ // radius.button
104
+ --mg-radius-button: var(--mg-spacing-50);
105
+
106
+ // radius.form-input
107
+ --mg-radius-form-input: var(--mg-spacing-50);
108
+
109
+ // radius.tab
110
+ --mg-radius-tab: var(--mg-spacing-0) var(--mg-spacing-0) 0 0;
111
+
112
+ // spacing.hero-overlay
113
+ --mg-spacing-hero-overlay: 1.25rem 0;
114
+ }