@maggioli-design-system/mds-progress 2.9.1 → 2.10.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 (78) 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 +50 -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/preference.js +1 -0
  11. package/dist/collection/type/variant-file-format.js +20 -11
  12. package/dist/components/mds-progress.js +4 -3
  13. package/dist/documentation.d.ts +34 -0
  14. package/dist/documentation.json +3 -3
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/index-2c599ac6.js +1171 -0
  17. package/dist/esm/loader.js +5 -3
  18. package/dist/esm/mds-progress.entry.js +5 -4
  19. package/dist/esm/mds-progress.js +13 -11
  20. package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
  21. package/dist/esm-es5/index-2c599ac6.js +1 -0
  22. package/dist/esm-es5/loader.js +1 -1
  23. package/dist/esm-es5/mds-progress.entry.js +1 -1
  24. package/dist/esm-es5/mds-progress.js +1 -1
  25. package/dist/mds-progress/mds-progress.esm.js +1 -1
  26. package/dist/mds-progress/mds-progress.js +1 -1
  27. package/dist/mds-progress/p-247bfa7b.system.js +1 -0
  28. package/dist/mds-progress/p-313d3f72.js +2 -0
  29. package/dist/mds-progress/p-56ba5cbf.system.js +1 -0
  30. package/dist/mds-progress/p-63b6c1a0.system.entry.js +1 -0
  31. package/dist/mds-progress/p-a9121660.entry.js +1 -0
  32. package/dist/mds-progress/p-e1255160.js +1 -0
  33. package/dist/mds-progress/p-ecdde885.system.js +2 -0
  34. package/dist/stats.json +55 -40
  35. package/dist/types/common/locale.d.ts +15 -0
  36. package/dist/types/stencil-public-runtime.d.ts +3 -10
  37. package/dist/types/type/preference.d.ts +2 -0
  38. package/documentation.json +53 -23
  39. package/loader/cdn.js +1 -2
  40. package/loader/index.cjs.js +1 -2
  41. package/loader/index.d.ts +3 -0
  42. package/loader/index.es2017.js +1 -2
  43. package/loader/index.js +1 -2
  44. package/package.json +3 -3
  45. package/src/common/locale.ts +66 -0
  46. package/src/components/mds-progress/css/mds-progress-pref-animation.css +18 -0
  47. package/src/components/mds-progress/css/mds-progress-pref-contrast.css +23 -0
  48. package/src/components/mds-progress/css/mds-progress-pref-theme.css +70 -0
  49. package/src/components/mds-progress/mds-progress.css +8 -0
  50. package/src/components/mds-progress/mds-progress.tsx +1 -0
  51. package/src/fixtures/icons.json +30 -0
  52. package/src/fixtures/iconsauce.json +21 -0
  53. package/src/tailwind/components.css +71 -0
  54. package/src/type/preference.ts +10 -0
  55. package/src/type/variant-file-format.ts +20 -11
  56. package/www/build/mds-progress.esm.js +1 -1
  57. package/www/build/mds-progress.js +1 -1
  58. package/www/build/p-247bfa7b.system.js +1 -0
  59. package/www/build/p-313d3f72.js +2 -0
  60. package/www/build/p-56ba5cbf.system.js +1 -0
  61. package/www/build/p-63b6c1a0.system.entry.js +1 -0
  62. package/www/build/p-a9121660.entry.js +1 -0
  63. package/www/build/p-e1255160.js +1 -0
  64. package/www/build/p-ecdde885.system.js +2 -0
  65. package/dist/cjs/index-ef941864.js +0 -1686
  66. package/dist/collection/components/mds-progress/test/mds-progress.e2e.js +0 -10
  67. package/dist/esm/index-370f577b.js +0 -1658
  68. package/dist/esm-es5/index-370f577b.js +0 -1
  69. package/dist/mds-progress/p-20cc5857.system.entry.js +0 -1
  70. package/dist/mds-progress/p-87430859.js +0 -2
  71. package/dist/mds-progress/p-91249106.system.js +0 -1
  72. package/dist/mds-progress/p-b8ddb760.entry.js +0 -1
  73. package/dist/mds-progress/p-bf3c5077.system.js +0 -2
  74. package/www/build/p-20cc5857.system.entry.js +0 -1
  75. package/www/build/p-87430859.js +0 -2
  76. package/www/build/p-91249106.system.js +0 -1
  77. package/www/build/p-b8ddb760.entry.js +0 -1
  78. package/www/build/p-bf3c5077.system.js +0 -2
package/dist/stats.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-02-19T12:07:39",
2
+ "timestamp": "2024-09-05T13:46:25",
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": 91,
13
13
  "outputs": [
14
14
  {
15
15
  "name": "dist-collection",
16
- "files": 42,
16
+ "files": 43,
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",
@@ -53,6 +53,7 @@
53
53
  "./dist/collection/type/form-rel.js",
54
54
  "./dist/collection/type/input.js",
55
55
  "./dist/collection/type/loading.js",
56
+ "./dist/collection/type/preference.js",
56
57
  "./dist/collection/type/text.js",
57
58
  "./dist/collection/type/typography.js",
58
59
  "./dist/collection/type/variant-file-format.js",
@@ -71,19 +72,22 @@
71
72
  },
72
73
  {
73
74
  "name": "dist-lazy",
74
- "files": 35,
75
+ "files": 42,
75
76
  "generatedFiles": [
76
- "./dist/cjs/index-ef941864.js",
77
+ "./dist/cjs/app-globals-3a1e7e63.js",
78
+ "./dist/cjs/index-2c37527a.js",
77
79
  "./dist/cjs/index.cjs.js",
78
80
  "./dist/cjs/loader.cjs.js",
79
81
  "./dist/cjs/mds-progress.cjs.entry.js",
80
82
  "./dist/cjs/mds-progress.cjs.js",
81
- "./dist/esm-es5/index-370f577b.js",
83
+ "./dist/esm-es5/app-globals-0f993ce5.js",
84
+ "./dist/esm-es5/index-2c599ac6.js",
82
85
  "./dist/esm-es5/index.js",
83
86
  "./dist/esm-es5/loader.js",
84
87
  "./dist/esm-es5/mds-progress.entry.js",
85
88
  "./dist/esm-es5/mds-progress.js",
86
- "./dist/esm/index-370f577b.js",
89
+ "./dist/esm/app-globals-0f993ce5.js",
90
+ "./dist/esm/index-2c599ac6.js",
87
91
  "./dist/esm/index.js",
88
92
  "./dist/esm/loader.js",
89
93
  "./dist/esm/mds-progress.entry.js",
@@ -93,21 +97,25 @@
93
97
  "./dist/mds-progress/index.esm.js",
94
98
  "./dist/mds-progress/mds-progress.esm.js",
95
99
  "./dist/mds-progress/mds-progress.js",
96
- "./dist/mds-progress/p-20cc5857.system.entry.js",
100
+ "./dist/mds-progress/p-247bfa7b.system.js",
101
+ "./dist/mds-progress/p-313d3f72.js",
97
102
  "./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",
103
+ "./dist/mds-progress/p-56ba5cbf.system.js",
104
+ "./dist/mds-progress/p-63b6c1a0.system.entry.js",
105
+ "./dist/mds-progress/p-a9121660.entry.js",
106
+ "./dist/mds-progress/p-e1255160.js",
107
+ "./dist/mds-progress/p-ecdde885.system.js",
102
108
  "./www/build/index.esm.js",
103
109
  "./www/build/mds-progress.esm.js",
104
110
  "./www/build/mds-progress.js",
105
- "./www/build/p-20cc5857.system.entry.js",
111
+ "./www/build/p-247bfa7b.system.js",
112
+ "./www/build/p-313d3f72.js",
106
113
  "./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"
114
+ "./www/build/p-56ba5cbf.system.js",
115
+ "./www/build/p-63b6c1a0.system.entry.js",
116
+ "./www/build/p-a9121660.entry.js",
117
+ "./www/build/p-e1255160.js",
118
+ "./www/build/p-ecdde885.system.js"
111
119
  ]
112
120
  },
113
121
  {
@@ -140,12 +148,12 @@
140
148
  "components": [
141
149
  "mds-progress"
142
150
  ],
143
- "bundleId": "p-b8ddb760",
144
- "fileName": "p-b8ddb760.entry.js",
151
+ "bundleId": "p-a9121660",
152
+ "fileName": "p-a9121660.entry.js",
145
153
  "imports": [
146
- "p-87430859.js"
154
+ "p-313d3f72.js"
147
155
  ],
148
- "originalByteSize": 7305
156
+ "originalByteSize": 13025
149
157
  }
150
158
  ],
151
159
  "esm": [
@@ -157,9 +165,9 @@
157
165
  "bundleId": "mds-progress",
158
166
  "fileName": "mds-progress.entry.js",
159
167
  "imports": [
160
- "index-370f577b.js"
168
+ "index-2c599ac6.js"
161
169
  ],
162
- "originalByteSize": 7309
170
+ "originalByteSize": 13029
163
171
  }
164
172
  ],
165
173
  "es5": [
@@ -171,9 +179,9 @@
171
179
  "bundleId": "mds-progress",
172
180
  "fileName": "mds-progress.entry.js",
173
181
  "imports": [
174
- "index-370f577b.js"
182
+ "index-2c599ac6.js"
175
183
  ],
176
- "originalByteSize": 7309
184
+ "originalByteSize": 13029
177
185
  }
178
186
  ],
179
187
  "system": [
@@ -182,12 +190,12 @@
182
190
  "components": [
183
191
  "mds-progress"
184
192
  ],
185
- "bundleId": "p-20cc5857.system",
186
- "fileName": "p-20cc5857.system.entry.js",
193
+ "bundleId": "p-63b6c1a0.system",
194
+ "fileName": "p-63b6c1a0.system.entry.js",
187
195
  "imports": [
188
- "p-bf3c5077.system.js"
196
+ "p-ecdde885.system.js"
189
197
  ],
190
- "originalByteSize": 7764
198
+ "originalByteSize": 13490
191
199
  }
192
200
  ],
193
201
  "commonjs": [
@@ -199,9 +207,9 @@
199
207
  "bundleId": "mds-progress.cjs",
200
208
  "fileName": "mds-progress.cjs.entry.js",
201
209
  "imports": [
202
- "index-ef941864.js"
210
+ "index-2c37527a.js"
203
211
  ],
204
- "originalByteSize": 7368
212
+ "originalByteSize": 13094
205
213
  }
206
214
  ]
207
215
  },
@@ -477,27 +485,32 @@
477
485
  {
478
486
  "name": "--mds-progress-background",
479
487
  "docs": "Sets the background-color of the component",
480
- "annotation": "prop"
488
+ "annotation": "prop",
489
+ "mode": "$"
481
490
  },
482
491
  {
483
492
  "name": "--mds-progress-color",
484
493
  "docs": "Sets the background-color of the progress",
485
- "annotation": "prop"
494
+ "annotation": "prop",
495
+ "mode": "$"
486
496
  },
487
497
  {
488
498
  "name": "--mds-progress-duration",
489
499
  "docs": "Sets the duration of the progress bar animation",
490
- "annotation": "prop"
500
+ "annotation": "prop",
501
+ "mode": "$"
491
502
  },
492
503
  {
493
504
  "name": "--mds-progress-radius",
494
505
  "docs": "Sets the border-radius of the component",
495
- "annotation": "prop"
506
+ "annotation": "prop",
507
+ "mode": "$"
496
508
  },
497
509
  {
498
510
  "name": "--mds-progress-thickness",
499
511
  "docs": "Sets the thickness of the progress bar",
500
- "annotation": "prop"
512
+ "annotation": "prop",
513
+ "mode": "$"
501
514
  }
502
515
  ],
503
516
  "docs": {
@@ -544,7 +557,7 @@
544
557
  "hasVdomXlink": false,
545
558
  "hasVdomClass": true,
546
559
  "hasVdomFunctional": false,
547
- "hasVdomKey": false,
560
+ "hasVdomKey": true,
548
561
  "hasVdomListener": false,
549
562
  "hasVdomPropOrAttr": true,
550
563
  "hasVdomRef": false,
@@ -554,6 +567,7 @@
554
567
  "hasWatchCallback": true,
555
568
  "isPlain": false,
556
569
  "htmlAttrNames": [
570
+ "key",
557
571
  "aria-valuemax",
558
572
  "aria-valuemin",
559
573
  "aria-valuenow",
@@ -578,7 +592,7 @@
578
592
  ],
579
593
  "componentGraph": {
580
594
  "sc-mds-progress": [
581
- "p-87430859.js"
595
+ "p-313d3f72.js"
582
596
  ]
583
597
  },
584
598
  "sourceGraph": {
@@ -586,6 +600,7 @@
586
600
  "./src/common/file.ts": [],
587
601
  "./src/common/icon.ts": [],
588
602
  "./src/common/keyboard-manager.ts": [],
603
+ "./src/common/locale.ts": [],
589
604
  "./src/common/unit.ts": [],
590
605
  "./src/common/yugop/core.ts": [
591
606
  "./src/common/yugop/utils/math",
@@ -606,7 +621,6 @@
606
621
  "./src/components/mds-progress/mds-progress.tsx": [],
607
622
  "./src/components/mds-progress/meta/dictionary.ts": [],
608
623
  "./src/components/mds-progress/meta/types.ts": [],
609
- "./src/components/mds-progress/test/mds-progress.e2e.ts": [],
610
624
  "./src/components/mds-progress/test/mds-progress.stories.tsx": [
611
625
  "./src/components/mds-progress/meta/dictionary"
612
626
  ],
@@ -634,6 +648,7 @@
634
648
  "./src/type/form-rel.ts": [],
635
649
  "./src/type/input.ts": [],
636
650
  "./src/type/loading.ts": [],
651
+ "./src/type/preference.ts": [],
637
652
  "./src/type/text.ts": [],
638
653
  "./src/type/typography.ts": [],
639
654
  "./src/type/variant-file-format.ts": [],
@@ -0,0 +1,15 @@
1
+ type LocaleConfig = {
2
+ it?: Record<string, string | string[]>;
3
+ en?: Record<string, string | string[]>;
4
+ gr?: Record<string, string | string[]>;
5
+ };
6
+ export declare class Locale {
7
+ defaultLanguage: string;
8
+ language: string;
9
+ config: LocaleConfig;
10
+ constructor(configData: LocaleConfig);
11
+ lang: (element: HTMLElement) => void;
12
+ private pluralize;
13
+ get: (tag: string | string[], context?: Record<string, string | number>) => string;
14
+ }
15
+ 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,2 @@
1
+ export type UIPreferenceType = 'animation' | 'consumption' | 'contrast' | 'theme';
2
+ export type ConsumptionModeType = 'high' | 'medium' | 'low';
@@ -1,9 +1,9 @@
1
1
  {
2
- "timestamp": "2024-02-19T11:09:01",
2
+ "timestamp": "2024-09-05T13:13:09",
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
  {
@@ -325,6 +325,11 @@
325
325
  "docstring": "",
326
326
  "path": "src/components/mds-chip/meta/interface.ts"
327
327
  },
328
+ "src/components/mds-dropdown/meta/types.ts::DropdownInteractionType": {
329
+ "declaration": "export type DropdownInteractionType =\n | 'click'\n | 'mouseover'",
330
+ "docstring": "",
331
+ "path": "src/components/mds-dropdown/meta/types.ts"
332
+ },
328
333
  "src/type/floating-ui.ts::FloatingUIPlacement": {
329
334
  "declaration": "export type FloatingUIPlacement =\n | 'bottom'\n | 'bottom-end'\n | 'bottom-start'\n | 'left'\n | 'left-end'\n | 'left-start'\n | 'right'\n | 'right-end'\n | 'right-start'\n | 'top'\n | 'top-end'\n | 'top-start'",
330
335
  "docstring": "",
@@ -370,26 +375,6 @@
370
375
  "docstring": "",
371
376
  "path": "src/components/mds-filter-item/meta/event-detail.ts"
372
377
  },
373
- "src/components/mds-form/meta/types.ts::CharacterSetType": {
374
- "declaration": "export type CharacterSetType =\n | '8859-1'\n | 'ansi'\n | 'ascii'\n | 'utf-8'",
375
- "docstring": "",
376
- "path": "src/components/mds-form/meta/types.ts"
377
- },
378
- "src/components/mds-form/meta/types.ts::FormAutocompleteType": {
379
- "declaration": "export type FormAutocompleteType =\n | 'off'\n | 'on'",
380
- "docstring": "",
381
- "path": "src/components/mds-form/meta/types.ts"
382
- },
383
- "src/components/mds-form/meta/types.ts::EnctypeType": {
384
- "declaration": "export type EnctypeType =\n | 'application/x-www-form-urlencoded'\n | 'multipart/form-data'\n | 'text/plain'",
385
- "docstring": "",
386
- "path": "src/components/mds-form/meta/types.ts"
387
- },
388
- "src/components/mds-form/meta/types.ts::FormMethodType": {
389
- "declaration": "export type FormMethodType =\n | 'get'\n | 'post'",
390
- "docstring": "",
391
- "path": "src/components/mds-form/meta/types.ts"
392
- },
393
378
  "src/components/mds-header-bar/meta/types.ts::MenuType": {
394
379
  "declaration": "export type MenuType =\n | 'all'\n | 'desktop'\n | 'mobile'\n | 'none'",
395
380
  "docstring": "",
@@ -500,11 +485,26 @@
500
485
  "docstring": "",
501
486
  "path": "src/components/mds-input-switch/meta/event-detail.ts"
502
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
+ },
503
498
  "src/components/mds-input-upload/meta/types.ts::AttachmentSort": {
504
499
  "declaration": "type AttachmentSort =\n 'status' |\n 'date'",
505
500
  "docstring": "",
506
501
  "path": "src/components/mds-input-upload/meta/types.ts"
507
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
+ },
508
508
  "src/type/typography.ts::TypographyType": {
509
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'",
510
510
  "docstring": "",
@@ -535,6 +535,31 @@
535
535
  "docstring": "",
536
536
  "path": "src/components/mds-paginator/meta/event-detail.ts"
537
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/type/preference.ts::ConsumptionModeType": {
544
+ "declaration": "export type ConsumptionModeType =\n | 'high'\n | 'medium'\n | 'low'",
545
+ "docstring": "",
546
+ "path": "src/type/preference.ts"
547
+ },
548
+ "src/components/mds-pref-contrast/meta/types.ts::ContrastModeType": {
549
+ "declaration": "export type ContrastModeType =\n | 'more'\n | 'no-preference'\n | 'system'",
550
+ "docstring": "",
551
+ "path": "src/components/mds-pref-contrast/meta/types.ts"
552
+ },
553
+ "src/components/mds-pref-theme/meta/types.ts::ThemeModeType": {
554
+ "declaration": "export type ThemeModeType =\n | 'light'\n | 'dark'\n | 'system'",
555
+ "docstring": "",
556
+ "path": "src/components/mds-pref-theme/meta/types.ts"
557
+ },
558
+ "src/components/mds-pref-theme/meta/types.ts::ThemeTransitionType": {
559
+ "declaration": "export type ThemeTransitionType =\n | 'none'\n | 'flash'\n | 'smooth'",
560
+ "docstring": "",
561
+ "path": "src/components/mds-pref-theme/meta/types.ts"
562
+ },
538
563
  "src/components/mds-price-table-features-cell/meta/types.ts::PriceTableFeaturesCellType": {
539
564
  "declaration": "export type PriceTableFeaturesCellType =\n | 'custom'\n | 'label'\n | 'supported'\n | 'text'\n | 'unsupported'",
540
565
  "docstring": "",
@@ -550,6 +575,11 @@
550
575
  "docstring": "",
551
576
  "path": "src/components/mds-push-notification/meta/types.ts"
552
577
  },
578
+ "src/components/mds-push-notification/meta/event-detail.ts::MdsPushNotificationEventDetail": {
579
+ "declaration": "export interface MdsPushNotificationEventDetail {\n id: string;\n}",
580
+ "docstring": "",
581
+ "path": "src/components/mds-push-notification/meta/event-detail.ts"
582
+ },
553
583
  "src/components/mds-stepper-bar/meta/event-detail.ts::MdsStepperBarEventDetail": {
554
584
  "declaration": "export interface MdsStepperBarEventDetail {\n step: number\n value: string\n}",
555
585
  "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.1",
3
+ "version": "2.10.0",
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.2.2",
28
- "@stencil/core": "4.10.0"
27
+ "@maggioli-design-system/styles": "15.3.0",
28
+ "@stencil/core": "4.21.0"
29
29
  },
30
30
  "license": "MIT",
31
31
  "author": {
@@ -0,0 +1,66 @@
1
+ import Handlebars from 'handlebars'
2
+
3
+ type LocaleConfig = {
4
+ it?: Record<string, string | string[]>
5
+ en?: Record<string, string | string[]>
6
+ gr?: Record<string, string | string[]>
7
+ }
8
+
9
+ export class Locale {
10
+ defaultLanguage: string = 'en'
11
+ language: string
12
+ config: LocaleConfig
13
+
14
+ constructor (configData: LocaleConfig) {
15
+ this.config = configData
16
+ }
17
+
18
+ lang = (element: HTMLElement): void => {
19
+ const closestElement:HTMLElement = element.closest('[lang]') as HTMLElement
20
+ if (closestElement) {
21
+ if (closestElement.lang) {
22
+ this.language = closestElement.lang
23
+ return
24
+ }
25
+ }
26
+
27
+ this.language = this.defaultLanguage
28
+ }
29
+
30
+ private pluralize = (tag: string | string[], context: Record<string, string | number>): string => {
31
+
32
+ const languagePhrase: string | string[] = this.config[this.language][tag] ?? this.config[this.defaultLanguage][tag]
33
+ const phrases: string[] = []
34
+
35
+ if (Array.isArray(languagePhrase)) {
36
+ phrases.push(languagePhrase[0])
37
+ phrases.push(languagePhrase[1])
38
+ } else {
39
+ phrases.push(languagePhrase)
40
+ phrases.push(languagePhrase)
41
+ }
42
+
43
+ const [ defaultPhrase ] = phrases
44
+ let translatePhrase: string = defaultPhrase
45
+
46
+ const keys = Object.keys(context)
47
+ if (keys.length > 0) {
48
+ const [firstKey] = keys
49
+ if (typeof context[firstKey] === 'number') {
50
+ if (context[firstKey] !== 1) {
51
+ translatePhrase = phrases[1]
52
+ }
53
+ }
54
+ }
55
+
56
+ const template = Handlebars.compile(translatePhrase)
57
+ return template(context)
58
+ }
59
+
60
+ get = (tag: string | string[], context?: Record<string, string | number>): string => {
61
+ if (context) {
62
+ return this.pluralize(tag, context)
63
+ }
64
+ return this.config[this.language][tag] ?? this.config[this.defaultLanguage][tag]
65
+ }
66
+ }
@@ -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
+