@maggioli-design-system/mds-modal 4.7.3 → 4.9.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 (94) hide show
  1. package/dist/cjs/mds-modal.cjs.entry.js +2 -2
  2. package/dist/cjs/mds-modal.cjs.js +1 -1
  3. package/dist/collection/collection-manifest.json +2 -2
  4. package/dist/collection/common/file.js +48 -0
  5. package/dist/collection/common/icon.js +15 -0
  6. package/dist/collection/common/unit.js +15 -3
  7. package/dist/collection/common/yugop/core.js +16 -0
  8. package/dist/collection/common/yugop/index.js +3 -0
  9. package/dist/collection/common/yugop/random-text.js +59 -0
  10. package/dist/collection/common/yugop/utils/math.js +11 -0
  11. package/dist/collection/common/yugop/utils/noop.js +1 -0
  12. package/dist/collection/common/yugop/utils/prng.js +21 -0
  13. package/dist/collection/common/yugop/utils/string.js +2 -0
  14. package/dist/collection/components/mds-modal/mds-modal.css +152 -24
  15. package/dist/collection/components/mds-modal/mds-modal.js +1 -1
  16. package/dist/collection/components/mds-modal/test/mds-modal.e2e.js +1 -21
  17. package/dist/collection/components/mds-modal/test/mds-modal.stories.js +1 -1
  18. package/dist/collection/dictionary/file-extensions.js +64 -0
  19. package/dist/collection/dictionary/icon.js +6 -1
  20. package/dist/collection/dictionary/text.js +6 -0
  21. package/dist/collection/dictionary/variant.js +18 -1
  22. package/dist/collection/fixtures/filenames.js +57 -0
  23. package/dist/collection/type/file-types.js +1 -0
  24. package/dist/collection/type/text.js +1 -0
  25. package/dist/collection/type/variant-file-format.js +111 -0
  26. package/dist/components/mds-modal.js +2 -2
  27. package/dist/documentation.json +3 -3
  28. package/dist/esm/mds-modal.entry.js +2 -2
  29. package/dist/esm/mds-modal.js +1 -1
  30. package/dist/esm-es5/mds-modal.entry.js +1 -1
  31. package/dist/mds-modal/mds-modal.esm.js +1 -1
  32. package/dist/mds-modal/mds-modal.js +1 -1
  33. package/dist/mds-modal/p-444a6a47.system.entry.js +1 -0
  34. package/{www/build/p-88c57c56.system.js → dist/mds-modal/p-5cf75b06.system.js} +1 -1
  35. package/dist/mds-modal/p-83ebb238.entry.js +1 -0
  36. package/dist/stats.json +65 -23
  37. package/dist/types/common/file.d.ts +12 -0
  38. package/dist/types/common/icon.d.ts +5 -0
  39. package/dist/types/common/unit.d.ts +2 -1
  40. package/dist/types/common/yugop/core.d.ts +10 -0
  41. package/dist/types/common/yugop/index.d.ts +1 -0
  42. package/dist/types/common/yugop/random-text.d.ts +31 -0
  43. package/dist/types/common/yugop/utils/math.d.ts +3 -0
  44. package/dist/types/common/yugop/utils/noop.d.ts +1 -0
  45. package/dist/types/common/yugop/utils/prng.d.ts +8 -0
  46. package/dist/types/common/yugop/utils/string.d.ts +1 -0
  47. package/dist/types/dictionary/file-extensions.d.ts +11 -0
  48. package/dist/types/dictionary/icon.d.ts +2 -1
  49. package/dist/types/dictionary/text.d.ts +2 -0
  50. package/dist/types/dictionary/variant.d.ts +2 -1
  51. package/dist/types/fixtures/filenames.d.ts +2 -0
  52. package/dist/types/type/file-types.d.ts +1 -0
  53. package/dist/types/type/text.d.ts +1 -0
  54. package/dist/types/type/variant-file-format.d.ts +11 -0
  55. package/dist/types/type/variant.d.ts +1 -0
  56. package/documentation.json +58 -13
  57. package/package.json +4 -3
  58. package/readme.md +8 -0
  59. package/src/common/file.ts +63 -0
  60. package/src/common/icon.ts +25 -0
  61. package/src/common/unit.ts +21 -2
  62. package/src/common/yugop/core.ts +47 -0
  63. package/src/common/yugop/index.ts +4 -0
  64. package/src/common/yugop/random-text.ts +95 -0
  65. package/src/common/yugop/utils/math.ts +21 -0
  66. package/src/common/yugop/utils/noop.ts +1 -0
  67. package/src/common/yugop/utils/prng.ts +35 -0
  68. package/src/common/yugop/utils/string.ts +4 -0
  69. package/src/components/mds-modal/css/mds-modal-animate-left.css +4 -4
  70. package/src/components/mds-modal/css/mds-modal-animate-right.css +4 -4
  71. package/src/components/mds-modal/mds-modal.css +12 -7
  72. package/src/components/mds-modal/mds-modal.tsx +1 -1
  73. package/src/components/mds-modal/test/mds-modal.e2e.ts +1 -23
  74. package/src/components/mds-modal/test/mds-modal.stories.tsx +9 -9
  75. package/src/dictionary/file-extensions.ts +81 -0
  76. package/src/dictionary/icon.ts +6 -0
  77. package/src/dictionary/text.ts +9 -0
  78. package/src/dictionary/variant.ts +19 -0
  79. package/src/fixtures/filenames.ts +60 -0
  80. package/src/fixtures/icons.json +10 -0
  81. package/src/fixtures/iconsauce.json +3 -0
  82. package/src/type/file-types.ts +55 -0
  83. package/src/type/text.ts +4 -0
  84. package/src/type/variant-file-format.ts +128 -0
  85. package/src/type/variant.ts +17 -0
  86. package/www/build/mds-modal.esm.js +1 -1
  87. package/www/build/mds-modal.js +1 -1
  88. package/www/build/p-444a6a47.system.entry.js +1 -0
  89. package/{dist/mds-modal/p-88c57c56.system.js → www/build/p-5cf75b06.system.js} +1 -1
  90. package/www/build/p-83ebb238.entry.js +1 -0
  91. package/dist/mds-modal/p-59a0095c.system.entry.js +0 -1
  92. package/dist/mds-modal/p-6086db8a.entry.js +0 -1
  93. package/www/build/p-59a0095c.system.entry.js +0 -1
  94. package/www/build/p-6086db8a.entry.js +0 -1
@@ -26,25 +26,25 @@ const email = `${firstName.toLowerCase()}.${lastName.toLowerCase()}@nintendo.com
26
26
 
27
27
  const Template = args =>
28
28
  <mds-modal {...args}>
29
- <header slot="top" class="p-8 max-w-lg flex gap-4 items-center border-b border-tone-neutral-09">
30
- <mds-img class="w-16" src="/logo-gruppo-maggioli-512w.webp"/>
29
+ <header slot="top" class="p-800 max-w-lg flex gap-400 items-center border-b border-solid border-0 border-tone-neutral-09">
30
+ <mds-img class="w-1600" src="/logo-gruppo-maggioli-512w.webp"/>
31
31
  <div class="text-tone-neutral-02">
32
32
  <mds-text typography="h5" class="truncate min-w-0">Maggioli Editore</mds-text>
33
33
  <mds-text typography="detail" class="truncate min-w-0">Menu di servizio</mds-text>
34
34
  </div>
35
35
  </header>
36
- <div class="p-8 max-w-lg">
36
+ <div class="p-800 max-w-lg">
37
37
  <mds-text>
38
38
  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.
39
39
  </mds-text>
40
40
  </div>
41
- <footer slot="bottom" class="p-8 max-w-lg flex gap-4 text-tone-neutral-02 border-t border-tone-neutral-09">
42
- <mds-author>
43
- <mds-avatar slot="avatar" class="w-16 mobile:w-12" src="/avatar-01-200x200.jpeg"/>
44
- <mds-text typography="h6" class="truncate min-w-0">{ fullName }</mds-text>
45
- <mds-text typography="caption" class="text-tone-neutral-04 truncate min-w-0">{ email }</mds-text>
41
+ <footer slot="bottom" class="p-800 max-w-lg flex gap-400 text-tone-neutral-02 border-t border-solid border-0 border-tone-neutral-09">
42
+ <mds-author class="flex-grow">
43
+ <mds-avatar slot="avatar" class="w-1600 mobile:w-1200" src="/avatar-01-200x200.jpeg"/>
44
+ <mds-text typography="h6">{ fullName }</mds-text>
45
+ <mds-text typography="caption" class="text-tone-neutral-04">{ email }</mds-text>
46
46
  </mds-author>
47
- <mds-button icon="mdi/dots-vertical" class="ml-auto bg-transparent text-tone-neutral-02 p-4 border border-tone-neutral-09 rounded-full"/>
47
+ <mds-button icon="mdi/dots-vertical" variant="light"></mds-button>
48
48
  </footer>
49
49
  </mds-modal>
50
50
 
@@ -0,0 +1,81 @@
1
+ interface FileExtenstion {
2
+ [key: string]: ExtensionInfo
3
+ }
4
+
5
+ interface ExtensionInfo {
6
+ preview?: boolean
7
+ format: string
8
+ description: string
9
+ }
10
+
11
+ const fileExtensionsDictionary: FileExtenstion = {
12
+ '7z': { format: 'archive', description: 'Archivio compresso' },
13
+ ace: { format: 'archive', description: 'Archivio compresso' },
14
+ ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
15
+ dart: { format: 'code', description: 'Dart' },
16
+ db: { format: 'data', description: 'File di database' },
17
+ default: { format: 'attachment', description: 'Formato sconosciuto' },
18
+ dmg: { format: 'executable', description: 'Apple Disk Image' },
19
+ doc: { format: 'text', description: 'Documento Microsoft Word' },
20
+ docm: { format: 'text', description: 'Documento Microsoft Word' },
21
+ docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
22
+ eml: { format: 'email', description: 'E-mail di posta elettronica' },
23
+ eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
24
+ exe: { format: 'executable', description: 'File eseguibile Windows' },
25
+ flac: { format: 'audio', description: 'Audio non compresso' },
26
+ gif: { format: 'image', description: 'Immagine compressa', preview: true },
27
+ htm: { format: 'markup', description: 'Pagina web' },
28
+ heic: { format: 'image', description: 'High Efficiency Image File Format' },
29
+ html: { format: 'markup', description: 'Pagina web' },
30
+ jpe: { format: 'image', description: 'Immagine compressa', preview: true },
31
+ jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
32
+ jpg: { format: 'image', description: 'Immagine compressa', preview: true },
33
+ js: { format: 'code', description: 'JavaScript' },
34
+ json: { format: 'data', description: 'JavaScript Object Notation' },
35
+ jsx: { format: 'code', description: 'JavaScript' },
36
+ m2v: { format: 'video', description: 'Filmato SD' },
37
+ mp2: { format: 'audio', description: 'Audio compresso' },
38
+ mp3: { format: 'audio', description: 'Audio compresso' },
39
+ mp4: { format: 'video', description: 'Filmato HD' },
40
+ mp4v: { format: 'video', description: 'Filmato HD' },
41
+ mpeg: { format: 'video', description: 'Filmato SD' },
42
+ mpg4: { format: 'video', description: 'Filmato SD' },
43
+ mpg: { format: 'video', description: 'Filmato SD' },
44
+ mpga: { format: 'audio', description: 'Audio compresso' },
45
+ odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
46
+ ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
47
+ odt: { format: 'text', description: 'File di testo LibreOffice' },
48
+ pdf: { format: 'document', description: 'Documento Adobe' },
49
+ php: { format: 'code', description: 'Hypertext Preprocessor' },
50
+ png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
51
+ ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
52
+ rar: { format: 'archive', description: 'Archivio compresso' },
53
+ rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
54
+ sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
55
+ shtml: { format: 'markup', description: 'Pagina web' },
56
+ svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
57
+ tar: { format: 'archive', description: 'Archivio non compresso' },
58
+ tiff: { format: 'image', description: 'Tag Image File Format' },
59
+ ts: { format: 'code', description: 'TypeScript' },
60
+ tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
61
+ txt: { format: 'text', description: 'Documento di testo non formattato' },
62
+ wav: { format: 'audio', description: 'Audio non compresso' },
63
+ webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
64
+ xar: { format: 'archive', description: 'Archivio compresso' },
65
+ xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
66
+ xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
67
+ zip: { format: 'archive', description: 'Archivio compresso' },
68
+ }
69
+
70
+ const genericMimeToExt: Map<string, string[]> = new Map([
71
+ ['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
72
+ ['audio', ['.mp2', '.mp3', '.mpga', '.wav', '.flac']],
73
+ ['video', ['.mv2', '.mp4', '.mp4v', '.mpeg', '.mpg4', '.mpg']],
74
+ ])
75
+
76
+ export {
77
+ FileExtenstion,
78
+ ExtensionInfo,
79
+ fileExtensionsDictionary,
80
+ genericMimeToExt,
81
+ }
@@ -2,8 +2,14 @@ import jsonIconsDictionary from '../fixtures/icons.json'
2
2
  import jsonMggIconsDictionary from '../fixtures/iconsauce.json'
3
3
  const iconsDictionary = jsonIconsDictionary
4
4
  const mggIconsDictionary = jsonMggIconsDictionary
5
+ const svgIconsDictionary = [
6
+ `${location.origin}/svg/mi/baseline/email.svg`,
7
+ 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Im0yMzMtODAgNjUtMjgxTDgwLTU1MGwyODgtMjUgMTEyLTI2NSAxMTIgMjY1IDI4OCAyNS0yMTggMTg5IDY1IDI4MS0yNDctMTQ5TDIzMy04MFoiLz48L3N2Zz4=',
8
+ '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6s-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8s-3.58-8-8-8z"/></svg>',
9
+ ]
5
10
 
6
11
  export {
7
12
  iconsDictionary,
8
13
  mggIconsDictionary,
14
+ svgIconsDictionary,
9
15
  }
@@ -0,0 +1,9 @@
1
+ const truncateDictionary = [
2
+ 'all',
3
+ 'none',
4
+ 'word',
5
+ ]
6
+
7
+ export {
8
+ truncateDictionary,
9
+ }
@@ -39,6 +39,24 @@ const themeFullVariantDictionary = [
39
39
  'yellow',
40
40
  ]
41
41
 
42
+ const themeFullVariantAvatarDictionary = [
43
+ 'amaranth',
44
+ 'aqua',
45
+ 'blue',
46
+ 'error',
47
+ 'green',
48
+ 'info',
49
+ 'lime',
50
+ 'orange',
51
+ 'orchid',
52
+ 'primary',
53
+ 'sky',
54
+ 'success',
55
+ 'violet',
56
+ 'warning',
57
+ 'yellow',
58
+ ]
59
+
42
60
  const themeLabelVariantDictionary = [
43
61
  'amaranth',
44
62
  'aqua',
@@ -80,6 +98,7 @@ const toneMinimalVariantDictionary = [
80
98
  ]
81
99
 
82
100
  export {
101
+ themeFullVariantAvatarDictionary,
83
102
  themeFullVariantDictionary,
84
103
  themeLabelVariantDictionary,
85
104
  themeLuminanceVariantDictionary,
@@ -0,0 +1,60 @@
1
+ const filesList = [
2
+ 'alarm_circuit_plastic.eps',
3
+ 'awesome_orchestration.png',
4
+ 'b2c_tan_sports.svg',
5
+ 'bedfordshire_iceland_identity.txt',
6
+ 'books_monetize_arizona.htm',
7
+ 'brand.shtml',
8
+ 'brunei_logistical.eml',
9
+ 'buckinghamshire_macao.jpg',
10
+ 'calculating.json',
11
+ 'complexity_deposit.mpg',
12
+ 'compressing_black_colorado.ods',
13
+ 'connect_local_visualize.pdf',
14
+ 'copying.default',
15
+ 'explicit.mp2',
16
+ 'fish.php',
17
+ 'flexibility_auto_money.html',
18
+ 'foreground_overriding.ai',
19
+ 'forge_face.ts',
20
+ 'forges.doc',
21
+ 'frozen_haptic.7z',
22
+ 'gorgeous_manager_savings.ppt',
23
+ 'graphic_frozen_bedfordshire.tar',
24
+ 'hdd_navigate_panama.xlsx',
25
+ 'https://i2.wp.com/clipart.info/images/ccovers/1495750818Apple-PNG-Clip-Art.png',
26
+ 'impactful_alarm_handmade.mpeg',
27
+ 'initiatives_group.gif',
28
+ 'intelligent_radical.jpe',
29
+ 'interface_bedfordshire_solid.m2v',
30
+ 'iowa_installation.jpeg',
31
+ 'liaison_panel_central.flac',
32
+ 'matrix_black_hat.db',
33
+ 'metrics_lempira_account.xls',
34
+ 'monitor.js',
35
+ 'nebraska.mp4',
36
+ 'needs_based_solid.odp',
37
+ 'officer_somalia.docm',
38
+ 'open_source.webp',
39
+ 'open_source_gorgeous.sass',
40
+ 'optimization_radical.mp3',
41
+ 'ports_copy_granite.mpga',
42
+ 'pound.rtf',
43
+ 'protocol_designer.dmg',
44
+ 'reduced_regional_greenland.mp4v',
45
+ 'revolutionize.mpg4',
46
+ 'rss_systematic_avon.exe',
47
+ 'salad_compressing.odt',
48
+ 'sky_marketing.ace',
49
+ 'synergistic.wav',
50
+ 'this_is_an_extensionless_file',
51
+ 'tuna_table_fall.zip',
52
+ 'unbranded.rar',
53
+ 'upgradable_gold.docx',
54
+ 'wisconsin_bypassing_small.xar',
55
+ 'wooden.jsx',
56
+ ]
57
+
58
+ export {
59
+ filesList,
60
+ }
@@ -6,6 +6,7 @@
6
6
  "mdi/delete",
7
7
  "mdi/dots-vertical",
8
8
  "mdi/email",
9
+ "mdi/file-document-remove-outline",
9
10
  "mdi/harddisk",
10
11
  "mdi/map-marker",
11
12
  "mdi/replay",
@@ -21,6 +22,7 @@
21
22
  "mgg/action-show-right-side",
22
23
  "mgg/action-show-sidebar-left",
23
24
  "mgg/action-show-sidebar-right",
25
+ "mgg/activation-key",
24
26
  "mgg/activity-list",
25
27
  "mgg/add-document-settings",
26
28
  "mgg/additional-contents",
@@ -227,6 +229,7 @@
227
229
  "mgg/todo-running-completed",
228
230
  "mgg/todo-suspended",
229
231
  "mgg/touchpoint-laptop-info",
232
+ "mgg/touchpoint-laptop-search",
230
233
  "mgg/traffic-cone",
231
234
  "mgg/trending-down",
232
235
  "mgg/tribute",
@@ -239,20 +242,24 @@
239
242
  "mgg/user-signed-out",
240
243
  "mgg/view-chart-gantt",
241
244
  "mgg/view-side-by-side",
245
+ "mgg/warning-superscript",
242
246
  "mgg/work-book",
243
247
  "mi/baseline/account-balance",
244
248
  "mi/baseline/account-balance-wallet",
245
249
  "mi/baseline/add",
250
+ "mi/baseline/add-circle",
246
251
  "mi/baseline/adobe",
247
252
  "mi/baseline/agriculture",
248
253
  "mi/baseline/arrow-back",
249
254
  "mi/baseline/arrow-forward",
250
255
  "mi/baseline/attach-file",
256
+ "mi/baseline/attachment",
251
257
  "mi/baseline/audiotrack",
252
258
  "mi/baseline/badge",
253
259
  "mi/baseline/book",
254
260
  "mi/baseline/border-all",
255
261
  "mi/baseline/cancel",
262
+ "mi/baseline/category",
256
263
  "mi/baseline/check-box",
257
264
  "mi/baseline/check-box-outline-blank",
258
265
  "mi/baseline/check-circle",
@@ -265,6 +272,7 @@
265
272
  "mi/baseline/email",
266
273
  "mi/baseline/error",
267
274
  "mi/baseline/explore",
275
+ "mi/baseline/file-download-done",
268
276
  "mi/baseline/folder-zip",
269
277
  "mi/baseline/groups",
270
278
  "mi/baseline/horizontal-rule",
@@ -284,6 +292,7 @@
284
292
  "mi/baseline/radio-button-checked",
285
293
  "mi/baseline/radio-button-unchecked",
286
294
  "mi/baseline/remove",
295
+ "mi/baseline/remove-circle",
287
296
  "mi/baseline/route",
288
297
  "mi/baseline/settings",
289
298
  "mi/baseline/terminal",
@@ -295,6 +304,7 @@
295
304
  "mi/baseline/web",
296
305
  "mi/baseline/wysiwyg",
297
306
  "mi/outline/help-outline",
307
+ "mi/outline/schedule",
298
308
  "mi/round/arrow-circle-down",
299
309
  "mi/round/email",
300
310
  "mi/round/groups",
@@ -10,6 +10,7 @@
10
10
  "mgg/action-show-right-side",
11
11
  "mgg/action-show-sidebar-left",
12
12
  "mgg/action-show-sidebar-right",
13
+ "mgg/activation-key",
13
14
  "mgg/activity-list",
14
15
  "mgg/add-document-settings",
15
16
  "mgg/additional-contents",
@@ -216,6 +217,7 @@
216
217
  "mgg/todo-suspended",
217
218
  "mgg/todo",
218
219
  "mgg/touchpoint-laptop-info",
220
+ "mgg/touchpoint-laptop-search",
219
221
  "mgg/traffic-cone",
220
222
  "mgg/trending-down",
221
223
  "mgg/tribute",
@@ -228,5 +230,6 @@
228
230
  "mgg/user-signed-out",
229
231
  "mgg/view-chart-gantt",
230
232
  "mgg/view-side-by-side",
233
+ "mgg/warning-superscript",
231
234
  "mgg/work-book"
232
235
  ]
@@ -0,0 +1,55 @@
1
+ export type ExtensionSuffixType =
2
+ | '7z'
3
+ | 'ace'
4
+ | 'ai'
5
+ | 'db'
6
+ | 'default'
7
+ | 'dmg'
8
+ | 'doc'
9
+ | 'docm'
10
+ | 'docx'
11
+ | 'eml'
12
+ | 'eps'
13
+ | 'exe'
14
+ | 'flac'
15
+ | 'gif'
16
+ | 'heic'
17
+ | 'htm'
18
+ | 'html'
19
+ | 'jpe'
20
+ | 'jpeg'
21
+ | 'jpg'
22
+ | 'js'
23
+ | 'json'
24
+ | 'jsx'
25
+ | 'm2v'
26
+ | 'mp2'
27
+ | 'mp3'
28
+ | 'mp4'
29
+ | 'mp4v'
30
+ | 'mpeg'
31
+ | 'mpg'
32
+ | 'mpg4'
33
+ | 'mpga'
34
+ | 'odp'
35
+ | 'ods'
36
+ | 'odt'
37
+ | 'pdf'
38
+ | 'php'
39
+ | 'png'
40
+ | 'ppt'
41
+ | 'rar'
42
+ | 'rtf'
43
+ | 'sass'
44
+ | 'shtml'
45
+ | 'svg'
46
+ | 'tar'
47
+ | 'tiff'
48
+ | 'ts'
49
+ | 'txt'
50
+ | 'wav'
51
+ | 'webp'
52
+ | 'xar'
53
+ | 'xls'
54
+ | 'xlsx'
55
+ | 'zip'
@@ -0,0 +1,4 @@
1
+ export type TypographyTruncateType =
2
+ | 'all'
3
+ | 'none'
4
+ | 'word'
@@ -0,0 +1,128 @@
1
+ import baselineFolderZip from '@icon/mi/baseline/folder-zip.svg'
2
+ import baselineAttachFile from '@icon/mi/baseline/attach-file.svg'
3
+ import baselineAudiotrack from '@icon/mi/baseline/audiotrack.svg'
4
+ import baselineTerminal from '@icon/mi/baseline/terminal.svg'
5
+ import baselineInsertDriveFile from '@icon/mi/baseline/insert-drive-file.svg'
6
+ import mdiHardDisk from '@icon/mdi/harddisk.svg'
7
+
8
+ interface FileFormatVariant {
9
+ color: string
10
+ icon: string
11
+ iconBackground: string
12
+ variant: string
13
+ }
14
+
15
+ interface FileFormatVariants {
16
+ [key: string]: FileFormatVariant
17
+ }
18
+
19
+ const fileFormatsVariant: FileFormatVariants = {
20
+ archive: {
21
+ color: 'fill-label-amaranth-04 text-label-amaranth-04',
22
+ icon: baselineFolderZip,
23
+ iconBackground: 'bg-label-amaranth-10',
24
+ variant: 'amaranth',
25
+ },
26
+ attachment: {
27
+ color: 'fill-tone-neutral-04 text-tone-neutral-04',
28
+ icon: baselineAttachFile,
29
+ iconBackground: 'bg-tone-neutral-10',
30
+ variant: 'dark',
31
+ },
32
+ audio: {
33
+ color: 'fill-label-violet-04 text-label-violet-04',
34
+ icon: baselineAudiotrack,
35
+ iconBackground: 'bg-label-violet-10',
36
+ variant: 'violet',
37
+ },
38
+ code: {
39
+ color: 'fill-label-yellow-04 text-label-yellow-04',
40
+ icon: baselineTerminal,
41
+ iconBackground: 'bg-label-yellow-10',
42
+ variant: 'yellow',
43
+ },
44
+ data: {
45
+ color: 'fill-label-yellow-04 text-label-yellow-04',
46
+ icon: mdiHardDisk,
47
+ iconBackground: 'bg-label-yellow-10',
48
+ variant: 'yellow',
49
+ },
50
+ document: {
51
+ color: 'fill-label-orange-04 text-label-orange-04',
52
+ icon: baselineInsertDriveFile,
53
+ iconBackground: 'bg-label-orange-10',
54
+ variant: 'orange',
55
+ },
56
+ email: {
57
+ color: 'fill-label-blue-04 text-label-blue-04',
58
+ icon: 'mi/baseline/email',
59
+ iconBackground: 'bg-label-blue-10',
60
+ variant: 'blue',
61
+ },
62
+ executable: {
63
+ color: 'fill-label-amaranth-04 text-label-amaranth-04',
64
+ icon: 'mi/baseline/wysiwyg',
65
+ iconBackground: 'bg-label-amaranth-10',
66
+ variant: 'amaranth',
67
+ },
68
+ image: {
69
+ color: 'fill-label-green-04 text-label-green-04',
70
+ icon: 'mi/baseline/panorama',
71
+ iconBackground: 'bg-label-green-10',
72
+ variant: 'green',
73
+ },
74
+ imageRaster: {
75
+ color: 'fill-label-green-04 text-label-green-04',
76
+ icon: 'mi/baseline/panorama',
77
+ iconBackground: 'bg-label-green-10',
78
+ variant: 'green',
79
+ },
80
+ markup: {
81
+ color: 'fill-label-yellow-04 text-label-yellow-04',
82
+ icon: 'mi/baseline/web',
83
+ iconBackground: 'bg-label-yellow-10',
84
+ variant: 'yellow',
85
+ },
86
+ slide: {
87
+ color: 'fill-label-orchid-04 text-label-orchid-04',
88
+ icon: 'mi/baseline/tv',
89
+ iconBackground: 'bg-label-orchid-10',
90
+ variant: 'orchid',
91
+ },
92
+ spreadsheet: {
93
+ color: 'fill-label-lime-04 text-label-lime-04',
94
+ icon: 'mi/baseline/border-all',
95
+ iconBackground: 'bg-label-lime-10',
96
+ variant: 'lime',
97
+ },
98
+ text: {
99
+ color: 'fill-label-blue-04 text-label-blue-04',
100
+ icon: 'mi/baseline/description',
101
+ iconBackground: 'bg-label-blue-10',
102
+ variant: 'blue',
103
+ },
104
+ vectorImage: {
105
+ color: 'fill-label-aqua-04 text-label-aqua-04',
106
+ icon: 'mdi/vector-curve',
107
+ iconBackground: 'bg-label-aqua-10',
108
+ variant: 'aqua',
109
+ },
110
+ vector: {
111
+ color: 'fill-label-aqua-04 text-label-aqua-04',
112
+ icon: 'mdi/vector-curve',
113
+ iconBackground: 'bg-label-aqua-10',
114
+ variant: 'aqua',
115
+ },
116
+ video: {
117
+ color: 'fill-label-violet-04 text-label-violet-04',
118
+ icon: 'mi/baseline/videocam',
119
+ iconBackground: 'bg-label-violet-10',
120
+ variant: 'violet',
121
+ },
122
+ }
123
+
124
+ export {
125
+ fileFormatsVariant,
126
+ FileFormatVariant,
127
+ FileFormatVariants,
128
+ }
@@ -31,6 +31,23 @@ export type ThemeFullVariantType =
31
31
  | 'warning'
32
32
  | 'yellow'
33
33
 
34
+ export type ThemeFullVariantAvatarType =
35
+ | 'amaranth'
36
+ | 'aqua'
37
+ | 'blue'
38
+ | 'error'
39
+ | 'green'
40
+ | 'info'
41
+ | 'lime'
42
+ | 'orange'
43
+ | 'orchid'
44
+ | 'primary'
45
+ | 'sky'
46
+ | 'success'
47
+ | 'violet'
48
+ | 'warning'
49
+ | 'yellow'
50
+
34
51
  export type ThemeLuminanceVariantType =
35
52
  | 'dark'
36
53
  | 'light'
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-aff993b4.js";export{s as setNonce}from"./p-aff993b4.js";(()=>{const o=import.meta.url,n={};return""!==o&&(n.resourcesUrl=new URL(".",o).href),e(n)})().then((e=>o([["p-6086db8a",[[1,"mds-modal",{opened:[1540],position:[1537],stateOpened:[32]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]],{position:["positionChange"],opened:["openedChange"]}]]]],e)));
1
+ import{p as e,b as o}from"./p-aff993b4.js";export{s as setNonce}from"./p-aff993b4.js";(()=>{const o=import.meta.url,n={};return""!==o&&(n.resourcesUrl=new URL(".",o).href),e(n)})().then((e=>o([["p-83ebb238",[[1,"mds-modal",{opened:[1540],position:[1537],stateOpened:[32]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]],{position:["positionChange"],opened:["openedChange"]}]]]],e)));
@@ -115,7 +115,7 @@ DOMTokenList
115
115
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
116
  var start = function() {
117
117
  // if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
118
- var url = new URL('./p-88c57c56.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
118
+ var url = new URL('./p-5cf75b06.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
119
119
  System.import(url.href);
120
120
  };
121
121
 
@@ -0,0 +1 @@
1
+ System.register(["./p-14f0bf74.system.js"],(function(t){"use strict";var o,r,i,e,a;return{setters:[function(t){o=t.r;r=t.c;i=t.h;e=t.H;a=t.g}],execute:function(){function n(t){var o,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var e=t.length;for(o=0;o<e;o++)t[o]&&(r=n(t[o]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}function l(){for(var t,o,r=0,i="",e=arguments.length;r<e;r++)(t=arguments[r])&&(o=n(t))&&(i&&(i+=" "),i+=o);return i}var s='<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>';var d=function(){function t(){var t=this;this.elements=[];this.handleClickBehaviorDispatchEvent=function(t){if(t.code==="Space"||t.code==="Enter"||t.code==="NumpadEnter"){t.target.click()}};this.handleEscapeBehaviorDispatchEvent=function(o){if(o.code==="Escape"&&t.escapeCallback){t.escapeCallback()}};this.addElement=function(o,r){if(r===void 0){r="element"}t.elements[r]=o};this.attachClickBehavior=function(o){if(o===void 0){o="element"}if(t.elements[o]){t.elements[o].addEventListener("keydown",t.handleClickBehaviorDispatchEvent)}};this.detachClickBehavior=function(o){if(o===void 0){o="element"}if(t.elements[o]){t.elements[o].removeEventListener("keydown",t.handleClickBehaviorDispatchEvent)}};this.attachEscapeBehavior=function(o){t.escapeCallback=o;if(window!==undefined){window.addEventListener("keydown",t.handleEscapeBehaviorDispatchEvent.bind(t))}};this.detachEscapeBehavior=function(){t.escapeCallback=function(){return};if(window!==undefined){window.removeEventListener("keydown",t.handleEscapeBehaviorDispatchEvent.bind(t))}}}return t}();var c='@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; @tailwind utilities; .svg{display:-ms-flexbox;display:flex}.svg svg{aspect-ratio:1/1;height:100%;width:100%}.animate-right-intro,.animate-right-outro{-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.flex{display:-ms-flexbox;display:flex}.w-1600{width:4rem}.min-w-0{min-width:0rem}.max-w-lg{max-width:32rem}.max-w-xl{max-width:36rem}.flex-grow{-ms-flex-positive:1;flex-grow:1}.items-center{-ms-flex-align:center;align-items:center}.gap-400{gap:1rem}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border{border-width:1px}.border-0{border-width:0rem}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-tone-neutral-09{--tw-border-opacity:1;border-color:rgb(var(--tone-neutral-09) / var(--tw-border-opacity))}.bg-label-amaranth-10{--tw-bg-opacity:1;background-color:rgb(var(--label-amaranth-10) / var(--tw-bg-opacity))}.bg-label-aqua-10{--tw-bg-opacity:1;background-color:rgb(var(--label-aqua-10) / var(--tw-bg-opacity))}.bg-label-blue-10{--tw-bg-opacity:1;background-color:rgb(var(--label-blue-10) / var(--tw-bg-opacity))}.bg-label-green-10{--tw-bg-opacity:1;background-color:rgb(var(--label-green-10) / var(--tw-bg-opacity))}.bg-label-lime-10{--tw-bg-opacity:1;background-color:rgb(var(--label-lime-10) / var(--tw-bg-opacity))}.bg-label-orange-10{--tw-bg-opacity:1;background-color:rgb(var(--label-orange-10) / var(--tw-bg-opacity))}.bg-label-orchid-10{--tw-bg-opacity:1;background-color:rgb(var(--label-orchid-10) / var(--tw-bg-opacity))}.bg-label-violet-10{--tw-bg-opacity:1;background-color:rgb(var(--label-violet-10) / var(--tw-bg-opacity))}.bg-label-yellow-10{--tw-bg-opacity:1;background-color:rgb(var(--label-yellow-10) / var(--tw-bg-opacity))}.bg-tone-neutral-10{--tw-bg-opacity:1;background-color:rgb(var(--tone-neutral-10) / var(--tw-bg-opacity))}.fill-label-amaranth-04{fill:rgb(var(--label-amaranth-04))}.fill-label-aqua-04{fill:rgb(var(--label-aqua-04))}.fill-label-blue-04{fill:rgb(var(--label-blue-04))}.fill-label-green-04{fill:rgb(var(--label-green-04))}.fill-label-lime-04{fill:rgb(var(--label-lime-04))}.fill-label-orange-04{fill:rgb(var(--label-orange-04))}.fill-label-orchid-04{fill:rgb(var(--label-orchid-04))}.fill-label-violet-04{fill:rgb(var(--label-violet-04))}.fill-label-yellow-04{fill:rgb(var(--label-yellow-04))}.fill-tone-neutral-04{fill:rgb(var(--tone-neutral-04))}.p-800{padding:2rem}.text-label-amaranth-04{--tw-text-opacity:1;color:rgb(var(--label-amaranth-04) / var(--tw-text-opacity))}.text-label-aqua-04{--tw-text-opacity:1;color:rgb(var(--label-aqua-04) / var(--tw-text-opacity))}.text-label-blue-04{--tw-text-opacity:1;color:rgb(var(--label-blue-04) / var(--tw-text-opacity))}.text-label-green-04{--tw-text-opacity:1;color:rgb(var(--label-green-04) / var(--tw-text-opacity))}.text-label-lime-04{--tw-text-opacity:1;color:rgb(var(--label-lime-04) / var(--tw-text-opacity))}.text-label-orange-04{--tw-text-opacity:1;color:rgb(var(--label-orange-04) / var(--tw-text-opacity))}.text-label-orchid-04{--tw-text-opacity:1;color:rgb(var(--label-orchid-04) / var(--tw-text-opacity))}.text-label-violet-04{--tw-text-opacity:1;color:rgb(var(--label-violet-04) / var(--tw-text-opacity))}.text-label-yellow-04{--tw-text-opacity:1;color:rgb(var(--label-yellow-04) / var(--tw-text-opacity))}.text-tone-neutral-02{--tw-text-opacity:1;color:rgb(var(--tone-neutral-02) / var(--tw-text-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgb(var(--tone-neutral-04) / var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-modal-overlay-color:var(--magma-overlay-color, 0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity, 0.5);--mds-modal-window-background:rgb(var(--tone-neutral));--mds-modal-window-overflow:auto;--mds-modal-window-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--mds-modal-z-index:var(--magma-modal-z-index);-webkit-transition-duration:700ms;transition-duration:700ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);-ms-flex-align:center;align-items:center;background-color:rgba(var(--mds-modal-overlay-color) / 0);display:-ms-flexbox;display:flex;fill:rgb(var(--tone-neutral));inset:0;-ms-flex-pack:center;justify-content:center;-webkit-perspective:600px;perspective:600px;pointer-events:none;position:fixed;z-index:var(--mds-modal-z-index, 1000)}:host([position="top"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position="bottom"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}:host(.to-bottom-opened),:host(.to-center-opened),:host(.to-left-opened),:host(.to-right-opened),:host(.to-top-opened){-webkit-transition-duration:500ms;transition-duration:500ms;background-color:rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));pointer-events:auto}.button-close{top:0rem;border-radius:9999px;opacity:0;-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);--mds-button-icon-color:rgb(var(--tone-neutral));--mds-button-background:transparent;height:auto;position:absolute;-webkit-transform:translate(0, 24px) rotate(90deg);transform:translate(0, 24px) rotate(90deg);-webkit-transform-origin:center;transform-origin:center;-webkit-transition-property:opacity, outline, outline-offset, -webkit-transform;transition-property:opacity, outline, outline-offset, -webkit-transform;transition-property:opacity, outline, outline-offset, transform;transition-property:opacity, outline, outline-offset, transform, -webkit-transform}.button-close::part(icon){height:2.25rem;width:2.25rem}.window{height:100%;gap:0rem;background-color:var(--mds-modal-window-background);-webkit-box-shadow:var(--mds-modal-window-shadow);box-shadow:var(--mds-modal-window-shadow);display:grid;grid-template-rows:1fr;max-width:calc(100vw - 80px);overflow:var(--mds-modal-window-overflow)}.window--top{grid-template-rows:auto 1fr}.window--bottom{grid-template-rows:1fr auto}.window--top-bottom{grid-template-rows:auto 1fr auto}:host(.to-bottom){padding:2rem}@media (max-width: 767px){:host(.to-bottom){padding:1rem}}:host(.to-bottom){-ms-flex-pack:center;justify-content:center}:host(.to-bottom) .window,:host(.to-bottom)>::slotted([slot="window"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-bottom-intro) .window,:host(.to-bottom-intro)>::slotted([slot="window"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-bottom-opened.to-bottom-outro) .window,:host(.to-bottom-opened.to-bottom-outro)>::slotted([slot="window"]),:host(.to-bottom-opened) .window,:host(.to-bottom-opened)>::slotted([slot="window"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-bottom-outro) .window,:host(.to-bottom-outro)>::slotted([slot="window"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.to-center){padding:2rem}@media (max-width: 767px){:host(.to-center){padding:1rem}}:host(.to-center){-ms-flex-pack:center;justify-content:center}:host(.to-center) .window,:host(.to-center)>::slotted([slot="window"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-center-intro) .window,:host(.to-center-intro)>::slotted([slot="window"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-center-opened.to-center-outro) .window,:host(.to-center-opened.to-center-outro)>::slotted([slot="window"]),:host(.to-center-opened) .window,:host(.to-center-opened)>::slotted([slot="window"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-center-outro) .window,:host(.to-center-outro)>::slotted([slot="window"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.to-left){-ms-flex-pack:start;justify-content:flex-start}:host(.to-left) .window,:host(.to-left)>::slotted([slot="window"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-left-intro) .window,:host(.to-left-intro)>::slotted([slot="window"]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.to-left-opened.to-left-outro) .window,:host(.to-left-opened.to-left-outro)>::slotted([slot="window"]),:host(.to-left-opened) .window,:host(.to-left-opened)>::slotted([slot="window"]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.to-left-opened) .button-close,:host(.to-left-opened.to-left-outro) .button-close{opacity:1;-webkit-transform:translate(-24px, 24px) rotate(0);transform:translate(-24px, 24px) rotate(0)}:host(.to-left-outro) .window,:host(.to-left-outro)>::slotted([slot="window"]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.to-left-outro) .button-close{-webkit-transform:translate(24px, 24px) rotate(-90deg);transform:translate(24px, 24px) rotate(-90deg)}:host(.to-left) .button-close{right:0rem;-webkit-transform:translate(36px, 24px) rotate(90deg);transform:translate(36px, 24px) rotate(90deg)}:host(.to-right){-ms-flex-pack:end;justify-content:flex-end}:host(.to-right) .window,:host(.to-right)>::slotted([slot="window"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-right-intro) .window,:host(.to-right-intro)>::slotted([slot="window"]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.to-right-opened.to-right-outro) .window,:host(.to-right-opened.to-right-outro)>::slotted([slot="window"]),:host(.to-right-opened) .window,:host(.to-right-opened)>::slotted([slot="window"]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.to-right-opened) .button-close,:host(.to-right-opened.to-right-outro) .button-close{opacity:1;-webkit-transform:translate(24px, 24px) rotate(0);transform:translate(24px, 24px) rotate(0)}:host(.to-right-outro) .window,:host(.to-right-outro)>::slotted([slot="window"]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.to-right-outro) .button-close{-webkit-transform:translate(-24px, 24px) rotate(90deg);transform:translate(-24px, 24px) rotate(90deg)}:host(.to-right) .button-close{left:0rem;-webkit-transform:translate(-36px, 24px) rotate(-90deg);transform:translate(-36px, 24px) rotate(-90deg)}:host(.to-top){padding:2rem}@media (max-width: 767px){:host(.to-top){padding:1rem}}:host(.to-top){-ms-flex-pack:center;justify-content:center}:host(.to-top) .window,:host(.to-top)>::slotted([slot="window"]){opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-top-intro) .window,:host(.to-top-intro)>::slotted([slot="window"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-top-opened.to-top-outro) .window,:host(.to-top-opened.to-top-outro)>::slotted([slot="window"]),:host(.to-top-opened) .window,:host(.to-top-opened)>::slotted([slot="window"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-top-outro) .window,:host(.to-top-outro)>::slotted([slot="window"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}@media (max-width: 767px){.mobile\\:w-1200{width:3rem}}';var b=t("mds_modal",function(){function t(t){var i=this;o(this,t);this.closeEvent=r(this,"mdsModalClose",7);this.window=false;this.top=false;this.bottom=false;this.animationState="intro";this.km=new d;this.componentDidLoad=function(){var t;i.km.addElement(i.host,"host");var o=(t=i.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".close");if(o)i.km.addElement(o,"close");i.km.attachEscapeBehavior((function(){return i.closeEvent.emit()}));i.km.attachClickBehavior("close")};this.animationName=function(t,o){if(t===void 0){t=""}if(o===void 0){o=""}return"to-".concat(o!==""?o:i.position).concat(t!==""?"-"+t:"")};this.closeModal=function(t){var o;if(((o=t.target)===null||o===void 0?void 0:o.localName)!=="mds-modal"){return}i.opened=t.target!==t.currentTarget;if(!i.opened){i.closeEvent.emit()}};this.stateOpened=undefined;this.opened=false;this.position="center"}t.prototype.componentWillLoad=function(){var t;this.bottom=this.host.querySelector('[slot="bottom"]')!==null;this.top=this.host.querySelector('[slot="top"]')!==null;this.window=this.host.querySelector('[slot="window"]')!==null;this.stateOpened=this.opened;if(!this.window){this.position="right"}if(this.window){(t=this.host.querySelector('[slot="window"]'))===null||t===void 0?void 0:t.setAttribute("role","modal")}};t.prototype.componentWillRender=function(){this.animationState=this.opened?"intro":"outro";this.host.classList.add(this.animationName())};t.prototype.componentDidRender=function(){var t=this;this.animationDeelay=window.setTimeout((function(){t.animationState=t.animationState==="intro"?"outro":"intro";t.host.classList.remove(t.animationName(t.animationState==="intro"?"outro":"intro"));t.host.classList.add(t.animationName(t.animationState));window.clearTimeout(t.animationDeelay)}),500)};t.prototype.disconnectedCallback=function(){this.km.detachEscapeBehavior();this.km.detachClickBehavior("close")};t.prototype.positionChange=function(t,o){window.clearTimeout(this.animationDeelay);this.host.classList.remove(this.animationName("",o));this.host.classList.remove(this.animationName("intro",o));this.host.classList.remove(this.animationName("outro",o))};t.prototype.openedChange=function(t){this.stateOpened=t;window.clearTimeout(this.animationDeelay)};t.prototype.onModalCloseListener=function(){this.opened=false};t.prototype.onBannerCloseListener=function(){this.opened=false};t.prototype.render=function(){var t=this;return i(e,{"aria-modal":l(this.opened?"true":"false"),class:l(this.stateOpened&&this.animationName("opened")),onClick:function(o){t.closeModal(o)}},this.window?i("slot",{name:"window"}):i("div",{class:l("window",(this.top||this.bottom)&&"window-".concat(this.top?"-top":"").concat(this.bottom?"-bottom":"")),role:"dialog",part:"window"},this.top&&i("slot",{name:"top"}),i("slot",null),this.bottom&&i("slot",{name:"bottom"})),!this.window&&i("mds-button",{icon:s,onClick:function(o){t.closeModal(o)},class:"button-close"}))};Object.defineProperty(t.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{position:["positionChange"],opened:["openedChange"]}},enumerable:false,configurable:true});return t}());b.style=c}}}));
@@ -1 +1 @@
1
- System.register(["./p-14f0bf74.system.js"],(function(e,n){"use strict";var o,s;return{setters:[function(n){o=n.p;s=n.b;e("setNonce",n.s)}],execute:function(){var e=function(){var e=n.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return o(s)};e().then((function(e){return s([["p-59a0095c.system",[[1,"mds-modal",{opened:[1540],position:[1537],stateOpened:[32]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]],{position:["positionChange"],opened:["openedChange"]}]]]],e)}))}}}));
1
+ System.register(["./p-14f0bf74.system.js"],(function(e,n){"use strict";var o,s;return{setters:[function(n){o=n.p;s=n.b;e("setNonce",n.s)}],execute:function(){var e=function(){var e=n.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return o(s)};e().then((function(e){return s([["p-444a6a47.system",[[1,"mds-modal",{opened:[1540],position:[1537],stateOpened:[32]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]],{position:["positionChange"],opened:["openedChange"]}]]]],e)}))}}}));