@fluentui/web-components 3.0.0-rc.19 → 3.0.0-rc.20

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 (31) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/custom-elements.json +201 -26
  3. package/dist/esm/badge/index.d.ts +3 -4
  4. package/dist/esm/badge/index.js +3 -4
  5. package/dist/esm/badge/index.js.map +1 -1
  6. package/dist/esm/counter-badge/counter-badge.base.d.ts +55 -0
  7. package/dist/esm/counter-badge/counter-badge.base.js +84 -0
  8. package/dist/esm/counter-badge/counter-badge.base.js.map +1 -0
  9. package/dist/esm/counter-badge/counter-badge.d.ts +4 -57
  10. package/dist/esm/counter-badge/counter-badge.js +6 -77
  11. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  12. package/dist/esm/counter-badge/counter-badge.options.d.ts +19 -11
  13. package/dist/esm/counter-badge/counter-badge.options.js +8 -4
  14. package/dist/esm/counter-badge/counter-badge.options.js.map +1 -1
  15. package/dist/esm/counter-badge/counter-badge.template.d.ts +9 -1
  16. package/dist/esm/counter-badge/counter-badge.template.js +15 -7
  17. package/dist/esm/counter-badge/counter-badge.template.js.map +1 -1
  18. package/dist/esm/counter-badge/index.d.ts +4 -4
  19. package/dist/esm/counter-badge/index.js +4 -4
  20. package/dist/esm/counter-badge/index.js.map +1 -1
  21. package/dist/esm/dropdown/dropdown.styles.js +1 -0
  22. package/dist/esm/dropdown/dropdown.styles.js.map +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/index.js.map +1 -1
  26. package/dist/web-components-all.js +170 -166
  27. package/dist/web-components-all.min.js +15 -15
  28. package/dist/web-components.d.ts +81 -65
  29. package/dist/web-components.js +169 -165
  30. package/dist/web-components.min.js +18 -18
  31. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,12 +1,22 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- This log was last generated on Wed, 13 May 2026 04:08:24 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 19 May 2026 04:10:39 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [3.0.0-rc.20](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-rc.20)
8
+
9
+ Tue, 19 May 2026 04:10:39 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-rc.19..@fluentui/web-components_v3.0.0-rc.20)
11
+
12
+ ### Changes
13
+
14
+ - Adds white-space normal to dropdown .control div to prevent text overflow issues. ([PR #36210](https://github.com/microsoft/fluentui/pull/36210) by mibaraka@microsoft.com)
15
+ - feat: implement BaseCounterBadge class and update CounterBadge component structure ([PR #36209](https://github.com/microsoft/fluentui/pull/36209) by 863023+radium-v@users.noreply.github.com)
16
+
7
17
  ## [3.0.0-rc.19](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-rc.19)
8
18
 
9
- Wed, 13 May 2026 04:08:24 GMT
19
+ Wed, 13 May 2026 04:08:40 GMT
10
20
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-rc.18..@fluentui/web-components_v3.0.0-rc.19)
11
21
 
12
22
  ### Changes
@@ -13173,13 +13173,131 @@
13173
13173
  }
13174
13174
  ]
13175
13175
  },
13176
+ {
13177
+ "kind": "javascript-module",
13178
+ "path": "./dist/esm/counter-badge/counter-badge.base.js",
13179
+ "declarations": [
13180
+ {
13181
+ "kind": "class",
13182
+ "description": "The base class used for constructing a fluent-counter-badge custom element.\nContains the count-related state and display logic, without any visual\nappearance attributes.",
13183
+ "name": "BaseCounterBadge",
13184
+ "members": [
13185
+ {
13186
+ "kind": "field",
13187
+ "name": "count",
13188
+ "type": {
13189
+ "text": "number"
13190
+ },
13191
+ "privacy": "public",
13192
+ "default": "0",
13193
+ "description": "The count to be displayed in the badge."
13194
+ },
13195
+ {
13196
+ "kind": "field",
13197
+ "name": "overflowCount",
13198
+ "type": {
13199
+ "text": "number"
13200
+ },
13201
+ "privacy": "public",
13202
+ "default": "99",
13203
+ "description": "The maximum count to be displayed before showing the overflow count (e.g. \"99+\")."
13204
+ },
13205
+ {
13206
+ "kind": "field",
13207
+ "name": "showZero",
13208
+ "type": {
13209
+ "text": "boolean"
13210
+ },
13211
+ "privacy": "public",
13212
+ "default": "false",
13213
+ "description": "Whether to show the badge when the count is zero. By default, the badge will be hidden when the count is zero."
13214
+ },
13215
+ {
13216
+ "kind": "field",
13217
+ "name": "dot",
13218
+ "type": {
13219
+ "text": "boolean"
13220
+ },
13221
+ "privacy": "public",
13222
+ "default": "false",
13223
+ "description": "Whether to display the badge as a dot. When true, the badge will be displayed as a dot and the count will not be\nshown."
13224
+ },
13225
+ {
13226
+ "kind": "field",
13227
+ "name": "displayValue",
13228
+ "type": {
13229
+ "text": "string | undefined"
13230
+ },
13231
+ "privacy": "public",
13232
+ "description": "The value to be displayed in the badge, which is determined by the `count`, `overflow-count`, and `show-zero` attributes.",
13233
+ "readonly": true
13234
+ }
13235
+ ],
13236
+ "attributes": [
13237
+ {
13238
+ "name": "count",
13239
+ "type": {
13240
+ "text": "number"
13241
+ },
13242
+ "default": "0",
13243
+ "description": "The count to be displayed in the badge.",
13244
+ "fieldName": "count"
13245
+ },
13246
+ {
13247
+ "name": "overflow-count",
13248
+ "type": {
13249
+ "text": "number"
13250
+ },
13251
+ "default": "99",
13252
+ "description": "The maximum count to be displayed before showing the overflow count (e.g. \"99+\").",
13253
+ "fieldName": "overflowCount"
13254
+ },
13255
+ {
13256
+ "name": "show-zero",
13257
+ "type": {
13258
+ "text": "boolean"
13259
+ },
13260
+ "default": "false",
13261
+ "description": "Whether to show the badge when the count is zero. By default, the badge will be hidden when the count is zero.",
13262
+ "fieldName": "showZero"
13263
+ },
13264
+ {
13265
+ "name": "dot",
13266
+ "type": {
13267
+ "text": "boolean"
13268
+ },
13269
+ "default": "false",
13270
+ "description": "Whether to display the badge as a dot. When true, the badge will be displayed as a dot and the count will not be\nshown.",
13271
+ "fieldName": "dot"
13272
+ }
13273
+ ],
13274
+ "superclass": {
13275
+ "name": "FASTElement",
13276
+ "package": "@microsoft/fast-element"
13277
+ },
13278
+ "customElement": true,
13279
+ "modulePath": "./dist/esm/counter-badge/counter-badge.base.js",
13280
+ "definitionPath": "./dist/esm/counter-badge/define.js"
13281
+ }
13282
+ ],
13283
+ "exports": [
13284
+ {
13285
+ "kind": "js",
13286
+ "name": "BaseCounterBadge",
13287
+ "declaration": {
13288
+ "name": "BaseCounterBadge",
13289
+ "module": "src/counter-badge/counter-badge.base.ts"
13290
+ }
13291
+ }
13292
+ ]
13293
+ },
13176
13294
  {
13177
13295
  "kind": "javascript-module",
13178
13296
  "path": "./dist/esm/counter-badge/counter-badge.js",
13179
13297
  "declarations": [
13180
13298
  {
13181
13299
  "kind": "class",
13182
- "description": "The base class used for constructing a fluent-badge custom element",
13300
+ "description": "A CounterBadge Custom HTML Element.\nBased on BaseCounterBadge and includes style and layout specific attributes.",
13183
13301
  "name": "CounterBadge",
13184
13302
  "members": [
13185
13303
  {
@@ -13238,12 +13356,11 @@
13238
13356
  },
13239
13357
  "privacy": "public",
13240
13358
  "default": "0",
13241
- "description": "The count the badge should have."
13242
- },
13243
- {
13244
- "kind": "method",
13245
- "name": "countChanged",
13246
- "privacy": "protected"
13359
+ "description": "The count to be displayed in the badge.",
13360
+ "inheritedFrom": {
13361
+ "name": "BaseCounterBadge",
13362
+ "module": "src/counter-badge/counter-badge.base.ts"
13363
+ }
13247
13364
  },
13248
13365
  {
13249
13366
  "kind": "field",
@@ -13253,12 +13370,11 @@
13253
13370
  },
13254
13371
  "privacy": "public",
13255
13372
  "default": "99",
13256
- "description": "Max number to be displayed"
13257
- },
13258
- {
13259
- "kind": "method",
13260
- "name": "overflowCountChanged",
13261
- "privacy": "protected"
13373
+ "description": "The maximum count to be displayed before showing the overflow count (e.g. \"99+\").",
13374
+ "inheritedFrom": {
13375
+ "name": "BaseCounterBadge",
13376
+ "module": "src/counter-badge/counter-badge.base.ts"
13377
+ }
13262
13378
  },
13263
13379
  {
13264
13380
  "kind": "field",
@@ -13268,7 +13384,11 @@
13268
13384
  },
13269
13385
  "privacy": "public",
13270
13386
  "default": "false",
13271
- "description": "If the badge should be shown when count is 0"
13387
+ "description": "Whether to show the badge when the count is zero. By default, the badge will be hidden when the count is zero.",
13388
+ "inheritedFrom": {
13389
+ "name": "BaseCounterBadge",
13390
+ "module": "src/counter-badge/counter-badge.base.ts"
13391
+ }
13272
13392
  },
13273
13393
  {
13274
13394
  "kind": "field",
@@ -13278,7 +13398,25 @@
13278
13398
  },
13279
13399
  "privacy": "public",
13280
13400
  "default": "false",
13281
- "description": "If a dot should be displayed without the count"
13401
+ "description": "Whether to display the badge as a dot. When true, the badge will be displayed as a dot and the count will not be\nshown.",
13402
+ "inheritedFrom": {
13403
+ "name": "BaseCounterBadge",
13404
+ "module": "src/counter-badge/counter-badge.base.ts"
13405
+ }
13406
+ },
13407
+ {
13408
+ "kind": "field",
13409
+ "name": "displayValue",
13410
+ "type": {
13411
+ "text": "string | undefined"
13412
+ },
13413
+ "privacy": "public",
13414
+ "description": "The value to be displayed in the badge, which is determined by the `count`, `overflow-count`, and `show-zero` attributes.",
13415
+ "readonly": true,
13416
+ "inheritedFrom": {
13417
+ "name": "BaseCounterBadge",
13418
+ "module": "src/counter-badge/counter-badge.base.ts"
13419
+ }
13282
13420
  }
13283
13421
  ],
13284
13422
  "attributes": [
@@ -13332,8 +13470,12 @@
13332
13470
  "text": "number"
13333
13471
  },
13334
13472
  "default": "0",
13335
- "description": "The count the badge should have.",
13336
- "fieldName": "count"
13473
+ "description": "The count to be displayed in the badge.",
13474
+ "fieldName": "count",
13475
+ "inheritedFrom": {
13476
+ "name": "BaseCounterBadge",
13477
+ "module": "src/counter-badge/counter-badge.base.ts"
13478
+ }
13337
13479
  },
13338
13480
  {
13339
13481
  "name": "overflow-count",
@@ -13341,8 +13483,12 @@
13341
13483
  "text": "number"
13342
13484
  },
13343
13485
  "default": "99",
13344
- "description": "Max number to be displayed",
13345
- "fieldName": "overflowCount"
13486
+ "description": "The maximum count to be displayed before showing the overflow count (e.g. \"99+\").",
13487
+ "fieldName": "overflowCount",
13488
+ "inheritedFrom": {
13489
+ "name": "BaseCounterBadge",
13490
+ "module": "src/counter-badge/counter-badge.base.ts"
13491
+ }
13346
13492
  },
13347
13493
  {
13348
13494
  "name": "show-zero",
@@ -13350,8 +13496,12 @@
13350
13496
  "text": "boolean"
13351
13497
  },
13352
13498
  "default": "false",
13353
- "description": "If the badge should be shown when count is 0",
13354
- "fieldName": "showZero"
13499
+ "description": "Whether to show the badge when the count is zero. By default, the badge will be hidden when the count is zero.",
13500
+ "fieldName": "showZero",
13501
+ "inheritedFrom": {
13502
+ "name": "BaseCounterBadge",
13503
+ "module": "src/counter-badge/counter-badge.base.ts"
13504
+ }
13355
13505
  },
13356
13506
  {
13357
13507
  "name": "dot",
@@ -13359,18 +13509,27 @@
13359
13509
  "text": "boolean"
13360
13510
  },
13361
13511
  "default": "false",
13362
- "description": "If a dot should be displayed without the count",
13363
- "fieldName": "dot"
13512
+ "description": "Whether to display the badge as a dot. When true, the badge will be displayed as a dot and the count will not be\nshown.",
13513
+ "fieldName": "dot",
13514
+ "inheritedFrom": {
13515
+ "name": "BaseCounterBadge",
13516
+ "module": "src/counter-badge/counter-badge.base.ts"
13517
+ }
13364
13518
  }
13365
13519
  ],
13366
13520
  "superclass": {
13367
- "name": "FASTElement",
13368
- "package": "@microsoft/fast-element"
13521
+ "name": "BaseCounterBadge",
13522
+ "module": "/src/counter-badge/counter-badge.base.js"
13369
13523
  },
13370
13524
  "tagName": "fluent-counter-badge",
13371
13525
  "customElement": true,
13372
13526
  "modulePath": "./dist/esm/counter-badge/counter-badge.js",
13373
- "definitionPath": "./dist/esm/counter-badge/define.js"
13527
+ "definitionPath": "./dist/esm/counter-badge/define.js",
13528
+ "cssProperties": [],
13529
+ "cssParts": [],
13530
+ "cssStates": [],
13531
+ "events": [],
13532
+ "slots": []
13374
13533
  }
13375
13534
  ],
13376
13535
  "exports": [
@@ -28658,6 +28817,22 @@
28658
28817
  }
28659
28818
  ]
28660
28819
  },
28820
+ {
28821
+ "kind": "javascript-module",
28822
+ "path": "./dist/esm/counter-badge/define.js",
28823
+ "deprecated": false,
28824
+ "declarations": [],
28825
+ "exports": [
28826
+ {
28827
+ "kind": "custom-element-definition",
28828
+ "name": "BaseCounterBadge",
28829
+ "declaration": {
28830
+ "name": "BaseCounterBadge",
28831
+ "module": "./dist/esm/counter-badge/counter-badge.base.js"
28832
+ }
28833
+ }
28834
+ ]
28835
+ },
28661
28836
  {
28662
28837
  "kind": "javascript-module",
28663
28838
  "path": "./dist/esm/counter-badge/define.js",
@@ -1,6 +1,5 @@
1
+ export { definition as BadgeDefinition } from './badge.definition.js';
1
2
  export { Badge } from './badge.js';
2
- export { BadgeAppearance, BadgeColor, BadgeShape, BadgeSize } from './badge.options.js';
3
- export { template as BadgeTemplate } from './badge.template.js';
3
+ export { BadgeAppearance, BadgeColor, BadgeShape, BadgeSize, tagName as BadgeTagName, type BadgeOptions, } from './badge.options.js';
4
4
  export { styles as BadgeStyles } from './badge.styles.js';
5
- export { definition as BadgeDefinition } from './badge.definition.js';
6
- export { tagName as BadgeTagName } from './badge.options.js';
5
+ export { template as BadgeTemplate } from './badge.template.js';
@@ -1,7 +1,6 @@
1
+ export { definition as BadgeDefinition } from './badge.definition.js';
1
2
  export { Badge } from './badge.js';
2
- export { BadgeAppearance, BadgeColor, BadgeShape, BadgeSize } from './badge.options.js';
3
- export { template as BadgeTemplate } from './badge.template.js';
3
+ export { BadgeAppearance, BadgeColor, BadgeShape, BadgeSize, tagName as BadgeTagName, } from './badge.options.js';
4
4
  export { styles as BadgeStyles } from './badge.styles.js';
5
- export { definition as BadgeDefinition } from './badge.definition.js';
6
- export { tagName as BadgeTagName } from './badge.options.js';
5
+ export { template as BadgeTemplate } from './badge.template.js';
7
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,OAAO,IAAI,YAAY,GAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ /**
3
+ * The base class used for constructing a fluent-counter-badge custom element.
4
+ * Contains the count-related state and display logic, without any visual
5
+ * appearance attributes.
6
+ *
7
+ * @public
8
+ */
9
+ export declare class BaseCounterBadge extends FASTElement {
10
+ /**
11
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
12
+ *
13
+ * @internal
14
+ */
15
+ elementInternals: ElementInternals;
16
+ /**
17
+ * The count to be displayed in the badge.
18
+ *
19
+ * @public
20
+ * @remarks
21
+ * HTML Attribute: `count`
22
+ */
23
+ count: number;
24
+ /**
25
+ * The maximum count to be displayed before showing the overflow count (e.g. "99+").
26
+ *
27
+ * @public
28
+ * @remarks
29
+ * HTML Attribute: `overflow-count`
30
+ */
31
+ overflowCount: number;
32
+ /**
33
+ * Whether to show the badge when the count is zero. By default, the badge will be hidden when the count is zero.
34
+ *
35
+ * @public
36
+ * @remarks
37
+ * HTML Attribute: `show-zero`
38
+ */
39
+ showZero: boolean;
40
+ /**
41
+ * Whether to display the badge as a dot. When true, the badge will be displayed as a dot and the count will not be
42
+ * shown.
43
+ *
44
+ * @public
45
+ * @remarks
46
+ * HTML Attribute: `dot`
47
+ */
48
+ dot: boolean;
49
+ /**
50
+ * The value to be displayed in the badge, which is determined by the `count`, `overflow-count`, and `show-zero` attributes.
51
+ *
52
+ * @public
53
+ */
54
+ get displayValue(): string | undefined;
55
+ }
@@ -0,0 +1,84 @@
1
+ import { __decorate } from "tslib";
2
+ import { attr, FASTElement, nullableNumberConverter, volatile } from '@microsoft/fast-element';
3
+ /**
4
+ * The base class used for constructing a fluent-counter-badge custom element.
5
+ * Contains the count-related state and display logic, without any visual
6
+ * appearance attributes.
7
+ *
8
+ * @public
9
+ */
10
+ export class BaseCounterBadge extends FASTElement {
11
+ constructor() {
12
+ super(...arguments);
13
+ /**
14
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
15
+ *
16
+ * @internal
17
+ */
18
+ this.elementInternals = this.attachInternals();
19
+ /**
20
+ * The count to be displayed in the badge.
21
+ *
22
+ * @public
23
+ * @remarks
24
+ * HTML Attribute: `count`
25
+ */
26
+ this.count = 0;
27
+ /**
28
+ * The maximum count to be displayed before showing the overflow count (e.g. "99+").
29
+ *
30
+ * @public
31
+ * @remarks
32
+ * HTML Attribute: `overflow-count`
33
+ */
34
+ this.overflowCount = 99;
35
+ /**
36
+ * Whether to show the badge when the count is zero. By default, the badge will be hidden when the count is zero.
37
+ *
38
+ * @public
39
+ * @remarks
40
+ * HTML Attribute: `show-zero`
41
+ */
42
+ this.showZero = false;
43
+ /**
44
+ * Whether to display the badge as a dot. When true, the badge will be displayed as a dot and the count will not be
45
+ * shown.
46
+ *
47
+ * @public
48
+ * @remarks
49
+ * HTML Attribute: `dot`
50
+ */
51
+ this.dot = false;
52
+ }
53
+ /**
54
+ * The value to be displayed in the badge, which is determined by the `count`, `overflow-count`, and `show-zero` attributes.
55
+ *
56
+ * @public
57
+ */
58
+ get displayValue() {
59
+ const count = this.count ?? 0;
60
+ if ((!this.showZero && count === 0) || this.dot) {
61
+ return '';
62
+ }
63
+ if (this.overflowCount > 0 && count > this.overflowCount) {
64
+ return `${this.overflowCount}+`;
65
+ }
66
+ return `${count}`;
67
+ }
68
+ }
69
+ __decorate([
70
+ attr({ converter: nullableNumberConverter })
71
+ ], BaseCounterBadge.prototype, "count", void 0);
72
+ __decorate([
73
+ attr({ attribute: 'overflow-count', converter: nullableNumberConverter })
74
+ ], BaseCounterBadge.prototype, "overflowCount", void 0);
75
+ __decorate([
76
+ attr({ attribute: 'show-zero', mode: 'boolean' })
77
+ ], BaseCounterBadge.prototype, "showZero", void 0);
78
+ __decorate([
79
+ attr({ mode: 'boolean' })
80
+ ], BaseCounterBadge.prototype, "dot", void 0);
81
+ __decorate([
82
+ volatile
83
+ ], BaseCounterBadge.prototype, "displayValue", null);
84
+ //# sourceMappingURL=counter-badge.base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counter-badge.base.js","sourceRoot":"","sources":["../../../src/counter-badge/counter-badge.base.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAE/F;;;;;;GAMG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAAjD;;QACE;;;;WAIG;QACI,qBAAgB,GAAqB,IAAI,CAAC,eAAe,EAAE,CAAC;QAEnE;;;;;;WAMG;QAEI,UAAK,GAAW,CAAC,CAAC;QAEzB;;;;;;WAMG;QAEI,kBAAa,GAAW,EAAE,CAAC;QAElC;;;;;;WAMG;QAEI,aAAQ,GAAY,KAAK,CAAC;QAEjC;;;;;;;WAOG;QAEI,QAAG,GAAY,KAAK,CAAC;IAqB9B,CAAC;IAnBC;;;;OAIG;IAEH,IAAW,YAAY;QACrB,MAAM,KAAK,GAAW,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;QAEtC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,KAAK,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YAChD,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,IAAI,IAAI,CAAC,aAAa,GAAG,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;YACzD,OAAO,GAAG,IAAI,CAAC,aAAa,GAAG,CAAC;QAClC,CAAC;QAED,OAAO,GAAG,KAAK,EAAE,CAAC;IACpB,CAAC;CACF;AApDQ;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;+CACpB;AAUlB;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;uDACxC;AAU3B;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;kDACjB;AAW1B;IADN,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;6CACE;AAQ5B;IADC,QAAQ;oDAaR"}
@@ -1,20 +1,15 @@
1
- import { FASTElement } from '@microsoft/fast-element';
2
1
  import { StartEnd } from '../patterns/start-end.js';
2
+ import { BaseCounterBadge } from './counter-badge.base.js';
3
3
  import { CounterBadgeAppearance, CounterBadgeColor, CounterBadgeShape, CounterBadgeSize } from './counter-badge.options.js';
4
4
  /**
5
- * The base class used for constructing a fluent-badge custom element
5
+ * A CounterBadge Custom HTML Element.
6
+ * Based on BaseCounterBadge and includes style and layout specific attributes.
6
7
  *
7
8
  * @tag fluent-counter-badge
8
9
  *
9
10
  * @public
10
11
  */
11
- export declare class CounterBadge extends FASTElement {
12
- /**
13
- * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
14
- *
15
- * @internal
16
- */
17
- elementInternals: ElementInternals;
12
+ export declare class CounterBadge extends BaseCounterBadge {
18
13
  /**
19
14
  * The appearance the badge should have.
20
15
  *
@@ -47,54 +42,6 @@ export declare class CounterBadge extends FASTElement {
47
42
  * HTML Attribute: size
48
43
  */
49
44
  size?: CounterBadgeSize;
50
- /**
51
- * The count the badge should have.
52
- *
53
- * @public
54
- * @remarks
55
- * HTML Attribute: count
56
- */
57
- count: number;
58
- protected countChanged(): void;
59
- /**
60
- * Max number to be displayed
61
- *
62
- * @public
63
- * @remarks
64
- * HTML Attribute: overflow-count
65
- */
66
- overflowCount: number;
67
- protected overflowCountChanged(): void;
68
- /**
69
- * If the badge should be shown when count is 0
70
- *
71
- * @public
72
- * @remarks
73
- * HTML Attribute: show-zero
74
- */
75
- showZero: boolean;
76
- /**
77
- * If a dot should be displayed without the count
78
- *
79
- * @public
80
- * @remarks
81
- * HTML Attribute: dot
82
- */
83
- dot: boolean;
84
- /**
85
- * Function to set the count
86
- * This is the default slotted content for the counter badge
87
- * If children are slotted, that will override the value returned
88
- *
89
- * @internal
90
- */
91
- setCount(): string | void;
92
45
  }
93
- /**
94
- * Mark internal because exporting class and interface of the same name
95
- * confuses API extractor.
96
- * TODO: Below will be unnecessary when Badge class gets updated
97
- * @internal
98
- */
99
46
  export interface CounterBadge extends StartEnd {
100
47
  }