@maggioli-design-system/mds-modal 4.1.0 → 4.2.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 (50) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mds-modal.cjs.entry.js +22 -24
  3. package/dist/cjs/mds-modal.cjs.js +1 -1
  4. package/dist/collection/collection-manifest.json +1 -1
  5. package/dist/collection/common/aria.js +4 -2
  6. package/dist/collection/common/keyboard-manager.js +1 -1
  7. package/dist/collection/components/mds-modal/mds-modal.css +91 -95
  8. package/dist/collection/components/mds-modal/mds-modal.js +25 -26
  9. package/dist/components/mds-modal.js +22 -24
  10. package/dist/documentation.d.ts +148 -0
  11. package/dist/documentation.json +137 -0
  12. package/dist/esm/loader.js +1 -1
  13. package/dist/esm/mds-modal.entry.js +22 -24
  14. package/dist/esm/mds-modal.js +1 -1
  15. package/dist/esm-es5/mds-modal.entry.js +1 -1
  16. package/dist/mds-modal/mds-modal.esm.js +1 -1
  17. package/dist/mds-modal/mds-modal.js +1 -1
  18. package/dist/mds-modal/p-8363eae7.system.entry.js +1 -0
  19. package/dist/mds-modal/p-a7878434.entry.js +1 -0
  20. package/{www/build/p-f856db3e.system.js → dist/mds-modal/p-e2fdb863.system.js} +1 -1
  21. package/dist/stats.json +24 -22
  22. package/dist/types/components.d.ts +1 -1
  23. package/dist/types/interface/input-value.d.ts +1 -1
  24. package/documentation.json +144 -0
  25. package/package.json +10 -4
  26. package/readme.md +4 -4
  27. package/src/common/aria.ts +2 -2
  28. package/src/common/keyboard-manager.ts +1 -1
  29. package/src/components/mds-modal/css/components.css +49 -0
  30. package/src/components/mds-modal/css/mds-modal-animate-bottom.css +12 -12
  31. package/src/components/mds-modal/css/mds-modal-animate-center.css +12 -12
  32. package/src/components/mds-modal/css/mds-modal-animate-left.css +16 -16
  33. package/src/components/mds-modal/css/mds-modal-animate-right.css +16 -16
  34. package/src/components/mds-modal/css/mds-modal-animate-top.css +12 -12
  35. package/src/components/mds-modal/mds-modal.css +12 -66
  36. package/src/components/mds-modal/mds-modal.tsx +15 -21
  37. package/src/components/mds-modal/readme.md +4 -4
  38. package/src/components/mds-modal/test/mds-modal.e2e.ts +1 -1
  39. package/src/components.d.ts +1 -1
  40. package/src/fixtures/icons.json +1 -0
  41. package/src/interface/input-value.ts +1 -1
  42. package/www/build/mds-modal.esm.js +1 -1
  43. package/www/build/mds-modal.js +1 -1
  44. package/www/build/p-8363eae7.system.entry.js +1 -0
  45. package/www/build/p-a7878434.entry.js +1 -0
  46. package/{dist/mds-modal/p-f856db3e.system.js → www/build/p-e2fdb863.system.js} +1 -1
  47. package/dist/mds-modal/p-1e2f03d3.system.entry.js +0 -1
  48. package/dist/mds-modal/p-536e9f30.entry.js +0 -1
  49. package/www/build/p-1e2f03d3.system.entry.js +0 -1
  50. package/www/build/p-536e9f30.entry.js +0 -1
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f216518d.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -41,7 +41,7 @@ class KeyboardManager {
41
41
  }
42
42
  };
43
43
  this.detachEscapeBehavior = () => {
44
- this.escapeCallback = null;
44
+ this.escapeCallback = () => { return; };
45
45
  if (typeof window !== undefined) {
46
46
  window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
47
47
  }
@@ -49,27 +49,30 @@ class KeyboardManager {
49
49
  }
50
50
  }
51
51
 
52
- const mdsModalCss = "@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.focus-light-on,.focusable-light:focus-visible{--magma-outline-blur:2px solid rgb(var(--tone-neutral))}.svg{display:-ms-flexbox;display:flex}.svg svg{aspect-ratio:1 / 1;height:100%;width:100%}.animate-left,.animate-right{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)}.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:rgba(var(--tone-neutral-09), var(--tw-border-opacity))}.bg-transparent{background-color:transparent}.p-8{padding:2rem}.p-4{padding:1rem}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(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);pointer-events:none;position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-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);background-color:rgba(var(--mds-modal-overlay-color) / 0);-webkit-perspective:600px;perspective:600px;z-index:var(--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(.animate-bottom-opened),:host(.animate-center-opened),:host(.animate-left-opened),:host(.animate-right-opened),:host(.animate-top-opened){pointer-events:auto;-webkit-transition-duration:500ms;transition-duration:500ms;background-color:rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity))}.close{position:absolute;top:0px;height:2.25rem;width:2.25rem;-webkit-transform-origin:center;transform-origin:center;cursor:pointer;border-radius:9999px;fill:rgb(var(--tone-neutral-10));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);-webkit-transform:translate(0, 24px) rotate(90deg);transform:translate(0, 24px) rotate(90deg);-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{display:grid;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);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(.animate-bottom){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.animate-bottom){padding:1rem}}:host(.animate-bottom) .window,:host(.animate-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(.animate-bottom-intro) .window,:host(.animate-bottom-intro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.animate-bottom-opened.animate-bottom-outro) .window,:host(.animate-bottom-opened.animate-bottom-outro)>::slotted([slot=window]),:host(.animate-bottom-opened) .window,:host(.animate-bottom-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.animate-bottom-outro) .window,:host(.animate-bottom-outro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.animate-center){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.animate-center){padding:1rem}}:host(.animate-center) .window,:host(.animate-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(.animate-center-intro) .window,:host(.animate-center-intro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.animate-center-opened.animate-center-outro) .window,:host(.animate-center-opened.animate-center-outro)>::slotted([slot=window]),:host(.animate-center-opened) .window,:host(.animate-center-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.animate-center-outro) .window,:host(.animate-center-outro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.animate-left){-ms-flex-pack:start;justify-content:flex-start}:host(.animate-left) .window,:host(.animate-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(.animate-left-intro) .window,:host(.animate-left-intro)>::slotted([slot=window]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.animate-left-opened.animate-left-outro) .window,:host(.animate-left-opened.animate-left-outro)>::slotted([slot=window]),:host(.animate-left-opened) .window,:host(.animate-left-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.animate-left-opened) .close,:host(.animate-left-opened.animate-left-outro) .close{opacity:1;-webkit-transform:translate(-24px, 24px) rotate(0);transform:translate(-24px, 24px) rotate(0)}:host(.animate-left-outro) .window,:host(.animate-left-outro)>::slotted([slot=window]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.animate-left-outro) .close{-webkit-transform:translate(24px, 24px) rotate(-90deg);transform:translate(24px, 24px) rotate(-90deg)}:host(.animate-left) .close{right:0px;-webkit-transform:translate(36px, 24px) rotate(90deg);transform:translate(36px, 24px) rotate(90deg)}:host(.animate-right){-ms-flex-pack:end;justify-content:flex-end}:host(.animate-right) .window,:host(.animate-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(.animate-right-intro) .window,:host(.animate-right-intro)>::slotted([slot=window]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.animate-right-opened.animate-right-outro) .window,:host(.animate-right-opened.animate-right-outro)>::slotted([slot=window]),:host(.animate-right-opened) .window,:host(.animate-right-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.animate-right-opened) .close,:host(.animate-right-opened.animate-right-outro) .close{opacity:1;-webkit-transform:translate(24px, 24px) rotate(0);transform:translate(24px, 24px) rotate(0)}:host(.animate-right-outro) .window,:host(.animate-right-outro)>::slotted([slot=window]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.animate-right-outro) .close{-webkit-transform:translate(-24px, 24px) rotate(90deg);transform:translate(-24px, 24px) rotate(90deg)}:host(.animate-right) .close{left:0px;-webkit-transform:translate(-36px, 24px) rotate(-90deg);transform:translate(-36px, 24px) rotate(-90deg)}:host(.animate-top){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.animate-top){padding:1rem}}:host(.animate-top) .window,:host(.animate-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(.animate-top-intro) .window,:host(.animate-top-intro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.animate-top-opened.animate-top-outro) .window,:host(.animate-top-opened.animate-top-outro)>::slotted([slot=window]),:host(.animate-top-opened) .window,:host(.animate-top-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.animate-top-outro) .window,:host(.animate-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}}";
52
+ const mdsModalCss = "@tailwind components; @tailwind utilities; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.focus-light-on,.focusable-light:focus-visible{--magma-outline-blur:2px solid rgb(var(--tone-neutral))}.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:rgba(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:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(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);pointer-events:none;position:fixed;inset:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-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);background-color:rgba(var(--mds-modal-overlay-color) / 0);-webkit-perspective:600px;perspective:600px;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){pointer-events:auto;-webkit-transition-duration:500ms;transition-duration:500ms;background-color:rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity))}.close{position:absolute;top:0px;height:2.25rem;width:2.25rem;-webkit-transform-origin:center;transform-origin:center;cursor:pointer;border-radius:9999px;fill:rgb(var(--tone-neutral-10));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);-webkit-transform:translate(0, 24px) rotate(90deg);transform:translate(0, 24px) rotate(90deg);-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{display:grid;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);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){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.to-bottom){padding:1rem}}: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){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.to-center){padding:1rem}}: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){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.to-top){padding:1rem}}: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}}";
53
53
 
54
54
  const MdsModal = class {
55
55
  constructor(hostRef) {
56
56
  index.registerInstance(this, hostRef);
57
57
  this.closeEvent = index.createEvent(this, "mdsModalClose", 7);
58
- this.window = null;
59
- this.top = null;
60
- this.bottom = null;
58
+ this.window = false;
59
+ this.top = false;
60
+ this.bottom = false;
61
61
  this.animationState = 'intro';
62
62
  this.km = new KeyboardManager();
63
63
  this.componentDidLoad = () => {
64
+ var _a;
64
65
  this.km.addElement(this.host, 'host');
65
- this.km.addElement(this.host.shadowRoot.querySelector('.close'), 'close');
66
+ const close = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.close');
67
+ if (close)
68
+ this.km.addElement(close, 'close');
66
69
  this.km.attachEscapeBehavior(() => this.closeEvent.emit());
67
70
  this.km.attachClickBehavior('close');
68
71
  };
69
- this.animationName = (customState = null, customPosition = null) => {
70
- return `animate-${customPosition !== null ? customPosition : this.position}${customState !== null ? '-' + customState : ''}`;
72
+ this.animationName = (customState = '', customPosition = '') => {
73
+ return `to-${customPosition !== '' ? customPosition : this.position}${customState !== '' ? '-' + customState : ''}`;
71
74
  };
72
- this.closeModal = (e = null) => {
75
+ this.closeModal = (e) => {
73
76
  var _a;
74
77
  if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.localName) !== 'mds-modal') {
75
78
  return;
@@ -80,23 +83,20 @@ const MdsModal = class {
80
83
  }
81
84
  };
82
85
  this.stateOpened = undefined;
83
- this.opened = undefined;
84
- this.position = null;
86
+ this.opened = false;
87
+ this.position = 'center';
85
88
  }
86
89
  componentWillLoad() {
90
+ var _a;
87
91
  this.bottom = this.host.querySelector('[slot="bottom"]') !== null;
88
92
  this.top = this.host.querySelector('[slot="top"]') !== null;
89
93
  this.window = this.host.querySelector('[slot="window"]') !== null;
90
94
  this.stateOpened = this.opened;
91
- if (this.window && this.position === null) {
92
- this.position = 'center';
93
- }
94
- if (this.position === null) {
95
+ if (!this.window) {
95
96
  this.position = 'right';
96
97
  }
97
98
  if (this.window) {
98
- const modal = this.host.querySelector('[slot="window"]');
99
- modal.setAttribute('role', 'modal');
99
+ (_a = this.host.querySelector('[slot="window"]')) === null || _a === void 0 ? void 0 : _a.setAttribute('role', 'modal');
100
100
  }
101
101
  }
102
102
  componentWillRender() {
@@ -117,7 +117,7 @@ const MdsModal = class {
117
117
  }
118
118
  positionChange(_newValue, oldValue) {
119
119
  window.clearTimeout(this.animationDeelay);
120
- this.host.classList.remove(this.animationName(null, oldValue));
120
+ this.host.classList.remove(this.animationName('', oldValue));
121
121
  this.host.classList.remove(this.animationName('intro', oldValue));
122
122
  this.host.classList.remove(this.animationName('outro', oldValue));
123
123
  }
@@ -133,12 +133,10 @@ const MdsModal = class {
133
133
  }
134
134
  render() {
135
135
  return (index.h(index.Host, { "aria-modal": clsx(this.opened ? 'true' : 'false'), class: clsx(this.stateOpened && this.animationName('opened')), onClick: (e) => { this.closeModal(e); } }, this.window
136
- ?
137
- index.h("slot", { name: "window" })
138
- :
139
- index.h("div", { class: clsx('window', (this.top || this.bottom) && `window-${this.top ? '-top' : ''}${this.bottom ? '-bottom' : ''}`), role: "dialog" }, this.top &&
140
- index.h("slot", { name: "top" }), index.h("slot", null), this.bottom &&
141
- index.h("slot", { name: "bottom" })), !this.window && index.h("i", { innerHTML: miBaselineClose, tabindex: "0", onClick: (e) => { this.closeModal(e); }, class: "svg close focusable-light" })));
136
+ ? index.h("slot", { name: "window" })
137
+ : index.h("div", { class: clsx('window', (this.top || this.bottom) && `window-${this.top ? '-top' : ''}${this.bottom ? '-bottom' : ''}`), role: "dialog" }, this.top &&
138
+ index.h("slot", { name: "top" }), index.h("slot", null), this.bottom &&
139
+ index.h("slot", { name: "bottom" })), !this.window && index.h("i", { innerHTML: miBaselineClose, tabindex: "0", onClick: (e) => { this.closeModal(e); }, class: "svg close focusable-light" })));
142
140
  }
143
141
  get host() { return index.getElement(this); }
144
142
  static get watchers() { return {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f216518d.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-modal.cjs.js', document.baseURI).href));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.22.2",
7
+ "version": "2.22.3",
8
8
  "typescriptVersion": "4.9.4"
9
9
  },
10
10
  "collections": [],
@@ -6,11 +6,13 @@ const hash = (s) => {
6
6
  return h.toString();
7
7
  };
8
8
  const unslugName = (name) => {
9
- return name.split('/').slice(-1).pop().replace(/-/g, ' ');
9
+ var _a, _b, _c;
10
+ return (_c = (_b = (_a = name.split('/')) === null || _a === void 0 ? void 0 : _a.slice(-1).pop()) === null || _b === void 0 ? void 0 : _b.replace(/-/g, ' ')) !== null && _c !== void 0 ? _c : name;
10
11
  };
11
12
  const setAttributeIfEmpty = (element, attribute, value) => {
13
+ var _a;
12
14
  if (element.hasAttribute(attribute)) {
13
- return element.getAttribute(attribute);
15
+ return (_a = element.getAttribute(attribute)) !== null && _a !== void 0 ? _a : '';
14
16
  }
15
17
  element.setAttribute(attribute, value);
16
18
  return value;
@@ -31,7 +31,7 @@ export class KeyboardManager {
31
31
  }
32
32
  };
33
33
  this.detachEscapeBehavior = () => {
34
- this.escapeCallback = null;
34
+ this.escapeCallback = () => { return; };
35
35
  if (typeof window !== undefined) {
36
36
  window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
37
37
  }
@@ -1,4 +1,7 @@
1
+ /* stylelint-disable */
1
2
  @tailwind components;
3
+ @tailwind utilities;
4
+
2
5
 
3
6
  .focus-off,
4
7
  .focusable,
@@ -14,6 +17,7 @@
14
17
  transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;
15
18
  }
16
19
 
20
+
17
21
  .focus-on,
18
22
  .focusable-light:focus-visible,
19
23
  .focusable:focus-visible {
@@ -21,16 +25,19 @@
21
25
  --magma-outline-blur: var(--magma-outline-focus);
22
26
  }
23
27
 
28
+
24
29
  .focus-light-on,
25
30
  .focusable-light:focus-visible {
26
31
  --magma-outline-blur: 2px solid rgb(var(--tone-neutral));
27
32
  }
28
33
 
34
+
29
35
  .svg{
30
36
 
31
37
  display: flex;
32
38
  }
33
39
 
40
+
34
41
  .svg svg{
35
42
 
36
43
  aspect-ratio: 1 / 1;
@@ -40,19 +47,6 @@
40
47
  width: 100%;
41
48
  }
42
49
 
43
- .animate-left,
44
- .animate-right{
45
-
46
- opacity: 0;
47
-
48
- transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
49
-
50
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
51
-
52
- transition-duration: 500ms;
53
-
54
- transition-timing-function: cubic-bezier(1, 0, 0, 1);
55
- }
56
50
 
57
51
  .animate-right-intro,
58
52
  .animate-right-outro {
@@ -138,14 +132,14 @@
138
132
 
139
133
  background-color: transparent;
140
134
  }
141
- .p-8{
142
-
143
- padding: 2rem;
144
- }
145
135
  .p-4{
146
136
 
147
137
  padding: 1rem;
148
138
  }
139
+ .p-8{
140
+
141
+ padding: 2rem;
142
+ }
149
143
  .text-tone-neutral-02{
150
144
 
151
145
  --tw-text-opacity: 1;
@@ -186,10 +180,7 @@
186
180
  --mds-modal-z-index: var(--magma-modal-z-index);
187
181
  pointer-events: none;
188
182
  position: fixed;
189
- top: 0px;
190
- right: 0px;
191
- bottom: 0px;
192
- left: 0px;
183
+ inset: 0px;
193
184
  display: flex;
194
185
  align-items: center;
195
186
  justify-content: center;
@@ -198,28 +189,28 @@
198
189
 
199
190
  background-color: rgba(var(--mds-modal-overlay-color) / 0);
200
191
  perspective: 600px;
201
- z-index: var(--z-index, 1000);
192
+ z-index: var(--mds-modal-z-index, 1000);
202
193
  }
203
194
 
204
- :host ( [position=top] ){
195
+ :host( [position=top] ){
205
196
 
206
197
  align-items: flex-start;
207
198
 
208
199
  justify-content: center;
209
200
  }
210
201
 
211
- :host ( [position=bottom] ){
202
+ :host( [position=bottom] ){
212
203
 
213
204
  align-items: flex-end;
214
205
 
215
206
  justify-content: center;
216
207
  }
217
208
 
218
- :host ( .animate-bottom-opened ),
219
- :host ( .animate-center-opened ),
220
- :host ( .animate-left-opened ),
221
- :host ( .animate-right-opened ),
222
- :host ( .animate-top-opened ){
209
+ :host( .to-bottom-opened ),
210
+ :host( .to-center-opened ),
211
+ :host( .to-left-opened ),
212
+ :host( .to-right-opened ),
213
+ :host( .to-top-opened ){
223
214
 
224
215
  pointer-events: auto;
225
216
 
@@ -287,7 +278,7 @@
287
278
  grid-template-rows: auto 1fr auto;
288
279
  }
289
280
 
290
- :host ( .animate-bottom ){
281
+ :host( .to-bottom ){
291
282
 
292
283
  justify-content: center;
293
284
 
@@ -296,14 +287,15 @@
296
287
 
297
288
  @media (max-width: 767px){
298
289
 
299
- :host ( .animate-bottom ){
290
+
291
+ :host( .to-bottom ){
300
292
 
301
293
  padding: 1rem;
302
294
  }
303
295
  }
304
296
 
305
- :host ( .animate-bottom ) .window,
306
- :host ( .animate-bottom ) > ::slotted ( [slot=window] ){
297
+ :host( .to-bottom ) .window,
298
+ :host( .to-bottom ) > ::slotted( [slot="window"] ){
307
299
 
308
300
  opacity: 0;
309
301
 
@@ -316,27 +308,27 @@
316
308
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
317
309
  }
318
310
 
319
- :host ( .animate-bottom-intro ) .window,
320
- :host ( .animate-bottom-intro ) > ::slotted ( [slot=window] ) {
311
+ :host( .to-bottom-intro ) .window,
312
+ :host( .to-bottom-intro ) > ::slotted( [slot="window"] ) {
321
313
  transform: rotateX(-22deg) scale(0.5) translateY(40%);
322
314
  }
323
315
 
324
- :host ( .animate-bottom-opened.animate-bottom-outro ) .window,
325
- :host ( .animate-bottom-opened.animate-bottom-outro ) > ::slotted ( [slot=window] ),
326
- :host ( .animate-bottom-opened ) .window,
327
- :host ( .animate-bottom-opened ) > ::slotted ( [slot=window] ){
316
+ :host( .to-bottom-opened.to-bottom-outro ) .window,
317
+ :host( .to-bottom-opened.to-bottom-outro ) > ::slotted( [slot="window"] ),
318
+ :host( .to-bottom-opened ) .window,
319
+ :host( .to-bottom-opened ) > ::slotted( [slot="window"] ){
328
320
 
329
321
  opacity: 1;
330
322
 
331
323
  transform: rotateX(0) scale(1) translateY(0);
332
324
  }
333
325
 
334
- :host ( .animate-bottom-outro ) .window,
335
- :host ( .animate-bottom-outro ) > ::slotted ( [slot=window] ) {
326
+ :host( .to-bottom-outro ) .window,
327
+ :host( .to-bottom-outro ) > ::slotted( [slot="window"] ) {
336
328
  transform: rotateX(-22deg) scale(0.5) translateY(-40%);
337
329
  }
338
330
 
339
- :host ( .animate-center ){
331
+ :host( .to-center ){
340
332
 
341
333
  justify-content: center;
342
334
 
@@ -345,14 +337,15 @@
345
337
 
346
338
  @media (max-width: 767px){
347
339
 
348
- :host ( .animate-center ){
340
+
341
+ :host( .to-center ){
349
342
 
350
343
  padding: 1rem;
351
344
  }
352
345
  }
353
346
 
354
- :host ( .animate-center ) .window,
355
- :host ( .animate-center ) > ::slotted ( [slot=window] ){
347
+ :host( .to-center ) .window,
348
+ :host( .to-center ) > ::slotted( [slot="window"] ){
356
349
 
357
350
  opacity: 0;
358
351
 
@@ -365,33 +358,33 @@
365
358
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
366
359
  }
367
360
 
368
- :host ( .animate-center-intro ) .window,
369
- :host ( .animate-center-intro ) > ::slotted ( [slot=window] ) {
361
+ :host( .to-center-intro ) .window,
362
+ :host( .to-center-intro ) > ::slotted( [slot="window"] ) {
370
363
  transform: rotateX(-22deg) scale(0.5) translateY(40%);
371
364
  }
372
365
 
373
- :host ( .animate-center-opened.animate-center-outro ) .window,
374
- :host ( .animate-center-opened.animate-center-outro ) > ::slotted ( [slot=window] ),
375
- :host ( .animate-center-opened ) .window,
376
- :host ( .animate-center-opened ) > ::slotted ( [slot=window] ){
366
+ :host( .to-center-opened.to-center-outro ) .window,
367
+ :host( .to-center-opened.to-center-outro ) > ::slotted( [slot="window"] ),
368
+ :host( .to-center-opened ) .window,
369
+ :host( .to-center-opened ) > ::slotted( [slot="window"] ){
377
370
 
378
371
  opacity: 1;
379
372
 
380
373
  transform: rotateX(0) scale(1) translateY(0);
381
374
  }
382
375
 
383
- :host ( .animate-center-outro ) .window,
384
- :host ( .animate-center-outro ) > ::slotted ( [slot=window] ) {
376
+ :host( .to-center-outro ) .window,
377
+ :host( .to-center-outro ) > ::slotted( [slot="window"] ) {
385
378
  transform: rotateX(-22deg) scale(0.5) translateY(-40%);
386
379
  }
387
380
 
388
- :host ( .animate-left ){
381
+ :host( .to-left ){
389
382
 
390
383
  justify-content: flex-start;
391
384
  }
392
385
 
393
- :host ( .animate-left ) .window,
394
- :host ( .animate-left ) > ::slotted ( [slot=window] ){
386
+ :host( .to-left ) .window,
387
+ :host( .to-left ) > ::slotted( [slot="window"] ){
395
388
 
396
389
  opacity: 0;
397
390
 
@@ -404,52 +397,52 @@
404
397
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
405
398
  }
406
399
 
407
- :host ( .animate-left-intro ) .window,
408
- :host ( .animate-left-intro ) > ::slotted ( [slot=window] ) {
400
+ :host( .to-left-intro ) .window,
401
+ :host( .to-left-intro ) > ::slotted( [slot="window"] ) {
409
402
  transform: translateX(calc(-100% - 50px));
410
403
  }
411
404
 
412
- :host ( .animate-left-opened.animate-left-outro ) .window,
413
- :host ( .animate-left-opened.animate-left-outro ) > ::slotted ( [slot=window] ),
414
- :host ( .animate-left-opened ) .window,
415
- :host ( .animate-left-opened ) > ::slotted ( [slot=window] ){
405
+ :host( .to-left-opened.to-left-outro ) .window,
406
+ :host( .to-left-opened.to-left-outro ) > ::slotted( [slot="window"] ),
407
+ :host( .to-left-opened ) .window,
408
+ :host( .to-left-opened ) > ::slotted( [slot="window"] ){
416
409
 
417
410
  opacity: 1;
418
411
 
419
412
  transform: translateX(0);
420
413
  }
421
414
 
422
- :host ( .animate-left-opened ) .close,
423
- :host ( .animate-left-opened.animate-left-outro ) .close{
415
+ :host( .to-left-opened ) .close,
416
+ :host( .to-left-opened.to-left-outro ) .close{
424
417
 
425
418
  opacity: 1;
426
419
 
427
420
  transform: translate(-24px, 24px) rotate(0);
428
421
  }
429
422
 
430
- :host ( .animate-left-outro ) .window,
431
- :host ( .animate-left-outro ) > ::slotted ( [slot=window] ) {
423
+ :host( .to-left-outro ) .window,
424
+ :host( .to-left-outro ) > ::slotted( [slot="window"] ) {
432
425
  transform: translateX(calc(-100% - 50px));
433
426
  }
434
427
 
435
- :host ( .animate-left-outro ) .close {
428
+ :host( .to-left-outro ) .close {
436
429
  transform: translate(24px, 24px) rotate(-90deg);
437
430
  }
438
431
 
439
- :host ( .animate-left ) .close{
432
+ :host( .to-left ) .close{
440
433
 
441
434
  right: 0px;
442
435
 
443
436
  transform: translate(36px, 24px) rotate(90deg);
444
437
  }
445
438
 
446
- :host ( .animate-right ){
439
+ :host( .to-right ){
447
440
 
448
441
  justify-content: flex-end;
449
442
  }
450
443
 
451
- :host ( .animate-right ) .window,
452
- :host ( .animate-right ) > ::slotted ( [slot=window] ){
444
+ :host( .to-right ) .window,
445
+ :host( .to-right ) > ::slotted([slot="window"]){
453
446
 
454
447
  opacity: 0;
455
448
 
@@ -462,46 +455,46 @@
462
455
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
463
456
  }
464
457
 
465
- :host ( .animate-right-intro ) .window,
466
- :host ( .animate-right-intro ) > ::slotted ( [slot=window] ) {
458
+ :host( .to-right-intro ) .window,
459
+ :host( .to-right-intro ) > ::slotted( [slot="window"] ) {
467
460
  transform: translateX(calc(100% + 50px));
468
461
  }
469
462
 
470
- :host ( .animate-right-opened.animate-right-outro ) .window,
471
- :host ( .animate-right-opened.animate-right-outro ) > ::slotted ( [slot=window] ),
472
- :host ( .animate-right-opened ) .window,
473
- :host ( .animate-right-opened ) > ::slotted ( [slot=window] ){
463
+ :host( .to-right-opened.to-right-outro ) .window,
464
+ :host( .to-right-opened.to-right-outro ) > ::slotted( [slot="window"] ),
465
+ :host( .to-right-opened ) .window,
466
+ :host( .to-right-opened ) > ::slotted( [slot="window"] ){
474
467
 
475
468
  opacity: 1;
476
469
 
477
470
  transform: translateX(0);
478
471
  }
479
472
 
480
- :host ( .animate-right-opened ) .close,
481
- :host ( .animate-right-opened.animate-right-outro ) .close{
473
+ :host( .to-right-opened ) .close,
474
+ :host( .to-right-opened.to-right-outro ) .close{
482
475
 
483
476
  opacity: 1;
484
477
 
485
478
  transform: translate(24px, 24px) rotate(0);
486
479
  }
487
480
 
488
- :host ( .animate-right-outro ) .window,
489
- :host ( .animate-right-outro ) > ::slotted ( [slot=window] ) {
481
+ :host( .to-right-outro ) .window,
482
+ :host( .to-right-outro ) > ::slotted( [slot="window"] ) {
490
483
  transform: translateX(calc(100% + 50px));
491
484
  }
492
485
 
493
- :host ( .animate-right-outro ) .close {
486
+ :host( .to-right-outro ) .close {
494
487
  transform: translate(-24px, 24px) rotate(90deg);
495
488
  }
496
489
 
497
- :host ( .animate-right ) .close{
490
+ :host( .to-right ) .close{
498
491
 
499
492
  left: 0px;
500
493
 
501
494
  transform: translate(-36px, 24px) rotate(-90deg);
502
495
  }
503
496
 
504
- :host ( .animate-top ){
497
+ :host( .to-top ){
505
498
 
506
499
  justify-content: center;
507
500
 
@@ -510,14 +503,15 @@
510
503
 
511
504
  @media (max-width: 767px){
512
505
 
513
- :host ( .animate-top ){
506
+
507
+ :host( .to-top ){
514
508
 
515
509
  padding: 1rem;
516
510
  }
517
511
  }
518
512
 
519
- :host ( .animate-top ) .window,
520
- :host ( .animate-top ) > ::slotted ( [slot=window] ){
513
+ :host( .to-top ) .window,
514
+ :host( .to-top ) > ::slotted( [slot="window"] ){
521
515
 
522
516
  opacity: 0;
523
517
 
@@ -530,31 +524,33 @@
530
524
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
531
525
  }
532
526
 
533
- :host ( .animate-top-intro ) .window,
534
- :host ( .animate-top-intro ) > ::slotted ( [slot=window] ) {
527
+ :host( .to-top-intro ) .window,
528
+ :host( .to-top-intro ) > ::slotted( [slot="window"] ) {
535
529
  transform: rotateX(-22deg) scale(0.5) translateY(40%);
536
530
  }
537
531
 
538
- :host ( .animate-top-opened.animate-top-outro ) .window,
539
- :host ( .animate-top-opened.animate-top-outro ) > ::slotted ( [slot=window] ),
540
- :host ( .animate-top-opened ) .window,
541
- :host ( .animate-top-opened ) > ::slotted ( [slot=window] ){
532
+ :host( .to-top-opened.to-top-outro ) .window,
533
+ :host( .to-top-opened.to-top-outro ) > ::slotted( [slot="window"] ),
534
+ :host( .to-top-opened ) .window,
535
+ :host( .to-top-opened ) > ::slotted( [slot="window"] ){
542
536
 
543
537
  opacity: 1;
544
538
 
545
539
  transform: rotateX(0) scale(1) translateY(0);
546
540
  }
547
541
 
548
- :host ( .animate-top-outro ) .window,
549
- :host ( .animate-top-outro ) > ::slotted ( [slot=window] ) {
542
+ :host( .to-top-outro ) .window,
543
+ :host( .to-top-outro ) > ::slotted( [slot="window"] ) {
550
544
  transform: rotateX(-22deg) scale(0.5) translateY(-40%);
551
545
  }
552
546
 
553
547
  @media (max-width: 767px){
554
548
 
549
+
555
550
  .mobile\:w-12{
556
551
 
557
552
  width: 3rem;
558
553
  }
559
554
  }
560
555
 
556
+