@maggioli-design-system/mds-modal 4.11.3 → 4.11.5

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 (65) hide show
  1. package/dist/cjs/{index-6721d3e5.js → index-792833d6.js} +2 -31
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-modal.cjs.entry.js +5 -25
  4. package/dist/cjs/mds-modal.cjs.js +2 -2
  5. package/dist/collection/common/date.js +13 -0
  6. package/dist/collection/common/locale.js +8 -2
  7. package/dist/collection/components/mds-modal/mds-modal.css +14 -20
  8. package/dist/collection/components/mds-modal/mds-modal.js +3 -33
  9. package/dist/collection/dictionary/button.js +6 -1
  10. package/dist/collection/dictionary/variant.js +6 -1
  11. package/dist/collection/type/date.js +1 -0
  12. package/dist/components/mds-modal.js +6 -30
  13. package/dist/documentation.json +1 -1
  14. package/dist/esm/{index-56ba5ebb.js → index-c0b21c41.js} +2 -31
  15. package/dist/esm/loader.js +3 -3
  16. package/dist/esm/mds-modal.entry.js +5 -25
  17. package/dist/esm/mds-modal.js +3 -3
  18. package/dist/esm-es5/index-c0b21c41.js +1 -0
  19. package/dist/esm-es5/loader.js +1 -1
  20. package/dist/esm-es5/mds-modal.entry.js +1 -1
  21. package/dist/esm-es5/mds-modal.js +1 -1
  22. package/dist/mds-modal/mds-modal.esm.js +1 -1
  23. package/dist/mds-modal/mds-modal.js +1 -1
  24. package/dist/mds-modal/{p-c93e3da8.system.js → p-38f1367d.system.js} +2 -2
  25. package/dist/mds-modal/p-81178526.system.js +1 -0
  26. package/dist/mds-modal/{p-40ee28e3.js → p-a7c2f673.js} +2 -2
  27. package/dist/mds-modal/p-c268435a.system.entry.js +1 -0
  28. package/dist/mds-modal/p-cecdcd24.entry.js +1 -0
  29. package/dist/stats.json +41 -54
  30. package/dist/types/common/date.d.ts +4 -0
  31. package/dist/types/common/locale.d.ts +3 -2
  32. package/dist/types/components/mds-modal/mds-modal.d.ts +1 -5
  33. package/dist/types/dictionary/button.d.ts +2 -1
  34. package/dist/types/dictionary/variant.d.ts +2 -1
  35. package/dist/types/type/date.d.ts +5 -0
  36. package/dist/types/type/language.d.ts +2 -1
  37. package/dist/types/type/variant.d.ts +1 -1
  38. package/documentation.json +30 -10
  39. package/package.json +2 -2
  40. package/src/common/date.ts +21 -0
  41. package/src/common/locale.ts +10 -4
  42. package/src/components/mds-modal/mds-modal.css +15 -15
  43. package/src/components/mds-modal/mds-modal.tsx +4 -25
  44. package/src/components/mds-modal/test/mds-modal.e2e.ts +2 -4
  45. package/src/dictionary/button.ts +7 -0
  46. package/src/dictionary/variant.ts +7 -0
  47. package/src/fixtures/icons.json +17 -1
  48. package/src/fixtures/iconsauce.json +14 -1
  49. package/src/type/date.ts +10 -0
  50. package/src/type/language.ts +4 -0
  51. package/src/type/variant.ts +1 -1
  52. package/www/build/mds-modal.esm.js +1 -1
  53. package/www/build/mds-modal.js +1 -1
  54. package/www/build/{p-c93e3da8.system.js → p-38f1367d.system.js} +2 -2
  55. package/www/build/p-81178526.system.js +1 -0
  56. package/www/build/{p-40ee28e3.js → p-a7c2f673.js} +2 -2
  57. package/www/build/p-c268435a.system.entry.js +1 -0
  58. package/www/build/p-cecdcd24.entry.js +1 -0
  59. package/dist/esm-es5/index-56ba5ebb.js +0 -1
  60. package/dist/mds-modal/p-3a04d26f.system.entry.js +0 -1
  61. package/dist/mds-modal/p-92688c52.system.js +0 -1
  62. package/dist/mds-modal/p-cb3a151e.entry.js +0 -1
  63. package/www/build/p-3a04d26f.system.entry.js +0 -1
  64. package/www/build/p-92688c52.system.js +0 -1
  65. package/www/build/p-cb3a151e.entry.js +0 -1
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mds-modal';
24
- const BUILD = /* mds-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* mds-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
27
  Stencil Client Platform v4.21.0 | MIT Licensed | https://stenciljs.com
@@ -843,9 +843,6 @@ var postUpdateComponent = (hostRef) => {
843
843
  const endPostUpdate = createTime("postUpdate", tagName);
844
844
  const instance = hostRef.$lazyInstance$ ;
845
845
  const ancestorComponent = hostRef.$ancestorComponent$;
846
- {
847
- safeCall(instance, "componentDidRender");
848
- }
849
846
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
850
847
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
851
848
  {
@@ -905,7 +902,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
905
902
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
906
903
  );
907
904
  }
908
- const elm = hostRef.$hostElement$ ;
909
905
  const oldVal = hostRef.$instanceValues$.get(propName);
910
906
  const flags = hostRef.$flags$;
911
907
  const instance = hostRef.$lazyInstance$ ;
@@ -915,18 +911,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
915
911
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
916
912
  hostRef.$instanceValues$.set(propName, newVal);
917
913
  if (instance) {
918
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
919
- const watchMethods = cmpMeta.$watchers$[propName];
920
- if (watchMethods) {
921
- watchMethods.map((watchMethodName) => {
922
- try {
923
- instance[watchMethodName](newVal, oldVal, propName);
924
- } catch (e) {
925
- consoleError(e, elm);
926
- }
927
- });
928
- }
929
- }
930
914
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
931
915
  scheduleUpdate(hostRef, false);
932
916
  }
@@ -938,10 +922,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
938
922
  var proxyComponent = (Cstr, cmpMeta, flags) => {
939
923
  var _a, _b;
940
924
  const prototype = Cstr.prototype;
941
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
942
- if (Cstr.watchers && !cmpMeta.$watchers$) {
943
- cmpMeta.$watchers$ = Cstr.watchers;
944
- }
925
+ if (cmpMeta.$members$ || BUILD.watchCallback ) {
945
926
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
946
927
  members.map(([memberName, [memberFlags]]) => {
947
928
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1024,9 +1005,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1024
1005
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1025
1006
  }
1026
1007
  if (!Cstr.isProxied) {
1027
- {
1028
- cmpMeta.$watchers$ = Cstr.watchers;
1029
- }
1030
1008
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1031
1009
  Cstr.isProxied = true;
1032
1010
  }
@@ -1042,9 +1020,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1042
1020
  {
1043
1021
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1044
1022
  }
1045
- {
1046
- hostRef.$flags$ |= 128 /* isWatchReady */;
1047
- }
1048
1023
  endNewInstance();
1049
1024
  } else {
1050
1025
  Cstr = elm.constructor;
@@ -1153,7 +1128,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1153
1128
  let hasSlotRelocation = false;
1154
1129
  lazyBundles.map((lazyBundle) => {
1155
1130
  lazyBundle[1].map((compactMeta) => {
1156
- var _a2;
1157
1131
  const cmpMeta = {
1158
1132
  $flags$: compactMeta[0],
1159
1133
  $tagName$: compactMeta[1],
@@ -1172,9 +1146,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1172
1146
  {
1173
1147
  cmpMeta.$attrsToReflect$ = [];
1174
1148
  }
1175
- {
1176
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1177
- }
1178
1149
  const tagName = cmpMeta.$tagName$;
1179
1150
  const HostElement = class extends HTMLElement {
1180
1151
  // StencilLazyHost
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6721d3e5.js');
5
+ const index = require('./index-792833d6.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["mds-modal.cjs",[[1,"mds-modal",{"opened":[1540],"position":[1537],"stateOpened":[32]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]],{"position":["positionChange"],"opened":["openedChange"]}]]]], options);
11
+ return index.bootstrapLazy([["mds-modal.cjs",[[1,"mds-modal",{"opened":[1540],"position":[1537]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]]]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6721d3e5.js');
5
+ const index = require('./index-792833d6.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
 
@@ -54,7 +54,7 @@ class KeyboardManager {
54
54
  }
55
55
  }
56
56
 
57
- 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@tailwind components;\n@tailwind utilities;\n\n\n.svg {\n display: -ms-flexbox;\n display: flex;\n}\n\n\n.svg svg {\n aspect-ratio: 1/1;\n height: 100%;\n width: 100%;\n}\n\n\n.animate-right-intro,\n .animate-right-outro {\n -webkit-transform: translateX(calc(100% + 50px));\n transform: translateX(calc(100% + 50px));\n }\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-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-close-icon-color: rgb(var(--tone-neutral));\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-window-background: rgb(var(--tone-neutral));\n --mds-modal-window-overflow: auto;\n --mds-modal-window-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n --mds-modal-z-index: var(--magma-modal-z-index);\n -webkit-transition-duration: 700ms;\n transition-duration: 700ms;\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 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:host( .to-bottom-opened ),\n:host( .to-center-opened ),\n:host( .to-left-opened ),\n:host( .to-right-opened ),\n:host( .to-top-opened ) {\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n\n background-color: rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));\n pointer-events: auto;\n}\n\n.button-close {\n top: 0rem;\n border-radius: 9999px;\n opacity: 0;\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);\n transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);\n\n fill: var(--mds-modal-close-icon-color);\n --mds-button-background: transparent;\n\n height: auto;\n position: absolute;\n -webkit-transform: translate(0, 24px) rotate(90deg);\n transform: translate(0, 24px) rotate(90deg);\n -webkit-transform-origin: center;\n transform-origin: center;\n -webkit-transition-property: opacity, outline, outline-offset, -webkit-transform;\n transition-property: opacity, outline, outline-offset, -webkit-transform;\n transition-property: opacity, outline, outline-offset, transform;\n transition-property: opacity, outline, outline-offset, transform, -webkit-transform;\n}\n\n.button-close::part(icon) {\n height: 2.25rem;\n width: 2.25rem;\n}\n\n.window {\n height: 100%;\n gap: 0rem;\n\n background-color: var(--mds-modal-window-background);\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 max-width: calc(100vw - 80px);\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/* xx */\n\n:host( .to-bottom ) {\n padding: 2rem;\n}\n\n@media (max-width: 767px) {\n :host( .to-bottom ) {\n padding: 1rem;\n }\n}\n\n:host( .to-bottom ) {\n\n -ms-flex-pack: center;\n\n justify-content: center;\n}\n\n:host( .to-bottom ) .window,\n:host( .to-bottom ) > ::slotted( [slot=\"window\"] ) {\n opacity: 0;\n -webkit-transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\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( .to-bottom-intro ) .window,\n:host( .to-bottom-intro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(40%);\n transform: rotateX(-22deg) scale(0.5) translateY(40%);\n }\n\n:host( .to-bottom-opened.to-bottom-outro ) .window,\n:host( .to-bottom-opened.to-bottom-outro ) > ::slotted( [slot=\"window\"] ),\n:host( .to-bottom-opened ) .window,\n:host( .to-bottom-opened ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n\n -webkit-transform: rotateX(0) scale(1) translateY(0);\n\n transform: rotateX(0) scale(1) translateY(0);\n}\n\n:host( .to-bottom-outro ) .window,\n:host( .to-bottom-outro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n }\n\n:host( .to-center ) {\n padding: 2rem;\n}\n\n@media (max-width: 767px) {\n :host( .to-center ) {\n padding: 1rem;\n }\n}\n\n:host( .to-center ) {\n\n -ms-flex-pack: center;\n\n justify-content: center;\n}\n\n:host( .to-center ) .window,\n:host( .to-center ) > ::slotted( [slot=\"window\"] ) {\n opacity: 0;\n -webkit-transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\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( .to-center-intro ) .window,\n:host( .to-center-intro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(40%);\n transform: rotateX(-22deg) scale(0.5) translateY(40%);\n }\n\n:host( .to-center-opened.to-center-outro ) .window,\n:host( .to-center-opened.to-center-outro ) > ::slotted( [slot=\"window\"] ),\n:host( .to-center-opened ) .window,\n:host( .to-center-opened ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n\n -webkit-transform: rotateX(0) scale(1) translateY(0);\n\n transform: rotateX(0) scale(1) translateY(0);\n}\n\n:host( .to-center-outro ) .window,\n:host( .to-center-outro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n }\n\n:host( .to-left ) {\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n\n:host( .to-left ) .window,\n:host( .to-left ) > ::slotted( [slot=\"window\"] ) {\n opacity: 0;\n -webkit-transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\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( .to-left-intro ) .window,\n:host( .to-left-intro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: translateX(calc(-100% - 50px));\n transform: translateX(calc(-100% - 50px));\n }\n\n:host( .to-left-opened.to-left-outro ) .window,\n:host( .to-left-opened.to-left-outro ) > ::slotted( [slot=\"window\"] ),\n:host( .to-left-opened ) .window,\n:host( .to-left-opened ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n\n -webkit-transform: translateX(0);\n\n transform: translateX(0);\n}\n\n:host( .to-left-opened ) .button-close,\n:host( .to-left-opened.to-left-outro ) .button-close {\n opacity: 1;\n\n -webkit-transform: translate(-24px, 24px) rotate(0);\n\n transform: translate(-24px, 24px) rotate(0);\n}\n\n:host( .to-left-outro ) .window,\n:host( .to-left-outro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: translateX(calc(-100% - 50px));\n transform: translateX(calc(-100% - 50px));\n }\n\n:host( .to-left-outro ) .button-close {\n -webkit-transform: translate(24px, 24px) rotate(-90deg);\n transform: translate(24px, 24px) rotate(-90deg);\n}\n\n:host( .to-left ) .button-close {\n right: 0rem;\n\n -webkit-transform: translate(36px, 24px) rotate(90deg);\n\n transform: translate(36px, 24px) rotate(90deg);\n}\n\n:host( .to-right ) {\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n\n:host( .to-right ) .window,\n:host( .to-right ) > ::slotted([slot=\"window\"]) {\n opacity: 0;\n -webkit-transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\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( .to-right-intro ) .window,\n:host( .to-right-intro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: translateX(calc(100% + 50px));\n transform: translateX(calc(100% + 50px));\n }\n\n:host( .to-right-opened.to-right-outro ) .window,\n:host( .to-right-opened.to-right-outro ) > ::slotted( [slot=\"window\"] ),\n:host( .to-right-opened ) .window,\n:host( .to-right-opened ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n\n -webkit-transform: translateX(0);\n\n transform: translateX(0);\n}\n\n:host( .to-right-opened ) .button-close,\n:host( .to-right-opened.to-right-outro ) .button-close {\n opacity: 1;\n\n -webkit-transform: translate(24px, 24px) rotate(0);\n\n transform: translate(24px, 24px) rotate(0);\n}\n\n:host( .to-right-outro ) .window,\n:host( .to-right-outro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: translateX(calc(100% + 50px));\n transform: translateX(calc(100% + 50px));\n }\n\n:host( .to-right-outro ) .button-close {\n -webkit-transform: translate(-24px, 24px) rotate(90deg);\n transform: translate(-24px, 24px) rotate(90deg);\n}\n\n:host( .to-right ) .button-close {\n left: 0rem;\n\n -webkit-transform: translate(-36px, 24px) rotate(-90deg);\n\n transform: translate(-36px, 24px) rotate(-90deg);\n}\n\n:host( .to-top ) {\n padding: 2rem;\n}\n\n@media (max-width: 767px) {\n :host( .to-top ) {\n padding: 1rem;\n }\n}\n\n:host( .to-top ) {\n\n -ms-flex-pack: center;\n\n justify-content: center;\n}\n\n:host( .to-top ) .window,\n:host( .to-top ) > ::slotted( [slot=\"window\"] ) {\n opacity: 0;\n -webkit-transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\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( .to-top-intro ) .window,\n:host( .to-top-intro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(40%);\n transform: rotateX(-22deg) scale(0.5) translateY(40%);\n }\n\n:host( .to-top-opened.to-top-outro ) .window,\n:host( .to-top-opened.to-top-outro ) > ::slotted( [slot=\"window\"] ),\n:host( .to-top-opened ) .window,\n:host( .to-top-opened ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n\n -webkit-transform: rotateX(0) scale(1) translateY(0);\n\n transform: rotateX(0) scale(1) translateY(0);\n}\n\n:host( .to-top-outro ) .window,\n:host( .to-top-outro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n }\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .button-close,\n .window {\n -webkit-transition-duration: 0s !important;\n transition-duration: 0s !important;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .button-close,\n .window {\n -webkit-transition-duration: 0s !important;\n transition-duration: 0s !important;\n }\n }\n}\n\n@tailwind utilities;\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.static {\n position: static;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.flex {\n display: -ms-flexbox;\n display: flex;\n}\n\n.w-1600 {\n width: 4rem;\n}\n\n.min-w-0 {\n min-width: 0rem;\n}\n\n.max-w-lg {\n max-width: 32rem;\n}\n\n.max-w-xl {\n max-width: 36rem;\n}\n\n.flex-grow {\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.items-center {\n -ms-flex-align: center;\n align-items: center;\n}\n\n.gap-400 {\n gap: 1rem;\n}\n\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.border {\n border-width: 1px;\n}\n\n.border-0 {\n border-width: 0rem;\n}\n\n.border-b {\n border-bottom-width: 1px;\n}\n\n.border-t {\n border-top-width: 1px;\n}\n\n.border-solid {\n border-style: solid;\n}\n\n.border-tone-neutral-09 {\n --tw-border-opacity: 1;\n border-color: rgb(var(--tone-neutral-09) / var(--tw-border-opacity));\n}\n\n.bg-label-amaranth-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-amaranth-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-aqua-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-aqua-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-blue-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-blue-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-green-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-green-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-lime-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-lime-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-orange-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-orange-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-orchid-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-violet-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-yellow-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));\n}\n\n.bg-tone-neutral-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));\n}\n\n.fill-label-amaranth-04 {\n fill: rgb(var(--label-amaranth-04));\n}\n\n.fill-label-aqua-04 {\n fill: rgb(var(--label-aqua-04));\n}\n\n.fill-label-blue-04 {\n fill: rgb(var(--label-blue-04));\n}\n\n.fill-label-green-04 {\n fill: rgb(var(--label-green-04));\n}\n\n.fill-label-lime-04 {\n fill: rgb(var(--label-lime-04));\n}\n\n.fill-label-orange-04 {\n fill: rgb(var(--label-orange-04));\n}\n\n.fill-label-orchid-04 {\n fill: rgb(var(--label-orchid-04));\n}\n\n.fill-label-violet-04 {\n fill: rgb(var(--label-violet-04));\n}\n\n.fill-label-yellow-04 {\n fill: rgb(var(--label-yellow-04));\n}\n\n.fill-tone-neutral-04 {\n fill: rgb(var(--tone-neutral-04));\n}\n\n.p-800 {\n padding: 2rem;\n}\n\n.text-label-amaranth-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));\n}\n\n.text-label-aqua-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));\n}\n\n.text-label-blue-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-blue-04) / var(--tw-text-opacity));\n}\n\n.text-label-green-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-green-04) / var(--tw-text-opacity));\n}\n\n.text-label-lime-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-lime-04) / var(--tw-text-opacity));\n}\n\n.text-label-orange-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-orange-04) / var(--tw-text-opacity));\n}\n\n.text-label-orchid-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));\n}\n\n.text-label-violet-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-violet-04) / var(--tw-text-opacity));\n}\n\n.text-label-yellow-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));\n}\n\n.text-tone-neutral-02 {\n --tw-text-opacity: 1;\n color: rgb(var(--tone-neutral-02) / var(--tw-text-opacity));\n}\n\n.text-tone-neutral-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\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@media (max-width: 767px) {\n .mobile\\:w-1200 {\n width: 3rem;\n }\n}\n\n\n";
57
+ 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@tailwind components;\n@tailwind utilities;\n\n\n.svg {\n display: -ms-flexbox;\n display: flex;\n}\n\n\n.svg svg {\n aspect-ratio: 1/1;\n height: 100%;\n width: 100%;\n}\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-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-close-icon-color: rgb(var(--tone-neutral));\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-window-background: rgb(var(--tone-neutral));\n --mds-modal-window-overflow: auto;\n --mds-modal-window-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n --mds-modal-z-index: var(--magma-modal-z-index);\n -webkit-transition-duration: 700ms;\n transition-duration: 700ms;\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 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:host( .to-bottom-opened ),\n:host( .to-center-opened ),\n:host( .to-left-opened ),\n:host( .to-right-opened ),\n:host( .to-top-opened ) {\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n\n background-color: rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));\n pointer-events: auto;\n}\n\n.button-close {\n\n --mds-button-background: transparent;\n\n fill: var(--mds-modal-close-icon-color);\n height: auto;\n position: absolute;\n -webkit-transform: translate(0, 24px) rotate(90deg);\n transform: translate(0, 24px) rotate(90deg);\n -webkit-transform-origin: center;\n transform-origin: center;\n -webkit-transition-property: opacity, outline, outline-offset, -webkit-transform;\n transition-property: opacity, outline, outline-offset, -webkit-transform;\n transition-property: opacity, outline, outline-offset, transform;\n transition-property: opacity, outline, outline-offset, transform, -webkit-transform;\n top: 0rem;\n border-radius: 9999px;\n opacity: 0;\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);\n transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);\n}\n\n.button-close::part(icon) {\n height: 2.25rem;\n width: 2.25rem;\n}\n\n.window {\n height: 100%;\n gap: 0rem;\n\n background-color: var(--mds-modal-window-background);\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 max-width: calc(100vw - 80px);\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/* xx */\n\n:host( .to-bottom ) {\n padding: 2rem;\n}\n\n@media (max-width: 767px) {\n :host( .to-bottom ) {\n padding: 1rem;\n }\n}\n\n:host( .to-bottom ) {\n\n -ms-flex-pack: center;\n\n justify-content: center;\n}\n\n:host( .to-bottom ) .window,\n:host( .to-bottom ) > ::slotted( [slot=\"window\"] ) {\n opacity: 0;\n -webkit-transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\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( .to-bottom-intro ) .window,\n:host( .to-bottom-intro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(40%);\n transform: rotateX(-22deg) scale(0.5) translateY(40%);\n }\n\n:host( .to-bottom-opened.to-bottom-outro ) .window,\n:host( .to-bottom-opened.to-bottom-outro ) > ::slotted( [slot=\"window\"] ),\n:host( .to-bottom-opened ) .window,\n:host( .to-bottom-opened ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n\n -webkit-transform: rotateX(0) scale(1) translateY(0);\n\n transform: rotateX(0) scale(1) translateY(0);\n}\n\n:host( .to-bottom-outro ) .window,\n:host( .to-bottom-outro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n }\n\n:host( .to-center ) {\n padding: 2rem;\n}\n\n@media (max-width: 767px) {\n :host( .to-center ) {\n padding: 1rem;\n }\n}\n\n:host( .to-center ) {\n\n -ms-flex-pack: center;\n\n justify-content: center;\n}\n\n:host( .to-center ) .window,\n:host( .to-center ) > ::slotted( [slot=\"window\"] ) {\n opacity: 0;\n -webkit-transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\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( .to-center-intro ) .window,\n:host( .to-center-intro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(40%);\n transform: rotateX(-22deg) scale(0.5) translateY(40%);\n }\n\n:host( .to-center-opened.to-center-outro ) .window,\n:host( .to-center-opened.to-center-outro ) > ::slotted( [slot=\"window\"] ),\n:host( .to-center-opened ) .window,\n:host( .to-center-opened ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n\n -webkit-transform: rotateX(0) scale(1) translateY(0);\n\n transform: rotateX(0) scale(1) translateY(0);\n}\n\n:host( .to-center-outro ) .window,\n:host( .to-center-outro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n }\n\n:host( .to-left ) {\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n\n:host( .to-left ) .window,\n:host( .to-left ) > ::slotted( [slot=\"window\"] ) {\n opacity: 0;\n -webkit-transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\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( .to-left-intro ) .window,\n:host( .to-left-intro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: translateX(calc(-100% - 50px));\n transform: translateX(calc(-100% - 50px));\n }\n\n:host( .to-left-opened.to-left-outro ) .window,\n:host( .to-left-opened.to-left-outro ) > ::slotted( [slot=\"window\"] ),\n:host( .to-left-opened ) .window,\n:host( .to-left-opened ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n\n -webkit-transform: translateX(0);\n\n transform: translateX(0);\n}\n\n:host( .to-left-opened ) .button-close,\n:host( .to-left-opened.to-left-outro ) .button-close {\n opacity: 1;\n\n -webkit-transform: translate(-24px, 24px) rotate(0);\n\n transform: translate(-24px, 24px) rotate(0);\n}\n\n:host( .to-left-outro ) .window,\n:host( .to-left-outro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: translateX(calc(-100% - 50px));\n transform: translateX(calc(-100% - 50px));\n }\n\n:host( .to-left-outro ) .button-close {\n -webkit-transform: translate(24px, 24px) rotate(-90deg);\n transform: translate(24px, 24px) rotate(-90deg);\n}\n\n:host( .to-left ) .button-close {\n right: 0rem;\n\n -webkit-transform: translate(36px, 24px) rotate(90deg);\n\n transform: translate(36px, 24px) rotate(90deg);\n}\n\n:host( .to-right ) {\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n\n:host( .to-right ) .window,\n:host( .to-right ) > ::slotted([slot=\"window\"]) {\n opacity: 0;\n -webkit-transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\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( .to-right-intro ) .window,\n:host( .to-right-intro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: translateX(calc(100% + 50px));\n transform: translateX(calc(100% + 50px));\n }\n\n:host( .to-right-opened.to-right-outro ) .window,\n:host( .to-right-opened.to-right-outro ) > ::slotted( [slot=\"window\"] ),\n:host( .to-right-opened ) .window,\n:host( .to-right-opened ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n\n -webkit-transform: translateX(0);\n\n transform: translateX(0);\n}\n\n:host( .to-right-opened ) .button-close,\n:host( .to-right-opened.to-right-outro ) .button-close {\n opacity: 1;\n\n -webkit-transform: translate(24px, 24px) rotate(0);\n\n transform: translate(24px, 24px) rotate(0);\n}\n\n:host( .to-right-outro ) .window,\n:host( .to-right-outro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: translateX(calc(100% + 50px));\n transform: translateX(calc(100% + 50px));\n }\n\n:host( .to-right-outro ) .button-close {\n -webkit-transform: translate(-24px, 24px) rotate(90deg);\n transform: translate(-24px, 24px) rotate(90deg);\n}\n\n:host( .to-right ) .button-close {\n left: 0rem;\n\n -webkit-transform: translate(-36px, 24px) rotate(-90deg);\n\n transform: translate(-36px, 24px) rotate(-90deg);\n}\n\n:host( .to-top ) {\n padding: 2rem;\n}\n\n@media (max-width: 767px) {\n :host( .to-top ) {\n padding: 1rem;\n }\n}\n\n:host( .to-top ) {\n\n -ms-flex-pack: center;\n\n justify-content: center;\n}\n\n:host( .to-top ) .window,\n:host( .to-top ) > ::slotted( [slot=\"window\"] ) {\n opacity: 0;\n -webkit-transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\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( .to-top-intro ) .window,\n:host( .to-top-intro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(40%);\n transform: rotateX(-22deg) scale(0.5) translateY(40%);\n }\n\n:host( .to-top-opened.to-top-outro ) .window,\n:host( .to-top-opened.to-top-outro ) > ::slotted( [slot=\"window\"] ),\n:host( .to-top-opened ) .window,\n:host( .to-top-opened ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n\n -webkit-transform: rotateX(0) scale(1) translateY(0);\n\n transform: rotateX(0) scale(1) translateY(0);\n}\n\n:host( .to-top-outro ) .window,\n:host( .to-top-outro ) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n transform: rotateX(-22deg) scale(0.5) translateY(-40%);\n }\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .button-close,\n .window {\n -webkit-transition-duration: 0s !important;\n transition-duration: 0s !important;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .button-close,\n .window {\n -webkit-transition-duration: 0s !important;\n transition-duration: 0s !important;\n }\n }\n}\n\n@tailwind utilities;\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.static {\n position: static;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.flex {\n display: -ms-flexbox;\n display: flex;\n}\n\n.w-1600 {\n width: 4rem;\n}\n\n.min-w-0 {\n min-width: 0rem;\n}\n\n.max-w-lg {\n max-width: 32rem;\n}\n\n.max-w-xl {\n max-width: 36rem;\n}\n\n.flex-grow {\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.items-center {\n -ms-flex-align: center;\n align-items: center;\n}\n\n.gap-400 {\n gap: 1rem;\n}\n\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.border {\n border-width: 1px;\n}\n\n.border-0 {\n border-width: 0rem;\n}\n\n.border-b {\n border-bottom-width: 1px;\n}\n\n.border-t {\n border-top-width: 1px;\n}\n\n.border-solid {\n border-style: solid;\n}\n\n.border-tone-neutral-09 {\n --tw-border-opacity: 1;\n border-color: rgb(var(--tone-neutral-09) / var(--tw-border-opacity));\n}\n\n.bg-label-amaranth-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-amaranth-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-aqua-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-aqua-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-blue-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-blue-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-green-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-green-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-lime-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-lime-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-orange-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-orange-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-orchid-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-violet-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-yellow-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));\n}\n\n.bg-tone-neutral-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));\n}\n\n.fill-label-amaranth-04 {\n fill: rgb(var(--label-amaranth-04));\n}\n\n.fill-label-aqua-04 {\n fill: rgb(var(--label-aqua-04));\n}\n\n.fill-label-blue-04 {\n fill: rgb(var(--label-blue-04));\n}\n\n.fill-label-green-04 {\n fill: rgb(var(--label-green-04));\n}\n\n.fill-label-lime-04 {\n fill: rgb(var(--label-lime-04));\n}\n\n.fill-label-orange-04 {\n fill: rgb(var(--label-orange-04));\n}\n\n.fill-label-orchid-04 {\n fill: rgb(var(--label-orchid-04));\n}\n\n.fill-label-violet-04 {\n fill: rgb(var(--label-violet-04));\n}\n\n.fill-label-yellow-04 {\n fill: rgb(var(--label-yellow-04));\n}\n\n.fill-tone-neutral-04 {\n fill: rgb(var(--tone-neutral-04));\n}\n\n.p-800 {\n padding: 2rem;\n}\n\n.text-label-amaranth-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));\n}\n\n.text-label-aqua-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));\n}\n\n.text-label-blue-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-blue-04) / var(--tw-text-opacity));\n}\n\n.text-label-green-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-green-04) / var(--tw-text-opacity));\n}\n\n.text-label-lime-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-lime-04) / var(--tw-text-opacity));\n}\n\n.text-label-orange-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-orange-04) / var(--tw-text-opacity));\n}\n\n.text-label-orchid-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));\n}\n\n.text-label-violet-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-violet-04) / var(--tw-text-opacity));\n}\n\n.text-label-yellow-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));\n}\n\n.text-tone-neutral-02 {\n --tw-text-opacity: 1;\n color: rgb(var(--tone-neutral-02) / var(--tw-text-opacity));\n}\n\n.text-tone-neutral-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\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@media (max-width: 767px) {\n .mobile\\:w-1200 {\n width: 3rem;\n }\n}\n\n\n";
58
58
  const MdsModalStyle0 = mdsModalCss;
59
59
 
60
60
  const MdsModal = class {
@@ -79,7 +79,6 @@ const MdsModal = class {
79
79
  this.closeEvent.emit();
80
80
  }
81
81
  };
82
- this.stateOpened = undefined;
83
82
  this.opened = false;
84
83
  this.position = 'center';
85
84
  }
@@ -88,19 +87,14 @@ const MdsModal = class {
88
87
  this.bottom = this.host.querySelector('[slot="bottom"]') !== null;
89
88
  this.top = this.host.querySelector('[slot="top"]') !== null;
90
89
  this.window = this.host.querySelector('[slot="window"]') !== null;
91
- this.stateOpened = this.opened;
92
- if (!this.window) {
93
- this.position = 'right';
94
- }
95
90
  if (this.window) {
96
91
  (_a = this.host.querySelector('[slot="window"]')) === null || _a === void 0 ? void 0 : _a.setAttribute('role', 'modal');
97
92
  }
98
93
  }
99
94
  componentWillRender() {
95
+ this.host.className = '';
100
96
  this.animationState = this.opened ? 'intro' : 'outro';
101
97
  this.host.classList.add(this.animationName());
102
- }
103
- componentDidRender() {
104
98
  this.animationDeelay = window.setTimeout(() => {
105
99
  this.animationState = this.animationState === 'intro' ? 'outro' : 'intro';
106
100
  this.host.classList.remove(this.animationName(this.animationState === 'intro' ? 'outro' : 'intro'));
@@ -121,16 +115,6 @@ const MdsModal = class {
121
115
  this.km.detachEscapeBehavior();
122
116
  this.km.detachClickBehavior('close');
123
117
  }
124
- positionChange(_newValue, oldValue) {
125
- window.clearTimeout(this.animationDeelay);
126
- this.host.classList.remove(this.animationName('', oldValue));
127
- this.host.classList.remove(this.animationName('intro', oldValue));
128
- this.host.classList.remove(this.animationName('outro', oldValue));
129
- }
130
- openedChange(newValue) {
131
- this.stateOpened = newValue;
132
- window.clearTimeout(this.animationDeelay);
133
- }
134
118
  onModalCloseListener() {
135
119
  this.opened = false;
136
120
  }
@@ -138,17 +122,13 @@ const MdsModal = class {
138
122
  this.opened = false;
139
123
  }
140
124
  render() {
141
- return (index.h(index.Host, { key: 'a019a83e46044ef3f9a8a7ce067075572883eeb5', "aria-modal": clsx(this.opened ? 'true' : 'false'), class: clsx(this.stateOpened && this.animationName('opened')), onClick: (e) => { this.closeModal(e); } }, this.window
125
+ return (index.h(index.Host, { key: 'e661211b675deb9fd6d6dfb1b6c9aa83f68a5a20', "aria-modal": clsx(this.opened ? 'true' : 'false'), class: clsx(this.opened && this.animationName('opened')), onClick: (e) => { this.closeModal(e); } }, this.window
142
126
  ? index.h("slot", { name: "window" })
143
127
  : index.h("div", { class: clsx('window', (this.top || this.bottom) && `window-${this.top ? '-top' : ''}${this.bottom ? '-bottom' : ''}`), role: "dialog", part: "window" }, this.top &&
144
128
  index.h("slot", { name: "top" }), index.h("slot", null), this.bottom &&
145
- index.h("slot", { name: "bottom" })), !this.window && index.h("mds-button", { key: '85cd20e29302e815996cf1b736fc108c05f2ec4a', icon: miBaselineClose, onClick: (e) => { this.closeModal(e); }, class: "button-close" })));
129
+ index.h("slot", { name: "bottom" })), !this.window && index.h("mds-button", { key: 'a61b52009cc0a463be930f02e33b64e4575460ee', icon: miBaselineClose, onClick: (e) => { this.closeModal(e); }, class: "button-close" })));
146
130
  }
147
131
  get host() { return index.getElement(this); }
148
- static get watchers() { return {
149
- "position": ["positionChange"],
150
- "opened": ["openedChange"]
151
- }; }
152
132
  };
153
133
  MdsModal.style = MdsModalStyle0;
154
134
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6721d3e5.js');
5
+ const index = require('./index-792833d6.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
@@ -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],"stateOpened":[32]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]],{"position":["positionChange"],"opened":["openedChange"]}]]]], options);
22
+ return index.bootstrapLazy([["mds-modal.cjs",[[1,"mds-modal",{"opened":[1540],"position":[1537]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]]]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -0,0 +1,13 @@
1
+ // ISO 8601 date regex allowing optional components (month, day, time)
2
+ const ISO8601RegexString = '^\\d{4}(-\\d{2})?(-\\d{2})?(T\\d{2}(:\\d{2})?(:\\d{2})?(\\.\\d{3})?)?([+-]\\d{2}:\\d{2}|Z)?$';
3
+ const isISO8601Date = (dateString) => {
4
+ const ISO8601Regex = new RegExp(ISO8601RegexString);
5
+ return ISO8601Regex.test(dateString);
6
+ };
7
+ const sanitizeISO8601Date = (dateString) => {
8
+ if (isISO8601Date(dateString)) {
9
+ return dateString;
10
+ }
11
+ return new Date(dateString).toISOString();
12
+ };
13
+ export { sanitizeISO8601Date, isISO8601Date, };
@@ -2,15 +2,19 @@ import Handlebars from "handlebars";
2
2
  export class Locale {
3
3
  constructor(configData) {
4
4
  this.rollbackLanguage = 'en';
5
+ this.set = (configData) => {
6
+ this.config = configData;
7
+ };
5
8
  this.lang = (element) => {
6
9
  this.closestElement = element.closest('[lang]');
7
10
  if (this.closestElement) {
8
11
  if (this.closestElement.lang) {
9
12
  this.language = this.closestElement.lang;
10
- return;
13
+ return this.language;
11
14
  }
12
15
  }
13
16
  this.language = this.rollbackLanguage;
17
+ return this.language;
14
18
  };
15
19
  this.pluralize = (tag, context) => {
16
20
  const languagePhrase = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag];
@@ -43,6 +47,8 @@ export class Locale {
43
47
  }
44
48
  return this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag];
45
49
  };
46
- this.config = configData;
50
+ if (configData) {
51
+ this.set(configData);
52
+ }
47
53
  }
48
54
  }
@@ -25,23 +25,17 @@
25
25
  height: 100%;
26
26
  width: 100%;
27
27
  }
28
-
29
-
30
- .animate-right-intro,
31
- .animate-right-outro {
32
- transform: translateX(calc(100% + 50px));
33
- }
34
28
  @tailwind utilities;
35
29
 
36
30
  /**
37
- * @prop --mds-modal-close-icon-color: Set the color of the close icon button to the top left.
38
- * @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`.
39
- * @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`.
40
- * @prop --mds-modal-window-background: Set the background color of the window
41
- * @prop --mds-modal-window-overflow: Set the overflow of the window
42
- * @prop --mds-modal-window-shadow: Set the box shadow of the window
43
- * @prop --mds-modal-z-index: Set the z-index of the window when the component is opened
44
- */
31
+ * @prop --mds-modal-close-icon-color: Set the color of the close icon button to the top left.
32
+ * @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`.
33
+ * @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`.
34
+ * @prop --mds-modal-window-background: Set the background color of the window
35
+ * @prop --mds-modal-window-overflow: Set the overflow of the window
36
+ * @prop --mds-modal-window-shadow: Set the box shadow of the window
37
+ * @prop --mds-modal-z-index: Set the z-index of the window when the component is opened
38
+ */
45
39
 
46
40
  :host {
47
41
 
@@ -89,20 +83,20 @@
89
83
  }
90
84
 
91
85
  .button-close {
92
- top: 0rem;
93
- border-radius: 9999px;
94
- opacity: 0;
95
- transition-duration: 500ms;
96
- transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
97
86
 
98
- fill: var(--mds-modal-close-icon-color);
99
87
  --mds-button-background: transparent;
100
88
 
89
+ fill: var(--mds-modal-close-icon-color);
101
90
  height: auto;
102
91
  position: absolute;
103
92
  transform: translate(0, 24px) rotate(90deg);
104
93
  transform-origin: center;
105
94
  transition-property: opacity, outline, outline-offset, transform;
95
+ top: 0rem;
96
+ border-radius: 9999px;
97
+ opacity: 0;
98
+ transition-duration: 500ms;
99
+ transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
106
100
  }
107
101
 
108
102
  .button-close::part(icon) {
@@ -28,7 +28,6 @@ export class MdsModal {
28
28
  this.closeEvent.emit();
29
29
  }
30
30
  };
31
- this.stateOpened = undefined;
32
31
  this.opened = false;
33
32
  this.position = 'center';
34
33
  }
@@ -37,19 +36,14 @@ export class MdsModal {
37
36
  this.bottom = this.host.querySelector('[slot="bottom"]') !== null;
38
37
  this.top = this.host.querySelector('[slot="top"]') !== null;
39
38
  this.window = this.host.querySelector('[slot="window"]') !== null;
40
- this.stateOpened = this.opened;
41
- if (!this.window) {
42
- this.position = 'right';
43
- }
44
39
  if (this.window) {
45
40
  (_a = this.host.querySelector('[slot="window"]')) === null || _a === void 0 ? void 0 : _a.setAttribute('role', 'modal');
46
41
  }
47
42
  }
48
43
  componentWillRender() {
44
+ this.host.className = '';
49
45
  this.animationState = this.opened ? 'intro' : 'outro';
50
46
  this.host.classList.add(this.animationName());
51
- }
52
- componentDidRender() {
53
47
  this.animationDeelay = window.setTimeout(() => {
54
48
  this.animationState = this.animationState === 'intro' ? 'outro' : 'intro';
55
49
  this.host.classList.remove(this.animationName(this.animationState === 'intro' ? 'outro' : 'intro'));
@@ -70,16 +64,6 @@ export class MdsModal {
70
64
  this.km.detachEscapeBehavior();
71
65
  this.km.detachClickBehavior('close');
72
66
  }
73
- positionChange(_newValue, oldValue) {
74
- window.clearTimeout(this.animationDeelay);
75
- this.host.classList.remove(this.animationName('', oldValue));
76
- this.host.classList.remove(this.animationName('intro', oldValue));
77
- this.host.classList.remove(this.animationName('outro', oldValue));
78
- }
79
- openedChange(newValue) {
80
- this.stateOpened = newValue;
81
- window.clearTimeout(this.animationDeelay);
82
- }
83
67
  onModalCloseListener() {
84
68
  this.opened = false;
85
69
  }
@@ -87,11 +71,11 @@ export class MdsModal {
87
71
  this.opened = false;
88
72
  }
89
73
  render() {
90
- return (h(Host, { key: 'a019a83e46044ef3f9a8a7ce067075572883eeb5', "aria-modal": clsx(this.opened ? 'true' : 'false'), class: clsx(this.stateOpened && this.animationName('opened')), onClick: (e) => { this.closeModal(e); } }, this.window
74
+ return (h(Host, { key: 'e661211b675deb9fd6d6dfb1b6c9aa83f68a5a20', "aria-modal": clsx(this.opened ? 'true' : 'false'), class: clsx(this.opened && this.animationName('opened')), onClick: (e) => { this.closeModal(e); } }, this.window
91
75
  ? h("slot", { name: "window" })
92
76
  : h("div", { class: clsx('window', (this.top || this.bottom) && `window-${this.top ? '-top' : ''}${this.bottom ? '-bottom' : ''}`), role: "dialog", part: "window" }, this.top &&
93
77
  h("slot", { name: "top" }), h("slot", null), this.bottom &&
94
- h("slot", { name: "bottom" })), !this.window && h("mds-button", { key: '85cd20e29302e815996cf1b736fc108c05f2ec4a', icon: miBaselineClose, onClick: (e) => { this.closeModal(e); }, class: "button-close" })));
78
+ h("slot", { name: "bottom" })), !this.window && h("mds-button", { key: 'a61b52009cc0a463be930f02e33b64e4575460ee', icon: miBaselineClose, onClick: (e) => { this.closeModal(e); }, class: "button-close" })));
95
79
  }
96
80
  static get is() { return "mds-modal"; }
97
81
  static get encapsulation() { return "shadow"; }
@@ -151,11 +135,6 @@ export class MdsModal {
151
135
  }
152
136
  };
153
137
  }
154
- static get states() {
155
- return {
156
- "stateOpened": {}
157
- };
158
- }
159
138
  static get events() {
160
139
  return [{
161
140
  "method": "closeEvent",
@@ -175,15 +154,6 @@ export class MdsModal {
175
154
  }];
176
155
  }
177
156
  static get elementRef() { return "host"; }
178
- static get watchers() {
179
- return [{
180
- "propName": "position",
181
- "methodName": "positionChange"
182
- }, {
183
- "propName": "opened",
184
- "methodName": "openedChange"
185
- }];
186
- }
187
157
  static get listeners() {
188
158
  return [{
189
159
  "name": "mdsModalClose",
@@ -27,4 +27,9 @@ const buttonIconPositionDictionary = [
27
27
  'left',
28
28
  'right',
29
29
  ];
30
- export { buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneVariantDictionary, buttonVariantDictionary, };
30
+ const buttonTypeDictionary = [
31
+ 'button',
32
+ 'submit',
33
+ 'reset',
34
+ ];
35
+ export { buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneVariantDictionary, buttonTypeDictionary, buttonVariantDictionary, };
@@ -83,8 +83,13 @@ const toneSimpleVariantDictionary = [
83
83
  'weak',
84
84
  'quiet',
85
85
  ];
86
+ const toneSmartVariantDictionary = [
87
+ 'strong',
88
+ 'weak',
89
+ 'ghost',
90
+ ];
86
91
  const toneMinimalVariantDictionary = [
87
92
  'strong',
88
93
  'weak',
89
94
  ];
90
- export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
95
+ export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneSmartVariantDictionary, toneVariantDictionary, };
@@ -0,0 +1 @@
1
+ export {};