@maggioli-design-system/mds-modal 4.7.0 → 4.7.2

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 (71) hide show
  1. package/dist/cjs/{index-a75ae767.js → index-95c329c0.js} +60 -23
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-modal.cjs.entry.js +129 -129
  4. package/dist/cjs/mds-modal.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/common/aria.js +18 -18
  7. package/dist/collection/common/keyboard-manager.js +38 -38
  8. package/dist/collection/common/unit.js +7 -7
  9. package/dist/collection/components/mds-modal/mds-modal.css +8 -27
  10. package/dist/collection/components/mds-modal/mds-modal.js +188 -188
  11. package/dist/collection/components/mds-modal/meta/dictionary.js +5 -5
  12. package/dist/collection/components/mds-modal/test/mds-modal.e2e.js +34 -34
  13. package/dist/collection/components/mds-modal/test/mds-modal.stories.js +16 -16
  14. package/dist/collection/dictionary/autocomplete.js +56 -56
  15. package/dist/collection/dictionary/button.js +19 -19
  16. package/dist/collection/dictionary/color.js +14 -14
  17. package/dist/collection/dictionary/floating-ui.js +14 -14
  18. package/dist/collection/dictionary/input.js +31 -15
  19. package/dist/collection/dictionary/loading.js +2 -2
  20. package/dist/collection/dictionary/typography.js +46 -46
  21. package/dist/collection/dictionary/variant.js +54 -54
  22. package/dist/collection/fixtures/cities.js +107 -107
  23. package/dist/components/mds-modal.d.ts +2 -2
  24. package/dist/components/mds-modal.js +149 -149
  25. package/dist/documentation.json +2 -2
  26. package/dist/esm/{index-67f67ae4.js → index-2bd481c0.js} +60 -23
  27. package/dist/esm/loader.js +2 -2
  28. package/dist/esm/mds-modal.entry.js +129 -129
  29. package/dist/esm/mds-modal.js +3 -3
  30. package/dist/esm-es5/index-2bd481c0.js +1 -0
  31. package/dist/esm-es5/loader.js +1 -1
  32. package/dist/esm-es5/mds-modal.entry.js +1 -1
  33. package/dist/esm-es5/mds-modal.js +1 -1
  34. package/dist/mds-modal/mds-modal.esm.js +1 -1
  35. package/dist/mds-modal/mds-modal.js +15 -15
  36. package/dist/mds-modal/p-0a4de21e.system.js +2 -0
  37. package/dist/mds-modal/p-2f9a631d.js +2 -0
  38. package/dist/mds-modal/p-68c3fe7d.system.entry.js +1 -0
  39. package/dist/mds-modal/{p-8b71f825.system.js → p-969424eb.system.js} +1 -1
  40. package/dist/mds-modal/p-fe6df5e2.entry.js +1 -0
  41. package/dist/stats.json +30 -30
  42. package/dist/types/common/keyboard-manager.d.ts +9 -9
  43. package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +20 -20
  44. package/dist/types/dictionary/input.d.ts +2 -1
  45. package/dist/types/interface/input-value.d.ts +1 -1
  46. package/dist/types/stencil-public-runtime.d.ts +8 -0
  47. package/documentation.json +14 -4
  48. package/package.json +3 -3
  49. package/src/components/mds-modal/css/mds-modal-animate-bottom.css +2 -2
  50. package/src/components/mds-modal/css/mds-modal-animate-center.css +2 -2
  51. package/src/components/mds-modal/css/mds-modal-animate-top.css +2 -2
  52. package/src/components/mds-modal/mds-modal.css +2 -2
  53. package/src/dictionary/input.ts +18 -0
  54. package/src/fixtures/icons.json +3 -0
  55. package/src/fixtures/iconsauce.json +3 -0
  56. package/www/build/mds-modal.esm.js +1 -1
  57. package/www/build/mds-modal.js +15 -15
  58. package/www/build/p-0a4de21e.system.js +2 -0
  59. package/www/build/p-2f9a631d.js +2 -0
  60. package/www/build/p-68c3fe7d.system.entry.js +1 -0
  61. package/www/build/{p-8b71f825.system.js → p-969424eb.system.js} +1 -1
  62. package/www/build/p-fe6df5e2.entry.js +1 -0
  63. package/dist/esm-es5/index-67f67ae4.js +0 -1
  64. package/dist/mds-modal/p-7a54ebc0.system.entry.js +0 -1
  65. package/dist/mds-modal/p-9bfc9516.js +0 -2
  66. package/dist/mds-modal/p-e765d0c2.entry.js +0 -1
  67. package/dist/mds-modal/p-f6c96de9.system.js +0 -2
  68. package/www/build/p-7a54ebc0.system.entry.js +0 -1
  69. package/www/build/p-9bfc9516.js +0 -2
  70. package/www/build/p-e765d0c2.entry.js +0 -1
  71. package/www/build/p-f6c96de9.system.js +0 -2
@@ -5,163 +5,163 @@ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else i
5
5
  const miBaselineClose = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"/></svg>`;
6
6
 
7
7
  class KeyboardManager {
8
- constructor() {
9
- this.elements = [];
10
- this.handleClickBehaviorDispatchEvent = (event) => {
11
- if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {
12
- event.target.click();
13
- }
14
- };
15
- this.handleEscapeBehaviorDispatchEvent = (event) => {
16
- if (event.code === 'Escape' && this.escapeCallback) {
17
- this.escapeCallback();
18
- }
19
- };
20
- this.addElement = (el, name = 'element') => {
21
- this.elements[name] = el;
22
- };
23
- this.attachClickBehavior = (name = 'element') => {
24
- if (this.elements[name]) {
25
- this.elements[name].addEventListener('keydown', this.handleClickBehaviorDispatchEvent);
26
- }
27
- };
28
- this.detachClickBehavior = (name = 'element') => {
29
- if (this.elements[name]) {
30
- this.elements[name].removeEventListener('keydown', this.handleClickBehaviorDispatchEvent);
31
- }
32
- };
33
- this.attachEscapeBehavior = (callBack) => {
34
- this.escapeCallback = callBack;
35
- if (window !== undefined) {
36
- window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
37
- }
38
- };
39
- this.detachEscapeBehavior = () => {
40
- this.escapeCallback = () => { return; };
41
- if (window !== undefined) {
42
- window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
43
- }
44
- };
45
- }
8
+ constructor() {
9
+ this.elements = [];
10
+ this.handleClickBehaviorDispatchEvent = (event) => {
11
+ if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {
12
+ event.target.click();
13
+ }
14
+ };
15
+ this.handleEscapeBehaviorDispatchEvent = (event) => {
16
+ if (event.code === 'Escape' && this.escapeCallback) {
17
+ this.escapeCallback();
18
+ }
19
+ };
20
+ this.addElement = (el, name = 'element') => {
21
+ this.elements[name] = el;
22
+ };
23
+ this.attachClickBehavior = (name = 'element') => {
24
+ if (this.elements[name]) {
25
+ this.elements[name].addEventListener('keydown', this.handleClickBehaviorDispatchEvent);
26
+ }
27
+ };
28
+ this.detachClickBehavior = (name = 'element') => {
29
+ if (this.elements[name]) {
30
+ this.elements[name].removeEventListener('keydown', this.handleClickBehaviorDispatchEvent);
31
+ }
32
+ };
33
+ this.attachEscapeBehavior = (callBack) => {
34
+ this.escapeCallback = callBack;
35
+ if (window !== undefined) {
36
+ window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
37
+ }
38
+ };
39
+ this.detachEscapeBehavior = () => {
40
+ this.escapeCallback = () => { return; };
41
+ if (window !== undefined) {
42
+ window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
43
+ }
44
+ };
45
+ }
46
46
  }
47
47
 
48
- const mdsModalCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; @tailwind utilities; .svg{display:-ms-flexbox;display:flex}.svg svg{aspect-ratio:1 / 1;height:100%;width:100%}.animate-right-intro,.animate-right-outro{-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}.fixed{position:fixed}.absolute{position:absolute}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.ml-auto{margin-left:auto}.flex{display:-ms-flexbox;display:flex}.w-16{width:4rem}.min-w-0{min-width:0px}.max-w-lg{max-width:32rem}.max-w-xl{max-width:36rem}.items-center{-ms-flex-align:center;align-items:center}.gap-4{gap:1rem}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-tone-neutral-09{--tw-border-opacity:1;border-color:rgb(var(--tone-neutral-09) / var(--tw-border-opacity))}.bg-transparent{background-color:transparent}.p-4{padding:1rem}.p-8{padding:2rem}.text-tone-neutral-02{--tw-text-opacity:1;color:rgb(var(--tone-neutral-02) / var(--tw-text-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgb(var(--tone-neutral-04) / var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-modal-overlay-color:var(--magma-overlay-color, 0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity, 0.5);--mds-modal-window-background:rgb(var(--tone-neutral));--mds-modal-window-overflow:auto;--mds-modal-window-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--mds-modal-z-index:var(--magma-modal-z-index);-webkit-transition-duration:700ms;transition-duration:700ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);-ms-flex-align:center;align-items:center;background-color:rgba(var(--mds-modal-overlay-color) / 0);display:-ms-flexbox;display:flex;fill:rgb(var(--tone-neutral));inset:0;-ms-flex-pack:center;justify-content:center;-webkit-perspective:600px;perspective:600px;pointer-events:none;position:fixed;z-index:var(--mds-modal-z-index, 1000)}:host([position=\"top\"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position=\"bottom\"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}:host(.to-bottom-opened),:host(.to-center-opened),:host(.to-left-opened),:host(.to-right-opened),:host(.to-top-opened){-webkit-transition-duration:500ms;transition-duration:500ms;background-color:rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));pointer-events:auto}.close{top:0px;height:2.25rem;width:2.25rem;border-radius:9999px;font-size:2.25rem;line-height:2.5rem;opacity:0;-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);cursor:pointer;fill:inherit;position:absolute;-webkit-transform:translate(0, 24px) rotate(90deg);transform:translate(0, 24px) rotate(90deg);-webkit-transform-origin:center;transform-origin:center;-webkit-transition-property:opacity, outline, outline-offset, -webkit-transform;transition-property:opacity, outline, outline-offset, -webkit-transform;transition-property:opacity, outline, outline-offset, transform;transition-property:opacity, outline, outline-offset, transform, -webkit-transform}.window{height:100%;gap:0px;background-color:var(--mds-modal-window-background);-webkit-box-shadow:var(--mds-modal-window-shadow);box-shadow:var(--mds-modal-window-shadow);display:grid;grid-template-rows:1fr;max-width:calc(100vw - 80px);overflow:var(--mds-modal-window-overflow)}.window--top{grid-template-rows:auto 1fr}.window--bottom{grid-template-rows:1fr auto}.window--top-bottom{grid-template-rows:auto 1fr auto}:host(.to-bottom){padding:2rem}@media (max-width: 767px){:host(.to-bottom){padding:1rem}}:host(.to-bottom){-ms-flex-pack:center;justify-content:center}:host(.to-bottom) .window,:host(.to-bottom)>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-bottom-intro) .window,:host(.to-bottom-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-bottom-opened.to-bottom-outro) .window,:host(.to-bottom-opened.to-bottom-outro)>::slotted([slot=\"window\"]),:host(.to-bottom-opened) .window,:host(.to-bottom-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-bottom-outro) .window,:host(.to-bottom-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.to-center){padding:2rem}@media (max-width: 767px){:host(.to-center){padding:1rem}}:host(.to-center){-ms-flex-pack:center;justify-content:center}:host(.to-center) .window,:host(.to-center)>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-center-intro) .window,:host(.to-center-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-center-opened.to-center-outro) .window,:host(.to-center-opened.to-center-outro)>::slotted([slot=\"window\"]),:host(.to-center-opened) .window,:host(.to-center-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-center-outro) .window,:host(.to-center-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.to-left){-ms-flex-pack:start;justify-content:flex-start}:host(.to-left) .window,:host(.to-left)>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-left-intro) .window,:host(.to-left-intro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.to-left-opened.to-left-outro) .window,:host(.to-left-opened.to-left-outro)>::slotted([slot=\"window\"]),:host(.to-left-opened) .window,:host(.to-left-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.to-left-opened) .close,:host(.to-left-opened.to-left-outro) .close{opacity:1;-webkit-transform:translate(-24px, 24px) rotate(0);transform:translate(-24px, 24px) rotate(0)}:host(.to-left-outro) .window,:host(.to-left-outro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.to-left-outro) .close{-webkit-transform:translate(24px, 24px) rotate(-90deg);transform:translate(24px, 24px) rotate(-90deg)}:host(.to-left) .close{right:0px;-webkit-transform:translate(36px, 24px) rotate(90deg);transform:translate(36px, 24px) rotate(90deg)}:host(.to-right){-ms-flex-pack:end;justify-content:flex-end}:host(.to-right) .window,:host(.to-right)>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-right-intro) .window,:host(.to-right-intro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.to-right-opened.to-right-outro) .window,:host(.to-right-opened.to-right-outro)>::slotted([slot=\"window\"]),:host(.to-right-opened) .window,:host(.to-right-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.to-right-opened) .close,:host(.to-right-opened.to-right-outro) .close{opacity:1;-webkit-transform:translate(24px, 24px) rotate(0);transform:translate(24px, 24px) rotate(0)}:host(.to-right-outro) .window,:host(.to-right-outro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.to-right-outro) .close{-webkit-transform:translate(-24px, 24px) rotate(90deg);transform:translate(-24px, 24px) rotate(90deg)}:host(.to-right) .close{left:0px;-webkit-transform:translate(-36px, 24px) rotate(-90deg);transform:translate(-36px, 24px) rotate(-90deg)}:host(.to-top){padding:2rem}@media (max-width: 767px){:host(.to-top){padding:1rem}}:host(.to-top){-ms-flex-pack:center;justify-content:center}:host(.to-top) .window,:host(.to-top)>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-top-intro) .window,:host(.to-top-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-top-opened.to-top-outro) .window,:host(.to-top-opened.to-top-outro)>::slotted([slot=\"window\"]),:host(.to-top-opened) .window,:host(.to-top-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-top-outro) .window,:host(.to-top-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}@media (max-width: 767px){.mobile\\:w-12{width:3rem}}";
48
+ const mdsModalCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; @tailwind utilities; .svg{display:-ms-flexbox;display:flex}.svg svg{aspect-ratio:1/1;height:100%;width:100%}.animate-right-intro,.animate-right-outro{-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}.fixed{position:fixed}.absolute{position:absolute}.ml-auto{margin-left:auto}.flex{display:-ms-flexbox;display:flex}.min-w-0{min-width:0rem}.max-w-lg{max-width:32rem}.max-w-xl{max-width:36rem}.items-center{-ms-flex-align:center;align-items:center}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-tone-neutral-09{--tw-border-opacity:1;border-color:rgb(var(--tone-neutral-09) / var(--tw-border-opacity))}.bg-transparent{background-color:transparent}.text{font-size:1rem}.text-tone-neutral-02{--tw-text-opacity:1;color:rgb(var(--tone-neutral-02) / var(--tw-text-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgb(var(--tone-neutral-04) / var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-modal-overlay-color:var(--magma-overlay-color, 0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity, 0.5);--mds-modal-window-background:rgb(var(--tone-neutral));--mds-modal-window-overflow:auto;--mds-modal-window-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--mds-modal-z-index:var(--magma-modal-z-index);-webkit-transition-duration:700ms;transition-duration:700ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);-ms-flex-align:center;align-items:center;background-color:rgba(var(--mds-modal-overlay-color) / 0);display:-ms-flexbox;display:flex;fill:rgb(var(--tone-neutral));inset:0;-ms-flex-pack:center;justify-content:center;-webkit-perspective:600px;perspective:600px;pointer-events:none;position:fixed;z-index:var(--mds-modal-z-index, 1000)}:host([position=\"top\"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position=\"bottom\"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}:host(.to-bottom-opened),:host(.to-center-opened),:host(.to-left-opened),:host(.to-right-opened),:host(.to-top-opened){-webkit-transition-duration:500ms;transition-duration:500ms;background-color:rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));pointer-events:auto}.close{top:0rem;height:2.25rem;width:2.25rem;border-radius:9999px;font-size:2.25rem;line-height:2.5rem;opacity:0;-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);cursor:pointer;fill:inherit;position:absolute;-webkit-transform:translate(0, 24px) rotate(90deg);transform:translate(0, 24px) rotate(90deg);-webkit-transform-origin:center;transform-origin:center;-webkit-transition-property:opacity, outline, outline-offset, -webkit-transform;transition-property:opacity, outline, outline-offset, -webkit-transform;transition-property:opacity, outline, outline-offset, transform;transition-property:opacity, outline, outline-offset, transform, -webkit-transform}.window{height:100%;gap:0rem;background-color:var(--mds-modal-window-background);-webkit-box-shadow:var(--mds-modal-window-shadow);box-shadow:var(--mds-modal-window-shadow);display:grid;grid-template-rows:1fr;max-width:calc(100vw - 80px);overflow:var(--mds-modal-window-overflow)}.window--top{grid-template-rows:auto 1fr}.window--bottom{grid-template-rows:1fr auto}.window--top-bottom{grid-template-rows:auto 1fr auto}:host(.to-bottom){padding:2rem}@media (max-width: 767px){:host(.to-bottom){padding:1rem}}:host(.to-bottom){-ms-flex-pack:center;justify-content:center}:host(.to-bottom) .window,:host(.to-bottom)>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-bottom-intro) .window,:host(.to-bottom-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-bottom-opened.to-bottom-outro) .window,:host(.to-bottom-opened.to-bottom-outro)>::slotted([slot=\"window\"]),:host(.to-bottom-opened) .window,:host(.to-bottom-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-bottom-outro) .window,:host(.to-bottom-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.to-center){padding:2rem}@media (max-width: 767px){:host(.to-center){padding:1rem}}:host(.to-center){-ms-flex-pack:center;justify-content:center}:host(.to-center) .window,:host(.to-center)>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-center-intro) .window,:host(.to-center-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-center-opened.to-center-outro) .window,:host(.to-center-opened.to-center-outro)>::slotted([slot=\"window\"]),:host(.to-center-opened) .window,:host(.to-center-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-center-outro) .window,:host(.to-center-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.to-left){-ms-flex-pack:start;justify-content:flex-start}:host(.to-left) .window,:host(.to-left)>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-left-intro) .window,:host(.to-left-intro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.to-left-opened.to-left-outro) .window,:host(.to-left-opened.to-left-outro)>::slotted([slot=\"window\"]),:host(.to-left-opened) .window,:host(.to-left-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.to-left-opened) .close,:host(.to-left-opened.to-left-outro) .close{opacity:1;-webkit-transform:translate(-24px, 24px) rotate(0);transform:translate(-24px, 24px) rotate(0)}:host(.to-left-outro) .window,:host(.to-left-outro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.to-left-outro) .close{-webkit-transform:translate(24px, 24px) rotate(-90deg);transform:translate(24px, 24px) rotate(-90deg)}:host(.to-left) .close{right:0rem;-webkit-transform:translate(36px, 24px) rotate(90deg);transform:translate(36px, 24px) rotate(90deg)}:host(.to-right){-ms-flex-pack:end;justify-content:flex-end}:host(.to-right) .window,:host(.to-right)>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-right-intro) .window,:host(.to-right-intro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.to-right-opened.to-right-outro) .window,:host(.to-right-opened.to-right-outro)>::slotted([slot=\"window\"]),:host(.to-right-opened) .window,:host(.to-right-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.to-right-opened) .close,:host(.to-right-opened.to-right-outro) .close{opacity:1;-webkit-transform:translate(24px, 24px) rotate(0);transform:translate(24px, 24px) rotate(0)}:host(.to-right-outro) .window,:host(.to-right-outro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.to-right-outro) .close{-webkit-transform:translate(-24px, 24px) rotate(90deg);transform:translate(-24px, 24px) rotate(90deg)}:host(.to-right) .close{left:0rem;-webkit-transform:translate(-36px, 24px) rotate(-90deg);transform:translate(-36px, 24px) rotate(-90deg)}:host(.to-top){padding:2rem}@media (max-width: 767px){:host(.to-top){padding:1rem}}:host(.to-top){-ms-flex-pack:center;justify-content:center}:host(.to-top) .window,:host(.to-top)>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-top-intro) .window,:host(.to-top-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-top-opened.to-top-outro) .window,:host(.to-top-opened.to-top-outro)>::slotted([slot=\"window\"]),:host(.to-top-opened) .window,:host(.to-top-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-top-outro) .window,:host(.to-top-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}";
49
49
 
50
50
  const MdsModal$1 = /*@__PURE__*/ proxyCustomElement(class MdsModal extends HTMLElement {
51
- constructor() {
52
- super();
53
- this.__registerHost();
54
- this.__attachShadow();
55
- this.closeEvent = createEvent(this, "mdsModalClose", 7);
56
- this.window = false;
57
- this.top = false;
58
- this.bottom = false;
59
- this.animationState = 'intro';
60
- this.km = new KeyboardManager();
61
- this.componentDidLoad = () => {
62
- var _a;
63
- this.km.addElement(this.host, 'host');
64
- const close = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.close');
65
- if (close)
66
- this.km.addElement(close, 'close');
67
- this.km.attachEscapeBehavior(() => this.closeEvent.emit());
68
- this.km.attachClickBehavior('close');
69
- };
70
- this.animationName = (customState = '', customPosition = '') => {
71
- return `to-${customPosition !== '' ? customPosition : this.position}${customState !== '' ? '-' + customState : ''}`;
72
- };
73
- this.closeModal = (e) => {
74
- var _a;
75
- if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.localName) !== 'mds-modal') {
76
- return;
77
- }
78
- this.opened = e.target !== e.currentTarget;
79
- if (!this.opened) {
80
- this.closeEvent.emit();
81
- }
82
- };
83
- this.stateOpened = undefined;
84
- this.opened = false;
85
- this.position = 'center';
86
- }
87
- componentWillLoad() {
88
- var _a;
89
- this.bottom = this.host.querySelector('[slot="bottom"]') !== null;
90
- this.top = this.host.querySelector('[slot="top"]') !== null;
91
- this.window = this.host.querySelector('[slot="window"]') !== null;
92
- this.stateOpened = this.opened;
93
- if (!this.window) {
94
- this.position = 'right';
51
+ constructor() {
52
+ super();
53
+ this.__registerHost();
54
+ this.__attachShadow();
55
+ this.closeEvent = createEvent(this, "mdsModalClose", 7);
56
+ this.window = false;
57
+ this.top = false;
58
+ this.bottom = false;
59
+ this.animationState = 'intro';
60
+ this.km = new KeyboardManager();
61
+ this.componentDidLoad = () => {
62
+ var _a;
63
+ this.km.addElement(this.host, 'host');
64
+ const close = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.close');
65
+ if (close)
66
+ this.km.addElement(close, 'close');
67
+ this.km.attachEscapeBehavior(() => this.closeEvent.emit());
68
+ this.km.attachClickBehavior('close');
69
+ };
70
+ this.animationName = (customState = '', customPosition = '') => {
71
+ return `to-${customPosition !== '' ? customPosition : this.position}${customState !== '' ? '-' + customState : ''}`;
72
+ };
73
+ this.closeModal = (e) => {
74
+ var _a;
75
+ if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.localName) !== 'mds-modal') {
76
+ return;
77
+ }
78
+ this.opened = e.target !== e.currentTarget;
79
+ if (!this.opened) {
80
+ this.closeEvent.emit();
81
+ }
82
+ };
83
+ this.stateOpened = undefined;
84
+ this.opened = false;
85
+ this.position = 'center';
86
+ }
87
+ componentWillLoad() {
88
+ var _a;
89
+ this.bottom = this.host.querySelector('[slot="bottom"]') !== null;
90
+ this.top = this.host.querySelector('[slot="top"]') !== null;
91
+ this.window = this.host.querySelector('[slot="window"]') !== null;
92
+ this.stateOpened = this.opened;
93
+ if (!this.window) {
94
+ this.position = 'right';
95
+ }
96
+ if (this.window) {
97
+ (_a = this.host.querySelector('[slot="window"]')) === null || _a === void 0 ? void 0 : _a.setAttribute('role', 'modal');
98
+ }
99
+ }
100
+ componentWillRender() {
101
+ this.animationState = this.opened ? 'intro' : 'outro';
102
+ this.host.classList.add(this.animationName());
103
+ }
104
+ componentDidRender() {
105
+ this.animationDeelay = window.setTimeout(() => {
106
+ this.animationState = this.animationState === 'intro' ? 'outro' : 'intro';
107
+ this.host.classList.remove(this.animationName(this.animationState === 'intro' ? 'outro' : 'intro'));
108
+ this.host.classList.add(this.animationName(this.animationState));
109
+ window.clearTimeout(this.animationDeelay);
110
+ }, 500);
111
+ }
112
+ disconnectedCallback() {
113
+ this.km.detachEscapeBehavior();
114
+ this.km.detachClickBehavior('close');
95
115
  }
96
- if (this.window) {
97
- (_a = this.host.querySelector('[slot="window"]')) === null || _a === void 0 ? void 0 : _a.setAttribute('role', 'modal');
116
+ positionChange(_newValue, oldValue) {
117
+ window.clearTimeout(this.animationDeelay);
118
+ this.host.classList.remove(this.animationName('', oldValue));
119
+ this.host.classList.remove(this.animationName('intro', oldValue));
120
+ this.host.classList.remove(this.animationName('outro', oldValue));
98
121
  }
99
- }
100
- componentWillRender() {
101
- this.animationState = this.opened ? 'intro' : 'outro';
102
- this.host.classList.add(this.animationName());
103
- }
104
- componentDidRender() {
105
- this.animationDeelay = window.setTimeout(() => {
106
- this.animationState = this.animationState === 'intro' ? 'outro' : 'intro';
107
- this.host.classList.remove(this.animationName(this.animationState === 'intro' ? 'outro' : 'intro'));
108
- this.host.classList.add(this.animationName(this.animationState));
109
- window.clearTimeout(this.animationDeelay);
110
- }, 500);
111
- }
112
- disconnectedCallback() {
113
- this.km.detachEscapeBehavior();
114
- this.km.detachClickBehavior('close');
115
- }
116
- positionChange(_newValue, oldValue) {
117
- window.clearTimeout(this.animationDeelay);
118
- this.host.classList.remove(this.animationName('', oldValue));
119
- this.host.classList.remove(this.animationName('intro', oldValue));
120
- this.host.classList.remove(this.animationName('outro', oldValue));
121
- }
122
- openedChange(newValue) {
123
- this.stateOpened = newValue;
124
- window.clearTimeout(this.animationDeelay);
125
- }
126
- onModalCloseListener() {
127
- this.opened = false;
128
- }
129
- onBannerCloseListener() {
130
- this.opened = false;
131
- }
132
- render() {
133
- return (h(Host, { "aria-modal": clsx(this.opened ? 'true' : 'false'), class: clsx(this.stateOpened && this.animationName('opened')), onClick: (e) => { this.closeModal(e); } }, this.window
134
- ? h("slot", { name: "window" })
135
- : h("div", { class: clsx('window', (this.top || this.bottom) && `window-${this.top ? '-top' : ''}${this.bottom ? '-bottom' : ''}`), role: "dialog", part: "window" }, this.top &&
136
- h("slot", { name: "top" }), h("slot", null), this.bottom &&
137
- h("slot", { name: "bottom" })), !this.window && h("i", { innerHTML: miBaselineClose, tabindex: "0", onClick: (e) => { this.closeModal(e); }, class: "svg close focus-bounce-light" })));
138
- }
139
- get host() { return this; }
140
- static get watchers() { return {
141
- "position": ["positionChange"],
142
- "opened": ["openedChange"]
143
- }; }
144
- static get style() { return mdsModalCss; }
122
+ openedChange(newValue) {
123
+ this.stateOpened = newValue;
124
+ window.clearTimeout(this.animationDeelay);
125
+ }
126
+ onModalCloseListener() {
127
+ this.opened = false;
128
+ }
129
+ onBannerCloseListener() {
130
+ this.opened = false;
131
+ }
132
+ render() {
133
+ return (h(Host, { "aria-modal": clsx(this.opened ? 'true' : 'false'), class: clsx(this.stateOpened && this.animationName('opened')), onClick: (e) => { this.closeModal(e); } }, this.window
134
+ ? h("slot", { name: "window" })
135
+ : h("div", { class: clsx('window', (this.top || this.bottom) && `window-${this.top ? '-top' : ''}${this.bottom ? '-bottom' : ''}`), role: "dialog", part: "window" }, this.top &&
136
+ h("slot", { name: "top" }), h("slot", null), this.bottom &&
137
+ h("slot", { name: "bottom" })), !this.window && h("i", { innerHTML: miBaselineClose, tabindex: "0", onClick: (e) => { this.closeModal(e); }, class: "svg close focus-bounce-light" })));
138
+ }
139
+ get host() { return this; }
140
+ static get watchers() { return {
141
+ "position": ["positionChange"],
142
+ "opened": ["openedChange"]
143
+ }; }
144
+ static get style() { return mdsModalCss; }
145
145
  }, [1, "mds-modal", {
146
- "opened": [1540],
147
- "position": [1537],
148
- "stateOpened": [32]
149
- }, [[4, "mdsModalClose", "onModalCloseListener"], [4, "mdsBannerClose", "onBannerCloseListener"]], {
150
- "position": ["positionChange"],
151
- "opened": ["openedChange"]
152
- }]);
146
+ "opened": [1540],
147
+ "position": [1537],
148
+ "stateOpened": [32]
149
+ }, [[4, "mdsModalClose", "onModalCloseListener"], [4, "mdsBannerClose", "onBannerCloseListener"]], {
150
+ "position": ["positionChange"],
151
+ "opened": ["openedChange"]
152
+ }]);
153
153
  function defineCustomElement$1() {
154
- if (typeof customElements === "undefined") {
155
- return;
156
- }
157
- const components = ["mds-modal"];
158
- components.forEach(tagName => { switch (tagName) {
159
- case "mds-modal":
160
- if (!customElements.get(tagName)) {
161
- customElements.define(tagName, MdsModal$1);
162
- }
163
- break;
164
- } });
154
+ if (typeof customElements === "undefined") {
155
+ return;
156
+ }
157
+ const components = ["mds-modal"];
158
+ components.forEach(tagName => { switch (tagName) {
159
+ case "mds-modal":
160
+ if (!customElements.get(tagName)) {
161
+ customElements.define(tagName, MdsModal$1);
162
+ }
163
+ break;
164
+ } });
165
165
  }
166
166
 
167
167
  const MdsModal = MdsModal$1;
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2023-11-08T17:57:29",
2
+ "timestamp": "2023-12-20T08:50:55",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
- "version": "4.7.1",
5
+ "version": "4.8.0",
6
6
  "typescriptVersion": "5.2.2"
7
7
  },
8
8
  "components": [
@@ -27,6 +27,13 @@ const uniqueTime = (key, measureText) => {
27
27
  }
28
28
  };
29
29
  const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
30
+ /**
31
+ * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
32
+ *
33
+ * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
34
+ * support as of Stencil v4.
35
+ */
36
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
30
37
  /**
31
38
  * Default style mode id
32
39
  */
@@ -260,6 +267,10 @@ const addStyle = (styleContainerNode, cmpMeta, mode) => {
260
267
  }
261
268
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
262
269
  }
270
+ // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
271
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
272
+ styleElm.innerHTML += SLOT_FB_CSS;
273
+ }
263
274
  if (appliedStyles) {
264
275
  appliedStyles.add(scopeId);
265
276
  }
@@ -391,7 +402,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
391
402
  elm[memberName] = newValue;
392
403
  }
393
404
  }
394
- catch (e) { }
405
+ catch (e) {
406
+ /**
407
+ * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
408
+ */
409
+ }
395
410
  }
396
411
  if (newValue == null || newValue === false) {
397
412
  if (newValue !== false || elm.getAttribute(memberName) === '') {
@@ -410,6 +425,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
410
425
  }
411
426
  };
412
427
  const parseClassListRegex = /\s/;
428
+ /**
429
+ * Parsed a string of classnames into an array
430
+ * @param value className string, e.g. "foo bar baz"
431
+ * @returns list of classes, e.g. ["foo", "bar", "baz"]
432
+ */
413
433
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
414
434
  const CAPTURE_EVENT_SUFFIX = 'Capture';
415
435
  const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
@@ -1153,13 +1173,13 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1153
1173
  */
1154
1174
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1155
1175
  var _a;
1176
+ const prototype = Cstr.prototype;
1156
1177
  if (cmpMeta.$members$) {
1157
1178
  if (Cstr.watchers) {
1158
1179
  cmpMeta.$watchers$ = Cstr.watchers;
1159
1180
  }
1160
1181
  // It's better to have a const than two Object.entries()
1161
1182
  const members = Object.entries(cmpMeta.$members$);
1162
- const prototype = Cstr.prototype;
1163
1183
  members.map(([memberName, [memberFlags]]) => {
1164
1184
  if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1165
1185
  ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
@@ -1182,6 +1202,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1182
1202
  const attrNameToPropName = new Map();
1183
1203
  prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1184
1204
  plt.jmp(() => {
1205
+ var _a;
1185
1206
  const propName = attrNameToPropName.get(attrName);
1186
1207
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1187
1208
  // in the case where an attribute was set inline.
@@ -1237,11 +1258,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1237
1258
  // 1. The instance is ready
1238
1259
  // 2. The watchers are ready
1239
1260
  // 3. The value has changed
1240
- if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1261
+ if (flags &&
1262
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1241
1263
  flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1242
1264
  newValue !== oldValue) {
1243
1265
  const instance = hostRef.$lazyInstance$ ;
1244
- const entry = cmpMeta.$watchers$[attrName];
1266
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1245
1267
  entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1246
1268
  if (instance[callbackName] != null) {
1247
1269
  instance[callbackName].call(instance, newValue, oldValue, attrName);
@@ -1263,10 +1285,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1263
1285
  ...members
1264
1286
  .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1265
1287
  .map(([propName, m]) => {
1288
+ var _a;
1266
1289
  const attrName = m[1] || propName;
1267
1290
  attrNameToPropName.set(attrName, propName);
1268
1291
  if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1269
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1292
+ (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1270
1293
  }
1271
1294
  return attrName;
1272
1295
  }),
@@ -1448,12 +1471,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1448
1471
  const customElements = win.customElements;
1449
1472
  const head = doc.head;
1450
1473
  const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1451
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1474
+ const dataStyles = /*@__PURE__*/ doc.createElement('style');
1452
1475
  const deferredConnectedCallbacks = [];
1453
1476
  let appLoadFallback;
1454
1477
  let isBootstrapping = true;
1455
1478
  Object.assign(plt, options);
1456
1479
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1480
+ let hasSlotRelocation = false;
1457
1481
  lazyBundles.map((lazyBundle) => {
1458
1482
  lazyBundle[1].map((compactMeta) => {
1459
1483
  var _a;
@@ -1463,6 +1487,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1463
1487
  $members$: compactMeta[2],
1464
1488
  $listeners$: compactMeta[3],
1465
1489
  };
1490
+ // Check if we are using slots outside the shadow DOM in this component.
1491
+ // We'll use this information later to add styles for `slot-fb` elements
1492
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
1493
+ hasSlotRelocation = true;
1494
+ }
1466
1495
  {
1467
1496
  cmpMeta.$members$ = compactMeta[2];
1468
1497
  }
@@ -1522,15 +1551,23 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1522
1551
  }
1523
1552
  });
1524
1553
  });
1554
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1555
+ if (hasSlotRelocation) {
1556
+ dataStyles.innerHTML += SLOT_FB_CSS;
1557
+ }
1558
+ // Add hydration styles
1525
1559
  {
1526
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1527
- visibilityStyle.setAttribute('data-styles', '');
1560
+ dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1561
+ }
1562
+ // If we have styles, add them to the DOM
1563
+ if (dataStyles.innerHTML.length) {
1564
+ dataStyles.setAttribute('data-styles', '');
1565
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1528
1566
  // Apply CSP nonce to the style tag if it exists
1529
1567
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1530
1568
  if (nonce != null) {
1531
- visibilityStyle.setAttribute('nonce', nonce);
1569
+ dataStyles.setAttribute('nonce', nonce);
1532
1570
  }
1533
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1534
1571
  }
1535
1572
  // Process deferred connectedCallbacks now all components have been registered
1536
1573
  isBootstrapping = false;
@@ -1643,19 +1680,19 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1643
1680
  return module[exportName];
1644
1681
  }
1645
1682
 
1646
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1647
- const processMod = importedModule => {
1648
- cmpModules.set(bundleId, importedModule);
1649
- return importedModule[exportName];
1650
- }
1651
- switch(bundleId) {
1652
-
1653
- case 'mds-modal':
1654
- return import(
1655
- /* webpackMode: "lazy" */
1656
- './mds-modal.entry.js').then(processMod, consoleError);
1683
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1684
+ const processMod = importedModule => {
1685
+ cmpModules.set(bundleId, importedModule);
1686
+ return importedModule[exportName];
1687
+ }
1688
+ switch(bundleId) {
1689
+
1690
+ case 'mds-modal':
1691
+ return import(
1692
+ /* webpackMode: "lazy" */
1693
+ './mds-modal.entry.js').then(processMod, consoleError);
1694
+ }
1657
1695
  }
1658
- }
1659
1696
  return import(
1660
1697
  /* @vite-ignore */
1661
1698
  /* webpackInclude: /\.entry\.js$/ */
@@ -1730,7 +1767,7 @@ const flush = () => {
1730
1767
  }
1731
1768
  }
1732
1769
  };
1733
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1770
+ const nextTick = (cb) => promiseResolve().then(cb);
1734
1771
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1735
1772
 
1736
1773
  export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-67f67ae4.js';
2
- export { s as setNonce } from './index-67f67ae4.js';
1
+ import { b as bootstrapLazy } from './index-2bd481c0.js';
2
+ export { s as setNonce } from './index-2bd481c0.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;