@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
@@ -247,6 +247,12 @@ export declare class AnchorButton extends BaseAnchor {
247
247
  * HTML Attribute: `appearance`
248
248
  */
249
249
  appearance?: AnchorButtonAppearance | undefined;
250
+ /**
251
+ * Handles changes to appearance attribute custom states
252
+ * @param prev - the previous state
253
+ * @param next - the next state
254
+ */
255
+ appearanceChanged(prev: AnchorButtonAppearance | undefined, next: AnchorButtonAppearance | undefined): void;
250
256
  /**
251
257
  * The shape the anchor button should have.
252
258
  *
@@ -255,6 +261,12 @@ export declare class AnchorButton extends BaseAnchor {
255
261
  * HTML Attribute: `shape`
256
262
  */
257
263
  shape?: AnchorButtonShape | undefined;
264
+ /**
265
+ * Handles changes to shape attribute custom states
266
+ * @param prev - the previous state
267
+ * @param next - the next state
268
+ */
269
+ shapeChanged(prev: AnchorButtonShape | undefined, next: AnchorButtonShape | undefined): void;
258
270
  /**
259
271
  * The size the anchor button should have.
260
272
  *
@@ -263,6 +275,12 @@ export declare class AnchorButton extends BaseAnchor {
263
275
  * HTML Attribute: `size`
264
276
  */
265
277
  size?: AnchorButtonSize;
278
+ /**
279
+ * Handles changes to size attribute custom states
280
+ * @param prev - the previous state
281
+ * @param next - the next state
282
+ */
283
+ sizeChanged(prev: AnchorButtonSize | undefined, next: AnchorButtonSize | undefined): void;
266
284
  /**
267
285
  * The anchor button has an icon only, no text content
268
286
  *
@@ -271,6 +289,12 @@ export declare class AnchorButton extends BaseAnchor {
271
289
  * HTML Attribute: `icon-only`
272
290
  */
273
291
  iconOnly: boolean;
292
+ /**
293
+ * Handles changes to icon only custom states
294
+ * @param prev - the previous state
295
+ * @param next - the next state
296
+ */
297
+ iconOnlyChanged(prev: boolean, next: boolean): void;
274
298
  }
275
299
 
276
300
  /**
@@ -290,7 +314,6 @@ export declare const AnchorButtonAppearance: {
290
314
  readonly primary: "primary";
291
315
  readonly outline: "outline";
292
316
  readonly subtle: "subtle";
293
- readonly secondary: "secondary";
294
317
  readonly transparent: "transparent";
295
318
  };
296
319
 
@@ -654,6 +677,12 @@ export declare const AvatarTemplate: ElementViewTemplate<Avatar>;
654
677
  * @public
655
678
  */
656
679
  export declare class Badge extends FASTElement {
680
+ /**
681
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
682
+ *
683
+ * @internal
684
+ */
685
+ elementInternals: ElementInternals;
657
686
  /**
658
687
  * The appearance the badge should have.
659
688
  *
@@ -662,6 +691,12 @@ export declare class Badge extends FASTElement {
662
691
  * HTML Attribute: appearance
663
692
  */
664
693
  appearance: BadgeAppearance;
694
+ /**
695
+ * Handles changes to appearance attribute custom states
696
+ * @param prev - the previous state
697
+ * @param next - the next state
698
+ */
699
+ appearanceChanged(prev: BadgeAppearance | undefined, next: BadgeAppearance | undefined): void;
665
700
  /**
666
701
  * The color the badge should have.
667
702
  *
@@ -670,6 +705,12 @@ export declare class Badge extends FASTElement {
670
705
  * HTML Attribute: color
671
706
  */
672
707
  color: BadgeColor;
708
+ /**
709
+ * Handles changes to color attribute custom states
710
+ * @param prev - the previous state
711
+ * @param next - the next state
712
+ */
713
+ colorChanged(prev: BadgeColor | undefined, next: BadgeColor | undefined): void;
673
714
  /**
674
715
  * The shape the badge should have.
675
716
  *
@@ -678,6 +719,12 @@ export declare class Badge extends FASTElement {
678
719
  * HTML Attribute: shape
679
720
  */
680
721
  shape?: BadgeShape;
722
+ /**
723
+ * Handles changes to shape attribute custom states
724
+ * @param prev - the previous state
725
+ * @param next - the next state
726
+ */
727
+ shapeChanged(prev: BadgeShape | undefined, next: BadgeShape | undefined): void;
681
728
  /**
682
729
  * The size the badge should have.
683
730
  *
@@ -686,6 +733,12 @@ export declare class Badge extends FASTElement {
686
733
  * HTML Attribute: size
687
734
  */
688
735
  size?: BadgeSize;
736
+ /**
737
+ * Handles changes to size attribute custom states
738
+ * @param prev - the previous state
739
+ * @param next - the next state
740
+ */
741
+ sizeChanged(prev: BadgeSize | undefined, next: BadgeSize | undefined): void;
689
742
  }
690
743
 
691
744
  /**
@@ -798,12 +851,17 @@ export declare const BadgeTemplate: ElementViewTemplate<Badge>;
798
851
  * @public
799
852
  */
800
853
  declare class BaseAnchor extends FASTElement {
854
+ /**
855
+ * Holds a reference to the platform to manage ctrl+click on Windows and cmd+click on Mac
856
+ * @internal
857
+ */
858
+ private readonly isMac;
801
859
  /**
802
860
  * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
803
861
  *
804
862
  * @internal
805
863
  */
806
- protected elementInternals: ElementInternals;
864
+ elementInternals: ElementInternals;
807
865
  /**
808
866
  * The proxy anchor element
809
867
  * @internal
@@ -898,15 +956,21 @@ declare class BaseAnchor extends FASTElement {
898
956
  * @param e - The event object
899
957
  * @internal
900
958
  */
901
- clickHandler(): boolean;
959
+ clickHandler(e: PointerEvent): boolean;
902
960
  /**
903
- * Handles keypress events for the anchor.
961
+ * Handles keydown events for the anchor.
904
962
  *
905
963
  * @param e - the keyboard event
906
964
  * @returns - the return value of the click handler
907
965
  * @public
908
966
  */
909
- keypressHandler(e: KeyboardEvent): boolean | void;
967
+ keydownHandler(e: KeyboardEvent): boolean | void;
968
+ /**
969
+ * Handles navigation based on input
970
+ * If the metaKey is pressed, opens the href in a new window, if false, uses the click on the proxy
971
+ * @internal
972
+ */
973
+ private handleNavigation;
910
974
  /**
911
975
  * A method for updating proxy attributes when attributes have changed
912
976
  * @internal
@@ -1344,6 +1408,12 @@ export declare class Button extends FASTElement {
1344
1408
  * HTML Attribute: `appearance`
1345
1409
  */
1346
1410
  appearance?: ButtonAppearance;
1411
+ /**
1412
+ * Handles changes to appearance attribute custom states
1413
+ * @param prev - the previous state
1414
+ * @param next - the next state
1415
+ */
1416
+ appearanceChanged(prev: ButtonAppearance | undefined, next: ButtonAppearance | undefined): void;
1347
1417
  /**
1348
1418
  * Indicates the button should be focused when the page is loaded.
1349
1419
  * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autofocus | `autofocus`} attribute
@@ -1389,7 +1459,7 @@ export declare class Button extends FASTElement {
1389
1459
  *
1390
1460
  * @internal
1391
1461
  */
1392
- protected elementInternals: ElementInternals;
1462
+ elementInternals: ElementInternals;
1393
1463
  /**
1394
1464
  * The associated form element.
1395
1465
  *
@@ -1477,6 +1547,12 @@ export declare class Button extends FASTElement {
1477
1547
  * HTML Attribute: `icon-only`
1478
1548
  */
1479
1549
  iconOnly: boolean;
1550
+ /**
1551
+ * Handles changes to icon only custom states
1552
+ * @param prev - the previous state
1553
+ * @param next - the next state
1554
+ */
1555
+ iconOnlyChanged(prev: boolean, next: boolean): void;
1480
1556
  /**
1481
1557
  * A reference to all associated label elements.
1482
1558
  *
@@ -1500,6 +1576,12 @@ export declare class Button extends FASTElement {
1500
1576
  * HTML Attribute: `shape`
1501
1577
  */
1502
1578
  shape?: ButtonShape;
1579
+ /**
1580
+ * Handles changes to shape attribute custom states
1581
+ * @param prev - the previous state
1582
+ * @param next - the next state
1583
+ */
1584
+ shapeChanged(prev: ButtonShape | undefined, next: ButtonShape | undefined): void;
1503
1585
  /**
1504
1586
  * The size of the button.
1505
1587
  *
@@ -1508,6 +1590,12 @@ export declare class Button extends FASTElement {
1508
1590
  * HTML Attribute: `size`
1509
1591
  */
1510
1592
  size?: ButtonSize;
1593
+ /**
1594
+ * Handles changes to size attribute custom states
1595
+ * @param prev - the previous state
1596
+ * @param next - the next state
1597
+ */
1598
+ sizeChanged(prev: ButtonSize | undefined, next: ButtonSize | undefined): void;
1511
1599
  /**
1512
1600
  * The button type.
1513
1601
  * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type | `type`} attribute
@@ -1606,7 +1694,6 @@ export declare const ButtonAppearance: {
1606
1694
  readonly primary: "primary";
1607
1695
  readonly outline: "outline";
1608
1696
  readonly subtle: "subtle";
1609
- readonly secondary: "secondary";
1610
1697
  readonly transparent: "transparent";
1611
1698
  };
1612
1699
 
@@ -1737,7 +1824,13 @@ export declare class Checkbox extends BaseCheckbox {
1737
1824
  * @remarks
1738
1825
  * HTML Attribute: `shape`
1739
1826
  */
1740
- shape: CheckboxShape;
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;
1741
1834
  /**
1742
1835
  * Indicates the size of the checkbox.
1743
1836
  *
@@ -1746,6 +1839,12 @@ export declare class Checkbox extends BaseCheckbox {
1746
1839
  * HTML Attribute: `size`
1747
1840
  */
1748
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;
1749
1848
  }
1750
1849
 
1751
1850
  /**
@@ -3905,11 +4004,6 @@ export declare const CompoundButtonAppearance: {
3905
4004
  readonly primary: "primary";
3906
4005
  readonly outline: "outline";
3907
4006
  readonly subtle: "subtle";
3908
- readonly secondary: "secondary";
3909
- /**
3910
- * A Compound Button can be secondary, primary, outline, subtle, transparent
3911
- * @public
3912
- */
3913
4007
  readonly transparent: "transparent";
3914
4008
  };
3915
4009
 
@@ -3978,6 +4072,12 @@ declare type ConstructableFormAssociated = Constructable<HTMLElement & FASTEleme
3978
4072
  * @public
3979
4073
  */
3980
4074
  export declare class CounterBadge extends FASTElement {
4075
+ /**
4076
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
4077
+ *
4078
+ * @internal
4079
+ */
4080
+ elementInternals: ElementInternals;
3981
4081
  /**
3982
4082
  * The appearance the badge should have.
3983
4083
  *
@@ -3986,6 +4086,12 @@ export declare class CounterBadge extends FASTElement {
3986
4086
  * HTML Attribute: appearance
3987
4087
  */
3988
4088
  appearance?: CounterBadgeAppearance;
4089
+ /**
4090
+ * Handles changes to appearance attribute custom states
4091
+ * @param prev - the previous state
4092
+ * @param next - the next state
4093
+ */
4094
+ appearanceChanged(prev: CounterBadgeAppearance | undefined, next: CounterBadgeAppearance | undefined): void;
3989
4095
  /**
3990
4096
  * The color the badge should have.
3991
4097
  *
@@ -3994,6 +4100,12 @@ export declare class CounterBadge extends FASTElement {
3994
4100
  * HTML Attribute: color
3995
4101
  */
3996
4102
  color?: CounterBadgeColor;
4103
+ /**
4104
+ * Handles changes to color attribute custom states
4105
+ * @param prev - the previous state
4106
+ * @param next - the next state
4107
+ */
4108
+ colorChanged(prev: CounterBadgeColor | undefined, next: CounterBadgeColor | undefined): void;
3997
4109
  /**
3998
4110
  * The shape the badge should have.
3999
4111
  *
@@ -4002,6 +4114,12 @@ export declare class CounterBadge extends FASTElement {
4002
4114
  * HTML Attribute: shape
4003
4115
  */
4004
4116
  shape?: CounterBadgeShape;
4117
+ /**
4118
+ * Handles changes to shape attribute custom states
4119
+ * @param prev - the previous state
4120
+ * @param next - the next state
4121
+ */
4122
+ shapeChanged(prev: CounterBadgeShape | undefined, next: CounterBadgeShape | undefined): void;
4005
4123
  /**
4006
4124
  * The size the badge should have.
4007
4125
  *
@@ -4010,6 +4128,12 @@ export declare class CounterBadge extends FASTElement {
4010
4128
  * HTML Attribute: size
4011
4129
  */
4012
4130
  size?: CounterBadgeSize;
4131
+ /**
4132
+ * Handles changes to size attribute custom states
4133
+ * @param prev - the previous state
4134
+ * @param next - the next state
4135
+ */
4136
+ sizeChanged(prev: CounterBadgeSize | undefined, next: CounterBadgeSize | undefined): void;
4013
4137
  /**
4014
4138
  * The count the badge should have.
4015
4139
  *
@@ -4044,6 +4168,12 @@ export declare class CounterBadge extends FASTElement {
4044
4168
  * HTML Attribute: dot
4045
4169
  */
4046
4170
  dot: boolean;
4171
+ /**
4172
+ * Handles changes to dot attribute custom states
4173
+ * @param prev - the previous state
4174
+ * @param next - the next state
4175
+ */
4176
+ dotChanged(prev: boolean | undefined, next: boolean | undefined): void;
4047
4177
  /**
4048
4178
  * @internal
4049
4179
  * Function to set the count
@@ -4382,18 +4512,36 @@ export declare class Divider extends FASTElement {
4382
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.
4383
4513
  */
4384
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;
4385
4521
  /**
4386
4522
  * @public
4387
4523
  * @remarks
4388
4524
  * A divider can have one of the preset appearances. Select from strong, brand, subtle. When not specified, the divider has its default appearance.
4389
4525
  */
4390
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;
4391
4533
  /**
4392
4534
  * @public
4393
4535
  * @remarks
4394
4536
  * Adds padding to the beginning and end of the divider.
4395
4537
  */
4396
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;
4397
4545
  connectedCallback(): void;
4398
4546
  /**
4399
4547
  * Sets the element's internal role when the role attribute changes.
@@ -4883,6 +5031,12 @@ export declare const getDirection: (rootNode: HTMLElement) => Direction;
4883
5031
  * @public
4884
5032
  */
4885
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;
4886
5040
  /**
4887
5041
  * Image layout
4888
5042
  *
@@ -4891,6 +5045,12 @@ declare class Image_2 extends FASTElement {
4891
5045
  * HTML attribute: block.
4892
5046
  */
4893
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;
4894
5054
  /**
4895
5055
  * Image border
4896
5056
  *
@@ -4899,6 +5059,12 @@ declare class Image_2 extends FASTElement {
4899
5059
  * HTML attribute: border.
4900
5060
  */
4901
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;
4902
5068
  /**
4903
5069
  * Image shadow
4904
5070
  *
@@ -4907,6 +5073,12 @@ declare class Image_2 extends FASTElement {
4907
5073
  * HTML attribute: shadow.
4908
5074
  */
4909
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;
4910
5082
  /**
4911
5083
  * Image fit
4912
5084
  *
@@ -4915,6 +5087,12 @@ declare class Image_2 extends FASTElement {
4915
5087
  * HTML attribute: fit.
4916
5088
  */
4917
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;
4918
5096
  /**
4919
5097
  * Image shape
4920
5098
  *
@@ -4923,6 +5101,12 @@ declare class Image_2 extends FASTElement {
4923
5101
  * HTML attribute: shape.
4924
5102
  */
4925
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;
4926
5110
  }
4927
5111
  export { Image_2 as Image }
4928
5112
 
@@ -4982,6 +5166,12 @@ export declare const ImageTemplate: ElementViewTemplate<Image_2>;
4982
5166
  * @public
4983
5167
  */
4984
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;
4985
5175
  /**
4986
5176
  * Specifies font size of a label
4987
5177
  *
@@ -4990,6 +5180,12 @@ export declare class Label extends FASTElement {
4990
5180
  * HTML Attribute: size
4991
5181
  */
4992
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;
4993
5189
  /**
4994
5190
  * Specifies font weight of a label
4995
5191
  *
@@ -4998,6 +5194,12 @@ export declare class Label extends FASTElement {
4998
5194
  * HTML Attribute: weight
4999
5195
  */
5000
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;
5001
5203
  /**
5002
5204
  * Specifies styles for label when associated input is disabled
5003
5205
  *
@@ -5006,6 +5208,12 @@ export declare class Label extends FASTElement {
5006
5208
  * HTML Attribute: disabled
5007
5209
  */
5008
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;
5009
5217
  /**
5010
5218
  * Specifies styles for label when associated input is a required field
5011
5219
  *
@@ -5147,6 +5355,12 @@ export declare class Link extends BaseAnchor {
5147
5355
  * HTML Attribute: `appearance`
5148
5356
  */
5149
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;
5150
5364
  /**
5151
5365
  * The link is inline with text
5152
5366
  * In chromium browsers, if the link is contained within a semantic
@@ -5158,6 +5372,12 @@ export declare class Link extends BaseAnchor {
5158
5372
  * HTML Attribute: `inline`
5159
5373
  */
5160
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;
5161
5381
  }
5162
5382
 
5163
5383
  /**
@@ -5527,7 +5747,6 @@ export declare const MenuButtonAppearance: {
5527
5747
  readonly primary: "primary";
5528
5748
  readonly outline: "outline";
5529
5749
  readonly subtle: "subtle";
5530
- readonly secondary: "secondary";
5531
5750
  readonly transparent: "transparent";
5532
5751
  };
5533
5752
 
@@ -5911,18 +6130,36 @@ export declare class ProgressBar extends FASTElement {
5911
6130
  * HTML Attribute: `thickness`
5912
6131
  */
5913
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;
5914
6139
  /**
5915
6140
  * The shape of the progress bar
5916
6141
  * @public
5917
6142
  * HTML Attribute: `shape`
5918
6143
  */
5919
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;
5920
6151
  /**
5921
6152
  * The validation state of the progress bar
5922
6153
  * @public
5923
6154
  * HTML Attribute: `validation-state`
5924
6155
  */
5925
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;
5926
6163
  /**
5927
6164
  * The value of the progress
5928
6165
  * @internal
@@ -6793,7 +7030,7 @@ export declare class Spinner extends FASTElement {
6793
7030
  *
6794
7031
  * @internal
6795
7032
  */
6796
- protected elementInternals: ElementInternals;
7033
+ elementInternals: ElementInternals;
6797
7034
  /**
6798
7035
  * The size of the spinner
6799
7036
  *
@@ -6802,6 +7039,12 @@ export declare class Spinner extends FASTElement {
6802
7039
  * HTML Attribute: size
6803
7040
  */
6804
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;
6805
7048
  /**
6806
7049
  * The appearance of the spinner
6807
7050
  * @public
@@ -6809,6 +7052,12 @@ export declare class Spinner extends FASTElement {
6809
7052
  * HTML Attribute: appearance
6810
7053
  */
6811
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;
6812
7061
  constructor();
6813
7062
  }
6814
7063
 
@@ -7285,6 +7534,12 @@ export declare class TextInput extends FASTElement {
7285
7534
  * HTML Attribute: `appearance`
7286
7535
  */
7287
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;
7288
7543
  /**
7289
7544
  * Indicates the element's autocomplete state.
7290
7545
  * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/autocomplete | `autocomplete`} attribute
@@ -7311,6 +7566,12 @@ export declare class TextInput extends FASTElement {
7311
7566
  * HTML Attribute: `control-size`
7312
7567
  */
7313
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;
7314
7575
  /**
7315
7576
  * The default slotted content. This is the content that appears in the text field label.
7316
7577
  *
@@ -7852,7 +8113,6 @@ export declare const ToggleButtonAppearance: {
7852
8113
  readonly primary: "primary";
7853
8114
  readonly outline: "outline";
7854
8115
  readonly subtle: "subtle";
7855
- readonly secondary: "secondary";
7856
8116
  readonly transparent: "transparent";
7857
8117
  };
7858
8118