@maggioli-design-system/mds-modal 5.3.0 → 5.5.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.
- package/dist/cjs/{index-6f236cfa.js → index-a263ff04.js} +139 -101
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-modal.cjs.entry.js +35 -4
- package/dist/cjs/mds-modal.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/floating-controller.js +3 -3
- package/dist/collection/common/slot.js +10 -1
- package/dist/collection/common/string.js +30 -0
- package/dist/collection/components/mds-modal/mds-modal.css +171 -73
- package/dist/collection/components/mds-modal/mds-modal.js +59 -2
- package/dist/collection/components/mds-modal/meta/dictionary.js +5 -1
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +20 -2
- package/dist/collection/dictionary/keyboard.js +84 -0
- package/dist/collection/type/keyboard.js +1 -0
- package/dist/components/mds-modal.js +36 -4
- package/dist/documentation.json +47 -2
- package/dist/esm/{index-f8d2dee4.js → index-efd0657a.js} +139 -101
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mds-modal.entry.js +35 -4
- package/dist/esm/mds-modal.js +4 -4
- package/dist/esm-es5/index-efd0657a.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-modal.js +1 -1
- package/dist/mds-modal/mds-modal.esm.js +1 -1
- package/dist/mds-modal/mds-modal.js +1 -1
- package/dist/mds-modal/p-26971abb.js +2 -0
- package/dist/mds-modal/p-52bb21e4.system.entry.js +1 -0
- package/dist/mds-modal/p-785b3b47.system.js +2 -0
- package/dist/mds-modal/p-96b782c7.system.js +1 -0
- package/dist/mds-modal/p-df986a83.entry.js +1 -0
- package/dist/stats.json +100 -33
- package/dist/types/common/slot.d.ts +2 -1
- package/dist/types/common/string.d.ts +4 -0
- package/dist/types/components/mds-modal/mds-modal.d.ts +8 -1
- package/dist/types/components/mds-modal/meta/dictionary.d.ts +2 -1
- package/dist/types/components/mds-modal/meta/types.d.ts +1 -0
- package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +11 -0
- package/dist/types/components.d.ts +10 -2
- package/dist/types/dictionary/keyboard.d.ts +2 -0
- package/dist/types/type/keyboard.d.ts +12 -0
- package/documentation.json +62 -2
- package/package.json +4 -4
- package/readme.md +18 -16
- package/src/common/floating-controller.ts +6 -6
- package/src/common/slot.ts +11 -0
- package/src/common/string.ts +42 -0
- package/src/components/mds-modal/css/mds-modal-animate-bottom-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-bottom-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-bottom.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-center.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate.css +4 -4
- package/src/components/mds-modal/css/mds-modal-pref-animation.css +14 -23
- package/src/components/mds-modal/css/mds-modal-pref-contrast.css +5 -13
- package/src/components/mds-modal/css/mds-modal-pref-theme.css +6 -15
- package/src/components/mds-modal/mds-modal.css +9 -6
- package/src/components/mds-modal/mds-modal.tsx +36 -1
- package/src/components/mds-modal/meta/dictionary.ts +6 -0
- package/src/components/mds-modal/meta/types.ts +4 -0
- package/src/components/mds-modal/readme.md +18 -16
- package/src/components/mds-modal/test/mds-modal.stories.tsx +57 -3
- package/src/components.d.ts +10 -2
- package/src/dictionary/keyboard.ts +87 -0
- package/src/fixtures/icons.json +18 -1
- package/src/meta/keyboard/keys.json +83 -0
- package/src/tailwind/components.css +11 -46
- package/src/tailwind/fouc.css +118 -0
- package/src/tailwind/index.css +4 -0
- package/src/type/keyboard.ts +93 -0
- package/www/build/mds-modal.esm.js +1 -1
- package/www/build/mds-modal.js +1 -1
- package/www/build/p-26971abb.js +2 -0
- package/www/build/p-52bb21e4.system.entry.js +1 -0
- package/www/build/p-785b3b47.system.js +2 -0
- package/www/build/p-96b782c7.system.js +1 -0
- package/www/build/p-df986a83.entry.js +1 -0
- package/dist/esm-es5/index-f8d2dee4.js +0 -1
- package/dist/mds-modal/p-413a00c5.entry.js +0 -1
- package/dist/mds-modal/p-96958acc.system.entry.js +0 -1
- package/dist/mds-modal/p-bc1fa4e4.system.js +0 -2
- package/dist/mds-modal/p-c6899cb0.system.js +0 -1
- package/dist/mds-modal/p-ee90f86a.js +0 -2
- package/www/build/p-413a00c5.entry.js +0 -1
- package/www/build/p-96958acc.system.entry.js +0 -1
- package/www/build/p-bc1fa4e4.system.js +0 -2
- package/www/build/p-c6899cb0.system.js +0 -1
- package/www/build/p-ee90f86a.js +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a263ff04.js');
|
|
6
6
|
|
|
7
7
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
8
8
|
|
|
@@ -16,7 +16,7 @@ const cssDurationToMilliseconds = (duration, defaultValue = 1000) => {
|
|
|
16
16
|
return defaultValue;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
const mdsModalCss = "@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n @keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n /* included for focus effect */\n@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-modal-close-icon-color: Set the color of the close icon button to the top left.\n * @prop --mds-modal-overlay-color: Set the overlay color of the background when the component is opened, this property can be inherited from `globals.css` in `styles^8.0.0`.\n * @prop --mds-modal-overlay-opacity: Set the overlay color opacity of the background when the component is opened, this property can be inherited from `globals.css` in `styles^8.0.0`.\n * @prop --mds-modal-window-background: Set the background color of the window\n * @prop --mds-modal-window-overflow: Set the overflow of the window\n * @prop --mds-modal-window-radius: Set the border radius of the window\n * @prop --mds-modal-window-distance: Set the distance between the modal window and the screen bounds\n * @prop --mds-modal-window-shadow: Set the box shadow of the window\n * @prop --mds-modal-z-index: Set the z-index of the window when the component is opened\n */\n\n:host {\n\n --mds-modal-overlay-color: var(--magma-overlay-color, 0 0 0);\n --mds-modal-overlay-opacity: var(--magma-overlay-opacity, 0.5);\n --mds-modal-transition-duration: 500ms;\n --mds-modal-transition-intro-ease: cubic-bezier(0.19, 1, 0.22, 1);\n --mds-modal-transition-outro-ease: cubic-bezier(0.86, 0, 0.07, 1);\n --mds-modal-window-background: rgb(var(--tone-neutral));\n --mds-modal-window-overflow: auto;\n --mds-modal-window-radius: 0;\n --mds-modal-window-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n --mds-modal-window-distance: 0;\n --mds-modal-z-index: var(--magma-modal-z-index);\n -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);\n transition-timing-function: cubic-bezier(1, 0, 0, 1);\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: rgba(var(--mds-modal-overlay-color) / 0);\n display: -ms-flexbox;\n display: flex;\n fill: rgb(var(--tone-neutral));\n inset: 0;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-perspective: 600px;\n perspective: 600px;\n pointer-events: none;\n position: fixed;\n -webkit-transition-duration: var(--mds-modal-transition-duration);\n transition-duration: var(--mds-modal-transition-duration);\n -webkit-transition-property: background-color;\n transition-property: background-color;\n z-index: var(--mds-modal-z-index, 1000);\n}\n\n:host( [position=\"top\"] ) {\n -ms-flex-align: start;\n align-items: flex-start;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n:host( [position=\"bottom\"] ) {\n -ms-flex-align: end;\n align-items: flex-end;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.action-close {\n border-radius: 100px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n -webkit-transition-duration: var(--mds-modal-transition-duration);\n transition-duration: var(--mds-modal-transition-duration);\n -webkit-transition-property: bottom, opacity, top, -webkit-transform;\n transition-property: bottom, opacity, top, -webkit-transform;\n transition-property: bottom, opacity, top, transform;\n transition-property: bottom, opacity, top, transform, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);\n transition-timing-function: cubic-bezier(1, 0, 0, 1);\n}\n\n:host([opened]:not([opened=\"false\"])) .action-close {\n opacity: 1;\n pointer-events: auto;\n}\n\n.action-close::part(icon) {\n height: 2.25rem;\n width: 2.25rem;\n}\n\n.window {\n gap: 0rem;\n\n background-color: var(--mds-modal-window-background);\n border-radius: var(--mds-modal-window-radius);\n -webkit-box-shadow: var(--mds-modal-window-shadow);\n box-shadow: var(--mds-modal-window-shadow);\n display: grid;\n grid-template-rows: 1fr;\n margin: var(--mds-modal-window-distance);\n overflow: var(--mds-modal-window-overflow);\n}\n\n.window--top {\n grid-template-rows: auto 1fr;\n}\n\n.window--bottom {\n grid-template-rows: 1fr auto;\n}\n\n.window--top-bottom {\n grid-template-rows: auto 1fr auto;\n}\n\n:host .window {\n -webkit-transition-delay: 0s, calc(var(--mds-modal-transition-duration) / 2);\n transition-delay: 0s, calc(var(--mds-modal-transition-duration) / 2);\n}\n\n\n:host([opened]:not([opened=\"false\"]) ) {\n background-color: rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));\n pointer-events: auto;\n}\n\n:host .window,\n:host > ::slotted( [slot=\"window\"] ) {\n opacity: 0;\n -webkit-transition-duration: var(--mds-modal-transition-duration);\n transition-duration: var(--mds-modal-transition-duration);\n -webkit-transition-property: opacity, -webkit-transform;\n transition-property: opacity, -webkit-transform;\n transition-property: transform, opacity;\n transition-property: transform, opacity, -webkit-transform;\n -webkit-transition-timing-function: var(--mds-modal-transition-outro-ease);\n transition-timing-function: var(--mds-modal-transition-outro-ease);\n}\n\n:host([opened]:not([opened=\"false\"]) ) .window,\n:host([opened]:not([opened=\"false\"]) ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n -webkit-transform: rotate(0) scale(1) translateY(0);\n transform: rotate(0) scale(1) translateY(0);\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-timing-function: var(--mds-modal-transition-intro-ease);\n transition-timing-function: var(--mds-modal-transition-intro-ease);\n}\n\n:host([position=\"bottom-left\"]) {\n -ms-flex-align: end;\n align-items: flex-end;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"bottom-left\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"bottom-left\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);\n transform: rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);\n}\n\n:host([position=\"bottom-left\"][opened=\"false\"]) .window,\n:host([position=\"bottom-left\"]:not([opened])) .window {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n\n:host([position=\"bottom-right\"]) {\n -ms-flex-align: end;\n align-items: flex-end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"bottom-right\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"bottom-right\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);\n transform: rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);\n}\n\n:host([position=\"bottom-right\"][opened=\"false\"]) .window,\n:host([position=\"bottom-right\"]:not([opened])) .window {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n\n:host([position=\"bottom\"]) {\n -ms-flex-align: end;\n align-items: flex-end;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"bottom\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"bottom\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(22deg) rotateY(0) scale(0.5) translate(0, 80%);\n transform: rotateX(22deg) rotateY(0) scale(0.5) translate(0, 80%);\n}\n\n:host([position=\"bottom\"][opened=\"false\"]) .window,\n:host([position=\"bottom\"]:not([opened])) .window {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n\n:host([position=\"center\"]) {\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n:host([position=\"center\"]) .window {\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n}\n\n:host([position=\"center\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"center\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(0) rotateY(22deg) scale(0.5) translate(0, 40%);\n transform: rotateX(0) rotateY(22deg) scale(0.5) translate(0, 40%);\n}\n\n:host([position=\"center\"][opened=\"false\"]) .window,\n:host([position=\"center\"]:not([opened])) .window {\n -webkit-transform: rotateX(0) rotateY(0) scale(0.5) translate(0, 0);\n transform: rotateX(0) rotateY(0) scale(0.5) translate(0, 0);\n}\n\n:host([position=\"left\"]) {\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n\n:host([position=\"left\"]) .window {\n height: 100%;\n max-height: calc(100dvh - calc(var(--mds-modal-window-distance) * 2));\n max-width: calc(100vw - 80px);\n}\n\n:host([position=\"left\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"left\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(0) rotateY(22deg) rotateZ(0) scale(0.5) translate(-100%, 0%);\n transform: rotateX(0) rotateY(22deg) rotateZ(0) scale(0.5) translate(-100%, 0%);\n}\n\n:host([position=\"left\"][opened=\"false\"]) .window,\n:host([position=\"left\"]:not([opened])) .window {\n -webkit-transform: translate(-100%, 0%);\n transform: translate(-100%, 0%);\n}\n\n:host([position=\"left\"]) .action-close {\n right: 0.75rem;\n top: 0.75rem;\n -webkit-transform: translateX(-120%) rotate(-45deg);\n transform: translateX(-120%) rotate(-45deg);\n}\n\n:host([position=\"left\"][opened]:not([opened=\"false\"])) .action-close {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host([position=\"right\"]) {\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n\n:host([position=\"right\"]) .window {\n height: 100%;\n max-height: calc(100dvh - calc(var(--mds-modal-window-distance) * 2));\n max-width: calc(100vw - 80px);\n}\n\n:host([position=\"right\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"right\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(0) rotateY(-22deg) rotateZ(0) scale(0.5) translate(100%, 0%);\n transform: rotateX(0) rotateY(-22deg) rotateZ(0) scale(0.5) translate(100%, 0%);\n}\n\n:host([position=\"right\"][opened=\"false\"]) .window,\n:host([position=\"right\"]:not([opened])) .window {\n -webkit-transform: translate(100%, 0%);\n transform: translate(100%, 0%);\n}\n\n:host([position=\"right\"]) .action-close {\n left: 0.75rem;\n top: 0.75rem;\n -webkit-transform: translateX(120%) rotate(45deg);\n transform: translateX(120%) rotate(45deg);\n}\n\n:host([position=\"right\"][opened]:not([opened=\"false\"])) .action-close {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host([position=\"top-left\"]) {\n -ms-flex-align: start;\n align-items: flex-start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"top-left\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"top-left\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);\n transform: rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);\n}\n\n:host([position=\"top-left\"][opened=\"false\"]) .window,\n:host([position=\"top-left\"]:not([opened])) .window {\n -webkit-transform: translate(0, -100%);\n transform: translate(0, -100%);\n}\n\n:host([position=\"top-right\"]) {\n -ms-flex-align: start;\n align-items: flex-start;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"top-right\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"top-right\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);\n transform: rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);\n}\n\n:host([position=\"top-right\"][opened=\"false\"]) .window,\n:host([position=\"top-right\"]:not([opened])) .window {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n\n:host([position=\"top\"]) {\n -ms-flex-align: start;\n align-items: flex-start;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"top\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"top\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) rotateY(0) scale(0.5) translate(0, -80%);\n transform: rotateX(-22deg) rotateY(0) scale(0.5) translate(0, -80%);\n}\n\n:host([position=\"top\"][opened=\"false\"]) .window,\n:host([position=\"top\"]:not([opened])) .window {\n -webkit-transform: translate(0, -100%);\n transform: translate(0, -100%);\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .action-close,\n .window {\n -webkit-transition-duration: 0s !important;\n transition-duration: 0s !important;\n }\n\n :host {\n\n --mds-modal-transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .action-close,\n .window {\n -webkit-transition-duration: 0s !important;\n transition-duration: 0s !important;\n }\n\n :host {\n\n --mds-modal-transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-modal-window-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25);\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-modal-window-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25);\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-modal-window-background: rgb(var(--tone-neutral-09));\n --mds-modal-window-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-modal-window-background: rgb(var(--tone-neutral-09));\n --mds-modal-window-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n }\n }\n}\n\n\n";
|
|
19
|
+
const mdsModalCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-modal-overlay-color:var(--magma-overlay-color, 0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity, 0.5);--mds-modal-transition-duration:500ms;--mds-modal-transition-intro-ease:cubic-bezier(0.19, 1, 0.22, 1);--mds-modal-transition-outro-ease:cubic-bezier(0.86, 0, 0.07, 1);--mds-modal-window-background:rgb(var(--tone-neutral));--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-window-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--mds-modal-window-distance:0;--mds-modal-custom-window-distance:1.5rem;--mds-modal-z-index:var(--magma-modal-z-index);-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;-webkit-transition-duration:var(--mds-modal-transition-duration);transition-duration:var(--mds-modal-transition-duration);-webkit-transition-property:background-color;transition-property:background-color;z-index:var(--mds-modal-z-index, 1000)}:host ::slotted([slot=\"window\"]){margin:var(--mds-modal-custom-window-distance)}: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}.action-close{border-radius:100px;opacity:0;pointer-events:none;position:absolute;-webkit-transition-duration:var(--mds-modal-transition-duration);transition-duration:var(--mds-modal-transition-duration);-webkit-transition-property:bottom, opacity, top, -webkit-transform;transition-property:bottom, opacity, top, -webkit-transform;transition-property:bottom, opacity, top, transform;transition-property:bottom, opacity, top, transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host([opened]:not([opened=\"false\"])) .action-close{opacity:1;pointer-events:auto}.action-close::part(icon){height:2.25rem;width:2.25rem}.window{gap:0rem;background-color:var(--mds-modal-window-background);border-radius:var(--mds-modal-window-radius);-webkit-box-shadow:var(--mds-modal-window-shadow);box-shadow:var(--mds-modal-window-shadow);display:grid;grid-template-rows:1fr;margin:var(--mds-modal-window-distance);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 .window{-webkit-transition-delay:0s, calc(var(--mds-modal-transition-duration) / 2);transition-delay:0s, calc(var(--mds-modal-transition-duration) / 2)}:host([opened]:not([opened=\"false\"])){background-color:rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));pointer-events:auto}:host .window,:host>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-duration:var(--mds-modal-transition-duration);transition-duration:var(--mds-modal-transition-duration);-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;-webkit-transition-timing-function:var(--mds-modal-transition-outro-ease);transition-timing-function:var(--mds-modal-transition-outro-ease)}:host([opened]:not([opened=\"false\"])) .window,:host([opened]:not([opened=\"false\"]))>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotate(0) scale(1) translateY(0);transform:rotate(0) scale(1) translateY(0);-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-timing-function:var(--mds-modal-transition-intro-ease);transition-timing-function:var(--mds-modal-transition-intro-ease)}:host([position=\"bottom-left\"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"bottom-left\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"bottom-left\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%)}:host([position=\"bottom-left\"][opened=\"false\"]) .window,:host([position=\"bottom-left\"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position=\"bottom-right\"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"bottom-right\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"bottom-right\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%)}:host([position=\"bottom-right\"][opened=\"false\"]) .window,:host([position=\"bottom-right\"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position=\"bottom\"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"bottom\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"bottom\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(22deg) rotateY(0) scale(0.5) translate(0, 80%);transform:rotateX(22deg) rotateY(0) scale(0.5) translate(0, 80%)}:host([position=\"bottom\"][opened=\"false\"]) .window,:host([position=\"bottom\"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position=\"center\"]){-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host([position=\"center\"]) .window{-webkit-transition-delay:0s;transition-delay:0s}:host([position=\"center\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"center\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(0) rotateY(22deg) scale(0.5) translate(0, 40%);transform:rotateX(0) rotateY(22deg) scale(0.5) translate(0, 40%)}:host([position=\"center\"][opened=\"false\"]) .window,:host([position=\"center\"]:not([opened])) .window{-webkit-transform:rotateX(0) rotateY(0) scale(0.5) translate(0, 0);transform:rotateX(0) rotateY(0) scale(0.5) translate(0, 0)}:host([position=\"left\"]){-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}:host([position=\"left\"]) .window{height:100%;max-height:calc(100dvh - calc(var(--mds-modal-window-distance) * 2));max-width:calc(100vw - 80px)}:host([position=\"left\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"left\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(0) rotateY(22deg) rotateZ(0) scale(0.5) translate(-100%, 0%);transform:rotateX(0) rotateY(22deg) rotateZ(0) scale(0.5) translate(-100%, 0%)}:host([position=\"left\"][opened=\"false\"]) .window,:host([position=\"left\"]:not([opened])) .window{-webkit-transform:translate(-100%, 0%);transform:translate(-100%, 0%)}:host([position=\"left\"]) .action-close{right:0.75rem;top:0.75rem;-webkit-transform:translateX(-120%) rotate(-45deg);transform:translateX(-120%) rotate(-45deg)}:host([position=\"left\"][opened]:not([opened=\"false\"])) .action-close{-webkit-transform:translateX(0);transform:translateX(0)}:host([position=\"right\"]){-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}:host([position=\"right\"]) .window{height:100%;max-height:calc(100dvh - calc(var(--mds-modal-window-distance) * 2));max-width:calc(100vw - 80px)}:host([position=\"right\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"right\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(0) rotateY(-22deg) rotateZ(0) scale(0.5) translate(100%, 0%);transform:rotateX(0) rotateY(-22deg) rotateZ(0) scale(0.5) translate(100%, 0%)}:host([position=\"right\"][opened=\"false\"]) .window,:host([position=\"right\"]:not([opened])) .window{-webkit-transform:translate(100%, 0%);transform:translate(100%, 0%)}:host([position=\"right\"]) .action-close{left:0.75rem;top:0.75rem;-webkit-transform:translateX(120%) rotate(45deg);transform:translateX(120%) rotate(45deg)}:host([position=\"right\"][opened]:not([opened=\"false\"])) .action-close{-webkit-transform:translateX(0);transform:translateX(0)}:host([position=\"top-left\"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:start;justify-content:flex-start}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"top-left\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"top-left\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%)}:host([position=\"top-left\"][opened=\"false\"]) .window,:host([position=\"top-left\"]:not([opened])) .window{-webkit-transform:translate(0, -100%);transform:translate(0, -100%)}:host([position=\"top-right\"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:end;justify-content:flex-end}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"top-right\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"top-right\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%)}:host([position=\"top-right\"][opened=\"false\"]) .window,:host([position=\"top-right\"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position=\"top\"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"top\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"top\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) rotateY(0) scale(0.5) translate(0, -80%);transform:rotateX(-22deg) rotateY(0) scale(0.5) translate(0, -80%)}:host([position=\"top\"][opened=\"false\"]) .window,:host([position=\"top\"]:not([opened])) .window{-webkit-transform:translate(0, -100%);transform:translate(0, -100%)}:host-context(.pref-animation-reduce){--mds-modal-transition-duration:0s}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .action-close,:host-context(.pref-animation-reduce) .window{-webkit-transition-duration:0s !important;transition-duration:0s !important}@media (prefers-reduced-motion){:host-context(.pref-animation-system){--mds-modal-transition-duration:0s}:host-context(.pref-animation-system),:host-context(.pref-animation-system) .action-close,:host-context(.pref-animation-system) .window{-webkit-transition-duration:0s !important;transition-duration:0s !important}}:host-context(.pref-contrast-more){--mds-modal-window-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25)}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-modal-window-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25)}}:host-context(.pref-theme-dark){--mds-modal-window-background:rgb(var(--tone-neutral-09));--mds-modal-window-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-modal-window-background:rgb(var(--tone-neutral-09));--mds-modal-window-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
|
|
20
20
|
const MdsModalStyle0 = mdsModalCss;
|
|
21
21
|
|
|
22
22
|
const MdsModal = class {
|
|
@@ -39,6 +39,10 @@ const MdsModal = class {
|
|
|
39
39
|
* Specifies if the component is animating itself or not
|
|
40
40
|
*/
|
|
41
41
|
this.animating = 'none';
|
|
42
|
+
/**
|
|
43
|
+
* Specifies if the component prevents the body from scrolling when modal window is opened
|
|
44
|
+
*/
|
|
45
|
+
this.overflow = 'auto';
|
|
42
46
|
this.updateCSSCustomProps = () => {
|
|
43
47
|
var _a;
|
|
44
48
|
if (typeof window === 'undefined')
|
|
@@ -57,6 +61,24 @@ const MdsModal = class {
|
|
|
57
61
|
this.hideEvent.emit();
|
|
58
62
|
clearTimeout(this.animationDelayTimeout);
|
|
59
63
|
};
|
|
64
|
+
this.disableOverflow = () => {
|
|
65
|
+
if (document) {
|
|
66
|
+
if (document.body.style.overflow) {
|
|
67
|
+
this.bodyOverflow = document.body.style.overflow;
|
|
68
|
+
}
|
|
69
|
+
document.body.style.overflow = 'hidden';
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
this.enableOverflow = () => {
|
|
73
|
+
if (document) {
|
|
74
|
+
if (this.bodyOverflow) {
|
|
75
|
+
document.body.style.overflow = this.bodyOverflow;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
document.body.style.removeProperty('overflow');
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
60
82
|
this.animateOpenWindow = () => {
|
|
61
83
|
this.animating = 'intro';
|
|
62
84
|
clearTimeout(this.animationDelayTimeout);
|
|
@@ -83,6 +105,9 @@ const MdsModal = class {
|
|
|
83
105
|
this.bottom = this.host.querySelector('[slot="bottom"]') !== null;
|
|
84
106
|
this.top = this.host.querySelector('[slot="top"]') !== null;
|
|
85
107
|
this.window = this.host.querySelector('[slot="window"]') !== null;
|
|
108
|
+
if (this.overflow === 'auto' && this.opened) {
|
|
109
|
+
this.disableOverflow();
|
|
110
|
+
}
|
|
86
111
|
if (this.window) {
|
|
87
112
|
(_a = this.host.querySelector('[slot="window"]')) === null || _a === void 0 ? void 0 : _a.setAttribute('role', 'dialog');
|
|
88
113
|
}
|
|
@@ -95,9 +120,15 @@ const MdsModal = class {
|
|
|
95
120
|
}
|
|
96
121
|
handleOpenProp(newValue) {
|
|
97
122
|
if (newValue) {
|
|
123
|
+
if (this.overflow === 'auto') {
|
|
124
|
+
this.disableOverflow();
|
|
125
|
+
}
|
|
98
126
|
this.animateOpenWindow();
|
|
99
127
|
return;
|
|
100
128
|
}
|
|
129
|
+
if (this.overflow === 'auto') {
|
|
130
|
+
this.enableOverflow();
|
|
131
|
+
}
|
|
101
132
|
this.animateCloseWindow();
|
|
102
133
|
}
|
|
103
134
|
onModalCloseListener() {
|
|
@@ -107,11 +138,11 @@ const MdsModal = class {
|
|
|
107
138
|
this.opened = false;
|
|
108
139
|
}
|
|
109
140
|
render() {
|
|
110
|
-
return (index.h(index.Host, { key: '
|
|
141
|
+
return (index.h(index.Host, { key: '7c55fe13070b89c43efcc7168dbdb8d07b749b8a', "aria-modal": clsx(this.opened ? 'true' : 'false'), onClick: (e) => { this.closeModal(e); } }, this.window
|
|
111
142
|
? index.h("slot", { name: "window" })
|
|
112
143
|
: index.h("div", { class: clsx('window', (this.top || this.bottom) && `window-${this.top ? '-top' : ''}${this.bottom ? '-bottom' : ''}`), part: "window" }, this.top &&
|
|
113
144
|
index.h("slot", { name: "top" }), index.h("slot", null), this.bottom &&
|
|
114
|
-
index.h("slot", { name: "bottom" })), !this.window && index.h("mds-button", { key: '
|
|
145
|
+
index.h("slot", { name: "bottom" })), !this.window && index.h("mds-button", { key: 'e9b3c0037f8a0cf2fc3b284dc02b2f7b16bbe205', class: "action-close", icon: "mi/baseline/close", variant: "light", tone: "quiet", size: "xl", onClick: (e) => { this.closeModal(e); } })));
|
|
115
146
|
}
|
|
116
147
|
get host() { return index.getElement(this); }
|
|
117
148
|
static get watchers() { return {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a263ff04.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.27.2 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
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));
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["mds-modal.cjs",[[1,"mds-modal",{"opened":[1540],"position":[1537],"animating":[1537]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]],{"opened":["handleOpenProp"]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["mds-modal.cjs",[[1,"mds-modal",{"opened":[1540],"position":[1537],"animating":[1537],"overflow":[513]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]],{"opened":["handleOpenProp"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -143,12 +143,12 @@ export class FloatingController {
|
|
|
143
143
|
}
|
|
144
144
|
export class Backdrop {
|
|
145
145
|
constructor(backdropId) {
|
|
146
|
-
this.defaultBackdropId = '
|
|
146
|
+
this.defaultBackdropId = 'magma-backdrop';
|
|
147
147
|
this.backdropBackgroundVisible = 'rgba(var(--magma-backdrop-color, 0 0 0) / var(--magma-backdrop-opacity, 0.1))';
|
|
148
148
|
this.backdropBackgroundHidden = 'rgba(var(--magma-backdrop-color, 0 0 0) / 0)';
|
|
149
149
|
this.backdropId = backdropId !== null && backdropId !== void 0 ? backdropId : this.defaultBackdropId;
|
|
150
|
-
this.cssBackdropZIndex = `var(--${this.backdropId}-z-index)`;
|
|
151
|
-
this.cssBackdropDuration = `var(--${this.backdropId}-duration)`;
|
|
150
|
+
this.cssBackdropZIndex = `var(--${this.backdropId}-z-index, 4000)`;
|
|
151
|
+
this.cssBackdropDuration = `var(--${this.backdropId}-animation-duration, 300ms)`;
|
|
152
152
|
}
|
|
153
153
|
attachBackdrop() {
|
|
154
154
|
if (!this.backdropEl) {
|
|
@@ -16,4 +16,13 @@ const hasSlottedNodes = (el, name) => {
|
|
|
16
16
|
}
|
|
17
17
|
return false;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
const hasSlotted = (el, name) => {
|
|
20
|
+
var _a;
|
|
21
|
+
const query = name ? `slot[name="${name}"]` : 'slot:not([name])';
|
|
22
|
+
const slot = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(query);
|
|
23
|
+
if (slot) {
|
|
24
|
+
return slot.assignedNodes().length > 0 || slot.assignedElements().length > 0;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
};
|
|
28
|
+
export { hasSlottedElements, hasSlottedNodes, hasSlotted, };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const levenshteinDistance = (a, b) => {
|
|
2
|
+
const dp = Array.from({ length: a.length + 1 }, (_, i) =>
|
|
3
|
+
// eslint-disable-next-line no-nested-ternary
|
|
4
|
+
Array.from({ length: b.length + 1 }, (_, j) => (i === 0 ? j : j === 0 ? i : 0)));
|
|
5
|
+
for (let i = 1; i <= a.length; i++) {
|
|
6
|
+
for (let j = 1; j <= b.length; j++) {
|
|
7
|
+
if (a[i - 1] === b[j - 1]) {
|
|
8
|
+
dp[i][j] = dp[i - 1][j - 1];
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
dp[i][j] = 1 + Math.min(dp[i - 1][j], dp[i][j - 1], dp[i - 1][j - 1]);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return dp[a.length][b.length];
|
|
16
|
+
};
|
|
17
|
+
const closest = (input, validCodes) => {
|
|
18
|
+
let [closest] = validCodes;
|
|
19
|
+
let minDistance = levenshteinDistance(input, closest);
|
|
20
|
+
for (const code of validCodes) {
|
|
21
|
+
const distance = levenshteinDistance(input, code);
|
|
22
|
+
if (distance < minDistance) {
|
|
23
|
+
minDistance = distance;
|
|
24
|
+
closest = code;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return closest;
|
|
28
|
+
};
|
|
29
|
+
const firstLetterUppercase = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
30
|
+
export { closest, firstLetterUppercase, levenshteinDistance, };
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
}
|
|
10
10
|
/* included for focus effect */
|
|
11
11
|
@tailwind components;
|
|
12
|
-
@tailwind utilities;
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* @prop --mds-modal-close-icon-color: Set the color of the close icon button to the top left.
|
|
@@ -19,12 +18,12 @@
|
|
|
19
18
|
* @prop --mds-modal-window-overflow: Set the overflow of the window
|
|
20
19
|
* @prop --mds-modal-window-radius: Set the border radius of the window
|
|
21
20
|
* @prop --mds-modal-window-distance: Set the distance between the modal window and the screen bounds
|
|
21
|
+
* @prop --mds-modal-custom-window-distance: Set the distance between the slotted modal window and the screen bounds
|
|
22
22
|
* @prop --mds-modal-window-shadow: Set the box shadow of the window
|
|
23
23
|
* @prop --mds-modal-z-index: Set the z-index of the window when the component is opened
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
:host {
|
|
27
|
-
|
|
28
27
|
--mds-modal-overlay-color: var(--magma-overlay-color, 0 0 0);
|
|
29
28
|
--mds-modal-overlay-opacity: var(--magma-overlay-opacity, 0.5);
|
|
30
29
|
--mds-modal-transition-duration: 500ms;
|
|
@@ -35,6 +34,7 @@
|
|
|
35
34
|
--mds-modal-window-radius: 0;
|
|
36
35
|
--mds-modal-window-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
37
36
|
--mds-modal-window-distance: 0;
|
|
37
|
+
--mds-modal-custom-window-distance: 1.5rem;
|
|
38
38
|
--mds-modal-z-index: var(--magma-modal-z-index);
|
|
39
39
|
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
40
40
|
|
|
@@ -52,12 +52,16 @@
|
|
|
52
52
|
z-index: var(--mds-modal-z-index, 1000);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
:host(
|
|
55
|
+
:host ::slotted([slot="window"]) {
|
|
56
|
+
margin: var(--mds-modal-custom-window-distance);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([position="top"]) {
|
|
56
60
|
align-items: flex-start;
|
|
57
61
|
justify-content: center;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
:host(
|
|
64
|
+
:host([position="bottom"]) {
|
|
61
65
|
align-items: flex-end;
|
|
62
66
|
justify-content: center;
|
|
63
67
|
}
|
|
@@ -111,21 +115,21 @@
|
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
|
|
114
|
-
:host([opened]:not([opened="false"])
|
|
118
|
+
:host([opened]:not([opened="false"])) {
|
|
115
119
|
background-color: rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));
|
|
116
120
|
pointer-events: auto;
|
|
117
121
|
}
|
|
118
122
|
|
|
119
123
|
:host .window,
|
|
120
|
-
:host > ::slotted(
|
|
124
|
+
:host > ::slotted([slot="window"]) {
|
|
121
125
|
opacity: 0;
|
|
122
126
|
transition-duration: var(--mds-modal-transition-duration);
|
|
123
127
|
transition-property: transform, opacity;
|
|
124
128
|
transition-timing-function: var(--mds-modal-transition-outro-ease);
|
|
125
129
|
}
|
|
126
130
|
|
|
127
|
-
:host([opened]:not([opened="false"])
|
|
128
|
-
:host([opened]:not([opened="false"])
|
|
131
|
+
:host([opened]:not([opened="false"])) .window,
|
|
132
|
+
:host([opened]:not([opened="false"])) > ::slotted( [slot="window"]) {
|
|
129
133
|
opacity: 1;
|
|
130
134
|
transform: rotate(0) scale(1) translateY(0);
|
|
131
135
|
transition-delay: 0s;
|
|
@@ -142,8 +146,8 @@
|
|
|
142
146
|
width: 100vw;
|
|
143
147
|
}
|
|
144
148
|
|
|
145
|
-
:host([position="bottom-left"][opened="false"]) > ::slotted(
|
|
146
|
-
:host([position="bottom-left"]:not([opened])) > ::slotted(
|
|
149
|
+
:host([position="bottom-left"][opened="false"]) > ::slotted([slot="window"]),
|
|
150
|
+
:host([position="bottom-left"]:not([opened])) > ::slotted([slot="window"]) {
|
|
147
151
|
transform: rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);
|
|
148
152
|
}
|
|
149
153
|
|
|
@@ -162,8 +166,8 @@
|
|
|
162
166
|
width: 100vw;
|
|
163
167
|
}
|
|
164
168
|
|
|
165
|
-
:host([position="bottom-right"][opened="false"]) > ::slotted(
|
|
166
|
-
:host([position="bottom-right"]:not([opened])) > ::slotted(
|
|
169
|
+
:host([position="bottom-right"][opened="false"]) > ::slotted([slot="window"]),
|
|
170
|
+
:host([position="bottom-right"]:not([opened])) > ::slotted([slot="window"]) {
|
|
167
171
|
transform: rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);
|
|
168
172
|
}
|
|
169
173
|
|
|
@@ -182,8 +186,8 @@
|
|
|
182
186
|
width: 100vw;
|
|
183
187
|
}
|
|
184
188
|
|
|
185
|
-
:host([position="bottom"][opened="false"]) > ::slotted(
|
|
186
|
-
:host([position="bottom"]:not([opened])) > ::slotted(
|
|
189
|
+
:host([position="bottom"][opened="false"]) > ::slotted([slot="window"]),
|
|
190
|
+
:host([position="bottom"]:not([opened])) > ::slotted([slot="window"]) {
|
|
187
191
|
transform: rotateX(22deg) rotateY(0) scale(0.5) translate(0, 80%);
|
|
188
192
|
}
|
|
189
193
|
|
|
@@ -201,8 +205,8 @@
|
|
|
201
205
|
transition-delay: 0s;
|
|
202
206
|
}
|
|
203
207
|
|
|
204
|
-
:host([position="center"][opened="false"]) > ::slotted(
|
|
205
|
-
:host([position="center"]:not([opened])) > ::slotted(
|
|
208
|
+
:host([position="center"][opened="false"]) > ::slotted([slot="window"]),
|
|
209
|
+
:host([position="center"]:not([opened])) > ::slotted([slot="window"]) {
|
|
206
210
|
transform: rotateX(0) rotateY(22deg) scale(0.5) translate(0, 40%);
|
|
207
211
|
}
|
|
208
212
|
|
|
@@ -222,8 +226,8 @@
|
|
|
222
226
|
max-width: calc(100vw - 80px);
|
|
223
227
|
}
|
|
224
228
|
|
|
225
|
-
:host([position="left"][opened="false"]) > ::slotted(
|
|
226
|
-
:host([position="left"]:not([opened])) > ::slotted(
|
|
229
|
+
:host([position="left"][opened="false"]) > ::slotted([slot="window"]),
|
|
230
|
+
:host([position="left"]:not([opened])) > ::slotted([slot="window"]) {
|
|
227
231
|
transform: rotateX(0) rotateY(22deg) rotateZ(0) scale(0.5) translate(-100%, 0%);
|
|
228
232
|
}
|
|
229
233
|
|
|
@@ -253,8 +257,8 @@
|
|
|
253
257
|
max-width: calc(100vw - 80px);
|
|
254
258
|
}
|
|
255
259
|
|
|
256
|
-
:host([position="right"][opened="false"]) > ::slotted(
|
|
257
|
-
:host([position="right"]:not([opened])) > ::slotted(
|
|
260
|
+
:host([position="right"][opened="false"]) > ::slotted([slot="window"]),
|
|
261
|
+
:host([position="right"]:not([opened])) > ::slotted([slot="window"]) {
|
|
258
262
|
transform: rotateX(0) rotateY(-22deg) rotateZ(0) scale(0.5) translate(100%, 0%);
|
|
259
263
|
}
|
|
260
264
|
|
|
@@ -283,8 +287,8 @@
|
|
|
283
287
|
width: 100vw;
|
|
284
288
|
}
|
|
285
289
|
|
|
286
|
-
:host([position="top-left"][opened="false"]) > ::slotted(
|
|
287
|
-
:host([position="top-left"]:not([opened])) > ::slotted(
|
|
290
|
+
:host([position="top-left"][opened="false"]) > ::slotted([slot="window"]),
|
|
291
|
+
:host([position="top-left"]:not([opened])) > ::slotted([slot="window"]) {
|
|
288
292
|
transform: rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);
|
|
289
293
|
}
|
|
290
294
|
|
|
@@ -303,8 +307,8 @@
|
|
|
303
307
|
width: 100vw;
|
|
304
308
|
}
|
|
305
309
|
|
|
306
|
-
:host([position="top-right"][opened="false"]) > ::slotted(
|
|
307
|
-
:host([position="top-right"]:not([opened])) > ::slotted(
|
|
310
|
+
:host([position="top-right"][opened="false"]) > ::slotted([slot="window"]),
|
|
311
|
+
:host([position="top-right"]:not([opened])) > ::slotted([slot="window"]) {
|
|
308
312
|
transform: rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);
|
|
309
313
|
}
|
|
310
314
|
|
|
@@ -323,8 +327,8 @@
|
|
|
323
327
|
width: 100vw;
|
|
324
328
|
}
|
|
325
329
|
|
|
326
|
-
:host([position="top"][opened="false"]) > ::slotted( [slot="window"]
|
|
327
|
-
:host([position="top"]:not([opened])) > ::slotted( [slot="window"]
|
|
330
|
+
:host([position="top"][opened="false"]) > ::slotted( [slot="window"]),
|
|
331
|
+
:host([position="top"]:not([opened])) > ::slotted( [slot="window"]) {
|
|
328
332
|
transform: rotateX(-22deg) rotateY(0) scale(0.5) translate(0, -80%);
|
|
329
333
|
}
|
|
330
334
|
|
|
@@ -333,73 +337,167 @@
|
|
|
333
337
|
transform: translate(0, -100%);
|
|
334
338
|
}
|
|
335
339
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
:host,
|
|
340
|
-
.action-close,
|
|
341
|
-
.window {
|
|
342
|
-
transition-duration: 0s !important;
|
|
343
|
-
}
|
|
340
|
+
:host-context(.pref-animation-reduce) {
|
|
341
|
+
--mds-modal-transition-duration: 0s;
|
|
342
|
+
}
|
|
344
343
|
|
|
345
|
-
|
|
344
|
+
:host-context(.pref-animation-reduce),
|
|
345
|
+
:host-context(.pref-animation-reduce) .action-close,
|
|
346
|
+
:host-context(.pref-animation-reduce) .window {
|
|
347
|
+
transition-duration: 0s !important;
|
|
348
|
+
}
|
|
346
349
|
|
|
350
|
+
@media (prefers-reduced-motion) {
|
|
351
|
+
:host-context(.pref-animation-system) {
|
|
347
352
|
--mds-modal-transition-duration: 0s;
|
|
348
353
|
}
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
@container style(--magma-pref-animation: system) {
|
|
352
|
-
|
|
353
|
-
@media (prefers-reduced-motion) {
|
|
354
|
-
:host,
|
|
355
|
-
.action-close,
|
|
356
|
-
.window {
|
|
357
|
-
transition-duration: 0s !important;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
:host {
|
|
361
354
|
|
|
362
|
-
|
|
363
|
-
|
|
355
|
+
:host-context(.pref-animation-system),
|
|
356
|
+
:host-context(.pref-animation-system) .action-close,
|
|
357
|
+
:host-context(.pref-animation-system) .window {
|
|
358
|
+
transition-duration: 0s !important;
|
|
364
359
|
}
|
|
365
360
|
}
|
|
366
361
|
|
|
367
|
-
|
|
362
|
+
:host-context(.pref-contrast-more) {
|
|
363
|
+
--mds-modal-window-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
364
|
+
}
|
|
368
365
|
|
|
369
|
-
@container style(--magma-pref-contrast: more) {
|
|
370
|
-
:host {
|
|
371
366
|
|
|
367
|
+
@media (prefers-contrast: more) {
|
|
368
|
+
:host-context(.pref-contrast-system) {
|
|
372
369
|
--mds-modal-window-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
373
370
|
}
|
|
374
371
|
}
|
|
375
372
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
:host {
|
|
380
|
-
|
|
381
|
-
--mds-modal-window-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
373
|
+
:host-context(.pref-theme-dark) {
|
|
374
|
+
--mds-modal-window-background: rgb(var(--tone-neutral-09));
|
|
375
|
+
--mds-modal-window-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
384
376
|
}
|
|
385
377
|
|
|
386
|
-
@
|
|
387
|
-
:host {
|
|
388
|
-
|
|
378
|
+
@media (prefers-color-scheme: dark) {
|
|
379
|
+
:host-context(.pref-theme-system) {
|
|
389
380
|
--mds-modal-window-background: rgb(var(--tone-neutral-09));
|
|
390
381
|
--mds-modal-window-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
391
382
|
}
|
|
392
383
|
}
|
|
393
384
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
385
|
+
:host(:not(:is([hydrated], .hydrated))) {
|
|
386
|
+
animation-duration: 0s;
|
|
387
|
+
border-color: transparent;
|
|
388
|
+
box-shadow: 0 0 0 transparent;
|
|
389
|
+
opacity: 0;
|
|
390
|
+
outline-color: transparent;
|
|
391
|
+
transition-delay: 0s;
|
|
392
|
+
transition-duration: 0s;
|
|
393
|
+
visibility: hidden;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */
|
|
397
|
+
|
|
398
|
+
mds-accordion:not(:is([hydrated], .hydrated)),
|
|
399
|
+
mds-accordion-item:not(:is([hydrated], .hydrated)),
|
|
400
|
+
mds-accordion-timer:not(:is([hydrated], .hydrated)),
|
|
401
|
+
mds-accordion-timer-item:not(:is([hydrated], .hydrated)),
|
|
402
|
+
mds-author:not(:is([hydrated], .hydrated)),
|
|
403
|
+
mds-avatar:not(:is([hydrated], .hydrated)),
|
|
404
|
+
mds-badge:not(:is([hydrated], .hydrated)),
|
|
405
|
+
mds-banner:not(:is([hydrated], .hydrated)),
|
|
406
|
+
mds-benchmark-bar:not(:is([hydrated], .hydrated)),
|
|
407
|
+
mds-bibliography:not(:is([hydrated], .hydrated)),
|
|
408
|
+
mds-breadcrumb:not(:is([hydrated], .hydrated)),
|
|
409
|
+
mds-breadcrumb-item:not(:is([hydrated], .hydrated)),
|
|
410
|
+
mds-button:not(:is([hydrated], .hydrated)),
|
|
411
|
+
mds-card:not(:is([hydrated], .hydrated)),
|
|
412
|
+
mds-card-content:not(:is([hydrated], .hydrated)),
|
|
413
|
+
mds-card-footer:not(:is([hydrated], .hydrated)),
|
|
414
|
+
mds-card-header:not(:is([hydrated], .hydrated)),
|
|
415
|
+
mds-card-media:not(:is([hydrated], .hydrated)),
|
|
416
|
+
mds-chip:not(:is([hydrated], .hydrated)),
|
|
417
|
+
mds-details:not(:is([hydrated], .hydrated)),
|
|
418
|
+
mds-dropdown:not(:is([hydrated], .hydrated)),
|
|
419
|
+
mds-entity:not(:is([hydrated], .hydrated)),
|
|
420
|
+
mds-file:not(:is([hydrated], .hydrated)),
|
|
421
|
+
mds-file-preview:not(:is([hydrated], .hydrated)),
|
|
422
|
+
mds-filter:not(:is([hydrated], .hydrated)),
|
|
423
|
+
mds-filter-item:not(:is([hydrated], .hydrated)),
|
|
424
|
+
mds-header:not(:is([hydrated], .hydrated)),
|
|
425
|
+
mds-header-bar:not(:is([hydrated], .hydrated)),
|
|
426
|
+
mds-help:not(:is([hydrated], .hydrated)),
|
|
427
|
+
mds-horizontal-scroll:not(:is([hydrated], .hydrated)),
|
|
428
|
+
mds-hr:not(:is([hydrated], .hydrated)),
|
|
429
|
+
mds-icon:not(:is([hydrated], .hydrated)),
|
|
430
|
+
mds-img:not(:is([hydrated], .hydrated)),
|
|
431
|
+
mds-input:not(:is([hydrated], .hydrated)),
|
|
432
|
+
mds-input-field:not(:is([hydrated], .hydrated)),
|
|
433
|
+
mds-input-range:not(:is([hydrated], .hydrated)),
|
|
434
|
+
mds-input-select:not(:is([hydrated], .hydrated)),
|
|
435
|
+
mds-input-switch:not(:is([hydrated], .hydrated)),
|
|
436
|
+
mds-input-tip:not(:is([hydrated], .hydrated)),
|
|
437
|
+
mds-input-tip-item:not(:is([hydrated], .hydrated)),
|
|
438
|
+
mds-input-upload:not(:is([hydrated], .hydrated)),
|
|
439
|
+
mds-keyboard:not(:is([hydrated], .hydrated)),
|
|
440
|
+
mds-keyboard-key:not(:is([hydrated], .hydrated)),
|
|
441
|
+
mds-kpi:not(:is([hydrated], .hydrated)),
|
|
442
|
+
mds-kpi-item:not(:is([hydrated], .hydrated)),
|
|
443
|
+
mds-label:not(:is([hydrated], .hydrated)),
|
|
444
|
+
mds-list:not(:is([hydrated], .hydrated)),
|
|
445
|
+
mds-list-item:not(:is([hydrated], .hydrated)),
|
|
446
|
+
mds-modal:not(:is([hydrated], .hydrated)),
|
|
447
|
+
mds-note:not(:is([hydrated], .hydrated)),
|
|
448
|
+
mds-notification:not(:is([hydrated], .hydrated)),
|
|
449
|
+
mds-paginator:not(:is([hydrated], .hydrated)),
|
|
450
|
+
mds-paginator-item:not(:is([hydrated], .hydrated)),
|
|
451
|
+
mds-pref:not(:is([hydrated], .hydrated)),
|
|
452
|
+
mds-pref-animation:not(:is([hydrated], .hydrated)),
|
|
453
|
+
mds-pref-consumption:not(:is([hydrated], .hydrated)),
|
|
454
|
+
mds-pref-contrast:not(:is([hydrated], .hydrated)),
|
|
455
|
+
mds-pref-language:not(:is([hydrated], .hydrated)),
|
|
456
|
+
mds-pref-language-item:not(:is([hydrated], .hydrated)),
|
|
457
|
+
mds-pref-theme:not(:is([hydrated], .hydrated)),
|
|
458
|
+
mds-price-table:not(:is([hydrated], .hydrated)),
|
|
459
|
+
mds-price-table-features:not(:is([hydrated], .hydrated)),
|
|
460
|
+
mds-price-table-features-cell:not(:is([hydrated], .hydrated)),
|
|
461
|
+
mds-price-table-features-row:not(:is([hydrated], .hydrated)),
|
|
462
|
+
mds-price-table-header:not(:is([hydrated], .hydrated)),
|
|
463
|
+
mds-price-table-list:not(:is([hydrated], .hydrated)),
|
|
464
|
+
mds-price-table-list-item:not(:is([hydrated], .hydrated)),
|
|
465
|
+
mds-progress:not(:is([hydrated], .hydrated)),
|
|
466
|
+
mds-push-notification:not(:is([hydrated], .hydrated)),
|
|
467
|
+
mds-push-notifications:not(:is([hydrated], .hydrated)),
|
|
468
|
+
mds-quote:not(:is([hydrated], .hydrated)),
|
|
469
|
+
mds-separator:not(:is([hydrated], .hydrated)),
|
|
470
|
+
mds-spinner:not(:is([hydrated], .hydrated)),
|
|
471
|
+
mds-stepper-bar:not(:is([hydrated], .hydrated)),
|
|
472
|
+
mds-stepper-bar-item:not(:is([hydrated], .hydrated)),
|
|
473
|
+
mds-tab:not(:is([hydrated], .hydrated)),
|
|
474
|
+
mds-tab-bar:not(:is([hydrated], .hydrated)),
|
|
475
|
+
mds-tab-bar-item:not(:is([hydrated], .hydrated)),
|
|
476
|
+
mds-tab-item:not(:is([hydrated], .hydrated)),
|
|
477
|
+
mds-table:not(:is([hydrated], .hydrated)),
|
|
478
|
+
mds-table-body:not(:is([hydrated], .hydrated)),
|
|
479
|
+
mds-table-cell:not(:is([hydrated], .hydrated)),
|
|
480
|
+
mds-table-footer:not(:is([hydrated], .hydrated)),
|
|
481
|
+
mds-table-header:not(:is([hydrated], .hydrated)),
|
|
482
|
+
mds-table-header-cell:not(:is([hydrated], .hydrated)),
|
|
483
|
+
mds-table-row:not(:is([hydrated], .hydrated)),
|
|
484
|
+
mds-text:not(:is([hydrated], .hydrated)),
|
|
485
|
+
mds-toast:not(:is([hydrated], .hydrated)),
|
|
486
|
+
mds-tooltip:not(:is([hydrated], .hydrated)),
|
|
487
|
+
mds-tree:not(:is([hydrated], .hydrated)),
|
|
488
|
+
mds-tree-item:not(:is([hydrated], .hydrated)),
|
|
489
|
+
mds-url-view:not(:is([hydrated], .hydrated)),
|
|
490
|
+
mds-usage:not(:is([hydrated], .hydrated)),
|
|
491
|
+
mds-video-wall:not(:is([hydrated], .hydrated)),
|
|
492
|
+
mds-zero:not(:is([hydrated], .hydrated))
|
|
493
|
+
{
|
|
494
|
+
animation-duration: 0s;
|
|
495
|
+
border-color: transparent;
|
|
496
|
+
box-shadow: 0 0 0 transparent;
|
|
497
|
+
opacity: 0;
|
|
498
|
+
outline-color: transparent;
|
|
499
|
+
transition-delay: 0s;
|
|
500
|
+
transition-duration: 0s;
|
|
501
|
+
visibility: hidden;
|
|
403
502
|
}
|
|
404
503
|
|
|
405
|
-
|