@maggioli-design-system/mds-input-tip 1.1.3 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/dist/cjs/{index-f87612f6.js → index-442db91d.js} +14 -3
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-input-tip.cjs.entry.js +2 -2
  4. package/dist/cjs/mds-input-tip.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/common/locale.js +17 -5
  7. package/dist/collection/components/mds-input-tip/mds-input-tip.css +1 -228
  8. package/dist/collection/dictionary/button.js +1 -0
  9. package/dist/collection/dictionary/variant.js +10 -1
  10. package/dist/collection/type/variant-file-format.js +0 -34
  11. package/dist/components/mds-input-tip.js +1 -1
  12. package/dist/documentation.json +3 -3
  13. package/dist/esm/{index-a04da9f4.js → index-8fed469d.js} +14 -3
  14. package/dist/esm/loader.js +2 -2
  15. package/dist/esm/mds-input-tip.entry.js +2 -2
  16. package/dist/esm/mds-input-tip.js +3 -3
  17. package/dist/esm-es5/index-8fed469d.js +1 -0
  18. package/dist/esm-es5/loader.js +1 -1
  19. package/dist/esm-es5/mds-input-tip.entry.js +1 -1
  20. package/dist/esm-es5/mds-input-tip.js +1 -1
  21. package/dist/mds-input-tip/mds-input-tip.esm.js +1 -1
  22. package/dist/mds-input-tip/mds-input-tip.js +1 -1
  23. package/dist/mds-input-tip/p-37c61f56.system.js +2 -0
  24. package/dist/mds-input-tip/p-3e967425.js +2 -0
  25. package/dist/mds-input-tip/p-4486a5e4.entry.js +1 -0
  26. package/dist/mds-input-tip/{p-ca408384.system.js → p-c915dfb3.system.js} +1 -1
  27. package/dist/mds-input-tip/p-fadf816e.system.entry.js +1 -0
  28. package/dist/stats.json +34 -36
  29. package/dist/types/common/date.d.ts +1 -1
  30. package/dist/types/common/file.d.ts +3 -4
  31. package/dist/types/common/locale.d.ts +3 -1
  32. package/dist/types/dictionary/file-extensions.d.ts +2 -1
  33. package/dist/types/dictionary/variant.d.ts +2 -1
  34. package/dist/types/stencil-public-runtime.d.ts +6 -0
  35. package/dist/types/type/autocomplete.d.ts +1 -1
  36. package/dist/types/type/button.d.ts +1 -1
  37. package/dist/types/type/header-bar.d.ts +2 -0
  38. package/dist/types/type/input.d.ts +3 -0
  39. package/dist/types/type/variant-file-format.d.ts +4 -4
  40. package/dist/types/type/variant.d.ts +2 -1
  41. package/documentation.json +39 -24
  42. package/package.json +5 -5
  43. package/src/common/file.ts +2 -3
  44. package/src/common/locale.ts +20 -6
  45. package/src/common/unit.ts +1 -1
  46. package/src/components/mds-input-tip/.gitlab-ci.yml +5 -10
  47. package/src/components/mds-input-tip/mds-input-tip.css +2 -2
  48. package/src/dictionary/button.ts +1 -0
  49. package/src/dictionary/file-extensions.ts +3 -1
  50. package/src/dictionary/variant.ts +11 -0
  51. package/src/fixtures/icons.json +29 -3
  52. package/src/fixtures/iconsauce.json +21 -1
  53. package/src/tailwind/components.css +1 -1
  54. package/src/type/autocomplete.ts +0 -1
  55. package/src/type/button.ts +1 -0
  56. package/src/type/header-bar.ts +11 -0
  57. package/src/type/input.ts +4 -0
  58. package/src/type/variant-file-format.ts +20 -37
  59. package/src/type/variant.ts +9 -1
  60. package/www/build/mds-input-tip.esm.js +1 -1
  61. package/www/build/mds-input-tip.js +1 -1
  62. package/www/build/p-37c61f56.system.js +2 -0
  63. package/www/build/p-3e967425.js +2 -0
  64. package/www/build/p-4486a5e4.entry.js +1 -0
  65. package/www/build/{p-ca408384.system.js → p-c915dfb3.system.js} +1 -1
  66. package/www/build/p-fadf816e.system.entry.js +1 -0
  67. package/dist/collection/type/language.js +0 -1
  68. package/dist/esm-es5/index-a04da9f4.js +0 -1
  69. package/dist/mds-input-tip/p-14639038.entry.js +0 -1
  70. package/dist/mds-input-tip/p-58828816.system.js +0 -2
  71. package/dist/mds-input-tip/p-96bf634c.js +0 -2
  72. package/dist/mds-input-tip/p-ed74ada1.system.entry.js +0 -1
  73. package/dist/types/interface/input-value.d.ts +0 -4
  74. package/dist/types/type/language.d.ts +0 -1
  75. package/src/interface/input-value.ts +0 -5
  76. package/src/type/language.ts +0 -4
  77. package/www/build/p-14639038.entry.js +0 -1
  78. package/www/build/p-58828816.system.js +0 -2
  79. package/www/build/p-96bf634c.js +0 -2
  80. package/www/build/p-ed74ada1.system.entry.js +0 -1
  81. /package/dist/collection/{interface/input-value.js → type/header-bar.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  {
2
- "timestamp": "2024-09-26T07:00:37",
2
+ "timestamp": "2024-11-25T16:00:58",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
- "version": "4.21.0",
6
- "typescriptVersion": "5.5.3"
5
+ "version": "4.22.2",
6
+ "typescriptVersion": "5.5.4"
7
7
  },
8
8
  "components": [
9
9
  {
@@ -114,6 +114,11 @@
114
114
  "docstring": "",
115
115
  "path": "src/components/mds-accordion-item/meta/event-detail.ts"
116
116
  },
117
+ "src/components/mds-accordion-timer/meta/event-detail.ts::MdsAccordionTimerEventDetail": {
118
+ "declaration": "export interface MdsAccordionTimerEventDetail {\n index: number;\n}",
119
+ "docstring": "",
120
+ "path": "src/components/mds-accordion-timer/meta/event-detail.ts"
121
+ },
117
122
  "src/components/mds-accordion-timer-item/meta/event-detail.ts::MdsAccordionTimerItemEventDetail": {
118
123
  "declaration": "export interface MdsAccordionTimerItemEventDetail {\n selected: boolean;\n uuid: number;\n}",
119
124
  "docstring": "",
@@ -200,7 +205,7 @@
200
205
  "path": "src/type/button.ts"
201
206
  },
202
207
  "src/type/button.ts::ButtonVariantType": {
203
- "declaration": "export type ButtonVariantType =\n | 'primary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
208
+ "declaration": "export type ButtonVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
204
209
  "docstring": "",
205
210
  "path": "src/type/button.ts"
206
211
  },
@@ -214,6 +219,11 @@
214
219
  "docstring": "",
215
220
  "path": "src/type/button.ts"
216
221
  },
222
+ "src/type/variant.ts::ChipVariantType": {
223
+ "declaration": "export type ChipVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
224
+ "docstring": "",
225
+ "path": "src/type/variant.ts"
226
+ },
217
227
  "src/components/mds-chip/meta/interface.ts::MdsChipEvent": {
218
228
  "declaration": "interface MdsChipEvent {\n event: Event\n element: HTMLMdsChipElement\n}",
219
229
  "docstring": "",
@@ -255,7 +265,7 @@
255
265
  "path": "src/type/text.ts"
256
266
  },
257
267
  "src/components/mds-file-preview/meta/event-detail.ts::MdsFilePreviewEventDetail": {
258
- "declaration": "export interface MdsFilePreviewEventDetail {\n extension: string\n filename: string\n target: HTMLMdsFileElement\n}",
268
+ "declaration": "export interface MdsFilePreviewEventDetail {\n extension: string\n filename: string\n target: HTMLMdsFilePreviewElement\n}",
259
269
  "docstring": "",
260
270
  "path": "src/components/mds-file-preview/meta/event-detail.ts"
261
271
  },
@@ -269,10 +279,15 @@
269
279
  "docstring": "",
270
280
  "path": "src/components/mds-filter-item/meta/event-detail.ts"
271
281
  },
272
- "src/components/mds-header-bar/meta/types.ts::MenuType": {
273
- "declaration": "export type MenuType =\n | 'all'\n | 'desktop'\n | 'mobile'\n | 'none'",
282
+ "src/type/header-bar.ts::HeaderBarMenuType": {
283
+ "declaration": "export type HeaderBarMenuType =\n | 'all'\n | 'desktop'\n | 'mobile'\n | 'none'",
274
284
  "docstring": "",
275
- "path": "src/components/mds-header-bar/meta/types.ts"
285
+ "path": "src/type/header-bar.ts"
286
+ },
287
+ "src/type/header-bar.ts::HeaderBarNavType": {
288
+ "declaration": "export type HeaderBarNavType =\n | 'all'\n | 'desktop'\n | 'mobile'\n | 'none'",
289
+ "docstring": "",
290
+ "path": "src/type/header-bar.ts"
276
291
  },
277
292
  "src/components/mds-header/meta/event-detail.ts::MdsHeaderEventDetail": {
278
293
  "declaration": "export interface MdsHeaderEventDetail {\n bar: HTMLMdsHeaderBarElement\n}",
@@ -310,7 +325,7 @@
310
325
  "path": "src/components/mds-img/meta/event-detail.ts"
311
326
  },
312
327
  "src/type/autocomplete.ts::AutocompleteType": {
313
- "declaration": "export type AutocompleteType =\n | 'additional-name'\n | 'address'\n | 'address-level1'\n | 'address-level2'\n | 'address-level3'\n | 'address-level4'\n | 'address-line1'\n | 'address-line2'\n | 'address-line3'\n | 'bday'\n | 'bday-day'\n | 'bday-month'\n | 'bday-year'\n | 'cc-additional-name'\n | 'cc-csc'\n | 'cc-exp'\n | 'cc-exp-month'\n | 'cc-exp-year'\n | 'cc-family-name'\n | 'cc-family-name'\n | 'cc-given-name'\n | 'cc-name'\n | 'cc-number'\n | 'cc-type'\n | 'country'\n | 'country-name'\n | 'current-password'\n | 'email'\n | 'family-name'\n | 'given-name'\n | 'honorific-prefix'\n | 'honorific-suffix'\n | 'impp'\n | 'language'\n | 'name'\n | 'new-password'\n | 'nickname'\n | 'off'\n | 'on'\n | 'one-time-code'\n | 'organization'\n | 'organization-title'\n | 'photo'\n | 'postal-code'\n | 'sex'\n | 'street-address'\n | 'tel'\n | 'tel-area-code'\n | 'tel-country-code'\n | 'tel-extension'\n | 'tel-local'\n | 'tel-national'\n | 'transaction-amount'\n | 'transaction-currency'\n | 'url'\n | 'username'",
328
+ "declaration": "export type AutocompleteType =\n | 'additional-name'\n | 'address'\n | 'address-level1'\n | 'address-level2'\n | 'address-level3'\n | 'address-level4'\n | 'address-line1'\n | 'address-line2'\n | 'address-line3'\n | 'bday'\n | 'bday-day'\n | 'bday-month'\n | 'bday-year'\n | 'cc-additional-name'\n | 'cc-csc'\n | 'cc-exp'\n | 'cc-exp-month'\n | 'cc-exp-year'\n | 'cc-family-name'\n | 'cc-given-name'\n | 'cc-name'\n | 'cc-number'\n | 'cc-type'\n | 'country'\n | 'country-name'\n | 'current-password'\n | 'email'\n | 'family-name'\n | 'given-name'\n | 'honorific-prefix'\n | 'honorific-suffix'\n | 'impp'\n | 'language'\n | 'name'\n | 'new-password'\n | 'nickname'\n | 'off'\n | 'on'\n | 'one-time-code'\n | 'organization'\n | 'organization-title'\n | 'photo'\n | 'postal-code'\n | 'sex'\n | 'street-address'\n | 'tel'\n | 'tel-area-code'\n | 'tel-country-code'\n | 'tel-extension'\n | 'tel-local'\n | 'tel-national'\n | 'transaction-amount'\n | 'transaction-currency'\n | 'url'\n | 'username'",
314
329
  "docstring": "",
315
330
  "path": "src/type/autocomplete.ts"
316
331
  },
@@ -339,10 +354,10 @@
339
354
  "docstring": "",
340
355
  "path": "src/type/typography.ts"
341
356
  },
342
- "src/components/mds-input/meta/event-detail.ts::MdsInputEventDetail": {
343
- "declaration": "export interface MdsInputEventDetail {\n value?: string\n}",
357
+ "src/type/input.ts::MdsInputEventDetail": {
358
+ "declaration": "export interface MdsInputEventDetail {\n value?: File | string | FormData | null\n}",
344
359
  "docstring": "",
345
- "path": "src/components/mds-input/meta/event-detail.ts"
360
+ "path": "src/type/input.ts"
346
361
  },
347
362
  "src/components/mds-input-field/meta/types.ts::InputFieldType": {
348
363
  "declaration": "export type InputFieldType =\n | 'date'\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'textarea'\n | 'time'\n | 'url'\n | 'cc'\n | 'cf'\n | 'isbn'\n | 'piva'",
@@ -359,11 +374,6 @@
359
374
  "docstring": "",
360
375
  "path": "src/components/mds-input-field/meta/validators.ts"
361
376
  },
362
- "src/interface/input-value.ts::InputValue": {
363
- "declaration": "export interface InputValue {\n value: InputValueType\n}",
364
- "docstring": "",
365
- "path": "src/interface/input-value.ts"
366
- },
367
377
  "src/components/mds-input-switch/meta/types.ts::InputSwitchSizeType": {
368
378
  "declaration": "export type InputSwitchSizeType =\n | 'sm'\n | 'md'\n | 'lg'",
369
379
  "docstring": "",
@@ -410,7 +420,12 @@
410
420
  "path": "src/type/typography.ts"
411
421
  },
412
422
  "src/components/mds-modal/meta/types.ts::ModalPositionType": {
413
- "declaration": "export type ModalPositionType =\n | 'bottom'\n | 'center'\n | 'left'\n | 'right'\n | 'top'",
423
+ "declaration": "export type ModalPositionType =\n | 'bottom'\n | 'bottom-left'\n | 'bottom-right'\n | 'center'\n | 'left'\n | 'right'\n | 'top'\n | 'top-left'\n | 'top-right'",
424
+ "docstring": "",
425
+ "path": "src/components/mds-modal/meta/types.ts"
426
+ },
427
+ "src/components/mds-modal/meta/types.ts::ModalAnimationStateType": {
428
+ "declaration": "export type ModalAnimationStateType =\n | 'intro'\n | 'none'\n | 'outro'",
414
429
  "docstring": "",
415
430
  "path": "src/components/mds-modal/meta/types.ts"
416
431
  },
@@ -449,13 +464,8 @@
449
464
  "docstring": "",
450
465
  "path": "src/components/mds-pref-contrast/meta/types.ts"
451
466
  },
452
- "src/type/language.ts::LanguageType": {
453
- "declaration": "export type LanguageType =\n | 'auto'\n | `${Lowercase<string>}${Lowercase<string>}`\n | `${Lowercase<string>}${Lowercase<string>}${Lowercase<string>}`",
454
- "docstring": "",
455
- "path": "src/type/language.ts"
456
- },
457
467
  "src/event-detail/language.ts::MdsPrefLanguageEventDetail": {
458
- "declaration": "export interface MdsPrefLanguageEventDetail {\n language?: LanguageType\n}",
468
+ "declaration": "export interface MdsPrefLanguageEventDetail {\n /* A string representing the language version as defined in {@link https://datatracker.ietf.org/doc/html/rfc5646 RFC 5646: Tags for Identifying Languages (also known as BCP 47)}.\n *\n * `Examples of valid language codes include \"en\", \"en-US\", \"fr\", \"fr-FR\", \"es-ES\", etc.`\n */\n language?: string\n}",
459
469
  "docstring": "",
460
470
  "path": "src/event-detail/language.ts"
461
471
  },
@@ -529,6 +539,11 @@
529
539
  "docstring": "",
530
540
  "path": "src/components/mds-tab-item/meta/event-detail.ts"
531
541
  },
542
+ "src/components/mds-table-header-cell/meta/types.ts::SortDirectionType": {
543
+ "declaration": "export type SortDirectionType =\n | 'asc'\n | 'desc'\n | 'none'",
544
+ "docstring": "",
545
+ "path": "src/components/mds-table-header-cell/meta/types.ts"
546
+ },
532
547
  "src/components/mds-text/meta/types.ts::TextAnimationType": {
533
548
  "declaration": "export type TextAnimationType =\n | 'none'\n | 'yugop'",
534
549
  "docstring": "",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-input-tip",
3
- "version": "1.1.3",
4
- "description": "mds-input-tip is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",
3
+ "version": "1.2.1",
4
+ "description": "mds-input-tip is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
7
7
  "es2015": "dist/esm/index.mjs",
@@ -24,9 +24,9 @@
24
24
  "test": "stencil test --spec --e2e"
25
25
  },
26
26
  "dependencies": {
27
- "@maggioli-design-system/mds-input-tip-item": "1.1.3",
28
- "@maggioli-design-system/styles": "15.3.2",
29
- "@stencil/core": "4.21.0"
27
+ "@maggioli-design-system/mds-input-tip-item": "1.2.1",
28
+ "@maggioli-design-system/styles": "15.5.0",
29
+ "@stencil/core": "4.22.2"
30
30
  },
31
31
  "license": "MIT",
32
32
  "author": {
@@ -1,11 +1,10 @@
1
1
  import { fileExtensionsDictionary, ExtensionInfo } from '@dictionary/file-extensions'
2
2
  import { fileFormatsVariant } from '@type/variant-file-format'
3
+ import { ThemeFullVariantType } from '@type/variant'
3
4
 
4
5
  interface FileFormatsVariants {
5
- color: string
6
6
  icon: string
7
- iconBackground: string
8
- variant: string
7
+ variant: ThemeFullVariantType
9
8
  }
10
9
 
11
10
  const sanitizeFilename = (filename: string, error: string = 'Attribute "filename" is undefined.') => {
@@ -1,4 +1,4 @@
1
- import Handlebars from 'handlebars'
1
+ import { render } from 'mustache'
2
2
 
3
3
  type LocaleConfig = {
4
4
  el?: Record<string, string | string[]>
@@ -12,6 +12,7 @@ export class Locale {
12
12
  language: string
13
13
  config: LocaleConfig
14
14
  closestElement:HTMLElement
15
+ element: HTMLElement
15
16
 
16
17
  constructor (configData?: LocaleConfig) {
17
18
  if (configData) {
@@ -23,8 +24,9 @@ export class Locale {
23
24
  this.config = configData
24
25
  }
25
26
 
26
- lang = (element: HTMLElement): string => {
27
- this.closestElement = element.closest('[lang]') as HTMLElement
27
+ lang = (el: HTMLElement): string => {
28
+ this.element = el
29
+ this.closestElement = this.element.closest('[lang]') as HTMLElement
28
30
 
29
31
  if (this.closestElement) {
30
32
  if (this.closestElement.lang) {
@@ -37,11 +39,24 @@ export class Locale {
37
39
  return this.language
38
40
  }
39
41
 
42
+ update = (doc?: Document | ShadowRoot): void => {
43
+ const context = doc ?? this.element.shadowRoot
44
+ context && context.querySelectorAll('*').forEach(el => {
45
+ if (el.tagName.toLowerCase().startsWith('mds-')) {
46
+ // eslint-disable-next-line no-restricted-syntax
47
+ if (el && 'updateLang' in el) {
48
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
49
+ (el as any).updateLang()
50
+ }
51
+ }
52
+ })
53
+ }
54
+
40
55
  private pluralize = (tag: string | string[], context: Record<string, string | number>): string => {
41
56
 
42
57
  const languagePhrase: string | string[] = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag]
43
58
  const phrases: string[] = []
44
-
59
+
45
60
  if (Array.isArray(languagePhrase)) {
46
61
  phrases.push(languagePhrase[0])
47
62
  phrases.push(languagePhrase[1])
@@ -63,8 +78,7 @@ export class Locale {
63
78
  }
64
79
  }
65
80
 
66
- const template = Handlebars.compile(translatePhrase)
67
- return template(context)
81
+ return render(translatePhrase, context)
68
82
  }
69
83
 
70
84
  get = (tag: string | string[], context?: Record<string, string | number>): string => {
@@ -23,7 +23,7 @@ const cssSizeToNumber = (size: string, defaultValue = 0): number => {
23
23
  if (size.includes('em')) {
24
24
  return Number(size.replace('em', '')) * 16
25
25
  }
26
-
26
+
27
27
  return defaultValue
28
28
  }
29
29
 
@@ -2,24 +2,19 @@
2
2
  variables:
3
3
  COMPONENT: mds-input-tip
4
4
 
5
- # ISOLATE
6
- input-tip-isolate:
7
- extends: [.base-isolate, .base-input-tip]
8
- dependencies: [base-stencil-build]
9
-
10
5
  # TEST
11
6
  input-tip-publish-test:
12
7
  extends: [.base-stencil-publish-test, .base-input-tip]
13
- dependencies: [base-stencil-build, input-tip-isolate]
8
+ dependencies: [base-stencil-build, base-isolate]
14
9
 
15
10
  # PUBLISH
16
11
  input-tip-publish:
17
12
  extends: [.base-stencil-publish, .base-input-tip]
18
- dependencies: [base-stencil-build, input-tip-isolate]
19
- needs: [base-stencil-build, input-tip-isolate, input-tip-publish-test]
13
+ dependencies: [base-stencil-build, base-isolate]
14
+ needs: [base-stencil-build, base-isolate, input-tip-publish-test]
20
15
 
21
16
  # INSTALL TEST
22
17
  input-tip-install-test:
23
18
  extends: [.base-stencil-install-test, .base-input-tip]
24
- dependencies: [base-stencil-build, input-tip-isolate]
25
- needs: [base-stencil-build, input-tip-isolate, input-tip-publish]
19
+ dependencies: [base-stencil-build, base-isolate]
20
+ needs: [base-stencil-build, base-isolate, input-tip-publish]
@@ -9,14 +9,14 @@
9
9
  ease-out-expo
10
10
  gap-100
11
11
  left-100
12
- right-100
13
- transition-cosmetic;
12
+ right-100;
14
13
 
15
14
  display: flex;
16
15
  justify-content: flex-end;
17
16
  pointer-events: none;
18
17
  position: absolute;
19
18
  transform: var(--mds-input-tip-active-translate);
19
+ transition-property: transform;
20
20
  }
21
21
 
22
22
  :host(:empty) {
@@ -4,6 +4,7 @@ const buttonVariantDictionary = [
4
4
  'info',
5
5
  'light',
6
6
  'primary',
7
+ 'secondary',
7
8
  'success',
8
9
  'warning',
9
10
  ]
@@ -1,10 +1,12 @@
1
+ import { FileFormat } from '@type/variant-file-format'
2
+
1
3
  interface FileExtenstion {
2
4
  [key: string]: ExtensionInfo
3
5
  }
4
6
 
5
7
  interface ExtensionInfo {
6
8
  preview?: boolean
7
- format: string
9
+ format: FileFormat
8
10
  description: string
9
11
  }
10
12
 
@@ -77,6 +77,16 @@ const toneVariantDictionary = [
77
77
  'quiet',
78
78
  ]
79
79
 
80
+ const themeVariantChipDictionary = [
81
+ 'primary',
82
+ 'secondary',
83
+ 'dark',
84
+ 'error',
85
+ 'info',
86
+ 'success',
87
+ 'warning',
88
+ ]
89
+
80
90
  const toneActionVariantDictionary = [
81
91
  'primary',
82
92
  'secondary',
@@ -110,6 +120,7 @@ export {
110
120
  themeLuminanceVariantDictionary,
111
121
  themeStatusVariantDictionary,
112
122
  themeVariantDictionary,
123
+ themeVariantChipDictionary,
113
124
  toneActionVariantDictionary,
114
125
  toneMinimalVariantDictionary,
115
126
  toneSimpleVariantDictionary,
@@ -33,8 +33,16 @@
33
33
  "mgg/address-book-off",
34
34
  "mgg/address-book-on",
35
35
  "mgg/adv-denied",
36
- "mgg/ai",
36
+ "mgg/ai-brain",
37
+ "mgg/ai-brain-outline",
38
+ "mgg/ai-message",
39
+ "mgg/ai-outline",
40
+ "mgg/ai-status-completed",
41
+ "mgg/ai-status-error",
42
+ "mgg/ai-status-processing",
43
+ "mgg/ai-status-suspended",
37
44
  "mgg/alerts-pagopa",
45
+ "mgg/anpr",
38
46
  "mgg/ansc",
39
47
  "mgg/area-edificabile",
40
48
  "mgg/area-weather",
@@ -46,6 +54,7 @@
46
54
  "mgg/assignments-rejected",
47
55
  "mgg/assignments-sorted",
48
56
  "mgg/auto-awesome-motion",
57
+ "mgg/back-to-document",
49
58
  "mgg/balance",
50
59
  "mgg/bill",
51
60
  "mgg/box-multiple",
@@ -86,6 +95,7 @@
86
95
  "mgg/document-rename",
87
96
  "mgg/download-csv",
88
97
  "mgg/download-json",
98
+ "mgg/edit-article",
89
99
  "mgg/electronic-document",
90
100
  "mgg/email-assigned",
91
101
  "mgg/email-open-blocked",
@@ -167,6 +177,10 @@
167
177
  "mgg/logo-ilibro",
168
178
  "mgg/map-marker-settings",
169
179
  "mgg/masks-office",
180
+ "mgg/mdi-binoculars",
181
+ "mgg/mdi-graph-outline",
182
+ "mgg/mdi-microscope",
183
+ "mgg/mdi-telescope",
170
184
  "mgg/military-draft",
171
185
  "mgg/money-bag-settings",
172
186
  "mgg/money-on-hand",
@@ -232,6 +246,7 @@
232
246
  "mgg/settings-attachment",
233
247
  "mgg/sign-shop",
234
248
  "mgg/square-viewfinder",
249
+ "mgg/stacked-documents",
235
250
  "mgg/stamp",
236
251
  "mgg/status-progress-a-quarter",
237
252
  "mgg/status-progress-complete",
@@ -241,6 +256,9 @@
241
256
  "mgg/subtractive-permission",
242
257
  "mgg/tea-light",
243
258
  "mgg/terminal",
259
+ "mgg/tie",
260
+ "mgg/to-single-document",
261
+ "mgg/to-stacked-documents",
244
262
  "mgg/todo",
245
263
  "mgg/todo-action-businessman-view",
246
264
  "mgg/todo-action-certificate",
@@ -278,8 +296,10 @@
278
296
  "mgg/user-location",
279
297
  "mgg/user-location-off",
280
298
  "mgg/user-signed-out",
299
+ "mgg/user-substitution",
281
300
  "mgg/view-chart-gantt",
282
301
  "mgg/view-side-by-side",
302
+ "mgg/vote",
283
303
  "mgg/warning-superscript",
284
304
  "mgg/web-app-ansc",
285
305
  "mgg/work-book",
@@ -310,6 +330,8 @@
310
330
  "mi/baseline/css",
311
331
  "mi/baseline/dark-mode",
312
332
  "mi/baseline/description",
333
+ "mi/baseline/directions-run",
334
+ "mi/baseline/directions-walk",
313
335
  "mi/baseline/done",
314
336
  "mi/baseline/downhill-skiing",
315
337
  "mi/baseline/eco",
@@ -318,7 +340,6 @@
318
340
  "mi/baseline/explore",
319
341
  "mi/baseline/file-download-done",
320
342
  "mi/baseline/folder-zip",
321
- "mi/baseline/groups",
322
343
  "mi/baseline/horizontal-rule",
323
344
  "mi/baseline/indeterminate-check-box",
324
345
  "mi/baseline/info",
@@ -340,10 +361,16 @@
340
361
  "mi/baseline/remove-circle",
341
362
  "mi/baseline/route",
342
363
  "mi/baseline/settings",
364
+ "mi/baseline/sports",
365
+ "mi/baseline/sports-soccer",
366
+ "mi/baseline/stadium",
343
367
  "mi/baseline/terminal",
344
368
  "mi/baseline/timer",
345
369
  "mi/baseline/tv",
370
+ "mi/baseline/unfold-more",
346
371
  "mi/baseline/videocam",
372
+ "mi/baseline/visibility",
373
+ "mi/baseline/visibility-off",
347
374
  "mi/baseline/warning",
348
375
  "mi/baseline/warning-amber",
349
376
  "mi/baseline/web",
@@ -355,7 +382,6 @@
355
382
  "mi/outline/schedule",
356
383
  "mi/round/arrow-circle-down",
357
384
  "mi/round/email",
358
- "mi/round/groups",
359
385
  "mi/round/menu",
360
386
  "mi/round/more-vert",
361
387
  "mi/round/person"
@@ -21,8 +21,16 @@
21
21
  "mgg/address-book-off",
22
22
  "mgg/address-book-on",
23
23
  "mgg/adv-denied",
24
- "mgg/ai",
24
+ "mgg/ai-brain-outline",
25
+ "mgg/ai-brain",
26
+ "mgg/ai-message",
27
+ "mgg/ai-outline",
28
+ "mgg/ai-status-completed",
29
+ "mgg/ai-status-error",
30
+ "mgg/ai-status-processing",
31
+ "mgg/ai-status-suspended",
25
32
  "mgg/alerts-pagopa",
33
+ "mgg/anpr",
26
34
  "mgg/ansc",
27
35
  "mgg/area-edificabile",
28
36
  "mgg/area-weather",
@@ -34,6 +42,7 @@
34
42
  "mgg/assignments-rejected",
35
43
  "mgg/assignments-sorted",
36
44
  "mgg/auto-awesome-motion",
45
+ "mgg/back-to-document",
37
46
  "mgg/balance",
38
47
  "mgg/bill",
39
48
  "mgg/box-multiple",
@@ -74,6 +83,7 @@
74
83
  "mgg/document-rename",
75
84
  "mgg/download-csv",
76
85
  "mgg/download-json",
86
+ "mgg/edit-article",
77
87
  "mgg/electronic-document",
78
88
  "mgg/email-assigned",
79
89
  "mgg/email-open-blocked",
@@ -155,6 +165,10 @@
155
165
  "mgg/logo-ilibro",
156
166
  "mgg/map-marker-settings",
157
167
  "mgg/masks-office",
168
+ "mgg/mdi-binoculars",
169
+ "mgg/mdi-graph-outline",
170
+ "mgg/mdi-microscope",
171
+ "mgg/mdi-telescope",
158
172
  "mgg/military-draft",
159
173
  "mgg/money-bag-settings",
160
174
  "mgg/money-on-hand",
@@ -220,6 +234,7 @@
220
234
  "mgg/settings-attachment",
221
235
  "mgg/sign-shop",
222
236
  "mgg/square-viewfinder",
237
+ "mgg/stacked-documents",
223
238
  "mgg/stamp",
224
239
  "mgg/status-progress-a-quarter",
225
240
  "mgg/status-progress-complete",
@@ -229,6 +244,9 @@
229
244
  "mgg/subtractive-permission",
230
245
  "mgg/tea-light",
231
246
  "mgg/terminal",
247
+ "mgg/tie",
248
+ "mgg/to-single-document",
249
+ "mgg/to-stacked-documents",
232
250
  "mgg/todo-action-businessman-view",
233
251
  "mgg/todo-action-certificate",
234
252
  "mgg/todo-action-contract",
@@ -266,8 +284,10 @@
266
284
  "mgg/user-location-off",
267
285
  "mgg/user-location",
268
286
  "mgg/user-signed-out",
287
+ "mgg/user-substitution",
269
288
  "mgg/view-chart-gantt",
270
289
  "mgg/view-side-by-side",
290
+ "mgg/vote",
271
291
  "mgg/warning-superscript",
272
292
  "mgg/web-app-ansc",
273
293
  "mgg/work-book"
@@ -75,7 +75,7 @@
75
75
  }
76
76
 
77
77
  @container style(--magma-pref-animation: system) {
78
-
78
+
79
79
  @media (prefers-reduced-motion) {
80
80
  .contrast-area,
81
81
  .contrast-area-50 {
@@ -18,7 +18,6 @@ export type AutocompleteType =
18
18
  | 'cc-exp-month'
19
19
  | 'cc-exp-year'
20
20
  | 'cc-family-name'
21
- | 'cc-family-name'
22
21
  | 'cc-given-name'
23
22
  | 'cc-name'
24
23
  | 'cc-number'
@@ -20,6 +20,7 @@ export type ButtonIconPositionType =
20
20
 
21
21
  export type ButtonVariantType =
22
22
  | 'primary'
23
+ | 'secondary'
23
24
  | 'dark'
24
25
  | 'light'
25
26
  | 'error'
@@ -0,0 +1,11 @@
1
+ export type HeaderBarMenuType =
2
+ | 'all'
3
+ | 'desktop'
4
+ | 'mobile'
5
+ | 'none'
6
+
7
+ export type HeaderBarNavType =
8
+ | 'all'
9
+ | 'desktop'
10
+ | 'mobile'
11
+ | 'none'
package/src/type/input.ts CHANGED
@@ -23,3 +23,7 @@ export type InputTextType =
23
23
  | 'textarea'
24
24
  | 'time'
25
25
  | 'url'
26
+
27
+ export interface MdsInputEventDetail {
28
+ value?: File | string | FormData | null
29
+ }