@maggioli-design-system/mds-modal 1.3.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/cjs/{index-c8c3e8b2.js → index-6f89e656.js} +6 -4
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-modal.cjs.entry.js +2 -2
  4. package/dist/cjs/mds-modal.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/mds-modal/mds-modal.css +197 -44
  7. package/dist/collection/components/mds-modal/test/mds-modal.stories.js +29 -51
  8. package/dist/collection/dictionary/floating-ui.js +19 -0
  9. package/dist/collection/dictionary/typography.js +19 -3
  10. package/dist/collection/types/floating-ui.js +1 -0
  11. package/dist/components/index.d.ts +2 -6
  12. package/dist/components/index.js +1 -0
  13. package/dist/components/mds-modal.js +1 -1
  14. package/dist/esm/{index-d7a302c9.js → index-7c9adc93.js} +6 -4
  15. package/dist/esm/loader.js +2 -2
  16. package/dist/esm/mds-modal.entry.js +2 -2
  17. package/dist/esm/mds-modal.js +2 -2
  18. package/dist/esm/polyfills/css-shim.js +1 -1
  19. package/dist/esm-es5/{index-d7a302c9.js → index-7c9adc93.js} +2 -1
  20. package/dist/esm-es5/loader.js +1 -1
  21. package/dist/esm-es5/mds-modal.entry.js +1 -1
  22. package/dist/esm-es5/mds-modal.js +1 -1
  23. package/dist/mds-modal/mds-modal.esm.js +1 -1
  24. package/dist/mds-modal/mds-modal.js +1 -1
  25. package/dist/mds-modal/p-4e7d20d9.system.entry.js +1 -0
  26. package/{www/build/p-8d0fb641.system.js → dist/mds-modal/p-656f0e04.system.js} +2 -1
  27. package/dist/mds-modal/p-b8cb7be9.js +2 -0
  28. package/dist/mds-modal/{p-ad0848cd.system.js → p-bd6bb90a.system.js} +1 -1
  29. package/dist/mds-modal/p-f8c5b0c2.entry.js +1 -0
  30. package/dist/stats.json +43 -35
  31. package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +26 -0
  32. package/dist/types/components.d.ts +5 -1
  33. package/dist/types/dictionary/floating-ui.d.ts +3 -0
  34. package/dist/types/dictionary/typography.d.ts +6 -3
  35. package/dist/types/types/floating-ui.d.ts +2 -0
  36. package/dist/types/types/typography.d.ts +5 -2
  37. package/package.json +6 -3
  38. package/src/components/mds-modal/.gitlab-ci.yml +25 -0
  39. package/src/components/mds-modal/mds-modal.css +19 -8
  40. package/src/components/mds-modal/test/mds-modal.e2e.ts +10 -2
  41. package/src/components/mds-modal/test/{mds-modal.stories.js → mds-modal.stories.tsx} +8 -10
  42. package/src/components.d.ts +5 -1
  43. package/src/dictionary/floating-ui.ts +25 -0
  44. package/src/dictionary/typography.ts +26 -4
  45. package/src/fixtures/icons.json +11 -1
  46. package/src/types/floating-ui.ts +17 -0
  47. package/src/types/typography.ts +18 -2
  48. package/www/build/mds-modal.esm.js +1 -1
  49. package/www/build/mds-modal.js +1 -1
  50. package/www/build/p-4e7d20d9.system.entry.js +1 -0
  51. package/{dist/mds-modal/p-8d0fb641.system.js → www/build/p-656f0e04.system.js} +2 -1
  52. package/www/build/p-b8cb7be9.js +2 -0
  53. package/www/build/{p-ad0848cd.system.js → p-bd6bb90a.system.js} +1 -1
  54. package/www/build/p-f8c5b0c2.entry.js +1 -0
  55. package/dist/mds-modal/p-0405f81e.js +0 -1
  56. package/dist/mds-modal/p-50a5cce5.system.entry.js +0 -1
  57. package/dist/mds-modal/p-fd0cd402.entry.js +0 -1
  58. package/www/build/p-0405f81e.js +0 -1
  59. package/www/build/p-50a5cce5.system.entry.js +0 -1
  60. package/www/build/p-fd0cd402.entry.js +0 -1
@@ -110,7 +110,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
110
110
  };
111
111
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
112
112
  let scopeId = getScopeId(cmpMeta);
113
- let style = styles.get(scopeId);
113
+ const style = styles.get(scopeId);
114
114
  // if an element is NOT connected then getRootNode() will return the wrong root node
115
115
  // so the fallback is to always use the document for the root node in those cases
116
116
  styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
@@ -190,7 +190,7 @@ const h = (nodeName, vnodeData, ...children) => {
190
190
  let child = null;
191
191
  let simple = false;
192
192
  let lastSimple = false;
193
- let vNodeChildren = [];
193
+ const vNodeChildren = [];
194
194
  const walk = (c) => {
195
195
  for (let i = 0; i < c.length; i++) {
196
196
  child = c[i];
@@ -313,7 +313,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
313
313
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
314
314
  try {
315
315
  if (!elm.tagName.includes('-')) {
316
- let n = newValue == null ? '' : newValue;
316
+ const n = newValue == null ? '' : newValue;
317
317
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
318
318
  if (memberName === 'list') {
319
319
  isProp = false;
@@ -370,7 +370,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
370
370
  };
371
371
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
372
372
  // tslint:disable-next-line: prefer-const
373
- let newVNode = newParentVNode.$children$[childIndex];
373
+ const newVNode = newParentVNode.$children$[childIndex];
374
374
  let i = 0;
375
375
  let elm;
376
376
  let childNode;
@@ -1203,7 +1203,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1203
1203
  if (module) {
1204
1204
  return module[exportName];
1205
1205
  }
1206
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1206
1207
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1208
+ /* @vite-ignore */
1207
1209
  /* webpackInclude: /\.entry\.js$/ */
1208
1210
  /* webpackExclude: /\.system\.entry\.js$/ */
1209
1211
  /* webpackMode: "lazy" */
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c8c3e8b2.js');
5
+ const index = require('./index-6f89e656.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.14.2 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c8c3e8b2.js');
5
+ const index = require('./index-6f89e656.js');
6
6
 
7
7
  function toVal(mix) {
8
8
  var k, y, str='';
@@ -47,7 +47,7 @@ function clsx () {
47
47
 
48
48
  const miBaselineClose = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"/></svg>`;
49
49
 
50
- const mdsModalCss = "@tailwind components; .border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.svg{display:-ms-flexbox;display:flex}.svg svg{aspect-ratio:1 / 1;height:100%;width:100%}.animate-left,.animate-right{opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}.animate-right-intro,.animate-right-outro{-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host{pointer-events:none;position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:rgba(var(--adjust-tone-01), var(--tw-bg-opacity));--tw-bg-opacity:0;-webkit-transition-duration:700ms;transition-duration:700ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);-webkit-perspective:600px;perspective:600px}:host([position=top]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position=bottom]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}:host(.animate-bottom-opened),:host(.animate-center-opened),:host(.animate-left-opened),:host(.animate-right-opened),:host(.animate-top-opened){pointer-events:auto;--tw-bg-opacity:0.5;-webkit-transition-duration:500ms;transition-duration:500ms}.close{position:absolute;top:0px;height:2.25rem;width:2.25rem;-webkit-transform-origin:center;transform-origin:center;cursor:pointer;fill:rgb(var(--adjust-tone-10));font-size:2.25rem;line-height:2.5rem;opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);-webkit-transform:translate(0, 24px) rotate(90deg);transform:translate(0, 24px) rotate(90deg)}.window{display:grid;height:100%;gap:0px;overflow:auto;background-color:var(--window-background, rgb(var(--adjust-tone)));-webkit-box-shadow:var(--window-shadow, 0 25px 50px -12px rgb(0 0 0 / 0.25));box-shadow:var(--window-shadow, 0 25px 50px -12px rgb(0 0 0 / 0.25));grid-template-rows:1fr;max-width:calc(100vw - 80px)}.window--top{grid-template-rows:auto 1fr}.window--bottom{grid-template-rows:1fr auto}.window--top-bottom{grid-template-rows:auto 1fr auto}:host(.animate-bottom){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.animate-bottom){padding:1rem}}:host(.animate-bottom) .window,:host(.animate-bottom)>::slotted([slot=window]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.animate-bottom-intro) .window,:host(.animate-bottom-intro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.animate-bottom-opened.animate-bottom-outro) .window,:host(.animate-bottom-opened.animate-bottom-outro)>::slotted([slot=window]),:host(.animate-bottom-opened) .window,:host(.animate-bottom-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.animate-bottom-outro) .window,:host(.animate-bottom-outro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.animate-center){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.animate-center){padding:1rem}}:host(.animate-center) .window,:host(.animate-center)>::slotted([slot=window]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.animate-center-intro) .window,:host(.animate-center-intro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.animate-center-opened.animate-center-outro) .window,:host(.animate-center-opened.animate-center-outro)>::slotted([slot=window]),:host(.animate-center-opened) .window,:host(.animate-center-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.animate-center-outro) .window,:host(.animate-center-outro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.animate-left){-ms-flex-pack:start;justify-content:flex-start}:host(.animate-left) .window,:host(.animate-left)>::slotted([slot=window]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.animate-left-intro) .window,:host(.animate-left-intro)>::slotted([slot=window]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.animate-left-opened.animate-left-outro) .window,:host(.animate-left-opened.animate-left-outro)>::slotted([slot=window]),:host(.animate-left-opened) .window,:host(.animate-left-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.animate-left-opened) .close,:host(.animate-left-opened.animate-left-outro) .close{opacity:1;-webkit-transform:translate(-24px, 24px) rotate(0);transform:translate(-24px, 24px) rotate(0)}:host(.animate-left-outro) .window,:host(.animate-left-outro)>::slotted([slot=window]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.animate-left-outro) .close{-webkit-transform:translate(24px, 24px) rotate(-90deg);transform:translate(24px, 24px) rotate(-90deg)}:host(.animate-left) .close{right:0px;-webkit-transform:translate(36px, 24px) rotate(90deg);transform:translate(36px, 24px) rotate(90deg)}:host(.animate-right){-ms-flex-pack:end;justify-content:flex-end}:host(.animate-right) .window,:host(.animate-right)>::slotted([slot=window]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.animate-right-intro) .window,:host(.animate-right-intro)>::slotted([slot=window]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.animate-right-opened.animate-right-outro) .window,:host(.animate-right-opened.animate-right-outro)>::slotted([slot=window]),:host(.animate-right-opened) .window,:host(.animate-right-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.animate-right-opened) .close,:host(.animate-right-opened.animate-right-outro) .close{opacity:1;-webkit-transform:translate(24px, 24px) rotate(0);transform:translate(24px, 24px) rotate(0)}:host(.animate-right-outro) .window,:host(.animate-right-outro)>::slotted([slot=window]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.animate-right-outro) .close{-webkit-transform:translate(-24px, 24px) rotate(90deg);transform:translate(-24px, 24px) rotate(90deg)}:host(.animate-right) .close{left:0px;-webkit-transform:translate(-36px, 24px) rotate(-90deg);transform:translate(-36px, 24px) rotate(-90deg)}:host(.animate-top){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.animate-top){padding:1rem}}:host(.animate-top) .window,:host(.animate-top)>::slotted([slot=window]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.animate-top-intro) .window,:host(.animate-top-intro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.animate-top-opened.animate-top-outro) .window,:host(.animate-top-opened.animate-top-outro)>::slotted([slot=window]),:host(.animate-top-opened) .window,:host(.animate-top-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.animate-top-outro) .window,:host(.animate-top-outro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}";
50
+ const mdsModalCss = "@tailwind components; .fixed{position:fixed}.absolute{position:absolute}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.ml-auto{margin-left:auto}.flex{display:-ms-flexbox;display:flex}.w-16{width:4rem}.min-w-0{min-width:0px}.max-w-lg{max-width:32rem}.max-w-xl{max-width:36rem}.items-center{-ms-flex-align:center;align-items:center}.gap-4{gap:1rem}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-tone-neutral-09{--tw-border-opacity:1;border-color:rgba(var(--tone-neutral-09), var(--tw-border-opacity))}.bg-transparent{background-color:transparent}.p-8{padding:2rem}.p-4{padding:1rem}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(var(--tone-neutral-04), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.svg{display:-ms-flexbox;display:flex}.svg svg{aspect-ratio:1 / 1;height:100%;width:100%}.animate-left,.animate-right{opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}.animate-right-intro,.animate-right-outro{-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host{--overlay-color:var(--overlay-color, 0 0 0);--overlay-opacity:var(--overlay-opacity, 0.5);--window-background:rgb(var(--tone-neutral));--window-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);pointer-events:none;position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition-duration:700ms;transition-duration:700ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);background-color:rgba(var(--overlay-color, 0 0 0) / 0);-webkit-perspective:600px;perspective:600px}:host([position=top]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position=bottom]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}:host(.animate-bottom-opened),:host(.animate-center-opened),:host(.animate-left-opened),:host(.animate-right-opened),:host(.animate-top-opened){pointer-events:auto;-webkit-transition-duration:500ms;transition-duration:500ms;background-color:rgba(var(--overlay-color, 0 0 0) / var(--overlay-opacity, 0.5))}.close{position:absolute;top:0px;height:2.25rem;width:2.25rem;-webkit-transform-origin:center;transform-origin:center;cursor:pointer;fill:rgb(var(--tone-neutral-10));font-size:2.25rem;line-height:2.5rem;opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);-webkit-transform:translate(0, 24px) rotate(90deg);transform:translate(0, 24px) rotate(90deg)}.window{display:grid;height:100%;gap:0px;overflow:auto;background-color:var(--window-background);-webkit-box-shadow:var(--window-shadow);box-shadow:var(--window-shadow);grid-template-rows:1fr;max-width:calc(100vw - 80px)}.window--top{grid-template-rows:auto 1fr}.window--bottom{grid-template-rows:1fr auto}.window--top-bottom{grid-template-rows:auto 1fr auto}:host(.animate-bottom){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.animate-bottom){padding:1rem}}:host(.animate-bottom) .window,:host(.animate-bottom)>::slotted([slot=window]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.animate-bottom-intro) .window,:host(.animate-bottom-intro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.animate-bottom-opened.animate-bottom-outro) .window,:host(.animate-bottom-opened.animate-bottom-outro)>::slotted([slot=window]),:host(.animate-bottom-opened) .window,:host(.animate-bottom-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.animate-bottom-outro) .window,:host(.animate-bottom-outro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.animate-center){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.animate-center){padding:1rem}}:host(.animate-center) .window,:host(.animate-center)>::slotted([slot=window]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.animate-center-intro) .window,:host(.animate-center-intro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.animate-center-opened.animate-center-outro) .window,:host(.animate-center-opened.animate-center-outro)>::slotted([slot=window]),:host(.animate-center-opened) .window,:host(.animate-center-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.animate-center-outro) .window,:host(.animate-center-outro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.animate-left){-ms-flex-pack:start;justify-content:flex-start}:host(.animate-left) .window,:host(.animate-left)>::slotted([slot=window]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.animate-left-intro) .window,:host(.animate-left-intro)>::slotted([slot=window]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.animate-left-opened.animate-left-outro) .window,:host(.animate-left-opened.animate-left-outro)>::slotted([slot=window]),:host(.animate-left-opened) .window,:host(.animate-left-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.animate-left-opened) .close,:host(.animate-left-opened.animate-left-outro) .close{opacity:1;-webkit-transform:translate(-24px, 24px) rotate(0);transform:translate(-24px, 24px) rotate(0)}:host(.animate-left-outro) .window,:host(.animate-left-outro)>::slotted([slot=window]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.animate-left-outro) .close{-webkit-transform:translate(24px, 24px) rotate(-90deg);transform:translate(24px, 24px) rotate(-90deg)}:host(.animate-left) .close{right:0px;-webkit-transform:translate(36px, 24px) rotate(90deg);transform:translate(36px, 24px) rotate(90deg)}:host(.animate-right){-ms-flex-pack:end;justify-content:flex-end}:host(.animate-right) .window,:host(.animate-right)>::slotted([slot=window]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.animate-right-intro) .window,:host(.animate-right-intro)>::slotted([slot=window]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.animate-right-opened.animate-right-outro) .window,:host(.animate-right-opened.animate-right-outro)>::slotted([slot=window]),:host(.animate-right-opened) .window,:host(.animate-right-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.animate-right-opened) .close,:host(.animate-right-opened.animate-right-outro) .close{opacity:1;-webkit-transform:translate(24px, 24px) rotate(0);transform:translate(24px, 24px) rotate(0)}:host(.animate-right-outro) .window,:host(.animate-right-outro)>::slotted([slot=window]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.animate-right-outro) .close{-webkit-transform:translate(-24px, 24px) rotate(90deg);transform:translate(-24px, 24px) rotate(90deg)}:host(.animate-right) .close{left:0px;-webkit-transform:translate(-36px, 24px) rotate(-90deg);transform:translate(-36px, 24px) rotate(-90deg)}:host(.animate-top){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.animate-top){padding:1rem}}:host(.animate-top) .window,:host(.animate-top)>::slotted([slot=window]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.animate-top-intro) .window,:host(.animate-top-intro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.animate-top-opened.animate-top-outro) .window,:host(.animate-top-opened.animate-top-outro)>::slotted([slot=window]),:host(.animate-top-opened) .window,:host(.animate-top-opened)>::slotted([slot=window]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.animate-top-outro) .window,:host(.animate-top-outro)>::slotted([slot=window]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}@media (max-width: 767px){.mobile\\:w-12{width:3rem}}";
51
51
 
52
52
  const MdsModal = class {
53
53
  constructor(hostRef) {
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-c8c3e8b2.js');
3
+ const index = require('./index-6f89e656.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.14.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-modal.cjs.js', document.baseURI).href));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.14.2",
7
+ "version": "2.17.0",
8
8
  "typescriptVersion": "4.5.4"
9
9
  },
10
10
  "collections": [],
@@ -1,7 +1,76 @@
1
1
  @tailwind components;
2
+ .fixed{
3
+ position: fixed;
4
+ }
5
+ .absolute{
6
+ position: absolute;
7
+ }
8
+ .mx-6{
9
+ margin-left: 1.5rem;
10
+ margin-right: 1.5rem;
11
+ }
12
+ .ml-auto{
13
+ margin-left: auto;
14
+ }
15
+ .flex{
16
+ display: flex;
17
+ }
18
+ .w-16{
19
+ width: 4rem;
20
+ }
21
+ .min-w-0{
22
+ min-width: 0px;
23
+ }
24
+ .max-w-lg{
25
+ max-width: 32rem;
26
+ }
27
+ .max-w-xl{
28
+ max-width: 36rem;
29
+ }
30
+ .items-center{
31
+ align-items: center;
32
+ }
33
+ .gap-4{
34
+ gap: 1rem;
35
+ }
36
+ .truncate{
37
+ overflow: hidden;
38
+ text-overflow: ellipsis;
39
+ white-space: nowrap;
40
+ }
41
+ .rounded-full{
42
+ border-radius: 9999px;
43
+ }
2
44
  .border{
3
45
  border-width: 1px;
4
46
  }
47
+ .border-b{
48
+ border-bottom-width: 1px;
49
+ }
50
+ .border-t{
51
+ border-top-width: 1px;
52
+ }
53
+ .border-tone-neutral-09{
54
+ --tw-border-opacity: 1;
55
+ border-color: rgba(var(--tone-neutral-09), var(--tw-border-opacity));
56
+ }
57
+ .bg-transparent{
58
+ background-color: transparent;
59
+ }
60
+ .p-8{
61
+ padding: 2rem;
62
+ }
63
+ .p-4{
64
+ padding: 1rem;
65
+ }
66
+ .text-tone-neutral-02{
67
+ --tw-text-opacity: 1;
68
+ color: rgba(var(--tone-neutral-02), var(--tw-text-opacity));
69
+ }
70
+ .text-tone-neutral-04{
71
+ --tw-text-opacity: 1;
72
+ color: rgba(var(--tone-neutral-04), var(--tw-text-opacity));
73
+ }
5
74
  .shadow{
6
75
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
7
76
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
@@ -15,7 +84,8 @@
15
84
  height: 100%;
16
85
  width: 100%;
17
86
  }
18
- .animate-left, .animate-right{
87
+ .animate-left,
88
+ .animate-right{
19
89
  opacity: 0;
20
90
  transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
21
91
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -27,21 +97,33 @@
27
97
  transform: translateX(calc(100% + 50px));
28
98
  }
29
99
 
30
- :host{
31
- pointer-events: none;
32
- position: fixed;
33
- top: 0px;
34
- right: 0px;
35
- bottom: 0px;
36
- left: 0px;
37
- display: flex;
38
- align-items: center;
39
- justify-content: center;
40
- background-color: rgba(var(--adjust-tone-01), var(--tw-bg-opacity));
41
- --tw-bg-opacity: 0;
42
- transition-duration: 700ms;
43
- transition-timing-function: cubic-bezier(1, 0, 0, 1);
44
100
 
101
+ /*
102
+ * @prop --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`.
103
+ * @prop --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`.
104
+ * @prop --window-background: Set the background color of the window when the component is opened
105
+ * @prop --window-shadow: Set the box-shadow of the window when the component is opened
106
+ */
107
+
108
+ :host {
109
+
110
+ --overlay-color: var(--overlay-color, 0 0 0);
111
+ --overlay-opacity: var(--overlay-opacity, 0.5);
112
+ --window-background: rgb(var(--tone-neutral));
113
+ --window-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
114
+ pointer-events: none;
115
+ position: fixed;
116
+ top: 0px;
117
+ right: 0px;
118
+ bottom: 0px;
119
+ left: 0px;
120
+ display: flex;
121
+ align-items: center;
122
+ justify-content: center;
123
+ transition-duration: 700ms;
124
+ transition-timing-function: cubic-bezier(1, 0, 0, 1);
125
+
126
+ background-color: rgba(var(--overlay-color, 0 0 0) / 0);
45
127
  perspective: 600px;
46
128
  }
47
129
 
@@ -55,10 +137,15 @@
55
137
  justify-content: center;
56
138
  }
57
139
 
58
- :host ( .animate-bottom-opened ), :host ( .animate-center-opened ), :host ( .animate-left-opened ), :host ( .animate-right-opened ), :host ( .animate-top-opened ){
140
+ :host ( .animate-bottom-opened ),
141
+ :host ( .animate-center-opened ),
142
+ :host ( .animate-left-opened ),
143
+ :host ( .animate-right-opened ),
144
+ :host ( .animate-top-opened ){
59
145
  pointer-events: auto;
60
- --tw-bg-opacity: 0.5;
61
146
  transition-duration: 500ms;
147
+
148
+ background-color: rgba(var(--overlay-color, 0 0 0) / var(--overlay-opacity, 0.5));
62
149
  }
63
150
 
64
151
  .close{
@@ -68,7 +155,7 @@
68
155
  width: 2.25rem;
69
156
  transform-origin: center;
70
157
  cursor: pointer;
71
- fill: rgb(var(--adjust-tone-10));
158
+ fill: rgb(var(--tone-neutral-10));
72
159
  font-size: 2.25rem;
73
160
  line-height: 2.5rem;
74
161
  opacity: 0;
@@ -86,11 +173,9 @@
86
173
  gap: 0px;
87
174
  overflow: auto;
88
175
 
89
- background-color: var(--window-background, rgb(var(--adjust-tone)));
90
- box-shadow: var(--window-shadow, 0 25px 50px -12px rgb(0 0 0 / 0.25));
176
+ background-color: var(--window-background);
177
+ box-shadow: var(--window-shadow);
91
178
  grid-template-rows: 1fr;
92
-
93
- /* grid-template-rows: var(--grid-template-rows, auto 1fr auto); */
94
179
  max-width: calc(100vw - 80px);
95
180
  }
96
181
 
@@ -117,7 +202,8 @@
117
202
  }
118
203
  }
119
204
 
120
- :host ( .animate-bottom ) .window, :host ( .animate-bottom ) > ::slotted ( [slot=window] ){
205
+ :host ( .animate-bottom ) .window,
206
+ :host ( .animate-bottom ) > ::slotted ( [slot=window] ){
121
207
  opacity: 0;
122
208
  transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
123
209
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -125,17 +211,22 @@
125
211
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
126
212
  }
127
213
 
128
- :host ( .animate-bottom-intro ) .window, :host ( .animate-bottom-intro ) > ::slotted ( [slot=window] ) {
214
+ :host ( .animate-bottom-intro ) .window,
215
+ :host ( .animate-bottom-intro ) > ::slotted ( [slot=window] ) {
129
216
  transform: rotateX(-22deg) scale(0.5) translateY(40%);
130
217
  }
131
218
 
132
- :host ( .animate-bottom-opened.animate-bottom-outro ) .window, :host ( .animate-bottom-opened.animate-bottom-outro ) > ::slotted ( [slot=window] ), :host ( .animate-bottom-opened ) .window, :host ( .animate-bottom-opened ) > ::slotted ( [slot=window] ){
219
+ :host ( .animate-bottom-opened.animate-bottom-outro ) .window,
220
+ :host ( .animate-bottom-opened.animate-bottom-outro ) > ::slotted ( [slot=window] ),
221
+ :host ( .animate-bottom-opened ) .window,
222
+ :host ( .animate-bottom-opened ) > ::slotted ( [slot=window] ){
133
223
  opacity: 1;
134
224
 
135
225
  transform: rotateX(0) scale(1) translateY(0);
136
226
  }
137
227
 
138
- :host ( .animate-bottom-outro ) .window, :host ( .animate-bottom-outro ) > ::slotted ( [slot=window] ) {
228
+ :host ( .animate-bottom-outro ) .window,
229
+ :host ( .animate-bottom-outro ) > ::slotted ( [slot=window] ) {
139
230
  transform: rotateX(-22deg) scale(0.5) translateY(-40%);
140
231
  }
141
232
 
@@ -150,7 +241,10 @@
150
241
  }
151
242
  }
152
243
 
153
- :host ( .animate-center ) .window, :host ( .animate-center ) > ::slotted ( [slot=window] ){
244
+
245
+ :host ( .animate-center ) .window,
246
+
247
+ :host ( .animate-center ) > ::slotted ( [slot=window] ){
154
248
  opacity: 0;
155
249
  transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
156
250
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -158,17 +252,30 @@
158
252
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
159
253
  }
160
254
 
161
- :host ( .animate-center-intro ) .window, :host ( .animate-center-intro ) > ::slotted ( [slot=window] ) {
255
+
256
+ :host ( .animate-center-intro ) .window,
257
+
258
+ :host ( .animate-center-intro ) > ::slotted ( [slot=window] ) {
162
259
  transform: rotateX(-22deg) scale(0.5) translateY(40%);
163
260
  }
164
261
 
165
- :host ( .animate-center-opened.animate-center-outro ) .window, :host ( .animate-center-opened.animate-center-outro ) > ::slotted ( [slot=window] ), :host ( .animate-center-opened ) .window, :host ( .animate-center-opened ) > ::slotted ( [slot=window] ){
262
+
263
+ :host ( .animate-center-opened.animate-center-outro ) .window,
264
+
265
+ :host ( .animate-center-opened.animate-center-outro ) > ::slotted ( [slot=window] ),
266
+
267
+ :host ( .animate-center-opened ) .window,
268
+
269
+ :host ( .animate-center-opened ) > ::slotted ( [slot=window] ){
166
270
  opacity: 1;
167
271
 
168
272
  transform: rotateX(0) scale(1) translateY(0);
169
273
  }
170
274
 
171
- :host ( .animate-center-outro ) .window, :host ( .animate-center-outro ) > ::slotted ( [slot=window] ) {
275
+
276
+ :host ( .animate-center-outro ) .window,
277
+
278
+ :host ( .animate-center-outro ) > ::slotted ( [slot=window] ) {
172
279
  transform: rotateX(-22deg) scale(0.5) translateY(-40%);
173
280
  }
174
281
 
@@ -176,7 +283,8 @@
176
283
  justify-content: flex-start;
177
284
  }
178
285
 
179
- :host ( .animate-left ) .window, :host ( .animate-left ) > ::slotted ( [slot=window] ){
286
+ :host ( .animate-left ) .window,
287
+ :host ( .animate-left ) > ::slotted ( [slot=window] ){
180
288
  opacity: 0;
181
289
  transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
182
290
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -184,23 +292,35 @@
184
292
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
185
293
  }
186
294
 
187
- :host ( .animate-left-intro ) .window, :host ( .animate-left-intro ) > ::slotted ( [slot=window] ) {
295
+ :host ( .animate-left-intro ) .window,
296
+ :host ( .animate-left-intro ) > ::slotted ( [slot=window] ) {
188
297
  transform: translateX(calc(-100% - 50px));
189
298
  }
190
299
 
191
- :host ( .animate-left-opened.animate-left-outro ) .window, :host ( .animate-left-opened.animate-left-outro ) > ::slotted ( [slot=window] ), :host ( .animate-left-opened ) .window, :host ( .animate-left-opened ) > ::slotted ( [slot=window] ){
300
+
301
+ :host ( .animate-left-opened.animate-left-outro ) .window,
302
+
303
+ :host ( .animate-left-opened.animate-left-outro ) > ::slotted ( [slot=window] ),
304
+
305
+ :host ( .animate-left-opened ) .window,
306
+
307
+ :host ( .animate-left-opened ) > ::slotted ( [slot=window] ){
192
308
  opacity: 1;
193
309
 
194
310
  transform: translateX(0);
195
311
  }
196
312
 
197
- :host ( .animate-left-opened ) .close, :host ( .animate-left-opened.animate-left-outro ) .close{
313
+ :host ( .animate-left-opened ) .close,
314
+ :host ( .animate-left-opened.animate-left-outro ) .close{
198
315
  opacity: 1;
199
316
 
200
317
  transform: translate(-24px, 24px) rotate(0);
201
318
  }
202
319
 
203
- :host ( .animate-left-outro ) .window, :host ( .animate-left-outro ) > ::slotted ( [slot=window] ) {
320
+
321
+ :host ( .animate-left-outro ) .window,
322
+
323
+ :host ( .animate-left-outro ) > ::slotted ( [slot=window] ) {
204
324
  transform: translateX(calc(-100% - 50px));
205
325
  }
206
326
 
@@ -218,7 +338,10 @@
218
338
  justify-content: flex-end;
219
339
  }
220
340
 
221
- :host ( .animate-right ) .window, :host ( .animate-right ) > ::slotted ( [slot=window] ){
341
+
342
+ :host ( .animate-right ) .window,
343
+
344
+ :host ( .animate-right ) > ::slotted ( [slot=window] ){
222
345
  opacity: 0;
223
346
  transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
224
347
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -226,23 +349,31 @@
226
349
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
227
350
  }
228
351
 
229
- :host ( .animate-right-intro ) .window, :host ( .animate-right-intro ) > ::slotted ( [slot=window] ) {
352
+ :host ( .animate-right-intro ) .window,
353
+ :host ( .animate-right-intro ) > ::slotted ( [slot=window] ) {
230
354
  transform: translateX(calc(100% + 50px));
231
355
  }
232
356
 
233
- :host ( .animate-right-opened.animate-right-outro ) .window, :host ( .animate-right-opened.animate-right-outro ) > ::slotted ( [slot=window] ), :host ( .animate-right-opened ) .window, :host ( .animate-right-opened ) > ::slotted ( [slot=window] ){
357
+ :host ( .animate-right-opened.animate-right-outro ) .window,
358
+ :host ( .animate-right-opened.animate-right-outro ) > ::slotted ( [slot=window] ),
359
+ :host ( .animate-right-opened ) .window,
360
+ :host ( .animate-right-opened ) > ::slotted ( [slot=window] ){
234
361
  opacity: 1;
235
362
 
236
363
  transform: translateX(0);
237
364
  }
238
365
 
239
- :host ( .animate-right-opened ) .close, :host ( .animate-right-opened.animate-right-outro ) .close{
366
+ :host ( .animate-right-opened ) .close,
367
+ :host ( .animate-right-opened.animate-right-outro ) .close{
240
368
  opacity: 1;
241
369
 
242
370
  transform: translate(24px, 24px) rotate(0);
243
371
  }
244
372
 
245
- :host ( .animate-right-outro ) .window, :host ( .animate-right-outro ) > ::slotted ( [slot=window] ) {
373
+
374
+ :host ( .animate-right-outro ) .window,
375
+
376
+ :host ( .animate-right-outro ) > ::slotted ( [slot=window] ) {
246
377
  transform: translateX(calc(100% + 50px));
247
378
  }
248
379
 
@@ -267,7 +398,10 @@
267
398
  }
268
399
  }
269
400
 
270
- :host ( .animate-top ) .window, :host ( .animate-top ) > ::slotted ( [slot=window] ){
401
+
402
+ :host ( .animate-top ) .window,
403
+
404
+ :host ( .animate-top ) > ::slotted ( [slot=window] ){
271
405
  opacity: 0;
272
406
  transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
273
407
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -275,17 +409,36 @@
275
409
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
276
410
  }
277
411
 
278
- :host ( .animate-top-intro ) .window, :host ( .animate-top-intro ) > ::slotted ( [slot=window] ) {
412
+
413
+ :host ( .animate-top-intro ) .window,
414
+
415
+ :host ( .animate-top-intro ) > ::slotted ( [slot=window] ) {
279
416
  transform: rotateX(-22deg) scale(0.5) translateY(40%);
280
417
  }
281
418
 
282
- :host ( .animate-top-opened.animate-top-outro ) .window, :host ( .animate-top-opened.animate-top-outro ) > ::slotted ( [slot=window] ), :host ( .animate-top-opened ) .window, :host ( .animate-top-opened ) > ::slotted ( [slot=window] ){
419
+
420
+ :host ( .animate-top-opened.animate-top-outro ) .window,
421
+
422
+ :host ( .animate-top-opened.animate-top-outro ) > ::slotted ( [slot=window] ),
423
+
424
+ :host ( .animate-top-opened ) .window,
425
+
426
+ :host ( .animate-top-opened ) > ::slotted ( [slot=window] ){
283
427
  opacity: 1;
284
428
 
285
429
  transform: rotateX(0) scale(1) translateY(0);
286
430
  }
287
431
 
288
- :host ( .animate-top-outro ) .window, :host ( .animate-top-outro ) > ::slotted ( [slot=window] ) {
432
+
433
+ :host ( .animate-top-outro ) .window,
434
+
435
+ :host ( .animate-top-outro ) > ::slotted ( [slot=window] ) {
289
436
  transform: rotateX(-22deg) scale(0.5) translateY(-40%);
290
437
  }
291
438
 
439
+ @media (max-width: 767px){
440
+ .mobile\:w-12{
441
+ width: 3rem;
442
+ }
443
+ }
444
+
@@ -1,11 +1,7 @@
1
- import React from 'react'
2
- import MdsModal from '@component/mds-modal/mds-modal'
3
-
4
- import { modalPositionDictionary } from '../meta/dictionary'
5
-
1
+ import { h } from '@stencil/core';
2
+ import { modalPositionDictionary } from '../meta/dictionary';
6
3
  export default {
7
4
  title: 'UI / Modal',
8
- component: MdsModal,
9
5
  argTypes: {
10
6
  opened: {
11
7
  description: 'Specifies if the modal is opened or not',
@@ -16,49 +12,31 @@ export default {
16
12
  description: 'Specifies the animation position of the modal window',
17
13
  options: modalPositionDictionary,
18
14
  type: { name: 'string', required: false },
19
- }
15
+ },
20
16
  },
21
- }
22
-
23
- const firstName = 'Mario'
24
- const lastName = 'Rossi'
25
- const fullName = `${firstName} ${lastName}`
26
- const email = `${firstName.toLowerCase()}.${lastName.toLowerCase()}@nintendo.com`
27
-
28
- const Template = args =>
29
- <mds-modal {...args}>
30
- <header slot="top" className="p-8 max-w-lg flex gap-4 items-center border-b border-adjust-tone-09">
31
- <mds-img class="w-16" src="/logo-gruppo-maggioli-512w.webp"/>
32
- <div className="text-adjust-tone-02">
33
- <mds-text typography="h5" class="truncate min-w-0">Maggioli Editore</mds-text>
34
- <mds-text typography="detail" class="truncate min-w-0">Menu di servizio</mds-text>
35
- </div>
36
- </header>
37
- <div className="p-8 max-w-lg">
38
- <mds-text>
39
- As a multi-brand design system, our components need to be flexible enough for any one of our brands to use them for multiple use cases. To achieve this, we ensure that all of the brands are involved in the specification stage, giving us more confidence that we’re future-proofing our components as more brands adopt NewsKit.
40
- </mds-text>
41
- </div>
42
- <footer slot="bottom" className="p-8 max-w-lg flex gap-4 text-adjust-tone-02 border-t border-adjust-tone-09">
43
- <mds-author>
44
- <mds-avatar slot="avatar" class="w-16 mobile:w-12" src="/avatar-01-200x200.jpeg"/>
45
- <mds-text typography="h6" class="truncate min-w-0">{ fullName }</mds-text>
46
- <mds-text typography="caption" class="text-adjust-tone-04 truncate min-w-0">{ email }</mds-text>
47
- </mds-author>
48
- <mds-button icon="menu-more" class="ml-auto bg-transparent text-adjust-tone-02 p-4 border border-adjust-tone-09 rounded-full"/>
49
- </footer>
50
- </mds-modal>
51
-
52
- const CustomTemplate = args =>
53
- <mds-modal {...args}>
54
- <mds-banner slot="window" class="max-w-xl mx-6" deletable headline="Action required">
55
- <mds-text typography="detail">
56
- As a multi-brand design system, our components need to be flexible enough for any one of our brands to use them for multiple use cases. To achieve this, we ensure that all of the brands are involved in the specification stage, giving us more confidence that we’re future-proofing our components as more brands adopt NewsKit.
57
- </mds-text>
58
- <mds-button slot="actions" variant="primary" tone="quiet">Cancel</mds-button>
59
- <mds-button slot="actions" variant="primary">Confirm</mds-button>
60
- </mds-banner>
61
- </mds-modal>
62
-
63
- export const Default = Template.bind({})
64
- export const CustomWindow = CustomTemplate.bind({})
17
+ };
18
+ const firstName = 'Mario';
19
+ const lastName = 'Rossi';
20
+ const fullName = `${firstName} ${lastName}`;
21
+ const email = `${firstName.toLowerCase()}.${lastName.toLowerCase()}@nintendo.com`;
22
+ const Template = args => h("mds-modal", Object.assign({}, args),
23
+ h("header", { slot: "top", class: "p-8 max-w-lg flex gap-4 items-center border-b border-tone-neutral-09" },
24
+ h("mds-img", { class: "w-16", src: "/logo-gruppo-maggioli-512w.webp" }),
25
+ h("div", { class: "text-tone-neutral-02" },
26
+ h("mds-text", { typography: "h5", class: "truncate min-w-0" }, "Maggioli Editore"),
27
+ h("mds-text", { typography: "detail", class: "truncate min-w-0" }, "Menu di servizio"))),
28
+ h("div", { class: "p-8 max-w-lg" },
29
+ h("mds-text", null, "As a multi-brand design system, our components need to be flexible enough for any one of our brands to use them for multiple use cases. To achieve this, we ensure that all of the brands are involved in the specification stage, giving us more confidence that we\u2019re future-proofing our components as more brands adopt NewsKit.")),
30
+ h("footer", { slot: "bottom", class: "p-8 max-w-lg flex gap-4 text-tone-neutral-02 border-t border-tone-neutral-09" },
31
+ h("mds-author", null,
32
+ h("mds-avatar", { slot: "avatar", class: "w-16 mobile:w-12", src: "/avatar-01-200x200.jpeg" }),
33
+ h("mds-text", { typography: "h6", class: "truncate min-w-0" }, fullName),
34
+ h("mds-text", { typography: "caption", class: "text-tone-neutral-04 truncate min-w-0" }, email)),
35
+ h("mds-button", { icon: "mdi/dots-vertical", class: "ml-auto bg-transparent text-tone-neutral-02 p-4 border border-tone-neutral-09 rounded-full" })));
36
+ const CustomTemplate = args => h("mds-modal", Object.assign({}, args),
37
+ h("mds-banner", { slot: "window", class: "max-w-xl mx-6", deletable: true, headline: "Action required" },
38
+ h("mds-text", { typography: "detail" }, "As a multi-brand design system, our components need to be flexible enough for any one of our brands to use them for multiple use cases. To achieve this, we ensure that all of the brands are involved in the specification stage, giving us more confidence that we\u2019re future-proofing our components as more brands adopt NewsKit."),
39
+ h("mds-button", { slot: "actions", variant: "primary", tone: "quiet" }, "Cancel"),
40
+ h("mds-button", { slot: "actions", variant: "primary" }, "Confirm")));
41
+ export const Default = Template.bind({});
42
+ export const CustomWindow = CustomTemplate.bind({});