@fluentui/web-components 3.0.0-rc.25 → 3.0.0-rc.26

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 (112) hide show
  1. package/CHANGELOG.md +11 -2
  2. package/custom-elements.json +706 -324
  3. package/dist/esm/accordion/accordion.d.ts +1 -1
  4. package/dist/esm/accordion/accordion.js +1 -1
  5. package/dist/esm/accordion-item/accordion-item.d.ts +2 -2
  6. package/dist/esm/accordion-item/accordion-item.js +2 -0
  7. package/dist/esm/accordion-item/accordion-item.js.map +1 -1
  8. package/dist/esm/anchor-button/anchor-button.d.ts +2 -2
  9. package/dist/esm/anchor-button/anchor-button.js +2 -0
  10. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  11. package/dist/esm/avatar/avatar.d.ts +2 -0
  12. package/dist/esm/avatar/avatar.js +3 -1
  13. package/dist/esm/avatar/avatar.js.map +1 -1
  14. package/dist/esm/badge/badge.d.ts +6 -1
  15. package/dist/esm/badge/badge.js +6 -1
  16. package/dist/esm/badge/badge.js.map +1 -1
  17. package/dist/esm/button/button.base.d.ts +0 -9
  18. package/dist/esm/button/button.base.js +0 -3
  19. package/dist/esm/button/button.base.js.map +1 -1
  20. package/dist/esm/checkbox/checkbox.base.d.ts +3 -9
  21. package/dist/esm/checkbox/checkbox.base.js +3 -3
  22. package/dist/esm/checkbox/checkbox.base.js.map +1 -1
  23. package/dist/esm/checkbox/checkbox.d.ts +2 -2
  24. package/dist/esm/checkbox/checkbox.js +2 -2
  25. package/dist/esm/compound-button/compound-button.d.ts +3 -0
  26. package/dist/esm/compound-button/compound-button.js +3 -0
  27. package/dist/esm/compound-button/compound-button.js.map +1 -1
  28. package/dist/esm/counter-badge/counter-badge.d.ts +3 -0
  29. package/dist/esm/counter-badge/counter-badge.js +3 -0
  30. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  31. package/dist/esm/dialog/dialog.d.ts +4 -0
  32. package/dist/esm/dialog/dialog.js +4 -0
  33. package/dist/esm/dialog/dialog.js.map +1 -1
  34. package/dist/esm/dialog-body/dialog-body.d.ts +9 -0
  35. package/dist/esm/dialog-body/dialog-body.js +9 -0
  36. package/dist/esm/dialog-body/dialog-body.js.map +1 -1
  37. package/dist/esm/drawer/drawer.d.ts +3 -4
  38. package/dist/esm/drawer/drawer.js +3 -4
  39. package/dist/esm/drawer/drawer.js.map +1 -1
  40. package/dist/esm/drawer/drawer.styles.css +15 -16
  41. package/dist/esm/drawer/drawer.styles.js +16 -17
  42. package/dist/esm/drawer/drawer.styles.js.map +1 -1
  43. package/dist/esm/dropdown/dropdown.base.d.ts +2 -0
  44. package/dist/esm/dropdown/dropdown.base.js +2 -0
  45. package/dist/esm/dropdown/dropdown.base.js.map +1 -1
  46. package/dist/esm/field/field.d.ts +7 -0
  47. package/dist/esm/field/field.js +7 -0
  48. package/dist/esm/field/field.js.map +1 -1
  49. package/dist/esm/image/image.d.ts +2 -0
  50. package/dist/esm/image/image.js +2 -0
  51. package/dist/esm/image/image.js.map +1 -1
  52. package/dist/esm/label/label.d.ts +3 -0
  53. package/dist/esm/label/label.js +3 -0
  54. package/dist/esm/label/label.js.map +1 -1
  55. package/dist/esm/menu-item/menu-item.d.ts +1 -1
  56. package/dist/esm/menu-item/menu-item.js +1 -1
  57. package/dist/esm/message-bar/message-bar.d.ts +2 -0
  58. package/dist/esm/message-bar/message-bar.js +2 -0
  59. package/dist/esm/message-bar/message-bar.js.map +1 -1
  60. package/dist/esm/option/option.d.ts +3 -0
  61. package/dist/esm/option/option.js +3 -0
  62. package/dist/esm/option/option.js.map +1 -1
  63. package/dist/esm/progress-bar/progress-bar.base.d.ts +3 -3
  64. package/dist/esm/progress-bar/progress-bar.d.ts +1 -0
  65. package/dist/esm/progress-bar/progress-bar.js +1 -0
  66. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  67. package/dist/esm/radio/radio.d.ts +3 -2
  68. package/dist/esm/radio/radio.js +3 -2
  69. package/dist/esm/radio/radio.js.map +1 -1
  70. package/dist/esm/radio-group/radio-group.base.d.ts +2 -0
  71. package/dist/esm/radio-group/radio-group.base.js +2 -0
  72. package/dist/esm/radio-group/radio-group.base.js.map +1 -1
  73. package/dist/esm/radio-group/radio-group.d.ts +1 -0
  74. package/dist/esm/radio-group/radio-group.js +1 -0
  75. package/dist/esm/radio-group/radio-group.js.map +1 -1
  76. package/dist/esm/slider/slider.d.ts +1 -1
  77. package/dist/esm/slider/slider.js +1 -1
  78. package/dist/esm/switch/switch.d.ts +1 -0
  79. package/dist/esm/switch/switch.js +1 -0
  80. package/dist/esm/switch/switch.js.map +1 -1
  81. package/dist/esm/tablist/tablist.d.ts +1 -0
  82. package/dist/esm/tablist/tablist.js +1 -0
  83. package/dist/esm/tablist/tablist.js.map +1 -1
  84. package/dist/esm/text/text.d.ts +2 -0
  85. package/dist/esm/text/text.js +2 -0
  86. package/dist/esm/text/text.js.map +1 -1
  87. package/dist/esm/text-input/text-input.base.d.ts +4 -9
  88. package/dist/esm/text-input/text-input.base.js +4 -3
  89. package/dist/esm/text-input/text-input.base.js.map +1 -1
  90. package/dist/esm/text-input/text-input.d.ts +2 -0
  91. package/dist/esm/text-input/text-input.js +2 -0
  92. package/dist/esm/text-input/text-input.js.map +1 -1
  93. package/dist/esm/text-input/text-input.template.html +0 -1
  94. package/dist/esm/text-input/text-input.template.js +0 -1
  95. package/dist/esm/text-input/text-input.template.js.map +1 -1
  96. package/dist/esm/textarea/textarea.base.d.ts +2 -2
  97. package/dist/esm/textarea/textarea.base.js +2 -2
  98. package/dist/esm/tooltip/tooltip.d.ts +2 -0
  99. package/dist/esm/tooltip/tooltip.js +2 -0
  100. package/dist/esm/tooltip/tooltip.js.map +1 -1
  101. package/dist/esm/tree-item/tree-item.base.d.ts +9 -0
  102. package/dist/esm/tree-item/tree-item.base.js +9 -0
  103. package/dist/esm/tree-item/tree-item.base.js.map +1 -1
  104. package/dist/esm/tree-item/tree-item.d.ts +15 -0
  105. package/dist/esm/tree-item/tree-item.js +15 -0
  106. package/dist/esm/tree-item/tree-item.js.map +1 -1
  107. package/dist/web-components-all.js +2 -11
  108. package/dist/web-components-all.min.js +8 -8
  109. package/dist/web-components.d.ts +109 -46
  110. package/dist/web-components.js +2 -11
  111. package/dist/web-components.min.js +6 -6
  112. package/package.json +3 -2
@@ -15,7 +15,7 @@ import { ViewTemplate } from '@microsoft/fast-element';
15
15
  * @tag fluent-accordion
16
16
  *
17
17
  * @slot - The default slot for the accordion items
18
- * @fires change - Fires a custom 'change' event when the active item changes
18
+ * @fires { Event } change - Fires a custom 'change' event when the active item changes
19
19
  *
20
20
  * @public
21
21
  */
@@ -112,6 +112,8 @@ export declare type AccordionExpandMode = ValuesOf<typeof AccordionExpandMode>;
112
112
  * An Accordion Item Custom HTML Element.
113
113
  * Based on BaseAccordionItem and includes style and layout specific attributes
114
114
  *
115
+ * @tag fluent-accordion-item
116
+ *
115
117
  * @public
116
118
  */
117
119
  export declare class AccordionItem extends BaseAccordionItem {
@@ -175,8 +177,6 @@ export declare type AccordionItemMarkerPosition = ValuesOf<typeof AccordionItemM
175
177
  /**
176
178
  * Accordion Item configuration options
177
179
  *
178
- * @tag fluent-accordion-item
179
- *
180
180
  * @public
181
181
  */
182
182
  export declare type AccordionItemOptions = StartEndOptions<AccordionItem> & {
@@ -216,6 +216,8 @@ export declare const accordionTemplate: ElementViewTemplate<Accordion>;
216
216
  * An Anchor Custom HTML Element.
217
217
  * Based on BaseAnchor and includes style and layout specific attributes
218
218
  *
219
+ * @tag fluent-anchor-button
220
+ *
219
221
  * @public
220
222
  */
221
223
  export declare class AnchorButton extends BaseAnchor {
@@ -373,6 +375,8 @@ export declare type AnchorTarget = ValuesOf<typeof AnchorTarget>;
373
375
  *
374
376
  * @tag fluent-avatar
375
377
  *
378
+ * @slot badge - Optional badge content displayed with the avatar.
379
+ *
376
380
  * @public
377
381
  */
378
382
  export declare class Avatar extends BaseAvatar {
@@ -635,13 +639,18 @@ export declare const AvatarTemplate: ElementViewTemplate<Avatar>;
635
639
 
636
640
  /**
637
641
  * The base class used for constructing a fluent-badge custom element
642
+ * @tag fluent-badge
643
+ *
644
+ * @slot - Content which can be provided inside the badge.
645
+ * @slot start - Content which can be provided before the badge content.
646
+ * @slot end - Content which can be provided after the badge content.
647
+ *
638
648
  * @public
639
649
  */
640
650
  export declare class Badge extends FASTElement {
641
651
  /**
642
652
  * The appearance the badge should have.
643
653
  *
644
- * @tag fluent-badge
645
654
  *
646
655
  * @public
647
656
  * @remarks
@@ -1081,15 +1090,6 @@ export declare class BaseAvatar extends FASTElement {
1081
1090
  * @public
1082
1091
  */
1083
1092
  export declare class BaseButton extends FASTElement {
1084
- /**
1085
- * Indicates the button should be focused when the page is loaded.
1086
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autofocus | `autofocus`} attribute
1087
- *
1088
- * @public
1089
- * @remarks
1090
- * HTML Attribute: `autofocus`
1091
- */
1092
- autofocus: boolean;
1093
1093
  /**
1094
1094
  * Default slotted content.
1095
1095
  *
@@ -1320,18 +1320,12 @@ export declare class BaseButton extends FASTElement {
1320
1320
  /**
1321
1321
  * The base class for a component with a toggleable checked state.
1322
1322
  *
1323
+ * @fires { Event } change - Fires a custom 'change' event when the checked state changes
1324
+ * @fires { Event } input - Fires a custom 'input' event when the checked state changes
1325
+ *
1323
1326
  * @public
1324
1327
  */
1325
1328
  export declare class BaseCheckbox extends FASTElement {
1326
- /**
1327
- * Indicates that the element should get focus after the page finishes loading.
1328
- * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#autofocus | `autofocus`} attribute
1329
- *
1330
- * @public
1331
- * @remarks
1332
- * HTML Attribute: `autofocus`
1333
- */
1334
- autofocus: boolean;
1335
1329
  /**
1336
1330
  * The element's current checked state.
1337
1331
  *
@@ -1730,6 +1724,8 @@ export declare class BaseDivider extends FASTElement {
1730
1724
  * @slot indicator - The indicator slot.
1731
1725
  * @slot control - The control slot. This slot is automatically populated and should not be manually manipulated.
1732
1726
  *
1727
+ * @fires { Event } change - Fires a custom 'change' event when the selected option changes
1728
+ *
1733
1729
  * @public
1734
1730
  */
1735
1731
  export declare class BaseDropdown extends FASTElement {
@@ -2461,7 +2457,7 @@ export declare class BaseProgressBar extends FASTElement {
2461
2457
  *
2462
2458
  * HTML Attribute: `value`
2463
2459
  *
2464
- * @internal
2460
+ * @public
2465
2461
  */
2466
2462
  value?: number;
2467
2463
  /**
@@ -2476,7 +2472,7 @@ export declare class BaseProgressBar extends FASTElement {
2476
2472
  *
2477
2473
  * HTML Attribute: `min`
2478
2474
  *
2479
- * @internal
2475
+ * @public
2480
2476
  */
2481
2477
  min?: number;
2482
2478
  /**
@@ -2492,7 +2488,7 @@ export declare class BaseProgressBar extends FASTElement {
2492
2488
  *
2493
2489
  * HTML Attribute: `max`
2494
2490
  *
2495
- * @internal
2491
+ * @public
2496
2492
  */
2497
2493
  max?: number;
2498
2494
  /**
@@ -2518,6 +2514,8 @@ export declare class BaseProgressBar extends FASTElement {
2518
2514
  * A Base Radio Group Custom HTML Element.
2519
2515
  * Implements the {@link https://w3c.github.io/aria/#radiogroup | ARIA `radiogroup` role}.
2520
2516
  *
2517
+ * @fires { Event } change - Fires a custom 'change' event when the checked radio changes
2518
+ *
2521
2519
  * @public
2522
2520
  */
2523
2521
  export declare class BaseRadioGroup extends FASTElement {
@@ -2964,8 +2962,8 @@ export declare class BaseTablist extends FASTElement {
2964
2962
  * @csspart label - The `<label>` element.
2965
2963
  * @csspart root - The container element of the `<textarea>` element.
2966
2964
  * @csspart control - The internal `<textarea>` element.
2967
- * @fires change - Fires after the control loses focus, if the content has changed.
2968
- * @fires select - Fires when the `select()` method is called.
2965
+ * @fires { Event } change - Fires after the control loses focus, if the content has changed.
2966
+ * @fires { Event } select - Fires when the `select()` method is called.
2969
2967
  *
2970
2968
  * @public
2971
2969
  */
@@ -3320,6 +3318,10 @@ export declare class BaseTextArea extends FASTElement {
3320
3318
  * @csspart label - The internal `<label>` element
3321
3319
  * @csspart root - the root container for the internal control
3322
3320
  * @csspart control - The internal `<input>` control
3321
+ *
3322
+ * @fires { Event } change - Fires a custom 'change' event when the value changes and the input loses focus
3323
+ * @fires { Event } select - Fires when the `select()` method is called.
3324
+ *
3323
3325
  * @public
3324
3326
  */
3325
3327
  export declare class BaseTextInput extends FASTElement {
@@ -3332,15 +3334,6 @@ export declare class BaseTextInput extends FASTElement {
3332
3334
  * HTML Attribute: `autocomplete`
3333
3335
  */
3334
3336
  autocomplete?: string;
3335
- /**
3336
- * Indicates that the element should get focus after the page finishes loading.
3337
- * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#autofocus | `autofocus`} attribute
3338
- *
3339
- * @public
3340
- * @remarks
3341
- * HTML Attribute: `autofocus`
3342
- */
3343
- autofocus: boolean;
3344
3337
  /**
3345
3338
  * The current value of the input.
3346
3339
  * @public
@@ -3763,6 +3756,15 @@ export declare class BaseTree extends FASTElement {
3763
3756
  protected get descendantTreeItems(): BaseTreeItem[];
3764
3757
  }
3765
3758
 
3759
+ /**
3760
+ * Base class for Tree Item Custom HTML Element.
3761
+ * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li | `<li>`} element.
3762
+ *
3763
+ * @fires { ToggleEvent } toggle - Fires when the expanded state changes
3764
+ * @fires { Event } change - Fires when the selected state changes
3765
+ *
3766
+ * @public
3767
+ */
3766
3768
  declare class BaseTreeItem extends FASTElement {
3767
3769
  /**
3768
3770
  * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
@@ -4103,8 +4105,8 @@ export declare type ButtonType = ValuesOf<typeof ButtonType>;
4103
4105
  *
4104
4106
  * @slot checked-indicator - The checked indicator
4105
4107
  * @slot indeterminate-indicator - The indeterminate indicator
4106
- * @fires change - Emits a custom change event when the checked state changes
4107
- * @fires input - Emits a custom input event when the checked state changes
4108
+ * @fires { Event } change - Emits a custom change event when the checked state changes
4109
+ * @fires { Event } input - Emits a custom input event when the checked state changes
4108
4110
  *
4109
4111
  * @public
4110
4112
  */
@@ -6411,6 +6413,9 @@ export declare const colorTransparentStrokeInteractive = "var(--colorTransparent
6411
6413
  *
6412
6414
  * @tag fluent-compound-button
6413
6415
  *
6416
+ * @slot - The default slot for the main content of the compound button
6417
+ * @slot description - The description of the compound button, shown below the main content
6418
+ *
6414
6419
  * @public
6415
6420
  */
6416
6421
  export declare class CompoundButton extends Button {
@@ -6487,6 +6492,9 @@ export declare const CompoundButtonTemplate: ElementViewTemplate<CompoundButton>
6487
6492
  *
6488
6493
  * @tag fluent-counter-badge
6489
6494
  *
6495
+ * @slot start - Content which can be provided before the badge content.
6496
+ * @slot end - Content which can be provided after the badge content.
6497
+ *
6490
6498
  * @public
6491
6499
  */
6492
6500
  export declare class CounterBadge extends BaseCounterBadge {
@@ -6694,6 +6702,10 @@ export declare const curveLinear = "var(--curveLinear)";
6694
6702
  *
6695
6703
  * @tag fluent-dialog
6696
6704
  *
6705
+ * @fires { ToggleEvent } toggle - Event emitted after the dialog's open state changes.
6706
+ * @fires { ToggleEvent } beforetoggle - Event emitted before the dialog's open state changes.
6707
+ * @slot - The default slot. {@link (DialogBody:class)} element recommended.
6708
+ *
6697
6709
  * @public
6698
6710
  */
6699
6711
  export declare class Dialog extends FASTElement {
@@ -6804,6 +6816,15 @@ export declare class Dialog extends FASTElement {
6804
6816
  *
6805
6817
  * @tag fluent-dialog-body
6806
6818
  *
6819
+ * @slot title - Content for the dialog title.
6820
+ * @slot title-action - Content for actions shown near the title.
6821
+ * @slot close - Content for the close action.
6822
+ * @slot action - Content for footer actions.
6823
+ * @slot - Default dialog body content.
6824
+ * @csspart title - The title container.
6825
+ * @csspart content - The content container.
6826
+ * @csspart actions - The actions container.
6827
+ *
6807
6828
  * @public
6808
6829
  * @extends FASTElement
6809
6830
  */
@@ -7028,11 +7049,12 @@ export declare const DividerTemplate: ElementViewTemplate<Divider>;
7028
7049
  * @attr ariaLabelledby - The ID of the element that labels the drawer.
7029
7050
  *
7030
7051
  * @csspart dialog - The dialog element of the drawer.
7052
+ * @cssprop --drawer-width - Sets the width of the drawer to a custom value (e.g., 300px).
7031
7053
  *
7032
7054
  * @slot - Default slot for the content of the drawer.
7033
7055
  *
7034
- * @fires toggle - Event emitted after the dialog's open state changes.
7035
- * @fires beforetoggle - Event emitted before the dialog's open state changes.
7056
+ * @fires { ToggleEvent } toggle - Event emitted after the dialog's open state changes.
7057
+ * @fires { ToggleEvent } beforetoggle - Event emitted before the dialog's open state changes.
7036
7058
  *
7037
7059
  * @method show - Method to show the drawer.
7038
7060
  * @method hide - Method to hide the drawer.
@@ -7042,8 +7064,6 @@ export declare const DividerTemplate: ElementViewTemplate<Divider>;
7042
7064
  * @method emitBeforeToggle - Emits an event before the dialog's open state changes.
7043
7065
  *
7044
7066
  * @summary A component that provides a drawer for displaying content in a side panel.
7045
- *
7046
- * @tag fluent-drawer
7047
7067
  */
7048
7068
  export declare class Drawer extends FASTElement {
7049
7069
  /**
@@ -7348,8 +7368,11 @@ export declare const dropdownInputTemplate: ViewTemplate<BaseDropdown, any>;
7348
7368
  * @tag fluent-dropdown-option
7349
7369
  *
7350
7370
  * @slot - The default slot for the option's content.
7371
+ * @slot start - Optional content shown at the start of the option.
7351
7372
  * @slot checked-indicator - The checked indicator.
7352
7373
  * @slot description - Optional description content.
7374
+ * @csspart content - The wrapper for the option content.
7375
+ * @csspart description - The wrapper for the option description.
7353
7376
  *
7354
7377
  * @remarks
7355
7378
  * To support single and multiple selection modes with the {@link (BaseDropdown:class)} element, the Option element
@@ -7759,6 +7782,13 @@ export declare function endSlotTemplate<TSource extends StartEnd = StartEnd, TPa
7759
7782
  *
7760
7783
  * @tag fluent-field
7761
7784
  *
7785
+ * @slot label - Label content associated with the control.
7786
+ * @slot input - Input control content.
7787
+ * @slot message - Validation and helper message content.
7788
+ * @csspart label - The label slot container.
7789
+ * @csspart input - The input slot container.
7790
+ * @csspart message - The message slot container.
7791
+ *
7762
7792
  * @public
7763
7793
  */
7764
7794
  export declare class Field extends BaseField {
@@ -7930,6 +7960,8 @@ export declare const getDirection: (rootNode: HTMLElement) => Direction;
7930
7960
  *
7931
7961
  * @tag fluent-image
7932
7962
  *
7963
+ * @slot - The default slot. Accepts any `<img>`, `<picture>`, `<video>`, or `<canvas>` element.
7964
+ *
7933
7965
  * @public
7934
7966
  */
7935
7967
  declare class Image_2 extends FASTElement {
@@ -8091,6 +8123,9 @@ export declare function isTreeItem(element?: Node | null, tagName?: string): ele
8091
8123
  *
8092
8124
  * @tag fluent-label
8093
8125
  *
8126
+ * @slot - The default slot. Accepts the content of the label.
8127
+ * @csspart asterisk - The required-field asterisk indicator.
8128
+ *
8094
8129
  * @public
8095
8130
  */
8096
8131
  export declare class Label extends FASTElement {
@@ -8811,7 +8846,7 @@ export declare const MenuDefinition: FASTElementDefinition<typeof Menu>;
8811
8846
  * @slot submenu-glyph - The submenu expand/collapse indicator
8812
8847
  * @slot submenu - Used to nest menu's within menu items
8813
8848
  * @csspart content - The element wrapping the menu item content
8814
- * @fires change - Fires a custom 'change' event when a non-submenu item with a role of `menuitemcheckbox`, `menuitemradio`, or `menuitem` is invoked
8849
+ * @fires { Event } change - Fires a custom 'change' event when a non-submenu item with a role of `menuitemcheckbox`, `menuitemradio`, or `menuitem` is invoked
8815
8850
  *
8816
8851
  * @public
8817
8852
  */
@@ -9027,7 +9062,9 @@ export declare const MenuTemplate: ElementViewTemplate<Menu>;
9027
9062
  *
9028
9063
  * @slot actions - Content that can be provided for the actions
9029
9064
  * @slot dismiss - Content that can be provided for the dismiss button
9065
+ * @slot icon - Content that can be provided for the leading icon
9030
9066
  * @slot - The default slot for the content
9067
+ * @fires { CustomEvent } dismiss - Fired when the message bar is dismissed.
9031
9068
  * @public
9032
9069
  */
9033
9070
  export declare class MessageBar extends FASTElement {
@@ -9150,6 +9187,7 @@ export declare type Orientation = (typeof Orientation)[keyof typeof Orientation]
9150
9187
  * Based on BaseProgressBar and includes style and layout specific attributes
9151
9188
  *
9152
9189
  * @tag fluent-progress-bar
9190
+ * @csspart indicator - The internal progress indicator element.
9153
9191
  *
9154
9192
  * @public
9155
9193
  */
@@ -9247,8 +9285,9 @@ declare type PropertyNameForCalculation = 'max' | 'value';
9247
9285
  * @tag fluent-radio
9248
9286
  *
9249
9287
  * @slot checked-indicator - The checked indicator slot
9250
- * @fires change - Emits a custom change event when the checked state changes
9251
- * @fires input - Emits a custom input event when the checked state changes
9288
+ * @fires {Event} change - Emits a custom change event when the checked state changes
9289
+ * @fires {Event} input - Emits a custom input event when the checked state changes
9290
+ * @fires {CustomEvent} disabled - Emits a custom disabled event when the disabled state changes
9252
9291
  *
9253
9292
  * @public
9254
9293
  */
@@ -9324,6 +9363,7 @@ export declare const RadioDefinition: FASTElementDefinition<typeof Radio>;
9324
9363
  * @tag fluent-radio-group
9325
9364
  *
9326
9365
  * @slot - The default slot for the radio group
9366
+ * @fires { Event } change - Fired when the selected radio changes.
9327
9367
  *
9328
9368
  * @public
9329
9369
  */
@@ -9586,7 +9626,7 @@ export declare const shadow8Brand = "var(--shadow8Brand)";
9586
9626
  * @slot thumb - The slot for a custom thumb element.
9587
9627
  * @csspart thumb-container - The container element of the thumb.
9588
9628
  * @csspart track-container - The container element of the track.
9589
- * @fires change - Fires a custom 'change' event when the value changes.
9629
+ * @fires { Event } change - Fires a custom 'change' event when the value changes.
9590
9630
  *
9591
9631
  * @public
9592
9632
  */
@@ -10321,6 +10361,7 @@ export { styles as MenuButtonStyles }
10321
10361
  * Based on BaseCheckbox and includes style and layout specific attributes
10322
10362
  *
10323
10363
  * @tag fluent-switch
10364
+ * @csspart checked-indicator - The internal switch indicator element.
10324
10365
  *
10325
10366
  */
10326
10367
  export declare class Switch extends BaseCheckbox {
@@ -10400,6 +10441,7 @@ export declare const TabDefinition: FASTElementDefinition<typeof Tab>;
10400
10441
  * A Tablist component.
10401
10442
  *
10402
10443
  * @tag fluent-tablist
10444
+ * @fires { Event } change - Fired when the active tab changes.
10403
10445
  *
10404
10446
  * @public
10405
10447
  */
@@ -10499,6 +10541,8 @@ export declare const TabTemplate: ElementViewTemplate<Tab, any>;
10499
10541
  *
10500
10542
  * @tag fluent-text
10501
10543
  *
10544
+ * @slot - The default slot for the text content of the component. Can be any valid HTML element, but is typically a semantic element such as a heading or paragraph.
10545
+ *
10502
10546
  * @public
10503
10547
  */
10504
10548
  declare class Text_2 extends FASTElement {
@@ -10766,6 +10810,8 @@ export declare type TextFont = ValuesOf<typeof TextFont>;
10766
10810
  * Based on BaseTextInput and includes style and layout specific attributes
10767
10811
  *
10768
10812
  * @tag fluent-text-input
10813
+ * @fires { Event } change - Fired when the input value is committed via a change event.
10814
+ * @fires { Event } select - Fires when the `select()` method is called.
10769
10815
  *
10770
10816
  * @public
10771
10817
  */
@@ -11057,6 +11103,8 @@ export declare const ToggleButtonTemplate: ElementViewTemplate<ToggleButton>;
11057
11103
  *
11058
11104
  * @tag fluent-tooltip
11059
11105
  *
11106
+ * @slot - The default slot. Accepts the content of the tooltip.
11107
+ *
11060
11108
  * @public
11061
11109
  */
11062
11110
  export declare class Tooltip extends FASTElement {
@@ -11251,6 +11299,21 @@ export declare const TreeDefinition: FASTElementDefinition<typeof Tree>;
11251
11299
  *
11252
11300
  * @tag fluent-tree-item
11253
11301
  *
11302
+ * @slot - The default slot. Accepts the content of the tree item.
11303
+ * @slot start - Content shown before the item label.
11304
+ * @slot end - Content shown after the item label.
11305
+ * @slot aside - Content shown at the far end of the row.
11306
+ * @slot item - Child tree items.
11307
+ *
11308
+ * @csspart positioning-region - The container for item content and aside regions.
11309
+ * @csspart content - The item content region.
11310
+ * @csspart chevron - The expand/collapse indicator region.
11311
+ * @csspart aside - The trailing aside region.
11312
+ * @csspart items - The child items group region.
11313
+ *
11314
+ * @fires { ToggleEvent } toggle - Fired when expanded state toggles.
11315
+ * @fires { Event } change - Fired when selected state changes.
11316
+ *
11254
11317
  */
11255
11318
  export declare class TreeItem extends BaseTreeItem {
11256
11319
  /**
@@ -6212,9 +6212,6 @@ class BaseButton extends FASTElement {
6212
6212
  * @public
6213
6213
  */
6214
6214
  BaseButton.formAssociated = true;
6215
- __decorateClass$H([
6216
- attr({ mode: "boolean" })
6217
- ], BaseButton.prototype, "autofocus", 2);
6218
6215
  __decorateClass$H([
6219
6216
  observable
6220
6217
  ], BaseButton.prototype, "defaultSlottedContent", 2);
@@ -6656,9 +6653,6 @@ class BaseCheckbox extends FASTElement {
6656
6653
  * @public
6657
6654
  */
6658
6655
  BaseCheckbox.formAssociated = true;
6659
- __decorateClass$F([
6660
- attr({ mode: "boolean" })
6661
- ], BaseCheckbox.prototype, "autofocus", 2);
6662
6656
  __decorateClass$F([
6663
6657
  observable
6664
6658
  ], BaseCheckbox.prototype, "disabled", 2);
@@ -7396,7 +7390,7 @@ __decorateClass$y([
7396
7390
  volatile
7397
7391
  ], Drawer.prototype, "dialogRole", 1);
7398
7392
 
7399
- const styles$t = css`${display("block")} :host{--dialog-backdrop:${colorBackgroundOverlay}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};color:${colorNeutralForeground1};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${colorTransparentStroke};border-inline-start-color:var(--drawer-separator,${colorTransparentStroke});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${shadow64};border:${strokeWidthThin} solid ${colorTransparentStroke};background:${colorNeutralBackground1}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${curveAccelerateMid}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${curveAccelerateMid}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};background:var(--dialog-backdrop,${colorBackgroundOverlay});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${curveLinear}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;
7393
+ const styles$t = css`${display("block")} :host{--dialog-backdrop:${colorBackgroundOverlay}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{background:${colorNeutralBackground1};border-radius:0;border:${strokeWidthThin} solid ${colorTransparentStroke};border-inline-end-color:${colorTransparentStroke};border-inline-start-color:var(--drawer-separator,${colorTransparentStroke});box-shadow:${shadow64};box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};height:100%;line-height:${lineHeightBase300};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${spacingHorizontalXXL});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${curveAccelerateMid}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${curveAccelerateMid}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};background:var(--dialog-backdrop,${colorBackgroundOverlay});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${curveLinear}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;
7400
7394
 
7401
7395
  function drawerTemplate() {
7402
7396
  return html`<dialog class=dialog part=dialog aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} aria-modal=${(x) => x.dialogModal} role=${(x) => x.dialogRole} size=${(x) => x.size} position=${(x) => x.position} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.cancelHandler()} ${ref("dialog")}><slot></slot></dialog>`;
@@ -13421,9 +13415,6 @@ BaseTextInput.formAssociated = true;
13421
13415
  __decorateClass$8([
13422
13416
  attr
13423
13417
  ], BaseTextInput.prototype, "autocomplete", 2);
13424
- __decorateClass$8([
13425
- attr({ mode: "boolean" })
13426
- ], BaseTextInput.prototype, "autofocus", 2);
13427
13418
  __decorateClass$8([
13428
13419
  attr({ attribute: "current-value" })
13429
13420
  ], BaseTextInput.prototype, "currentValue", 2);
@@ -13513,7 +13504,7 @@ applyMixins(TextInput, StartEnd);
13513
13504
  const styles$5 = css`${display("block")} :host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host([appearance='outline']:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host([control-size='small']) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host([control-size='small']) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host([control-size='large']) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host([control-size='large']) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host([appearance='underline']) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host([appearance='underline']:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='underline']:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host([appearance='filled-lighter']) .root{background:${colorNeutralBackground1}}:host([appearance='filled-darker']) .root{background:${colorNeutralBackground3}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
13514
13505
 
13515
13506
  function textInputTemplate(options = {}) {
13516
- return html`<template @focusin=${(x, c) => x.focusinHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><label part=label for=control class=label ${ref("controlLabel")}><slot ${slotted("defaultSlottedNodes")}></slot></label><div class=root part=root>${startSlotTemplate(options)} <input class=control part=control id=control @change=${(x, c) => x.changeHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} ?autofocus=${(x) => x.autofocus} autocomplete=${(x) => x.autocomplete} ?disabled=${(x) => x.disabled} list=${(x) => x.list} maxlength=${(x) => x.maxlength} minlength=${(x) => x.minlength} ?multiple=${(x) => x.multiple} name=${(x) => x.name} pattern=${(x) => x.pattern} placeholder=${(x) => x.placeholder} ?readonly=${(x) => x.readOnly} ?required=${(x) => x.required} size=${(x) => x.size} spellcheck=${(x) => x.spellcheck} type=${(x) => x.type} value=${(x) => x.value} ${ref("control")}> ${endSlotTemplate(options)}</div></template>`;
13507
+ return html`<template @focusin=${(x, c) => x.focusinHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><label part=label for=control class=label ${ref("controlLabel")}><slot ${slotted("defaultSlottedNodes")}></slot></label><div class=root part=root>${startSlotTemplate(options)} <input class=control part=control id=control @change=${(x, c) => x.changeHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} autocomplete=${(x) => x.autocomplete} ?disabled=${(x) => x.disabled} list=${(x) => x.list} maxlength=${(x) => x.maxlength} minlength=${(x) => x.minlength} ?multiple=${(x) => x.multiple} name=${(x) => x.name} pattern=${(x) => x.pattern} placeholder=${(x) => x.placeholder} ?readonly=${(x) => x.readOnly} ?required=${(x) => x.required} size=${(x) => x.size} spellcheck=${(x) => x.spellcheck} type=${(x) => x.type} value=${(x) => x.value} ${ref("control")}> ${endSlotTemplate(options)}</div></template>`;
13517
13508
  }
13518
13509
  const template$5 = textInputTemplate();
13519
13510