@maggioli-design-system/mds-input-select 1.0.2 → 2.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 (61) hide show
  1. package/dist/cjs/{index-de20f095.js → index-7175cc31.js} +29 -0
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-input-select.cjs.entry.js +33 -5
  4. package/dist/cjs/mds-input-select.cjs.js +2 -2
  5. package/dist/collection/common/locale.js +20 -0
  6. package/dist/collection/components/mds-input-select/mds-input-select.css +309 -115
  7. package/dist/collection/components/mds-input-select/mds-input-select.js +149 -5
  8. package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +39 -0
  9. package/dist/collection/type/variant-file-format.js +20 -11
  10. package/dist/components/mds-input-select.js +40 -5
  11. package/dist/documentation.json +186 -4
  12. package/dist/esm/{index-635ef000.js → index-4672d19a.js} +29 -0
  13. package/dist/esm/loader.js +3 -3
  14. package/dist/esm/mds-input-select.entry.js +33 -5
  15. package/dist/esm/mds-input-select.js +3 -3
  16. package/dist/esm-es5/index-4672d19a.js +1 -0
  17. package/dist/esm-es5/loader.js +1 -1
  18. package/dist/esm-es5/mds-input-select.entry.js +1 -1
  19. package/dist/esm-es5/mds-input-select.js +1 -1
  20. package/dist/mds-input-select/mds-input-select.esm.js +1 -1
  21. package/dist/mds-input-select/mds-input-select.js +1 -1
  22. package/dist/mds-input-select/p-53c0eb18.js +2 -0
  23. package/dist/mds-input-select/p-6d6ca9a5.system.js +1 -0
  24. package/dist/mds-input-select/p-7a1ae946.entry.js +1 -0
  25. package/dist/mds-input-select/p-8ac51d55.system.entry.js +1 -0
  26. package/dist/mds-input-select/p-ea04eaa8.system.js +2 -0
  27. package/dist/stats.json +331 -44
  28. package/dist/types/common/locale.d.ts +14 -0
  29. package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +43 -0
  30. package/dist/types/components.d.ts +52 -2
  31. package/documentation.json +234 -6
  32. package/package.json +2 -1
  33. package/readme.md +35 -6
  34. package/src/common/locale.ts +31 -0
  35. package/src/components/mds-input-select/css/mds-input-variant.css +89 -0
  36. package/src/components/mds-input-select/mds-input-select.css +65 -13
  37. package/src/components/mds-input-select/mds-input-select.tsx +78 -4
  38. package/src/components/mds-input-select/readme.md +19 -6
  39. package/src/components/mds-input-select/test/mds-input-select.stories.tsx +42 -0
  40. package/src/components.d.ts +52 -2
  41. package/src/fixtures/icons.json +17 -0
  42. package/src/fixtures/iconsauce.json +9 -0
  43. package/src/type/variant-file-format.ts +20 -11
  44. package/www/build/mds-input-select.esm.js +1 -1
  45. package/www/build/mds-input-select.js +1 -1
  46. package/www/build/p-53c0eb18.js +2 -0
  47. package/www/build/p-6d6ca9a5.system.js +1 -0
  48. package/www/build/p-7a1ae946.entry.js +1 -0
  49. package/www/build/p-8ac51d55.system.entry.js +1 -0
  50. package/www/build/p-ea04eaa8.system.js +2 -0
  51. package/dist/esm-es5/index-635ef000.js +0 -1
  52. package/dist/mds-input-select/p-14820a52.js +0 -2
  53. package/dist/mds-input-select/p-a14abcd4.system.js +0 -2
  54. package/dist/mds-input-select/p-dce0cce7.system.entry.js +0 -1
  55. package/dist/mds-input-select/p-de98024b.entry.js +0 -1
  56. package/dist/mds-input-select/p-f24e4812.system.js +0 -1
  57. package/www/build/p-14820a52.js +0 -2
  58. package/www/build/p-a14abcd4.system.js +0 -2
  59. package/www/build/p-dce0cce7.system.entry.js +0 -1
  60. package/www/build/p-de98024b.entry.js +0 -1
  61. package/www/build/p-f24e4812.system.js +0 -1
@@ -5,7 +5,9 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { ThemeStatusVariantType } from "@type/variant";
8
9
  import { InputValue } from "@interface/input-value";
10
+ export { ThemeStatusVariantType } from "@type/variant";
9
11
  export { InputValue } from "@interface/input-value";
10
12
  export namespace Components {
11
13
  interface MdsInputSelect {
@@ -17,14 +19,38 @@ export namespace Components {
17
19
  * Specifies a short hint that describes the expected value of the element
18
20
  */
19
21
  "autocomplete"?: 'on';
22
+ /**
23
+ * If true, the element is displayed as disabled
24
+ */
25
+ "disabled"?: boolean;
26
+ /**
27
+ * Specifies if the select should allow multiple options to be selected in the list
28
+ */
29
+ "multiple"?: boolean;
30
+ /**
31
+ * Is needed to reference the form data after the form is submitted
32
+ */
33
+ "name"?: string;
20
34
  /**
21
35
  * Specifies a short hint that describes the expected value of the element
22
36
  */
23
37
  "placeholder"?: string;
24
38
  /**
25
- * Specifies the value of the element
39
+ * Specifies that the element must be filled out before submitting the form
40
+ */
41
+ "required"?: boolean;
42
+ /**
43
+ * When `multiple` is set to `true`, represents the number or rows in the list that should be visible
44
+ */
45
+ "size"?: number;
46
+ /**
47
+ * Specifies the value of the component
26
48
  */
27
49
  "value"?: string | number | null;
50
+ /**
51
+ * Sets the variant of the component
52
+ */
53
+ "variant"?: ThemeStatusVariantType;
28
54
  }
29
55
  }
30
56
  export interface MdsInputSelectCustomEvent<T> extends CustomEvent<T> {
@@ -63,6 +89,18 @@ declare namespace LocalJSX {
63
89
  * Specifies a short hint that describes the expected value of the element
64
90
  */
65
91
  "autocomplete"?: 'on';
92
+ /**
93
+ * If true, the element is displayed as disabled
94
+ */
95
+ "disabled"?: boolean;
96
+ /**
97
+ * Specifies if the select should allow multiple options to be selected in the list
98
+ */
99
+ "multiple"?: boolean;
100
+ /**
101
+ * Is needed to reference the form data after the form is submitted
102
+ */
103
+ "name"?: string;
66
104
  /**
67
105
  * Emits an InputChangeEventDetail when the value of the input element changes
68
106
  */
@@ -72,9 +110,21 @@ declare namespace LocalJSX {
72
110
  */
73
111
  "placeholder"?: string;
74
112
  /**
75
- * Specifies the value of the element
113
+ * Specifies that the element must be filled out before submitting the form
114
+ */
115
+ "required"?: boolean;
116
+ /**
117
+ * When `multiple` is set to `true`, represents the number or rows in the list that should be visible
118
+ */
119
+ "size"?: number;
120
+ /**
121
+ * Specifies the value of the component
76
122
  */
77
123
  "value"?: string | number | null;
124
+ /**
125
+ * Sets the variant of the component
126
+ */
127
+ "variant"?: ThemeStatusVariantType;
78
128
  }
79
129
  interface IntrinsicElements {
80
130
  "mds-input-select": MdsInputSelect;
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-04-18T15:04:37",
2
+ "timestamp": "2024-08-23T14:24:28",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.10.0",
@@ -12,7 +12,12 @@
12
12
  "tag": "mds-input-select",
13
13
  "readme": "# mds-input-select\n\n\n\nThis is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), 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.\n",
14
14
  "docs": "This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), 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.",
15
- "docsTags": [],
15
+ "docsTags": [
16
+ {
17
+ "name": "part",
18
+ "text": "select - The select HTML element"
19
+ }
20
+ ],
16
21
  "usage": {},
17
22
  "props": [
18
23
  {
@@ -64,6 +69,80 @@
64
69
  "optional": true,
65
70
  "required": false
66
71
  },
72
+ {
73
+ "name": "disabled",
74
+ "type": "boolean | undefined",
75
+ "complexType": {
76
+ "original": "boolean",
77
+ "resolved": "boolean | undefined",
78
+ "references": {}
79
+ },
80
+ "mutable": false,
81
+ "attr": "disabled",
82
+ "reflectToAttr": true,
83
+ "docs": "If true, the element is displayed as disabled",
84
+ "docsTags": [],
85
+ "default": "false",
86
+ "values": [
87
+ {
88
+ "type": "boolean"
89
+ },
90
+ {
91
+ "type": "undefined"
92
+ }
93
+ ],
94
+ "optional": true,
95
+ "required": false
96
+ },
97
+ {
98
+ "name": "multiple",
99
+ "type": "boolean | undefined",
100
+ "complexType": {
101
+ "original": "boolean",
102
+ "resolved": "boolean | undefined",
103
+ "references": {}
104
+ },
105
+ "mutable": false,
106
+ "attr": "multiple",
107
+ "reflectToAttr": true,
108
+ "docs": "Specifies if the select should allow multiple options to be selected in the list",
109
+ "docsTags": [],
110
+ "default": "false",
111
+ "values": [
112
+ {
113
+ "type": "boolean"
114
+ },
115
+ {
116
+ "type": "undefined"
117
+ }
118
+ ],
119
+ "optional": true,
120
+ "required": false
121
+ },
122
+ {
123
+ "name": "name",
124
+ "type": "string | undefined",
125
+ "complexType": {
126
+ "original": "string",
127
+ "resolved": "string | undefined",
128
+ "references": {}
129
+ },
130
+ "mutable": false,
131
+ "attr": "name",
132
+ "reflectToAttr": true,
133
+ "docs": "Is needed to reference the form data after the form is submitted",
134
+ "docsTags": [],
135
+ "values": [
136
+ {
137
+ "type": "string"
138
+ },
139
+ {
140
+ "type": "undefined"
141
+ }
142
+ ],
143
+ "optional": true,
144
+ "required": false
145
+ },
67
146
  {
68
147
  "name": "placeholder",
69
148
  "type": "string | undefined",
@@ -88,6 +167,56 @@
88
167
  "optional": true,
89
168
  "required": false
90
169
  },
170
+ {
171
+ "name": "required",
172
+ "type": "boolean | undefined",
173
+ "complexType": {
174
+ "original": "boolean",
175
+ "resolved": "boolean | undefined",
176
+ "references": {}
177
+ },
178
+ "mutable": false,
179
+ "attr": "required",
180
+ "reflectToAttr": true,
181
+ "docs": "Specifies that the element must be filled out before submitting the form",
182
+ "docsTags": [],
183
+ "default": "false",
184
+ "values": [
185
+ {
186
+ "type": "boolean"
187
+ },
188
+ {
189
+ "type": "undefined"
190
+ }
191
+ ],
192
+ "optional": true,
193
+ "required": false
194
+ },
195
+ {
196
+ "name": "size",
197
+ "type": "number | undefined",
198
+ "complexType": {
199
+ "original": "number",
200
+ "resolved": "number | undefined",
201
+ "references": {}
202
+ },
203
+ "mutable": false,
204
+ "attr": "size",
205
+ "reflectToAttr": true,
206
+ "docs": "When `multiple` is set to `true`, represents the number or rows in the list that should be visible",
207
+ "docsTags": [],
208
+ "default": "0",
209
+ "values": [
210
+ {
211
+ "type": "number"
212
+ },
213
+ {
214
+ "type": "undefined"
215
+ }
216
+ ],
217
+ "optional": true,
218
+ "required": false
219
+ },
91
220
  {
92
221
  "name": "value",
93
222
  "type": "null | number | string | undefined",
@@ -99,7 +228,7 @@
99
228
  "mutable": false,
100
229
  "attr": "value",
101
230
  "reflectToAttr": true,
102
- "docs": "Specifies the value of the element",
231
+ "docs": "Specifies the value of the component",
103
232
  "docsTags": [],
104
233
  "default": "''",
105
234
  "values": [
@@ -118,6 +247,49 @@
118
247
  ],
119
248
  "optional": true,
120
249
  "required": false
250
+ },
251
+ {
252
+ "name": "variant",
253
+ "type": "\"error\" | \"info\" | \"success\" | \"warning\" | undefined",
254
+ "complexType": {
255
+ "original": "ThemeStatusVariantType",
256
+ "resolved": "\"error\" | \"info\" | \"success\" | \"warning\" | undefined",
257
+ "references": {
258
+ "ThemeStatusVariantType": {
259
+ "location": "import",
260
+ "path": "@type/variant",
261
+ "id": "src/type/variant.ts::ThemeStatusVariantType"
262
+ }
263
+ }
264
+ },
265
+ "mutable": false,
266
+ "attr": "variant",
267
+ "reflectToAttr": true,
268
+ "docs": "Sets the variant of the component",
269
+ "docsTags": [],
270
+ "values": [
271
+ {
272
+ "value": "error",
273
+ "type": "string"
274
+ },
275
+ {
276
+ "value": "info",
277
+ "type": "string"
278
+ },
279
+ {
280
+ "value": "success",
281
+ "type": "string"
282
+ },
283
+ {
284
+ "value": "warning",
285
+ "type": "string"
286
+ },
287
+ {
288
+ "type": "undefined"
289
+ }
290
+ ],
291
+ "optional": true,
292
+ "required": false
121
293
  }
122
294
  ],
123
295
  "methods": [],
@@ -146,10 +318,26 @@
146
318
  "listeners": [],
147
319
  "styles": [],
148
320
  "slots": [],
149
- "parts": [],
321
+ "parts": [
322
+ {
323
+ "name": "select",
324
+ "docs": "The select HTML element"
325
+ }
326
+ ],
150
327
  "dependents": [],
151
- "dependencies": [],
152
- "dependencyGraph": {}
328
+ "dependencies": [
329
+ "mds-input-tip",
330
+ "mds-input-tip-item"
331
+ ],
332
+ "dependencyGraph": {
333
+ "mds-input-select": [
334
+ "mds-input-tip",
335
+ "mds-input-tip-item"
336
+ ],
337
+ "mds-input-tip-item": [
338
+ "mds-text"
339
+ ]
340
+ }
153
341
  }
154
342
  ],
155
343
  "typeLibrary": {
@@ -453,11 +641,26 @@
453
641
  "docstring": "",
454
642
  "path": "src/components/mds-input-switch/meta/event-detail.ts"
455
643
  },
644
+ "src/components/mds-input-tip/meta/types.ts::InputTipPositionType": {
645
+ "declaration": "export type InputTipPositionType =\n | 'top'\n | 'bottom'",
646
+ "docstring": "",
647
+ "path": "src/components/mds-input-tip/meta/types.ts"
648
+ },
649
+ "src/components/mds-input-tip-item/meta/types.ts::InputTipItemVariantType": {
650
+ "declaration": "export type InputTipItemVariantType =\n | 'required'\n | 'required-success'\n | 'disabled'\n | 'readonly'\n | 'text'",
651
+ "docstring": "",
652
+ "path": "src/components/mds-input-tip-item/meta/types.ts"
653
+ },
456
654
  "src/components/mds-input-upload/meta/types.ts::AttachmentSort": {
457
655
  "declaration": "type AttachmentSort =\n 'status' |\n 'date'",
458
656
  "docstring": "",
459
657
  "path": "src/components/mds-input-upload/meta/types.ts"
460
658
  },
659
+ "src/components/mds-input-upload/meta/types.ts::FileError": {
660
+ "declaration": "interface FileError {\n filename: string,\n errorMessage: string,\n}",
661
+ "docstring": "",
662
+ "path": "src/components/mds-input-upload/meta/types.ts"
663
+ },
461
664
  "src/type/typography.ts::TypographyType": {
462
665
  "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'",
463
666
  "docstring": "",
@@ -488,6 +691,31 @@
488
691
  "docstring": "",
489
692
  "path": "src/components/mds-paginator/meta/event-detail.ts"
490
693
  },
694
+ "src/components/mds-pref-animation/meta/types.ts::AnimationModeType": {
695
+ "declaration": "export type AnimationModeType =\n | 'reduce'\n | 'no-preference'\n | 'system'",
696
+ "docstring": "",
697
+ "path": "src/components/mds-pref-animation/meta/types.ts"
698
+ },
699
+ "src/components/mds-pref-consumption/meta/types.ts::ConsumptionModeType": {
700
+ "declaration": "export type ConsumptionModeType =\n | 'high'\n | 'medium'\n | 'low'",
701
+ "docstring": "",
702
+ "path": "src/components/mds-pref-consumption/meta/types.ts"
703
+ },
704
+ "src/components/mds-pref-contrast/meta/types.ts::ContrastModeType": {
705
+ "declaration": "export type ContrastModeType =\n | 'more'\n | 'no-preference'\n | 'system'",
706
+ "docstring": "",
707
+ "path": "src/components/mds-pref-contrast/meta/types.ts"
708
+ },
709
+ "src/components/mds-pref-theme/meta/types.ts::ThemeModeType": {
710
+ "declaration": "export type ThemeModeType =\n | 'light'\n | 'dark'\n | 'system'",
711
+ "docstring": "",
712
+ "path": "src/components/mds-pref-theme/meta/types.ts"
713
+ },
714
+ "src/components/mds-pref-theme/meta/types.ts::ThemeTransitionType": {
715
+ "declaration": "export type ThemeTransitionType =\n | 'none'\n | 'flash'\n | 'smooth'",
716
+ "docstring": "",
717
+ "path": "src/components/mds-pref-theme/meta/types.ts"
718
+ },
491
719
  "src/components/mds-price-table-features-cell/meta/types.ts::PriceTableFeaturesCellType": {
492
720
  "declaration": "export type PriceTableFeaturesCellType =\n | 'custom'\n | 'label'\n | 'supported'\n | 'text'\n | 'unsupported'",
493
721
  "docstring": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-input-select",
3
- "version": "1.0.2",
3
+ "version": "2.0.0",
4
4
  "description": "mds-input-select 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",
@@ -25,6 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@maggioli-design-system/styles": "14.3.2",
28
+ "@maggioli-design-system/mds-input-tip": "1.0.0",
28
29
  "@stencil/core": "4.10.0",
29
30
  "clsx": "2.1.0"
30
31
  },
package/readme.md CHANGED
@@ -9,12 +9,18 @@ This is a web-component from Maggioli Design System [Magma](https://magma.maggio
9
9
 
10
10
  ## Properties
11
11
 
12
- | Property | Attribute | Description | Type | Default |
13
- | -------------- | -------------- | ----------------------------------------------------------------------- | --------------------------------------- | ----------- |
14
- | `autoFocus` | `auto-focus` | Specifies a short hint that describes the expected value of the element | `boolean \| undefined` | `undefined` |
15
- | `autocomplete` | `autocomplete` | Specifies a short hint that describes the expected value of the element | `"on" \| undefined` | `undefined` |
16
- | `placeholder` | `placeholder` | Specifies a short hint that describes the expected value of the element | `string \| undefined` | `undefined` |
17
- | `value` | `value` | Specifies the value of the element | `null \| number \| string \| undefined` | `''` |
12
+ | Property | Attribute | Description | Type | Default |
13
+ | -------------- | -------------- | -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | ----------- |
14
+ | `autoFocus` | `auto-focus` | Specifies a short hint that describes the expected value of the element | `boolean \| undefined` | `undefined` |
15
+ | `autocomplete` | `autocomplete` | Specifies a short hint that describes the expected value of the element | `"on" \| undefined` | `undefined` |
16
+ | `disabled` | `disabled` | If true, the element is displayed as disabled | `boolean \| undefined` | `false` |
17
+ | `multiple` | `multiple` | Specifies if the select should allow multiple options to be selected in the list | `boolean \| undefined` | `false` |
18
+ | `name` | `name` | Is needed to reference the form data after the form is submitted | `string \| undefined` | `undefined` |
19
+ | `placeholder` | `placeholder` | Specifies a short hint that describes the expected value of the element | `string \| undefined` | `undefined` |
20
+ | `required` | `required` | Specifies that the element must be filled out before submitting the form | `boolean \| undefined` | `false` |
21
+ | `size` | `size` | When `multiple` is set to `true`, represents the number or rows in the list that should be visible | `number \| undefined` | `0` |
22
+ | `value` | `value` | Specifies the value of the component | `null \| number \| string \| undefined` | `''` |
23
+ | `variant` | `variant` | Sets the variant of the component | `"error" \| "info" \| "success" \| "warning" \| undefined` | `undefined` |
18
24
 
19
25
 
20
26
  ## Events
@@ -24,6 +30,29 @@ This is a web-component from Maggioli Design System [Magma](https://magma.maggio
24
30
  | `mdsInputSelectChange` | Emits an InputChangeEventDetail when the value of the input element changes | `CustomEvent<InputValue>` |
25
31
 
26
32
 
33
+ ## Shadow Parts
34
+
35
+ | Part | Description |
36
+ | ---------- | ----------------------- |
37
+ | `"select"` | The select HTML element |
38
+
39
+
40
+ ## Dependencies
41
+
42
+ ### Depends on
43
+
44
+ - [mds-input-tip](../mds-input-tip)
45
+ - [mds-input-tip-item](../mds-input-tip-item)
46
+
47
+ ### Graph
48
+ ```mermaid
49
+ graph TD;
50
+ mds-input-select --> mds-input-tip
51
+ mds-input-select --> mds-input-tip-item
52
+ mds-input-tip-item --> mds-text
53
+ style mds-input-select fill:#f9f,stroke:#333,stroke-width:4px
54
+ ```
55
+
27
56
  ----------------------------------------------
28
57
 
29
58
  Built with love @ [Gruppo Maggioli](https://www.maggioli.com) from [R&D Department](https://www.maggioli.com/it-it/chi-siamo/ricerca-sviluppo)
@@ -0,0 +1,31 @@
1
+ type LocaleConfig = {
2
+ it?: Record<string, string>
3
+ en?: Record<string, string>
4
+ gr?: Record<string, string>
5
+ }
6
+
7
+ export class Locale {
8
+ defaultLanguage: string = 'en'
9
+ language: string
10
+ config: LocaleConfig
11
+
12
+ constructor (configData: LocaleConfig) {
13
+ this.config = configData
14
+ }
15
+
16
+ lang = (element: HTMLElement): void => {
17
+ const closestElement:HTMLElement = element.closest('[lang]') as HTMLElement
18
+ if (closestElement) {
19
+ if (closestElement.lang) {
20
+ this.language = closestElement.lang
21
+ return
22
+ }
23
+ }
24
+
25
+ this.language = this.defaultLanguage
26
+ }
27
+
28
+ get = (tag: string): string => {
29
+ return this.config[this.language][tag] ?? this.config[this.defaultLanguage][tag]
30
+ }
31
+ }
@@ -0,0 +1,89 @@
1
+ @tailwind utilities;
2
+
3
+ :host {
4
+
5
+ --mds-input-select-icon-color: var(--brand-maggioli-03);
6
+ --mds-input-select-variant-color: 0 0 0;
7
+ --mds-input-select-arrow-icon-blur-background-color: rgb(var(--brand-maggioli-09));
8
+ --mds-input-select-arrow-icon-hover-background-color: rgb(var(--brand-maggioli-08));
9
+ --mds-input-select-arrow-icon-blur-color: rgb(var(--brand-maggioli-06));
10
+ --mds-input-select-arrow-icon-hover-color: rgb(var(--brand-maggioli-04));
11
+ }
12
+
13
+ :host( :hover ),
14
+ :host( :focus-within ) {
15
+
16
+ --mds-input-select-variant-color: var(--brand-maggioli-04);
17
+ }
18
+
19
+ :host( [variant="info"] ) {
20
+
21
+ --mds-input-select-icon-color: var(--status-info-05);
22
+ --mds-input-select-tip-background: var(--status-info-05);
23
+ --mds-input-select-arrow-icon-blur-background-color: rgb(var(--status-info-09));
24
+ --mds-input-select-arrow-icon-hover-background-color: rgb(var(--status-info-08));
25
+ --mds-input-select-arrow-icon-blur-color: rgb(var(--status-info-06));
26
+ --mds-input-select-arrow-icon-hover-color: rgb(var(--status-info-04));
27
+ --mds-input-select-variant-color: 0 0 0;
28
+ }
29
+
30
+ :host( [variant="info"]:hover ),
31
+ :host( [variant="info"]:focus-within ) {
32
+
33
+ --mds-input-select-icon-color: var(--status-info-04);
34
+ --mds-input-select-variant-color: var(--status-info-05);
35
+ }
36
+
37
+ :host( [variant="success"] ) {
38
+
39
+ --mds-input-select-icon-color: var(--status-success-05);
40
+ --mds-input-select-tip-background: var(--status-success-05);
41
+ --mds-input-select-arrow-icon-blur-background-color: rgb(var(--status-success-09));
42
+ --mds-input-select-arrow-icon-hover-background-color: rgb(var(--status-success-08));
43
+ --mds-input-select-arrow-icon-blur-color: rgb(var(--status-success-06));
44
+ --mds-input-select-arrow-icon-hover-color: rgb(var(--status-success-04));
45
+ --mds-input-select-variant-color: 0 0 0;
46
+ }
47
+
48
+ :host( [variant="success"]:hover ),
49
+ :host( [variant="success"]:focus-within ) {
50
+
51
+ --mds-input-select-icon-color: var(--status-success-04);
52
+ --mds-input-select-variant-color: var(--status-success-05);
53
+ }
54
+
55
+ :host( [variant="warning"] ) {
56
+
57
+ --mds-input-select-icon-color: var(--status-warning-05);
58
+ --mds-input-select-tip-background: var(--status-warning-05);
59
+ --mds-input-select-arrow-icon-blur-background-color: rgb(var(--status-warning-09));
60
+ --mds-input-select-arrow-icon-hover-background-color: rgb(var(--status-warning-08));
61
+ --mds-input-select-arrow-icon-blur-color: rgb(var(--status-warning-06));
62
+ --mds-input-select-arrow-icon-hover-color: rgb(var(--status-warning-04));
63
+ --mds-input-select-variant-color: 0 0 0;
64
+ }
65
+
66
+ :host( [variant="warning"]:hover ),
67
+ :host( [variant="warning"]:focus-within ) {
68
+
69
+ --mds-input-select-icon-color: var(--status-warning-04);
70
+ --mds-input-select-variant-color: var(--status-warning-05);
71
+ }
72
+
73
+ :host( [variant="error"] ) {
74
+
75
+ --mds-input-select-icon-color: var(--status-error-05);
76
+ --mds-input-select-tip-background: var(--status-error-05);
77
+ --mds-input-select-arrow-icon-blur-background-color: rgb(var(--status-error-09));
78
+ --mds-input-select-arrow-icon-hover-background-color: rgb(var(--status-error-08));
79
+ --mds-input-select-arrow-icon-blur-color: rgb(var(--status-error-06));
80
+ --mds-input-select-arrow-icon-hover-color: rgb(var(--status-error-04));
81
+ --mds-input-select-variant-color: 0 0 0;
82
+ }
83
+
84
+ :host( [variant="error"]:hover ),
85
+ :host( [variant="error"]:focus-within ) {
86
+
87
+ --mds-input-select-icon-color: var(--status-error-04);
88
+ --mds-input-select-variant-color: var(--status-error-05);
89
+ }