@fluentui/web-components 2.5.13 → 2.5.15
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.
- package/CHANGELOG.json +31 -1
- package/CHANGELOG.md +20 -2
- package/dist/esm/listbox-option/listbox-option.styles.js +6 -1
- package/dist/fluent-web-components.api.json +52 -32
- package/dist/web-components.js +35 -4
- package/dist/web-components.min.js +211 -210
- package/package.json +3 -3
- package/dist/tsdoc-metadata.json +0 -11
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,37 @@
|
|
|
2
2
|
"name": "@fluentui/web-components",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 01 Jun 2023 07:36:29 GMT",
|
|
6
|
+
"tag": "@fluentui/web-components_v2.5.15",
|
|
7
|
+
"version": "2.5.15",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "chhol@microsoft.com",
|
|
12
|
+
"package": "@fluentui/web-components",
|
|
13
|
+
"commit": "629df3c452dd3d0fd83472eb78ab8c98e22eb96e",
|
|
14
|
+
"comment": "fix listbox-option selected indicator position in RTL instances"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 17 Apr 2023 07:40:25 GMT",
|
|
21
|
+
"tag": "@fluentui/web-components_v2.5.14",
|
|
22
|
+
"version": "2.5.14",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "chhol@microsoft.com",
|
|
27
|
+
"package": "@fluentui/web-components",
|
|
28
|
+
"commit": "2e1cf8928df3e4f0b64b7390408374db94ae9e2c",
|
|
29
|
+
"comment": "update FAST dependencies to mitigate Safari 16.4 AdoptedStyleSheets bug"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Tue, 11 Apr 2023 07:43:45 GMT",
|
|
6
36
|
"tag": "@fluentui/web-components_v2.5.13",
|
|
7
37
|
"version": "2.5.13",
|
|
8
38
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
# Change Log - @fluentui/web-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 01 Jun 2023 07:36:29 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [2.5.15](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v2.5.15)
|
|
8
|
+
|
|
9
|
+
Thu, 01 Jun 2023 07:36:29 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v2.5.14..@fluentui/web-components_v2.5.15)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- fix listbox-option selected indicator position in RTL instances ([PR #27894](https://github.com/microsoft/fluentui/pull/27894) by chhol@microsoft.com)
|
|
15
|
+
|
|
16
|
+
## [2.5.14](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v2.5.14)
|
|
17
|
+
|
|
18
|
+
Mon, 17 Apr 2023 07:40:25 GMT
|
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v2.5.13..@fluentui/web-components_v2.5.14)
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- update FAST dependencies to mitigate Safari 16.4 AdoptedStyleSheets bug ([PR #27578](https://github.com/microsoft/fluentui/pull/27578) by chhol@microsoft.com)
|
|
24
|
+
|
|
7
25
|
## [2.5.13](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v2.5.13)
|
|
8
26
|
|
|
9
|
-
Tue, 11 Apr 2023 07:
|
|
27
|
+
Tue, 11 Apr 2023 07:43:45 GMT
|
|
10
28
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v2.5.12..@fluentui/web-components_v2.5.13)
|
|
11
29
|
|
|
12
30
|
### Patches
|
|
@@ -5,6 +5,7 @@ import { heightNumber } from '../styles/size';
|
|
|
5
5
|
import { accentFillRest, controlCornerRadius, designUnit, disabledOpacity, focusStrokeWidth, neutralFillSecondaryActive, neutralFillSecondaryHover, neutralFillSecondaryRest, neutralFillStealthActive, neutralFillStealthFocus, neutralFillStealthHover, neutralFillStealthRest, neutralForegroundRest, strokeWidth, } from '../design-tokens';
|
|
6
6
|
import { typeRampBase } from '../styles/patterns/type-ramp';
|
|
7
7
|
import { focusTreatmentBase } from '../styles/focus';
|
|
8
|
+
import { DirectionalStyleSheetBehavior } from '../styles/direction';
|
|
8
9
|
export const optionStyles = (context, definition) => css `
|
|
9
10
|
${display('inline-flex')} :host {
|
|
10
11
|
position: relative;
|
|
@@ -103,7 +104,11 @@ export const optionStyles = (context, definition) => css `
|
|
|
103
104
|
::slotted([slot='start']) {
|
|
104
105
|
margin-inline-end: 1ch;
|
|
105
106
|
}
|
|
106
|
-
`.withBehaviors(
|
|
107
|
+
`.withBehaviors(new DirectionalStyleSheetBehavior(null, css `
|
|
108
|
+
:host::before {
|
|
109
|
+
right: calc((${focusStrokeWidth} - ${strokeWidth}) * 1px);
|
|
110
|
+
}
|
|
111
|
+
`), forcedColorsStylesheetBehavior(css `
|
|
107
112
|
:host {
|
|
108
113
|
background: ${SystemColors.ButtonFace};
|
|
109
114
|
border-color: ${SystemColors.ButtonFace};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.
|
|
5
|
-
"schemaVersion":
|
|
4
|
+
"toolVersion": "7.22.2",
|
|
5
|
+
"schemaVersion": 1005,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
8
8
|
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
|
|
@@ -156,7 +156,8 @@
|
|
|
156
156
|
"@betaDocumentation": true,
|
|
157
157
|
"@internalRemarks": true,
|
|
158
158
|
"@preapproved": true
|
|
159
|
-
}
|
|
159
|
+
},
|
|
160
|
+
"reportUnsupportedHtmlElements": false
|
|
160
161
|
}
|
|
161
162
|
},
|
|
162
163
|
"kind": "Package",
|
|
@@ -3952,7 +3953,7 @@
|
|
|
3952
3953
|
],
|
|
3953
3954
|
"extendsTokenRange": {
|
|
3954
3955
|
"startIndex": 1,
|
|
3955
|
-
"endIndex":
|
|
3956
|
+
"endIndex": 2
|
|
3956
3957
|
},
|
|
3957
3958
|
"implementsTokenRanges": []
|
|
3958
3959
|
},
|
|
@@ -4107,14 +4108,16 @@
|
|
|
4107
4108
|
"parameterTypeTokenRange": {
|
|
4108
4109
|
"startIndex": 1,
|
|
4109
4110
|
"endIndex": 2
|
|
4110
|
-
}
|
|
4111
|
+
},
|
|
4112
|
+
"isOptional": false
|
|
4111
4113
|
},
|
|
4112
4114
|
{
|
|
4113
4115
|
"parameterName": "reference",
|
|
4114
4116
|
"parameterTypeTokenRange": {
|
|
4115
4117
|
"startIndex": 3,
|
|
4116
4118
|
"endIndex": 4
|
|
4117
|
-
}
|
|
4119
|
+
},
|
|
4120
|
+
"isOptional": true
|
|
4118
4121
|
}
|
|
4119
4122
|
],
|
|
4120
4123
|
"name": "evaluate"
|
|
@@ -6159,7 +6162,7 @@
|
|
|
6159
6162
|
],
|
|
6160
6163
|
"extendsTokenRange": {
|
|
6161
6164
|
"startIndex": 1,
|
|
6162
|
-
"endIndex":
|
|
6165
|
+
"endIndex": 2
|
|
6163
6166
|
},
|
|
6164
6167
|
"implementsTokenRanges": []
|
|
6165
6168
|
},
|
|
@@ -6342,14 +6345,16 @@
|
|
|
6342
6345
|
"parameterTypeTokenRange": {
|
|
6343
6346
|
"startIndex": 1,
|
|
6344
6347
|
"endIndex": 3
|
|
6345
|
-
}
|
|
6348
|
+
},
|
|
6349
|
+
"isOptional": false
|
|
6346
6350
|
},
|
|
6347
6351
|
{
|
|
6348
6352
|
"parameterName": "rtl",
|
|
6349
6353
|
"parameterTypeTokenRange": {
|
|
6350
6354
|
"startIndex": 4,
|
|
6351
6355
|
"endIndex": 6
|
|
6352
|
-
}
|
|
6356
|
+
},
|
|
6357
|
+
"isOptional": false
|
|
6353
6358
|
}
|
|
6354
6359
|
]
|
|
6355
6360
|
}
|
|
@@ -6357,7 +6362,7 @@
|
|
|
6357
6362
|
"implementsTokenRanges": [
|
|
6358
6363
|
{
|
|
6359
6364
|
"startIndex": 1,
|
|
6360
|
-
"endIndex":
|
|
6365
|
+
"endIndex": 2
|
|
6361
6366
|
}
|
|
6362
6367
|
]
|
|
6363
6368
|
},
|
|
@@ -6556,21 +6561,24 @@
|
|
|
6556
6561
|
"parameterTypeTokenRange": {
|
|
6557
6562
|
"startIndex": 1,
|
|
6558
6563
|
"endIndex": 2
|
|
6559
|
-
}
|
|
6564
|
+
},
|
|
6565
|
+
"isOptional": false
|
|
6560
6566
|
},
|
|
6561
6567
|
{
|
|
6562
6568
|
"parameterName": "size",
|
|
6563
6569
|
"parameterTypeTokenRange": {
|
|
6564
6570
|
"startIndex": 3,
|
|
6565
6571
|
"endIndex": 4
|
|
6566
|
-
}
|
|
6572
|
+
},
|
|
6573
|
+
"isOptional": false
|
|
6567
6574
|
},
|
|
6568
6575
|
{
|
|
6569
6576
|
"parameterName": "reference",
|
|
6570
6577
|
"parameterTypeTokenRange": {
|
|
6571
6578
|
"startIndex": 5,
|
|
6572
6579
|
"endIndex": 6
|
|
6573
|
-
}
|
|
6580
|
+
},
|
|
6581
|
+
"isOptional": true
|
|
6574
6582
|
}
|
|
6575
6583
|
],
|
|
6576
6584
|
"name": "evaluate"
|
|
@@ -10996,14 +11004,16 @@
|
|
|
10996
11004
|
"parameterTypeTokenRange": {
|
|
10997
11005
|
"startIndex": 1,
|
|
10998
11006
|
"endIndex": 2
|
|
10999
|
-
}
|
|
11007
|
+
},
|
|
11008
|
+
"isOptional": false
|
|
11000
11009
|
},
|
|
11001
11010
|
{
|
|
11002
11011
|
"parameterName": "reference",
|
|
11003
11012
|
"parameterTypeTokenRange": {
|
|
11004
11013
|
"startIndex": 3,
|
|
11005
11014
|
"endIndex": 4
|
|
11006
|
-
}
|
|
11015
|
+
},
|
|
11016
|
+
"isOptional": true
|
|
11007
11017
|
}
|
|
11008
11018
|
],
|
|
11009
11019
|
"name": "evaluate"
|
|
@@ -11189,7 +11199,7 @@
|
|
|
11189
11199
|
"members": [],
|
|
11190
11200
|
"extendsTokenRange": {
|
|
11191
11201
|
"startIndex": 1,
|
|
11192
|
-
"endIndex":
|
|
11202
|
+
"endIndex": 2
|
|
11193
11203
|
},
|
|
11194
11204
|
"implementsTokenRanges": []
|
|
11195
11205
|
},
|
|
@@ -11261,7 +11271,7 @@
|
|
|
11261
11271
|
"members": [],
|
|
11262
11272
|
"extendsTokenRange": {
|
|
11263
11273
|
"startIndex": 1,
|
|
11264
|
-
"endIndex":
|
|
11274
|
+
"endIndex": 2
|
|
11265
11275
|
},
|
|
11266
11276
|
"implementsTokenRanges": []
|
|
11267
11277
|
},
|
|
@@ -17173,7 +17183,7 @@
|
|
|
17173
17183
|
"typeParameterName": "T",
|
|
17174
17184
|
"constraintTokenRange": {
|
|
17175
17185
|
"startIndex": 1,
|
|
17176
|
-
"endIndex":
|
|
17186
|
+
"endIndex": 2
|
|
17177
17187
|
},
|
|
17178
17188
|
"defaultTypeTokenRange": {
|
|
17179
17189
|
"startIndex": 4,
|
|
@@ -17223,7 +17233,8 @@
|
|
|
17223
17233
|
"parameterTypeTokenRange": {
|
|
17224
17234
|
"startIndex": 1,
|
|
17225
17235
|
"endIndex": 2
|
|
17226
|
-
}
|
|
17236
|
+
},
|
|
17237
|
+
"isOptional": false
|
|
17227
17238
|
}
|
|
17228
17239
|
],
|
|
17229
17240
|
"name": "closestIndexOf"
|
|
@@ -17292,28 +17303,32 @@
|
|
|
17292
17303
|
"parameterTypeTokenRange": {
|
|
17293
17304
|
"startIndex": 1,
|
|
17294
17305
|
"endIndex": 2
|
|
17295
|
-
}
|
|
17306
|
+
},
|
|
17307
|
+
"isOptional": false
|
|
17296
17308
|
},
|
|
17297
17309
|
{
|
|
17298
17310
|
"parameterName": "contrast",
|
|
17299
17311
|
"parameterTypeTokenRange": {
|
|
17300
17312
|
"startIndex": 3,
|
|
17301
17313
|
"endIndex": 4
|
|
17302
|
-
}
|
|
17314
|
+
},
|
|
17315
|
+
"isOptional": false
|
|
17303
17316
|
},
|
|
17304
17317
|
{
|
|
17305
17318
|
"parameterName": "initialIndex",
|
|
17306
17319
|
"parameterTypeTokenRange": {
|
|
17307
17320
|
"startIndex": 5,
|
|
17308
17321
|
"endIndex": 6
|
|
17309
|
-
}
|
|
17322
|
+
},
|
|
17323
|
+
"isOptional": true
|
|
17310
17324
|
},
|
|
17311
17325
|
{
|
|
17312
17326
|
"parameterName": "direction",
|
|
17313
17327
|
"parameterTypeTokenRange": {
|
|
17314
17328
|
"startIndex": 7,
|
|
17315
17329
|
"endIndex": 8
|
|
17316
|
-
}
|
|
17330
|
+
},
|
|
17331
|
+
"isOptional": true
|
|
17317
17332
|
}
|
|
17318
17333
|
],
|
|
17319
17334
|
"name": "colorContrast"
|
|
@@ -17357,7 +17372,8 @@
|
|
|
17357
17372
|
"parameterTypeTokenRange": {
|
|
17358
17373
|
"startIndex": 1,
|
|
17359
17374
|
"endIndex": 2
|
|
17360
|
-
}
|
|
17375
|
+
},
|
|
17376
|
+
"isOptional": false
|
|
17361
17377
|
}
|
|
17362
17378
|
],
|
|
17363
17379
|
"name": "get"
|
|
@@ -17529,7 +17545,7 @@
|
|
|
17529
17545
|
"members": [],
|
|
17530
17546
|
"extendsTokenRange": {
|
|
17531
17547
|
"startIndex": 1,
|
|
17532
|
-
"endIndex":
|
|
17548
|
+
"endIndex": 2
|
|
17533
17549
|
},
|
|
17534
17550
|
"implementsTokenRanges": []
|
|
17535
17551
|
},
|
|
@@ -17557,7 +17573,7 @@
|
|
|
17557
17573
|
"members": [],
|
|
17558
17574
|
"extendsTokenRange": {
|
|
17559
17575
|
"startIndex": 1,
|
|
17560
|
-
"endIndex":
|
|
17576
|
+
"endIndex": 2
|
|
17561
17577
|
},
|
|
17562
17578
|
"implementsTokenRanges": []
|
|
17563
17579
|
},
|
|
@@ -17689,7 +17705,8 @@
|
|
|
17689
17705
|
"parameterTypeTokenRange": {
|
|
17690
17706
|
"startIndex": 1,
|
|
17691
17707
|
"endIndex": 2
|
|
17692
|
-
}
|
|
17708
|
+
},
|
|
17709
|
+
"isOptional": true
|
|
17693
17710
|
}
|
|
17694
17711
|
],
|
|
17695
17712
|
"name": "provideFluentDesignSystem"
|
|
@@ -17857,14 +17874,16 @@
|
|
|
17857
17874
|
"parameterTypeTokenRange": {
|
|
17858
17875
|
"startIndex": 1,
|
|
17859
17876
|
"endIndex": 2
|
|
17860
|
-
}
|
|
17877
|
+
},
|
|
17878
|
+
"isOptional": false
|
|
17861
17879
|
},
|
|
17862
17880
|
{
|
|
17863
17881
|
"parameterName": "reference",
|
|
17864
17882
|
"parameterTypeTokenRange": {
|
|
17865
17883
|
"startIndex": 3,
|
|
17866
17884
|
"endIndex": 4
|
|
17867
|
-
}
|
|
17885
|
+
},
|
|
17886
|
+
"isOptional": true
|
|
17868
17887
|
}
|
|
17869
17888
|
],
|
|
17870
17889
|
"name": "evaluate"
|
|
@@ -18348,7 +18367,8 @@
|
|
|
18348
18367
|
"parameterTypeTokenRange": {
|
|
18349
18368
|
"startIndex": 1,
|
|
18350
18369
|
"endIndex": 2
|
|
18351
|
-
}
|
|
18370
|
+
},
|
|
18371
|
+
"isOptional": false
|
|
18352
18372
|
}
|
|
18353
18373
|
],
|
|
18354
18374
|
"name": "contrast"
|
|
@@ -18385,7 +18405,7 @@
|
|
|
18385
18405
|
"extendsTokenRanges": [
|
|
18386
18406
|
{
|
|
18387
18407
|
"startIndex": 1,
|
|
18388
|
-
"endIndex":
|
|
18408
|
+
"endIndex": 2
|
|
18389
18409
|
}
|
|
18390
18410
|
]
|
|
18391
18411
|
},
|
|
@@ -18493,7 +18513,7 @@
|
|
|
18493
18513
|
"extendsTokenRanges": [
|
|
18494
18514
|
{
|
|
18495
18515
|
"startIndex": 1,
|
|
18496
|
-
"endIndex":
|
|
18516
|
+
"endIndex": 2
|
|
18497
18517
|
}
|
|
18498
18518
|
]
|
|
18499
18519
|
},
|
package/dist/web-components.js
CHANGED
|
@@ -1656,6 +1656,37 @@ function reduceBehaviors(styles) {
|
|
|
1656
1656
|
return prev.concat(curr);
|
|
1657
1657
|
}, null);
|
|
1658
1658
|
}
|
|
1659
|
+
let addAdoptedStyleSheets = (target, sheets) => {
|
|
1660
|
+
target.adoptedStyleSheets = [...target.adoptedStyleSheets, ...sheets];
|
|
1661
|
+
};
|
|
1662
|
+
let removeAdoptedStyleSheets = (target, sheets) => {
|
|
1663
|
+
target.adoptedStyleSheets = target.adoptedStyleSheets.filter(x => sheets.indexOf(x) === -1);
|
|
1664
|
+
};
|
|
1665
|
+
if (DOM.supportsAdoptedStyleSheets) {
|
|
1666
|
+
try {
|
|
1667
|
+
// Test if browser implementation uses FrozenArray.
|
|
1668
|
+
// If not, use push / splice to alter the stylesheets
|
|
1669
|
+
// in place. This circumvents a bug in Safari 16.4 where
|
|
1670
|
+
// periodically, assigning the array would previously
|
|
1671
|
+
// cause sheets to be removed.
|
|
1672
|
+
document.adoptedStyleSheets.push();
|
|
1673
|
+
document.adoptedStyleSheets.splice();
|
|
1674
|
+
addAdoptedStyleSheets = (target, sheets) => {
|
|
1675
|
+
target.adoptedStyleSheets.push(...sheets);
|
|
1676
|
+
};
|
|
1677
|
+
removeAdoptedStyleSheets = (target, sheets) => {
|
|
1678
|
+
for (const sheet of sheets) {
|
|
1679
|
+
const index = target.adoptedStyleSheets.indexOf(sheet);
|
|
1680
|
+
if (index !== -1) {
|
|
1681
|
+
target.adoptedStyleSheets.splice(index, 1);
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
};
|
|
1685
|
+
} catch (e) {
|
|
1686
|
+
// Do nothing if an error is thrown, the default
|
|
1687
|
+
// case handles FrozenArray.
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1659
1690
|
/**
|
|
1660
1691
|
* https://wicg.github.io/construct-stylesheets/
|
|
1661
1692
|
* https://developers.google.com/web/updates/2019/02/constructable-stylesheets
|
|
@@ -1690,12 +1721,11 @@ class AdoptedStyleSheetsStyles extends ElementStyles {
|
|
|
1690
1721
|
return this._styleSheets;
|
|
1691
1722
|
}
|
|
1692
1723
|
addStylesTo(target) {
|
|
1693
|
-
target
|
|
1724
|
+
addAdoptedStyleSheets(target, this.styleSheets);
|
|
1694
1725
|
super.addStylesTo(target);
|
|
1695
1726
|
}
|
|
1696
1727
|
removeStylesFrom(target) {
|
|
1697
|
-
|
|
1698
|
-
target.adoptedStyleSheets = target.adoptedStyleSheets.filter(x => sourceSheets.indexOf(x) === -1);
|
|
1728
|
+
removeAdoptedStyleSheets(target, this.styleSheets);
|
|
1699
1729
|
super.removeStylesFrom(target);
|
|
1700
1730
|
}
|
|
1701
1731
|
}
|
|
@@ -21039,7 +21069,8 @@ const listboxStyles = listboxStyles$1;
|
|
|
21039
21069
|
const optionStyles = (context, definition) => css`
|
|
21040
21070
|
${display('inline-flex')} :host{position:relative;${typeRampBase}
|
|
21041
21071
|
background:${neutralFillStealthRest};border-radius:calc(${controlCornerRadius} * 1px);border:calc(${strokeWidth} * 1px) solid transparent;box-sizing:border-box;color:${neutralForegroundRest};cursor:pointer;fill:currentcolor;height:calc(${heightNumber} * 1px);overflow:hidden;align-items:center;padding:0 calc(((${designUnit} * 3) - ${strokeWidth} - 1) * 1px);user-select:none;white-space:nowrap}:host::before{content:'';display:block;position:absolute;left:calc((${focusStrokeWidth} - ${strokeWidth}) * 1px);top:calc((${heightNumber} / 4) - ${focusStrokeWidth} * 1px);width:3px;height:calc((${heightNumber} / 2) * 1px);background:transparent;border-radius:calc(${controlCornerRadius} * 1px)}:host(:not([disabled]):hover){background:${neutralFillStealthHover}}:host(:not([disabled]):active){background:${neutralFillStealthActive}}:host(:not([disabled]):active)::before{background:${accentFillRest};height:calc(((${heightNumber} / 2) - 6) * 1px)}:host([aria-selected='true'])::before{background:${accentFillRest}}:host(:${focusVisible}){${focusTreatmentBase}
|
|
21042
|
-
background:${neutralFillStealthFocus}}:host([aria-selected='true']){background:${neutralFillSecondaryRest}}:host(:not([disabled])[aria-selected='true']:hover){background:${neutralFillSecondaryHover}}:host(:not([disabled])[aria-selected='true']:active){background:${neutralFillSecondaryActive}}:host(:not([disabled]):not([aria-selected='true']):hover){background:${neutralFillStealthHover}}:host(:not([disabled]):not([aria-selected='true']):active){background:${neutralFillStealthActive}}:host([disabled]){cursor:${disabledCursor};opacity:${disabledOpacity}}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end,::slotted(svg){display:flex}::slotted([slot='end']){margin-inline-start:1ch}::slotted([slot='start']){margin-inline-end:1ch}`.withBehaviors(
|
|
21072
|
+
background:${neutralFillStealthFocus}}:host([aria-selected='true']){background:${neutralFillSecondaryRest}}:host(:not([disabled])[aria-selected='true']:hover){background:${neutralFillSecondaryHover}}:host(:not([disabled])[aria-selected='true']:active){background:${neutralFillSecondaryActive}}:host(:not([disabled]):not([aria-selected='true']):hover){background:${neutralFillStealthHover}}:host(:not([disabled]):not([aria-selected='true']):active){background:${neutralFillStealthActive}}:host([disabled]){cursor:${disabledCursor};opacity:${disabledOpacity}}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end,::slotted(svg){display:flex}::slotted([slot='end']){margin-inline-start:1ch}::slotted([slot='start']){margin-inline-end:1ch}`.withBehaviors(new DirectionalStyleSheetBehavior(null, css`
|
|
21073
|
+
:host::before{right:calc((${focusStrokeWidth} - ${strokeWidth}) * 1px)}`), forcedColorsStylesheetBehavior(css`
|
|
21043
21074
|
:host{background:${SystemColors.ButtonFace};border-color:${SystemColors.ButtonFace};color:${SystemColors.ButtonText}}:host(:not([disabled]):not([aria-selected="true"]):hover),:host(:not([disabled])[aria-selected="true"]:hover),:host([aria-selected="true"]){forced-color-adjust:none;background:${SystemColors.Highlight};color:${SystemColors.HighlightText}}:host(:not([disabled]):active)::before,:host([aria-selected='true'])::before{background:${SystemColors.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected='true']):hover){background:${SystemColors.Canvas};color:${SystemColors.GrayText};fill:currentcolor;opacity:1}:host(:${focusVisible}){outline-color:${SystemColors.CanvasText}}`));
|
|
21044
21075
|
|
|
21045
21076
|
/**
|