@fluentui/web-components 3.0.0-beta.31 → 3.0.0-beta.32
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 +18 -2
- package/dist/dts/anchor-button/anchor-button.d.ts +1 -1
- package/dist/dts/checkbox/checkbox.d.ts +13 -1
- package/dist/dts/divider/divider.d.ts +18 -0
- package/dist/dts/image/image.d.ts +36 -0
- package/dist/dts/label/label.d.ts +24 -0
- package/dist/dts/link/link.d.ts +12 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +18 -0
- package/dist/dts/spinner/spinner.d.ts +13 -1
- package/dist/dts/styles/states/index.d.ts +65 -0
- package/dist/dts/text-input/text-input.d.ts +12 -0
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/checkbox/checkbox.js +26 -0
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/checkbox/checkbox.styles.js +6 -5
- package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
- package/dist/esm/divider/divider.js +47 -2
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/divider.styles.js +31 -30
- package/dist/esm/divider/divider.styles.js.map +1 -1
- package/dist/esm/image/image.js +68 -0
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/image/image.styles.js +10 -9
- package/dist/esm/image/image.styles.js.map +1 -1
- package/dist/esm/label/label.js +41 -0
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/label/label.styles.js +7 -6
- package/dist/esm/label/label.styles.js.map +1 -1
- package/dist/esm/link/link.js +22 -0
- package/dist/esm/link/link.js.map +1 -1
- package/dist/esm/link/link.styles.js +5 -4
- package/dist/esm/link/link.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.js +40 -0
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js +7 -6
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/esm/spinner/spinner.js +27 -0
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/spinner/spinner.styles.js +9 -8
- package/dist/esm/spinner/spinner.styles.js.map +1 -1
- package/dist/esm/styles/states/index.js +65 -0
- package/dist/esm/styles/states/index.js.map +1 -1
- package/dist/esm/text-input/text-input.js +27 -0
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/text-input/text-input.styles.js +23 -22
- package/dist/esm/text-input/text-input.styles.js.map +1 -1
- package/dist/web-components.d.ts +147 -3
- package/dist/web-components.js +307 -15
- package/dist/web-components.min.js +277 -277
- package/package.json +1 -1
package/dist/web-components.d.ts
CHANGED
|
@@ -861,7 +861,7 @@ declare class BaseAnchor extends FASTElement {
|
|
|
861
861
|
*
|
|
862
862
|
* @internal
|
|
863
863
|
*/
|
|
864
|
-
|
|
864
|
+
elementInternals: ElementInternals;
|
|
865
865
|
/**
|
|
866
866
|
* The proxy anchor element
|
|
867
867
|
* @internal
|
|
@@ -1824,7 +1824,13 @@ export declare class Checkbox extends BaseCheckbox {
|
|
|
1824
1824
|
* @remarks
|
|
1825
1825
|
* HTML Attribute: `shape`
|
|
1826
1826
|
*/
|
|
1827
|
-
shape
|
|
1827
|
+
shape?: CheckboxShape;
|
|
1828
|
+
/**
|
|
1829
|
+
* Handles changes to shape attribute custom states
|
|
1830
|
+
* @param prev - the previous state
|
|
1831
|
+
* @param next - the next state
|
|
1832
|
+
*/
|
|
1833
|
+
shapeChanged(prev: CheckboxShape | undefined, next: CheckboxShape | undefined): void;
|
|
1828
1834
|
/**
|
|
1829
1835
|
* Indicates the size of the checkbox.
|
|
1830
1836
|
*
|
|
@@ -1833,6 +1839,12 @@ export declare class Checkbox extends BaseCheckbox {
|
|
|
1833
1839
|
* HTML Attribute: `size`
|
|
1834
1840
|
*/
|
|
1835
1841
|
size?: CheckboxSize;
|
|
1842
|
+
/**
|
|
1843
|
+
* Handles changes to size attribute custom states
|
|
1844
|
+
* @param prev - the previous state
|
|
1845
|
+
* @param next - the next state
|
|
1846
|
+
*/
|
|
1847
|
+
sizeChanged(prev: CheckboxSize | undefined, next: CheckboxSize | undefined): void;
|
|
1836
1848
|
}
|
|
1837
1849
|
|
|
1838
1850
|
/**
|
|
@@ -4500,18 +4512,36 @@ export declare class Divider extends FASTElement {
|
|
|
4500
4512
|
* 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.
|
|
4501
4513
|
*/
|
|
4502
4514
|
alignContent?: DividerAlignContent;
|
|
4515
|
+
/**
|
|
4516
|
+
* Handles changes to align-content attribute custom states
|
|
4517
|
+
* @param prev - the previous state
|
|
4518
|
+
* @param next - the next state
|
|
4519
|
+
*/
|
|
4520
|
+
alignContentChanged(prev: DividerAlignContent | undefined, next: DividerAlignContent | undefined): void;
|
|
4503
4521
|
/**
|
|
4504
4522
|
* @public
|
|
4505
4523
|
* @remarks
|
|
4506
4524
|
* A divider can have one of the preset appearances. Select from strong, brand, subtle. When not specified, the divider has its default appearance.
|
|
4507
4525
|
*/
|
|
4508
4526
|
appearance?: DividerAppearance;
|
|
4527
|
+
/**
|
|
4528
|
+
* Handles changes to appearance attribute custom states
|
|
4529
|
+
* @param prev - the previous state
|
|
4530
|
+
* @param next - the next state
|
|
4531
|
+
*/
|
|
4532
|
+
appearanceChanged(prev: DividerAppearance | undefined, next: DividerAppearance | undefined): void;
|
|
4509
4533
|
/**
|
|
4510
4534
|
* @public
|
|
4511
4535
|
* @remarks
|
|
4512
4536
|
* Adds padding to the beginning and end of the divider.
|
|
4513
4537
|
*/
|
|
4514
4538
|
inset?: boolean;
|
|
4539
|
+
/**
|
|
4540
|
+
* Handles changes to inset custom states
|
|
4541
|
+
* @param prev - the previous state
|
|
4542
|
+
* @param next - the next state
|
|
4543
|
+
*/
|
|
4544
|
+
insetChanged(prev: boolean, next: boolean): void;
|
|
4515
4545
|
connectedCallback(): void;
|
|
4516
4546
|
/**
|
|
4517
4547
|
* Sets the element's internal role when the role attribute changes.
|
|
@@ -5001,6 +5031,12 @@ export declare const getDirection: (rootNode: HTMLElement) => Direction;
|
|
|
5001
5031
|
* @public
|
|
5002
5032
|
*/
|
|
5003
5033
|
declare class Image_2 extends FASTElement {
|
|
5034
|
+
/**
|
|
5035
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
5036
|
+
*
|
|
5037
|
+
* @internal
|
|
5038
|
+
*/
|
|
5039
|
+
elementInternals: ElementInternals;
|
|
5004
5040
|
/**
|
|
5005
5041
|
* Image layout
|
|
5006
5042
|
*
|
|
@@ -5009,6 +5045,12 @@ declare class Image_2 extends FASTElement {
|
|
|
5009
5045
|
* HTML attribute: block.
|
|
5010
5046
|
*/
|
|
5011
5047
|
block?: boolean;
|
|
5048
|
+
/**
|
|
5049
|
+
* Handles changes to block custom states
|
|
5050
|
+
* @param prev - the previous state
|
|
5051
|
+
* @param next - the next state
|
|
5052
|
+
*/
|
|
5053
|
+
blockChanged(prev: boolean, next: boolean): void;
|
|
5012
5054
|
/**
|
|
5013
5055
|
* Image border
|
|
5014
5056
|
*
|
|
@@ -5017,6 +5059,12 @@ declare class Image_2 extends FASTElement {
|
|
|
5017
5059
|
* HTML attribute: border.
|
|
5018
5060
|
*/
|
|
5019
5061
|
bordered?: boolean;
|
|
5062
|
+
/**
|
|
5063
|
+
* Handles changes to bordered custom states
|
|
5064
|
+
* @param prev - the previous state
|
|
5065
|
+
* @param next - the next state
|
|
5066
|
+
*/
|
|
5067
|
+
borderedChanged(prev: boolean, next: boolean): void;
|
|
5020
5068
|
/**
|
|
5021
5069
|
* Image shadow
|
|
5022
5070
|
*
|
|
@@ -5025,6 +5073,12 @@ declare class Image_2 extends FASTElement {
|
|
|
5025
5073
|
* HTML attribute: shadow.
|
|
5026
5074
|
*/
|
|
5027
5075
|
shadow?: boolean;
|
|
5076
|
+
/**
|
|
5077
|
+
* Handles changes to shadow custom states
|
|
5078
|
+
* @param prev - the previous state
|
|
5079
|
+
* @param next - the next state
|
|
5080
|
+
*/
|
|
5081
|
+
shadowChanged(prev: boolean, next: boolean): void;
|
|
5028
5082
|
/**
|
|
5029
5083
|
* Image fit
|
|
5030
5084
|
*
|
|
@@ -5033,6 +5087,12 @@ declare class Image_2 extends FASTElement {
|
|
|
5033
5087
|
* HTML attribute: fit.
|
|
5034
5088
|
*/
|
|
5035
5089
|
fit?: ImageFit;
|
|
5090
|
+
/**
|
|
5091
|
+
* Handles changes to fit attribute custom states
|
|
5092
|
+
* @param prev - the previous state
|
|
5093
|
+
* @param next - the next state
|
|
5094
|
+
*/
|
|
5095
|
+
fitChanged(prev: ImageFit | undefined, next: ImageFit | undefined): void;
|
|
5036
5096
|
/**
|
|
5037
5097
|
* Image shape
|
|
5038
5098
|
*
|
|
@@ -5041,6 +5101,12 @@ declare class Image_2 extends FASTElement {
|
|
|
5041
5101
|
* HTML attribute: shape.
|
|
5042
5102
|
*/
|
|
5043
5103
|
shape?: ImageShape;
|
|
5104
|
+
/**
|
|
5105
|
+
* Handles changes to shape attribute custom states
|
|
5106
|
+
* @param prev - the previous state
|
|
5107
|
+
* @param next - the next state
|
|
5108
|
+
*/
|
|
5109
|
+
shapeChanged(prev: ImageShape | undefined, next: ImageShape | undefined): void;
|
|
5044
5110
|
}
|
|
5045
5111
|
export { Image_2 as Image }
|
|
5046
5112
|
|
|
@@ -5100,6 +5166,12 @@ export declare const ImageTemplate: ElementViewTemplate<Image_2>;
|
|
|
5100
5166
|
* @public
|
|
5101
5167
|
*/
|
|
5102
5168
|
export declare class Label extends FASTElement {
|
|
5169
|
+
/**
|
|
5170
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
5171
|
+
*
|
|
5172
|
+
* @internal
|
|
5173
|
+
*/
|
|
5174
|
+
elementInternals: ElementInternals;
|
|
5103
5175
|
/**
|
|
5104
5176
|
* Specifies font size of a label
|
|
5105
5177
|
*
|
|
@@ -5108,6 +5180,12 @@ export declare class Label extends FASTElement {
|
|
|
5108
5180
|
* HTML Attribute: size
|
|
5109
5181
|
*/
|
|
5110
5182
|
size?: LabelSize;
|
|
5183
|
+
/**
|
|
5184
|
+
* Handles changes to size attribute custom states
|
|
5185
|
+
* @param prev - the previous state
|
|
5186
|
+
* @param next - the next state
|
|
5187
|
+
*/
|
|
5188
|
+
sizeChanged(prev: LabelSize | undefined, next: LabelSize | undefined): void;
|
|
5111
5189
|
/**
|
|
5112
5190
|
* Specifies font weight of a label
|
|
5113
5191
|
*
|
|
@@ -5116,6 +5194,12 @@ export declare class Label extends FASTElement {
|
|
|
5116
5194
|
* HTML Attribute: weight
|
|
5117
5195
|
*/
|
|
5118
5196
|
weight?: LabelWeight;
|
|
5197
|
+
/**
|
|
5198
|
+
* Handles changes to weight attribute custom states
|
|
5199
|
+
* @param prev - the previous state
|
|
5200
|
+
* @param next - the next state
|
|
5201
|
+
*/
|
|
5202
|
+
weightChanged(prev: LabelWeight | undefined, next: LabelWeight | undefined): void;
|
|
5119
5203
|
/**
|
|
5120
5204
|
* Specifies styles for label when associated input is disabled
|
|
5121
5205
|
*
|
|
@@ -5124,6 +5208,12 @@ export declare class Label extends FASTElement {
|
|
|
5124
5208
|
* HTML Attribute: disabled
|
|
5125
5209
|
*/
|
|
5126
5210
|
disabled: boolean;
|
|
5211
|
+
/**
|
|
5212
|
+
* Handles changes to disabled attribute custom states
|
|
5213
|
+
* @param prev - the previous state
|
|
5214
|
+
* @param next - the next state
|
|
5215
|
+
*/
|
|
5216
|
+
disabledChanged(prev: boolean | undefined, next: boolean | undefined): void;
|
|
5127
5217
|
/**
|
|
5128
5218
|
* Specifies styles for label when associated input is a required field
|
|
5129
5219
|
*
|
|
@@ -5265,6 +5355,12 @@ export declare class Link extends BaseAnchor {
|
|
|
5265
5355
|
* HTML Attribute: `appearance`
|
|
5266
5356
|
*/
|
|
5267
5357
|
appearance?: LinkAppearance | undefined;
|
|
5358
|
+
/**
|
|
5359
|
+
* Handles changes to appearance attribute custom states
|
|
5360
|
+
* @param prev - the previous state
|
|
5361
|
+
* @param next - the next state
|
|
5362
|
+
*/
|
|
5363
|
+
appearanceChanged(prev: LinkAppearance | undefined, next: LinkAppearance | undefined): void;
|
|
5268
5364
|
/**
|
|
5269
5365
|
* The link is inline with text
|
|
5270
5366
|
* In chromium browsers, if the link is contained within a semantic
|
|
@@ -5276,6 +5372,12 @@ export declare class Link extends BaseAnchor {
|
|
|
5276
5372
|
* HTML Attribute: `inline`
|
|
5277
5373
|
*/
|
|
5278
5374
|
inline: boolean;
|
|
5375
|
+
/**
|
|
5376
|
+
* Handles changes to inline attribute custom states
|
|
5377
|
+
* @param prev - the previous state
|
|
5378
|
+
* @param next - the next state
|
|
5379
|
+
*/
|
|
5380
|
+
inlineChanged(prev: boolean, next: boolean): void;
|
|
5279
5381
|
}
|
|
5280
5382
|
|
|
5281
5383
|
/**
|
|
@@ -6028,18 +6130,36 @@ export declare class ProgressBar extends FASTElement {
|
|
|
6028
6130
|
* HTML Attribute: `thickness`
|
|
6029
6131
|
*/
|
|
6030
6132
|
thickness?: ProgressBarThickness;
|
|
6133
|
+
/**
|
|
6134
|
+
* Handles changes to thickness attribute custom states
|
|
6135
|
+
* @param prev - the previous state
|
|
6136
|
+
* @param next - the next state
|
|
6137
|
+
*/
|
|
6138
|
+
thicknessChanged(prev: ProgressBarThickness | undefined, next: ProgressBarThickness | undefined): void;
|
|
6031
6139
|
/**
|
|
6032
6140
|
* The shape of the progress bar
|
|
6033
6141
|
* @public
|
|
6034
6142
|
* HTML Attribute: `shape`
|
|
6035
6143
|
*/
|
|
6036
6144
|
shape?: ProgressBarShape;
|
|
6145
|
+
/**
|
|
6146
|
+
* Handles changes to shape attribute custom states
|
|
6147
|
+
* @param prev - the previous state
|
|
6148
|
+
* @param next - the next state
|
|
6149
|
+
*/
|
|
6150
|
+
shapeChanged(prev: ProgressBarShape | undefined, next: ProgressBarShape | undefined): void;
|
|
6037
6151
|
/**
|
|
6038
6152
|
* The validation state of the progress bar
|
|
6039
6153
|
* @public
|
|
6040
6154
|
* HTML Attribute: `validation-state`
|
|
6041
6155
|
*/
|
|
6042
6156
|
validationState: ProgressBarValidationState | null;
|
|
6157
|
+
/**
|
|
6158
|
+
* Handles changes to validation-state attribute custom states
|
|
6159
|
+
* @param prev - the previous state
|
|
6160
|
+
* @param next - the next state
|
|
6161
|
+
*/
|
|
6162
|
+
validationStateChanged(prev: ProgressBarValidationState | undefined, next: ProgressBarValidationState | undefined): void;
|
|
6043
6163
|
/**
|
|
6044
6164
|
* The value of the progress
|
|
6045
6165
|
* @internal
|
|
@@ -6910,7 +7030,7 @@ export declare class Spinner extends FASTElement {
|
|
|
6910
7030
|
*
|
|
6911
7031
|
* @internal
|
|
6912
7032
|
*/
|
|
6913
|
-
|
|
7033
|
+
elementInternals: ElementInternals;
|
|
6914
7034
|
/**
|
|
6915
7035
|
* The size of the spinner
|
|
6916
7036
|
*
|
|
@@ -6919,6 +7039,12 @@ export declare class Spinner extends FASTElement {
|
|
|
6919
7039
|
* HTML Attribute: size
|
|
6920
7040
|
*/
|
|
6921
7041
|
size?: SpinnerSize;
|
|
7042
|
+
/**
|
|
7043
|
+
* Handles changes to size attribute custom states
|
|
7044
|
+
* @param prev - the previous state
|
|
7045
|
+
* @param next - the next state
|
|
7046
|
+
*/
|
|
7047
|
+
sizeChanged(prev: SpinnerSize | undefined, next: SpinnerSize | undefined): void;
|
|
6922
7048
|
/**
|
|
6923
7049
|
* The appearance of the spinner
|
|
6924
7050
|
* @public
|
|
@@ -6926,6 +7052,12 @@ export declare class Spinner extends FASTElement {
|
|
|
6926
7052
|
* HTML Attribute: appearance
|
|
6927
7053
|
*/
|
|
6928
7054
|
appearance?: SpinnerAppearance;
|
|
7055
|
+
/**
|
|
7056
|
+
* Handles changes to appearance attribute custom states
|
|
7057
|
+
* @param prev - the previous state
|
|
7058
|
+
* @param next - the next state
|
|
7059
|
+
*/
|
|
7060
|
+
appearanceChanged(prev: SpinnerAppearance | undefined, next: SpinnerAppearance | undefined): void;
|
|
6929
7061
|
constructor();
|
|
6930
7062
|
}
|
|
6931
7063
|
|
|
@@ -7402,6 +7534,12 @@ export declare class TextInput extends FASTElement {
|
|
|
7402
7534
|
* HTML Attribute: `appearance`
|
|
7403
7535
|
*/
|
|
7404
7536
|
appearance?: TextInputAppearance;
|
|
7537
|
+
/**
|
|
7538
|
+
* Handles changes to appearance attribute custom states
|
|
7539
|
+
* @param prev - the previous state
|
|
7540
|
+
* @param next - the next state
|
|
7541
|
+
*/
|
|
7542
|
+
appearanceChanged(prev: TextInputAppearance | undefined, next: TextInputAppearance | undefined): void;
|
|
7405
7543
|
/**
|
|
7406
7544
|
* Indicates the element's autocomplete state.
|
|
7407
7545
|
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/autocomplete | `autocomplete`} attribute
|
|
@@ -7428,6 +7566,12 @@ export declare class TextInput extends FASTElement {
|
|
|
7428
7566
|
* HTML Attribute: `control-size`
|
|
7429
7567
|
*/
|
|
7430
7568
|
controlSize?: TextInputControlSize;
|
|
7569
|
+
/**
|
|
7570
|
+
* Handles changes to `control-size` attribute custom states
|
|
7571
|
+
* @param prev - the previous state
|
|
7572
|
+
* @param next - the next state
|
|
7573
|
+
*/
|
|
7574
|
+
controlSizeChanged(prev: TextInputControlSize | undefined, next: TextInputControlSize | undefined): void;
|
|
7431
7575
|
/**
|
|
7432
7576
|
* The default slotted content. This is the content that appears in the text field label.
|
|
7433
7577
|
*
|