@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,306 @@
1
+ @tailwind components;
2
+
3
+ .svg{
4
+
5
+ display: flex;
6
+ }
7
+
8
+ .svg svg{
9
+
10
+ aspect-ratio: 1/1;
11
+
12
+ height: 100%;
13
+
14
+ width: 100%;
15
+ }
16
+ .static{
17
+
18
+ position: static;
19
+ }
20
+ .fixed{
21
+
22
+ position: fixed;
23
+ }
24
+ .absolute{
25
+
26
+ position: absolute;
27
+ }
28
+ .truncate{
29
+
30
+ overflow: hidden;
31
+
32
+ text-overflow: ellipsis;
33
+
34
+ white-space: nowrap;
35
+ }
36
+ .border{
37
+
38
+ border-width: 1px;
39
+ }
40
+ .bg-label-amaranth-10{
41
+
42
+ --tw-bg-opacity: 1;
43
+
44
+ background-color: rgb(var(--label-amaranth-10) / var(--tw-bg-opacity));
45
+ }
46
+ .bg-label-aqua-10{
47
+
48
+ --tw-bg-opacity: 1;
49
+
50
+ background-color: rgb(var(--label-aqua-10) / var(--tw-bg-opacity));
51
+ }
52
+ .bg-label-blue-10{
53
+
54
+ --tw-bg-opacity: 1;
55
+
56
+ background-color: rgb(var(--label-blue-10) / var(--tw-bg-opacity));
57
+ }
58
+ .bg-label-green-10{
59
+
60
+ --tw-bg-opacity: 1;
61
+
62
+ background-color: rgb(var(--label-green-10) / var(--tw-bg-opacity));
63
+ }
64
+ .bg-label-lime-10{
65
+
66
+ --tw-bg-opacity: 1;
67
+
68
+ background-color: rgb(var(--label-lime-10) / var(--tw-bg-opacity));
69
+ }
70
+ .bg-label-orange-10{
71
+
72
+ --tw-bg-opacity: 1;
73
+
74
+ background-color: rgb(var(--label-orange-10) / var(--tw-bg-opacity));
75
+ }
76
+ .bg-label-orchid-10{
77
+
78
+ --tw-bg-opacity: 1;
79
+
80
+ background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));
81
+ }
82
+ .bg-label-violet-10{
83
+
84
+ --tw-bg-opacity: 1;
85
+
86
+ background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));
87
+ }
88
+ .bg-label-yellow-10{
89
+
90
+ --tw-bg-opacity: 1;
91
+
92
+ background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));
93
+ }
94
+ .bg-tone-neutral-10{
95
+
96
+ --tw-bg-opacity: 1;
97
+
98
+ background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));
99
+ }
100
+ .fill-label-amaranth-04{
101
+
102
+ fill: rgb(var(--label-amaranth-04));
103
+ }
104
+ .fill-label-aqua-04{
105
+
106
+ fill: rgb(var(--label-aqua-04));
107
+ }
108
+ .fill-label-blue-04{
109
+
110
+ fill: rgb(var(--label-blue-04));
111
+ }
112
+ .fill-label-green-04{
113
+
114
+ fill: rgb(var(--label-green-04));
115
+ }
116
+ .fill-label-lime-04{
117
+
118
+ fill: rgb(var(--label-lime-04));
119
+ }
120
+ .fill-label-orange-04{
121
+
122
+ fill: rgb(var(--label-orange-04));
123
+ }
124
+ .fill-label-orchid-04{
125
+
126
+ fill: rgb(var(--label-orchid-04));
127
+ }
128
+ .fill-label-violet-04{
129
+
130
+ fill: rgb(var(--label-violet-04));
131
+ }
132
+ .fill-label-yellow-04{
133
+
134
+ fill: rgb(var(--label-yellow-04));
135
+ }
136
+ .fill-tone-neutral-04{
137
+
138
+ fill: rgb(var(--tone-neutral-04));
139
+ }
140
+ .text-label-amaranth-04{
141
+
142
+ --tw-text-opacity: 1;
143
+
144
+ color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));
145
+ }
146
+ .text-label-aqua-04{
147
+
148
+ --tw-text-opacity: 1;
149
+
150
+ color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));
151
+ }
152
+ .text-label-blue-04{
153
+
154
+ --tw-text-opacity: 1;
155
+
156
+ color: rgb(var(--label-blue-04) / var(--tw-text-opacity));
157
+ }
158
+ .text-label-green-04{
159
+
160
+ --tw-text-opacity: 1;
161
+
162
+ color: rgb(var(--label-green-04) / var(--tw-text-opacity));
163
+ }
164
+ .text-label-lime-04{
165
+
166
+ --tw-text-opacity: 1;
167
+
168
+ color: rgb(var(--label-lime-04) / var(--tw-text-opacity));
169
+ }
170
+ .text-label-orange-04{
171
+
172
+ --tw-text-opacity: 1;
173
+
174
+ color: rgb(var(--label-orange-04) / var(--tw-text-opacity));
175
+ }
176
+ .text-label-orchid-04{
177
+
178
+ --tw-text-opacity: 1;
179
+
180
+ color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));
181
+ }
182
+ .text-label-violet-04{
183
+
184
+ --tw-text-opacity: 1;
185
+
186
+ color: rgb(var(--label-violet-04) / var(--tw-text-opacity));
187
+ }
188
+ .text-label-yellow-04{
189
+
190
+ --tw-text-opacity: 1;
191
+
192
+ color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));
193
+ }
194
+ .text-tone-neutral-04{
195
+
196
+ --tw-text-opacity: 1;
197
+
198
+ color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));
199
+ }
200
+ .shadow{
201
+
202
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
203
+
204
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
205
+
206
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
207
+ }
208
+
209
+ :host {
210
+
211
+ --mds-input-tip-item-background: rgb(var(--tone-neutral-01));
212
+ --mds-input-tip-item-color: rgb(var(--tone-neutral));
213
+ --mds-input-tip-item-icon-color: var(--tone-neutral);
214
+ height: 0.75rem;
215
+ border-radius: 0.375rem;
216
+ transition-duration: 300ms;
217
+ transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
218
+
219
+ align-items: center;
220
+ background-color: rgb(var(--mds-input-tip-item-background));
221
+ color: rgb(var(--mds-input-tip-item-color));
222
+ display: flex;
223
+ justify-content: center;
224
+ min-width: 0.75rem;
225
+ padding: 0;
226
+ pointer-events: none;
227
+ position: static;
228
+ text-align: center;
229
+ transform: translate(0, 0);
230
+ transition-property: background-color, border-radius, color, padding-left, padding-right, transform;
231
+ -webkit-user-select: none;
232
+ -moz-user-select: none;
233
+ user-select: none;
234
+ }
235
+
236
+ :host ([expanded="false"]) {
237
+ color: transparent;
238
+ }
239
+
240
+ :host ([expanded]:not([expanded="false"])){
241
+
242
+ padding-left: 0.5rem;
243
+
244
+ padding-right: 0.5rem;
245
+
246
+ --mds-input-tip-item-color: var(--tone-neutral);
247
+ }
248
+
249
+ :host ([expanded]:not([expanded="false"])) .content {
250
+ grid-template-columns: 1fr;
251
+ opacity: 1;
252
+ }
253
+
254
+ .content{
255
+
256
+ height: 0.75rem;
257
+
258
+ transition-duration: 200ms;
259
+
260
+ transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
261
+
262
+ display: grid;
263
+ grid-template-columns: 0fr;
264
+ opacity: 0;
265
+ overflow: hidden;
266
+ transition-property: grid-template-columns, opacity;
267
+ }
268
+
269
+ .text {
270
+ line-height: 0.75rem;
271
+ }
272
+
273
+ .icon{
274
+
275
+ height: 0.75rem;
276
+
277
+ width: 0.75rem;
278
+
279
+ fill: rgb(var(--mds-input-tip-item-icon-color));
280
+ transform: translateY(-1px);
281
+ }
282
+
283
+ :host ([variant="required"]) {
284
+
285
+ --mds-input-tip-item-background: var(--status-error-05);
286
+ }
287
+
288
+ :host ([variant="required-success"]) {
289
+
290
+ --mds-input-tip-item-background: var(--status-success-05);
291
+ }
292
+
293
+ :host ([variant="readonly"]) {
294
+
295
+ --mds-input-tip-item-background: var(--status-info-05);
296
+ }
297
+
298
+ :host ([variant="disabled"]) {
299
+
300
+ --mds-input-tip-item-background: var(--tone-neutral-05);
301
+ }
302
+
303
+ :host ([variant="text"]) {
304
+
305
+ --mds-input-tip-item-background: var(--tone-neutral-03);
306
+ }
@@ -0,0 +1,85 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import miBaselineDone from "@icon/mi/baseline/done.svg";
3
+ import { Locale } from "../../common/locale";
4
+ import localeEn from "./meta/locale.en.json";
5
+ import localeIt from "./meta/locale.it.json";
6
+ export class MdsInputTipItem {
7
+ constructor() {
8
+ this.t = new Locale({
9
+ en: localeEn,
10
+ it: localeIt,
11
+ });
12
+ this.variant = 'required';
13
+ this.expanded = true;
14
+ }
15
+ componentWillRender() {
16
+ this.t.lang(this.element);
17
+ }
18
+ render() {
19
+ return (h(Host, null, h("div", { class: "content" }, this.variant === 'text' &&
20
+ h("mds-text", { typography: "option", truncate: "word" }, h("span", { class: "text" }, h("slot", null))), this.variant === 'readonly' &&
21
+ h("mds-text", { typography: "option", truncate: "word" }, h("span", { class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'disabled' &&
22
+ h("mds-text", { typography: "option", truncate: "word" }, h("span", { class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required' &&
23
+ h("mds-text", { typography: "option", truncate: "word" }, h("span", { class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required-success' &&
24
+ h("span", { class: "icon svg", innerHTML: miBaselineDone }))));
25
+ }
26
+ static get is() { return "mds-input-tip-item"; }
27
+ static get encapsulation() { return "shadow"; }
28
+ static get originalStyleUrls() {
29
+ return {
30
+ "$": ["mds-input-tip-item.css"]
31
+ };
32
+ }
33
+ static get styleUrls() {
34
+ return {
35
+ "$": ["mds-input-tip-item.css"]
36
+ };
37
+ }
38
+ static get properties() {
39
+ return {
40
+ "variant": {
41
+ "type": "string",
42
+ "mutable": false,
43
+ "complexType": {
44
+ "original": "InputTipItemVariantType",
45
+ "resolved": "\"disabled\" | \"readonly\" | \"required\" | \"required-success\" | \"text\" | undefined",
46
+ "references": {
47
+ "InputTipItemVariantType": {
48
+ "location": "import",
49
+ "path": "@component/mds-input-tip-item/meta/types",
50
+ "id": "src/components/mds-input-tip-item/meta/types.ts::InputTipItemVariantType"
51
+ }
52
+ }
53
+ },
54
+ "required": false,
55
+ "optional": true,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": "Specifies the variant of the element"
59
+ },
60
+ "attribute": "variant",
61
+ "reflect": true,
62
+ "defaultValue": "'required'"
63
+ },
64
+ "expanded": {
65
+ "type": "boolean",
66
+ "mutable": false,
67
+ "complexType": {
68
+ "original": "boolean",
69
+ "resolved": "boolean | undefined",
70
+ "references": {}
71
+ },
72
+ "required": false,
73
+ "optional": true,
74
+ "docs": {
75
+ "tags": [],
76
+ "text": "Specifies if the element is expanded"
77
+ },
78
+ "attribute": "expanded",
79
+ "reflect": true,
80
+ "defaultValue": "true"
81
+ }
82
+ };
83
+ }
84
+ static get elementRef() { return "element"; }
85
+ }
@@ -0,0 +1,9 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('mds-input-tip-item', () => {
3
+ it('renders', async () => {
4
+ const page = await newE2EPage();
5
+ await page.setContent('<mds-input-tip-item></mds-input-tip-item>');
6
+ const element = await page.find('mds-input-tip-item');
7
+ expect(element).toHaveAttribute('hydrated');
8
+ });
9
+ });
@@ -0,0 +1,59 @@
1
+ const autoCompleteDictionary = [
2
+ 'additional-name',
3
+ 'address',
4
+ 'address-level1',
5
+ 'address-level2',
6
+ 'address-level3',
7
+ 'address-level4',
8
+ 'address-line1',
9
+ 'address-line2',
10
+ 'address-line3',
11
+ 'bday',
12
+ 'bday-day',
13
+ 'bday-month',
14
+ 'bday-year',
15
+ 'cc-additional-name',
16
+ 'cc-csc',
17
+ 'cc-exp',
18
+ 'cc-exp-month',
19
+ 'cc-exp-year',
20
+ 'cc-family-name',
21
+ 'cc-family-name',
22
+ 'cc-given-name',
23
+ 'cc-name',
24
+ 'cc-number',
25
+ 'cc-type',
26
+ 'country',
27
+ 'country-name',
28
+ 'current-password',
29
+ 'email',
30
+ 'family-name',
31
+ 'given-name',
32
+ 'honorific-prefix',
33
+ 'honorific-suffix',
34
+ 'impp',
35
+ 'language',
36
+ 'name',
37
+ 'new-password',
38
+ 'nickname',
39
+ 'off',
40
+ 'on',
41
+ 'one-time-code',
42
+ 'organization',
43
+ 'organization-title',
44
+ 'photo',
45
+ 'postal-code',
46
+ 'sex',
47
+ 'street-address',
48
+ 'tel',
49
+ 'tel-area-code',
50
+ 'tel-country-code',
51
+ 'tel-extension',
52
+ 'tel-local',
53
+ 'tel-national',
54
+ 'transaction-amount',
55
+ 'transaction-currency',
56
+ 'url',
57
+ 'username',
58
+ ];
59
+ export { autoCompleteDictionary, };
@@ -0,0 +1,30 @@
1
+ const buttonVariantDictionary = [
2
+ 'dark',
3
+ 'error',
4
+ 'info',
5
+ 'light',
6
+ 'primary',
7
+ 'success',
8
+ 'warning',
9
+ ];
10
+ const buttonToneVariantDictionary = [
11
+ 'strong',
12
+ 'weak',
13
+ 'ghost',
14
+ 'quiet',
15
+ ];
16
+ const buttonTargetDictionary = [
17
+ 'blank',
18
+ 'self',
19
+ ];
20
+ const buttonSizeDictionary = [
21
+ 'sm',
22
+ 'md',
23
+ 'lg',
24
+ 'xl',
25
+ ];
26
+ const buttonIconPositionDictionary = [
27
+ 'left',
28
+ 'right',
29
+ ];
30
+ export { buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneVariantDictionary, buttonVariantDictionary, };
@@ -0,0 +1,19 @@
1
+ const colorLabelDictionary = [
2
+ 'amaranth',
3
+ 'aqua',
4
+ 'blue',
5
+ 'green',
6
+ 'lime',
7
+ 'orange',
8
+ 'orchid',
9
+ 'sky',
10
+ 'violet',
11
+ 'yellow',
12
+ ];
13
+ const colorStatusDictionary = [
14
+ 'error',
15
+ 'info',
16
+ 'success',
17
+ 'warning',
18
+ ];
19
+ export { colorLabelDictionary, colorStatusDictionary, };
@@ -0,0 +1,64 @@
1
+ const fileExtensionsDictionary = {
2
+ '7z': { format: 'archive', description: 'Archivio compresso' },
3
+ ace: { format: 'archive', description: 'Archivio compresso' },
4
+ ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
5
+ dart: { format: 'code', description: 'Dart' },
6
+ db: { format: 'data', description: 'File di database' },
7
+ default: { format: 'attachment', description: 'Formato sconosciuto' },
8
+ dmg: { format: 'executable', description: 'Apple Disk Image' },
9
+ doc: { format: 'text', description: 'Documento Microsoft Word' },
10
+ docm: { format: 'text', description: 'Documento Microsoft Word' },
11
+ docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
12
+ eml: { format: 'email', description: 'E-mail di posta elettronica' },
13
+ eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
14
+ exe: { format: 'executable', description: 'File eseguibile Windows' },
15
+ flac: { format: 'audio', description: 'Audio non compresso' },
16
+ gif: { format: 'image', description: 'Immagine compressa', preview: true },
17
+ htm: { format: 'markup', description: 'Pagina web' },
18
+ heic: { format: 'image', description: 'High Efficiency Image File Format' },
19
+ html: { format: 'markup', description: 'Pagina web' },
20
+ jpe: { format: 'image', description: 'Immagine compressa', preview: true },
21
+ jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
22
+ jpg: { format: 'image', description: 'Immagine compressa', preview: true },
23
+ js: { format: 'code', description: 'JavaScript' },
24
+ json: { format: 'data', description: 'JavaScript Object Notation' },
25
+ jsx: { format: 'code', description: 'JavaScript' },
26
+ m2v: { format: 'video', description: 'Filmato SD' },
27
+ mp2: { format: 'audio', description: 'Audio compresso' },
28
+ mp3: { format: 'audio', description: 'Audio compresso' },
29
+ mp4: { format: 'video', description: 'Filmato HD' },
30
+ mp4v: { format: 'video', description: 'Filmato HD' },
31
+ mpeg: { format: 'video', description: 'Filmato SD' },
32
+ mpg4: { format: 'video', description: 'Filmato SD' },
33
+ mpg: { format: 'video', description: 'Filmato SD' },
34
+ mpga: { format: 'audio', description: 'Audio compresso' },
35
+ odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
36
+ ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
37
+ odt: { format: 'text', description: 'File di testo LibreOffice' },
38
+ pdf: { format: 'document', description: 'Documento Adobe' },
39
+ php: { format: 'code', description: 'Hypertext Preprocessor' },
40
+ png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
41
+ ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
42
+ rar: { format: 'archive', description: 'Archivio compresso' },
43
+ rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
44
+ sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
45
+ shtml: { format: 'markup', description: 'Pagina web' },
46
+ svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
47
+ tar: { format: 'archive', description: 'Archivio non compresso' },
48
+ tiff: { format: 'image', description: 'Tag Image File Format' },
49
+ ts: { format: 'code', description: 'TypeScript' },
50
+ tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
51
+ txt: { format: 'text', description: 'Documento di testo non formattato' },
52
+ wav: { format: 'audio', description: 'Audio non compresso' },
53
+ webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
54
+ xar: { format: 'archive', description: 'Archivio compresso' },
55
+ xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
56
+ xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
57
+ zip: { format: 'archive', description: 'Archivio compresso' },
58
+ };
59
+ const genericMimeToExt = new Map([
60
+ ['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
61
+ ['audio', ['.mp2', '.mp3', '.mpga', '.wav', '.flac']],
62
+ ['video', ['.mv2', '.mp4', '.mp4v', '.mpeg', '.mpg4', '.mpg']],
63
+ ]);
64
+ export { fileExtensionsDictionary, genericMimeToExt, };
@@ -0,0 +1,19 @@
1
+ const floatingUIPlacementDictionary = [
2
+ 'bottom',
3
+ 'bottom-end',
4
+ 'bottom-start',
5
+ 'left',
6
+ 'left-end',
7
+ 'left-start',
8
+ 'right',
9
+ 'right-end',
10
+ 'right-start',
11
+ 'top',
12
+ 'top-end',
13
+ 'top-start',
14
+ ];
15
+ const floatingUIStrategyDictionary = [
16
+ 'absolute',
17
+ 'fixed',
18
+ ];
19
+ export { floatingUIPlacementDictionary, floatingUIStrategyDictionary, };
@@ -0,0 +1,10 @@
1
+ import jsonIconsDictionary from "../fixtures/icons.json";
2
+ import jsonMggIconsDictionary from "../fixtures/iconsauce.json";
3
+ const iconsDictionary = jsonIconsDictionary;
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
+ ];
10
+ export { iconsDictionary, mggIconsDictionary, svgIconsDictionary, };
@@ -0,0 +1,37 @@
1
+ const inputTextTypeDictionary = [
2
+ 'date',
3
+ 'email',
4
+ 'number',
5
+ 'password',
6
+ 'search',
7
+ 'tel',
8
+ 'text',
9
+ 'textarea',
10
+ 'time',
11
+ 'url',
12
+ ];
13
+ const inputFieldTypeDictionary = [
14
+ 'date',
15
+ 'email',
16
+ 'number',
17
+ 'password',
18
+ 'search',
19
+ 'tel',
20
+ 'text',
21
+ 'textarea',
22
+ 'time',
23
+ 'url',
24
+ 'cc',
25
+ 'cf',
26
+ 'isbn',
27
+ 'piva',
28
+ ];
29
+ const inputControlsLayoutDictionary = [
30
+ 'horizontal',
31
+ 'vertical',
32
+ ];
33
+ const inputControlsIconDictionary = [
34
+ 'arrow',
35
+ 'arithmetic',
36
+ ];
37
+ export { inputControlsIconDictionary, inputControlsLayoutDictionary, inputTextTypeDictionary, inputFieldTypeDictionary, };
@@ -0,0 +1,5 @@
1
+ const loadingDictionary = [
2
+ 'eager',
3
+ 'lazy',
4
+ ];
5
+ export { loadingDictionary, };
@@ -0,0 +1,6 @@
1
+ const truncateDictionary = [
2
+ 'all',
3
+ 'none',
4
+ 'word',
5
+ ];
6
+ export { truncateDictionary, };