@fluentui/web-components 3.0.0-beta.22 → 3.0.0-beta.24

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 (189) hide show
  1. package/CHANGELOG.md +23 -2
  2. package/dist/dts/accordion/accordion.bench.d.ts +3 -0
  3. package/dist/dts/accordion/accordion.options.d.ts +1 -1
  4. package/dist/dts/accordion-item/accordion-item.bench.d.ts +3 -0
  5. package/dist/dts/accordion-item/accordion-item.d.ts +1 -1
  6. package/dist/dts/accordion-item/accordion-item.options.d.ts +2 -2
  7. package/dist/dts/anchor-button/anchor-button.bench.d.ts +3 -0
  8. package/dist/dts/anchor-button/anchor-button.d.ts +1 -1
  9. package/dist/dts/anchor-button/anchor-button.options.d.ts +4 -4
  10. package/dist/dts/avatar/avatar.bench.d.ts +3 -0
  11. package/dist/dts/avatar/avatar.options.d.ts +6 -6
  12. package/dist/dts/badge/badge.bench.d.ts +3 -0
  13. package/dist/dts/badge/badge.options.d.ts +5 -5
  14. package/dist/dts/button/button.bench.d.ts +3 -0
  15. package/dist/dts/button/button.options.d.ts +6 -6
  16. package/dist/dts/checkbox/checkbox.bench.d.ts +3 -0
  17. package/dist/dts/checkbox/checkbox.d.ts +1 -1
  18. package/dist/dts/checkbox/checkbox.options.d.ts +3 -3
  19. package/dist/dts/compound-button/compound-button.bench.d.ts +3 -0
  20. package/dist/dts/compound-button/compound-button.options.d.ts +3 -3
  21. package/dist/dts/counter-badge/counter-badge.bench.d.ts +3 -0
  22. package/dist/dts/counter-badge/counter-badge.options.d.ts +5 -5
  23. package/dist/dts/dialog/dialog.bench.d.ts +3 -0
  24. package/dist/dts/dialog/dialog.d.ts +11 -144
  25. package/dist/dts/dialog/dialog.options.d.ts +2 -2
  26. package/dist/dts/dialog/index.d.ts +1 -1
  27. package/dist/dts/dialog-body/define.d.ts +1 -0
  28. package/dist/dts/dialog-body/dialog-body.bench.d.ts +3 -0
  29. package/dist/dts/dialog-body/dialog-body.d.ts +14 -0
  30. package/dist/dts/dialog-body/dialog-body.definition.d.ts +9 -0
  31. package/dist/dts/dialog-body/dialog-body.styles.d.ts +4 -0
  32. package/dist/dts/dialog-body/dialog-body.template.d.ts +6 -0
  33. package/dist/dts/dialog-body/index.d.ts +4 -0
  34. package/dist/dts/divider/divider.bench.d.ts +3 -0
  35. package/dist/dts/divider/divider.options.d.ts +4 -4
  36. package/dist/dts/form-associated/form-associated.d.ts +4 -4
  37. package/dist/dts/image/image.bench.d.ts +3 -0
  38. package/dist/dts/image/image.options.d.ts +2 -2
  39. package/dist/dts/index-rollup.d.ts +1 -0
  40. package/dist/dts/index.d.ts +2 -1
  41. package/dist/dts/label/label.bench.d.ts +3 -0
  42. package/dist/dts/label/label.options.d.ts +2 -2
  43. package/dist/dts/menu/menu.bench.d.ts +3 -0
  44. package/dist/dts/menu-button/menu-button.bench.d.ts +3 -0
  45. package/dist/dts/menu-button/menu-button.options.d.ts +3 -3
  46. package/dist/dts/menu-item/menu-item.bench.d.ts +3 -0
  47. package/dist/dts/menu-item/menu-item.d.ts +2 -2
  48. package/dist/dts/menu-item/menu-item.options.d.ts +1 -1
  49. package/dist/dts/menu-list/menu-list.bench.d.ts +3 -0
  50. package/dist/dts/patterns/start-end.d.ts +3 -3
  51. package/dist/dts/progress-bar/progress-bar.bench.d.ts +3 -0
  52. package/dist/dts/progress-bar/progress-bar.options.d.ts +4 -4
  53. package/dist/dts/radio/radio.bench.d.ts +3 -0
  54. package/dist/dts/radio/radio.d.ts +2 -2
  55. package/dist/dts/radio-group/radio-group.bench.d.ts +3 -0
  56. package/dist/dts/radio-group/radio-group.options.d.ts +1 -1
  57. package/dist/dts/slider/slider.bench.d.ts +3 -0
  58. package/dist/dts/slider/slider.options.d.ts +4 -4
  59. package/dist/dts/spinner/spinner.bench.d.ts +3 -0
  60. package/dist/dts/spinner/spinner.options.d.ts +2 -2
  61. package/dist/dts/switch/switch.bench.d.ts +3 -0
  62. package/dist/dts/switch/switch.d.ts +1 -1
  63. package/dist/dts/switch/switch.options.d.ts +1 -1
  64. package/dist/dts/tab/tab.bench.d.ts +3 -0
  65. package/dist/dts/tab/tab.d.ts +1 -1
  66. package/dist/dts/tab-panel/tab-panel.bench.d.ts +3 -0
  67. package/dist/dts/tabs/tabs.bench.d.ts +3 -0
  68. package/dist/dts/tabs/tabs.options.d.ts +4 -4
  69. package/dist/dts/text/text.bench.d.ts +3 -0
  70. package/dist/dts/text/text.options.d.ts +4 -4
  71. package/dist/dts/text-input/text-input.bench.d.ts +3 -0
  72. package/dist/dts/text-input/text-input.d.ts +0 -1
  73. package/dist/dts/text-input/text-input.options.d.ts +4 -4
  74. package/dist/dts/toggle-button/toggle-button.bench.d.ts +3 -0
  75. package/dist/dts/toggle-button/toggle-button.options.d.ts +3 -3
  76. package/dist/dts/utils/behaviors/match-media-stylesheet-behavior.d.ts +1 -1
  77. package/dist/dts/utils/display.d.ts +1 -1
  78. package/dist/dts/utils/template-helpers.d.ts +1 -1
  79. package/dist/dts/utils/typings.d.ts +1 -1
  80. package/dist/esm/accordion/accordion.bench.js +30 -0
  81. package/dist/esm/accordion/accordion.bench.js.map +1 -0
  82. package/dist/esm/accordion-item/accordion-item.bench.js +14 -0
  83. package/dist/esm/accordion-item/accordion-item.bench.js.map +1 -0
  84. package/dist/esm/anchor-button/anchor-button.bench.js +11 -0
  85. package/dist/esm/anchor-button/anchor-button.bench.js.map +1 -0
  86. package/dist/esm/avatar/avatar.bench.js +10 -0
  87. package/dist/esm/avatar/avatar.bench.js.map +1 -0
  88. package/dist/esm/badge/badge.bench.js +11 -0
  89. package/dist/esm/badge/badge.bench.js.map +1 -0
  90. package/dist/esm/button/button.bench.js +11 -0
  91. package/dist/esm/button/button.bench.js.map +1 -0
  92. package/dist/esm/button/button.js +26 -26
  93. package/dist/esm/button/button.js.map +1 -1
  94. package/dist/esm/button/button.styles.js +27 -27
  95. package/dist/esm/button/button.styles.js.map +1 -1
  96. package/dist/esm/checkbox/checkbox.bench.js +11 -0
  97. package/dist/esm/checkbox/checkbox.bench.js.map +1 -0
  98. package/dist/esm/compound-button/compound-button.bench.js +15 -0
  99. package/dist/esm/compound-button/compound-button.bench.js.map +1 -0
  100. package/dist/esm/counter-badge/counter-badge.bench.js +11 -0
  101. package/dist/esm/counter-badge/counter-badge.bench.js.map +1 -0
  102. package/dist/esm/dialog/dialog.bench.js +11 -0
  103. package/dist/esm/dialog/dialog.bench.js.map +1 -0
  104. package/dist/esm/dialog/dialog.js +31 -304
  105. package/dist/esm/dialog/dialog.js.map +1 -1
  106. package/dist/esm/dialog/dialog.options.js +1 -1
  107. package/dist/esm/dialog/dialog.options.js.map +1 -1
  108. package/dist/esm/dialog/dialog.styles.js +61 -84
  109. package/dist/esm/dialog/dialog.styles.js.map +1 -1
  110. package/dist/esm/dialog/dialog.template.js +17 -54
  111. package/dist/esm/dialog/dialog.template.js.map +1 -1
  112. package/dist/esm/dialog/index.js +1 -1
  113. package/dist/esm/dialog/index.js.map +1 -1
  114. package/dist/esm/dialog-body/define.js +4 -0
  115. package/dist/esm/dialog-body/define.js.map +1 -0
  116. package/dist/esm/dialog-body/dialog-body.bench.js +11 -0
  117. package/dist/esm/dialog-body/dialog-body.bench.js.map +1 -0
  118. package/dist/esm/dialog-body/dialog-body.definition.js +17 -0
  119. package/dist/esm/dialog-body/dialog-body.definition.js.map +1 -0
  120. package/dist/esm/dialog-body/dialog-body.js +22 -0
  121. package/dist/esm/dialog-body/dialog-body.js.map +1 -0
  122. package/dist/esm/dialog-body/dialog-body.styles.js +79 -0
  123. package/dist/esm/dialog-body/dialog-body.styles.js.map +1 -0
  124. package/dist/esm/dialog-body/dialog-body.template.js +42 -0
  125. package/dist/esm/dialog-body/dialog-body.template.js.map +1 -0
  126. package/dist/esm/dialog-body/index.js +5 -0
  127. package/dist/esm/dialog-body/index.js.map +1 -0
  128. package/dist/esm/divider/divider.bench.js +10 -0
  129. package/dist/esm/divider/divider.bench.js.map +1 -0
  130. package/dist/esm/form-associated/form-associated.js +66 -66
  131. package/dist/esm/form-associated/form-associated.js.map +1 -1
  132. package/dist/esm/image/image.bench.js +14 -0
  133. package/dist/esm/image/image.bench.js.map +1 -0
  134. package/dist/esm/index-rollup.js +1 -0
  135. package/dist/esm/index-rollup.js.map +1 -1
  136. package/dist/esm/index.js +2 -1
  137. package/dist/esm/index.js.map +1 -1
  138. package/dist/esm/label/label.bench.js +11 -0
  139. package/dist/esm/label/label.bench.js.map +1 -0
  140. package/dist/esm/menu/menu.bench.js +31 -0
  141. package/dist/esm/menu/menu.bench.js.map +1 -0
  142. package/dist/esm/menu-button/menu-button.bench.js +11 -0
  143. package/dist/esm/menu-button/menu-button.bench.js.map +1 -0
  144. package/dist/esm/menu-item/menu-item.bench.js +11 -0
  145. package/dist/esm/menu-item/menu-item.bench.js.map +1 -0
  146. package/dist/esm/menu-list/menu-list.bench.js +21 -0
  147. package/dist/esm/menu-list/menu-list.bench.js.map +1 -0
  148. package/dist/esm/progress-bar/progress-bar.bench.js +10 -0
  149. package/dist/esm/progress-bar/progress-bar.bench.js.map +1 -0
  150. package/dist/esm/radio/radio.bench.js +11 -0
  151. package/dist/esm/radio/radio.bench.js.map +1 -0
  152. package/dist/esm/radio/radio.js +11 -11
  153. package/dist/esm/radio/radio.js.map +1 -1
  154. package/dist/esm/radio-group/radio-group.bench.js +21 -0
  155. package/dist/esm/radio-group/radio-group.bench.js.map +1 -0
  156. package/dist/esm/slider/slider.bench.js +10 -0
  157. package/dist/esm/slider/slider.bench.js.map +1 -0
  158. package/dist/esm/slider/slider.template.js +1 -1
  159. package/dist/esm/slider/slider.template.js.map +1 -1
  160. package/dist/esm/spinner/spinner.bench.js +10 -0
  161. package/dist/esm/spinner/spinner.bench.js.map +1 -0
  162. package/dist/esm/switch/switch.bench.js +11 -0
  163. package/dist/esm/switch/switch.bench.js.map +1 -0
  164. package/dist/esm/switch/switch.js +5 -5
  165. package/dist/esm/switch/switch.js.map +1 -1
  166. package/dist/esm/tab/tab.bench.js +11 -0
  167. package/dist/esm/tab/tab.bench.js.map +1 -0
  168. package/dist/esm/tab-panel/tab-panel.bench.js +13 -0
  169. package/dist/esm/tab-panel/tab-panel.bench.js.map +1 -0
  170. package/dist/esm/tabs/tabs.bench.js +32 -0
  171. package/dist/esm/tabs/tabs.bench.js.map +1 -0
  172. package/dist/esm/text/text.bench.js +13 -0
  173. package/dist/esm/text/text.bench.js.map +1 -0
  174. package/dist/esm/text-input/text-input.bench.js +10 -0
  175. package/dist/esm/text-input/text-input.bench.js.map +1 -0
  176. package/dist/esm/theme/set-theme.js +10 -1
  177. package/dist/esm/theme/set-theme.js.map +1 -1
  178. package/dist/esm/toggle-button/toggle-button.bench.js +11 -0
  179. package/dist/esm/toggle-button/toggle-button.bench.js.map +1 -0
  180. package/dist/web-components.d.ts +51 -151
  181. package/dist/web-components.js +264 -838
  182. package/dist/web-components.min.js +235 -237
  183. package/package.json +15 -1
  184. package/dist/fluent-web-components.api.json +0 -29528
  185. package/docs/api-report.md +0 -3366
  186. package/playwright.config.ts +0 -24
  187. package/project.json +0 -6
  188. package/tensile.config.js +0 -22
  189. package/tsdoc.json +0 -44
package/CHANGELOG.md CHANGED
@@ -1,12 +1,33 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- This log was last generated on Mon, 03 Jun 2024 04:06:46 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 06 Jun 2024 04:06:09 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [3.0.0-beta.24](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.24)
8
+
9
+ Thu, 06 Jun 2024 04:06:09 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.23..@fluentui/web-components_v3.0.0-beta.24)
11
+
12
+ ### Changes
13
+
14
+ - add @floating-ui/dom as a dependency ([PR #31590](https://github.com/microsoft/fluentui/pull/31590) by zacky.ma@microsoft.com)
15
+ - fix disabled button styles ([PR #31585](https://github.com/microsoft/fluentui/pull/31585) by rupertdavid@microsoft.com)
16
+
17
+ ## [3.0.0-beta.23](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.23)
18
+
19
+ Wed, 05 Jun 2024 04:06:41 GMT
20
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.22..@fluentui/web-components_v3.0.0-beta.23)
21
+
22
+ ### Changes
23
+
24
+ - chore: migrate to package.json#files for npm publish scope" ([PR #31519](https://github.com/microsoft/fluentui/pull/31519) by martinhochel@microsoft.com)
25
+ - Refactor fluent-dialog and add fluent-dialog-body ([PR #31512](https://github.com/microsoft/fluentui/pull/31512) by rupertdavid@microsoft.com)
26
+ - fix(web-components): remove tabindex from slider thumb causing duplicate focus regions ([PR #31402](https://github.com/microsoft/fluentui/pull/31402) by 13071055+chrisdholt@users.noreply.github.com)
27
+
7
28
  ## [3.0.0-beta.22](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.22)
8
29
 
9
- Mon, 03 Jun 2024 04:06:46 GMT
30
+ Mon, 03 Jun 2024 04:06:55 GMT
10
31
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.21..@fluentui/web-components_v3.0.0-beta.22)
11
32
 
12
33
  ### Changes
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -11,4 +11,4 @@ export declare const AccordionExpandMode: {
11
11
  * Type for the {@link Accordion} Expand Mode
12
12
  * @public
13
13
  */
14
- export declare type AccordionExpandMode = ValuesOf<typeof AccordionExpandMode>;
14
+ export type AccordionExpandMode = ValuesOf<typeof AccordionExpandMode>;
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -7,7 +7,7 @@ import { AccordionItemExpandIconPosition, AccordionItemSize } from './accordion-
7
7
  * Accordion Item configuration options
8
8
  * @public
9
9
  */
10
- export declare type AccordionItemOptions = StartEndOptions<AccordionItem> & {
10
+ export type AccordionItemOptions = StartEndOptions<AccordionItem> & {
11
11
  expandedIcon?: StaticallyComposableHTML<AccordionItem>;
12
12
  collapsedIcon?: StaticallyComposableHTML<AccordionItem>;
13
13
  };
@@ -12,7 +12,7 @@ export declare const AccordionItemSize: {
12
12
  * Applies font size to accordion header
13
13
  * @public
14
14
  */
15
- export declare type AccordionItemSize = ValuesOf<typeof AccordionItemSize>;
15
+ export type AccordionItemSize = ValuesOf<typeof AccordionItemSize>;
16
16
  /**
17
17
  * An Accordion Item expand/collapse icon can appear at the start or end of the accordion
18
18
  */
@@ -24,4 +24,4 @@ export declare const AccordionItemExpandIconPosition: {
24
24
  * Applies expand/collapse icon position
25
25
  * @public
26
26
  */
27
- export declare type AccordionItemExpandIconPosition = ValuesOf<typeof AccordionItemExpandIconPosition>;
27
+ export type AccordionItemExpandIconPosition = ValuesOf<typeof AccordionItemExpandIconPosition>;
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -6,7 +6,7 @@ import type { AnchorButtonAppearance, AnchorButtonShape, AnchorButtonSize, Ancho
6
6
  * Anchor configuration options
7
7
  * @public
8
8
  */
9
- export declare type AnchorOptions = StartEndOptions<AnchorButton>;
9
+ export type AnchorOptions = StartEndOptions<AnchorButton>;
10
10
  /**
11
11
  * An Anchor Custom HTML Element.
12
12
  * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
@@ -15,7 +15,7 @@ export declare const AnchorButtonAppearance: {
15
15
  * An Anchor Button can be secondary, primary, outline, subtle, transparent
16
16
  * @public
17
17
  */
18
- export declare type AnchorButtonAppearance = ValuesOf<typeof AnchorButtonAppearance>;
18
+ export type AnchorButtonAppearance = ValuesOf<typeof AnchorButtonAppearance>;
19
19
  /**
20
20
  * An Anchor Button can be square, circular or rounded.
21
21
  * @public
@@ -29,7 +29,7 @@ export declare const AnchorButtonShape: {
29
29
  * An Anchor Button can be square, circular or rounded
30
30
  * @public
31
31
  */
32
- export declare type AnchorButtonShape = ValuesOf<typeof AnchorButtonShape>;
32
+ export type AnchorButtonShape = ValuesOf<typeof AnchorButtonShape>;
33
33
  /**
34
34
  * An Anchor Button can be a size of small, medium or large.
35
35
  * @public
@@ -43,7 +43,7 @@ export declare const AnchorButtonSize: {
43
43
  * An Anchor Button can be on of several preset sizes.
44
44
  * @public
45
45
  */
46
- export declare type AnchorButtonSize = ValuesOf<typeof AnchorButtonSize>;
46
+ export type AnchorButtonSize = ValuesOf<typeof AnchorButtonSize>;
47
47
  export { AnchorOptions as AnchorButtonOptions };
48
48
  /**
49
49
  * Anchor target values.
@@ -61,4 +61,4 @@ export declare const AnchorTarget: {
61
61
  *
62
62
  * @public
63
63
  */
64
- export declare type AnchorTarget = ValuesOf<typeof AnchorTarget>;
64
+ export type AnchorTarget = ValuesOf<typeof AnchorTarget>;
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -9,7 +9,7 @@ export declare const AvatarActive: {
9
9
  /**
10
10
  * The types of Avatar active state
11
11
  */
12
- export declare type AvatarActive = ValuesOf<typeof AvatarActive>;
12
+ export type AvatarActive = ValuesOf<typeof AvatarActive>;
13
13
  /**
14
14
  * The Avatar Shape
15
15
  */
@@ -20,7 +20,7 @@ export declare const AvatarShape: {
20
20
  /**
21
21
  * The types of Avatar Shape
22
22
  */
23
- export declare type AvatarShape = ValuesOf<typeof AvatarShape>;
23
+ export type AvatarShape = ValuesOf<typeof AvatarShape>;
24
24
  /**
25
25
  * The Avatar Appearance when "active"
26
26
  */
@@ -32,7 +32,7 @@ export declare const AvatarAppearance: {
32
32
  /**
33
33
  * The appearance when "active"
34
34
  */
35
- export declare type AvatarAppearance = ValuesOf<typeof AvatarAppearance>;
35
+ export type AvatarAppearance = ValuesOf<typeof AvatarAppearance>;
36
36
  /**
37
37
  * A specific named color for the Avatar
38
38
  */
@@ -72,7 +72,7 @@ export declare const AvatarNamedColor: {
72
72
  * An avatar can be one of named colors
73
73
  * @public
74
74
  */
75
- export declare type AvatarNamedColor = ValuesOf<typeof AvatarNamedColor>;
75
+ export type AvatarNamedColor = ValuesOf<typeof AvatarNamedColor>;
76
76
  /**
77
77
  * Supported Avatar colors
78
78
  */
@@ -114,7 +114,7 @@ export declare const AvatarColor: {
114
114
  /**
115
115
  * The Avatar Color
116
116
  */
117
- export declare type AvatarColor = ValuesOf<typeof AvatarColor>;
117
+ export type AvatarColor = ValuesOf<typeof AvatarColor>;
118
118
  /**
119
119
  * The Avatar Sizes
120
120
  * @public
@@ -139,4 +139,4 @@ export declare const AvatarSize: {
139
139
  * A Avatar can be on of several preset sizes.
140
140
  * @public
141
141
  */
142
- export declare type AvatarSize = ValuesOf<typeof AvatarSize>;
142
+ export type AvatarSize = ValuesOf<typeof AvatarSize>;
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -4,7 +4,7 @@ import type { Badge } from './badge.js';
4
4
  /**
5
5
  * @internal - marking as internal update when Badge PR for start/end is in
6
6
  */
7
- export declare type BadgeOptions = StartEndOptions<Badge> & {
7
+ export type BadgeOptions = StartEndOptions<Badge> & {
8
8
  defaultContent?: StaticallyComposableHTML;
9
9
  };
10
10
  /**
@@ -21,7 +21,7 @@ export declare const BadgeAppearance: {
21
21
  * A Badge can be filled, outline, ghost, inverted
22
22
  * @public
23
23
  */
24
- export declare type BadgeAppearance = ValuesOf<typeof BadgeAppearance>;
24
+ export type BadgeAppearance = ValuesOf<typeof BadgeAppearance>;
25
25
  /**
26
26
  * BadgeColor constants
27
27
  * @public
@@ -40,7 +40,7 @@ export declare const BadgeColor: {
40
40
  * A Badge can be one of preset colors
41
41
  * @public
42
42
  */
43
- export declare type BadgeColor = ValuesOf<typeof BadgeColor>;
43
+ export type BadgeColor = ValuesOf<typeof BadgeColor>;
44
44
  /**
45
45
  * A Badge can be square, circular or rounded.
46
46
  * @public
@@ -54,7 +54,7 @@ export declare const BadgeShape: {
54
54
  * A Badge can be one of preset colors
55
55
  * @public
56
56
  */
57
- export declare type BadgeShape = ValuesOf<typeof BadgeShape>;
57
+ export type BadgeShape = ValuesOf<typeof BadgeShape>;
58
58
  /**
59
59
  * A Badge can be square, circular or rounded.
60
60
  * @public
@@ -71,4 +71,4 @@ export declare const BadgeSize: {
71
71
  * A Badge can be on of several preset sizes.
72
72
  * @public
73
73
  */
74
- export declare type BadgeSize = ValuesOf<typeof BadgeSize>;
74
+ export type BadgeSize = ValuesOf<typeof BadgeSize>;
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -16,7 +16,7 @@ export declare const ButtonAppearance: {
16
16
  * A Button can be secondary, primary, outline, subtle, transparent
17
17
  * @public
18
18
  */
19
- export declare type ButtonAppearance = ValuesOf<typeof ButtonAppearance>;
19
+ export type ButtonAppearance = ValuesOf<typeof ButtonAppearance>;
20
20
  /**
21
21
  * A Button can be square, circular or rounded.
22
22
  * @public
@@ -30,7 +30,7 @@ export declare const ButtonShape: {
30
30
  * A Button can be square, circular or rounded
31
31
  * @public
32
32
  */
33
- export declare type ButtonShape = ValuesOf<typeof ButtonShape>;
33
+ export type ButtonShape = ValuesOf<typeof ButtonShape>;
34
34
  /**
35
35
  * A Button can be a size of small, medium or large.
36
36
  * @public
@@ -44,7 +44,7 @@ export declare const ButtonSize: {
44
44
  * A Button can be on of several preset sizes.
45
45
  * @public
46
46
  */
47
- export declare type ButtonSize = ValuesOf<typeof ButtonSize>;
47
+ export type ButtonSize = ValuesOf<typeof ButtonSize>;
48
48
  /**
49
49
  * Button type values.
50
50
  *
@@ -60,12 +60,12 @@ export declare const ButtonType: {
60
60
  *
61
61
  * @public
62
62
  */
63
- export declare type ButtonType = ValuesOf<typeof ButtonType>;
63
+ export type ButtonType = ValuesOf<typeof ButtonType>;
64
64
  /**
65
65
  * Button configuration options.
66
66
  * @public
67
67
  */
68
- export declare type ButtonOptions = StartEndOptions<Button>;
68
+ export type ButtonOptions = StartEndOptions<Button>;
69
69
  /**
70
70
  * Button `formtarget` attribute values.
71
71
  * @public
@@ -80,4 +80,4 @@ export declare const ButtonFormTarget: {
80
80
  * Types for the `formtarget` attribute values.
81
81
  * @public
82
82
  */
83
- export declare type ButtonFormTarget = ValuesOf<typeof ButtonFormTarget>;
83
+ export type ButtonFormTarget = ValuesOf<typeof ButtonFormTarget>;
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -5,7 +5,7 @@ import { CheckboxLabelPosition, CheckboxShape, CheckboxSize } from './checkbox.o
5
5
  * Checkbox configuration options
6
6
  * @public
7
7
  */
8
- export declare type CheckboxOptions = {
8
+ export type CheckboxOptions = {
9
9
  checkedIndicator?: StaticallyComposableHTML<Checkbox>;
10
10
  indeterminateIndicator?: StaticallyComposableHTML<Checkbox>;
11
11
  };
@@ -7,7 +7,7 @@ export declare const CheckboxShape: {
7
7
  readonly circular: "circular";
8
8
  readonly square: "square";
9
9
  };
10
- export declare type CheckboxShape = ValuesOf<typeof CheckboxShape>;
10
+ export type CheckboxShape = ValuesOf<typeof CheckboxShape>;
11
11
  /**
12
12
  * Checkbox size
13
13
  * @public
@@ -16,7 +16,7 @@ export declare const CheckboxSize: {
16
16
  readonly medium: "medium";
17
17
  readonly large: "large";
18
18
  };
19
- export declare type CheckboxSize = ValuesOf<typeof CheckboxSize>;
19
+ export type CheckboxSize = ValuesOf<typeof CheckboxSize>;
20
20
  /**
21
21
  * Checkbox label position
22
22
  * @public
@@ -25,4 +25,4 @@ export declare const CheckboxLabelPosition: {
25
25
  readonly before: "before";
26
26
  readonly after: "after";
27
27
  };
28
- export declare type CheckboxLabelPosition = ValuesOf<typeof CheckboxLabelPosition>;
28
+ export type CheckboxLabelPosition = ValuesOf<typeof CheckboxLabelPosition>;
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -19,7 +19,7 @@ export declare const CompoundButtonAppearance: {
19
19
  * A Compound Button can be secondary, primary, outline, subtle, transparent
20
20
  * @public
21
21
  */
22
- export declare type CompoundButtonAppearance = ValuesOf<typeof CompoundButtonAppearance>;
22
+ export type CompoundButtonAppearance = ValuesOf<typeof CompoundButtonAppearance>;
23
23
  /**
24
24
  * A Compound Button can be square, circular or rounded.
25
25
  * @public
@@ -33,7 +33,7 @@ export declare const CompoundButtonShape: {
33
33
  * A Compound Button can be square, circular or rounded
34
34
  * @public
35
35
  */
36
- export declare type CompoundButtonShape = ValuesOf<typeof CompoundButtonShape>;
36
+ export type CompoundButtonShape = ValuesOf<typeof CompoundButtonShape>;
37
37
  /**
38
38
  * A Compound Button can be a size of small, medium or large.
39
39
  * @public
@@ -47,5 +47,5 @@ export declare const CompoundButtonSize: {
47
47
  * A Compound Button can be on of several preset sizes.
48
48
  * @public
49
49
  */
50
- export declare type CompoundButtonSize = ValuesOf<typeof CompoundButtonSize>;
50
+ export type CompoundButtonSize = ValuesOf<typeof CompoundButtonSize>;
51
51
  export { ButtonOptions as CompoundButtonOptions };
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -4,7 +4,7 @@ import type { ValuesOf } from '../utils/index.js';
4
4
  * CounterBadge options
5
5
  * @public
6
6
  */
7
- export declare type CounterBadgeOptions = BadgeOptions;
7
+ export type CounterBadgeOptions = BadgeOptions;
8
8
  /**
9
9
  * CounterBadgeAppearance constants
10
10
  * @public
@@ -17,7 +17,7 @@ export declare const CounterBadgeAppearance: {
17
17
  * A CounterBadge can have an appearance of filled or ghost
18
18
  * @public
19
19
  */
20
- export declare type CounterBadgeAppearance = ValuesOf<typeof CounterBadgeAppearance>;
20
+ export type CounterBadgeAppearance = ValuesOf<typeof CounterBadgeAppearance>;
21
21
  /**
22
22
  * CounterBadgeColor constants
23
23
  * @public
@@ -36,7 +36,7 @@ export declare const CounterBadgeColor: {
36
36
  * A CounterBadge can be one of preset colors
37
37
  * @public
38
38
  */
39
- export declare type CounterBadgeColor = ValuesOf<typeof CounterBadgeColor>;
39
+ export type CounterBadgeColor = ValuesOf<typeof CounterBadgeColor>;
40
40
  /**
41
41
  * A CounterBadge shape can be circular or rounded.
42
42
  * @public
@@ -49,7 +49,7 @@ export declare const CounterBadgeShape: {
49
49
  * A CounterBadge can be one of preset colors
50
50
  * @public
51
51
  */
52
- export declare type CounterBadgeShape = ValuesOf<typeof CounterBadgeShape>;
52
+ export type CounterBadgeShape = ValuesOf<typeof CounterBadgeShape>;
53
53
  /**
54
54
  * A CounterBadge can be square, circular or rounded.
55
55
  * @public
@@ -66,4 +66,4 @@ export declare const CounterBadgeSize: {
66
66
  * A CounterBadge can be on of several preset sizes.
67
67
  * @public
68
68
  */
69
- export declare type CounterBadgeSize = ValuesOf<typeof CounterBadgeSize>;
69
+ export type CounterBadgeSize = ValuesOf<typeof CounterBadgeSize>;
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -1,42 +1,16 @@
1
1
  import { FASTElement } from '@microsoft/fast-element';
2
- import { Button as FluentButton } from '../button/button.js';
3
- import { DialogModalType } from './dialog.options.js';
2
+ import { DialogType } from './dialog.options.js';
4
3
  /**
5
4
  * A Dialog Custom HTML Element.
6
5
  *
7
6
  * @public
8
7
  */
9
8
  export declare class Dialog extends FASTElement {
10
- /**
11
- * @internal
12
- * Indicates whether focus is being trapped within the dialog
13
- */
14
- private isTrappingFocus;
15
- /**
16
- * @public
17
- * Lifecycle method called when the element is connected to the DOM
18
- */
19
- connectedCallback(): void;
20
- /**
21
- * @public
22
- * Lifecycle method called when the element is disconnected from the DOM
23
- */
24
- disconnectedCallback(): void;
25
9
  /**
26
10
  * @public
27
11
  * The dialog element
28
12
  */
29
13
  dialog: HTMLDialogElement;
30
- /**
31
- * @public
32
- * The title action elements
33
- */
34
- titleAction: HTMLElement[];
35
- /**
36
- * @public
37
- * The default title action button
38
- */
39
- defaultTitleAction?: FluentButton;
40
14
  /**
41
15
  * @public
42
16
  * The ID of the element that describes the dialog
@@ -51,43 +25,19 @@ export declare class Dialog extends FASTElement {
51
25
  * @public
52
26
  * The type of the dialog modal
53
27
  */
54
- modalType: DialogModalType;
55
- /**
56
- * @public
57
- * Indicates whether the dialog is open
58
- */
59
- open: boolean;
60
- /**
61
- * @public
62
- * Indicates whether the dialog has a title action
63
- */
64
- noTitleAction: boolean;
65
- /**
66
- * @internal
67
- * Indicates whether focus should be trapped within the dialog
68
- */
69
- private trapFocus;
28
+ type: DialogType;
70
29
  /**
71
30
  * @public
72
- * Method called when the 'open' attribute changes
31
+ * Method to emit an event before the dialog's open state changes
32
+ * HTML spec proposal: https://github.com/whatwg/html/issues/9733
73
33
  */
74
- openChanged(oldValue: boolean, newValue: boolean): void;
34
+ emitBeforeToggle: () => void;
75
35
  /**
76
36
  * @public
77
- * Method called when the 'modalType' attribute changes
37
+ * Method to emit an event after the dialog's open state changes
38
+ * HTML spec proposal: https://github.com/whatwg/html/issues/9733
78
39
  */
79
- modalTypeChanged(oldValue: DialogModalType, newValue: DialogModalType): void;
80
- /**
81
- * @public
82
- * Method to set the component's state based on its attributes
83
- */
84
- setComponent(): void;
85
- /**
86
- * @public
87
- * Method to emit an event when the dialog's open state changes
88
- * @param dismissed - Indicates whether the dialog was dismissed
89
- */
90
- onOpenChangeEvent: (dismissed?: boolean) => void;
40
+ emitToggle: () => void;
91
41
  /**
92
42
  * @public
93
43
  * Method to show the dialog
@@ -96,96 +46,13 @@ export declare class Dialog extends FASTElement {
96
46
  /**
97
47
  * @public
98
48
  * Method to hide the dialog
99
- * @param dismissed - Indicates whether the dialog was dismissed
100
- */
101
- hide(dismissed?: boolean): void;
102
- /**
103
- * @public
104
- * Method to dismiss the dialog
105
49
  */
106
- dismiss(): void;
50
+ hide(): void;
107
51
  /**
108
52
  * @public
109
- * Handles click events on the dialog
53
+ * Handles click events on the dialog overlay for light-dismiss
110
54
  * @param event - The click event
111
55
  * @returns boolean
112
56
  */
113
- handleClick(event: Event): boolean;
114
- /**
115
- * @public
116
- * Handles keydown events on the dialog
117
- * @param e - The keydown event
118
- * @returns boolean | void
119
- */
120
- handleKeydown: (e: KeyboardEvent) => boolean | void;
121
- /**
122
- * @internal
123
- * Handles keydown events on the document
124
- * @param e - The keydown event
125
- */
126
- private handleDocumentKeydown;
127
- /**
128
- * @internal
129
- * Handles tab keydown events
130
- * @param e - The keydown event
131
- */
132
- private handleTabKeyDown;
133
- /**
134
- * @internal
135
- * Gets the bounds of the tab queue
136
- * @returns (HTMLElement | SVGElement)[]
137
- */
138
- private getTabQueueBounds;
139
- /**
140
- * @internal
141
- * Focuses the first element in the tab queue
142
- */
143
- private focusFirstElement;
144
- /**
145
- * @internal
146
- * Determines if focus should be forced
147
- * @param currentFocusElement - The currently focused element
148
- * @returns boolean
149
- */
150
- private shouldForceFocus;
151
- /**
152
- * @internal
153
- * Determines if focus should be trapped
154
- * @returns boolean
155
- */
156
- private shouldTrapFocus;
157
- /**
158
- * @internal
159
- * Handles focus events on the document
160
- * @param e - The focus event
161
- */
162
- private handleDocumentFocus;
163
- /**
164
- * @internal
165
- * Updates the state of focus trapping
166
- * @param shouldTrapFocusOverride - Optional override for whether focus should be trapped
167
- */
168
- private updateTrapFocus;
169
- /**
170
- * @internal
171
- * Reduces the list of tabbable items
172
- * @param elements - The current list of elements
173
- * @param element - The element to consider adding to the list
174
- * @returns HTMLElement[]
175
- */
176
- private static reduceTabbableItems;
177
- /**
178
- * @internal
179
- * Determines if an element is a focusable FASTElement
180
- * @param element - The element to check
181
- * @returns boolean
182
- */
183
- private static isFocusableFastElement;
184
- /**
185
- * @internal
186
- * Determines if an element has a tabbable shadow
187
- * @param element - The element to check
188
- * @returns boolean
189
- */
190
- private static hasTabbableShadow;
57
+ clickHandler(event: Event): boolean;
191
58
  }
@@ -3,9 +3,9 @@ import type { ValuesOf } from '../utils/index.js';
3
3
  * Dialog modal type
4
4
  * @public
5
5
  */
6
- export declare const DialogModalType: {
6
+ export declare const DialogType: {
7
7
  readonly modal: "modal";
8
8
  readonly nonModal: "non-modal";
9
9
  readonly alert: "alert";
10
10
  };
11
- export declare type DialogModalType = ValuesOf<typeof DialogModalType>;
11
+ export type DialogType = ValuesOf<typeof DialogType>;
@@ -1,5 +1,5 @@
1
1
  export { Dialog } from './dialog.js';
2
- export { DialogModalType } from './dialog.options.js';
2
+ export { DialogType } from './dialog.options.js';
3
3
  export { definition as DialogDefinition } from './dialog.definition.js';
4
4
  export { template as DialogTemplate } from './dialog.template.js';
5
5
  export { styles as DialogStyles } from './dialog.styles.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -0,0 +1,14 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ /**
3
+ * Dialog Body component that extends the FASTElement class.
4
+ *
5
+ * @public
6
+ * @extends FASTElement
7
+ */
8
+ export declare class DialogBody extends FASTElement {
9
+ /**
10
+ * @public
11
+ * Indicates whether the dialog has a title action
12
+ */
13
+ noTitleAction: boolean;
14
+ }
@@ -0,0 +1,9 @@
1
+ import { DialogBody } from './dialog-body.js';
2
+ /**
3
+ * The Fluent Dialog Body Element
4
+ *
5
+ * @public
6
+ * @remarks
7
+ * HTML Element: \<fluent-dialog-body\>
8
+ */
9
+ export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof DialogBody>;
@@ -0,0 +1,4 @@
1
+ /** Dialog Body styles
2
+ * @public
3
+ */
4
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;