@maggioli-design-system/mds-progress 2.9.2 → 2.10.1

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 (81) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-2c37527a.js +1199 -0
  3. package/dist/cjs/loader.cjs.js +4 -2
  4. package/dist/cjs/mds-progress.cjs.entry.js +5 -4
  5. package/dist/cjs/mds-progress.cjs.js +12 -10
  6. package/dist/collection/collection-manifest.json +2 -2
  7. package/dist/collection/common/locale.js +48 -0
  8. package/dist/collection/components/mds-progress/mds-progress.css +258 -152
  9. package/dist/collection/components/mds-progress/mds-progress.js +1 -1
  10. package/dist/collection/type/language.js +1 -0
  11. package/dist/collection/type/preference.js +1 -0
  12. package/dist/collection/type/variant-file-format.js +20 -11
  13. package/dist/components/mds-progress.js +4 -3
  14. package/dist/documentation.d.ts +34 -0
  15. package/dist/documentation.json +3 -3
  16. package/dist/esm/app-globals-0f993ce5.js +3 -0
  17. package/dist/esm/index-2c599ac6.js +1171 -0
  18. package/dist/esm/loader.js +5 -3
  19. package/dist/esm/mds-progress.entry.js +5 -4
  20. package/dist/esm/mds-progress.js +13 -11
  21. package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
  22. package/dist/esm-es5/index-2c599ac6.js +1 -0
  23. package/dist/esm-es5/loader.js +1 -1
  24. package/dist/esm-es5/mds-progress.entry.js +1 -1
  25. package/dist/esm-es5/mds-progress.js +1 -1
  26. package/dist/mds-progress/mds-progress.esm.js +1 -1
  27. package/dist/mds-progress/mds-progress.js +1 -1
  28. package/dist/mds-progress/p-247bfa7b.system.js +1 -0
  29. package/dist/mds-progress/p-313d3f72.js +2 -0
  30. package/dist/mds-progress/p-56ba5cbf.system.js +1 -0
  31. package/dist/mds-progress/p-63b6c1a0.system.entry.js +1 -0
  32. package/dist/mds-progress/p-a9121660.entry.js +1 -0
  33. package/dist/mds-progress/p-e1255160.js +1 -0
  34. package/dist/mds-progress/p-ecdde885.system.js +2 -0
  35. package/dist/stats.json +57 -40
  36. package/dist/types/common/locale.d.ts +17 -0
  37. package/dist/types/stencil-public-runtime.d.ts +3 -10
  38. package/dist/types/type/language.d.ts +1 -0
  39. package/dist/types/type/preference.d.ts +2 -0
  40. package/documentation.json +59 -24
  41. package/loader/cdn.js +1 -2
  42. package/loader/index.cjs.js +1 -2
  43. package/loader/index.d.ts +3 -0
  44. package/loader/index.es2017.js +1 -2
  45. package/loader/index.js +1 -2
  46. package/package.json +3 -3
  47. package/src/common/locale.ts +70 -0
  48. package/src/components/mds-progress/css/mds-progress-pref-animation.css +18 -0
  49. package/src/components/mds-progress/css/mds-progress-pref-contrast.css +23 -0
  50. package/src/components/mds-progress/css/mds-progress-pref-theme.css +70 -0
  51. package/src/components/mds-progress/mds-progress.css +8 -0
  52. package/src/components/mds-progress/mds-progress.tsx +1 -0
  53. package/src/fixtures/icons.json +18 -0
  54. package/src/fixtures/iconsauce.json +9 -0
  55. package/src/tailwind/components.css +71 -0
  56. package/src/type/language.ts +4 -0
  57. package/src/type/preference.ts +11 -0
  58. package/src/type/variant-file-format.ts +20 -11
  59. package/www/build/mds-progress.esm.js +1 -1
  60. package/www/build/mds-progress.js +1 -1
  61. package/www/build/p-247bfa7b.system.js +1 -0
  62. package/www/build/p-313d3f72.js +2 -0
  63. package/www/build/p-56ba5cbf.system.js +1 -0
  64. package/www/build/p-63b6c1a0.system.entry.js +1 -0
  65. package/www/build/p-a9121660.entry.js +1 -0
  66. package/www/build/p-e1255160.js +1 -0
  67. package/www/build/p-ecdde885.system.js +2 -0
  68. package/dist/cjs/index-ef941864.js +0 -1686
  69. package/dist/collection/components/mds-progress/test/mds-progress.e2e.js +0 -10
  70. package/dist/esm/index-370f577b.js +0 -1658
  71. package/dist/esm-es5/index-370f577b.js +0 -1
  72. package/dist/mds-progress/p-20cc5857.system.entry.js +0 -1
  73. package/dist/mds-progress/p-87430859.js +0 -2
  74. package/dist/mds-progress/p-91249106.system.js +0 -1
  75. package/dist/mds-progress/p-b8ddb760.entry.js +0 -1
  76. package/dist/mds-progress/p-bf3c5077.system.js +0 -2
  77. package/www/build/p-20cc5857.system.entry.js +0 -1
  78. package/www/build/p-87430859.js +0 -2
  79. package/www/build/p-91249106.system.js +0 -1
  80. package/www/build/p-b8ddb760.entry.js +0 -1
  81. package/www/build/p-bf3c5077.system.js +0 -2
package/dist/stats.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-04-18T15:17:33",
2
+ "timestamp": "2024-09-13T08:54:04",
3
3
  "compiler": {
4
4
  "name": "node",
5
5
  "version": "20.10.0"
@@ -9,16 +9,17 @@
9
9
  "fsNamespace": "mds-progress",
10
10
  "components": 1,
11
11
  "entries": 1,
12
- "bundles": 83,
12
+ "bundles": 92,
13
13
  "outputs": [
14
14
  {
15
15
  "name": "dist-collection",
16
- "files": 42,
16
+ "files": 44,
17
17
  "generatedFiles": [
18
18
  "./dist/collection/common/aria.js",
19
19
  "./dist/collection/common/file.js",
20
20
  "./dist/collection/common/icon.js",
21
21
  "./dist/collection/common/keyboard-manager.js",
22
+ "./dist/collection/common/locale.js",
22
23
  "./dist/collection/common/unit.js",
23
24
  "./dist/collection/common/yugop/core.js",
24
25
  "./dist/collection/common/yugop/index.js",
@@ -30,7 +31,6 @@
30
31
  "./dist/collection/components/mds-progress/mds-progress.js",
31
32
  "./dist/collection/components/mds-progress/meta/dictionary.js",
32
33
  "./dist/collection/components/mds-progress/meta/types.js",
33
- "./dist/collection/components/mds-progress/test/mds-progress.e2e.js",
34
34
  "./dist/collection/components/mds-progress/test/mds-progress.stories.js",
35
35
  "./dist/collection/dictionary/autocomplete.js",
36
36
  "./dist/collection/dictionary/button.js",
@@ -52,7 +52,9 @@
52
52
  "./dist/collection/type/floating-ui.js",
53
53
  "./dist/collection/type/form-rel.js",
54
54
  "./dist/collection/type/input.js",
55
+ "./dist/collection/type/language.js",
55
56
  "./dist/collection/type/loading.js",
57
+ "./dist/collection/type/preference.js",
56
58
  "./dist/collection/type/text.js",
57
59
  "./dist/collection/type/typography.js",
58
60
  "./dist/collection/type/variant-file-format.js",
@@ -71,19 +73,22 @@
71
73
  },
72
74
  {
73
75
  "name": "dist-lazy",
74
- "files": 35,
76
+ "files": 42,
75
77
  "generatedFiles": [
76
- "./dist/cjs/index-ef941864.js",
78
+ "./dist/cjs/app-globals-3a1e7e63.js",
79
+ "./dist/cjs/index-2c37527a.js",
77
80
  "./dist/cjs/index.cjs.js",
78
81
  "./dist/cjs/loader.cjs.js",
79
82
  "./dist/cjs/mds-progress.cjs.entry.js",
80
83
  "./dist/cjs/mds-progress.cjs.js",
81
- "./dist/esm-es5/index-370f577b.js",
84
+ "./dist/esm-es5/app-globals-0f993ce5.js",
85
+ "./dist/esm-es5/index-2c599ac6.js",
82
86
  "./dist/esm-es5/index.js",
83
87
  "./dist/esm-es5/loader.js",
84
88
  "./dist/esm-es5/mds-progress.entry.js",
85
89
  "./dist/esm-es5/mds-progress.js",
86
- "./dist/esm/index-370f577b.js",
90
+ "./dist/esm/app-globals-0f993ce5.js",
91
+ "./dist/esm/index-2c599ac6.js",
87
92
  "./dist/esm/index.js",
88
93
  "./dist/esm/loader.js",
89
94
  "./dist/esm/mds-progress.entry.js",
@@ -93,21 +98,25 @@
93
98
  "./dist/mds-progress/index.esm.js",
94
99
  "./dist/mds-progress/mds-progress.esm.js",
95
100
  "./dist/mds-progress/mds-progress.js",
96
- "./dist/mds-progress/p-20cc5857.system.entry.js",
101
+ "./dist/mds-progress/p-247bfa7b.system.js",
102
+ "./dist/mds-progress/p-313d3f72.js",
97
103
  "./dist/mds-progress/p-50ea2036.system.js",
98
- "./dist/mds-progress/p-87430859.js",
99
- "./dist/mds-progress/p-91249106.system.js",
100
- "./dist/mds-progress/p-b8ddb760.entry.js",
101
- "./dist/mds-progress/p-bf3c5077.system.js",
104
+ "./dist/mds-progress/p-56ba5cbf.system.js",
105
+ "./dist/mds-progress/p-63b6c1a0.system.entry.js",
106
+ "./dist/mds-progress/p-a9121660.entry.js",
107
+ "./dist/mds-progress/p-e1255160.js",
108
+ "./dist/mds-progress/p-ecdde885.system.js",
102
109
  "./www/build/index.esm.js",
103
110
  "./www/build/mds-progress.esm.js",
104
111
  "./www/build/mds-progress.js",
105
- "./www/build/p-20cc5857.system.entry.js",
112
+ "./www/build/p-247bfa7b.system.js",
113
+ "./www/build/p-313d3f72.js",
106
114
  "./www/build/p-50ea2036.system.js",
107
- "./www/build/p-87430859.js",
108
- "./www/build/p-91249106.system.js",
109
- "./www/build/p-b8ddb760.entry.js",
110
- "./www/build/p-bf3c5077.system.js"
115
+ "./www/build/p-56ba5cbf.system.js",
116
+ "./www/build/p-63b6c1a0.system.entry.js",
117
+ "./www/build/p-a9121660.entry.js",
118
+ "./www/build/p-e1255160.js",
119
+ "./www/build/p-ecdde885.system.js"
111
120
  ]
112
121
  },
113
122
  {
@@ -140,12 +149,12 @@
140
149
  "components": [
141
150
  "mds-progress"
142
151
  ],
143
- "bundleId": "p-b8ddb760",
144
- "fileName": "p-b8ddb760.entry.js",
152
+ "bundleId": "p-a9121660",
153
+ "fileName": "p-a9121660.entry.js",
145
154
  "imports": [
146
- "p-87430859.js"
155
+ "p-313d3f72.js"
147
156
  ],
148
- "originalByteSize": 7305
157
+ "originalByteSize": 13025
149
158
  }
150
159
  ],
151
160
  "esm": [
@@ -157,9 +166,9 @@
157
166
  "bundleId": "mds-progress",
158
167
  "fileName": "mds-progress.entry.js",
159
168
  "imports": [
160
- "index-370f577b.js"
169
+ "index-2c599ac6.js"
161
170
  ],
162
- "originalByteSize": 7309
171
+ "originalByteSize": 13029
163
172
  }
164
173
  ],
165
174
  "es5": [
@@ -171,9 +180,9 @@
171
180
  "bundleId": "mds-progress",
172
181
  "fileName": "mds-progress.entry.js",
173
182
  "imports": [
174
- "index-370f577b.js"
183
+ "index-2c599ac6.js"
175
184
  ],
176
- "originalByteSize": 7309
185
+ "originalByteSize": 13029
177
186
  }
178
187
  ],
179
188
  "system": [
@@ -182,12 +191,12 @@
182
191
  "components": [
183
192
  "mds-progress"
184
193
  ],
185
- "bundleId": "p-20cc5857.system",
186
- "fileName": "p-20cc5857.system.entry.js",
194
+ "bundleId": "p-63b6c1a0.system",
195
+ "fileName": "p-63b6c1a0.system.entry.js",
187
196
  "imports": [
188
- "p-bf3c5077.system.js"
197
+ "p-ecdde885.system.js"
189
198
  ],
190
- "originalByteSize": 7764
199
+ "originalByteSize": 13490
191
200
  }
192
201
  ],
193
202
  "commonjs": [
@@ -199,9 +208,9 @@
199
208
  "bundleId": "mds-progress.cjs",
200
209
  "fileName": "mds-progress.cjs.entry.js",
201
210
  "imports": [
202
- "index-ef941864.js"
211
+ "index-2c37527a.js"
203
212
  ],
204
- "originalByteSize": 7368
213
+ "originalByteSize": 13094
205
214
  }
206
215
  ]
207
216
  },
@@ -477,27 +486,32 @@
477
486
  {
478
487
  "name": "--mds-progress-background",
479
488
  "docs": "Sets the background-color of the component",
480
- "annotation": "prop"
489
+ "annotation": "prop",
490
+ "mode": "$"
481
491
  },
482
492
  {
483
493
  "name": "--mds-progress-color",
484
494
  "docs": "Sets the background-color of the progress",
485
- "annotation": "prop"
495
+ "annotation": "prop",
496
+ "mode": "$"
486
497
  },
487
498
  {
488
499
  "name": "--mds-progress-duration",
489
500
  "docs": "Sets the duration of the progress bar animation",
490
- "annotation": "prop"
501
+ "annotation": "prop",
502
+ "mode": "$"
491
503
  },
492
504
  {
493
505
  "name": "--mds-progress-radius",
494
506
  "docs": "Sets the border-radius of the component",
495
- "annotation": "prop"
507
+ "annotation": "prop",
508
+ "mode": "$"
496
509
  },
497
510
  {
498
511
  "name": "--mds-progress-thickness",
499
512
  "docs": "Sets the thickness of the progress bar",
500
- "annotation": "prop"
513
+ "annotation": "prop",
514
+ "mode": "$"
501
515
  }
502
516
  ],
503
517
  "docs": {
@@ -544,7 +558,7 @@
544
558
  "hasVdomXlink": false,
545
559
  "hasVdomClass": true,
546
560
  "hasVdomFunctional": false,
547
- "hasVdomKey": false,
561
+ "hasVdomKey": true,
548
562
  "hasVdomListener": false,
549
563
  "hasVdomPropOrAttr": true,
550
564
  "hasVdomRef": false,
@@ -554,6 +568,7 @@
554
568
  "hasWatchCallback": true,
555
569
  "isPlain": false,
556
570
  "htmlAttrNames": [
571
+ "key",
557
572
  "aria-valuemax",
558
573
  "aria-valuemin",
559
574
  "aria-valuenow",
@@ -578,7 +593,7 @@
578
593
  ],
579
594
  "componentGraph": {
580
595
  "sc-mds-progress": [
581
- "p-87430859.js"
596
+ "p-313d3f72.js"
582
597
  ]
583
598
  },
584
599
  "sourceGraph": {
@@ -586,6 +601,7 @@
586
601
  "./src/common/file.ts": [],
587
602
  "./src/common/icon.ts": [],
588
603
  "./src/common/keyboard-manager.ts": [],
604
+ "./src/common/locale.ts": [],
589
605
  "./src/common/unit.ts": [],
590
606
  "./src/common/yugop/core.ts": [
591
607
  "./src/common/yugop/utils/math",
@@ -606,7 +622,6 @@
606
622
  "./src/components/mds-progress/mds-progress.tsx": [],
607
623
  "./src/components/mds-progress/meta/dictionary.ts": [],
608
624
  "./src/components/mds-progress/meta/types.ts": [],
609
- "./src/components/mds-progress/test/mds-progress.e2e.ts": [],
610
625
  "./src/components/mds-progress/test/mds-progress.stories.tsx": [
611
626
  "./src/components/mds-progress/meta/dictionary"
612
627
  ],
@@ -633,7 +648,9 @@
633
648
  "./src/type/floating-ui.ts": [],
634
649
  "./src/type/form-rel.ts": [],
635
650
  "./src/type/input.ts": [],
651
+ "./src/type/language.ts": [],
636
652
  "./src/type/loading.ts": [],
653
+ "./src/type/preference.ts": [],
637
654
  "./src/type/text.ts": [],
638
655
  "./src/type/typography.ts": [],
639
656
  "./src/type/variant-file-format.ts": [],
@@ -0,0 +1,17 @@
1
+ type LocaleConfig = {
2
+ el?: Record<string, string | string[]>;
3
+ en: Record<string, string | string[]>;
4
+ es?: Record<string, string | string[]>;
5
+ it?: Record<string, string | string[]>;
6
+ };
7
+ export declare class Locale {
8
+ rollbackLanguage: string;
9
+ language: string;
10
+ config: LocaleConfig;
11
+ closestElement: HTMLElement;
12
+ constructor(configData: LocaleConfig);
13
+ lang: (element: HTMLElement) => void;
14
+ private pluralize;
15
+ get: (tag: string | string[], context?: Record<string, string | number>) => string;
16
+ }
17
+ export {};
@@ -768,6 +768,7 @@ export declare namespace JSXBase {
768
768
  hrefLang?: string;
769
769
  hreflang?: string;
770
770
  media?: string;
771
+ ping?: string;
771
772
  rel?: string;
772
773
  target?: string;
773
774
  referrerPolicy?: ReferrerPolicy;
@@ -794,7 +795,6 @@ export declare namespace JSXBase {
794
795
  cite?: string;
795
796
  }
796
797
  interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
797
- autoFocus?: boolean;
798
798
  disabled?: boolean;
799
799
  form?: string;
800
800
  formAction?: string;
@@ -921,8 +921,6 @@ export declare namespace JSXBase {
921
921
  autocapitalize?: string;
922
922
  autoComplete?: string;
923
923
  autocomplete?: string;
924
- autoFocus?: boolean;
925
- autofocus?: boolean | string;
926
924
  capture?: string;
927
925
  checked?: boolean;
928
926
  crossOrigin?: string;
@@ -979,8 +977,6 @@ export declare namespace JSXBase {
979
977
  popoverTarget?: string;
980
978
  }
981
979
  interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
982
- autoFocus?: boolean;
983
- autofocus?: boolean | string;
984
980
  challenge?: string;
985
981
  disabled?: boolean;
986
982
  form?: string;
@@ -993,7 +989,6 @@ export declare namespace JSXBase {
993
989
  interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
994
990
  form?: string;
995
991
  htmlFor?: string;
996
- htmlfor?: string;
997
992
  }
998
993
  interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
999
994
  value?: string | string[] | number;
@@ -1104,7 +1099,6 @@ export declare namespace JSXBase {
1104
1099
  interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1105
1100
  form?: string;
1106
1101
  htmlFor?: string;
1107
- htmlfor?: string;
1108
1102
  name?: string;
1109
1103
  }
1110
1104
  interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -1129,7 +1123,6 @@ export declare namespace JSXBase {
1129
1123
  type?: string;
1130
1124
  }
1131
1125
  interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1132
- autoFocus?: boolean;
1133
1126
  disabled?: boolean;
1134
1127
  form?: string;
1135
1128
  multiple?: boolean;
@@ -1164,8 +1157,6 @@ export declare namespace JSXBase {
1164
1157
  interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1165
1158
  autoComplete?: string;
1166
1159
  autocomplete?: string;
1167
- autoFocus?: boolean;
1168
- autofocus?: boolean | string;
1169
1160
  cols?: number;
1170
1161
  disabled?: boolean;
1171
1162
  form?: string;
@@ -1218,6 +1209,8 @@ export declare namespace JSXBase {
1218
1209
  interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1219
1210
  innerHTML?: string;
1220
1211
  accessKey?: string;
1212
+ autoFocus?: boolean;
1213
+ autofocus?: boolean | string;
1221
1214
  class?: string | {
1222
1215
  [className: string]: boolean;
1223
1216
  };
@@ -0,0 +1 @@
1
+ export type LanguageType = 'auto' | `${Lowercase<string>}${Lowercase<string>}` | `${Lowercase<string>}${Lowercase<string>}${Lowercase<string>}`;
@@ -0,0 +1,2 @@
1
+ export type UIPreferenceType = 'animation' | 'consumption' | 'contrast' | 'theme' | 'language';
2
+ export type ConsumptionModeType = 'high' | 'medium' | 'low';
@@ -1,9 +1,9 @@
1
1
  {
2
- "timestamp": "2024-04-18T15:04:37",
2
+ "timestamp": "2024-09-13T08:12:14",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
- "version": "4.10.0",
6
- "typescriptVersion": "5.3.3"
5
+ "version": "4.21.0",
6
+ "typescriptVersion": "5.5.3"
7
7
  },
8
8
  "components": [
9
9
  {
@@ -326,7 +326,7 @@
326
326
  "path": "src/components/mds-chip/meta/interface.ts"
327
327
  },
328
328
  "src/components/mds-dropdown/meta/types.ts::DropdownInteractionType": {
329
- "declaration": "export type DropdownInteractionType =\n | 'click'\n | 'mouseover'",
329
+ "declaration": "export type DropdownInteractionType =\n | 'click'\n | 'none'\n | 'mouseover'",
330
330
  "docstring": "",
331
331
  "path": "src/components/mds-dropdown/meta/types.ts"
332
332
  },
@@ -375,26 +375,6 @@
375
375
  "docstring": "",
376
376
  "path": "src/components/mds-filter-item/meta/event-detail.ts"
377
377
  },
378
- "src/components/mds-form/meta/types.ts::CharacterSetType": {
379
- "declaration": "export type CharacterSetType =\n | '8859-1'\n | 'ansi'\n | 'ascii'\n | 'utf-8'",
380
- "docstring": "",
381
- "path": "src/components/mds-form/meta/types.ts"
382
- },
383
- "src/components/mds-form/meta/types.ts::FormAutocompleteType": {
384
- "declaration": "export type FormAutocompleteType =\n | 'off'\n | 'on'",
385
- "docstring": "",
386
- "path": "src/components/mds-form/meta/types.ts"
387
- },
388
- "src/components/mds-form/meta/types.ts::EnctypeType": {
389
- "declaration": "export type EnctypeType =\n | 'application/x-www-form-urlencoded'\n | 'multipart/form-data'\n | 'text/plain'",
390
- "docstring": "",
391
- "path": "src/components/mds-form/meta/types.ts"
392
- },
393
- "src/components/mds-form/meta/types.ts::FormMethodType": {
394
- "declaration": "export type FormMethodType =\n | 'get'\n | 'post'",
395
- "docstring": "",
396
- "path": "src/components/mds-form/meta/types.ts"
397
- },
398
378
  "src/components/mds-header-bar/meta/types.ts::MenuType": {
399
379
  "declaration": "export type MenuType =\n | 'all'\n | 'desktop'\n | 'mobile'\n | 'none'",
400
380
  "docstring": "",
@@ -505,11 +485,26 @@
505
485
  "docstring": "",
506
486
  "path": "src/components/mds-input-switch/meta/event-detail.ts"
507
487
  },
488
+ "src/components/mds-input-tip/meta/types.ts::InputTipPositionType": {
489
+ "declaration": "export type InputTipPositionType =\n | 'top'\n | 'bottom'",
490
+ "docstring": "",
491
+ "path": "src/components/mds-input-tip/meta/types.ts"
492
+ },
493
+ "src/components/mds-input-tip-item/meta/types.ts::InputTipItemVariantType": {
494
+ "declaration": "export type InputTipItemVariantType =\n | 'required'\n | 'required-success'\n | 'disabled'\n | 'readonly'\n | 'text'",
495
+ "docstring": "",
496
+ "path": "src/components/mds-input-tip-item/meta/types.ts"
497
+ },
508
498
  "src/components/mds-input-upload/meta/types.ts::AttachmentSort": {
509
499
  "declaration": "type AttachmentSort =\n 'status' |\n 'date'",
510
500
  "docstring": "",
511
501
  "path": "src/components/mds-input-upload/meta/types.ts"
512
502
  },
503
+ "src/components/mds-input-upload/meta/types.ts::FileError": {
504
+ "declaration": "interface FileError {\n filename: string,\n errorMessage: string,\n}",
505
+ "docstring": "",
506
+ "path": "src/components/mds-input-upload/meta/types.ts"
507
+ },
513
508
  "src/type/typography.ts::TypographyType": {
514
509
  "declaration": "export type TypographyType =\n | 'action'\n | 'caption'\n | 'snippet'\n | 'detail'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'hack'\n | 'label'\n | 'option'\n | 'paragraph'\n | 'tip'",
515
510
  "docstring": "",
@@ -540,6 +535,46 @@
540
535
  "docstring": "",
541
536
  "path": "src/components/mds-paginator/meta/event-detail.ts"
542
537
  },
538
+ "src/components/mds-pref-animation/meta/types.ts::AnimationModeType": {
539
+ "declaration": "export type AnimationModeType =\n | 'reduce'\n | 'no-preference'\n | 'system'",
540
+ "docstring": "",
541
+ "path": "src/components/mds-pref-animation/meta/types.ts"
542
+ },
543
+ "src/event-detail/preference.ts::MdsPrefChangeEventDetail": {
544
+ "declaration": "export interface MdsPrefChangeEventDetail {\n preference: UIPreferenceType\n}",
545
+ "docstring": "",
546
+ "path": "src/event-detail/preference.ts"
547
+ },
548
+ "src/type/preference.ts::ConsumptionModeType": {
549
+ "declaration": "export type ConsumptionModeType =\n | 'high'\n | 'medium'\n | 'low'",
550
+ "docstring": "",
551
+ "path": "src/type/preference.ts"
552
+ },
553
+ "src/components/mds-pref-contrast/meta/types.ts::ContrastModeType": {
554
+ "declaration": "export type ContrastModeType =\n | 'more'\n | 'no-preference'\n | 'system'",
555
+ "docstring": "",
556
+ "path": "src/components/mds-pref-contrast/meta/types.ts"
557
+ },
558
+ "src/type/language.ts::LanguageType": {
559
+ "declaration": "export type LanguageType =\n | 'auto'\n | `${Lowercase<string>}${Lowercase<string>}`\n | `${Lowercase<string>}${Lowercase<string>}${Lowercase<string>}`",
560
+ "docstring": "",
561
+ "path": "src/type/language.ts"
562
+ },
563
+ "src/event-detail/language.ts::MdsPrefLanguageEventDetail": {
564
+ "declaration": "export interface MdsPrefLanguageEventDetail {\n language?: LanguageType\n}",
565
+ "docstring": "",
566
+ "path": "src/event-detail/language.ts"
567
+ },
568
+ "src/components/mds-pref-theme/meta/types.ts::ThemeModeType": {
569
+ "declaration": "export type ThemeModeType =\n | 'light'\n | 'dark'\n | 'system'",
570
+ "docstring": "",
571
+ "path": "src/components/mds-pref-theme/meta/types.ts"
572
+ },
573
+ "src/components/mds-pref-theme/meta/types.ts::ThemeTransitionType": {
574
+ "declaration": "export type ThemeTransitionType =\n | 'none'\n | 'flash'\n | 'smooth'",
575
+ "docstring": "",
576
+ "path": "src/components/mds-pref-theme/meta/types.ts"
577
+ },
543
578
  "src/components/mds-price-table-features-cell/meta/types.ts::PriceTableFeaturesCellType": {
544
579
  "declaration": "export type PriceTableFeaturesCellType =\n | 'custom'\n | 'label'\n | 'supported'\n | 'text'\n | 'unsupported'",
545
580
  "docstring": "",
package/loader/cdn.js CHANGED
@@ -1,3 +1,2 @@
1
-
2
1
  module.exports = require('../dist/cjs/loader.cjs.js');
3
- module.exports.applyPolyfills = function() { return Promise.resolve() };
2
+ module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -1,3 +1,2 @@
1
-
2
1
  module.exports = require('../dist/cjs/loader.cjs.js');
3
- module.exports.applyPolyfills = function() { return Promise.resolve() };
2
+ module.exports.applyPolyfills = function() { return Promise.resolve() };
package/loader/index.d.ts CHANGED
@@ -9,6 +9,9 @@ export interface CustomElementsDefineOptions {
9
9
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
10
10
  }
11
11
  export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
12
+ /**
13
+ * @deprecated
14
+ */
12
15
  export declare function applyPolyfills(): Promise<void>;
13
16
 
14
17
  /**
@@ -1,3 +1,2 @@
1
-
2
1
  export * from '../dist/esm/polyfills/index.js';
3
- export * from '../dist/esm/loader.js';
2
+ export * from '../dist/esm/loader.js';
package/loader/index.js CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
3
2
  export * from '../dist/esm/polyfills/index.js';
4
- export * from '../dist/esm-es5/loader.js';
3
+ export * from '../dist/esm-es5/loader.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-progress",
3
- "version": "2.9.2",
3
+ "version": "2.10.1",
4
4
  "description": "mds-progress 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.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "test": "stencil test --spec --e2e"
25
25
  },
26
26
  "dependencies": {
27
- "@maggioli-design-system/styles": "14.3.2",
28
- "@stencil/core": "4.10.0"
27
+ "@maggioli-design-system/styles": "15.3.1",
28
+ "@stencil/core": "4.21.0"
29
29
  },
30
30
  "license": "MIT",
31
31
  "author": {
@@ -0,0 +1,70 @@
1
+ import Handlebars from 'handlebars'
2
+
3
+ type LocaleConfig = {
4
+ el?: Record<string, string | string[]>
5
+ en: Record<string, string | string[]>
6
+ es?: Record<string, string | string[]>
7
+ it?: Record<string, string | string[]>
8
+ }
9
+
10
+ export class Locale {
11
+ rollbackLanguage: string = 'en'
12
+ language: string
13
+ config: LocaleConfig
14
+ closestElement:HTMLElement
15
+
16
+ constructor (configData: LocaleConfig) {
17
+ this.config = configData
18
+ }
19
+
20
+ lang = (element: HTMLElement): void => {
21
+ this.closestElement = element.closest('[lang]') as HTMLElement
22
+
23
+
24
+ if (this.closestElement) {
25
+ if (this.closestElement.lang) {
26
+ this.language = this.closestElement.lang
27
+ return
28
+ }
29
+ }
30
+
31
+ this.language = this.rollbackLanguage
32
+ }
33
+
34
+ private pluralize = (tag: string | string[], context: Record<string, string | number>): string => {
35
+
36
+ const languagePhrase: string | string[] = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag]
37
+ const phrases: string[] = []
38
+
39
+ if (Array.isArray(languagePhrase)) {
40
+ phrases.push(languagePhrase[0])
41
+ phrases.push(languagePhrase[1])
42
+ } else {
43
+ phrases.push(languagePhrase)
44
+ phrases.push(languagePhrase)
45
+ }
46
+
47
+ const [ defaultPhrase ] = phrases
48
+ let translatePhrase: string = defaultPhrase
49
+
50
+ const keys = Object.keys(context)
51
+ if (keys.length > 0) {
52
+ const [firstKey] = keys
53
+ if (typeof context[firstKey] === 'number') {
54
+ if (context[firstKey] !== 1) {
55
+ translatePhrase = phrases[1]
56
+ }
57
+ }
58
+ }
59
+
60
+ const template = Handlebars.compile(translatePhrase)
61
+ return template(context)
62
+ }
63
+
64
+ get = (tag: string | string[], context?: Record<string, string | number>): string => {
65
+ if (context) {
66
+ return this.pluralize(tag, context)
67
+ }
68
+ return this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag]
69
+ }
70
+ }
@@ -0,0 +1,18 @@
1
+ @tailwind utilities;
2
+
3
+ @container style(--magma-pref-animation: reduce) {
4
+ :host,
5
+ .progress {
6
+ transition-duration: 0s;
7
+ }
8
+ }
9
+
10
+ @container style(--magma-pref-animation: system) {
11
+
12
+ @media (prefers-reduced-motion) {
13
+ :host,
14
+ .progress {
15
+ transition-duration: 0s;
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,23 @@
1
+ @tailwind utilities;
2
+
3
+ @container style(--magma-pref-contrast: more) {
4
+ :host,
5
+ :host( [variant="primary"] ) {
6
+
7
+ --mds-progress-color: theme('colors.brand-maggioli-05');
8
+ --mds-progress-background: theme('colors.tone-neutral-07');
9
+ }
10
+ }
11
+
12
+ @container style(--magma-pref-contrast: system) {
13
+
14
+ @media (prefers-contrast: more) {
15
+ :host,
16
+ :host( [variant="primary"] ) {
17
+
18
+ --mds-progress-color: theme('colors.brand-maggioli-05');
19
+ --mds-progress-background: theme('colors.tone-neutral-07');
20
+ }
21
+ }
22
+ }
23
+