@fluentui/web-components 3.0.0-beta.22 → 3.0.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -2
- package/dist/dts/accordion/accordion.bench.d.ts +3 -0
- package/dist/dts/accordion/accordion.options.d.ts +1 -1
- package/dist/dts/accordion-item/accordion-item.bench.d.ts +3 -0
- package/dist/dts/accordion-item/accordion-item.d.ts +1 -1
- package/dist/dts/accordion-item/accordion-item.options.d.ts +2 -2
- package/dist/dts/anchor-button/anchor-button.bench.d.ts +3 -0
- package/dist/dts/anchor-button/anchor-button.d.ts +1 -1
- package/dist/dts/anchor-button/anchor-button.options.d.ts +4 -4
- package/dist/dts/avatar/avatar.bench.d.ts +3 -0
- package/dist/dts/avatar/avatar.options.d.ts +6 -6
- package/dist/dts/badge/badge.bench.d.ts +3 -0
- package/dist/dts/badge/badge.options.d.ts +5 -5
- package/dist/dts/button/button.bench.d.ts +3 -0
- package/dist/dts/button/button.options.d.ts +6 -6
- package/dist/dts/checkbox/checkbox.bench.d.ts +3 -0
- package/dist/dts/checkbox/checkbox.d.ts +1 -1
- package/dist/dts/checkbox/checkbox.options.d.ts +3 -3
- package/dist/dts/compound-button/compound-button.bench.d.ts +3 -0
- package/dist/dts/compound-button/compound-button.options.d.ts +3 -3
- package/dist/dts/counter-badge/counter-badge.bench.d.ts +3 -0
- package/dist/dts/counter-badge/counter-badge.options.d.ts +5 -5
- package/dist/dts/dialog/dialog.bench.d.ts +3 -0
- package/dist/dts/dialog/dialog.d.ts +11 -144
- package/dist/dts/dialog/dialog.options.d.ts +2 -2
- package/dist/dts/dialog/index.d.ts +1 -1
- package/dist/dts/dialog-body/define.d.ts +1 -0
- package/dist/dts/dialog-body/dialog-body.bench.d.ts +3 -0
- package/dist/dts/dialog-body/dialog-body.d.ts +14 -0
- package/dist/dts/dialog-body/dialog-body.definition.d.ts +9 -0
- package/dist/dts/dialog-body/dialog-body.styles.d.ts +4 -0
- package/dist/dts/dialog-body/dialog-body.template.d.ts +6 -0
- package/dist/dts/dialog-body/index.d.ts +4 -0
- package/dist/dts/divider/divider.bench.d.ts +3 -0
- package/dist/dts/divider/divider.options.d.ts +4 -4
- package/dist/dts/form-associated/form-associated.d.ts +4 -4
- package/dist/dts/image/image.bench.d.ts +3 -0
- package/dist/dts/image/image.options.d.ts +2 -2
- package/dist/dts/index-rollup.d.ts +1 -0
- package/dist/dts/index.d.ts +2 -1
- package/dist/dts/label/label.bench.d.ts +3 -0
- package/dist/dts/label/label.options.d.ts +2 -2
- package/dist/dts/menu/menu.bench.d.ts +3 -0
- package/dist/dts/menu-button/menu-button.bench.d.ts +3 -0
- package/dist/dts/menu-button/menu-button.options.d.ts +3 -3
- package/dist/dts/menu-item/menu-item.bench.d.ts +3 -0
- package/dist/dts/menu-item/menu-item.d.ts +2 -2
- package/dist/dts/menu-item/menu-item.options.d.ts +1 -1
- package/dist/dts/menu-list/menu-list.bench.d.ts +3 -0
- package/dist/dts/patterns/start-end.d.ts +3 -3
- package/dist/dts/progress-bar/progress-bar.bench.d.ts +3 -0
- package/dist/dts/progress-bar/progress-bar.options.d.ts +4 -4
- package/dist/dts/radio/radio.bench.d.ts +3 -0
- package/dist/dts/radio/radio.d.ts +2 -2
- package/dist/dts/radio-group/radio-group.bench.d.ts +3 -0
- package/dist/dts/radio-group/radio-group.options.d.ts +1 -1
- package/dist/dts/slider/slider.bench.d.ts +3 -0
- package/dist/dts/slider/slider.options.d.ts +4 -4
- package/dist/dts/spinner/spinner.bench.d.ts +3 -0
- package/dist/dts/spinner/spinner.options.d.ts +2 -2
- package/dist/dts/switch/switch.bench.d.ts +3 -0
- package/dist/dts/switch/switch.d.ts +1 -1
- package/dist/dts/switch/switch.options.d.ts +1 -1
- package/dist/dts/tab/tab.bench.d.ts +3 -0
- package/dist/dts/tab/tab.d.ts +1 -1
- package/dist/dts/tab-panel/tab-panel.bench.d.ts +3 -0
- package/dist/dts/tabs/tabs.bench.d.ts +3 -0
- package/dist/dts/tabs/tabs.options.d.ts +4 -4
- package/dist/dts/text/text.bench.d.ts +3 -0
- package/dist/dts/text/text.options.d.ts +4 -4
- package/dist/dts/text-input/text-input.bench.d.ts +3 -0
- package/dist/dts/text-input/text-input.d.ts +0 -1
- package/dist/dts/text-input/text-input.options.d.ts +4 -4
- package/dist/dts/toggle-button/toggle-button.bench.d.ts +3 -0
- package/dist/dts/toggle-button/toggle-button.options.d.ts +3 -3
- package/dist/dts/utils/behaviors/match-media-stylesheet-behavior.d.ts +1 -1
- package/dist/dts/utils/display.d.ts +1 -1
- package/dist/dts/utils/template-helpers.d.ts +1 -1
- package/dist/dts/utils/typings.d.ts +1 -1
- package/dist/esm/accordion/accordion.bench.js +30 -0
- package/dist/esm/accordion/accordion.bench.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.bench.js +14 -0
- package/dist/esm/accordion-item/accordion-item.bench.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.bench.js +11 -0
- package/dist/esm/anchor-button/anchor-button.bench.js.map +1 -0
- package/dist/esm/avatar/avatar.bench.js +10 -0
- package/dist/esm/avatar/avatar.bench.js.map +1 -0
- package/dist/esm/badge/badge.bench.js +11 -0
- package/dist/esm/badge/badge.bench.js.map +1 -0
- package/dist/esm/button/button.bench.js +11 -0
- package/dist/esm/button/button.bench.js.map +1 -0
- package/dist/esm/button/button.js +26 -26
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/checkbox/checkbox.bench.js +11 -0
- package/dist/esm/checkbox/checkbox.bench.js.map +1 -0
- package/dist/esm/compound-button/compound-button.bench.js +15 -0
- package/dist/esm/compound-button/compound-button.bench.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.bench.js +11 -0
- package/dist/esm/counter-badge/counter-badge.bench.js.map +1 -0
- package/dist/esm/dialog/dialog.bench.js +11 -0
- package/dist/esm/dialog/dialog.bench.js.map +1 -0
- package/dist/esm/dialog/dialog.js +31 -304
- package/dist/esm/dialog/dialog.js.map +1 -1
- package/dist/esm/dialog/dialog.options.js +1 -1
- package/dist/esm/dialog/dialog.options.js.map +1 -1
- package/dist/esm/dialog/dialog.styles.js +61 -84
- package/dist/esm/dialog/dialog.styles.js.map +1 -1
- package/dist/esm/dialog/dialog.template.js +17 -54
- package/dist/esm/dialog/dialog.template.js.map +1 -1
- package/dist/esm/dialog/index.js +1 -1
- package/dist/esm/dialog/index.js.map +1 -1
- package/dist/esm/dialog-body/define.js +4 -0
- package/dist/esm/dialog-body/define.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.bench.js +11 -0
- package/dist/esm/dialog-body/dialog-body.bench.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.definition.js +17 -0
- package/dist/esm/dialog-body/dialog-body.definition.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.js +22 -0
- package/dist/esm/dialog-body/dialog-body.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.styles.js +79 -0
- package/dist/esm/dialog-body/dialog-body.styles.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.template.js +42 -0
- package/dist/esm/dialog-body/dialog-body.template.js.map +1 -0
- package/dist/esm/dialog-body/index.js +5 -0
- package/dist/esm/dialog-body/index.js.map +1 -0
- package/dist/esm/divider/divider.bench.js +10 -0
- package/dist/esm/divider/divider.bench.js.map +1 -0
- package/dist/esm/form-associated/form-associated.js +66 -66
- package/dist/esm/form-associated/form-associated.js.map +1 -1
- package/dist/esm/image/image.bench.js +14 -0
- package/dist/esm/image/image.bench.js.map +1 -0
- package/dist/esm/index-rollup.js +1 -0
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/label/label.bench.js +11 -0
- package/dist/esm/label/label.bench.js.map +1 -0
- package/dist/esm/menu/menu.bench.js +31 -0
- package/dist/esm/menu/menu.bench.js.map +1 -0
- package/dist/esm/menu-button/menu-button.bench.js +11 -0
- package/dist/esm/menu-button/menu-button.bench.js.map +1 -0
- package/dist/esm/menu-item/menu-item.bench.js +11 -0
- package/dist/esm/menu-item/menu-item.bench.js.map +1 -0
- package/dist/esm/menu-list/menu-list.bench.js +21 -0
- package/dist/esm/menu-list/menu-list.bench.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.bench.js +10 -0
- package/dist/esm/progress-bar/progress-bar.bench.js.map +1 -0
- package/dist/esm/radio/radio.bench.js +11 -0
- package/dist/esm/radio/radio.bench.js.map +1 -0
- package/dist/esm/radio/radio.js +11 -11
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/radio-group/radio-group.bench.js +21 -0
- package/dist/esm/radio-group/radio-group.bench.js.map +1 -0
- package/dist/esm/slider/slider.bench.js +10 -0
- package/dist/esm/slider/slider.bench.js.map +1 -0
- package/dist/esm/slider/slider.template.js +1 -1
- package/dist/esm/slider/slider.template.js.map +1 -1
- package/dist/esm/spinner/spinner.bench.js +10 -0
- package/dist/esm/spinner/spinner.bench.js.map +1 -0
- package/dist/esm/switch/switch.bench.js +11 -0
- package/dist/esm/switch/switch.bench.js.map +1 -0
- package/dist/esm/switch/switch.js +5 -5
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/tab/tab.bench.js +11 -0
- package/dist/esm/tab/tab.bench.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.bench.js +13 -0
- package/dist/esm/tab-panel/tab-panel.bench.js.map +1 -0
- package/dist/esm/tabs/tabs.bench.js +32 -0
- package/dist/esm/tabs/tabs.bench.js.map +1 -0
- package/dist/esm/text/text.bench.js +13 -0
- package/dist/esm/text/text.bench.js.map +1 -0
- package/dist/esm/text-input/text-input.bench.js +10 -0
- package/dist/esm/text-input/text-input.bench.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.bench.js +11 -0
- package/dist/esm/toggle-button/toggle-button.bench.js.map +1 -0
- package/dist/web-components.d.ts +51 -151
- package/dist/web-components.js +263 -837
- package/dist/web-components.min.js +235 -237
- package/package.json +14 -1
- package/dist/fluent-web-components.api.json +0 -29528
- package/docs/api-report.md +0 -3366
- package/playwright.config.ts +0 -24
- package/project.json +0 -6
- package/tensile.config.js +0 -22
- package/tsdoc.json +0 -44
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
# Change Log - @fluentui/web-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 05 Jun 2024 04:06:30 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [3.0.0-beta.23](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.23)
|
|
8
|
+
|
|
9
|
+
Wed, 05 Jun 2024 04:06:30 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.22..@fluentui/web-components_v3.0.0-beta.23)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- chore: migrate to package.json#files for npm publish scope" ([PR #31519](https://github.com/microsoft/fluentui/pull/31519) by martinhochel@microsoft.com)
|
|
15
|
+
- Refactor fluent-dialog and add fluent-dialog-body ([PR #31512](https://github.com/microsoft/fluentui/pull/31512) by rupertdavid@microsoft.com)
|
|
16
|
+
- 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)
|
|
17
|
+
|
|
7
18
|
## [3.0.0-beta.22](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.22)
|
|
8
19
|
|
|
9
|
-
Mon, 03 Jun 2024 04:06:
|
|
20
|
+
Mon, 03 Jun 2024 04:06:55 GMT
|
|
10
21
|
[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
22
|
|
|
12
23
|
### Changes
|
|
@@ -7,7 +7,7 @@ import { AccordionItemExpandIconPosition, AccordionItemSize } from './accordion-
|
|
|
7
7
|
* Accordion Item configuration options
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
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
|
|
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
|
|
27
|
+
export type AccordionItemExpandIconPosition = ValuesOf<typeof AccordionItemExpandIconPosition>;
|
|
@@ -6,7 +6,7 @@ import type { AnchorButtonAppearance, AnchorButtonShape, AnchorButtonSize, Ancho
|
|
|
6
6
|
* Anchor configuration options
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
64
|
+
export type AnchorTarget = ValuesOf<typeof AnchorTarget>;
|
|
@@ -9,7 +9,7 @@ export declare const AvatarActive: {
|
|
|
9
9
|
/**
|
|
10
10
|
* The types of Avatar active state
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
142
|
+
export type AvatarSize = ValuesOf<typeof AvatarSize>;
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
74
|
+
export type BadgeSize = ValuesOf<typeof BadgeSize>;
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
63
|
+
export type ButtonType = ValuesOf<typeof ButtonType>;
|
|
64
64
|
/**
|
|
65
65
|
* Button configuration options.
|
|
66
66
|
* @public
|
|
67
67
|
*/
|
|
68
|
-
export
|
|
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
|
|
83
|
+
export type ButtonFormTarget = ValuesOf<typeof ButtonFormTarget>;
|
|
@@ -5,7 +5,7 @@ import { CheckboxLabelPosition, CheckboxShape, CheckboxSize } from './checkbox.o
|
|
|
5
5
|
* Checkbox configuration options
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
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
|
|
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
|
|
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
|
|
28
|
+
export type CheckboxLabelPosition = ValuesOf<typeof CheckboxLabelPosition>;
|
|
@@ -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
|
|
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
|
|
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
|
|
50
|
+
export type CompoundButtonSize = ValuesOf<typeof CompoundButtonSize>;
|
|
51
51
|
export { ButtonOptions as CompoundButtonOptions };
|
|
@@ -4,7 +4,7 @@ import type { ValuesOf } from '../utils/index.js';
|
|
|
4
4
|
* CounterBadge options
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
69
|
+
export type CounterBadgeSize = ValuesOf<typeof CounterBadgeSize>;
|
|
@@ -1,42 +1,16 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import {
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
34
|
+
emitBeforeToggle: () => void;
|
|
75
35
|
/**
|
|
76
36
|
* @public
|
|
77
|
-
* Method
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
11
|
+
export type DialogType = ValuesOf<typeof DialogType>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Dialog } from './dialog.js';
|
|
2
|
-
export {
|
|
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,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
|
+
export { DialogBody } from './dialog-body.js';
|
|
2
|
+
export { definition as DialogBodyDefinition } from './dialog-body.definition.js';
|
|
3
|
+
export { template as DialogBodyTemplate } from './dialog-body.template.js';
|
|
4
|
+
export { styles as DialogBodyStyles } from './dialog-body.styles.js';
|