@fluentui/web-components 3.0.0-beta.21 → 3.0.0-beta.22
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 +11 -2
- package/dist/dts/accordion/accordion.options.d.ts +2 -2
- package/dist/dts/accordion-item/accordion-item.d.ts +1 -4
- package/dist/dts/accordion-item/accordion-item.template.d.ts +1 -1
- package/dist/dts/accordion-item/index.d.ts +2 -1
- package/dist/dts/anchor-button/index.d.ts +3 -2
- package/dist/dts/button/index.d.ts +4 -3
- package/dist/dts/checkbox/checkbox.d.ts +0 -3
- package/dist/dts/checkbox/index.d.ts +4 -3
- package/dist/dts/dialog/dialog.d.ts +14 -15
- package/dist/dts/divider/divider.d.ts +4 -7
- package/dist/dts/index-rollup.d.ts +29 -35
- package/dist/dts/index.d.ts +49 -34
- package/dist/dts/label/label.d.ts +0 -2
- package/dist/dts/menu/menu.d.ts +27 -25
- package/dist/dts/menu-button/index.d.ts +4 -3
- package/dist/dts/menu-button/menu-button.options.d.ts +1 -1
- package/dist/dts/menu-item/index.d.ts +4 -3
- package/dist/dts/progress-bar/index.d.ts +3 -2
- package/dist/dts/radio/index.d.ts +2 -1
- package/dist/dts/slider/index.d.ts +3 -2
- package/dist/dts/spinner/spinner.d.ts +0 -2
- package/dist/dts/switch/index.d.ts +3 -2
- package/dist/dts/switch/switch.d.ts +0 -1
- package/dist/dts/tab/index.d.ts +4 -3
- package/dist/dts/tab/tab.template.d.ts +1 -1
- package/dist/dts/tabs/index.d.ts +4 -3
- package/dist/dts/tabs/tabs.d.ts +13 -9
- package/dist/dts/text-input/text-input.d.ts +0 -2
- package/dist/dts/theme/design-tokens.d.ts +1744 -0
- package/dist/dts/theme/set-theme.d.ts +5 -1
- package/dist/dts/toggle-button/index.d.ts +4 -3
- package/dist/dts/toggle-button/toggle-button.options.d.ts +1 -1
- package/dist/esm/accordion/accordion.options.js +1 -1
- package/dist/esm/accordion-item/accordion-item.js +0 -1
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/index.js.map +1 -1
- package/dist/esm/anchor-button/index.js +2 -2
- package/dist/esm/anchor-button/index.js.map +1 -1
- package/dist/esm/button/index.js +3 -3
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/checkbox/index.js +2 -2
- package/dist/esm/checkbox/index.js.map +1 -1
- package/dist/esm/dialog/dialog.js +14 -15
- package/dist/esm/dialog/dialog.js.map +1 -1
- package/dist/esm/divider/divider.js +1 -1
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/index-rollup.js +29 -35
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +33 -33
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/menu/menu.js +25 -23
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/menu-button/index.js +2 -2
- package/dist/esm/menu-button/index.js.map +1 -1
- package/dist/esm/menu-item/index.js +2 -2
- package/dist/esm/menu-item/index.js.map +1 -1
- package/dist/esm/menu-list/menu-list.js +2 -1
- package/dist/esm/menu-list/menu-list.js.map +1 -1
- package/dist/esm/progress-bar/index.js +2 -2
- package/dist/esm/progress-bar/index.js.map +1 -1
- package/dist/esm/radio/index.js +1 -1
- package/dist/esm/radio/index.js.map +1 -1
- package/dist/esm/slider/index.js +1 -1
- package/dist/esm/slider/index.js.map +1 -1
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/switch/index.js +1 -1
- package/dist/esm/switch/index.js.map +1 -1
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/tab/index.js +2 -2
- package/dist/esm/tab/index.js.map +1 -1
- package/dist/esm/tabs/index.js +2 -2
- package/dist/esm/tabs/index.js.map +1 -1
- package/dist/esm/tabs/tabs.js +13 -9
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/theme/design-tokens.js +1744 -0
- package/dist/esm/theme/design-tokens.js.map +1 -1
- package/dist/esm/theme/set-theme.js +5 -1
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/toggle-button/index.js +3 -3
- package/dist/esm/toggle-button/index.js.map +1 -1
- package/dist/fluent-web-components.api.json +504 -659
- package/dist/web-components.d.ts +1813 -76
- package/dist/web-components.js +1178 -2026
- package/dist/web-components.min.js +263 -263
- package/docs/api-report.md +602 -448
- package/package.json +6 -3
- package/tsdoc.json +44 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui/web-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 03 Jun 2024 04:06:46 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [3.0.0-beta.22](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.22)
|
|
8
|
+
|
|
9
|
+
Mon, 03 Jun 2024 04:06:46 GMT
|
|
10
|
+
[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
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- chore: Export component definitions from rollup bundle ([PR #31403](https://github.com/microsoft/fluentui/pull/31403) by 863023+radium-v@users.noreply.github.com)
|
|
15
|
+
|
|
7
16
|
## [3.0.0-beta.21](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.21)
|
|
8
17
|
|
|
9
|
-
Fri, 24 May 2024 04:06:
|
|
18
|
+
Fri, 24 May 2024 04:06:21 GMT
|
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.20..@fluentui/web-components_v3.0.0-beta.21)
|
|
11
20
|
|
|
12
21
|
### Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ValuesOf } from '../utils/index.js';
|
|
2
2
|
/**
|
|
3
|
-
* Expand mode for {@link
|
|
3
|
+
* Expand mode for {@link Accordion}
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
6
|
export declare const AccordionExpandMode: {
|
|
@@ -8,7 +8,7 @@ export declare const AccordionExpandMode: {
|
|
|
8
8
|
readonly multi: "multi";
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
-
* Type for the {@link
|
|
11
|
+
* Type for the {@link Accordion} Expand Mode
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
14
|
export declare type AccordionExpandMode = ValuesOf<typeof AccordionExpandMode>;
|
|
@@ -33,7 +33,6 @@ export declare class AccordionItem extends FASTElement {
|
|
|
33
33
|
* Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the
|
|
34
34
|
* heading element.
|
|
35
35
|
*
|
|
36
|
-
* @defaultValue 2
|
|
37
36
|
* @public
|
|
38
37
|
* @remarks
|
|
39
38
|
* HTML attribute: heading-level
|
|
@@ -67,7 +66,6 @@ export declare class AccordionItem extends FASTElement {
|
|
|
67
66
|
* Defines accordion header font size.
|
|
68
67
|
*
|
|
69
68
|
* @public
|
|
70
|
-
* @default 'medium'
|
|
71
69
|
* @remarks
|
|
72
70
|
* HTML Attribute: size
|
|
73
71
|
*/
|
|
@@ -84,9 +82,8 @@ export declare class AccordionItem extends FASTElement {
|
|
|
84
82
|
* Sets expand and collapsed icon position.
|
|
85
83
|
*
|
|
86
84
|
* @public
|
|
87
|
-
* @default 'start'
|
|
88
85
|
* @remarks
|
|
89
|
-
* HTML Attribute:
|
|
86
|
+
* HTML Attribute: expand-icon-position
|
|
90
87
|
*/
|
|
91
88
|
expandIconPosition?: AccordionItemExpandIconPosition;
|
|
92
89
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import { AccordionItem, AccordionItemOptions } from './accordion-item.js';
|
|
2
|
+
import type { AccordionItem, AccordionItemOptions } from './accordion-item.js';
|
|
3
3
|
export declare function accordionItemTemplate<T extends AccordionItem>(options?: AccordionItemOptions): ElementViewTemplate<T>;
|
|
4
4
|
/**
|
|
5
5
|
* The template for the fluent-accordion component.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { AccordionItem
|
|
1
|
+
export { AccordionItem } from './accordion-item.js';
|
|
2
|
+
export type { AccordionItemOptions } from './accordion-item.js';
|
|
2
3
|
export { AccordionItemSize, AccordionItemExpandIconPosition } from './accordion-item.options.js';
|
|
3
4
|
export { styles as accordionItemStyles } from './accordion-item.styles.js';
|
|
4
5
|
export { definition as accordionItemDefinition } from './accordion-item.definition.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
export { definition as AnchorButtonDefinition } from './anchor-button.definition.js';
|
|
1
2
|
export { AnchorButton } from './anchor-button.js';
|
|
2
|
-
export {
|
|
3
|
+
export { AnchorButtonAppearance, AnchorButtonShape, AnchorButtonSize, AnchorTarget } from './anchor-button.options.js';
|
|
4
|
+
export type { AnchorButtonOptions } from './anchor-button.options.js';
|
|
3
5
|
export { template as AnchorButtonTemplate } from './anchor-button.template.js';
|
|
4
|
-
export { definition as AnchorButtonDefinition } from './anchor-button.definition.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
export { definition as ButtonDefinition } from './button.definition.js';
|
|
1
2
|
export { Button } from './button.js';
|
|
2
|
-
export { ButtonAppearance, ButtonFormTarget, ButtonShape, ButtonSize, ButtonType
|
|
3
|
-
export {
|
|
3
|
+
export { ButtonAppearance, ButtonFormTarget, ButtonShape, ButtonSize, ButtonType } from './button.options.js';
|
|
4
|
+
export type { ButtonOptions } from './button.options.js';
|
|
4
5
|
export { styles as ButtonStyles } from './button.styles.js';
|
|
5
|
-
export {
|
|
6
|
+
export { template as ButtonTemplate } from './button.template.js';
|
|
@@ -27,7 +27,6 @@ export declare class Checkbox extends FormAssociatedCheckbox {
|
|
|
27
27
|
* Sets shape of the checkbox.
|
|
28
28
|
*
|
|
29
29
|
* @public
|
|
30
|
-
* @default 'square'
|
|
31
30
|
* @remarks
|
|
32
31
|
* HTML Attribute: shape
|
|
33
32
|
*/
|
|
@@ -36,7 +35,6 @@ export declare class Checkbox extends FormAssociatedCheckbox {
|
|
|
36
35
|
* Sets size of the checkbox.
|
|
37
36
|
*
|
|
38
37
|
* @public
|
|
39
|
-
* @default 'medium'
|
|
40
38
|
* @remarks
|
|
41
39
|
* HTML Attribute: size
|
|
42
40
|
*/
|
|
@@ -45,7 +43,6 @@ export declare class Checkbox extends FormAssociatedCheckbox {
|
|
|
45
43
|
* Sets position of the label relative to the input
|
|
46
44
|
*
|
|
47
45
|
* @public
|
|
48
|
-
* @default 'after'
|
|
49
46
|
* @remarks
|
|
50
47
|
* HTML Attribute: label-position
|
|
51
48
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { Checkbox, CheckboxOptions } from './checkbox.js';
|
|
2
|
-
export { CheckboxLabelPosition, CheckboxShape, CheckboxSize } from './checkbox.options.js';
|
|
3
1
|
export { definition as CheckboxDefinition } from './checkbox.definition.js';
|
|
4
|
-
export {
|
|
2
|
+
export { Checkbox } from './checkbox.js';
|
|
3
|
+
export type { CheckboxOptions } from './checkbox.js';
|
|
4
|
+
export { CheckboxLabelPosition, CheckboxShape, CheckboxSize } from './checkbox.options.js';
|
|
5
5
|
export { styles as CheckboxStyles } from './checkbox.styles.js';
|
|
6
|
+
export { template as CheckboxTemplate } from './checkbox.template.js';
|
|
@@ -2,14 +2,13 @@ import { FASTElement } from '@microsoft/fast-element';
|
|
|
2
2
|
import { Button as FluentButton } from '../button/button.js';
|
|
3
3
|
import { DialogModalType } from './dialog.options.js';
|
|
4
4
|
/**
|
|
5
|
-
* Dialog
|
|
5
|
+
* A Dialog Custom HTML Element.
|
|
6
6
|
*
|
|
7
7
|
* @public
|
|
8
|
-
* @extends FASTElement
|
|
9
8
|
*/
|
|
10
9
|
export declare class Dialog extends FASTElement {
|
|
11
10
|
/**
|
|
12
|
-
* @
|
|
11
|
+
* @internal
|
|
13
12
|
* Indicates whether focus is being trapped within the dialog
|
|
14
13
|
*/
|
|
15
14
|
private isTrappingFocus;
|
|
@@ -64,7 +63,7 @@ export declare class Dialog extends FASTElement {
|
|
|
64
63
|
*/
|
|
65
64
|
noTitleAction: boolean;
|
|
66
65
|
/**
|
|
67
|
-
* @
|
|
66
|
+
* @internal
|
|
68
67
|
* Indicates whether focus should be trapped within the dialog
|
|
69
68
|
*/
|
|
70
69
|
private trapFocus;
|
|
@@ -120,55 +119,55 @@ export declare class Dialog extends FASTElement {
|
|
|
120
119
|
*/
|
|
121
120
|
handleKeydown: (e: KeyboardEvent) => boolean | void;
|
|
122
121
|
/**
|
|
123
|
-
* @
|
|
122
|
+
* @internal
|
|
124
123
|
* Handles keydown events on the document
|
|
125
124
|
* @param e - The keydown event
|
|
126
125
|
*/
|
|
127
126
|
private handleDocumentKeydown;
|
|
128
127
|
/**
|
|
129
|
-
* @
|
|
128
|
+
* @internal
|
|
130
129
|
* Handles tab keydown events
|
|
131
130
|
* @param e - The keydown event
|
|
132
131
|
*/
|
|
133
132
|
private handleTabKeyDown;
|
|
134
133
|
/**
|
|
135
|
-
* @
|
|
134
|
+
* @internal
|
|
136
135
|
* Gets the bounds of the tab queue
|
|
137
136
|
* @returns (HTMLElement | SVGElement)[]
|
|
138
137
|
*/
|
|
139
138
|
private getTabQueueBounds;
|
|
140
139
|
/**
|
|
141
|
-
* @
|
|
140
|
+
* @internal
|
|
142
141
|
* Focuses the first element in the tab queue
|
|
143
142
|
*/
|
|
144
143
|
private focusFirstElement;
|
|
145
144
|
/**
|
|
146
|
-
* @
|
|
145
|
+
* @internal
|
|
147
146
|
* Determines if focus should be forced
|
|
148
147
|
* @param currentFocusElement - The currently focused element
|
|
149
148
|
* @returns boolean
|
|
150
149
|
*/
|
|
151
150
|
private shouldForceFocus;
|
|
152
151
|
/**
|
|
153
|
-
* @
|
|
152
|
+
* @internal
|
|
154
153
|
* Determines if focus should be trapped
|
|
155
154
|
* @returns boolean
|
|
156
155
|
*/
|
|
157
156
|
private shouldTrapFocus;
|
|
158
157
|
/**
|
|
159
|
-
* @
|
|
158
|
+
* @internal
|
|
160
159
|
* Handles focus events on the document
|
|
161
160
|
* @param e - The focus event
|
|
162
161
|
*/
|
|
163
162
|
private handleDocumentFocus;
|
|
164
163
|
/**
|
|
165
|
-
* @
|
|
164
|
+
* @internal
|
|
166
165
|
* Updates the state of focus trapping
|
|
167
166
|
* @param shouldTrapFocusOverride - Optional override for whether focus should be trapped
|
|
168
167
|
*/
|
|
169
168
|
private updateTrapFocus;
|
|
170
169
|
/**
|
|
171
|
-
* @
|
|
170
|
+
* @internal
|
|
172
171
|
* Reduces the list of tabbable items
|
|
173
172
|
* @param elements - The current list of elements
|
|
174
173
|
* @param element - The element to consider adding to the list
|
|
@@ -176,14 +175,14 @@ export declare class Dialog extends FASTElement {
|
|
|
176
175
|
*/
|
|
177
176
|
private static reduceTabbableItems;
|
|
178
177
|
/**
|
|
179
|
-
* @
|
|
178
|
+
* @internal
|
|
180
179
|
* Determines if an element is a focusable FASTElement
|
|
181
180
|
* @param element - The element to check
|
|
182
181
|
* @returns boolean
|
|
183
182
|
*/
|
|
184
183
|
private static isFocusableFastElement;
|
|
185
184
|
/**
|
|
186
|
-
* @
|
|
185
|
+
* @internal
|
|
187
186
|
* Determines if an element has a tabbable shadow
|
|
188
187
|
* @param element - The element to check
|
|
189
188
|
* @returns boolean
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
2
|
import { DividerAlignContent, DividerAppearance, DividerOrientation, DividerRole } from './divider.options.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* A Divider Custom HTML Element.
|
|
5
5
|
*
|
|
6
6
|
* @remarks
|
|
7
7
|
* A divider groups sections of content to create visual rhythm and hierarchy. Use dividers along with spacing and headers to organize content in your layout.
|
|
@@ -24,22 +24,19 @@ export declare class Divider extends FASTElement {
|
|
|
24
24
|
*/
|
|
25
25
|
orientation: DividerOrientation;
|
|
26
26
|
/**
|
|
27
|
-
* @
|
|
28
|
-
* @default center
|
|
27
|
+
* @public
|
|
29
28
|
* @remarks
|
|
30
29
|
* Determines the alignment of the content within the divider. Select from start or end. When not specified, the content will be aligned to the center.
|
|
31
30
|
*/
|
|
32
31
|
alignContent?: DividerAlignContent;
|
|
33
32
|
/**
|
|
34
|
-
* @
|
|
35
|
-
* @default default
|
|
33
|
+
* @public
|
|
36
34
|
* @remarks
|
|
37
35
|
* A divider can have one of the preset appearances. Select from strong, brand, subtle. When not specified, the divider has its default appearance.
|
|
38
36
|
*/
|
|
39
37
|
appearance?: DividerAppearance;
|
|
40
38
|
/**
|
|
41
|
-
* @
|
|
42
|
-
* @default false
|
|
39
|
+
* @public
|
|
43
40
|
* @remarks
|
|
44
41
|
* Adds padding to the beginning and end of the divider.
|
|
45
42
|
*/
|
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export { getDirection } from './utils/direction.js';
|
|
31
|
-
export { display } from './utils/display.js';
|
|
32
|
-
export { forcedColorsStylesheetBehavior, darkModeStylesheetBehavior, lightModeStylesheetBehavior, } from './utils/behaviors/match-media-stylesheet-behavior.js';
|
|
33
|
-
export { FluentDesignSystem } from './fluent-design-system.js';
|
|
34
|
-
export { setTheme, setThemeFor } from './theme/index.js';
|
|
35
|
-
export * from './theme/design-tokens.js';
|
|
1
|
+
import './accordion-item/define.js';
|
|
2
|
+
import './accordion/define.js';
|
|
3
|
+
import './anchor-button/define.js';
|
|
4
|
+
import './avatar/define.js';
|
|
5
|
+
import './badge/define.js';
|
|
6
|
+
import './button/define.js';
|
|
7
|
+
import './checkbox/define.js';
|
|
8
|
+
import './compound-button/define.js';
|
|
9
|
+
import './counter-badge/define.js';
|
|
10
|
+
import './dialog/define.js';
|
|
11
|
+
import './divider/define.js';
|
|
12
|
+
import './image/define.js';
|
|
13
|
+
import './label/define.js';
|
|
14
|
+
import './menu-button/define.js';
|
|
15
|
+
import './menu-item/define.js';
|
|
16
|
+
import './menu-list/define.js';
|
|
17
|
+
import './menu/define.js';
|
|
18
|
+
import './progress-bar/define.js';
|
|
19
|
+
import './radio-group/define.js';
|
|
20
|
+
import './radio/define.js';
|
|
21
|
+
import './slider/define.js';
|
|
22
|
+
import './spinner/define.js';
|
|
23
|
+
import './switch/define.js';
|
|
24
|
+
import './tab-panel/define.js';
|
|
25
|
+
import './tab/define.js';
|
|
26
|
+
import './tabs/define.js';
|
|
27
|
+
import './text-input/define.js';
|
|
28
|
+
import './text/define.js';
|
|
29
|
+
import './toggle-button/define.js';
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,36 +1,51 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export { MenuItem, MenuItemColumnCount, MenuItemOptions, MenuItemRole, roleForMenuItem, MenuItemTemplate, MenuItemStyles, MenuItemDefinition, } from './menu-item/index.js';
|
|
17
|
-
export { MenuList, MenuListTemplate, MenuListStyles, MenuListDefinition } from './menu-list/index.js';
|
|
18
|
-
export { ProgressBar, ProgressOptions, ProgressBarShape, ProgressBarThickness, ProgressBarValidationState, ProgressBarDefinition, ProgressBarStyles, ProgressBarTemplate, } from './progress-bar/index.js';
|
|
19
|
-
export { Radio, RadioControl, RadioOptions, RadioDefinition, RadioStyles, RadioTemplate } from './radio/index.js';
|
|
20
|
-
export { RadioGroup, RadioGroupOrientation, RadioGroupDefinition, RadioGroupStyles, RadioGroupTemplate, } from './radio-group/index.js';
|
|
21
|
-
export { Slider, SliderConfiguration, SliderMode, SliderOptions, SliderOrientation, SliderSize, SliderDefinition, SliderStyles, SliderTemplate, } from './slider/index.js';
|
|
22
|
-
export { Spinner, SpinnerAppearance, SpinnerSize, SpinnerTemplate, SpinnerStyles, SpinnerDefinition, } from './spinner/index.js';
|
|
23
|
-
export { Switch, SwitchOptions, SwitchLabelPosition, SwitchDefinition, SwitchStyles, SwitchTemplate, } from './switch/index.js';
|
|
24
|
-
export { Tab, TabOptions, TabTemplate, TabStyles, TabDefinition } from './tab/index.js';
|
|
25
|
-
export { TabPanel, TabPanelTemplate, TabPanelStyles, TabPanelDefinition } from './tab-panel/index.js';
|
|
26
|
-
export { Tabs, TabsAppearance, TabsOptions, TabsOrientation, TabsSize, TabsTemplate, TabsStyles, TabsDefinition, } from './tabs/index.js';
|
|
27
|
-
export { Text, TextAlign, TextFont, TextSize, TextWeight, TextTemplate, TextStyles, TextDefinition, } from './text/index.js';
|
|
28
|
-
export { TextInputOptions, TextInput, TextInputType, TextInputAppearance, TextInputControlSize, TextInputTemplate, TextInputStyles, TextInputDefinition, } from './text-input/index.js';
|
|
29
|
-
export { ToggleButton, ToggleButtonAppearance, ToggleButtonOptions, ToggleButtonShape, ToggleButtonSize, ToggleButtonTemplate, ToggleButtonStyles, ToggleButtonDefinition, } from './toggle-button/index.js';
|
|
30
|
-
export { typographyBody1Styles, typographyBody1StrongStyles, typographyBody1StrongerStyles, typographyBody2Styles, typographyCaption1StrongStyles, typographyCaption1StrongerStyles, typographyCaption1Styles, typographyCaption2StrongStyles, typographyCaption2Styles, typographyDisplayStyles, typographyLargeTitleStyles, typographySubtitle1Styles, typographySubtitle2StrongerStyles, typographySubtitle2Styles, typographyTitle1Styles, typographyTitle2Styles, typographyTitle3Styles, } from './styles/partials/typography.partials.js';
|
|
31
|
-
export { getDirection } from './utils/direction.js';
|
|
32
|
-
export { display } from './utils/display.js';
|
|
33
|
-
export { forcedColorsStylesheetBehavior, MatchMediaBehavior, MatchMediaStyleSheetBehavior, MediaQueryListListener, darkModeStylesheetBehavior, lightModeStylesheetBehavior, } from './utils/behaviors/match-media-stylesheet-behavior.js';
|
|
1
|
+
export { AccordionItem, accordionItemDefinition, AccordionItemExpandIconPosition, AccordionItemSize, accordionItemStyles, accordionItemTemplate, } from './accordion-item/index.js';
|
|
2
|
+
export type { AccordionItemOptions } from './accordion-item/index.js';
|
|
3
|
+
export { Accordion, accordionDefinition, AccordionExpandMode, accordionStyles, accordionTemplate, } from './accordion/index.js';
|
|
4
|
+
export { AnchorButton, AnchorButtonAppearance, AnchorButtonDefinition, AnchorButtonShape, AnchorButtonSize, AnchorButtonTemplate, AnchorTarget, } from './anchor-button/index.js';
|
|
5
|
+
export type { AnchorButtonOptions } from './anchor-button/index.js';
|
|
6
|
+
export { Avatar, AvatarActive, AvatarAppearance, AvatarColor, AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, AvatarStyles, AvatarTemplate, } from './avatar/index.js';
|
|
7
|
+
export { Badge, BadgeAppearance, BadgeColor, BadgeDefinition, BadgeShape, BadgeSize, BadgeStyles, BadgeTemplate, } from './badge/index.js';
|
|
8
|
+
export { Button, ButtonAppearance, ButtonDefinition, ButtonFormTarget, ButtonShape, ButtonSize, ButtonStyles, ButtonTemplate, ButtonType, } from './button/index.js';
|
|
9
|
+
export type { ButtonOptions } from './button/index.js';
|
|
10
|
+
export { Checkbox, CheckboxDefinition, CheckboxShape, CheckboxSize, CheckboxStyles, CheckboxTemplate, } from './checkbox/index.js';
|
|
11
|
+
export type { CheckboxOptions } from './checkbox/index.js';
|
|
12
|
+
export { CompoundButton, CompoundButtonAppearance, CompoundButtonDefinition, CompoundButtonShape, CompoundButtonSize, CompoundButtonStyles, CompoundButtonTemplate, } from './compound-button/index.js';
|
|
13
|
+
export { CounterBadge, CounterBadgeAppearance, CounterBadgeColor, CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, CounterBadgeStyles, CounterBadgeTemplate, } from './counter-badge/index.js';
|
|
14
|
+
export { Dialog, DialogDefinition, DialogModalType, DialogStyles, DialogTemplate } from './dialog/index.js';
|
|
15
|
+
export { Divider, DividerAlignContent, DividerAppearance, DividerDefinition, DividerOrientation, DividerRole, DividerStyles, DividerTemplate, } from './divider/index.js';
|
|
34
16
|
export { FluentDesignSystem } from './fluent-design-system.js';
|
|
35
|
-
export {
|
|
17
|
+
export { Image, ImageDefinition, ImageFit, ImageShape, ImageStyles, ImageTemplate } from './image/index.js';
|
|
18
|
+
export { Label, LabelDefinition, LabelSize, LabelStyles, LabelTemplate, LabelWeight } from './label/index.js';
|
|
19
|
+
export { MenuButton, MenuButtonAppearance, MenuButtonDefinition, MenuButtonShape, MenuButtonSize, MenuButtonStyles, MenuButtonTemplate, } from './menu-button/index.js';
|
|
20
|
+
export type { MenuButtonOptions } from './menu-button/index.js';
|
|
21
|
+
export { MenuItem, MenuItemDefinition, MenuItemRole, MenuItemStyles, MenuItemTemplate, roleForMenuItem, } from './menu-item/index.js';
|
|
22
|
+
export type { MenuItemColumnCount, MenuItemOptions } from './menu-item/index.js';
|
|
23
|
+
export { MenuList, MenuListDefinition, MenuListStyles, MenuListTemplate } from './menu-list/index.js';
|
|
24
|
+
export { Menu, MenuDefinition, MenuStyles, MenuTemplate } from './menu/index.js';
|
|
25
|
+
export { ProgressBar, ProgressBarDefinition, ProgressBarShape, ProgressBarStyles, ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, } from './progress-bar/index.js';
|
|
26
|
+
export type { ProgressOptions } from './progress-bar/index.js';
|
|
27
|
+
export { RadioGroup, RadioGroupDefinition, RadioGroupOrientation, RadioGroupStyles, RadioGroupTemplate, } from './radio-group/index.js';
|
|
28
|
+
export { Radio, RadioDefinition, RadioStyles, RadioTemplate } from './radio/index.js';
|
|
29
|
+
export type { RadioControl, RadioOptions } from './radio/index.js';
|
|
30
|
+
export { Slider, SliderDefinition, SliderMode, SliderOrientation, SliderSize, SliderStyles, SliderTemplate, } from './slider/index.js';
|
|
31
|
+
export type { SliderConfiguration, SliderOptions } from './slider/index.js';
|
|
32
|
+
export { Spinner, SpinnerAppearance, SpinnerDefinition, SpinnerSize, SpinnerStyles, SpinnerTemplate, } from './spinner/index.js';
|
|
33
|
+
export { typographyBody1StrongerStyles, typographyBody1StrongStyles, typographyBody1Styles, typographyBody2Styles, typographyCaption1StrongerStyles, typographyCaption1StrongStyles, typographyCaption1Styles, typographyCaption2StrongStyles, typographyCaption2Styles, typographyDisplayStyles, typographyLargeTitleStyles, typographySubtitle1Styles, typographySubtitle2StrongerStyles, typographySubtitle2Styles, typographyTitle1Styles, typographyTitle2Styles, typographyTitle3Styles, } from './styles/partials/typography.partials.js';
|
|
34
|
+
export { Switch, SwitchDefinition, SwitchLabelPosition, SwitchStyles, SwitchTemplate } from './switch/index.js';
|
|
35
|
+
export type { SwitchOptions } from './switch/index.js';
|
|
36
|
+
export { TabPanel, TabPanelDefinition, TabPanelStyles, TabPanelTemplate } from './tab-panel/index.js';
|
|
37
|
+
export { Tab, TabDefinition, TabStyles, TabTemplate } from './tab/index.js';
|
|
38
|
+
export type { TabOptions } from './tab/index.js';
|
|
39
|
+
export { Tabs, TabsAppearance, TabsDefinition, TabsOrientation, TabsSize, TabsStyles, TabsTemplate, } from './tabs/index.js';
|
|
40
|
+
export type { TabsOptions } from './tabs/index.js';
|
|
41
|
+
export { TextInput, TextInputAppearance, TextInputControlSize, TextInputDefinition, TextInputStyles, TextInputTemplate, TextInputType, } from './text-input/index.js';
|
|
42
|
+
export type { TextInputOptions } from './text-input/index.js';
|
|
43
|
+
export { Text, TextAlign, TextDefinition, TextFont, TextSize, TextStyles, TextTemplate, TextWeight, } from './text/index.js';
|
|
36
44
|
export * from './theme/design-tokens.js';
|
|
45
|
+
export { setTheme, setThemeFor } from './theme/index.js';
|
|
46
|
+
export { ToggleButton, ToggleButtonAppearance, ToggleButtonDefinition, ToggleButtonShape, ToggleButtonSize, ToggleButtonStyles, ToggleButtonTemplate, } from './toggle-button/index.js';
|
|
47
|
+
export type { ToggleButtonOptions } from './toggle-button/index.js';
|
|
48
|
+
export { darkModeStylesheetBehavior, forcedColorsStylesheetBehavior, lightModeStylesheetBehavior, MatchMediaBehavior, MatchMediaStyleSheetBehavior, } from './utils/behaviors/match-media-stylesheet-behavior.js';
|
|
49
|
+
export type { MediaQueryListListener } from './utils/behaviors/match-media-stylesheet-behavior.js';
|
|
50
|
+
export { getDirection } from './utils/direction.js';
|
|
51
|
+
export { display } from './utils/display.js';
|
|
@@ -9,7 +9,6 @@ export declare class Label extends FASTElement {
|
|
|
9
9
|
* Specifies font size of a label
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
|
-
* @default 'medium'
|
|
13
12
|
* @remarks
|
|
14
13
|
* HTML Attribute: size
|
|
15
14
|
*/
|
|
@@ -18,7 +17,6 @@ export declare class Label extends FASTElement {
|
|
|
18
17
|
* Specifies font weight of a label
|
|
19
18
|
*
|
|
20
19
|
* @public
|
|
21
|
-
* @default 'regular'
|
|
22
20
|
* @remarks
|
|
23
21
|
* HTML Attribute: weight
|
|
24
22
|
*/
|
package/dist/dts/menu/menu.d.ts
CHANGED
|
@@ -47,12 +47,12 @@ export declare class Menu extends FASTElement {
|
|
|
47
47
|
positioningContainer?: HTMLElement;
|
|
48
48
|
/**
|
|
49
49
|
* The trigger element of the menu.
|
|
50
|
-
* @
|
|
50
|
+
* @internal
|
|
51
51
|
*/
|
|
52
52
|
private _trigger?;
|
|
53
53
|
/**
|
|
54
54
|
* The menu list element of the menu.
|
|
55
|
-
* @
|
|
55
|
+
* @internal
|
|
56
56
|
*/
|
|
57
57
|
private _menuList?;
|
|
58
58
|
/**
|
|
@@ -108,51 +108,53 @@ export declare class Menu extends FASTElement {
|
|
|
108
108
|
* Updates the 'aria-expanded' attribute and sets the positioning of the menu.
|
|
109
109
|
* Sets menu list position
|
|
110
110
|
* emits openChanged event
|
|
111
|
+
*
|
|
112
|
+
* @param oldValue - The previous value of 'open'.
|
|
113
|
+
* @param newValue - The new value of 'open'.
|
|
111
114
|
* @public
|
|
112
|
-
* @param {boolean} oldValue - The previous value of 'open'.
|
|
113
|
-
* @param {boolean} newValue - The new value of 'open'.
|
|
114
115
|
*/
|
|
115
116
|
openChanged(oldValue: boolean, newValue: boolean): void;
|
|
116
117
|
/**
|
|
117
118
|
* Called whenever the 'openOnHover' property changes.
|
|
118
119
|
* Adds or removes a 'mouseover' event listener to the trigger based on the new value.
|
|
120
|
+
*
|
|
121
|
+
* @param oldValue - The previous value of 'openOnHover'.
|
|
122
|
+
* @param newValue - The new value of 'openOnHover'.
|
|
119
123
|
* @public
|
|
120
|
-
* @param {boolean} oldValue - The previous value of 'openOnHover'.
|
|
121
|
-
* @param {boolean} newValue - The new value of 'openOnHover'.
|
|
122
124
|
*/
|
|
123
125
|
openOnHoverChanged(oldValue: boolean, newValue: boolean): void;
|
|
124
126
|
/**
|
|
125
127
|
* Called whenever the 'persistOnItemClick' property changes.
|
|
126
128
|
* Adds or removes a 'click' event listener to the menu list based on the new value.
|
|
127
129
|
* @public
|
|
128
|
-
* @param
|
|
129
|
-
* @param
|
|
130
|
+
* @param oldValue - The previous value of 'persistOnItemClick'.
|
|
131
|
+
* @param newValue - The new value of 'persistOnItemClick'.
|
|
130
132
|
*/
|
|
131
133
|
persistOnItemClickChanged(oldValue: boolean, newValue: boolean): void;
|
|
132
134
|
/**
|
|
133
135
|
* Called whenever the 'openOnContext' property changes.
|
|
134
136
|
* Adds or removes a 'contextmenu' event listener to the trigger based on the new value.
|
|
135
137
|
* @public
|
|
136
|
-
* @param
|
|
137
|
-
* @param
|
|
138
|
+
* @param oldValue - The previous value of 'openOnContext'.
|
|
139
|
+
* @param newValue - The new value of 'openOnContext'.
|
|
138
140
|
*/
|
|
139
141
|
openOnContextChanged(oldValue: boolean, newValue: boolean): void;
|
|
140
142
|
/**
|
|
141
143
|
* Called whenever the 'closeOnScroll' property changes.
|
|
142
144
|
* Adds or removes a 'closeOnScroll' event listener to the trigger based on the new value.
|
|
143
145
|
* @public
|
|
144
|
-
* @param
|
|
145
|
-
* @param
|
|
146
|
+
* @param oldValue - The previous value of 'closeOnScroll'.
|
|
147
|
+
* @param newValue - The new value of 'closeOnScroll'.
|
|
146
148
|
*/
|
|
147
149
|
closeOnScrollChanged(oldValue: boolean, newValue: boolean): void;
|
|
148
150
|
/**
|
|
149
151
|
* The task to set the positioning of the menu.
|
|
150
|
-
* @
|
|
152
|
+
* @internal
|
|
151
153
|
*/
|
|
152
154
|
protected setPositioningTask: () => void;
|
|
153
155
|
/**
|
|
154
156
|
* Sets the positioning of the menu.
|
|
155
|
-
* @
|
|
157
|
+
* @internal
|
|
156
158
|
*/
|
|
157
159
|
protected setPositioning(): void;
|
|
158
160
|
/**
|
|
@@ -166,29 +168,29 @@ export declare class Menu extends FASTElement {
|
|
|
166
168
|
* Removes event listeners.
|
|
167
169
|
* Removes click and keydown event listeners from the trigger and a click event listener from the document.
|
|
168
170
|
* Also removes 'mouseover' event listeners from the trigger.
|
|
169
|
-
* @
|
|
171
|
+
* @internal
|
|
170
172
|
*/
|
|
171
173
|
private removeListeners;
|
|
172
174
|
/**
|
|
173
|
-
* Handles keyboard interaction for the menu.
|
|
174
|
-
* Closes the menu
|
|
175
|
-
*
|
|
175
|
+
* Handles keyboard interaction for the menu. Closes the menu and focuses on the trigger when the Escape key is
|
|
176
|
+
* pressed. Closes the menu when the Tab key is pressed.
|
|
177
|
+
*
|
|
178
|
+
* @param e - the keyboard event
|
|
176
179
|
* @public
|
|
177
|
-
* @param {KeyboardEvent} e - the keyboard event
|
|
178
180
|
*/
|
|
179
181
|
handleMenuKeydown(e: KeyboardEvent): boolean | void;
|
|
180
182
|
/**
|
|
181
|
-
* Handles keyboard interaction for the trigger.
|
|
182
|
-
*
|
|
183
|
-
*
|
|
183
|
+
* Handles keyboard interaction for the trigger. Toggles the menu when the Space or Enter key is pressed. If the menu
|
|
184
|
+
* is open, focuses on the menu list.
|
|
185
|
+
*
|
|
186
|
+
* @param e - the keyboard event
|
|
184
187
|
* @public
|
|
185
|
-
* @param {KeyboardEvent} e - the keyboard event
|
|
186
188
|
*/
|
|
187
189
|
handleTriggerKeydown: (e: KeyboardEvent) => boolean | void;
|
|
188
190
|
/**
|
|
189
191
|
* Handles document click events to close the menu when a click occurs outside of the menu or the trigger.
|
|
190
|
-
* @
|
|
191
|
-
* @param
|
|
192
|
+
* @internal
|
|
193
|
+
* @param e - The event triggered on document click.
|
|
192
194
|
*/
|
|
193
195
|
private handleDocumentClick;
|
|
194
196
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { MenuButton } from './menu-button.js';
|
|
2
|
-
export { MenuButtonAppearance, MenuButtonShape, MenuButtonSize, MenuButtonOptions } from './menu-button.options.js';
|
|
3
|
-
export { template as MenuButtonTemplate } from './menu-button.template.js';
|
|
4
1
|
export { styles as MenuButtonStyles } from '../button/button.styles.js';
|
|
5
2
|
export { definition as MenuButtonDefinition } from './menu-button.definition.js';
|
|
3
|
+
export { MenuButton } from './menu-button.js';
|
|
4
|
+
export { MenuButtonAppearance, MenuButtonShape, MenuButtonSize } from './menu-button.options.js';
|
|
5
|
+
export type { MenuButtonOptions } from './menu-button.options.js';
|
|
6
|
+
export { template as MenuButtonTemplate } from './menu-button.template.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { definition as MenuItemDefinition } from './menu-item.definition.js';
|
|
2
|
+
export { MenuItem } from './menu-item.js';
|
|
3
|
+
export type { MenuItemColumnCount, MenuItemOptions } from './menu-item.js';
|
|
2
4
|
export { MenuItemRole, roleForMenuItem } from './menu-item.options.js';
|
|
3
|
-
export { template as MenuItemTemplate } from './menu-item.template.js';
|
|
4
5
|
export { styles as MenuItemStyles } from './menu-item.styles.js';
|
|
5
|
-
export {
|
|
6
|
+
export { template as MenuItemTemplate } from './menu-item.template.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { ProgressBar } from './progress-bar.js';
|
|
2
|
-
export { ProgressOptions, ProgressBarShape, ProgressBarThickness, ProgressBarValidationState, } from './progress-bar.options.js';
|
|
3
1
|
export { definition as ProgressBarDefinition } from './progress-bar.definition.js';
|
|
2
|
+
export { ProgressBar } from './progress-bar.js';
|
|
3
|
+
export { ProgressBarShape, ProgressBarThickness, ProgressBarValidationState } from './progress-bar.options.js';
|
|
4
|
+
export type { ProgressOptions } from './progress-bar.options.js';
|
|
4
5
|
export { styles as ProgressBarStyles } from './progress-bar.styles.js';
|
|
5
6
|
export { template as ProgressBarTemplate } from './progress-bar.template.js';
|