@pnx-mixtape/mxds 0.1.0-rc.5 → 0.1.0-rc.6
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/DESIGN.md +1 -1
- package/README.md +1 -1
- package/dist/build/accordion.entry.js +1 -1
- package/dist/build/base.css +1 -1
- package/dist/build/chunks/{Accordion-D2wp8hBG.js → Accordion-Bqe8vTNR.js} +1 -1
- package/dist/build/chunks/{AccordionMobile-D3sTeiM5.js → AccordionMobile-D517oXYZ.js} +1 -1
- package/dist/build/chunks/{ClosableAlert-yy84gae6.js → ClosableAlert-CZ114JsL.js} +1 -1
- package/dist/build/chunks/{Dialog-DWoXW-7Z.js → Dialog-DoYcGqhW.js} +1 -1
- package/dist/build/chunks/{FeedbackForm-BochXEDx.js → FeedbackForm-BsL7fv8s.js} +1 -1
- package/dist/build/chunks/{Gallery-Rkfv7Mbb.js → Gallery-DqJPujX5.js} +2 -2
- package/dist/build/chunks/{GlobalToggle-CzlkpLpc.js → GlobalToggle-7H3F1Wvc.js} +1 -1
- package/dist/build/chunks/{InPageNavigation-D1Kk-rCm.js → InPageNavigation-D7m3IN89.js} +1 -1
- package/dist/build/chunks/{Navigation-CDQnN61h.js → Navigation-CRModT40.js} +13 -18
- package/dist/build/chunks/{Sticky-DoVndENm.js → Sticky-C1H8MNqK.js} +1 -1
- package/dist/build/chunks/{Tabs-BDlxCDNh.js → Tabs-BJD3kABL.js} +1 -1
- package/dist/build/chunks/{Translate-bmM38j6z.js → Translate-yAgySwet.js} +1 -1
- package/dist/build/chunks/{utilities-Dd-08SW6.js → utilities-B9mNRs7V.js} +1 -1
- package/dist/build/dialog.entry.js +1 -1
- package/dist/build/elements.js +13 -13
- package/dist/build/feedback-form.entry.js +1 -1
- package/dist/build/filters.entry.js +3 -3
- package/dist/build/form.css +1 -1
- package/dist/build/gallery.entry.js +1 -1
- package/dist/build/global-alert.entry.js +1 -1
- package/dist/build/header.entry.js +1 -1
- package/dist/build/in-page-navigation.entry.js +1 -1
- package/dist/build/navigation.css +1 -1
- package/dist/build/navigation.entry.js +1 -1
- package/dist/build/react.js +230 -209
- package/dist/build/side-navigation.css +1 -1
- package/dist/build/sidebar.css +1 -1
- package/dist/build/sticky.entry.js +1 -1
- package/dist/build/tabs.entry.js +1 -1
- package/dist/build/translate.entry.js +1 -1
- package/dist/types/Component/Navigation/Elements/Navigation.d.ts +2 -3
- package/dist/types/Component/Navigation/Elements/Navigation.d.ts.map +1 -1
- package/dist/types/Component/SideNavigation/Components/SideNavigationTree.d.ts +3 -3
- package/dist/types/Component/SideNavigation/Components/SideNavigationTree.d.ts.map +1 -1
- package/dist/types/Component/SideNavigation/SideNavigation.d.ts +3 -1
- package/dist/types/Component/SideNavigation/SideNavigation.d.ts.map +1 -1
- package/dist/types/tokens.d.ts +1 -0
- package/dist/types/tokens.d.ts.map +1 -1
- package/docs/CSSGuidelines.md +2 -0
- package/package.json +5 -5
- package/src/Atom/Link/_links.css +1 -0
- package/src/Component/Navigation/Elements/Navigation.ts +25 -29
- package/src/Component/Navigation/README.md +11 -10
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +8 -8
- package/src/Component/Navigation/_navigation-dropdown.css +9 -11
- package/src/Component/Navigation/_navigation-mega.css +5 -11
- package/src/Component/Navigation/_navigation.css +5 -3
- package/src/Component/Navigation/menu.twig +1 -1
- package/src/Component/Navigation/navigation.twig +0 -1
- package/src/Component/SideNavigation/Components/SideNavigationTree.tsx +68 -24
- package/src/Component/SideNavigation/README.md +78 -32
- package/src/Component/SideNavigation/SideNavigation.stories.ts +41 -2
- package/src/Component/SideNavigation/SideNavigation.stories.tsx +31 -0
- package/src/Component/SideNavigation/SideNavigation.tsx +13 -3
- package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +87 -3
- package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.tsx.snap +2 -0
- package/src/Component/SideNavigation/side-navigation.css +3 -3
- package/src/Component/SideNavigation/side-navigation.twig +10 -3
- package/src/Component/Translate/README.md +4 -2
- package/src/Component/Translate/Translate.stories.ts +2 -2
- package/src/Component/Translate/Translate.stories.tsx +2 -2
- package/src/Component/Translate/Translate.tsx +1 -1
- package/src/Component/Translate/__snapshots__/Translate.stories.ts.snap +1 -1
- package/src/Component/Translate/__snapshots__/Translate.stories.tsx.snap +1 -1
- package/src/Component/Translate/translate.twig +1 -1
- package/src/Form/form.css +17 -19
- package/src/Introduction.mdx +1 -1
- package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +3 -3
- package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +6 -6
- package/src/Layout/Sidebar/sidebar.css +10 -3
- package/src/Utility/Elements/google-translate-widget.ts +1 -1
- package/src/_custom-media.css +2 -0
- package/src/tokens.js +1 -0
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
popovertarget="{{ id }}"
|
|
23
23
|
style="anchor-name: --{{ id }}"
|
|
24
24
|
data-label="{{ label }}"
|
|
25
|
-
aria-label="{{ label }}"
|
|
25
|
+
aria-label="{{ label }}, {{ defaultLanguage|upper }}"
|
|
26
26
|
>
|
|
27
27
|
{% include '@mixtape/Atom/Icon/icon.twig' with { icon: 'globe' } only %}
|
|
28
28
|
<span class="mx-translate__code">{{ defaultLanguage|upper }}</span>
|
package/src/Form/form.css
CHANGED
|
@@ -462,20 +462,6 @@
|
|
|
462
462
|
*/
|
|
463
463
|
|
|
464
464
|
@layer design-system.atoms {
|
|
465
|
-
@supports (appearance: base-select) {
|
|
466
|
-
.mx-input__select,
|
|
467
|
-
::picker(select) {
|
|
468
|
-
appearance: base-select;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
::picker(select) {
|
|
472
|
-
border-radius: var(--border-radius);
|
|
473
|
-
inset-block-start: var(--spacing-xxxs);
|
|
474
|
-
border: var(--line-width, 2px) solid
|
|
475
|
-
var(--line-colour, var(--line-colour, var(--colour-border)));
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
|
|
479
465
|
.mx-input__select {
|
|
480
466
|
--outline-size: var(--line-width, 2px);
|
|
481
467
|
--outline-offset: calc(var(--outline-size, 2px) * -1);
|
|
@@ -489,21 +475,33 @@
|
|
|
489
475
|
padding-inline-end: var(--spacing-xl);
|
|
490
476
|
|
|
491
477
|
@supports (appearance: base-select) {
|
|
478
|
+
padding-inline-end: var(--form-spacing, var(--spacing-s));
|
|
479
|
+
align-items: center;
|
|
480
|
+
background-image: none;
|
|
481
|
+
|
|
492
482
|
&,
|
|
493
|
-
|
|
483
|
+
&::picker(select) {
|
|
494
484
|
appearance: base-select;
|
|
495
|
-
background-image: none;
|
|
496
|
-
padding-inline-end: 0;
|
|
497
485
|
}
|
|
498
486
|
|
|
499
|
-
|
|
487
|
+
&::picker(select) {
|
|
488
|
+
border-radius: var(--border-radius);
|
|
489
|
+
inset-block-start: var(--spacing-xxxs);
|
|
490
|
+
border: var(--line-width, 2px) solid
|
|
491
|
+
var(--line-colour, var(--line-colour, var(--colour-border)));
|
|
492
|
+
min-inline-size: anchor-size(width);
|
|
493
|
+
position-area: block-end center;
|
|
494
|
+
position-try-fallbacks: flip-block flip-inline;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
& selectedcontent {
|
|
500
498
|
display: flex;
|
|
501
499
|
align-items: center;
|
|
502
500
|
block-size: 100%;
|
|
503
501
|
column-gap: var(--spacing-xxxs);
|
|
504
502
|
}
|
|
505
503
|
|
|
506
|
-
option {
|
|
504
|
+
& option {
|
|
507
505
|
padding-block: var(--spacing-xxs);
|
|
508
506
|
}
|
|
509
507
|
}
|
package/src/Introduction.mdx
CHANGED
|
@@ -14,7 +14,7 @@ import { Meta, Title, Subtitle } from "@storybook/addon-docs/blocks"
|
|
|
14
14
|
- Javascript is available in both React and Web Component formats.
|
|
15
15
|
- Provides Twig templates for each component
|
|
16
16
|
- Supports PINTO and Experience Builder integration.
|
|
17
|
-
- Is tested against WCAG 2.
|
|
17
|
+
- Is tested against WCAG 2.2 AA to ensure accessibility standards.
|
|
18
18
|
- Follows PreviousNext's high standards.
|
|
19
19
|
- Provide integration Documentation.
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ exports[`Everything 1`] = `
|
|
|
14
14
|
<a href="#">
|
|
15
15
|
News
|
|
16
16
|
</a>
|
|
17
|
-
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only">Sub-navigation</button>
|
|
17
|
+
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only" type="button">Sub-navigation</button>
|
|
18
18
|
<ul class="mx-nav__level-2">
|
|
19
19
|
<li>
|
|
20
20
|
<a href="#">
|
|
@@ -33,7 +33,7 @@ exports[`Everything 1`] = `
|
|
|
33
33
|
<a href="#">
|
|
34
34
|
About us
|
|
35
35
|
</a>
|
|
36
|
-
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only">Sub-navigation</button>
|
|
36
|
+
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only" type="button">Sub-navigation</button>
|
|
37
37
|
<ul class="mx-nav__level-2">
|
|
38
38
|
<li>
|
|
39
39
|
<a href="#">
|
|
@@ -57,7 +57,7 @@ exports[`Everything 1`] = `
|
|
|
57
57
|
<a href="#">
|
|
58
58
|
Contact
|
|
59
59
|
</a>
|
|
60
|
-
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only">Sub-navigation</button>
|
|
60
|
+
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only" type="button">Sub-navigation</button>
|
|
61
61
|
<ul class="mx-nav__level-2">
|
|
62
62
|
<li>
|
|
63
63
|
<a href="#">
|
|
@@ -45,7 +45,7 @@ exports[`Controls 1`] = `
|
|
|
45
45
|
</div>
|
|
46
46
|
|
|
47
47
|
<mx-translate class="mx-translate" closeonclick="" data-default-language="en" data-update-trigger-label="true">
|
|
48
|
-
<button id="unique-1" type="button" class="mx-button mx-button--light mx-button--small mx-translate__trigger mx-popover__trigger notranslate" popovertarget="translate" style="anchor-name: --translate" data-label="Language" aria-label="Language">
|
|
48
|
+
<button id="unique-1" type="button" class="mx-button mx-button--light mx-button--small mx-translate__trigger mx-popover__trigger notranslate" popovertarget="translate" style="anchor-name: --translate" data-label="Language" aria-label="Language, EN">
|
|
49
49
|
|
|
50
50
|
<span class="mx-icon mx-icon--globe"></span>
|
|
51
51
|
<span class="mx-translate__code">EN</span>
|
|
@@ -252,7 +252,7 @@ exports[`Stacked 1`] = `
|
|
|
252
252
|
<div class="mx-header__nav-inner">
|
|
253
253
|
|
|
254
254
|
|
|
255
|
-
<mx-nav
|
|
255
|
+
<mx-nav>
|
|
256
256
|
<nav class="mx-nav mx-nav--dropdown mx-nav--mega-nav" aria-label="Primary navigation" id="header-stacked-story">
|
|
257
257
|
<ul class="mx-nav__level-1">
|
|
258
258
|
<li>
|
|
@@ -264,13 +264,13 @@ exports[`Stacked 1`] = `
|
|
|
264
264
|
<a href="#" id="unique-5">
|
|
265
265
|
About us
|
|
266
266
|
</a>
|
|
267
|
-
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only" aria-expanded="false" aria-controls="unique-2">Sub-navigation</button>
|
|
267
|
+
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only" type="button" aria-expanded="false" aria-controls="unique-2">Sub-navigation</button>
|
|
268
268
|
<ul class="mx-nav__level-2" inert="" id="unique-2" aria-labelledby="unique-3">
|
|
269
269
|
<li class="mx-nav__has-subnav">
|
|
270
270
|
<a href="#" aria-current="page" id="unique-6">
|
|
271
271
|
Who
|
|
272
272
|
</a>
|
|
273
|
-
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only" aria-expanded="false" aria-controls="unique-4">Sub-navigation</button>
|
|
273
|
+
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only" type="button" aria-expanded="false" aria-controls="unique-4">Sub-navigation</button>
|
|
274
274
|
<ul class="mx-nav__level-3" inert="" id="unique-3" aria-labelledby="unique-5">
|
|
275
275
|
<li>
|
|
276
276
|
<a href="#" aria-current="page">
|
|
@@ -307,7 +307,7 @@ exports[`Stacked 1`] = `
|
|
|
307
307
|
<a href="#" id="unique-7">
|
|
308
308
|
Contact
|
|
309
309
|
</a>
|
|
310
|
-
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only" aria-expanded="false" aria-controls="unique-6">Sub-navigation</button>
|
|
310
|
+
<button class="mx-nav__toggle mx-icon mx-icon--chevron-down mx-icon--only" type="button" aria-expanded="false" aria-controls="unique-6">Sub-navigation</button>
|
|
311
311
|
<ul class="mx-nav__level-2" inert="" id="unique-4" aria-labelledby="unique-7">
|
|
312
312
|
<li>
|
|
313
313
|
<a href="#" aria-current="page">
|
|
@@ -340,7 +340,7 @@ exports[`Stacked 1`] = `
|
|
|
340
340
|
<div class="mx-header__nav-right">
|
|
341
341
|
|
|
342
342
|
<mx-translate class="mx-translate" closeonclick="" data-default-language="en" data-update-trigger-label="true">
|
|
343
|
-
<button id="unique-8" type="button" class="mx-button mx-button--light mx-button--small mx-translate__trigger mx-popover__trigger notranslate" popovertarget="translate" style="anchor-name: --translate" data-label="Language" aria-label="Language">
|
|
343
|
+
<button id="unique-8" type="button" class="mx-button mx-button--light mx-button--small mx-translate__trigger mx-popover__trigger notranslate" popovertarget="translate" style="anchor-name: --translate" data-label="Language" aria-label="Language, EN">
|
|
344
344
|
|
|
345
345
|
<span class="mx-icon mx-icon--globe"></span>
|
|
346
346
|
<span class="mx-translate__code">EN</span>
|
|
@@ -13,17 +13,23 @@
|
|
|
13
13
|
flex-flow: var(--sidebar-direction, column) wrap;
|
|
14
14
|
gap: var(--sidebar-gap, var(--gap));
|
|
15
15
|
justify-content: space-between;
|
|
16
|
+
align-items: start;
|
|
16
17
|
|
|
17
|
-
@media (--
|
|
18
|
+
@media (--sidebar-up) {
|
|
18
19
|
--sidebar-direction: row;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
& > aside {
|
|
22
23
|
flex-grow: 1;
|
|
23
24
|
align-content: start;
|
|
25
|
+
inline-size: 100%;
|
|
26
|
+
padding-block-start: var(--line-gap, var(--gap));
|
|
27
|
+
border-block-start: var(--line-width, 6px) solid var(--line-colour, var(--colour-primary));
|
|
24
28
|
|
|
25
|
-
@media (--
|
|
29
|
+
@media (--sidebar-up) {
|
|
26
30
|
max-inline-size: var(--sidebar-width, 24ch);
|
|
31
|
+
padding-block-start: unset;
|
|
32
|
+
border-block-start: unset;
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
|
|
@@ -31,6 +37,7 @@
|
|
|
31
37
|
flex-basis: 0;
|
|
32
38
|
flex-grow: 999;
|
|
33
39
|
min-inline-size: var(--content-min, 50%);
|
|
40
|
+
inline-size: 100%;
|
|
34
41
|
max-inline-size: var(--container-max-width, 76ch);
|
|
35
42
|
|
|
36
43
|
& .mx-grid {
|
|
@@ -39,7 +46,7 @@
|
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
&.mx-grid--sidebar-rev {
|
|
42
|
-
@media (--
|
|
49
|
+
@media (--sidebar-up) {
|
|
43
50
|
--sidebar-direction: row-reverse;
|
|
44
51
|
}
|
|
45
52
|
}
|
|
@@ -165,7 +165,7 @@ export default class GoogleTranslateWidget {
|
|
|
165
165
|
if (!trigger) return
|
|
166
166
|
const label = trigger.dataset.label || "Language"
|
|
167
167
|
const languageLabel = this.getLanguageItem(code)?.textContent?.trim() ?? code
|
|
168
|
-
trigger.setAttribute("aria-label", `${label}: ${languageLabel}`)
|
|
168
|
+
trigger.setAttribute("aria-label", `${label}: ${languageLabel}, ${code.toUpperCase()}`)
|
|
169
169
|
const codeEl = trigger.querySelector(".mx-translate__code")
|
|
170
170
|
if (codeEl) codeEl.textContent = code.toUpperCase()
|
|
171
171
|
}
|
package/src/_custom-media.css
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
@custom-media --global-nav-down (width < token("breakpoint.globalNav"));
|
|
20
20
|
@custom-media --collapse-card-up (width >= token("breakpoint.collapsedCard"));
|
|
21
21
|
@custom-media --collapse-card-down (token("breakpoint.xxs") < width < token("breakpoint.collapsedCard"));
|
|
22
|
+
@custom-media --sidebar-up (width >= token("breakpoint.globalNav"));
|
|
23
|
+
@custom-media --sidebar-down (width < token("breakpoint.globalNav"));
|
|
22
24
|
|
|
23
25
|
/* Util media queries */
|
|
24
26
|
@custom-media --touch (pointer: fine);
|