@maggioli-design-system/mds-input-tip-item 1.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 (192) hide show
  1. package/dist/cjs/index-8ba1476a.js +1640 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/loader.cjs.js +13 -0
  4. package/dist/cjs/mds-input-tip-item.cjs.entry.js +75 -0
  5. package/dist/cjs/mds-input-tip-item.cjs.js +23 -0
  6. package/dist/collection/collection-manifest.json +12 -0
  7. package/dist/collection/common/aria.js +29 -0
  8. package/dist/collection/common/file.js +48 -0
  9. package/dist/collection/common/icon.js +15 -0
  10. package/dist/collection/common/keyboard-manager.js +45 -0
  11. package/dist/collection/common/locale.js +20 -0
  12. package/dist/collection/common/unit.js +22 -0
  13. package/dist/collection/common/yugop/core.js +16 -0
  14. package/dist/collection/common/yugop/index.js +3 -0
  15. package/dist/collection/common/yugop/random-text.js +59 -0
  16. package/dist/collection/common/yugop/utils/math.js +11 -0
  17. package/dist/collection/common/yugop/utils/noop.js +1 -0
  18. package/dist/collection/common/yugop/utils/prng.js +21 -0
  19. package/dist/collection/common/yugop/utils/string.js +2 -0
  20. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +306 -0
  21. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +85 -0
  22. package/dist/collection/components/mds-input-tip-item/meta/types.js +1 -0
  23. package/dist/collection/components/mds-input-tip-item/test/mds-input-tip-item.e2e.js +9 -0
  24. package/dist/collection/dictionary/autocomplete.js +59 -0
  25. package/dist/collection/dictionary/button.js +30 -0
  26. package/dist/collection/dictionary/color.js +19 -0
  27. package/dist/collection/dictionary/file-extensions.js +64 -0
  28. package/dist/collection/dictionary/floating-ui.js +19 -0
  29. package/dist/collection/dictionary/icon.js +10 -0
  30. package/dist/collection/dictionary/input.js +37 -0
  31. package/dist/collection/dictionary/loading.js +5 -0
  32. package/dist/collection/dictionary/text.js +6 -0
  33. package/dist/collection/dictionary/typography.js +67 -0
  34. package/dist/collection/dictionary/variant.js +90 -0
  35. package/dist/collection/fixtures/cities.js +110 -0
  36. package/dist/collection/fixtures/filenames.js +57 -0
  37. package/dist/collection/interface/input-value.js +1 -0
  38. package/dist/collection/type/autocomplete.js +1 -0
  39. package/dist/collection/type/button.js +1 -0
  40. package/dist/collection/type/file-types.js +1 -0
  41. package/dist/collection/type/floating-ui.js +1 -0
  42. package/dist/collection/type/form-rel.js +1 -0
  43. package/dist/collection/type/input.js +1 -0
  44. package/dist/collection/type/loading.js +1 -0
  45. package/dist/collection/type/text.js +1 -0
  46. package/dist/collection/type/typography.js +1 -0
  47. package/dist/collection/type/variant-file-format.js +120 -0
  48. package/dist/collection/type/variant.js +1 -0
  49. package/dist/components/index.d.ts +33 -0
  50. package/dist/components/index.js +1 -0
  51. package/dist/components/mds-input-tip-item.d.ts +11 -0
  52. package/dist/components/mds-input-tip-item.js +92 -0
  53. package/dist/documentation.d.ts +401 -0
  54. package/dist/documentation.json +109 -0
  55. package/dist/esm/index-9bfcacb5.js +1612 -0
  56. package/dist/esm/index.js +1 -0
  57. package/dist/esm/loader.js +9 -0
  58. package/dist/esm/mds-input-tip-item.entry.js +71 -0
  59. package/dist/esm/mds-input-tip-item.js +18 -0
  60. package/dist/esm/polyfills/core-js.js +11 -0
  61. package/dist/esm/polyfills/dom.js +79 -0
  62. package/dist/esm/polyfills/es5-html-element.js +1 -0
  63. package/dist/esm/polyfills/index.js +34 -0
  64. package/dist/esm/polyfills/system.js +6 -0
  65. package/dist/esm-es5/index-9bfcacb5.js +1 -0
  66. package/dist/esm-es5/index.js +0 -0
  67. package/dist/esm-es5/loader.js +1 -0
  68. package/dist/esm-es5/mds-input-tip-item.entry.js +1 -0
  69. package/dist/esm-es5/mds-input-tip-item.js +1 -0
  70. package/dist/index.cjs.js +1 -0
  71. package/dist/index.js +1 -0
  72. package/dist/mds-input-tip-item/index.esm.js +0 -0
  73. package/dist/mds-input-tip-item/mds-input-tip-item.esm.js +1 -0
  74. package/dist/mds-input-tip-item/mds-input-tip-item.js +127 -0
  75. package/dist/mds-input-tip-item/p-50ea2036.system.js +1 -0
  76. package/dist/mds-input-tip-item/p-96fd552b.entry.js +1 -0
  77. package/dist/mds-input-tip-item/p-9d931dda.js +2 -0
  78. package/dist/mds-input-tip-item/p-bc4a4db2.system.js +2 -0
  79. package/dist/mds-input-tip-item/p-e8f8ccd0.system.entry.js +1 -0
  80. package/dist/mds-input-tip-item/p-eb883bae.system.js +1 -0
  81. package/dist/stats.json +515 -0
  82. package/dist/types/common/aria.d.ts +5 -0
  83. package/dist/types/common/file.d.ts +12 -0
  84. package/dist/types/common/icon.d.ts +5 -0
  85. package/dist/types/common/keyboard-manager.d.ts +12 -0
  86. package/dist/types/common/locale.d.ts +14 -0
  87. package/dist/types/common/unit.d.ts +3 -0
  88. package/dist/types/common/yugop/core.d.ts +10 -0
  89. package/dist/types/common/yugop/index.d.ts +1 -0
  90. package/dist/types/common/yugop/random-text.d.ts +31 -0
  91. package/dist/types/common/yugop/utils/math.d.ts +3 -0
  92. package/dist/types/common/yugop/utils/noop.d.ts +1 -0
  93. package/dist/types/common/yugop/utils/prng.d.ts +8 -0
  94. package/dist/types/common/yugop/utils/string.d.ts +1 -0
  95. package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +15 -0
  96. package/dist/types/components/mds-input-tip-item/meta/types.d.ts +1 -0
  97. package/dist/types/components.d.ts +55 -0
  98. package/dist/types/dictionary/autocomplete.d.ts +2 -0
  99. package/dist/types/dictionary/button.d.ts +6 -0
  100. package/dist/types/dictionary/color.d.ts +3 -0
  101. package/dist/types/dictionary/file-extensions.d.ts +11 -0
  102. package/dist/types/dictionary/floating-ui.d.ts +3 -0
  103. package/dist/types/dictionary/icon.d.ts +4 -0
  104. package/dist/types/dictionary/input.d.ts +5 -0
  105. package/dist/types/dictionary/loading.d.ts +2 -0
  106. package/dist/types/dictionary/text.d.ts +2 -0
  107. package/dist/types/dictionary/typography.d.ts +11 -0
  108. package/dist/types/dictionary/variant.d.ts +11 -0
  109. package/dist/types/fixtures/cities.d.ts +2 -0
  110. package/dist/types/fixtures/filenames.d.ts +2 -0
  111. package/dist/types/interface/input-value.d.ts +4 -0
  112. package/dist/types/stencil-public-runtime.d.ts +1681 -0
  113. package/dist/types/type/autocomplete.d.ts +2 -0
  114. package/dist/types/type/button.d.ts +5 -0
  115. package/dist/types/type/file-types.d.ts +1 -0
  116. package/dist/types/type/floating-ui.d.ts +2 -0
  117. package/dist/types/type/form-rel.d.ts +1 -0
  118. package/dist/types/type/input.d.ts +4 -0
  119. package/dist/types/type/loading.d.ts +1 -0
  120. package/dist/types/type/text.d.ts +1 -0
  121. package/dist/types/type/typography.d.ts +10 -0
  122. package/dist/types/type/variant-file-format.d.ts +11 -0
  123. package/dist/types/type/variant.d.ts +12 -0
  124. package/documentation.json +585 -0
  125. package/loader/cdn.js +3 -0
  126. package/loader/index.cjs.js +3 -0
  127. package/loader/index.d.ts +21 -0
  128. package/loader/index.es2017.js +3 -0
  129. package/loader/index.js +4 -0
  130. package/loader/package.json +11 -0
  131. package/package.json +59 -0
  132. package/readme.md +38 -0
  133. package/src/common/aria.ts +39 -0
  134. package/src/common/file.ts +63 -0
  135. package/src/common/icon.ts +25 -0
  136. package/src/common/keyboard-manager.ts +50 -0
  137. package/src/common/locale.ts +31 -0
  138. package/src/common/unit.ts +33 -0
  139. package/src/common/yugop/core.ts +47 -0
  140. package/src/common/yugop/index.ts +4 -0
  141. package/src/common/yugop/random-text.ts +95 -0
  142. package/src/common/yugop/utils/math.ts +21 -0
  143. package/src/common/yugop/utils/noop.ts +1 -0
  144. package/src/common/yugop/utils/prng.ts +35 -0
  145. package/src/common/yugop/utils/string.ts +4 -0
  146. package/src/components/mds-input-tip-item/.gitlab-ci.yml +25 -0
  147. package/src/components/mds-input-tip-item/mds-input-tip-item.css +96 -0
  148. package/src/components/mds-input-tip-item/mds-input-tip-item.tsx +66 -0
  149. package/src/components/mds-input-tip-item/meta/locale.en.json +5 -0
  150. package/src/components/mds-input-tip-item/meta/locale.it.json +5 -0
  151. package/src/components/mds-input-tip-item/meta/types.ts +6 -0
  152. package/src/components/mds-input-tip-item/readme.md +18 -0
  153. package/src/components/mds-input-tip-item/test/mds-input-tip-item.e2e.ts +11 -0
  154. package/src/components.d.ts +55 -0
  155. package/src/dictionary/autocomplete.ts +62 -0
  156. package/src/dictionary/button.ts +41 -0
  157. package/src/dictionary/color.ts +24 -0
  158. package/src/dictionary/file-extensions.ts +81 -0
  159. package/src/dictionary/floating-ui.ts +25 -0
  160. package/src/dictionary/icon.ts +15 -0
  161. package/src/dictionary/input.ts +48 -0
  162. package/src/dictionary/loading.ts +9 -0
  163. package/src/dictionary/text.ts +9 -0
  164. package/src/dictionary/typography.ts +88 -0
  165. package/src/dictionary/variant.ts +111 -0
  166. package/src/fixtures/cities.ts +116 -0
  167. package/src/fixtures/filenames.ts +60 -0
  168. package/src/fixtures/icons.json +344 -0
  169. package/src/fixtures/iconsauce.json +257 -0
  170. package/src/interface/input-value.ts +5 -0
  171. package/src/tailwind/components.css +15 -0
  172. package/src/type/autocomplete.ts +69 -0
  173. package/src/type/button.ts +28 -0
  174. package/src/type/file-types.ts +55 -0
  175. package/src/type/floating-ui.ts +17 -0
  176. package/src/type/form-rel.ts +11 -0
  177. package/src/type/input.ts +25 -0
  178. package/src/type/loading.ts +3 -0
  179. package/src/type/text.ts +4 -0
  180. package/src/type/typography.ts +65 -0
  181. package/src/type/variant-file-format.ts +137 -0
  182. package/src/type/variant.ts +99 -0
  183. package/www/build/index.esm.js +0 -0
  184. package/www/build/mds-input-tip-item.esm.js +1 -0
  185. package/www/build/mds-input-tip-item.js +127 -0
  186. package/www/build/p-50ea2036.system.js +1 -0
  187. package/www/build/p-96fd552b.entry.js +1 -0
  188. package/www/build/p-9d931dda.js +2 -0
  189. package/www/build/p-bc4a4db2.system.js +2 -0
  190. package/www/build/p-e8f8ccd0.system.entry.js +1 -0
  191. package/www/build/p-eb883bae.system.js +1 -0
  192. package/www/host.config.json +15 -0
@@ -0,0 +1,67 @@
1
+ const typographyDictionary = [
2
+ 'action',
3
+ 'caption',
4
+ 'snippet',
5
+ 'detail',
6
+ 'h1',
7
+ 'h2',
8
+ 'h3',
9
+ 'h4',
10
+ 'h5',
11
+ 'h6',
12
+ 'hack',
13
+ 'label',
14
+ 'option',
15
+ 'paragraph',
16
+ 'tip',
17
+ ];
18
+ const typographyVariationsDictionary = [
19
+ 'title',
20
+ 'info',
21
+ 'read',
22
+ 'code',
23
+ ];
24
+ const typographyReadingVariationsDictionary = [
25
+ 'info',
26
+ 'read',
27
+ ];
28
+ const typographyMonoDictionary = [
29
+ 'snippet',
30
+ 'hack',
31
+ ];
32
+ const typographyTitleDictionary = [
33
+ 'action',
34
+ 'h1',
35
+ 'h2',
36
+ 'h3',
37
+ 'h4',
38
+ 'h5',
39
+ 'h6',
40
+ ];
41
+ const typographyInfoDictionary = [
42
+ 'caption',
43
+ 'detail',
44
+ 'label',
45
+ 'option',
46
+ 'paragraph',
47
+ 'tip',
48
+ ];
49
+ const typographyReadDictionary = [
50
+ 'caption',
51
+ 'detail',
52
+ 'paragraph',
53
+ ];
54
+ const typographySmallerDictionary = [
55
+ 'option',
56
+ 'tip',
57
+ ];
58
+ const typographyTooltipDictionary = [
59
+ 'caption',
60
+ 'detail',
61
+ 'tip',
62
+ ];
63
+ const typographyInputDictionary = [
64
+ 'snippet',
65
+ 'detail',
66
+ ];
67
+ export { typographyDictionary, typographyInfoDictionary, typographyInputDictionary, typographyMonoDictionary, typographyReadDictionary, typographyReadingVariationsDictionary, typographySmallerDictionary, typographyTitleDictionary, typographyTooltipDictionary, typographyVariationsDictionary, };
@@ -0,0 +1,90 @@
1
+ const themeVariantDictionary = [
2
+ 'dark',
3
+ 'error',
4
+ 'info',
5
+ 'light',
6
+ 'primary',
7
+ 'success',
8
+ 'warning',
9
+ ];
10
+ const themeLuminanceVariantDictionary = [
11
+ 'dark',
12
+ 'light',
13
+ ];
14
+ const themeStatusVariantDictionary = [
15
+ 'error',
16
+ 'info',
17
+ 'success',
18
+ 'warning',
19
+ ];
20
+ const themeFullVariantDictionary = [
21
+ 'amaranth',
22
+ 'aqua',
23
+ 'blue',
24
+ 'dark',
25
+ 'error',
26
+ 'green',
27
+ 'info',
28
+ 'light',
29
+ 'lime',
30
+ 'orange',
31
+ 'orchid',
32
+ 'sky',
33
+ 'success',
34
+ 'violet',
35
+ 'warning',
36
+ 'yellow',
37
+ ];
38
+ const themeFullVariantAvatarDictionary = [
39
+ 'amaranth',
40
+ 'aqua',
41
+ 'blue',
42
+ 'error',
43
+ 'green',
44
+ 'info',
45
+ 'lime',
46
+ 'orange',
47
+ 'orchid',
48
+ 'primary',
49
+ 'sky',
50
+ 'success',
51
+ 'violet',
52
+ 'warning',
53
+ 'yellow',
54
+ ];
55
+ const themeLabelVariantDictionary = [
56
+ 'amaranth',
57
+ 'aqua',
58
+ 'blue',
59
+ 'green',
60
+ 'lime',
61
+ 'orange',
62
+ 'orchid',
63
+ 'sky',
64
+ 'violet',
65
+ 'yellow',
66
+ ];
67
+ const toneVariantDictionary = [
68
+ 'strong',
69
+ 'weak',
70
+ 'ghost',
71
+ 'quiet',
72
+ ];
73
+ const toneActionVariantDictionary = [
74
+ 'primary',
75
+ 'secondary',
76
+ 'tertiary',
77
+ 'strong',
78
+ 'weak',
79
+ 'quiet',
80
+ ];
81
+ const toneSimpleVariantDictionary = [
82
+ 'strong',
83
+ 'weak',
84
+ 'quiet',
85
+ ];
86
+ const toneMinimalVariantDictionary = [
87
+ 'strong',
88
+ 'weak',
89
+ ];
90
+ export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
@@ -0,0 +1,110 @@
1
+ const citiesDictionary = [
2
+ 'Agrigento',
3
+ 'Alessandria',
4
+ 'Ancona',
5
+ 'Aosta',
6
+ 'Arezzo',
7
+ 'Ascoli Piceno',
8
+ 'Asti',
9
+ 'Avellino',
10
+ 'Bari',
11
+ 'Barletta-Andria-Trani',
12
+ 'Belluno',
13
+ 'Benevento',
14
+ 'Bergamo',
15
+ 'Biella',
16
+ 'Bologna',
17
+ 'Bolzano',
18
+ 'Brescia',
19
+ 'Brindisi',
20
+ 'Cagliari',
21
+ 'Caltanissetta',
22
+ 'Campobasso',
23
+ 'Caserta',
24
+ 'Catania',
25
+ 'Catanzaro',
26
+ 'Chieti',
27
+ 'Como',
28
+ 'Cosenza',
29
+ 'Cremona',
30
+ 'Crotone',
31
+ 'Cuneo',
32
+ 'Enna',
33
+ 'Fermo',
34
+ 'Ferrara',
35
+ 'Firenze',
36
+ 'Foggia',
37
+ 'Forlì-Cesena',
38
+ 'Frosinone',
39
+ 'Genova',
40
+ 'Gorizia',
41
+ 'Grosseto',
42
+ 'Imperia',
43
+ 'Isernia',
44
+ 'La Spezia',
45
+ 'L\'Aquila',
46
+ 'Latina',
47
+ 'Lecce',
48
+ 'Lecco',
49
+ 'Livorno',
50
+ 'Lodi',
51
+ 'Lucca',
52
+ 'Macerata',
53
+ 'Mantova',
54
+ 'Massa-Carrara',
55
+ 'Matera',
56
+ 'Messina',
57
+ 'Milano',
58
+ 'Modena',
59
+ 'Monza e della Brianza',
60
+ 'Napoli',
61
+ 'Novara',
62
+ 'Nuoro',
63
+ 'Oristano',
64
+ 'Padova',
65
+ 'Palermo',
66
+ 'Parma',
67
+ 'Pavia',
68
+ 'Perugia',
69
+ 'Pesaro e Urbino',
70
+ 'Pescara',
71
+ 'Piacenza',
72
+ 'Pisa',
73
+ 'Pistoia',
74
+ 'Pordenone',
75
+ 'Potenza',
76
+ 'Prato',
77
+ 'Ragusa',
78
+ 'Ravenna',
79
+ 'Reggio Calabria',
80
+ 'Reggio Emilia',
81
+ 'Rieti',
82
+ 'Rimini',
83
+ 'Roma',
84
+ 'Rovigo',
85
+ 'Salerno',
86
+ 'Sassari',
87
+ 'Savona',
88
+ 'Siena',
89
+ 'Siracusa',
90
+ 'Sondrio',
91
+ 'Sud Sardegna',
92
+ 'Taranto',
93
+ 'Teramo',
94
+ 'Terni',
95
+ 'Torino',
96
+ 'Trapani',
97
+ 'Trento',
98
+ 'Treviso',
99
+ 'Trieste',
100
+ 'Udine',
101
+ 'Varese',
102
+ 'Venezia',
103
+ 'Verbano-Cusio-Ossola',
104
+ 'Vercelli',
105
+ 'Verona',
106
+ 'Vibo Valentia',
107
+ 'Vicenza',
108
+ 'Viterbo',
109
+ ];
110
+ export { citiesDictionary, };
@@ -0,0 +1,57 @@
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
+ export { filesList, };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,120 @@
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
+ import baselineEmail from "@icon/mi/baseline/email.svg";
8
+ import baselineWysiwyg from "@icon/mi/baseline/wysiwyg.svg";
9
+ import baselinePanorama from "@icon/mi/baseline/panorama.svg";
10
+ import baselineWeb from "@icon/mi/baseline/web.svg";
11
+ import baselineTV from "@icon/mi/baseline/tv.svg";
12
+ import baselineBorderAll from "@icon/mi/baseline/border-all.svg";
13
+ import baselineDescription from "@icon/mi/baseline/description.svg";
14
+ import mdiVectorCurve from "@icon/mdi/vector-curve.svg";
15
+ import baselineVideocam from "@icon/mi/baseline/videocam.svg";
16
+ const fileFormatsVariant = {
17
+ archive: {
18
+ color: 'fill-label-amaranth-04 text-label-amaranth-04',
19
+ icon: baselineFolderZip,
20
+ iconBackground: 'bg-label-amaranth-10',
21
+ variant: 'amaranth',
22
+ },
23
+ attachment: {
24
+ color: 'fill-tone-neutral-04 text-tone-neutral-04',
25
+ icon: baselineAttachFile,
26
+ iconBackground: 'bg-tone-neutral-10',
27
+ variant: 'dark',
28
+ },
29
+ audio: {
30
+ color: 'fill-label-violet-04 text-label-violet-04',
31
+ icon: baselineAudiotrack,
32
+ iconBackground: 'bg-label-violet-10',
33
+ variant: 'violet',
34
+ },
35
+ code: {
36
+ color: 'fill-label-yellow-04 text-label-yellow-04',
37
+ icon: baselineTerminal,
38
+ iconBackground: 'bg-label-yellow-10',
39
+ variant: 'yellow',
40
+ },
41
+ data: {
42
+ color: 'fill-label-yellow-04 text-label-yellow-04',
43
+ icon: mdiHardDisk,
44
+ iconBackground: 'bg-label-yellow-10',
45
+ variant: 'yellow',
46
+ },
47
+ document: {
48
+ color: 'fill-label-orange-04 text-label-orange-04',
49
+ icon: baselineInsertDriveFile,
50
+ iconBackground: 'bg-label-orange-10',
51
+ variant: 'orange',
52
+ },
53
+ email: {
54
+ color: 'fill-label-blue-04 text-label-blue-04',
55
+ icon: baselineEmail,
56
+ iconBackground: 'bg-label-blue-10',
57
+ variant: 'blue',
58
+ },
59
+ executable: {
60
+ color: 'fill-label-amaranth-04 text-label-amaranth-04',
61
+ icon: baselineWysiwyg,
62
+ iconBackground: 'bg-label-amaranth-10',
63
+ variant: 'amaranth',
64
+ },
65
+ image: {
66
+ color: 'fill-label-green-04 text-label-green-04',
67
+ icon: baselinePanorama,
68
+ iconBackground: 'bg-label-green-10',
69
+ variant: 'green',
70
+ },
71
+ imageRaster: {
72
+ color: 'fill-label-green-04 text-label-green-04',
73
+ icon: baselinePanorama,
74
+ iconBackground: 'bg-label-green-10',
75
+ variant: 'green',
76
+ },
77
+ markup: {
78
+ color: 'fill-label-yellow-04 text-label-yellow-04',
79
+ icon: baselineWeb,
80
+ iconBackground: 'bg-label-yellow-10',
81
+ variant: 'yellow',
82
+ },
83
+ slide: {
84
+ color: 'fill-label-orchid-04 text-label-orchid-04',
85
+ icon: baselineTV,
86
+ iconBackground: 'bg-label-orchid-10',
87
+ variant: 'orchid',
88
+ },
89
+ spreadsheet: {
90
+ color: 'fill-label-lime-04 text-label-lime-04',
91
+ icon: baselineBorderAll,
92
+ iconBackground: 'bg-label-lime-10',
93
+ variant: 'lime',
94
+ },
95
+ text: {
96
+ color: 'fill-label-blue-04 text-label-blue-04',
97
+ icon: baselineDescription,
98
+ iconBackground: 'bg-label-blue-10',
99
+ variant: 'blue',
100
+ },
101
+ vectorImage: {
102
+ color: 'fill-label-aqua-04 text-label-aqua-04',
103
+ icon: mdiVectorCurve,
104
+ iconBackground: 'bg-label-aqua-10',
105
+ variant: 'aqua',
106
+ },
107
+ vector: {
108
+ color: 'fill-label-aqua-04 text-label-aqua-04',
109
+ icon: mdiVectorCurve,
110
+ iconBackground: 'bg-label-aqua-10',
111
+ variant: 'aqua',
112
+ },
113
+ video: {
114
+ color: 'fill-label-violet-04 text-label-violet-04',
115
+ icon: baselineVideocam,
116
+ iconBackground: 'bg-label-violet-10',
117
+ variant: 'violet',
118
+ },
119
+ };
120
+ export { fileFormatsVariant, };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
6
+
7
+ /**
8
+ * Used to manually set the base path where assets can be found.
9
+ * If the script is used as "module", it's recommended to use "import.meta.url",
10
+ * such as "setAssetPath(import.meta.url)". Other options include
11
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
12
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
13
+ * But do note that this configuration depends on how your script is bundled, or lack of
14
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
15
+ * will have to ensure the static assets are copied to its build directory.
16
+ */
17
+ export declare const setAssetPath: (path: string) => void;
18
+
19
+ /**
20
+ * Used to specify a nonce value that corresponds with an application's CSP.
21
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
22
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
23
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
24
+ * will result in the same behavior.
25
+ */
26
+ export declare const setNonce: (nonce: string) => void
27
+
28
+ export interface SetPlatformOptions {
29
+ raf?: (c: FrameRequestCallback) => number;
30
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
31
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
32
+ }
33
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
@@ -0,0 +1 @@
1
+ export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface MdsInputTipItem extends Components.MdsInputTipItem, HTMLElement {}
4
+ export const MdsInputTipItem: {
5
+ prototype: MdsInputTipItem;
6
+ new (): MdsInputTipItem;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,92 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const miBaselineDone = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19L21 7l-1.4-1.4L9 16.2z"/></svg>`;
4
+
5
+ class Locale {
6
+ constructor(configData) {
7
+ this.defaultLanguage = 'en';
8
+ this.lang = (element) => {
9
+ const closestElement = element.closest('[lang]');
10
+ if (closestElement) {
11
+ if (closestElement.lang) {
12
+ this.language = closestElement.lang;
13
+ return;
14
+ }
15
+ }
16
+ this.language = this.defaultLanguage;
17
+ };
18
+ this.get = (tag) => {
19
+ var _a;
20
+ return (_a = this.config[this.language][tag]) !== null && _a !== void 0 ? _a : this.config[this.defaultLanguage][tag];
21
+ };
22
+ this.config = configData;
23
+ }
24
+ }
25
+
26
+ const required$1 = "Required";
27
+ const disabled$1 = "Disabled";
28
+ const readonly$1 = "Read only";
29
+ const localeEn = {
30
+ required: required$1,
31
+ disabled: disabled$1,
32
+ readonly: readonly$1
33
+ };
34
+
35
+ const required = "Obbligatorio";
36
+ const disabled = "Disattivato";
37
+ const readonly = "Sola lettura";
38
+ const localeIt = {
39
+ required: required,
40
+ disabled: disabled,
41
+ readonly: readonly
42
+ };
43
+
44
+ const mdsInputTipItemCss = "@tailwind components; .svg{display:-ms-flexbox;display:flex}.svg svg{aspect-ratio:1/1;height:100%;width:100%}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border{border-width:1px}.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))}.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-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-input-tip-item-background:rgb(var(--tone-neutral-01));--mds-input-tip-item-color:rgb(var(--tone-neutral));--mds-input-tip-item-icon-color:var(--tone-neutral);height:0.75rem;border-radius:0.375rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:rgb(var(--mds-input-tip-item-background));color:rgb(var(--mds-input-tip-item-color));display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;min-width:0.75rem;padding:0;pointer-events:none;position:static;text-align:center;-webkit-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform, -webkit-transform;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host([expanded=\"false\"]){color:transparent}:host([expanded]:not([expanded=\"false\"])){padding-left:0.5rem;padding-right:0.5rem;--mds-input-tip-item-color:var(--tone-neutral)}:host([expanded]:not([expanded=\"false\"])) .content{grid-template-columns:1fr;opacity:1}.content{height:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);display:grid;grid-template-columns:0fr;opacity:0;overflow:hidden;-webkit-transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity, -ms-grid-columns}.text{line-height:0.75rem}.icon{height:0.75rem;width:0.75rem;fill:rgb(var(--mds-input-tip-item-icon-color));-webkit-transform:translateY(-1px);transform:translateY(-1px)}:host([variant=\"required\"]){--mds-input-tip-item-background:var(--status-error-05)}:host([variant=\"required-success\"]){--mds-input-tip-item-background:var(--status-success-05)}:host([variant=\"readonly\"]){--mds-input-tip-item-background:var(--status-info-05)}:host([variant=\"disabled\"]){--mds-input-tip-item-background:var(--tone-neutral-05)}:host([variant=\"text\"]){--mds-input-tip-item-background:var(--tone-neutral-03)}";
45
+
46
+ const MdsInputTipItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputTipItem extends HTMLElement {
47
+ constructor() {
48
+ super();
49
+ this.__registerHost();
50
+ this.__attachShadow();
51
+ this.t = new Locale({
52
+ en: localeEn,
53
+ it: localeIt,
54
+ });
55
+ this.variant = 'required';
56
+ this.expanded = true;
57
+ }
58
+ componentWillRender() {
59
+ this.t.lang(this.element);
60
+ }
61
+ render() {
62
+ return (h(Host, null, h("div", { class: "content" }, this.variant === 'text' &&
63
+ h("mds-text", { typography: "option", truncate: "word" }, h("span", { class: "text" }, h("slot", null))), this.variant === 'readonly' &&
64
+ h("mds-text", { typography: "option", truncate: "word" }, h("span", { class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'disabled' &&
65
+ h("mds-text", { typography: "option", truncate: "word" }, h("span", { class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required' &&
66
+ h("mds-text", { typography: "option", truncate: "word" }, h("span", { class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required-success' &&
67
+ h("span", { class: "icon svg", innerHTML: miBaselineDone }))));
68
+ }
69
+ get element() { return this; }
70
+ static get style() { return mdsInputTipItemCss; }
71
+ }, [1, "mds-input-tip-item", {
72
+ "variant": [513],
73
+ "expanded": [516]
74
+ }]);
75
+ function defineCustomElement$1() {
76
+ if (typeof customElements === "undefined") {
77
+ return;
78
+ }
79
+ const components = ["mds-input-tip-item"];
80
+ components.forEach(tagName => { switch (tagName) {
81
+ case "mds-input-tip-item":
82
+ if (!customElements.get(tagName)) {
83
+ customElements.define(tagName, MdsInputTipItem$1);
84
+ }
85
+ break;
86
+ } });
87
+ }
88
+
89
+ const MdsInputTipItem = MdsInputTipItem$1;
90
+ const defineCustomElement = defineCustomElement$1;
91
+
92
+ export { MdsInputTipItem, defineCustomElement };