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