@fluentui/web-components 3.0.0-beta.30 → 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.
Files changed (87) hide show
  1. package/CHANGELOG.md +28 -2
  2. package/dist/dts/anchor-button/anchor-button.d.ts +39 -4
  3. package/dist/dts/anchor-button/anchor-button.options.d.ts +0 -1
  4. package/dist/dts/badge/badge.d.ts +30 -0
  5. package/dist/dts/button/button.d.ts +25 -1
  6. package/dist/dts/button/button.options.d.ts +0 -1
  7. package/dist/dts/checkbox/checkbox.d.ts +13 -1
  8. package/dist/dts/compound-button/compound-button.options.d.ts +0 -5
  9. package/dist/dts/counter-badge/counter-badge.d.ts +36 -0
  10. package/dist/dts/divider/divider.d.ts +18 -0
  11. package/dist/dts/image/image.d.ts +36 -0
  12. package/dist/dts/label/label.d.ts +24 -0
  13. package/dist/dts/link/link.d.ts +12 -0
  14. package/dist/dts/menu-button/menu-button.options.d.ts +0 -1
  15. package/dist/dts/progress-bar/progress-bar.d.ts +18 -0
  16. package/dist/dts/spinner/spinner.d.ts +13 -1
  17. package/dist/dts/styles/states/index.d.ts +175 -0
  18. package/dist/dts/text-input/text-input.d.ts +12 -0
  19. package/dist/dts/toggle-button/toggle-button.options.d.ts +0 -1
  20. package/dist/esm/anchor-button/anchor-button.js +76 -8
  21. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  22. package/dist/esm/anchor-button/anchor-button.styles.js +8 -1
  23. package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
  24. package/dist/esm/anchor-button/anchor-button.template.js +2 -2
  25. package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
  26. package/dist/esm/badge/badge.js +59 -0
  27. package/dist/esm/badge/badge.js.map +1 -1
  28. package/dist/esm/badge/badge.styles.js +6 -5
  29. package/dist/esm/badge/badge.styles.js.map +1 -1
  30. package/dist/esm/button/button.js +48 -0
  31. package/dist/esm/button/button.js.map +1 -1
  32. package/dist/esm/button/button.options.js +0 -1
  33. package/dist/esm/button/button.options.js.map +1 -1
  34. package/dist/esm/button/button.styles.js +40 -49
  35. package/dist/esm/button/button.styles.js.map +1 -1
  36. package/dist/esm/checkbox/checkbox.js +26 -0
  37. package/dist/esm/checkbox/checkbox.js.map +1 -1
  38. package/dist/esm/checkbox/checkbox.styles.js +6 -5
  39. package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
  40. package/dist/esm/compound-button/compound-button.styles.js +14 -15
  41. package/dist/esm/compound-button/compound-button.styles.js.map +1 -1
  42. package/dist/esm/counter-badge/counter-badge.js +67 -0
  43. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  44. package/dist/esm/counter-badge/counter-badge.styles.js +12 -6
  45. package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -1
  46. package/dist/esm/divider/divider.js +47 -2
  47. package/dist/esm/divider/divider.js.map +1 -1
  48. package/dist/esm/divider/divider.styles.js +31 -30
  49. package/dist/esm/divider/divider.styles.js.map +1 -1
  50. package/dist/esm/image/image.js +68 -0
  51. package/dist/esm/image/image.js.map +1 -1
  52. package/dist/esm/image/image.styles.js +10 -9
  53. package/dist/esm/image/image.styles.js.map +1 -1
  54. package/dist/esm/label/label.js +41 -0
  55. package/dist/esm/label/label.js.map +1 -1
  56. package/dist/esm/label/label.styles.js +7 -6
  57. package/dist/esm/label/label.styles.js.map +1 -1
  58. package/dist/esm/link/link.js +22 -0
  59. package/dist/esm/link/link.js.map +1 -1
  60. package/dist/esm/link/link.styles.js +11 -4
  61. package/dist/esm/link/link.styles.js.map +1 -1
  62. package/dist/esm/link/link.template.js +2 -2
  63. package/dist/esm/link/link.template.js.map +1 -1
  64. package/dist/esm/progress-bar/progress-bar.js +40 -0
  65. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  66. package/dist/esm/progress-bar/progress-bar.styles.js +7 -6
  67. package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
  68. package/dist/esm/spinner/spinner.js +27 -0
  69. package/dist/esm/spinner/spinner.js.map +1 -1
  70. package/dist/esm/spinner/spinner.styles.js +9 -8
  71. package/dist/esm/spinner/spinner.styles.js.map +1 -1
  72. package/dist/esm/styles/partials/badge.partials.js +43 -42
  73. package/dist/esm/styles/partials/badge.partials.js.map +1 -1
  74. package/dist/esm/styles/states/index.js +177 -0
  75. package/dist/esm/styles/states/index.js.map +1 -0
  76. package/dist/esm/text-input/text-input.js +27 -0
  77. package/dist/esm/text-input/text-input.js.map +1 -1
  78. package/dist/esm/text-input/text-input.styles.js +23 -22
  79. package/dist/esm/text-input/text-input.styles.js.map +1 -1
  80. package/dist/esm/toggle-button/toggle-button.js +2 -1
  81. package/dist/esm/toggle-button/toggle-button.js.map +1 -1
  82. package/dist/esm/toggle-button/toggle-button.styles.js +24 -23
  83. package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
  84. package/dist/web-components.d.ts +276 -16
  85. package/dist/web-components.js +649 -94
  86. package/dist/web-components.min.js +341 -340
  87. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,12 +1,38 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- This log was last generated on Fri, 14 Jun 2024 04:06:00 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 19 Jun 2024 04:07:23 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [3.0.0-beta.32](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.32)
8
+
9
+ Wed, 19 Jun 2024 04:07:23 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.31..@fluentui/web-components_v3.0.0-beta.32)
11
+
12
+ ### Changes
13
+
14
+ - feat: update progress bar to use element internals custom states for visual states ([PR #31739](https://github.com/microsoft/fluentui/pull/31739) by 13071055+chrisdholt@users.noreply.github.com)
15
+ - feat: update divider to use custom states ([PR #31735](https://github.com/microsoft/fluentui/pull/31735) by 13071055+chrisdholt@users.noreply.github.com)
16
+ - feat: update link to use Element Internals custom states for presentational attributes ([PR #31752](https://github.com/microsoft/fluentui/pull/31752) by 13071055+chrisdholt@users.noreply.github.com)
17
+ - feat: update checkbox to use Element Internals custom states for presentational attributes ([PR #31756](https://github.com/microsoft/fluentui/pull/31756) by 13071055+chrisdholt@users.noreply.github.com)
18
+ - feat: update text input to use Element Internals custom states for presentational attributes ([PR #31753](https://github.com/microsoft/fluentui/pull/31753) by 13071055+chrisdholt@users.noreply.github.com)
19
+ - update image to use element internals custom states for visual states ([PR #31737](https://github.com/microsoft/fluentui/pull/31737) by 13071055+chrisdholt@users.noreply.github.com)
20
+ - feat: update spinner to use Element Internals for presentational styling ([PR #31741](https://github.com/microsoft/fluentui/pull/31741) by 13071055+chrisdholt@users.noreply.github.com)
21
+ - update label to use element internals custom states for styling ([PR #31738](https://github.com/microsoft/fluentui/pull/31738) by 13071055+chrisdholt@users.noreply.github.com)
22
+
23
+ ## [3.0.0-beta.31](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.31)
24
+
25
+ Tue, 18 Jun 2024 04:05:31 GMT
26
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.30..@fluentui/web-components_v3.0.0-beta.31)
27
+
28
+ ### Changes
29
+
30
+ - feat: update button and anchor button to leverage custom states for variants ([PR #31718](https://github.com/microsoft/fluentui/pull/31718) by 13071055+chrisdholt@users.noreply.github.com)
31
+ - update badge to use element internals custom states ([PR #31733](https://github.com/microsoft/fluentui/pull/31733) by 13071055+chrisdholt@users.noreply.github.com)
32
+
7
33
  ## [3.0.0-beta.30](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.30)
8
34
 
9
- Fri, 14 Jun 2024 04:06:00 GMT
35
+ Fri, 14 Jun 2024 04:06:06 GMT
10
36
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.29..@fluentui/web-components_v3.0.0-beta.30)
11
37
 
12
38
  ### Changes
@@ -20,12 +20,17 @@ export type AnchorOptions = StartEndOptions<AnchorButton>;
20
20
  * @public
21
21
  */
22
22
  export declare class BaseAnchor extends FASTElement {
23
+ /**
24
+ * Holds a reference to the platform to manage ctrl+click on Windows and cmd+click on Mac
25
+ * @internal
26
+ */
27
+ private readonly isMac;
23
28
  /**
24
29
  * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
25
30
  *
26
31
  * @internal
27
32
  */
28
- protected elementInternals: ElementInternals;
33
+ elementInternals: ElementInternals;
29
34
  /**
30
35
  * The proxy anchor element
31
36
  * @internal
@@ -120,15 +125,21 @@ export declare class BaseAnchor extends FASTElement {
120
125
  * @param e - The event object
121
126
  * @internal
122
127
  */
123
- clickHandler(): boolean;
128
+ clickHandler(e: PointerEvent): boolean;
124
129
  /**
125
- * Handles keypress events for the anchor.
130
+ * Handles keydown events for the anchor.
126
131
  *
127
132
  * @param e - the keyboard event
128
133
  * @returns - the return value of the click handler
129
134
  * @public
130
135
  */
131
- keypressHandler(e: KeyboardEvent): boolean | void;
136
+ keydownHandler(e: KeyboardEvent): boolean | void;
137
+ /**
138
+ * Handles navigation based on input
139
+ * If the metaKey is pressed, opens the href in a new window, if false, uses the click on the proxy
140
+ * @internal
141
+ */
142
+ private handleNavigation;
132
143
  /**
133
144
  * A method for updating proxy attributes when attributes have changed
134
145
  * @internal
@@ -147,6 +158,12 @@ export declare class AnchorButton extends BaseAnchor {
147
158
  * HTML Attribute: `appearance`
148
159
  */
149
160
  appearance?: AnchorButtonAppearance | undefined;
161
+ /**
162
+ * Handles changes to appearance attribute custom states
163
+ * @param prev - the previous state
164
+ * @param next - the next state
165
+ */
166
+ appearanceChanged(prev: AnchorButtonAppearance | undefined, next: AnchorButtonAppearance | undefined): void;
150
167
  /**
151
168
  * The shape the anchor button should have.
152
169
  *
@@ -155,6 +172,12 @@ export declare class AnchorButton extends BaseAnchor {
155
172
  * HTML Attribute: `shape`
156
173
  */
157
174
  shape?: AnchorButtonShape | undefined;
175
+ /**
176
+ * Handles changes to shape attribute custom states
177
+ * @param prev - the previous state
178
+ * @param next - the next state
179
+ */
180
+ shapeChanged(prev: AnchorButtonShape | undefined, next: AnchorButtonShape | undefined): void;
158
181
  /**
159
182
  * The size the anchor button should have.
160
183
  *
@@ -163,6 +186,12 @@ export declare class AnchorButton extends BaseAnchor {
163
186
  * HTML Attribute: `size`
164
187
  */
165
188
  size?: AnchorButtonSize;
189
+ /**
190
+ * Handles changes to size attribute custom states
191
+ * @param prev - the previous state
192
+ * @param next - the next state
193
+ */
194
+ sizeChanged(prev: AnchorButtonSize | undefined, next: AnchorButtonSize | undefined): void;
166
195
  /**
167
196
  * The anchor button has an icon only, no text content
168
197
  *
@@ -171,6 +200,12 @@ export declare class AnchorButton extends BaseAnchor {
171
200
  * HTML Attribute: `icon-only`
172
201
  */
173
202
  iconOnly: boolean;
203
+ /**
204
+ * Handles changes to icon only custom states
205
+ * @param prev - the previous state
206
+ * @param next - the next state
207
+ */
208
+ iconOnlyChanged(prev: boolean, next: boolean): void;
174
209
  }
175
210
  /**
176
211
  * Mark internal because exporting class and interface of the same name
@@ -8,7 +8,6 @@ export declare const AnchorButtonAppearance: {
8
8
  readonly primary: "primary";
9
9
  readonly outline: "outline";
10
10
  readonly subtle: "subtle";
11
- readonly secondary: "secondary";
12
11
  readonly transparent: "transparent";
13
12
  };
14
13
  /**
@@ -6,6 +6,12 @@ import { BadgeAppearance, BadgeColor, BadgeShape, BadgeSize } from './badge.opti
6
6
  * @public
7
7
  */
8
8
  export declare class Badge extends FASTElement {
9
+ /**
10
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
11
+ *
12
+ * @internal
13
+ */
14
+ elementInternals: ElementInternals;
9
15
  /**
10
16
  * The appearance the badge should have.
11
17
  *
@@ -14,6 +20,12 @@ export declare class Badge extends FASTElement {
14
20
  * HTML Attribute: appearance
15
21
  */
16
22
  appearance: BadgeAppearance;
23
+ /**
24
+ * Handles changes to appearance attribute custom states
25
+ * @param prev - the previous state
26
+ * @param next - the next state
27
+ */
28
+ appearanceChanged(prev: BadgeAppearance | undefined, next: BadgeAppearance | undefined): void;
17
29
  /**
18
30
  * The color the badge should have.
19
31
  *
@@ -22,6 +34,12 @@ export declare class Badge extends FASTElement {
22
34
  * HTML Attribute: color
23
35
  */
24
36
  color: BadgeColor;
37
+ /**
38
+ * Handles changes to color attribute custom states
39
+ * @param prev - the previous state
40
+ * @param next - the next state
41
+ */
42
+ colorChanged(prev: BadgeColor | undefined, next: BadgeColor | undefined): void;
25
43
  /**
26
44
  * The shape the badge should have.
27
45
  *
@@ -30,6 +48,12 @@ export declare class Badge extends FASTElement {
30
48
  * HTML Attribute: shape
31
49
  */
32
50
  shape?: BadgeShape;
51
+ /**
52
+ * Handles changes to shape attribute custom states
53
+ * @param prev - the previous state
54
+ * @param next - the next state
55
+ */
56
+ shapeChanged(prev: BadgeShape | undefined, next: BadgeShape | undefined): void;
33
57
  /**
34
58
  * The size the badge should have.
35
59
  *
@@ -38,6 +62,12 @@ export declare class Badge extends FASTElement {
38
62
  * HTML Attribute: size
39
63
  */
40
64
  size?: BadgeSize;
65
+ /**
66
+ * Handles changes to size attribute custom states
67
+ * @param prev - the previous state
68
+ * @param next - the next state
69
+ */
70
+ sizeChanged(prev: BadgeSize | undefined, next: BadgeSize | undefined): void;
41
71
  }
42
72
  /**
43
73
  * Mark internal because exporting class and interface of the same name
@@ -22,6 +22,12 @@ export declare class Button extends FASTElement {
22
22
  * HTML Attribute: `appearance`
23
23
  */
24
24
  appearance?: ButtonAppearance;
25
+ /**
26
+ * Handles changes to appearance attribute custom states
27
+ * @param prev - the previous state
28
+ * @param next - the next state
29
+ */
30
+ appearanceChanged(prev: ButtonAppearance | undefined, next: ButtonAppearance | undefined): void;
25
31
  /**
26
32
  * Indicates the button should be focused when the page is loaded.
27
33
  * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autofocus | `autofocus`} attribute
@@ -67,7 +73,7 @@ export declare class Button extends FASTElement {
67
73
  *
68
74
  * @internal
69
75
  */
70
- protected elementInternals: ElementInternals;
76
+ elementInternals: ElementInternals;
71
77
  /**
72
78
  * The associated form element.
73
79
  *
@@ -155,6 +161,12 @@ export declare class Button extends FASTElement {
155
161
  * HTML Attribute: `icon-only`
156
162
  */
157
163
  iconOnly: boolean;
164
+ /**
165
+ * Handles changes to icon only custom states
166
+ * @param prev - the previous state
167
+ * @param next - the next state
168
+ */
169
+ iconOnlyChanged(prev: boolean, next: boolean): void;
158
170
  /**
159
171
  * A reference to all associated label elements.
160
172
  *
@@ -178,6 +190,12 @@ export declare class Button extends FASTElement {
178
190
  * HTML Attribute: `shape`
179
191
  */
180
192
  shape?: ButtonShape;
193
+ /**
194
+ * Handles changes to shape attribute custom states
195
+ * @param prev - the previous state
196
+ * @param next - the next state
197
+ */
198
+ shapeChanged(prev: ButtonShape | undefined, next: ButtonShape | undefined): void;
181
199
  /**
182
200
  * The size of the button.
183
201
  *
@@ -186,6 +204,12 @@ export declare class Button extends FASTElement {
186
204
  * HTML Attribute: `size`
187
205
  */
188
206
  size?: ButtonSize;
207
+ /**
208
+ * Handles changes to size attribute custom states
209
+ * @param prev - the previous state
210
+ * @param next - the next state
211
+ */
212
+ sizeChanged(prev: ButtonSize | undefined, next: ButtonSize | undefined): void;
189
213
  /**
190
214
  * The button type.
191
215
  * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type | `type`} attribute
@@ -9,7 +9,6 @@ export declare const ButtonAppearance: {
9
9
  readonly primary: "primary";
10
10
  readonly outline: "outline";
11
11
  readonly subtle: "subtle";
12
- readonly secondary: "secondary";
13
12
  readonly transparent: "transparent";
14
13
  };
15
14
  /**
@@ -289,7 +289,13 @@ export declare class Checkbox extends BaseCheckbox {
289
289
  * @remarks
290
290
  * HTML Attribute: `shape`
291
291
  */
292
- shape: CheckboxShape;
292
+ shape?: CheckboxShape;
293
+ /**
294
+ * Handles changes to shape attribute custom states
295
+ * @param prev - the previous state
296
+ * @param next - the next state
297
+ */
298
+ shapeChanged(prev: CheckboxShape | undefined, next: CheckboxShape | undefined): void;
293
299
  /**
294
300
  * Indicates the size of the checkbox.
295
301
  *
@@ -298,4 +304,10 @@ export declare class Checkbox extends BaseCheckbox {
298
304
  * HTML Attribute: `size`
299
305
  */
300
306
  size?: CheckboxSize;
307
+ /**
308
+ * Handles changes to size attribute custom states
309
+ * @param prev - the previous state
310
+ * @param next - the next state
311
+ */
312
+ sizeChanged(prev: CheckboxSize | undefined, next: CheckboxSize | undefined): void;
301
313
  }
@@ -8,11 +8,6 @@ export declare const CompoundButtonAppearance: {
8
8
  readonly primary: "primary";
9
9
  readonly outline: "outline";
10
10
  readonly subtle: "subtle";
11
- readonly secondary: "secondary";
12
- /**
13
- * A Compound Button can be secondary, primary, outline, subtle, transparent
14
- * @public
15
- */
16
11
  readonly transparent: "transparent";
17
12
  };
18
13
  /**
@@ -6,6 +6,12 @@ import { CounterBadgeAppearance, CounterBadgeColor, CounterBadgeShape, CounterBa
6
6
  * @public
7
7
  */
8
8
  export declare class CounterBadge extends FASTElement {
9
+ /**
10
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
11
+ *
12
+ * @internal
13
+ */
14
+ elementInternals: ElementInternals;
9
15
  /**
10
16
  * The appearance the badge should have.
11
17
  *
@@ -14,6 +20,12 @@ export declare class CounterBadge extends FASTElement {
14
20
  * HTML Attribute: appearance
15
21
  */
16
22
  appearance?: CounterBadgeAppearance;
23
+ /**
24
+ * Handles changes to appearance attribute custom states
25
+ * @param prev - the previous state
26
+ * @param next - the next state
27
+ */
28
+ appearanceChanged(prev: CounterBadgeAppearance | undefined, next: CounterBadgeAppearance | undefined): void;
17
29
  /**
18
30
  * The color the badge should have.
19
31
  *
@@ -22,6 +34,12 @@ export declare class CounterBadge extends FASTElement {
22
34
  * HTML Attribute: color
23
35
  */
24
36
  color?: CounterBadgeColor;
37
+ /**
38
+ * Handles changes to color attribute custom states
39
+ * @param prev - the previous state
40
+ * @param next - the next state
41
+ */
42
+ colorChanged(prev: CounterBadgeColor | undefined, next: CounterBadgeColor | undefined): void;
25
43
  /**
26
44
  * The shape the badge should have.
27
45
  *
@@ -30,6 +48,12 @@ export declare class CounterBadge extends FASTElement {
30
48
  * HTML Attribute: shape
31
49
  */
32
50
  shape?: CounterBadgeShape;
51
+ /**
52
+ * Handles changes to shape attribute custom states
53
+ * @param prev - the previous state
54
+ * @param next - the next state
55
+ */
56
+ shapeChanged(prev: CounterBadgeShape | undefined, next: CounterBadgeShape | undefined): void;
33
57
  /**
34
58
  * The size the badge should have.
35
59
  *
@@ -38,6 +62,12 @@ export declare class CounterBadge extends FASTElement {
38
62
  * HTML Attribute: size
39
63
  */
40
64
  size?: CounterBadgeSize;
65
+ /**
66
+ * Handles changes to size attribute custom states
67
+ * @param prev - the previous state
68
+ * @param next - the next state
69
+ */
70
+ sizeChanged(prev: CounterBadgeSize | undefined, next: CounterBadgeSize | undefined): void;
41
71
  /**
42
72
  * The count the badge should have.
43
73
  *
@@ -72,6 +102,12 @@ export declare class CounterBadge extends FASTElement {
72
102
  * HTML Attribute: dot
73
103
  */
74
104
  dot: boolean;
105
+ /**
106
+ * Handles changes to dot attribute custom states
107
+ * @param prev - the previous state
108
+ * @param next - the next state
109
+ */
110
+ dotChanged(prev: boolean | undefined, next: boolean | undefined): void;
75
111
  /**
76
112
  * @internal
77
113
  * Function to set the count
@@ -35,18 +35,36 @@ export declare class Divider extends FASTElement {
35
35
  * 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.
36
36
  */
37
37
  alignContent?: DividerAlignContent;
38
+ /**
39
+ * Handles changes to align-content attribute custom states
40
+ * @param prev - the previous state
41
+ * @param next - the next state
42
+ */
43
+ alignContentChanged(prev: DividerAlignContent | undefined, next: DividerAlignContent | undefined): void;
38
44
  /**
39
45
  * @public
40
46
  * @remarks
41
47
  * A divider can have one of the preset appearances. Select from strong, brand, subtle. When not specified, the divider has its default appearance.
42
48
  */
43
49
  appearance?: DividerAppearance;
50
+ /**
51
+ * Handles changes to appearance attribute custom states
52
+ * @param prev - the previous state
53
+ * @param next - the next state
54
+ */
55
+ appearanceChanged(prev: DividerAppearance | undefined, next: DividerAppearance | undefined): void;
44
56
  /**
45
57
  * @public
46
58
  * @remarks
47
59
  * Adds padding to the beginning and end of the divider.
48
60
  */
49
61
  inset?: boolean;
62
+ /**
63
+ * Handles changes to inset custom states
64
+ * @param prev - the previous state
65
+ * @param next - the next state
66
+ */
67
+ insetChanged(prev: boolean, next: boolean): void;
50
68
  connectedCallback(): void;
51
69
  /**
52
70
  * Sets the element's internal role when the role attribute changes.
@@ -5,6 +5,12 @@ import { ImageFit, ImageShape } from './image.options.js';
5
5
  * @public
6
6
  */
7
7
  export declare class Image extends FASTElement {
8
+ /**
9
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
10
+ *
11
+ * @internal
12
+ */
13
+ elementInternals: ElementInternals;
8
14
  /**
9
15
  * Image layout
10
16
  *
@@ -13,6 +19,12 @@ export declare class Image extends FASTElement {
13
19
  * HTML attribute: block.
14
20
  */
15
21
  block?: boolean;
22
+ /**
23
+ * Handles changes to block custom states
24
+ * @param prev - the previous state
25
+ * @param next - the next state
26
+ */
27
+ blockChanged(prev: boolean, next: boolean): void;
16
28
  /**
17
29
  * Image border
18
30
  *
@@ -21,6 +33,12 @@ export declare class Image extends FASTElement {
21
33
  * HTML attribute: border.
22
34
  */
23
35
  bordered?: boolean;
36
+ /**
37
+ * Handles changes to bordered custom states
38
+ * @param prev - the previous state
39
+ * @param next - the next state
40
+ */
41
+ borderedChanged(prev: boolean, next: boolean): void;
24
42
  /**
25
43
  * Image shadow
26
44
  *
@@ -29,6 +47,12 @@ export declare class Image extends FASTElement {
29
47
  * HTML attribute: shadow.
30
48
  */
31
49
  shadow?: boolean;
50
+ /**
51
+ * Handles changes to shadow custom states
52
+ * @param prev - the previous state
53
+ * @param next - the next state
54
+ */
55
+ shadowChanged(prev: boolean, next: boolean): void;
32
56
  /**
33
57
  * Image fit
34
58
  *
@@ -37,6 +61,12 @@ export declare class Image extends FASTElement {
37
61
  * HTML attribute: fit.
38
62
  */
39
63
  fit?: ImageFit;
64
+ /**
65
+ * Handles changes to fit attribute custom states
66
+ * @param prev - the previous state
67
+ * @param next - the next state
68
+ */
69
+ fitChanged(prev: ImageFit | undefined, next: ImageFit | undefined): void;
40
70
  /**
41
71
  * Image shape
42
72
  *
@@ -45,4 +75,10 @@ export declare class Image extends FASTElement {
45
75
  * HTML attribute: shape.
46
76
  */
47
77
  shape?: ImageShape;
78
+ /**
79
+ * Handles changes to shape attribute custom states
80
+ * @param prev - the previous state
81
+ * @param next - the next state
82
+ */
83
+ shapeChanged(prev: ImageShape | undefined, next: ImageShape | undefined): void;
48
84
  }
@@ -5,6 +5,12 @@ import { LabelSize, LabelWeight } from './label.options.js';
5
5
  * @public
6
6
  */
7
7
  export declare class Label extends FASTElement {
8
+ /**
9
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
10
+ *
11
+ * @internal
12
+ */
13
+ elementInternals: ElementInternals;
8
14
  /**
9
15
  * Specifies font size of a label
10
16
  *
@@ -13,6 +19,12 @@ export declare class Label extends FASTElement {
13
19
  * HTML Attribute: size
14
20
  */
15
21
  size?: LabelSize;
22
+ /**
23
+ * Handles changes to size attribute custom states
24
+ * @param prev - the previous state
25
+ * @param next - the next state
26
+ */
27
+ sizeChanged(prev: LabelSize | undefined, next: LabelSize | undefined): void;
16
28
  /**
17
29
  * Specifies font weight of a label
18
30
  *
@@ -21,6 +33,12 @@ export declare class Label extends FASTElement {
21
33
  * HTML Attribute: weight
22
34
  */
23
35
  weight?: LabelWeight;
36
+ /**
37
+ * Handles changes to weight attribute custom states
38
+ * @param prev - the previous state
39
+ * @param next - the next state
40
+ */
41
+ weightChanged(prev: LabelWeight | undefined, next: LabelWeight | undefined): void;
24
42
  /**
25
43
  * Specifies styles for label when associated input is disabled
26
44
  *
@@ -29,6 +47,12 @@ export declare class Label extends FASTElement {
29
47
  * HTML Attribute: disabled
30
48
  */
31
49
  disabled: boolean;
50
+ /**
51
+ * Handles changes to disabled attribute custom states
52
+ * @param prev - the previous state
53
+ * @param next - the next state
54
+ */
55
+ disabledChanged(prev: boolean | undefined, next: boolean | undefined): void;
32
56
  /**
33
57
  * Specifies styles for label when associated input is a required field
34
58
  *
@@ -19,6 +19,12 @@ export declare class Link extends BaseAnchor {
19
19
  * HTML Attribute: `appearance`
20
20
  */
21
21
  appearance?: LinkAppearance | undefined;
22
+ /**
23
+ * Handles changes to appearance attribute custom states
24
+ * @param prev - the previous state
25
+ * @param next - the next state
26
+ */
27
+ appearanceChanged(prev: LinkAppearance | undefined, next: LinkAppearance | undefined): void;
22
28
  /**
23
29
  * The link is inline with text
24
30
  * In chromium browsers, if the link is contained within a semantic
@@ -30,4 +36,10 @@ export declare class Link extends BaseAnchor {
30
36
  * HTML Attribute: `inline`
31
37
  */
32
38
  inline: boolean;
39
+ /**
40
+ * Handles changes to inline attribute custom states
41
+ * @param prev - the previous state
42
+ * @param next - the next state
43
+ */
44
+ inlineChanged(prev: boolean, next: boolean): void;
33
45
  }
@@ -8,7 +8,6 @@ export declare const MenuButtonAppearance: {
8
8
  readonly primary: "primary";
9
9
  readonly outline: "outline";
10
10
  readonly subtle: "subtle";
11
- readonly secondary: "secondary";
12
11
  readonly transparent: "transparent";
13
12
  };
14
13
  /**
@@ -20,18 +20,36 @@ export declare class ProgressBar extends FASTElement {
20
20
  * HTML Attribute: `thickness`
21
21
  */
22
22
  thickness?: ProgressBarThickness;
23
+ /**
24
+ * Handles changes to thickness attribute custom states
25
+ * @param prev - the previous state
26
+ * @param next - the next state
27
+ */
28
+ thicknessChanged(prev: ProgressBarThickness | undefined, next: ProgressBarThickness | undefined): void;
23
29
  /**
24
30
  * The shape of the progress bar
25
31
  * @public
26
32
  * HTML Attribute: `shape`
27
33
  */
28
34
  shape?: ProgressBarShape;
35
+ /**
36
+ * Handles changes to shape attribute custom states
37
+ * @param prev - the previous state
38
+ * @param next - the next state
39
+ */
40
+ shapeChanged(prev: ProgressBarShape | undefined, next: ProgressBarShape | undefined): void;
29
41
  /**
30
42
  * The validation state of the progress bar
31
43
  * @public
32
44
  * HTML Attribute: `validation-state`
33
45
  */
34
46
  validationState: ProgressBarValidationState | null;
47
+ /**
48
+ * Handles changes to validation-state attribute custom states
49
+ * @param prev - the previous state
50
+ * @param next - the next state
51
+ */
52
+ validationStateChanged(prev: ProgressBarValidationState | undefined, next: ProgressBarValidationState | undefined): void;
35
53
  /**
36
54
  * The value of the progress
37
55
  * @internal
@@ -10,7 +10,7 @@ export declare class Spinner extends FASTElement {
10
10
  *
11
11
  * @internal
12
12
  */
13
- protected elementInternals: ElementInternals;
13
+ elementInternals: ElementInternals;
14
14
  /**
15
15
  * The size of the spinner
16
16
  *
@@ -19,6 +19,12 @@ export declare class Spinner extends FASTElement {
19
19
  * HTML Attribute: size
20
20
  */
21
21
  size?: SpinnerSize;
22
+ /**
23
+ * Handles changes to size attribute custom states
24
+ * @param prev - the previous state
25
+ * @param next - the next state
26
+ */
27
+ sizeChanged(prev: SpinnerSize | undefined, next: SpinnerSize | undefined): void;
22
28
  /**
23
29
  * The appearance of the spinner
24
30
  * @public
@@ -26,5 +32,11 @@ export declare class Spinner extends FASTElement {
26
32
  * HTML Attribute: appearance
27
33
  */
28
34
  appearance?: SpinnerAppearance;
35
+ /**
36
+ * Handles changes to appearance attribute custom states
37
+ * @param prev - the previous state
38
+ * @param next - the next state
39
+ */
40
+ appearanceChanged(prev: SpinnerAppearance | undefined, next: SpinnerAppearance | undefined): void;
29
41
  constructor();
30
42
  }