@fluentui/web-components 3.0.0-beta.45 → 3.0.0-beta.47

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.
@@ -290,6 +290,12 @@ export declare const accordionStyles: ElementStyles;
290
290
 
291
291
  export declare const accordionTemplate: ElementViewTemplate<Accordion>;
292
292
 
293
+ /**
294
+ * An Anchor Custom HTML Element.
295
+ * Based on BaseAnchor and includes style and layout specific attributes
296
+ *
297
+ * @public
298
+ */
293
299
  export declare class AnchorButton extends BaseAnchor {
294
300
  /**
295
301
  * The appearance the anchor button should have.
@@ -1033,6 +1039,247 @@ declare class BaseAnchor extends FASTElement {
1033
1039
  private createProxyElement;
1034
1040
  }
1035
1041
 
1042
+ /**
1043
+ * A Button Custom HTML Element.
1044
+ * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | `<button>`} element.
1045
+ *
1046
+ * @slot start - Content which can be provided before the button content
1047
+ * @slot end - Content which can be provided after the button content
1048
+ * @slot - The default slot for button content
1049
+ * @csspart content - The button content container
1050
+ *
1051
+ * @public
1052
+ */
1053
+ export declare class BaseButton extends FASTElement {
1054
+ /**
1055
+ * Indicates the button should be focused when the page is loaded.
1056
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autofocus | `autofocus`} attribute
1057
+ *
1058
+ * @public
1059
+ * @remarks
1060
+ * HTML Attribute: `autofocus`
1061
+ */
1062
+ autofocus: boolean;
1063
+ /**
1064
+ * Default slotted content.
1065
+ *
1066
+ * @public
1067
+ */
1068
+ defaultSlottedContent: HTMLElement[];
1069
+ /**
1070
+ * Sets the element's disabled state.
1071
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled | `disabled`} attribute
1072
+ *
1073
+ * @public
1074
+ * @remarks
1075
+ * HTML Attribute: `disabled`
1076
+ */
1077
+ disabled?: boolean;
1078
+ /**
1079
+ * Indicates that the button is focusable while disabled.
1080
+ *
1081
+ * @public
1082
+ * @remarks
1083
+ * HTML Attribute: `disabled-focusable`
1084
+ */
1085
+ disabledFocusable: boolean;
1086
+ /**
1087
+ * Sets that the button tabindex attribute
1088
+ *
1089
+ * @public
1090
+ * @remarks
1091
+ * HTML Attribute: `tabindex`
1092
+ */
1093
+ tabIndex: number;
1094
+ /**
1095
+ * Sets the element's internal disabled state when the element is focusable while disabled.
1096
+ *
1097
+ * @param previous - the previous disabledFocusable value
1098
+ * @param next - the current disabledFocusable value
1099
+ * @internal
1100
+ */
1101
+ disabledFocusableChanged(previous: boolean, next: boolean): void;
1102
+ /**
1103
+ * The internal {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
1104
+ *
1105
+ * @internal
1106
+ */
1107
+ elementInternals: ElementInternals;
1108
+ /**
1109
+ * The associated form element.
1110
+ *
1111
+ * @public
1112
+ */
1113
+ get form(): HTMLFormElement | null;
1114
+ /**
1115
+ * The URL that processes the form submission.
1116
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formaction | `formaction`} attribute
1117
+ *
1118
+ * @public
1119
+ * @remarks
1120
+ * HTML Attribute: `formaction`
1121
+ */
1122
+ formAction?: string;
1123
+ /**
1124
+ * The form-associated flag.
1125
+ * @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
1126
+ *
1127
+ * @public
1128
+ */
1129
+ static readonly formAssociated = true;
1130
+ /**
1131
+ * The id of a form to associate the element to.
1132
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#form | `form`} attribute
1133
+ *
1134
+ * @public
1135
+ * @remarks
1136
+ * HTML Attribute: `form`
1137
+ */
1138
+ formAttribute?: string;
1139
+ /**
1140
+ * The encoding type for the form submission.
1141
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formenctype | `formenctype`} attribute
1142
+ *
1143
+ * @public
1144
+ * @remarks
1145
+ * HTML Attribute: `formenctype`
1146
+ */
1147
+ formEnctype?: string;
1148
+ /**
1149
+ * The HTTP method that the browser uses to submit the form.
1150
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formmethod | `formmethod`} attribute
1151
+ *
1152
+ * @public
1153
+ * @remarks
1154
+ * HTML Attribute: `formmethod`
1155
+ */
1156
+ formMethod?: string;
1157
+ /**
1158
+ * Indicates that the form will not be validated when submitted.
1159
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formnovalidate | `formnovalidate`} attribute
1160
+ *
1161
+ * @public
1162
+ * @remarks
1163
+ * HTML Attribute: `formnovalidate`
1164
+ */
1165
+ formNoValidate?: boolean;
1166
+ /**
1167
+ * The internal form submission fallback control.
1168
+ *
1169
+ * @internal
1170
+ */
1171
+ private formSubmissionFallbackControl?;
1172
+ /**
1173
+ * The internal slot for the form submission fallback control.
1174
+ *
1175
+ * @internal
1176
+ */
1177
+ private formSubmissionFallbackControlSlot?;
1178
+ /**
1179
+ * The target frame or window to open the form submission in.
1180
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formtarget | `formtarget`} attribute
1181
+ *
1182
+ * @public
1183
+ * @remarks
1184
+ * HTML Attribute: `formtarget`
1185
+ */
1186
+ formTarget?: ButtonFormTarget;
1187
+ /**
1188
+ * A reference to all associated label elements.
1189
+ *
1190
+ * @public
1191
+ */
1192
+ get labels(): ReadonlyArray<Node>;
1193
+ /**
1194
+ * The name of the element. This element's value will be surfaced during form submission under the provided name.
1195
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name | `name`} attribute
1196
+ *
1197
+ * @public
1198
+ * @remarks
1199
+ * HTML Attribute: `name`
1200
+ */
1201
+ name?: string;
1202
+ /**
1203
+ * The button type.
1204
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type | `type`} attribute
1205
+ *
1206
+ * @public
1207
+ * @remarks
1208
+ * HTML Attribute: `type`
1209
+ */
1210
+ type: ButtonType;
1211
+ /**
1212
+ * Removes the form submission fallback control when the type changes.
1213
+ *
1214
+ * @param previous - the previous type value
1215
+ * @param next - the new type value
1216
+ * @internal
1217
+ */
1218
+ typeChanged(previous: ButtonType, next: ButtonType): void;
1219
+ /**
1220
+ * The value attribute.
1221
+ *
1222
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value | `value`} attribute
1223
+ *
1224
+ * @public
1225
+ * @remarks
1226
+ * HTML Attribute: `value`
1227
+ */
1228
+ value?: string;
1229
+ /**
1230
+ * Handles the button click event.
1231
+ *
1232
+ * @param e - The event object
1233
+ * @internal
1234
+ */
1235
+ clickHandler(e: Event): boolean | void;
1236
+ connectedCallback(): void;
1237
+ constructor();
1238
+ /**
1239
+ * This fallback creates a new slot, then creates a submit button to mirror the custom element's
1240
+ * properties. The submit button is then appended to the slot and the form is submitted.
1241
+ *
1242
+ * @internal
1243
+ * @privateRemarks
1244
+ * This is a workaround until {@link https://github.com/WICG/webcomponents/issues/814 | WICG/webcomponents/issues/814} is resolved.
1245
+ */
1246
+ private createAndInsertFormSubmissionFallbackControl;
1247
+ /**
1248
+ * Invoked when a connected component's form or fieldset has its disabled state changed.
1249
+ *
1250
+ * @param disabled - the disabled value of the form / fieldset
1251
+ *
1252
+ * @internal
1253
+ */
1254
+ formDisabledCallback(disabled: boolean): void;
1255
+ /**
1256
+ * Handles keypress events for the button.
1257
+ *
1258
+ * @param e - the keyboard event
1259
+ * @returns - the return value of the click handler
1260
+ * @public
1261
+ */
1262
+ keypressHandler(e: KeyboardEvent): boolean | void;
1263
+ /**
1264
+ * Presses the button.
1265
+ *
1266
+ * @public
1267
+ */
1268
+ protected press(): void;
1269
+ /**
1270
+ * Resets the associated form.
1271
+ *
1272
+ * @public
1273
+ */
1274
+ resetForm(): void;
1275
+ /**
1276
+ * Submits the associated form.
1277
+ *
1278
+ * @internal
1279
+ */
1280
+ private submitForm;
1281
+ }
1282
+
1036
1283
  /**
1037
1284
  * The base class for a component with a toggleable checked state.
1038
1285
  *
@@ -1322,318 +1569,199 @@ declare class BaseCheckbox extends FASTElement {
1322
1569
  }
1323
1570
 
1324
1571
  /**
1325
- * A Tabs component that wraps a collection of tab and tab panel elements.
1572
+ * A Divider Custom HTML Element.
1573
+ * 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.
1326
1574
  *
1327
1575
  * @public
1328
1576
  */
1329
- declare class BaseTabs extends FASTElement {
1330
- /**
1331
- * The orientation
1332
- * @public
1333
- * @remarks
1334
- * HTML Attribute: orientation
1335
- */
1336
- orientation: TabsOrientation;
1577
+ export declare class BaseDivider extends FASTElement {
1337
1578
  /**
1579
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
1580
+ *
1338
1581
  * @internal
1339
1582
  */
1340
- orientationChanged(): void;
1583
+ elementInternals: ElementInternals;
1341
1584
  /**
1342
- * The id of the active tab
1585
+ * The role of the element.
1343
1586
  *
1344
1587
  * @public
1345
1588
  * @remarks
1346
- * HTML Attribute: activeid
1347
- */
1348
- activeid: string;
1349
- /**
1350
- * @internal
1351
- */
1352
- activeidChanged(oldValue: string, newValue: string): void;
1353
- /**
1354
- * @internal
1355
- */
1356
- tabs: HTMLElement[];
1357
- /**
1358
- * @internal
1359
- */
1360
- tabsChanged(): void;
1361
- /**
1362
- * @internal
1363
- */
1364
- tabpanels: HTMLElement[];
1365
- /**
1366
- * @internal
1367
- */
1368
- tabpanelsChanged(): void;
1369
- /**
1370
- * A reference to the active tab
1371
- * @public
1589
+ * HTML Attribute: role
1372
1590
  */
1373
- activetab: HTMLElement;
1374
- private prevActiveTabIndex;
1375
- private activeTabIndex;
1376
- private tabIds;
1377
- private tabpanelIds;
1378
- private change;
1379
- private isDisabledElement;
1380
- private isHiddenElement;
1381
- private isFocusableElement;
1382
- private getActiveIndex;
1591
+ role: DividerRole;
1383
1592
  /**
1384
- * Function that is invoked whenever the selected tab or the tab collection changes.
1593
+ * The orientation of the divider.
1385
1594
  *
1386
1595
  * @public
1596
+ * @remarks
1597
+ * HTML Attribute: orientation
1387
1598
  */
1388
- protected setTabs(): void;
1389
- private setTabPanels;
1390
- private getTabIds;
1391
- private getTabPanelIds;
1392
- private setComponent;
1393
- private handleTabClick;
1394
- private isHorizontal;
1395
- private handleTabKeyDown;
1599
+ orientation?: DividerOrientation;
1600
+ connectedCallback(): void;
1396
1601
  /**
1397
- * The adjust method for FASTTabs
1398
- * @public
1399
- * @remarks
1400
- * This method allows the active index to be adjusted by numerical increments
1602
+ * Sets the element's internal role when the role attribute changes.
1603
+ *
1604
+ * @param previous - the previous role value
1605
+ * @param next - the current role value
1606
+ * @internal
1401
1607
  */
1402
- adjust(adjustment: number): void;
1403
- private adjustForward;
1404
- private adjustBackward;
1405
- private moveToTabByIndex;
1406
- private focusTab;
1608
+ roleChanged(previous: string | null, next: string | null): void;
1407
1609
  /**
1610
+ * Sets the element's internal orientation when the orientation attribute changes.
1611
+ *
1612
+ * @param previous - the previous orientation value
1613
+ * @param next - the current orientation value
1408
1614
  * @internal
1409
1615
  */
1410
- connectedCallback(): void;
1616
+ orientationChanged(previous: string | null, next: string | null): void;
1411
1617
  }
1412
1618
 
1413
1619
  /**
1414
- * CSS custom property value for the {@link @fluentui/tokens#borderRadiusCircular | `borderRadiusCircular`} design token.
1415
- * @public
1416
- */
1417
- export declare const borderRadiusCircular = "var(--borderRadiusCircular)";
1418
-
1419
- /**
1420
- * CSS custom property value for the {@link @fluentui/tokens#borderRadiusLarge | `borderRadiusLarge`} design token.
1421
- * @public
1422
- */
1423
- export declare const borderRadiusLarge = "var(--borderRadiusLarge)";
1424
-
1425
- /**
1426
- * CSS custom property value for the {@link @fluentui/tokens#borderRadiusMedium | `borderRadiusMedium`} design token.
1427
- * @public
1428
- */
1429
- export declare const borderRadiusMedium = "var(--borderRadiusMedium)";
1430
-
1431
- /**
1432
- * CSS custom property value for the {@link @fluentui/tokens#borderRadiusNone | `borderRadiusNone`} design token.
1433
- * @public
1434
- */
1435
- export declare const borderRadiusNone = "var(--borderRadiusNone)";
1436
-
1437
- /**
1438
- * CSS custom property value for the {@link @fluentui/tokens#borderRadiusSmall | `borderRadiusSmall`} design token.
1439
- * @public
1440
- */
1441
- export declare const borderRadiusSmall = "var(--borderRadiusSmall)";
1442
-
1443
- /**
1444
- * CSS custom property value for the {@link @fluentui/tokens#borderRadiusXLarge | `borderRadiusXLarge`} design token.
1445
- * @public
1446
- */
1447
- export declare const borderRadiusXLarge = "var(--borderRadiusXLarge)";
1448
-
1449
- /**
1450
- * A Button Custom HTML Element.
1451
- * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | `<button>`} element.
1452
- *
1453
- * @slot start - Content which can be provided before the button content
1454
- * @slot end - Content which can be provided after the button content
1455
- * @slot - The default slot for button content
1456
- * @csspart content - The button content container
1620
+ * A Tabs component that wraps a collection of tab and tab panel elements.
1457
1621
  *
1458
1622
  * @public
1459
1623
  */
1460
- export declare class Button extends FASTElement {
1461
- /**
1462
- * Indicates the styled appearance of the button.
1463
- *
1464
- * @public
1465
- * @remarks
1466
- * HTML Attribute: `appearance`
1467
- */
1468
- appearance?: ButtonAppearance;
1469
- /**
1470
- * Handles changes to appearance attribute custom states
1471
- * @param prev - the previous state
1472
- * @param next - the next state
1473
- */
1474
- appearanceChanged(prev: ButtonAppearance | undefined, next: ButtonAppearance | undefined): void;
1475
- /**
1476
- * Indicates the button should be focused when the page is loaded.
1477
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autofocus | `autofocus`} attribute
1478
- *
1479
- * @public
1480
- * @remarks
1481
- * HTML Attribute: `autofocus`
1482
- */
1483
- autofocus: boolean;
1484
- /**
1485
- * Default slotted content.
1486
- *
1487
- * @public
1488
- */
1489
- defaultSlottedContent: HTMLElement[];
1490
- /**
1491
- * Sets the element's disabled state.
1492
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled | `disabled`} attribute
1493
- *
1494
- * @public
1495
- * @remarks
1496
- * HTML Attribute: `disabled`
1497
- */
1498
- disabled?: boolean;
1499
- /**
1500
- * Indicates that the button is focusable while disabled.
1501
- *
1502
- * @public
1503
- * @remarks
1504
- * HTML Attribute: `disabled-focusable`
1505
- */
1506
- disabledFocusable: boolean;
1507
- /**
1508
- * Sets that the button tabindex attribute
1509
- *
1510
- * @public
1511
- * @remarks
1512
- * HTML Attribute: `tabindex`
1513
- */
1514
- tabIndex: number;
1515
- /**
1516
- * Sets the element's internal disabled state when the element is focusable while disabled.
1517
- *
1518
- * @param previous - the previous disabledFocusable value
1519
- * @param next - the current disabledFocusable value
1520
- * @internal
1521
- */
1522
- disabledFocusableChanged(previous: boolean, next: boolean): void;
1523
- /**
1524
- * The internal {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
1525
- *
1526
- * @internal
1527
- */
1528
- elementInternals: ElementInternals;
1529
- /**
1530
- * The associated form element.
1531
- *
1532
- * @public
1533
- */
1534
- get form(): HTMLFormElement | null;
1535
- /**
1536
- * The URL that processes the form submission.
1537
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formaction | `formaction`} attribute
1538
- *
1539
- * @public
1540
- * @remarks
1541
- * HTML Attribute: `formaction`
1542
- */
1543
- formAction?: string;
1544
- /**
1545
- * The form-associated flag.
1546
- * @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
1547
- *
1548
- * @public
1549
- */
1550
- static readonly formAssociated = true;
1551
- /**
1552
- * The id of a form to associate the element to.
1553
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#form | `form`} attribute
1554
- *
1555
- * @public
1556
- * @remarks
1557
- * HTML Attribute: `form`
1558
- */
1559
- formAttribute?: string;
1624
+ declare class BaseTabs extends FASTElement {
1560
1625
  /**
1561
- * The encoding type for the form submission.
1562
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formenctype | `formenctype`} attribute
1563
- *
1626
+ * The orientation
1564
1627
  * @public
1565
1628
  * @remarks
1566
- * HTML Attribute: `formenctype`
1629
+ * HTML Attribute: orientation
1567
1630
  */
1568
- formEnctype?: string;
1631
+ orientation: TabsOrientation;
1569
1632
  /**
1570
- * The HTTP method that the browser uses to submit the form.
1571
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formmethod | `formmethod`} attribute
1572
- *
1573
- * @public
1574
- * @remarks
1575
- * HTML Attribute: `formmethod`
1633
+ * @internal
1576
1634
  */
1577
- formMethod?: string;
1635
+ orientationChanged(): void;
1578
1636
  /**
1579
- * Indicates that the form will not be validated when submitted.
1580
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formnovalidate | `formnovalidate`} attribute
1637
+ * The id of the active tab
1581
1638
  *
1582
1639
  * @public
1583
1640
  * @remarks
1584
- * HTML Attribute: `formnovalidate`
1641
+ * HTML Attribute: activeid
1585
1642
  */
1586
- formNoValidate?: boolean;
1643
+ activeid: string;
1587
1644
  /**
1588
- * The internal form submission fallback control.
1589
- *
1590
1645
  * @internal
1591
1646
  */
1592
- private formSubmissionFallbackControl?;
1647
+ activeidChanged(oldValue: string, newValue: string): void;
1593
1648
  /**
1594
- * The internal slot for the form submission fallback control.
1595
- *
1596
1649
  * @internal
1597
1650
  */
1598
- private formSubmissionFallbackControlSlot?;
1651
+ tabs: HTMLElement[];
1599
1652
  /**
1600
- * The target frame or window to open the form submission in.
1601
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formtarget | `formtarget`} attribute
1602
- *
1653
+ * @internal
1654
+ */
1655
+ tabsChanged(): void;
1656
+ /**
1657
+ * @internal
1658
+ */
1659
+ tabpanels: HTMLElement[];
1660
+ /**
1661
+ * @internal
1662
+ */
1663
+ tabpanelsChanged(): void;
1664
+ /**
1665
+ * A reference to the active tab
1603
1666
  * @public
1604
- * @remarks
1605
- * HTML Attribute: `formtarget`
1606
1667
  */
1607
- formTarget?: ButtonFormTarget;
1668
+ activetab: HTMLElement;
1669
+ private prevActiveTabIndex;
1670
+ private activeTabIndex;
1671
+ private tabIds;
1672
+ private tabpanelIds;
1673
+ private change;
1674
+ private isDisabledElement;
1675
+ private isHiddenElement;
1676
+ private isFocusableElement;
1677
+ private getActiveIndex;
1608
1678
  /**
1609
- * Indicates that the button should only display as an icon with no text content.
1679
+ * Function that is invoked whenever the selected tab or the tab collection changes.
1610
1680
  *
1611
1681
  * @public
1612
- * @remarks
1613
- * HTML Attribute: `icon-only`
1614
1682
  */
1615
- iconOnly: boolean;
1683
+ protected setTabs(): void;
1684
+ private setTabPanels;
1685
+ private getTabIds;
1686
+ private getTabPanelIds;
1687
+ private setComponent;
1688
+ private handleTabClick;
1689
+ private isHorizontal;
1690
+ private handleTabKeyDown;
1616
1691
  /**
1617
- * Handles changes to icon only custom states
1618
- * @param prev - the previous state
1619
- * @param next - the next state
1692
+ * The adjust method for FASTTabs
1693
+ * @public
1694
+ * @remarks
1695
+ * This method allows the active index to be adjusted by numerical increments
1620
1696
  */
1621
- iconOnlyChanged(prev: boolean, next: boolean): void;
1697
+ adjust(adjustment: number): void;
1698
+ private adjustForward;
1699
+ private adjustBackward;
1700
+ private moveToTabByIndex;
1701
+ private focusTab;
1622
1702
  /**
1623
- * A reference to all associated label elements.
1624
- *
1625
- * @public
1703
+ * @internal
1626
1704
  */
1627
- get labels(): ReadonlyArray<Node>;
1705
+ connectedCallback(): void;
1706
+ }
1707
+
1708
+ /**
1709
+ * CSS custom property value for the {@link @fluentui/tokens#borderRadiusCircular | `borderRadiusCircular`} design token.
1710
+ * @public
1711
+ */
1712
+ export declare const borderRadiusCircular = "var(--borderRadiusCircular)";
1713
+
1714
+ /**
1715
+ * CSS custom property value for the {@link @fluentui/tokens#borderRadiusLarge | `borderRadiusLarge`} design token.
1716
+ * @public
1717
+ */
1718
+ export declare const borderRadiusLarge = "var(--borderRadiusLarge)";
1719
+
1720
+ /**
1721
+ * CSS custom property value for the {@link @fluentui/tokens#borderRadiusMedium | `borderRadiusMedium`} design token.
1722
+ * @public
1723
+ */
1724
+ export declare const borderRadiusMedium = "var(--borderRadiusMedium)";
1725
+
1726
+ /**
1727
+ * CSS custom property value for the {@link @fluentui/tokens#borderRadiusNone | `borderRadiusNone`} design token.
1728
+ * @public
1729
+ */
1730
+ export declare const borderRadiusNone = "var(--borderRadiusNone)";
1731
+
1732
+ /**
1733
+ * CSS custom property value for the {@link @fluentui/tokens#borderRadiusSmall | `borderRadiusSmall`} design token.
1734
+ * @public
1735
+ */
1736
+ export declare const borderRadiusSmall = "var(--borderRadiusSmall)";
1737
+
1738
+ /**
1739
+ * CSS custom property value for the {@link @fluentui/tokens#borderRadiusXLarge | `borderRadiusXLarge`} design token.
1740
+ * @public
1741
+ */
1742
+ export declare const borderRadiusXLarge = "var(--borderRadiusXLarge)";
1743
+
1744
+ /**
1745
+ * A Button Custom HTML Element.
1746
+ * Based on BaseButton and includes style and layout specific attributes
1747
+ *
1748
+ * @public
1749
+ */
1750
+ export declare class Button extends BaseButton {
1628
1751
  /**
1629
- * The name of the element. This element's value will be surfaced during form submission under the provided name.
1630
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name | `name`} attribute
1752
+ * Indicates the styled appearance of the button.
1631
1753
  *
1632
1754
  * @public
1633
1755
  * @remarks
1634
- * HTML Attribute: `name`
1756
+ * HTML Attribute: `appearance`
1635
1757
  */
1636
- name?: string;
1758
+ appearance?: ButtonAppearance;
1759
+ /**
1760
+ * Handles changes to appearance attribute custom states
1761
+ * @param prev - the previous state
1762
+ * @param next - the next state
1763
+ */
1764
+ appearanceChanged(prev: ButtonAppearance | undefined, next: ButtonAppearance | undefined): void;
1637
1765
  /**
1638
1766
  * The shape of the button.
1639
1767
  *
@@ -1663,84 +1791,19 @@ export declare class Button extends FASTElement {
1663
1791
  */
1664
1792
  sizeChanged(prev: ButtonSize | undefined, next: ButtonSize | undefined): void;
1665
1793
  /**
1666
- * The button type.
1667
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type | `type`} attribute
1668
- *
1669
- * @public
1670
- * @remarks
1671
- * HTML Attribute: `type`
1672
- */
1673
- type: ButtonType;
1674
- /**
1675
- * Removes the form submission fallback control when the type changes.
1676
- *
1677
- * @param previous - the previous type value
1678
- * @param next - the new type value
1679
- * @internal
1680
- */
1681
- typeChanged(previous: ButtonType, next: ButtonType): void;
1682
- /**
1683
- * The value attribute.
1684
- *
1685
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value | `value`} attribute
1794
+ * Indicates that the button should only display as an icon with no text content.
1686
1795
  *
1687
1796
  * @public
1688
1797
  * @remarks
1689
- * HTML Attribute: `value`
1690
- */
1691
- value?: string;
1692
- /**
1693
- * Handles the button click event.
1694
- *
1695
- * @param e - The event object
1696
- * @internal
1697
- */
1698
- clickHandler(e: Event): boolean | void;
1699
- connectedCallback(): void;
1700
- constructor();
1701
- /**
1702
- * This fallback creates a new slot, then creates a submit button to mirror the custom element's
1703
- * properties. The submit button is then appended to the slot and the form is submitted.
1704
- *
1705
- * @internal
1706
- * @privateRemarks
1707
- * This is a workaround until {@link https://github.com/WICG/webcomponents/issues/814 | WICG/webcomponents/issues/814} is resolved.
1708
- */
1709
- private createAndInsertFormSubmissionFallbackControl;
1710
- /**
1711
- * Invoked when a connected component's form or fieldset has its disabled state changed.
1712
- *
1713
- * @param disabled - the disabled value of the form / fieldset
1714
- *
1715
- * @internal
1716
- */
1717
- formDisabledCallback(disabled: boolean): void;
1718
- /**
1719
- * Handles keypress events for the button.
1720
- *
1721
- * @param e - the keyboard event
1722
- * @returns - the return value of the click handler
1723
- * @public
1724
- */
1725
- keypressHandler(e: KeyboardEvent): boolean | void;
1726
- /**
1727
- * Presses the button.
1728
- *
1729
- * @public
1730
- */
1731
- protected press(): void;
1732
- /**
1733
- * Resets the associated form.
1734
- *
1735
- * @public
1798
+ * HTML Attribute: `icon-only`
1736
1799
  */
1737
- resetForm(): void;
1800
+ iconOnly: boolean;
1738
1801
  /**
1739
- * Submits the associated form.
1740
- *
1741
- * @internal
1802
+ * Handles changes to icon only custom states
1803
+ * @param prev - the previous state
1804
+ * @param next - the next state
1742
1805
  */
1743
- private submitForm;
1806
+ iconOnlyChanged(prev: boolean, next: boolean): void;
1744
1807
  }
1745
1808
 
1746
1809
  /**
@@ -4561,33 +4624,11 @@ export declare function display(displayValue: CSSDisplayPropertyValue): string;
4561
4624
 
4562
4625
  /**
4563
4626
  * A Divider Custom HTML Element.
4627
+ * Based on BaseDivider and includes style and layout specific attributes
4564
4628
  *
4565
- * @remarks
4566
- * 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.
4629
+ * @public
4567
4630
  */
4568
- export declare class Divider extends FASTElement {
4569
- /**
4570
- * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
4571
- *
4572
- * @internal
4573
- */
4574
- elementInternals: ElementInternals;
4575
- /**
4576
- * The role of the element.
4577
- *
4578
- * @public
4579
- * @remarks
4580
- * HTML Attribute: role
4581
- */
4582
- role: DividerRole;
4583
- /**
4584
- * The orientation of the divider.
4585
- *
4586
- * @public
4587
- * @remarks
4588
- * HTML Attribute: orientation
4589
- */
4590
- orientation?: DividerOrientation;
4631
+ export declare class Divider extends BaseDivider {
4591
4632
  /**
4592
4633
  * @public
4593
4634
  * @remarks
@@ -4624,23 +4665,6 @@ export declare class Divider extends FASTElement {
4624
4665
  * @param next - the next state
4625
4666
  */
4626
4667
  insetChanged(prev: boolean, next: boolean): void;
4627
- connectedCallback(): void;
4628
- /**
4629
- * Sets the element's internal role when the role attribute changes.
4630
- *
4631
- * @param previous - the previous role value
4632
- * @param next - the current role value
4633
- * @internal
4634
- */
4635
- roleChanged(previous: string | null, next: string | null): void;
4636
- /**
4637
- * Sets the element's internal orientation when the orientation attribute changes.
4638
- *
4639
- * @param previous - the previous orientation value
4640
- * @param next - the current orientation value
4641
- * @internal
4642
- */
4643
- orientationChanged(previous: string | null, next: string | null): void;
4644
4668
  }
4645
4669
 
4646
4670
  /**