@fluentui/web-components 3.0.0-beta.21 → 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 +22 -2
- package/dist/dts/accordion/accordion.bench.d.ts +3 -0
- package/dist/dts/accordion/accordion.options.d.ts +3 -3
- package/dist/dts/accordion-item/accordion-item.bench.d.ts +3 -0
- package/dist/dts/accordion-item/accordion-item.d.ts +2 -5
- package/dist/dts/accordion-item/accordion-item.options.d.ts +2 -2
- 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/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/anchor-button/index.d.ts +3 -2
- 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/button/index.d.ts +4 -3
- package/dist/dts/checkbox/checkbox.bench.d.ts +3 -0
- package/dist/dts/checkbox/checkbox.d.ts +1 -4
- package/dist/dts/checkbox/checkbox.options.d.ts +3 -3
- package/dist/dts/checkbox/index.d.ts +4 -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 +12 -146
- 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.d.ts +4 -7
- 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 +30 -35
- package/dist/dts/index.d.ts +50 -34
- package/dist/dts/label/label.bench.d.ts +3 -0
- package/dist/dts/label/label.d.ts +0 -2
- package/dist/dts/label/label.options.d.ts +2 -2
- package/dist/dts/menu/menu.bench.d.ts +3 -0
- 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.bench.d.ts +3 -0
- package/dist/dts/menu-button/menu-button.options.d.ts +4 -4
- package/dist/dts/menu-item/index.d.ts +4 -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/index.d.ts +3 -2
- 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/index.d.ts +2 -1
- 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/index.d.ts +3 -2
- 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.d.ts +0 -2
- package/dist/dts/spinner/spinner.options.d.ts +2 -2
- package/dist/dts/switch/index.d.ts +3 -2
- package/dist/dts/switch/switch.bench.d.ts +3 -0
- package/dist/dts/switch/switch.d.ts +1 -2
- package/dist/dts/switch/switch.options.d.ts +1 -1
- package/dist/dts/tab/index.d.ts +4 -3
- package/dist/dts/tab/tab.bench.d.ts +3 -0
- package/dist/dts/tab/tab.d.ts +1 -1
- package/dist/dts/tab/tab.template.d.ts +1 -1
- package/dist/dts/tab-panel/tab-panel.bench.d.ts +3 -0
- package/dist/dts/tabs/index.d.ts +4 -3
- package/dist/dts/tabs/tabs.bench.d.ts +3 -0
- package/dist/dts/tabs/tabs.d.ts +13 -9
- 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 -3
- package/dist/dts/text-input/text-input.options.d.ts +4 -4
- 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.bench.d.ts +3 -0
- package/dist/dts/toggle-button/toggle-button.options.d.ts +4 -4
- 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/accordion.options.js +1 -1
- 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/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/anchor-button.bench.js +11 -0
- package/dist/esm/anchor-button/anchor-button.bench.js.map +1 -0
- package/dist/esm/anchor-button/index.js +2 -2
- package/dist/esm/anchor-button/index.js.map +1 -1
- 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/button/index.js +3 -3
- package/dist/esm/button/index.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/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/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 +32 -306
- 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/divider/divider.js +1 -1
- package/dist/esm/divider/divider.js.map +1 -1
- 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 +30 -35
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +34 -33
- 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/label/label.js.map +1 -1
- package/dist/esm/menu/menu.bench.js +31 -0
- package/dist/esm/menu/menu.bench.js.map +1 -0
- 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-button/menu-button.bench.js +11 -0
- package/dist/esm/menu-button/menu-button.bench.js.map +1 -0
- package/dist/esm/menu-item/index.js +2 -2
- package/dist/esm/menu-item/index.js.map +1 -1
- 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/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/progress-bar/progress-bar.bench.js +10 -0
- package/dist/esm/progress-bar/progress-bar.bench.js.map +1 -0
- package/dist/esm/radio/index.js +1 -1
- package/dist/esm/radio/index.js.map +1 -1
- 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/index.js +1 -1
- package/dist/esm/slider/index.js.map +1 -1
- 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/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.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/index.js +2 -2
- package/dist/esm/tab/index.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/index.js +2 -2
- package/dist/esm/tabs/index.js.map +1 -1
- package/dist/esm/tabs/tabs.bench.js +32 -0
- package/dist/esm/tabs/tabs.bench.js.map +1 -0
- package/dist/esm/tabs/tabs.js +13 -9
- package/dist/esm/tabs/tabs.js.map +1 -1
- 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/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/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 +1850 -213
- package/dist/web-components.js +1325 -2747
- package/dist/web-components.min.js +253 -255
- package/package.json +19 -3
- package/dist/fluent-web-components.api.json +0 -29683
- package/docs/api-report.md +0 -3212
- package/playwright.config.ts +0 -24
- package/project.json +0 -6
- package/tensile.config.js +0 -22
|
@@ -1,43 +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
|
-
* Dialog
|
|
4
|
+
* A Dialog Custom HTML Element.
|
|
6
5
|
*
|
|
7
6
|
* @public
|
|
8
|
-
* @extends FASTElement
|
|
9
7
|
*/
|
|
10
8
|
export declare class Dialog extends FASTElement {
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
* Indicates whether focus is being trapped within the dialog
|
|
14
|
-
*/
|
|
15
|
-
private isTrappingFocus;
|
|
16
|
-
/**
|
|
17
|
-
* @public
|
|
18
|
-
* Lifecycle method called when the element is connected to the DOM
|
|
19
|
-
*/
|
|
20
|
-
connectedCallback(): void;
|
|
21
|
-
/**
|
|
22
|
-
* @public
|
|
23
|
-
* Lifecycle method called when the element is disconnected from the DOM
|
|
24
|
-
*/
|
|
25
|
-
disconnectedCallback(): void;
|
|
26
9
|
/**
|
|
27
10
|
* @public
|
|
28
11
|
* The dialog element
|
|
29
12
|
*/
|
|
30
13
|
dialog: HTMLDialogElement;
|
|
31
|
-
/**
|
|
32
|
-
* @public
|
|
33
|
-
* The title action elements
|
|
34
|
-
*/
|
|
35
|
-
titleAction: HTMLElement[];
|
|
36
|
-
/**
|
|
37
|
-
* @public
|
|
38
|
-
* The default title action button
|
|
39
|
-
*/
|
|
40
|
-
defaultTitleAction?: FluentButton;
|
|
41
14
|
/**
|
|
42
15
|
* @public
|
|
43
16
|
* The ID of the element that describes the dialog
|
|
@@ -52,43 +25,19 @@ export declare class Dialog extends FASTElement {
|
|
|
52
25
|
* @public
|
|
53
26
|
* The type of the dialog modal
|
|
54
27
|
*/
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @public
|
|
58
|
-
* Indicates whether the dialog is open
|
|
59
|
-
*/
|
|
60
|
-
open: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* @public
|
|
63
|
-
* Indicates whether the dialog has a title action
|
|
64
|
-
*/
|
|
65
|
-
noTitleAction: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* @private
|
|
68
|
-
* Indicates whether focus should be trapped within the dialog
|
|
69
|
-
*/
|
|
70
|
-
private trapFocus;
|
|
28
|
+
type: DialogType;
|
|
71
29
|
/**
|
|
72
30
|
* @public
|
|
73
|
-
* 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
|
|
74
33
|
*/
|
|
75
|
-
|
|
34
|
+
emitBeforeToggle: () => void;
|
|
76
35
|
/**
|
|
77
36
|
* @public
|
|
78
|
-
* 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
|
|
79
39
|
*/
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @public
|
|
83
|
-
* Method to set the component's state based on its attributes
|
|
84
|
-
*/
|
|
85
|
-
setComponent(): void;
|
|
86
|
-
/**
|
|
87
|
-
* @public
|
|
88
|
-
* Method to emit an event when the dialog's open state changes
|
|
89
|
-
* @param dismissed - Indicates whether the dialog was dismissed
|
|
90
|
-
*/
|
|
91
|
-
onOpenChangeEvent: (dismissed?: boolean) => void;
|
|
40
|
+
emitToggle: () => void;
|
|
92
41
|
/**
|
|
93
42
|
* @public
|
|
94
43
|
* Method to show the dialog
|
|
@@ -97,96 +46,13 @@ export declare class Dialog extends FASTElement {
|
|
|
97
46
|
/**
|
|
98
47
|
* @public
|
|
99
48
|
* Method to hide the dialog
|
|
100
|
-
* @param dismissed - Indicates whether the dialog was dismissed
|
|
101
|
-
*/
|
|
102
|
-
hide(dismissed?: boolean): void;
|
|
103
|
-
/**
|
|
104
|
-
* @public
|
|
105
|
-
* Method to dismiss the dialog
|
|
106
49
|
*/
|
|
107
|
-
|
|
50
|
+
hide(): void;
|
|
108
51
|
/**
|
|
109
52
|
* @public
|
|
110
|
-
* Handles click events on the dialog
|
|
53
|
+
* Handles click events on the dialog overlay for light-dismiss
|
|
111
54
|
* @param event - The click event
|
|
112
55
|
* @returns boolean
|
|
113
56
|
*/
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @public
|
|
117
|
-
* Handles keydown events on the dialog
|
|
118
|
-
* @param e - The keydown event
|
|
119
|
-
* @returns boolean | void
|
|
120
|
-
*/
|
|
121
|
-
handleKeydown: (e: KeyboardEvent) => boolean | void;
|
|
122
|
-
/**
|
|
123
|
-
* @private
|
|
124
|
-
* Handles keydown events on the document
|
|
125
|
-
* @param e - The keydown event
|
|
126
|
-
*/
|
|
127
|
-
private handleDocumentKeydown;
|
|
128
|
-
/**
|
|
129
|
-
* @private
|
|
130
|
-
* Handles tab keydown events
|
|
131
|
-
* @param e - The keydown event
|
|
132
|
-
*/
|
|
133
|
-
private handleTabKeyDown;
|
|
134
|
-
/**
|
|
135
|
-
* @private
|
|
136
|
-
* Gets the bounds of the tab queue
|
|
137
|
-
* @returns (HTMLElement | SVGElement)[]
|
|
138
|
-
*/
|
|
139
|
-
private getTabQueueBounds;
|
|
140
|
-
/**
|
|
141
|
-
* @private
|
|
142
|
-
* Focuses the first element in the tab queue
|
|
143
|
-
*/
|
|
144
|
-
private focusFirstElement;
|
|
145
|
-
/**
|
|
146
|
-
* @private
|
|
147
|
-
* Determines if focus should be forced
|
|
148
|
-
* @param currentFocusElement - The currently focused element
|
|
149
|
-
* @returns boolean
|
|
150
|
-
*/
|
|
151
|
-
private shouldForceFocus;
|
|
152
|
-
/**
|
|
153
|
-
* @private
|
|
154
|
-
* Determines if focus should be trapped
|
|
155
|
-
* @returns boolean
|
|
156
|
-
*/
|
|
157
|
-
private shouldTrapFocus;
|
|
158
|
-
/**
|
|
159
|
-
* @private
|
|
160
|
-
* Handles focus events on the document
|
|
161
|
-
* @param e - The focus event
|
|
162
|
-
*/
|
|
163
|
-
private handleDocumentFocus;
|
|
164
|
-
/**
|
|
165
|
-
* @private
|
|
166
|
-
* Updates the state of focus trapping
|
|
167
|
-
* @param shouldTrapFocusOverride - Optional override for whether focus should be trapped
|
|
168
|
-
*/
|
|
169
|
-
private updateTrapFocus;
|
|
170
|
-
/**
|
|
171
|
-
* @private
|
|
172
|
-
* Reduces the list of tabbable items
|
|
173
|
-
* @param elements - The current list of elements
|
|
174
|
-
* @param element - The element to consider adding to the list
|
|
175
|
-
* @returns HTMLElement[]
|
|
176
|
-
*/
|
|
177
|
-
private static reduceTabbableItems;
|
|
178
|
-
/**
|
|
179
|
-
* @private
|
|
180
|
-
* Determines if an element is a focusable FASTElement
|
|
181
|
-
* @param element - The element to check
|
|
182
|
-
* @returns boolean
|
|
183
|
-
*/
|
|
184
|
-
private static isFocusableFastElement;
|
|
185
|
-
/**
|
|
186
|
-
* @private
|
|
187
|
-
* Determines if an element has a tabbable shadow
|
|
188
|
-
* @param element - The element to check
|
|
189
|
-
* @returns boolean
|
|
190
|
-
*/
|
|
191
|
-
private static hasTabbableShadow;
|
|
57
|
+
clickHandler(event: Event): boolean;
|
|
192
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';
|
|
@@ -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
|
*/
|
|
@@ -17,7 +17,7 @@ export declare const DividerRole: {
|
|
|
17
17
|
* The types for Divider roles
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export type DividerRole = ValuesOf<typeof DividerRole>;
|
|
21
21
|
/**
|
|
22
22
|
* Divider orientation
|
|
23
23
|
* @public
|
|
@@ -33,7 +33,7 @@ export declare const DividerOrientation: {
|
|
|
33
33
|
* The types for Divider orientation
|
|
34
34
|
* @public
|
|
35
35
|
*/
|
|
36
|
-
export
|
|
36
|
+
export type DividerOrientation = ValuesOf<typeof DividerOrientation>;
|
|
37
37
|
/**
|
|
38
38
|
* Align content within divider
|
|
39
39
|
* @public
|
|
@@ -47,7 +47,7 @@ export declare const DividerAlignContent: {
|
|
|
47
47
|
* The types for DividerAlignContent
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
export
|
|
50
|
+
export type DividerAlignContent = ValuesOf<typeof DividerAlignContent>;
|
|
51
51
|
/**
|
|
52
52
|
* DividerAppearance - divider color defined by a design token alias.
|
|
53
53
|
* @public
|
|
@@ -62,4 +62,4 @@ export declare const DividerAppearance: {
|
|
|
62
62
|
* The types for Appearance
|
|
63
63
|
* @public
|
|
64
64
|
*/
|
|
65
|
-
export
|
|
65
|
+
export type DividerAppearance = ValuesOf<typeof DividerAppearance>;
|
|
@@ -55,7 +55,7 @@ export interface CheckableFormAssociated extends FormAssociated {
|
|
|
55
55
|
* Avaiable types for the `proxy` property.
|
|
56
56
|
* @beta
|
|
57
57
|
*/
|
|
58
|
-
export
|
|
58
|
+
export type ProxyElement = HTMLSelectElement | HTMLTextAreaElement | HTMLInputElement;
|
|
59
59
|
/**
|
|
60
60
|
* Identifies a class as having a proxy element and optional submethods related
|
|
61
61
|
* to the proxy element.
|
|
@@ -76,13 +76,13 @@ export interface FormAssociatedProxy {
|
|
|
76
76
|
*
|
|
77
77
|
* @beta
|
|
78
78
|
*/
|
|
79
|
-
export
|
|
79
|
+
export type FormAssociatedElement = FormAssociated & FASTElement & HTMLElement & FormAssociatedProxy;
|
|
80
80
|
/**
|
|
81
81
|
* Combined type to describe a checkable Form-associated element.
|
|
82
82
|
*
|
|
83
83
|
* @beta
|
|
84
84
|
*/
|
|
85
|
-
export
|
|
85
|
+
export type CheckableFormAssociatedElement = FormAssociatedElement & CheckableFormAssociated & {
|
|
86
86
|
proxy: HTMLInputElement;
|
|
87
87
|
};
|
|
88
88
|
/**
|
|
@@ -90,7 +90,7 @@ export declare type CheckableFormAssociatedElement = FormAssociatedElement & Che
|
|
|
90
90
|
*
|
|
91
91
|
* @beta
|
|
92
92
|
*/
|
|
93
|
-
export
|
|
93
|
+
export type ConstructableFormAssociated = Constructable<HTMLElement & FASTElement>;
|
|
94
94
|
/**
|
|
95
95
|
* Base function for providing Custom Element Form Association.
|
|
96
96
|
*
|
|
@@ -14,7 +14,7 @@ export declare const ImageFit: {
|
|
|
14
14
|
* Types for image fit
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export type ImageFit = ValuesOf<typeof ImageFit>;
|
|
18
18
|
/**
|
|
19
19
|
* Image shape
|
|
20
20
|
* @public
|
|
@@ -24,4 +24,4 @@ export declare const ImageShape: {
|
|
|
24
24
|
readonly rounded: "rounded";
|
|
25
25
|
readonly square: "square";
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type ImageShape = ValuesOf<typeof ImageShape>;
|
|
@@ -1,35 +1,30 @@
|
|
|
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
|
-
|
|
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 './dialog-body/define.js';
|
|
12
|
+
import './divider/define.js';
|
|
13
|
+
import './image/define.js';
|
|
14
|
+
import './label/define.js';
|
|
15
|
+
import './menu-button/define.js';
|
|
16
|
+
import './menu-item/define.js';
|
|
17
|
+
import './menu-list/define.js';
|
|
18
|
+
import './menu/define.js';
|
|
19
|
+
import './progress-bar/define.js';
|
|
20
|
+
import './radio-group/define.js';
|
|
21
|
+
import './radio/define.js';
|
|
22
|
+
import './slider/define.js';
|
|
23
|
+
import './spinner/define.js';
|
|
24
|
+
import './switch/define.js';
|
|
25
|
+
import './tab-panel/define.js';
|
|
26
|
+
import './tab/define.js';
|
|
27
|
+
import './tabs/define.js';
|
|
28
|
+
import './text-input/define.js';
|
|
29
|
+
import './text/define.js';
|
|
30
|
+
import './toggle-button/define.js';
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,36 +1,52 @@
|
|
|
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 {
|
|
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, DialogType, DialogDefinition, DialogTemplate, DialogStyles } from './dialog/index.js';
|
|
15
|
+
export { DialogBody, DialogBodyDefinition, DialogBodyTemplate, DialogBodyStyles } from './dialog-body/index.js';
|
|
16
|
+
export { Divider, DividerAlignContent, DividerAppearance, DividerDefinition, DividerOrientation, DividerRole, DividerStyles, DividerTemplate, } from './divider/index.js';
|
|
34
17
|
export { FluentDesignSystem } from './fluent-design-system.js';
|
|
35
|
-
export {
|
|
18
|
+
export { Image, ImageDefinition, ImageFit, ImageShape, ImageStyles, ImageTemplate } from './image/index.js';
|
|
19
|
+
export { Label, LabelDefinition, LabelSize, LabelStyles, LabelTemplate, LabelWeight } from './label/index.js';
|
|
20
|
+
export { MenuButton, MenuButtonAppearance, MenuButtonDefinition, MenuButtonShape, MenuButtonSize, MenuButtonStyles, MenuButtonTemplate, } from './menu-button/index.js';
|
|
21
|
+
export type { MenuButtonOptions } from './menu-button/index.js';
|
|
22
|
+
export { MenuItem, MenuItemDefinition, MenuItemRole, MenuItemStyles, MenuItemTemplate, roleForMenuItem, } from './menu-item/index.js';
|
|
23
|
+
export type { MenuItemColumnCount, MenuItemOptions } from './menu-item/index.js';
|
|
24
|
+
export { MenuList, MenuListDefinition, MenuListStyles, MenuListTemplate } from './menu-list/index.js';
|
|
25
|
+
export { Menu, MenuDefinition, MenuStyles, MenuTemplate } from './menu/index.js';
|
|
26
|
+
export { ProgressBar, ProgressBarDefinition, ProgressBarShape, ProgressBarStyles, ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, } from './progress-bar/index.js';
|
|
27
|
+
export type { ProgressOptions } from './progress-bar/index.js';
|
|
28
|
+
export { RadioGroup, RadioGroupDefinition, RadioGroupOrientation, RadioGroupStyles, RadioGroupTemplate, } from './radio-group/index.js';
|
|
29
|
+
export { Radio, RadioDefinition, RadioStyles, RadioTemplate } from './radio/index.js';
|
|
30
|
+
export type { RadioControl, RadioOptions } from './radio/index.js';
|
|
31
|
+
export { Slider, SliderDefinition, SliderMode, SliderOrientation, SliderSize, SliderStyles, SliderTemplate, } from './slider/index.js';
|
|
32
|
+
export type { SliderConfiguration, SliderOptions } from './slider/index.js';
|
|
33
|
+
export { Spinner, SpinnerAppearance, SpinnerDefinition, SpinnerSize, SpinnerStyles, SpinnerTemplate, } from './spinner/index.js';
|
|
34
|
+
export { typographyBody1StrongerStyles, typographyBody1StrongStyles, typographyBody1Styles, typographyBody2Styles, typographyCaption1StrongerStyles, typographyCaption1StrongStyles, typographyCaption1Styles, typographyCaption2StrongStyles, typographyCaption2Styles, typographyDisplayStyles, typographyLargeTitleStyles, typographySubtitle1Styles, typographySubtitle2StrongerStyles, typographySubtitle2Styles, typographyTitle1Styles, typographyTitle2Styles, typographyTitle3Styles, } from './styles/partials/typography.partials.js';
|
|
35
|
+
export { Switch, SwitchDefinition, SwitchLabelPosition, SwitchStyles, SwitchTemplate } from './switch/index.js';
|
|
36
|
+
export type { SwitchOptions } from './switch/index.js';
|
|
37
|
+
export { TabPanel, TabPanelDefinition, TabPanelStyles, TabPanelTemplate } from './tab-panel/index.js';
|
|
38
|
+
export { Tab, TabDefinition, TabStyles, TabTemplate } from './tab/index.js';
|
|
39
|
+
export type { TabOptions } from './tab/index.js';
|
|
40
|
+
export { Tabs, TabsAppearance, TabsDefinition, TabsOrientation, TabsSize, TabsStyles, TabsTemplate, } from './tabs/index.js';
|
|
41
|
+
export type { TabsOptions } from './tabs/index.js';
|
|
42
|
+
export { TextInput, TextInputAppearance, TextInputControlSize, TextInputDefinition, TextInputStyles, TextInputTemplate, TextInputType, } from './text-input/index.js';
|
|
43
|
+
export type { TextInputOptions } from './text-input/index.js';
|
|
44
|
+
export { Text, TextAlign, TextDefinition, TextFont, TextSize, TextStyles, TextTemplate, TextWeight, } from './text/index.js';
|
|
36
45
|
export * from './theme/design-tokens.js';
|
|
46
|
+
export { setTheme, setThemeFor } from './theme/index.js';
|
|
47
|
+
export { ToggleButton, ToggleButtonAppearance, ToggleButtonDefinition, ToggleButtonShape, ToggleButtonSize, ToggleButtonStyles, ToggleButtonTemplate, } from './toggle-button/index.js';
|
|
48
|
+
export type { ToggleButtonOptions } from './toggle-button/index.js';
|
|
49
|
+
export { darkModeStylesheetBehavior, forcedColorsStylesheetBehavior, lightModeStylesheetBehavior, MatchMediaBehavior, MatchMediaStyleSheetBehavior, } from './utils/behaviors/match-media-stylesheet-behavior.js';
|
|
50
|
+
export type { MediaQueryListListener } from './utils/behaviors/match-media-stylesheet-behavior.js';
|
|
51
|
+
export { getDirection } from './utils/direction.js';
|
|
52
|
+
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
|
*/
|
|
@@ -11,7 +11,7 @@ export declare const LabelSize: {
|
|
|
11
11
|
* Applies font size to label
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type LabelSize = ValuesOf<typeof LabelSize>;
|
|
15
15
|
/**
|
|
16
16
|
* A label can have a font weight of regular or strong
|
|
17
17
|
*/
|
|
@@ -23,4 +23,4 @@ export declare const LabelWeight: {
|
|
|
23
23
|
* Applies font weight to label
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type LabelWeight = ValuesOf<typeof LabelWeight>;
|