@api-client/ui 0.2.10 → 0.2.11

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 (141) hide show
  1. package/build/src/md/UiElement.d.ts +5 -0
  2. package/build/src/md/UiElement.d.ts.map +1 -1
  3. package/build/src/md/UiElement.js +7 -0
  4. package/build/src/md/UiElement.js.map +1 -1
  5. package/build/src/md/button/ui-elevated-button.d.ts +1 -1
  6. package/build/src/md/button/ui-elevated-button.js +1 -1
  7. package/build/src/md/button/ui-elevated-button.js.map +1 -1
  8. package/build/src/md/button/ui-filled-button.d.ts +1 -1
  9. package/build/src/md/button/ui-filled-button.js +1 -1
  10. package/build/src/md/button/ui-filled-button.js.map +1 -1
  11. package/build/src/md/button/ui-filled-tonal-button.d.ts +3 -3
  12. package/build/src/md/button/ui-filled-tonal-button.d.ts.map +1 -1
  13. package/build/src/md/button/ui-filled-tonal-button.js +6 -6
  14. package/build/src/md/button/ui-filled-tonal-button.js.map +1 -1
  15. package/build/src/md/button/ui-outlined-button.d.ts +1 -1
  16. package/build/src/md/button/ui-outlined-button.js +1 -1
  17. package/build/src/md/button/ui-outlined-button.js.map +1 -1
  18. package/build/src/md/button/ui-text-button.d.ts +1 -1
  19. package/build/src/md/button/ui-text-button.js +1 -1
  20. package/build/src/md/button/ui-text-button.js.map +1 -1
  21. package/build/src/md/checkbox/internals/Checkbox.styles.d.ts.map +1 -1
  22. package/build/src/md/checkbox/internals/Checkbox.styles.js +55 -216
  23. package/build/src/md/checkbox/internals/Checkbox.styles.js.map +1 -1
  24. package/build/src/md/checkbox/internals/CheckboxElement.d.ts +10 -7
  25. package/build/src/md/checkbox/internals/CheckboxElement.d.ts.map +1 -1
  26. package/build/src/md/checkbox/internals/CheckboxElement.js +39 -32
  27. package/build/src/md/checkbox/internals/CheckboxElement.js.map +1 -1
  28. package/build/src/md/checkbox/internals/CheckedElement.d.ts.map +1 -1
  29. package/build/src/md/checkbox/internals/CheckedElement.js +1 -0
  30. package/build/src/md/checkbox/internals/CheckedElement.js.map +1 -1
  31. package/build/src/md/dropdown-list/internals/UiDropdownList.d.ts +13 -2
  32. package/build/src/md/dropdown-list/internals/UiDropdownList.d.ts.map +1 -1
  33. package/build/src/md/dropdown-list/internals/UiDropdownList.js +59 -20
  34. package/build/src/md/dropdown-list/internals/UiDropdownList.js.map +1 -1
  35. package/build/src/md/icon-button/internals/IconButton.d.ts +8 -24
  36. package/build/src/md/icon-button/internals/IconButton.d.ts.map +1 -1
  37. package/build/src/md/icon-button/internals/IconButton.js +35 -63
  38. package/build/src/md/icon-button/internals/IconButton.js.map +1 -1
  39. package/build/src/md/icon-button/internals/{IconButton.styles.d.ts → base.styles.d.ts} +1 -1
  40. package/build/src/md/icon-button/internals/base.styles.d.ts.map +1 -0
  41. package/build/src/md/icon-button/internals/base.styles.js +93 -0
  42. package/build/src/md/icon-button/internals/base.styles.js.map +1 -0
  43. package/build/src/md/icon-button/internals/filled-tonal.styles.d.ts +3 -0
  44. package/build/src/md/icon-button/internals/filled-tonal.styles.d.ts.map +1 -0
  45. package/build/src/md/icon-button/internals/filled-tonal.styles.js +30 -0
  46. package/build/src/md/icon-button/internals/filled-tonal.styles.js.map +1 -0
  47. package/build/src/md/icon-button/internals/filled.styles.d.ts +3 -0
  48. package/build/src/md/icon-button/internals/filled.styles.d.ts.map +1 -0
  49. package/build/src/md/icon-button/internals/filled.styles.js +36 -0
  50. package/build/src/md/icon-button/internals/filled.styles.js.map +1 -0
  51. package/build/src/md/icon-button/internals/outlined.styles.d.ts +3 -0
  52. package/build/src/md/icon-button/internals/outlined.styles.d.ts.map +1 -0
  53. package/build/src/md/icon-button/internals/outlined.styles.js +31 -0
  54. package/build/src/md/icon-button/internals/outlined.styles.js.map +1 -0
  55. package/build/src/md/icon-button/internals/standard.styles.d.ts +3 -0
  56. package/build/src/md/icon-button/internals/standard.styles.d.ts.map +1 -0
  57. package/build/src/md/icon-button/internals/standard.styles.js +18 -0
  58. package/build/src/md/icon-button/internals/standard.styles.js.map +1 -0
  59. package/build/src/md/icon-button/ui-filled-icon-button.d.ts +11 -0
  60. package/build/src/md/icon-button/ui-filled-icon-button.d.ts.map +1 -0
  61. package/build/src/md/icon-button/ui-filled-icon-button.js +28 -0
  62. package/build/src/md/icon-button/ui-filled-icon-button.js.map +1 -0
  63. package/build/src/md/icon-button/ui-filled-tonal-icon-button.d.ts +11 -0
  64. package/build/src/md/icon-button/ui-filled-tonal-icon-button.d.ts.map +1 -0
  65. package/build/src/md/icon-button/ui-filled-tonal-icon-button.js +28 -0
  66. package/build/src/md/icon-button/ui-filled-tonal-icon-button.js.map +1 -0
  67. package/build/src/md/icon-button/ui-icon-button.d.ts.map +1 -1
  68. package/build/src/md/icon-button/ui-icon-button.js +3 -2
  69. package/build/src/md/icon-button/ui-icon-button.js.map +1 -1
  70. package/build/src/md/icon-button/ui-outlined-icon-button.d.ts +11 -0
  71. package/build/src/md/icon-button/ui-outlined-icon-button.d.ts.map +1 -0
  72. package/build/src/md/icon-button/ui-outlined-icon-button.js +28 -0
  73. package/build/src/md/icon-button/ui-outlined-icon-button.js.map +1 -0
  74. package/build/src/md/icons/internals/Icon.d.ts +1 -0
  75. package/build/src/md/icons/internals/Icon.d.ts.map +1 -1
  76. package/build/src/md/icons/internals/Icon.js +13 -0
  77. package/build/src/md/icons/internals/Icon.js.map +1 -1
  78. package/build/src/md/icons/internals/Icon.styles.d.ts.map +1 -1
  79. package/build/src/md/icons/internals/Icon.styles.js +31 -2
  80. package/build/src/md/icons/internals/Icon.styles.js.map +1 -1
  81. package/build/src/md/list/internals/ListItem.d.ts +4 -3
  82. package/build/src/md/list/internals/ListItem.d.ts.map +1 -1
  83. package/build/src/md/list/internals/ListItem.js +20 -18
  84. package/build/src/md/list/internals/ListItem.js.map +1 -1
  85. package/build/src/md/list/internals/ListItem.styles.d.ts.map +1 -1
  86. package/build/src/md/list/internals/ListItem.styles.js +6 -2
  87. package/build/src/md/list/internals/ListItem.styles.js.map +1 -1
  88. package/build/src/md/ripple/internals/ripple.d.ts +2 -1
  89. package/build/src/md/ripple/internals/ripple.d.ts.map +1 -1
  90. package/build/src/md/ripple/internals/ripple.js +42 -12
  91. package/build/src/md/ripple/internals/ripple.js.map +1 -1
  92. package/build/src/md/segmented-button/internals/SegmentedButton.d.ts +1 -1
  93. package/build/src/md/segmented-button/internals/SegmentedButton.d.ts.map +1 -1
  94. package/build/src/md/segmented-button/internals/SegmentedButton.js +1 -1
  95. package/build/src/md/segmented-button/internals/SegmentedButton.js.map +1 -1
  96. package/demo/md/buttons/{button.html → index.html} +1 -1
  97. package/demo/md/{inputs/checkbox.html → checkbox/index.html} +1 -1
  98. package/demo/md/{list/dropdown-list.html → dropdown-list/index.html} +1 -1
  99. package/demo/md/{buttons/icon-button.html → icon-button/index.html} +5 -1
  100. package/demo/md/icon-button/index.ts +236 -0
  101. package/demo/md/index.html +36 -29
  102. package/demo/md/listbox/listbox.html +31 -0
  103. package/demo/md/listbox/listbox.ts +27 -0
  104. package/demo/md/{buttons/segmented-buttons.html → segmented-button/index.html} +1 -1
  105. package/package.json +1 -1
  106. package/src/md/UiElement.ts +8 -0
  107. package/src/md/button/ui-elevated-button.ts +1 -1
  108. package/src/md/button/ui-filled-button.ts +1 -1
  109. package/src/md/button/ui-filled-tonal-button.ts +3 -3
  110. package/src/md/button/ui-outlined-button.ts +1 -1
  111. package/src/md/button/ui-text-button.ts +1 -1
  112. package/src/md/checkbox/internals/Checkbox.styles.ts +55 -216
  113. package/src/md/checkbox/internals/CheckboxElement.ts +39 -26
  114. package/src/md/checkbox/internals/CheckedElement.ts +1 -0
  115. package/src/md/dropdown-list/internals/UiDropdownList.ts +60 -21
  116. package/src/md/icon-button/internals/IconButton.ts +29 -46
  117. package/src/md/icon-button/internals/base.styles.ts +93 -0
  118. package/src/md/icon-button/internals/filled-tonal.styles.ts +30 -0
  119. package/src/md/icon-button/internals/filled.styles.ts +36 -0
  120. package/src/md/icon-button/internals/outlined.styles.ts +31 -0
  121. package/src/md/icon-button/internals/standard.styles.ts +18 -0
  122. package/src/md/icon-button/ui-filled-icon-button.ts +16 -0
  123. package/src/md/icon-button/ui-filled-tonal-icon-button.ts +16 -0
  124. package/src/md/icon-button/ui-icon-button.ts +3 -2
  125. package/src/md/icon-button/ui-outlined-icon-button.ts +16 -0
  126. package/src/md/icons/internals/Icon.styles.ts +31 -2
  127. package/src/md/icons/internals/Icon.ts +14 -0
  128. package/src/md/list/internals/ListItem.styles.ts +6 -2
  129. package/src/md/list/internals/ListItem.ts +16 -21
  130. package/src/md/ripple/internals/ripple.ts +47 -13
  131. package/src/md/segmented-button/internals/SegmentedButton.ts +2 -2
  132. package/test/ui/button/UiIconButton.test.ts +1 -8
  133. package/build/src/md/icon-button/internals/IconButton.styles.d.ts.map +0 -1
  134. package/build/src/md/icon-button/internals/IconButton.styles.js +0 -614
  135. package/build/src/md/icon-button/internals/IconButton.styles.js.map +0 -1
  136. package/demo/md/buttons/icon-button.ts +0 -184
  137. package/src/md/icon-button/internals/IconButton.styles.ts +0 -614
  138. /package/demo/md/buttons/{button.ts → index.ts} +0 -0
  139. /package/demo/md/{inputs/checkbox.ts → checkbox/index.ts} +0 -0
  140. /package/demo/md/{list/dropdown-list.ts → dropdown-list/index.ts} +0 -0
  141. /package/demo/md/{buttons/segmented-buttons.ts → segmented-button/index.ts} +0 -0
@@ -1,614 +0,0 @@
1
- import { css } from 'lit';
2
- export default css `
3
- :host {
4
- display: inline-flex;
5
- vertical-align: middle;
6
- box-sizing: content-box;
7
- writing-mode: horizontal-tb !important;
8
- text-rendering: auto;
9
- cursor: default;
10
- user-select: none;
11
- height: 48px;
12
- width: 48px;
13
- border-radius: var(--md-sys-shape-corner-extra-small);
14
- align-items: center;
15
- justify-content: center;
16
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
17
- }
18
-
19
- .content ::slotted(*) {
20
- width: 24px !important;
21
- height: 24px !important;
22
- }
23
-
24
- .surface {
25
- height: 40px;
26
- width: 40px;
27
- position: relative;
28
- border-radius: var(--md-sys-shape-corner-full);
29
- display: flex;
30
- justify-content: center;
31
- align-items: center;
32
- cursor: pointer;
33
- }
34
-
35
- .container,
36
- .state {
37
- position: absolute;
38
- top: 0;
39
- left: 0;
40
- right: 0;
41
- bottom: 0;
42
- border-radius: var(--md-sys-shape-corner-full);
43
- }
44
-
45
- .container {
46
- z-index: 1;
47
- transition: background-color 230ms cubic-bezier(0.4, 0, 0.2, 1);
48
- pointer-events: none;
49
- }
50
-
51
- .state {
52
- z-index: 2;
53
- opacity: 0;
54
- transition: opacity 260ms cubic-bezier(0.4, 0, 0.2, 1);
55
- pointer-events: none;
56
- }
57
-
58
- .content {
59
- z-index: 3;
60
- display: flex;
61
- align-items: center;
62
- justify-content: center;
63
- }
64
-
65
- .ripple {
66
- border-radius: inherit;
67
- z-index: 3;
68
- }
69
-
70
- :host([disabled]) {
71
- pointer-events: none;
72
- }
73
-
74
- /* General states */
75
-
76
- :host .container {
77
- background-color: var(--md-sys-color-primary);
78
- }
79
-
80
- :host([toggle]) .container {
81
- background-color: var(--md-sys-color-surface-variant);
82
- }
83
-
84
- :host([toggle][aria-pressed='true']) .container,
85
- :host([toggle][type='filled'][active]) .container {
86
- background-color: var(--md-sys-color-primary);
87
- }
88
-
89
- :host .content ::slotted(*) {
90
- color: var(--md-sys-color-on-primary);
91
- fill: var(--md-sys-color-on-primary);
92
- }
93
-
94
- :host([toggle]) .content ::slotted(*) {
95
- color: var(--md-sys-color-primary);
96
- fill: var(--md-sys-color-primary);
97
- }
98
-
99
- :host([toggle][active]) .content ::slotted(*),
100
- :host([toggle][type='filled'][active]) .content ::slotted(*) {
101
- color: var(--md-sys-color-on-primary);
102
- fill: var(--md-sys-color-on-primary);
103
- }
104
-
105
- /* Filled states */
106
-
107
- :host([type='filled']) {
108
- --md-ripple-hover-state-layer-color: var(--md-sys-color-on-primary);
109
- --md-ripple-focus-state-layer-color: var(--md-sys-color-on-primary);
110
- --md-ripple-pressed-state-layer-color: var(--md-sys-color-on-primary);
111
- }
112
-
113
- :host([type='filled'][disabled]) .container {
114
- background-color: var(--md-sys-color-on-surface) !important;
115
- opacity: 0.12;
116
- }
117
-
118
- :host([type='filled'][disabled]) .content ::slotted(*) {
119
- fill: var(--md-sys-color-on-surface) !important;
120
- color: var(--md-sys-color-on-surface) !important;
121
- opacity: 0.38;
122
- }
123
-
124
- :host([type='filled']:hover) .state {
125
- background-color: var(--md-sys-color-on-primary);
126
- opacity: var(--md-sys-state-hover-state-layer-opacity);
127
- }
128
-
129
- :host([type='filled']:hover) .content ::slotted(*) {
130
- fill: var(--md-sys-color-on-primary);
131
- color: var(--md-sys-color-on-primary);
132
- }
133
-
134
- :host([toggle][type='filled']:hover) .state {
135
- background-color: var(--md-sys-color-primary);
136
- opacity: var(--md-sys-state-hover-state-layer-opacity);
137
- }
138
-
139
- :host([toggle][type='filled']:hover) .content ::slotted(*) {
140
- fill: var(--md-sys-color-primary);
141
- color: var(--md-sys-color-primary);
142
- }
143
-
144
- :host([toggle][type='filled'][active]:hover) .state {
145
- background-color: var(--md-sys-color-on-primary);
146
- opacity: var(--md-sys-state-hover-state-layer-opacity);
147
- }
148
-
149
- :host([toggle][type='filled'][active]:hover) .content ::slotted(*) {
150
- fill: var(--md-sys-color-on-primary);
151
- color: var(--md-sys-color-on-primary);
152
- }
153
-
154
- :host([type='filled']:focus) .state {
155
- background-color: var(--md-sys-color-on-primary);
156
- opacity: var(--md-sys-state-focus-state-layer-opacity);
157
- }
158
-
159
- :host([type='filled']:focus) .content ::slotted(*) {
160
- fill: var(--md-sys-color-on-primary);
161
- color: var(--md-sys-color-on-primary);
162
- }
163
-
164
- :host([toggle][type='filled']:focus) .state {
165
- background-color: var(--md-sys-color-primary);
166
- opacity: var(--md-sys-state-focus-state-layer-opacity);
167
- }
168
-
169
- :host([toggle][type='filled']:focus) .content ::slotted(*) {
170
- fill: var(--md-sys-color-primary);
171
- color: var(--md-sys-color-primary);
172
- }
173
-
174
- :host([toggle][type='filled'][active]:focus) .state {
175
- background-color: var(--md-sys-color-on-primary);
176
- opacity: var(--md-sys-state-focus-state-layer-opacity);
177
- }
178
-
179
- :host([toggle][type='filled'][active]:focus) .content ::slotted(*) {
180
- fill: var(--md-sys-color-on-primary);
181
- color: var(--md-sys-color-on-primary);
182
- }
183
-
184
- :host([type='filled']:active) .state,
185
- :host([type='filled']) .pressed .state {
186
- background-color: var(--md-sys-color-on-primary);
187
- opacity: var(--md-sys-state-pressed-state-layer-opacity);
188
- }
189
-
190
- :host([type='filled']:active) .content ::slotted(*),
191
- :host([type='filled']) .pressed .content ::slotted(*) {
192
- fill: var(--md-sys-color-on-primary);
193
- color: var(--md-sys-color-on-primary);
194
- }
195
-
196
- :host([toggle][type='filled']:active) .state,
197
- :host([toggle][type='filled']) .pressed .state {
198
- background-color: var(--md-sys-color-primary);
199
- opacity: var(--md-sys-state-pressed-state-layer-opacity);
200
- }
201
-
202
- :host([toggle][type='filled']:active) .content ::slotted(*),
203
- :host([toggle][type='filled']:active) .pressed .content ::slotted(*) {
204
- fill: var(--md-sys-color-primary);
205
- color: var(--md-sys-color-primary);
206
- }
207
-
208
- :host([toggle][type='filled'][active]:active) .state,
209
- :host([toggle][type='filled'][active]) .pressed .state {
210
- background-color: var(--md-sys-color-on-primary);
211
- opacity: var(--md-sys-state-pressed-state-layer-opacity);
212
- }
213
-
214
- :host([toggle][type='filled'][active]:active) .content ::slotted(*),
215
- :host([toggle][type='filled'][active]:active) .pressed .content ::slotted(*) {
216
- fill: var(--md-sys-color-on-primary);
217
- color: var(--md-sys-color-on-primary);
218
- }
219
-
220
- /* Tonal states */
221
-
222
- :host([type='tonal']) {
223
- --md-ripple-hover-state-layer-color: var(--md-sys-color-on-secondary-container);
224
- --md-ripple-focus-state-layer-color: var(--md-sys-color-on-secondary-container);
225
- --md-ripple-pressed-state-layer-color: var(--md-sys-color-on-secondary-container);
226
- }
227
-
228
- :host([type='tonal']) .container {
229
- background-color: var(--md-sys-color-secondary-container);
230
- }
231
-
232
- :host([type='tonal'][toggle]) .container {
233
- background-color: var(--md-sys-color-surface-variant);
234
- }
235
-
236
- :host([type='tonal'][toggle]) .content ::slotted(*) {
237
- color: var(--md-sys-color-on-surface-variant);
238
- fill: var(--md-sys-color-on-surface-variant);
239
- }
240
-
241
- :host([toggle][type='tonal'][active]) .container {
242
- background-color: var(--md-sys-color-secondary-container);
243
- }
244
-
245
- :host([toggle][type='tonal'][active]) .content ::slotted(*) {
246
- color: var(--md-sys-color-on-secondary-container);
247
- fill: var(--md-sys-color-on-secondary-container);
248
- }
249
-
250
- :host([type='tonal']) .content ::slotted(*) {
251
- color: var(--md-sys-color-on-secondary-container);
252
- fill: var(--md-sys-color-on-secondary-container);
253
- }
254
-
255
- :host([type='tonal'][toggle]) .content ::slotted(*) {
256
- color: var(--md-sys-color-on-surface-variant);
257
- fill: var(--md-sys-color-on-surface-variant);
258
- }
259
-
260
- :host([type='tonal'][disabled]) .container {
261
- background-color: var(--md-sys-color-on-surface);
262
- opacity: 0.12;
263
- }
264
-
265
- :host([type='tonal'][disabled]) .content ::slotted(*) {
266
- fill: var(--md-sys-color-on-surface);
267
- color: var(--md-sys-color-on-surface);
268
- opacity: 0.38;
269
- }
270
-
271
- :host([type='tonal']:hover) .state {
272
- background-color: var(--md-sys-color-on-secondary-container);
273
- opacity: var(--md-sys-state-hover-state-layer-opacity);
274
- }
275
-
276
- :host([type='tonal']:hover) .content ::slotted(*) {
277
- fill: var(--md-sys-color-on-secondary-container);
278
- color: var(--md-sys-color-on-secondary-container);
279
- }
280
-
281
- :host([toggle][type='tonal']:hover) .state {
282
- background-color: var(--md-sys-color-on-surface-variant);
283
- opacity: var(--md-sys-state-hover-state-layer-opacity);
284
- }
285
-
286
- :host([toggle][type='tonal']:hover) .content ::slotted(*) {
287
- fill: var(--md-sys-color-on-surface-variant);
288
- color: var(--md-sys-color-on-surface-variant);
289
- }
290
-
291
- :host([toggle][type='tonal'][active]:hover) .state {
292
- background-color: var(--md-sys-color-on-secondary-container);
293
- opacity: var(--md-sys-state-hover-state-layer-opacity);
294
- }
295
-
296
- :host([toggle][type='tonal'][active]:hover) .content ::slotted(*) {
297
- fill: var(--md-sys-color-on-secondary-container);
298
- color: var(--md-sys-color-on-secondary-container);
299
- }
300
-
301
- :host([type='tonal']:focus) .state {
302
- background-color: var(--md-sys-color-on-secondary-container);
303
- opacity: var(--md-sys-state-focus-state-layer-opacity);
304
- }
305
-
306
- :host([type='tonal']:focus) .content ::slotted(*) {
307
- fill: var(--md-sys-color-on-secondary-container);
308
- color: var(--md-sys-color-on-secondary-container);
309
- }
310
-
311
- :host([toggle][type='tonal']:focus) .state {
312
- background-color: var(--md-sys-color-on-surface-variant);
313
- opacity: var(--md-sys-state-focus-state-layer-opacity);
314
- }
315
-
316
- :host([toggle][type='tonal']:focus) .content ::slotted(*) {
317
- fill: var(--md-sys-color-on-surface-variant);
318
- color: var(--md-sys-color-on-surface-variant);
319
- }
320
-
321
- :host([toggle][type='tonal'][active]:focus) .state {
322
- background-color: var(--md-sys-color-on-secondary-container);
323
- opacity: var(--md-sys-state-focus-state-layer-opacity);
324
- }
325
-
326
- :host([toggle][type='tonal'][active]:focus) .content ::slotted(*) {
327
- fill: var(--md-sys-color-on-secondary-container);
328
- color: var(--md-sys-color-on-secondary-container);
329
- }
330
-
331
- :host([type='tonal']:active) .state,
332
- :host([type='tonal']) .pressed .state {
333
- background-color: var(--md-sys-color-on-secondary-container);
334
- opacity: var(--md-sys-state-pressed-state-layer-opacity);
335
- }
336
-
337
- :host([type='tonal']:active) .content ::slotted(*),
338
- :host([type='tonal']) .pressed .content ::slotted(*) {
339
- fill: var(--md-sys-color-on-secondary-container);
340
- color: var(--md-sys-color-on-secondary-container);
341
- }
342
-
343
- :host([toggle][type='tonal']:active) .state,
344
- :host([toggle][type='tonal']) .pressed .state {
345
- background-color: var(--md-sys-color-on-surface-variant);
346
- opacity: var(--md-sys-state-pressed-state-layer-opacity);
347
- }
348
-
349
- :host([toggle][type='tonal']:active) .content ::slotted(*),
350
- :host([toggle][type='tonal']) .pressed .content ::slotted(*) {
351
- fill: var(--md-sys-color-on-surface-variant);
352
- color: var(--md-sys-color-on-surface-variant);
353
- }
354
-
355
- /* Outlined states */
356
-
357
- :host([type='outlined']) {
358
- --md-ripple-hover-state-layer-color: var(--md-sys-color-primary);
359
- --md-ripple-focus-state-layer-color: var(--md-sys-color-primary);
360
- --md-ripple-pressed-state-layer-color: var(--md-sys-color-primary);
361
- }
362
-
363
- :host([type='outlined']) .container {
364
- border: 1px var(--md-sys-color-outline) solid;
365
- background-color: transparent;
366
- }
367
-
368
- :host([toggle][type='outlined'][active]) .container {
369
- background-color: var(--md-sys-color-inverse-surface);
370
- }
371
-
372
- :host([type='outlined']) .content ::slotted(*) {
373
- color: var(--md-sys-color-on-surface-variant);
374
- fill: var(--md-sys-color-on-surface-variant);
375
- }
376
-
377
- :host([toggle][type='outlined'][active]) .content ::slotted(*) {
378
- color: var(--md-sys-color-inverse-on-surface);
379
- fill: var(--md-sys-color-inverse-on-surface);
380
- }
381
-
382
- :host([type='outlined'][disabled]) .container {
383
- background-color: var(--md-sys-color-on-surface);
384
- opacity: 0.12;
385
- }
386
-
387
- :host([type='outlined'][disabled]) .content ::slotted(*) {
388
- fill: var(--md-sys-color-on-surface);
389
- color: var(--md-sys-color-on-surface);
390
- opacity: 0.38;
391
- }
392
-
393
- :host([type='outlined']:hover) .state {
394
- background-color: var(--md-sys-color-on-surface-variant);
395
- opacity: var(--md-sys-state-hover-state-layer-opacity);
396
- }
397
-
398
- :host([type='outlined']:hover) .content ::slotted(*) {
399
- fill: var(--md-sys-color-on-surface-variant);
400
- color: var(--md-sys-color-on-surface-variant);
401
- }
402
-
403
- :host([toggle][type='outlined']:hover) .state {
404
- background-color: var(--md-sys-color-on-surface-variant);
405
- opacity: var(--md-sys-state-hover-state-layer-opacity);
406
- }
407
-
408
- :host([toggle][type='outlined']:hover) .content ::slotted(*) {
409
- fill: var(--md-sys-color-on-surface-variant);
410
- color: var(--md-sys-color-on-surface-variant);
411
- }
412
-
413
- :host([toggle][type='outlined'][active]:hover) .state {
414
- background-color: var(--md-sys-color-inverse-on-surface);
415
- opacity: var(--md-sys-state-hover-state-layer-opacity);
416
- }
417
-
418
- :host([toggle][type='outlined'][active]:hover) .content ::slotted(*) {
419
- fill: var(--md-sys-color-inverse-on-surface);
420
- color: var(--md-sys-color-inverse-on-surface);
421
- }
422
-
423
- :host([type='outlined']:focus) .state {
424
- background-color: var(--md-sys-color-on-surface-variant);
425
- opacity: var(--md-sys-state-focus-state-layer-opacity);
426
- }
427
-
428
- :host([type='outlined']:focus) .content ::slotted(*) {
429
- fill: var(--md-sys-color-on-surface-variant);
430
- color: var(--md-sys-color-on-surface-variant);
431
- }
432
-
433
- :host([toggle][type='outlined']:focus) .state {
434
- background-color: var(--md-sys-color-on-surface-variant);
435
- opacity: var(--md-sys-state-focus-state-layer-opacity);
436
- }
437
-
438
- :host([toggle][type='outlined']:focus) .content ::slotted(*) {
439
- fill: var(--md-sys-color-on-surface-variant);
440
- color: var(--md-sys-color-on-surface-variant);
441
- }
442
-
443
- :host([toggle][type='outlined'][active]:focus) .state {
444
- background-color: var(--md-sys-color-inverse-on-surface);
445
- opacity: var(--md-sys-state-focus-state-layer-opacity);
446
- }
447
-
448
- :host([toggle][type='outlined'][active]:focus) .content ::slotted(*) {
449
- fill: var(--md-sys-color-inverse-on-surface);
450
- color: var(--md-sys-color-inverse-on-surface);
451
- }
452
-
453
- :host([type='outlined']:active) .state,
454
- :host([type='outlined']) .pressed .state {
455
- background-color: var(--md-sys-color-on-surface);
456
- opacity: var(--md-sys-state-pressed-state-layer-opacity);
457
- }
458
-
459
- :host([type='outlined']:active) .content ::slotted(*),
460
- :host([type='outlined']) .pressed .content ::slotted(*) {
461
- fill: var(--md-sys-color-on-surface);
462
- color: var(--md-sys-color-on-surface);
463
- }
464
-
465
- :host([toggle][type='outlined']:active) .state,
466
- :host([toggle][type='outlined']) .pressed .state {
467
- background-color: var(--md-sys-color-on-surface);
468
- opacity: var(--md-sys-state-pressed-state-layer-opacity);
469
- }
470
-
471
- :host([toggle][type='outlined']:active) .content ::slotted(*),
472
- :host([toggle][type='outlined']) .pressed .content ::slotted(*) {
473
- fill: var(--md-sys-color-on-surface);
474
- color: var(--md-sys-color-on-surface);
475
- }
476
-
477
- :host([toggle][type='outlined'][active]:active) .state,
478
- :host([toggle][type='outlined'][active]) .pressed .state {
479
- background-color: var(--md-sys-color-inverse-on-surface);
480
- opacity: var(--md-sys-state-pressed-state-layer-opacity);
481
- }
482
-
483
- :host([toggle][type='outlined'][active]:active) .content ::slotted(*),
484
- :host([toggle][type='outlined'][active]) .pressed .content ::slotted(*) {
485
- fill: var(--md-sys-color-inverse-on-surface);
486
- color: var(--md-sys-color-inverse-on-surface);
487
- }
488
-
489
- /* Standard states */
490
-
491
- :host([type='text']) {
492
- --md-ripple-hover-state-layer-color: var(--md-sys-color-primary);
493
- --md-ripple-focus-state-layer-color: var(--md-sys-color-primary);
494
- --md-ripple-pressed-state-layer-color: var(--md-sys-color-primary);
495
- }
496
-
497
- :host([type='standard']) .container,
498
- :host([type='standard'][toggle]) .container {
499
- background-color: transparent;
500
- }
501
-
502
- :host([type='standard']) .content ::slotted(*) {
503
- color: var(--md-sys-color-on-surface-variant);
504
- fill: var(--md-sys-color-on-surface-variant);
505
- }
506
-
507
- :host([toggle][type='standard'][active]) .content ::slotted(*) {
508
- color: var(--md-sys-color-primary);
509
- fill: var(--md-sys-color-primary);
510
- }
511
-
512
- :host([type='standard'][disabled]) .content ::slotted(*) {
513
- fill: var(--md-sys-color-on-surface);
514
- color: var(--md-sys-color-on-surface);
515
- opacity: 0.38;
516
- }
517
-
518
- :host([type='standard']:hover) .state {
519
- background-color: var(--md-sys-color-on-surface-variant);
520
- opacity: var(--md-sys-state-hover-state-layer-opacity);
521
- }
522
-
523
- :host([type='standard']:hover) .content ::slotted(*) {
524
- fill: var(--md-sys-color-on-surface-variant);
525
- color: var(--md-sys-color-on-surface-variant);
526
- }
527
-
528
- :host([toggle][type='standard']:hover) .state {
529
- background-color: var(--md-sys-color-on-surface-variant);
530
- opacity: var(--md-sys-state-hover-state-layer-opacity);
531
- }
532
-
533
- :host([toggle][type='standard']:hover) .content ::slotted(*) {
534
- fill: var(--md-sys-color-on-surface-variant);
535
- color: var(--md-sys-color-on-surface-variant);
536
- }
537
-
538
- :host([toggle][type='standard'][active]:hover) .state {
539
- background-color: var(--md-sys-color-primary);
540
- opacity: var(--md-sys-state-hover-state-layer-opacity);
541
- }
542
-
543
- :host([toggle][type='standard'][active]:hover) .content ::slotted(*) {
544
- fill: var(--md-sys-color-primary);
545
- color: var(--md-sys-color-primary);
546
- }
547
-
548
- :host([type='standard']:focus) .state {
549
- background-color: var(--md-sys-color-on-surface-variant);
550
- opacity: var(--md-sys-state-focus-state-layer-opacity);
551
- }
552
-
553
- :host([type='standard']:focus) .content ::slotted(*) {
554
- fill: var(--md-sys-color-on-surface-variant);
555
- color: var(--md-sys-color-on-surface-variant);
556
- }
557
-
558
- :host([toggle][type='standard']:focus) .state {
559
- background-color: var(--md-sys-color-on-surface-variant);
560
- opacity: var(--md-sys-state-focus-state-layer-opacity);
561
- }
562
-
563
- :host([toggle][type='standard']:focus) .content ::slotted(*) {
564
- fill: var(--md-sys-color-on-surface-variant);
565
- color: var(--md-sys-color-on-surface-variant);
566
- }
567
-
568
- :host([toggle][type='standard'][active]:focus) .state {
569
- background-color: var(--md-sys-color-primary);
570
- opacity: var(--md-sys-state-focus-state-layer-opacity);
571
- }
572
-
573
- :host([toggle][type='standard'][active]:focus) .content ::slotted(*) {
574
- fill: var(--md-sys-color-primary);
575
- color: var(--md-sys-color-primary);
576
- }
577
-
578
- :host([type='standard']:active) .state,
579
- :host([type='standard']) .pressed .state {
580
- background-color: var(--md-sys-color-on-surface-variant);
581
- opacity: var(--md-sys-state-pressed-state-layer-opacity);
582
- }
583
-
584
- :host([type='standard']:active) .content ::slotted(*),
585
- :host([type='standard']) .pressed .content ::slotted(*) {
586
- fill: var(--md-sys-color-on-surface-variant);
587
- color: var(--md-sys-color-on-surface-variant);
588
- }
589
-
590
- :host([toggle][type='standard']:active) .state,
591
- :host([toggle][type='standard']) .pressed .state {
592
- background-color: var(--md-sys-color-on-surface-variant);
593
- opacity: var(--md-sys-state-pressed-state-layer-opacity);
594
- }
595
-
596
- :host([toggle][type='standard']:active) .content ::slotted(*),
597
- :host([toggle][type='standard']) .pressed .content ::slotted(*) {
598
- fill: var(--md-sys-color-on-surface-variant);
599
- color: var(--md-sys-color-on-surface-variant);
600
- }
601
-
602
- :host([toggle][type='standard'][active]:active) .state,
603
- :host([toggle][type='standard'][active]) .pressed .state {
604
- background-color: var(--md-sys-color-primary);
605
- opacity: var(--md-sys-state-pressed-state-layer-opacity);
606
- }
607
-
608
- :host([toggle][type='standard'][active]:active) .content ::slotted(*),
609
- :host([toggle][type='standard'][active]) .pressed .content ::slotted(*) {
610
- fill: var(--md-sys-color-primary);
611
- color: var(--md-sys-color-primary);
612
- }
613
- `;
614
- //# sourceMappingURL=IconButton.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IconButton.styles.js","sourceRoot":"","sources":["../../../../../src/md/icon-button/internals/IconButton.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmmBjB,CAAA","sourcesContent":["import { css } from 'lit'\n\nexport default css`\n :host {\n display: inline-flex;\n vertical-align: middle;\n box-sizing: content-box;\n writing-mode: horizontal-tb !important;\n text-rendering: auto;\n cursor: default;\n user-select: none;\n height: 48px;\n width: 48px;\n border-radius: var(--md-sys-shape-corner-extra-small);\n align-items: center;\n justify-content: center;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n\n .content ::slotted(*) {\n width: 24px !important;\n height: 24px !important;\n }\n\n .surface {\n height: 40px;\n width: 40px;\n position: relative;\n border-radius: var(--md-sys-shape-corner-full);\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n }\n\n .container,\n .state {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border-radius: var(--md-sys-shape-corner-full);\n }\n\n .container {\n z-index: 1;\n transition: background-color 230ms cubic-bezier(0.4, 0, 0.2, 1);\n pointer-events: none;\n }\n\n .state {\n z-index: 2;\n opacity: 0;\n transition: opacity 260ms cubic-bezier(0.4, 0, 0.2, 1);\n pointer-events: none;\n }\n\n .content {\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .ripple {\n border-radius: inherit;\n z-index: 3;\n }\n\n :host([disabled]) {\n pointer-events: none;\n }\n\n /* General states */\n\n :host .container {\n background-color: var(--md-sys-color-primary);\n }\n\n :host([toggle]) .container {\n background-color: var(--md-sys-color-surface-variant);\n }\n\n :host([toggle][aria-pressed='true']) .container,\n :host([toggle][type='filled'][active]) .container {\n background-color: var(--md-sys-color-primary);\n }\n\n :host .content ::slotted(*) {\n color: var(--md-sys-color-on-primary);\n fill: var(--md-sys-color-on-primary);\n }\n\n :host([toggle]) .content ::slotted(*) {\n color: var(--md-sys-color-primary);\n fill: var(--md-sys-color-primary);\n }\n\n :host([toggle][active]) .content ::slotted(*),\n :host([toggle][type='filled'][active]) .content ::slotted(*) {\n color: var(--md-sys-color-on-primary);\n fill: var(--md-sys-color-on-primary);\n }\n\n /* Filled states */\n\n :host([type='filled']) {\n --md-ripple-hover-state-layer-color: var(--md-sys-color-on-primary);\n --md-ripple-focus-state-layer-color: var(--md-sys-color-on-primary);\n --md-ripple-pressed-state-layer-color: var(--md-sys-color-on-primary);\n }\n\n :host([type='filled'][disabled]) .container {\n background-color: var(--md-sys-color-on-surface) !important;\n opacity: 0.12;\n }\n\n :host([type='filled'][disabled]) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface) !important;\n color: var(--md-sys-color-on-surface) !important;\n opacity: 0.38;\n }\n\n :host([type='filled']:hover) .state {\n background-color: var(--md-sys-color-on-primary);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([type='filled']:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-on-primary);\n color: var(--md-sys-color-on-primary);\n }\n\n :host([toggle][type='filled']:hover) .state {\n background-color: var(--md-sys-color-primary);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([toggle][type='filled']:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-primary);\n color: var(--md-sys-color-primary);\n }\n\n :host([toggle][type='filled'][active]:hover) .state {\n background-color: var(--md-sys-color-on-primary);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([toggle][type='filled'][active]:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-on-primary);\n color: var(--md-sys-color-on-primary);\n }\n\n :host([type='filled']:focus) .state {\n background-color: var(--md-sys-color-on-primary);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([type='filled']:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-on-primary);\n color: var(--md-sys-color-on-primary);\n }\n\n :host([toggle][type='filled']:focus) .state {\n background-color: var(--md-sys-color-primary);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([toggle][type='filled']:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-primary);\n color: var(--md-sys-color-primary);\n }\n\n :host([toggle][type='filled'][active]:focus) .state {\n background-color: var(--md-sys-color-on-primary);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([toggle][type='filled'][active]:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-on-primary);\n color: var(--md-sys-color-on-primary);\n }\n\n :host([type='filled']:active) .state,\n :host([type='filled']) .pressed .state {\n background-color: var(--md-sys-color-on-primary);\n opacity: var(--md-sys-state-pressed-state-layer-opacity);\n }\n\n :host([type='filled']:active) .content ::slotted(*),\n :host([type='filled']) .pressed .content ::slotted(*) {\n fill: var(--md-sys-color-on-primary);\n color: var(--md-sys-color-on-primary);\n }\n\n :host([toggle][type='filled']:active) .state,\n :host([toggle][type='filled']) .pressed .state {\n background-color: var(--md-sys-color-primary);\n opacity: var(--md-sys-state-pressed-state-layer-opacity);\n }\n\n :host([toggle][type='filled']:active) .content ::slotted(*),\n :host([toggle][type='filled']:active) .pressed .content ::slotted(*) {\n fill: var(--md-sys-color-primary);\n color: var(--md-sys-color-primary);\n }\n\n :host([toggle][type='filled'][active]:active) .state,\n :host([toggle][type='filled'][active]) .pressed .state {\n background-color: var(--md-sys-color-on-primary);\n opacity: var(--md-sys-state-pressed-state-layer-opacity);\n }\n\n :host([toggle][type='filled'][active]:active) .content ::slotted(*),\n :host([toggle][type='filled'][active]:active) .pressed .content ::slotted(*) {\n fill: var(--md-sys-color-on-primary);\n color: var(--md-sys-color-on-primary);\n }\n\n /* Tonal states */\n\n :host([type='tonal']) {\n --md-ripple-hover-state-layer-color: var(--md-sys-color-on-secondary-container);\n --md-ripple-focus-state-layer-color: var(--md-sys-color-on-secondary-container);\n --md-ripple-pressed-state-layer-color: var(--md-sys-color-on-secondary-container);\n }\n\n :host([type='tonal']) .container {\n background-color: var(--md-sys-color-secondary-container);\n }\n\n :host([type='tonal'][toggle]) .container {\n background-color: var(--md-sys-color-surface-variant);\n }\n\n :host([type='tonal'][toggle]) .content ::slotted(*) {\n color: var(--md-sys-color-on-surface-variant);\n fill: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='tonal'][active]) .container {\n background-color: var(--md-sys-color-secondary-container);\n }\n\n :host([toggle][type='tonal'][active]) .content ::slotted(*) {\n color: var(--md-sys-color-on-secondary-container);\n fill: var(--md-sys-color-on-secondary-container);\n }\n\n :host([type='tonal']) .content ::slotted(*) {\n color: var(--md-sys-color-on-secondary-container);\n fill: var(--md-sys-color-on-secondary-container);\n }\n\n :host([type='tonal'][toggle]) .content ::slotted(*) {\n color: var(--md-sys-color-on-surface-variant);\n fill: var(--md-sys-color-on-surface-variant);\n }\n\n :host([type='tonal'][disabled]) .container {\n background-color: var(--md-sys-color-on-surface);\n opacity: 0.12;\n }\n\n :host([type='tonal'][disabled]) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface);\n color: var(--md-sys-color-on-surface);\n opacity: 0.38;\n }\n\n :host([type='tonal']:hover) .state {\n background-color: var(--md-sys-color-on-secondary-container);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([type='tonal']:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-on-secondary-container);\n color: var(--md-sys-color-on-secondary-container);\n }\n\n :host([toggle][type='tonal']:hover) .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([toggle][type='tonal']:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='tonal'][active]:hover) .state {\n background-color: var(--md-sys-color-on-secondary-container);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([toggle][type='tonal'][active]:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-on-secondary-container);\n color: var(--md-sys-color-on-secondary-container);\n }\n\n :host([type='tonal']:focus) .state {\n background-color: var(--md-sys-color-on-secondary-container);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([type='tonal']:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-on-secondary-container);\n color: var(--md-sys-color-on-secondary-container);\n }\n\n :host([toggle][type='tonal']:focus) .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([toggle][type='tonal']:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='tonal'][active]:focus) .state {\n background-color: var(--md-sys-color-on-secondary-container);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([toggle][type='tonal'][active]:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-on-secondary-container);\n color: var(--md-sys-color-on-secondary-container);\n }\n\n :host([type='tonal']:active) .state,\n :host([type='tonal']) .pressed .state {\n background-color: var(--md-sys-color-on-secondary-container);\n opacity: var(--md-sys-state-pressed-state-layer-opacity);\n }\n\n :host([type='tonal']:active) .content ::slotted(*),\n :host([type='tonal']) .pressed .content ::slotted(*) {\n fill: var(--md-sys-color-on-secondary-container);\n color: var(--md-sys-color-on-secondary-container);\n }\n\n :host([toggle][type='tonal']:active) .state,\n :host([toggle][type='tonal']) .pressed .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-pressed-state-layer-opacity);\n }\n\n :host([toggle][type='tonal']:active) .content ::slotted(*),\n :host([toggle][type='tonal']) .pressed .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n /* Outlined states */\n\n :host([type='outlined']) {\n --md-ripple-hover-state-layer-color: var(--md-sys-color-primary);\n --md-ripple-focus-state-layer-color: var(--md-sys-color-primary);\n --md-ripple-pressed-state-layer-color: var(--md-sys-color-primary);\n }\n\n :host([type='outlined']) .container {\n border: 1px var(--md-sys-color-outline) solid;\n background-color: transparent;\n }\n\n :host([toggle][type='outlined'][active]) .container {\n background-color: var(--md-sys-color-inverse-surface);\n }\n\n :host([type='outlined']) .content ::slotted(*) {\n color: var(--md-sys-color-on-surface-variant);\n fill: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='outlined'][active]) .content ::slotted(*) {\n color: var(--md-sys-color-inverse-on-surface);\n fill: var(--md-sys-color-inverse-on-surface);\n }\n\n :host([type='outlined'][disabled]) .container {\n background-color: var(--md-sys-color-on-surface);\n opacity: 0.12;\n }\n\n :host([type='outlined'][disabled]) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface);\n color: var(--md-sys-color-on-surface);\n opacity: 0.38;\n }\n\n :host([type='outlined']:hover) .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([type='outlined']:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='outlined']:hover) .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([toggle][type='outlined']:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='outlined'][active]:hover) .state {\n background-color: var(--md-sys-color-inverse-on-surface);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([toggle][type='outlined'][active]:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-inverse-on-surface);\n color: var(--md-sys-color-inverse-on-surface);\n }\n\n :host([type='outlined']:focus) .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([type='outlined']:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='outlined']:focus) .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([toggle][type='outlined']:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='outlined'][active]:focus) .state {\n background-color: var(--md-sys-color-inverse-on-surface);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([toggle][type='outlined'][active]:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-inverse-on-surface);\n color: var(--md-sys-color-inverse-on-surface);\n }\n\n :host([type='outlined']:active) .state,\n :host([type='outlined']) .pressed .state {\n background-color: var(--md-sys-color-on-surface);\n opacity: var(--md-sys-state-pressed-state-layer-opacity);\n }\n\n :host([type='outlined']:active) .content ::slotted(*),\n :host([type='outlined']) .pressed .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface);\n color: var(--md-sys-color-on-surface);\n }\n\n :host([toggle][type='outlined']:active) .state,\n :host([toggle][type='outlined']) .pressed .state {\n background-color: var(--md-sys-color-on-surface);\n opacity: var(--md-sys-state-pressed-state-layer-opacity);\n }\n\n :host([toggle][type='outlined']:active) .content ::slotted(*),\n :host([toggle][type='outlined']) .pressed .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface);\n color: var(--md-sys-color-on-surface);\n }\n\n :host([toggle][type='outlined'][active]:active) .state,\n :host([toggle][type='outlined'][active]) .pressed .state {\n background-color: var(--md-sys-color-inverse-on-surface);\n opacity: var(--md-sys-state-pressed-state-layer-opacity);\n }\n\n :host([toggle][type='outlined'][active]:active) .content ::slotted(*),\n :host([toggle][type='outlined'][active]) .pressed .content ::slotted(*) {\n fill: var(--md-sys-color-inverse-on-surface);\n color: var(--md-sys-color-inverse-on-surface);\n }\n\n /* Standard states */\n\n :host([type='text']) {\n --md-ripple-hover-state-layer-color: var(--md-sys-color-primary);\n --md-ripple-focus-state-layer-color: var(--md-sys-color-primary);\n --md-ripple-pressed-state-layer-color: var(--md-sys-color-primary);\n }\n\n :host([type='standard']) .container,\n :host([type='standard'][toggle]) .container {\n background-color: transparent;\n }\n\n :host([type='standard']) .content ::slotted(*) {\n color: var(--md-sys-color-on-surface-variant);\n fill: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='standard'][active]) .content ::slotted(*) {\n color: var(--md-sys-color-primary);\n fill: var(--md-sys-color-primary);\n }\n\n :host([type='standard'][disabled]) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface);\n color: var(--md-sys-color-on-surface);\n opacity: 0.38;\n }\n\n :host([type='standard']:hover) .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([type='standard']:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='standard']:hover) .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([toggle][type='standard']:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='standard'][active]:hover) .state {\n background-color: var(--md-sys-color-primary);\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n :host([toggle][type='standard'][active]:hover) .content ::slotted(*) {\n fill: var(--md-sys-color-primary);\n color: var(--md-sys-color-primary);\n }\n\n :host([type='standard']:focus) .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([type='standard']:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='standard']:focus) .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([toggle][type='standard']:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='standard'][active]:focus) .state {\n background-color: var(--md-sys-color-primary);\n opacity: var(--md-sys-state-focus-state-layer-opacity);\n }\n\n :host([toggle][type='standard'][active]:focus) .content ::slotted(*) {\n fill: var(--md-sys-color-primary);\n color: var(--md-sys-color-primary);\n }\n\n :host([type='standard']:active) .state,\n :host([type='standard']) .pressed .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-pressed-state-layer-opacity);\n }\n\n :host([type='standard']:active) .content ::slotted(*),\n :host([type='standard']) .pressed .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='standard']:active) .state,\n :host([toggle][type='standard']) .pressed .state {\n background-color: var(--md-sys-color-on-surface-variant);\n opacity: var(--md-sys-state-pressed-state-layer-opacity);\n }\n\n :host([toggle][type='standard']:active) .content ::slotted(*),\n :host([toggle][type='standard']) .pressed .content ::slotted(*) {\n fill: var(--md-sys-color-on-surface-variant);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n :host([toggle][type='standard'][active]:active) .state,\n :host([toggle][type='standard'][active]) .pressed .state {\n background-color: var(--md-sys-color-primary);\n opacity: var(--md-sys-state-pressed-state-layer-opacity);\n }\n\n :host([toggle][type='standard'][active]:active) .content ::slotted(*),\n :host([toggle][type='standard'][active]) .pressed .content ::slotted(*) {\n fill: var(--md-sys-color-primary);\n color: var(--md-sys-color-primary);\n }\n`\n"]}