@wistia/ui 0.18.0-beta.782f3b36.e196b15 → 0.18.0-beta.8cfd0d52.ccf3429
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/dist/index.cjs +30 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +95 -102
- package/dist/index.d.ts +95 -102
- package/dist/index.mjs +30 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ReactNode, LegacyRef, MutableRefObject, RefCallback, Dispatch, SetStateAction, RefObject, ComponentPropsWithoutRef, JSX
|
|
3
|
+
import react__default, { ReactNode, LegacyRef, MutableRefObject, RefCallback, Dispatch, SetStateAction, RefObject, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, PropsWithChildren, ReactElement, InputHTMLAttributes, Ref, SyntheticEvent, HTMLAttributes, ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
|
|
4
4
|
import { UseFilePickerConfig, FilePickerReturnTypes, ExtractContentTypeFromConfig, useImperativeFilePickerConfig, ImperativeFilePickerReturnTypes } from 'use-file-picker/types';
|
|
5
5
|
export * from 'use-file-picker/types';
|
|
6
6
|
import { CollapsibleContentProps as CollapsibleContentProps$1 } from '@radix-ui/react-collapsible';
|
|
@@ -191,7 +191,7 @@ type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
191
191
|
* A wrapper to apply a color scheme to its children.
|
|
192
192
|
*/
|
|
193
193
|
declare const ColorSchemeWrapper: {
|
|
194
|
-
({ __nav, colorScheme, children, ...props }: ColorSchemeWrapperProps): JSX
|
|
194
|
+
({ __nav, colorScheme, children, ...props }: ColorSchemeWrapperProps): JSX.Element;
|
|
195
195
|
displayName: string;
|
|
196
196
|
};
|
|
197
197
|
|
|
@@ -440,7 +440,7 @@ type ToastProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
440
440
|
/**
|
|
441
441
|
* Optional `Icon` component to use. Must be an instance of [Icon](/?path=/docs/components-icon--docs)
|
|
442
442
|
*/
|
|
443
|
-
icon?: JSX
|
|
443
|
+
icon?: JSX.Element | undefined;
|
|
444
444
|
/**
|
|
445
445
|
* The message displayed in the toast
|
|
446
446
|
*/
|
|
@@ -469,7 +469,7 @@ type ActionButtonProps = {
|
|
|
469
469
|
/**
|
|
470
470
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
471
471
|
*/
|
|
472
|
-
icon: JSX
|
|
472
|
+
icon: JSX.Element;
|
|
473
473
|
/**
|
|
474
474
|
* @override
|
|
475
475
|
* Disables the button
|
|
@@ -497,7 +497,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
497
497
|
/**
|
|
498
498
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
499
499
|
*/
|
|
500
|
-
icon: JSX
|
|
500
|
+
icon: JSX.Element;
|
|
501
501
|
/**
|
|
502
502
|
* @override
|
|
503
503
|
* Disables the button
|
|
@@ -521,7 +521,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
521
521
|
/**
|
|
522
522
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
523
523
|
*/
|
|
524
|
-
icon: JSX
|
|
524
|
+
icon: JSX.Element;
|
|
525
525
|
/**
|
|
526
526
|
* @override
|
|
527
527
|
* Disables the button
|
|
@@ -572,7 +572,7 @@ type AvatarProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
572
572
|
* An avatar uses a photo or initials to represent an identity.
|
|
573
573
|
*/
|
|
574
574
|
declare const Avatar: {
|
|
575
|
-
({ imageUrl, heightAndWidth, name, size, onImageLoad, ...props }: AvatarProps): JSX
|
|
575
|
+
({ imageUrl, heightAndWidth, name, size, onImageLoad, ...props }: AvatarProps): JSX.Element;
|
|
576
576
|
displayName: string;
|
|
577
577
|
};
|
|
578
578
|
|
|
@@ -585,7 +585,7 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
585
585
|
/**
|
|
586
586
|
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
587
587
|
*/
|
|
588
|
-
icon?: JSX
|
|
588
|
+
icon?: JSX.Element;
|
|
589
589
|
/**
|
|
590
590
|
* The text to display in the `Badge`
|
|
591
591
|
*/
|
|
@@ -606,7 +606,7 @@ declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProp
|
|
|
606
606
|
/**
|
|
607
607
|
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
608
608
|
*/
|
|
609
|
-
icon?: JSX
|
|
609
|
+
icon?: JSX.Element;
|
|
610
610
|
/**
|
|
611
611
|
* The text to display in the `Badge`
|
|
612
612
|
*/
|
|
@@ -629,7 +629,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
629
629
|
/**
|
|
630
630
|
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
631
631
|
*/
|
|
632
|
-
icon?: JSX
|
|
632
|
+
icon?: JSX.Element;
|
|
633
633
|
/**
|
|
634
634
|
* Controls the visual prominence of the banner
|
|
635
635
|
*/
|
|
@@ -638,7 +638,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
638
638
|
/**
|
|
639
639
|
* Optional image element to display in the banner
|
|
640
640
|
*/
|
|
641
|
-
image?: JSX
|
|
641
|
+
image?: JSX.Element | undefined;
|
|
642
642
|
/**
|
|
643
643
|
* Controls the layout direction. If set to 'auto', the banner will switch between horizontal and vertical based on the container width.
|
|
644
644
|
*/
|
|
@@ -660,7 +660,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
660
660
|
* The `Banner` component is for displaying contextual information to the user such as alerts or feature announcements.
|
|
661
661
|
*/
|
|
662
662
|
declare const Banner: {
|
|
663
|
-
({ bodyText, colorScheme, headingText, icon, image, onClose, orientation, primaryAction, prominence, secondaryAction, ...props }: BannerProps): JSX
|
|
663
|
+
({ bodyText, colorScheme, headingText, icon, image, onClose, orientation, primaryAction, prominence, secondaryAction, ...props }: BannerProps): JSX.Element;
|
|
664
664
|
displayName: string;
|
|
665
665
|
};
|
|
666
666
|
|
|
@@ -711,18 +711,11 @@ type AlignContentType =
|
|
|
711
711
|
| 'center'
|
|
712
712
|
| 'flex-end'
|
|
713
713
|
| 'flex-start'
|
|
714
|
-
| 'normal'
|
|
715
714
|
| 'space-around'
|
|
716
715
|
| 'space-between'
|
|
717
716
|
| 'stretch';
|
|
718
717
|
|
|
719
|
-
type AlignItemsType =
|
|
720
|
-
| 'baseline'
|
|
721
|
-
| 'center'
|
|
722
|
-
| 'flex-end'
|
|
723
|
-
| 'flex-start'
|
|
724
|
-
| 'normal'
|
|
725
|
-
| 'stretch';
|
|
718
|
+
type AlignItemsType = 'baseline' | 'center' | 'flex-end' | 'flex-start' | 'stretch';
|
|
726
719
|
|
|
727
720
|
type AlignSelfType = 'auto' | 'baseline' | 'center' | 'flex-end' | 'flex-start' | 'stretch';
|
|
728
721
|
|
|
@@ -894,7 +887,7 @@ type BreadcrumbsProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
894
887
|
* [Button](?path=/docs/components-button--docs). See it's documentation for additional functionality.
|
|
895
888
|
*/
|
|
896
889
|
declare const Breadcrumbs: {
|
|
897
|
-
({ children, ...props }: BreadcrumbsProps): JSX
|
|
890
|
+
({ children, ...props }: BreadcrumbsProps): JSX.Element;
|
|
898
891
|
displayName: string;
|
|
899
892
|
};
|
|
900
893
|
|
|
@@ -943,7 +936,7 @@ type ButtonGroupProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
943
936
|
* with a standardized gap between them.
|
|
944
937
|
*/
|
|
945
938
|
declare const ButtonGroup: {
|
|
946
|
-
({ children, align, fullWidth, collapseOnSmallScreens, buttonSize, ...props }: ButtonGroupProps): JSX
|
|
939
|
+
({ children, align, fullWidth, collapseOnSmallScreens, buttonSize, ...props }: ButtonGroupProps): JSX.Element | null;
|
|
947
940
|
displayName: string;
|
|
948
941
|
};
|
|
949
942
|
|
|
@@ -1048,7 +1041,7 @@ type CardProps = BoxProps & ComponentPropsWithoutRef<'div'> & {
|
|
|
1048
1041
|
* Cards can be used to visually distinguish content sections. Extends the [Box component.](https://wistia.github.io/vhs/storybook-ui/?path=/docs/components-box--docs)
|
|
1049
1042
|
*/
|
|
1050
1043
|
declare const Card: {
|
|
1051
|
-
({ children,
|
|
1044
|
+
({ children, border, borderRadius, colorScheme, direction, gap, height, paddingSize, prominence, width, ...props }: CardProps): JSX.Element;
|
|
1052
1045
|
displayName: string;
|
|
1053
1046
|
};
|
|
1054
1047
|
|
|
@@ -1145,7 +1138,7 @@ type ClickRegionProps = {
|
|
|
1145
1138
|
/**
|
|
1146
1139
|
* The content that should be clickable.
|
|
1147
1140
|
*/
|
|
1148
|
-
children: JSX
|
|
1141
|
+
children: JSX.Element;
|
|
1149
1142
|
/**
|
|
1150
1143
|
* The ref to the button or link that should be clicked when the ClickRegion is clicked.
|
|
1151
1144
|
*/
|
|
@@ -1162,7 +1155,7 @@ type ClickRegionProps = {
|
|
|
1162
1155
|
* In either case, a link or button must be present, but can be hidden by using `ScreenReaderOnly`.
|
|
1163
1156
|
*/
|
|
1164
1157
|
declare const ClickRegion: {
|
|
1165
|
-
({ children, targetRef }: ClickRegionProps): JSX
|
|
1158
|
+
({ children, targetRef }: ClickRegionProps): JSX.Element;
|
|
1166
1159
|
displayName: string;
|
|
1167
1160
|
};
|
|
1168
1161
|
|
|
@@ -1184,7 +1177,7 @@ type CollapsibleProps = {
|
|
|
1184
1177
|
* Toggle the visibility of content with a trigger.
|
|
1185
1178
|
*/
|
|
1186
1179
|
declare const Collapsible: {
|
|
1187
|
-
({ children, isOpen, onOpenChange, }: CollapsibleProps): JSX
|
|
1180
|
+
({ children, isOpen, onOpenChange, }: CollapsibleProps): JSX.Element;
|
|
1188
1181
|
displayName: string;
|
|
1189
1182
|
};
|
|
1190
1183
|
|
|
@@ -1437,7 +1430,7 @@ type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
|
1437
1430
|
* If you need an interactive element, use IconButton.
|
|
1438
1431
|
*/
|
|
1439
1432
|
declare const Icon: {
|
|
1440
|
-
({ useInlineStyles, invertColor, colorScheme, size, style, type, ...props }: IconProps): JSX
|
|
1433
|
+
({ useInlineStyles, invertColor, colorScheme, size, style, type, ...props }: IconProps): JSX.Element;
|
|
1441
1434
|
displayName: string;
|
|
1442
1435
|
};
|
|
1443
1436
|
|
|
@@ -1465,7 +1458,7 @@ type ColorGridProps = PropsWithChildren & {
|
|
|
1465
1458
|
label?: string;
|
|
1466
1459
|
};
|
|
1467
1460
|
declare const ColorGrid: {
|
|
1468
|
-
({ children, label }: ColorGridProps): JSX
|
|
1461
|
+
({ children, label }: ColorGridProps): JSX.Element;
|
|
1469
1462
|
displayName: string;
|
|
1470
1463
|
};
|
|
1471
1464
|
|
|
@@ -1482,13 +1475,13 @@ type ColorPickerOption = {
|
|
|
1482
1475
|
|
|
1483
1476
|
type ColorGridOptionProps = ColorPickerOption;
|
|
1484
1477
|
declare const ColorGridOption: {
|
|
1485
|
-
({ value: rawValue, name }: ColorGridOptionProps): JSX
|
|
1478
|
+
({ value: rawValue, name }: ColorGridOptionProps): JSX.Element;
|
|
1486
1479
|
displayName: string;
|
|
1487
1480
|
};
|
|
1488
1481
|
|
|
1489
1482
|
type ColorListProps = PropsWithChildren;
|
|
1490
1483
|
declare const ColorList: {
|
|
1491
|
-
({ children }: ColorListProps): JSX
|
|
1484
|
+
({ children }: ColorListProps): JSX.Element;
|
|
1492
1485
|
displayName: string;
|
|
1493
1486
|
};
|
|
1494
1487
|
|
|
@@ -1496,13 +1489,13 @@ type ColorListGroupProps = PropsWithChildren<{
|
|
|
1496
1489
|
label: string;
|
|
1497
1490
|
}>;
|
|
1498
1491
|
declare const ColorListGroup: {
|
|
1499
|
-
({ label, children }: ColorListGroupProps): JSX
|
|
1492
|
+
({ label, children }: ColorListGroupProps): JSX.Element;
|
|
1500
1493
|
displayName: string;
|
|
1501
1494
|
};
|
|
1502
1495
|
|
|
1503
1496
|
type ColorListOptionProps = ColorPickerOption;
|
|
1504
1497
|
declare const ColorListOption: {
|
|
1505
|
-
({ value: rawValue, name }: ColorListOptionProps): JSX
|
|
1498
|
+
({ value: rawValue, name }: ColorListOptionProps): JSX.Element;
|
|
1506
1499
|
displayName: string;
|
|
1507
1500
|
};
|
|
1508
1501
|
|
|
@@ -1535,19 +1528,19 @@ type ColorPickerProps = PropsWithChildren<{
|
|
|
1535
1528
|
* subcomponents.
|
|
1536
1529
|
*/
|
|
1537
1530
|
declare const ColorPicker: {
|
|
1538
|
-
({ children, colorForComparison, minimumContrastRatio, opacityForContrastCalculation, onValueChange, value, }: ColorPickerProps): JSX
|
|
1531
|
+
({ children, colorForComparison, minimumContrastRatio, opacityForContrastCalculation, onValueChange, value, }: ColorPickerProps): JSX.Element;
|
|
1539
1532
|
displayName: string;
|
|
1540
1533
|
};
|
|
1541
1534
|
|
|
1542
1535
|
type ColorPickerPopoverContentProps = PropsWithChildren;
|
|
1543
1536
|
declare const ColorPickerPopoverContent: {
|
|
1544
|
-
({ children, }: ColorPickerPopoverContentProps): JSX
|
|
1537
|
+
({ children, }: ColorPickerPopoverContentProps): JSX.Element;
|
|
1545
1538
|
displayName: string;
|
|
1546
1539
|
};
|
|
1547
1540
|
|
|
1548
1541
|
type ColorPickerSectionProps = PropsWithChildren;
|
|
1549
1542
|
declare const ColorPickerSection: {
|
|
1550
|
-
({ children }: ColorPickerSectionProps): JSX
|
|
1543
|
+
({ children }: ColorPickerSectionProps): JSX.Element;
|
|
1551
1544
|
displayName: string;
|
|
1552
1545
|
};
|
|
1553
1546
|
|
|
@@ -1557,7 +1550,7 @@ declare const ColorPickerTrigger: react.ForwardRefExoticComponent<{
|
|
|
1557
1550
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1558
1551
|
|
|
1559
1552
|
declare const ContrastControls: {
|
|
1560
|
-
(): JSX
|
|
1553
|
+
(): JSX.Element;
|
|
1561
1554
|
displayName: string;
|
|
1562
1555
|
};
|
|
1563
1556
|
|
|
@@ -1568,12 +1561,12 @@ type HexColorInputProps = {
|
|
|
1568
1561
|
autoFocus?: boolean;
|
|
1569
1562
|
};
|
|
1570
1563
|
declare const HexColorInput: {
|
|
1571
|
-
({ autoFocus }: HexColorInputProps): JSX
|
|
1564
|
+
({ autoFocus }: HexColorInputProps): JSX.Element;
|
|
1572
1565
|
displayName: string;
|
|
1573
1566
|
};
|
|
1574
1567
|
|
|
1575
1568
|
declare const HueSlider: {
|
|
1576
|
-
(): JSX
|
|
1569
|
+
(): JSX.Element;
|
|
1577
1570
|
displayName: string;
|
|
1578
1571
|
};
|
|
1579
1572
|
|
|
@@ -1581,12 +1574,12 @@ type SaturationAndValuePickerProps = {
|
|
|
1581
1574
|
dataTestId?: string;
|
|
1582
1575
|
};
|
|
1583
1576
|
declare const SaturationAndValuePicker: {
|
|
1584
|
-
({ dataTestId, }: SaturationAndValuePickerProps): JSX
|
|
1577
|
+
({ dataTestId, }: SaturationAndValuePickerProps): JSX.Element;
|
|
1585
1578
|
displayName: string;
|
|
1586
1579
|
};
|
|
1587
1580
|
|
|
1588
1581
|
declare const ValueNameOrHexCode: {
|
|
1589
|
-
(): JSX
|
|
1582
|
+
(): JSX.Element;
|
|
1590
1583
|
displayName: string;
|
|
1591
1584
|
};
|
|
1592
1585
|
|
|
@@ -1599,7 +1592,7 @@ type ColorSwatchProps = PropsWithChildren<{
|
|
|
1599
1592
|
|
|
1600
1593
|
type ValueSwatchProps = Pick<ColorSwatchProps, 'diameterPx'>;
|
|
1601
1594
|
declare const ValueSwatch: {
|
|
1602
|
-
({ diameterPx, }: ValueSwatchProps): JSX
|
|
1595
|
+
({ diameterPx, }: ValueSwatchProps): JSX.Element;
|
|
1603
1596
|
displayName: string;
|
|
1604
1597
|
};
|
|
1605
1598
|
|
|
@@ -1738,7 +1731,7 @@ type DataCardsProps = ComponentPropsWithoutRef<'dl'> & {
|
|
|
1738
1731
|
* Displays a series of cards tailor made for displaying analytics data
|
|
1739
1732
|
*/
|
|
1740
1733
|
declare const DataCards: {
|
|
1741
|
-
({ children, cardMaxWidth, colorScheme, ...props }: DataCardsProps): JSX
|
|
1734
|
+
({ children, cardMaxWidth, colorScheme, ...props }: DataCardsProps): JSX.Element;
|
|
1742
1735
|
displayName: string;
|
|
1743
1736
|
};
|
|
1744
1737
|
|
|
@@ -1754,9 +1747,9 @@ type DataCardTrendProps = {
|
|
|
1754
1747
|
/**
|
|
1755
1748
|
* Content to display next to the trend arrow
|
|
1756
1749
|
*/
|
|
1757
|
-
children: JSX
|
|
1750
|
+
children: JSX.Element | string;
|
|
1758
1751
|
};
|
|
1759
|
-
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX
|
|
1752
|
+
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
|
|
1760
1753
|
|
|
1761
1754
|
declare const DataCardHoverArrow: {
|
|
1762
1755
|
(): react_jsx_runtime.JSX.Element;
|
|
@@ -1785,7 +1778,7 @@ type DataListProps = ComponentPropsWithoutRef<'dl'> & {
|
|
|
1785
1778
|
* The DataList component is used to display a list of items with labels and values.
|
|
1786
1779
|
*/
|
|
1787
1780
|
declare const DataList: {
|
|
1788
|
-
({ children, valueAlignment, labelMaxWith, labelProminence, ...props }: DataListProps): JSX
|
|
1781
|
+
({ children, valueAlignment, labelMaxWith, labelProminence, ...props }: DataListProps): JSX.Element;
|
|
1789
1782
|
displayName: string;
|
|
1790
1783
|
};
|
|
1791
1784
|
|
|
@@ -1879,7 +1872,7 @@ declare const Text: (<C extends ElementType = "p">(props: PolymorphicComponentPr
|
|
|
1879
1872
|
* The label of the `DataListItem`. Extends the [Text]() component.
|
|
1880
1873
|
*/
|
|
1881
1874
|
declare const DataListItemLabel: {
|
|
1882
|
-
(props: TextProps): JSX
|
|
1875
|
+
(props: TextProps): JSX.Element;
|
|
1883
1876
|
displayName: string;
|
|
1884
1877
|
};
|
|
1885
1878
|
|
|
@@ -1887,7 +1880,7 @@ declare const DataListItemLabel: {
|
|
|
1887
1880
|
* The value of the `DataListItem`. Extends the [Text]() component.
|
|
1888
1881
|
*/
|
|
1889
1882
|
declare const DataListItemValue: {
|
|
1890
|
-
(props: TextProps): JSX
|
|
1883
|
+
(props: TextProps): JSX.Element;
|
|
1891
1884
|
displayName: string;
|
|
1892
1885
|
};
|
|
1893
1886
|
|
|
@@ -1901,7 +1894,7 @@ type DividerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1901
1894
|
* A line used to visually separate content; note that dividers have no margin/spacing on their own.
|
|
1902
1895
|
*/
|
|
1903
1896
|
declare const Divider: {
|
|
1904
|
-
({ orientation, ...props }: DividerProps): JSX
|
|
1897
|
+
({ orientation, ...props }: DividerProps): JSX.Element;
|
|
1905
1898
|
displayName: string;
|
|
1906
1899
|
};
|
|
1907
1900
|
|
|
@@ -2015,7 +2008,7 @@ type EditableHeadingProps = {
|
|
|
2015
2008
|
* an accessible button that enables editing mode. The component handles empty values, keyboard
|
|
2016
2009
|
* navigation (Enter to save, Escape to cancel), and provides callbacks for value and state changes.
|
|
2017
2010
|
*/
|
|
2018
|
-
declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, variant, __forceEditing, editingDisabled, }: EditableHeadingProps) => JSX
|
|
2011
|
+
declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, variant, __forceEditing, editingDisabled, }: EditableHeadingProps) => JSX.Element;
|
|
2019
2012
|
|
|
2020
2013
|
declare const typographicVariantStyleMap: {
|
|
2021
2014
|
hero: styled_components.RuleSet<object>;
|
|
@@ -2129,7 +2122,7 @@ type EditableTextContextValues = {
|
|
|
2129
2122
|
finalFocusEl: (() => HTMLElement | null) | undefined;
|
|
2130
2123
|
};
|
|
2131
2124
|
declare const EditableTextContext: react.Context<EditableTextContextValues | null>;
|
|
2132
|
-
declare const EditableTextRoot: ({ children, defaultValue, value: controlledValue, onValueChange, onValueCommit, onValueRevert, onEditingChange, typographicVariant, submitMode, readOnly, id, label, placeholder, minLines, maxLines, finalFocusEl, ...props }: EditableTextRootProps) => JSX
|
|
2125
|
+
declare const EditableTextRoot: ({ children, defaultValue, value: controlledValue, onValueChange, onValueCommit, onValueRevert, onEditingChange, typographicVariant, submitMode, readOnly, id, label, placeholder, minLines, maxLines, finalFocusEl, ...props }: EditableTextRootProps) => JSX.Element;
|
|
2133
2126
|
|
|
2134
2127
|
type EditableTextProps = Omit<EditableTextRootProps, 'children'> & {
|
|
2135
2128
|
/**
|
|
@@ -2141,7 +2134,7 @@ type EditableTextProps = Omit<EditableTextRootProps, 'children'> & {
|
|
|
2141
2134
|
* Used for inline editing of text.
|
|
2142
2135
|
*/
|
|
2143
2136
|
declare const EditableText: {
|
|
2144
|
-
({ hideLabel, ...props }: EditableTextProps): JSX
|
|
2137
|
+
({ hideLabel, ...props }: EditableTextProps): JSX.Element;
|
|
2145
2138
|
displayName: string;
|
|
2146
2139
|
};
|
|
2147
2140
|
|
|
@@ -2181,7 +2174,7 @@ type LabelProps = ComponentPropsWithoutRef<'label'> & {
|
|
|
2181
2174
|
* Labels are used to give a title to a form component (eg. Input, Select, etc.)
|
|
2182
2175
|
*/
|
|
2183
2176
|
declare const Label: {
|
|
2184
|
-
({ children, disabled, htmlFor, required, screenReaderOnly, ...props }: LabelProps): JSX
|
|
2177
|
+
({ children, disabled, htmlFor, required, screenReaderOnly, ...props }: LabelProps): JSX.Element;
|
|
2185
2178
|
displayName: string;
|
|
2186
2179
|
};
|
|
2187
2180
|
|
|
@@ -2190,7 +2183,7 @@ declare const EditableTextLabel: ({ ...props }: EditableTextLabelProps) => react
|
|
|
2190
2183
|
|
|
2191
2184
|
declare const EditableTextSubmitButton: ({ children, }: {
|
|
2192
2185
|
children: ReactElement;
|
|
2193
|
-
}) => JSX
|
|
2186
|
+
}) => JSX.Element | null;
|
|
2194
2187
|
|
|
2195
2188
|
type EditableTextCancelButtonProps = {
|
|
2196
2189
|
/**
|
|
@@ -2206,7 +2199,7 @@ type EditableTextTriggerProps = {
|
|
|
2206
2199
|
*/
|
|
2207
2200
|
children: ReactElement;
|
|
2208
2201
|
};
|
|
2209
|
-
declare const EditableTextTrigger: ({ children, ...props }: EditableTextTriggerProps) => JSX
|
|
2202
|
+
declare const EditableTextTrigger: ({ children, ...props }: EditableTextTriggerProps) => JSX.Element | null;
|
|
2210
2203
|
|
|
2211
2204
|
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
2212
2205
|
/**
|
|
@@ -2281,7 +2274,7 @@ declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HT
|
|
|
2281
2274
|
} & react.RefAttributes<HTMLTextAreaElement | HTMLInputElement>>;
|
|
2282
2275
|
|
|
2283
2276
|
type EditableTextInputProps = Pick<InputProps, 'autoSelect'>;
|
|
2284
|
-
declare const EditableTextInput: (props: EditableTextInputProps) => JSX
|
|
2277
|
+
declare const EditableTextInput: (props: EditableTextInputProps) => JSX.Element | null;
|
|
2285
2278
|
|
|
2286
2279
|
type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
|
|
2287
2280
|
/**
|
|
@@ -2297,7 +2290,7 @@ type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
|
|
|
2297
2290
|
* Truncate text with an ellispsis visble at the end
|
|
2298
2291
|
*/
|
|
2299
2292
|
declare const Ellipsis: {
|
|
2300
|
-
({ children, lines, ...props }: EllipsisProps): JSX
|
|
2293
|
+
({ children, lines, ...props }: EllipsisProps): JSX.Element;
|
|
2301
2294
|
displayName: string;
|
|
2302
2295
|
};
|
|
2303
2296
|
|
|
@@ -2364,7 +2357,7 @@ type FormProps<T> = Omit<ComponentPropsWithoutRef<'form'>, 'action' | 'aria-labe
|
|
|
2364
2357
|
*/
|
|
2365
2358
|
declare const Form: <T>(props: FormProps<T> & {
|
|
2366
2359
|
ref?: Ref<HTMLFormElement>;
|
|
2367
|
-
}) => JSX
|
|
2360
|
+
}) => JSX.Element;
|
|
2368
2361
|
|
|
2369
2362
|
type FormErrorSummaryProps = {
|
|
2370
2363
|
description: string;
|
|
@@ -2375,7 +2368,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2375
2368
|
/**
|
|
2376
2369
|
* This should be a single child that is a valid form field (or can pretend to be one).
|
|
2377
2370
|
*/
|
|
2378
|
-
children: JSX
|
|
2371
|
+
children: JSX.Element;
|
|
2379
2372
|
/**
|
|
2380
2373
|
* Additional descriptive text to display below the form field
|
|
2381
2374
|
*/
|
|
@@ -2413,7 +2406,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2413
2406
|
* FormField is a compound component that combines a label, form control, and optional description and error message.
|
|
2414
2407
|
*/
|
|
2415
2408
|
declare const FormField: {
|
|
2416
|
-
({ children, description, error, id, label, labelPosition, name, required, value, ...props }: FormFieldProps): JSX
|
|
2409
|
+
({ children, description, error, id, label, labelPosition, name, required, value, ...props }: FormFieldProps): JSX.Element;
|
|
2417
2410
|
displayName: string;
|
|
2418
2411
|
};
|
|
2419
2412
|
|
|
@@ -2432,7 +2425,7 @@ type FormGroupProps = Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange'> & {
|
|
|
2432
2425
|
* For grouping like form elements together.
|
|
2433
2426
|
*/
|
|
2434
2427
|
declare const FormGroup: {
|
|
2435
|
-
({ children, label, description, ...props }: FormGroupProps): JSX
|
|
2428
|
+
({ children, label, description, ...props }: FormGroupProps): JSX.Element;
|
|
2436
2429
|
displayName: string;
|
|
2437
2430
|
};
|
|
2438
2431
|
|
|
@@ -2445,7 +2438,7 @@ type RadioGroupProps = FormGroupProps & {
|
|
|
2445
2438
|
* For grouping like form elements together. Can serve as a checkbox
|
|
2446
2439
|
*/
|
|
2447
2440
|
declare const RadioGroup: {
|
|
2448
|
-
({ children, name, onChange, value, ...props }: RadioGroupProps): JSX
|
|
2441
|
+
({ children, name, onChange, value, ...props }: RadioGroupProps): JSX.Element;
|
|
2449
2442
|
displayName: string;
|
|
2450
2443
|
};
|
|
2451
2444
|
|
|
@@ -2458,7 +2451,7 @@ type CheckboxGroupProps = FormGroupProps & {
|
|
|
2458
2451
|
* For grouping like form elements together. Can serve as a checkbox
|
|
2459
2452
|
*/
|
|
2460
2453
|
declare const CheckboxGroup: {
|
|
2461
|
-
({ children, name, onChange, value, ...props }: CheckboxGroupProps): JSX
|
|
2454
|
+
({ children, name, onChange, value, ...props }: CheckboxGroupProps): JSX.Element;
|
|
2462
2455
|
displayName: string;
|
|
2463
2456
|
};
|
|
2464
2457
|
|
|
@@ -2501,7 +2494,7 @@ type IconButtonProps = {
|
|
|
2501
2494
|
/**
|
|
2502
2495
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2503
2496
|
*/
|
|
2504
|
-
children: JSX
|
|
2497
|
+
children: JSX.Element;
|
|
2505
2498
|
} & (Omit<ButtonAsButtonProps, 'fullWidth' | 'leftIcon' | 'rightIcon'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'leftIcon' | 'rightIcon'>);
|
|
2506
2499
|
/**
|
|
2507
2500
|
* IconButton behaves like a [Button](?path=/docs/components-button--docs),
|
|
@@ -2515,7 +2508,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
2515
2508
|
/**
|
|
2516
2509
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2517
2510
|
*/
|
|
2518
|
-
children: JSX
|
|
2511
|
+
children: JSX.Element;
|
|
2519
2512
|
} & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
|
|
2520
2513
|
/**
|
|
2521
2514
|
* Accessible text for screen readers.
|
|
@@ -2524,7 +2517,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
2524
2517
|
/**
|
|
2525
2518
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2526
2519
|
*/
|
|
2527
|
-
children: JSX
|
|
2520
|
+
children: JSX.Element;
|
|
2528
2521
|
} & Omit<ButtonAsLinkProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
2529
2522
|
|
|
2530
2523
|
type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
@@ -2571,7 +2564,7 @@ type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
|
2571
2564
|
onError?: (event?: SyntheticEvent<HTMLImageElement>) => void;
|
|
2572
2565
|
};
|
|
2573
2566
|
declare const Image: {
|
|
2574
|
-
({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, onLoad, onError, ...props }: ImageProps): JSX
|
|
2567
|
+
({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, onLoad, onError, ...props }: ImageProps): JSX.Element;
|
|
2575
2568
|
displayName: string;
|
|
2576
2569
|
};
|
|
2577
2570
|
|
|
@@ -2652,7 +2645,7 @@ type KeyboardShortcutProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2652
2645
|
label?: string;
|
|
2653
2646
|
};
|
|
2654
2647
|
declare const KeyboardShortcut: {
|
|
2655
|
-
({ label, keyboardKeys, fullWidth, ...otherProps }: KeyboardShortcutProps): JSX
|
|
2648
|
+
({ label, keyboardKeys, fullWidth, ...otherProps }: KeyboardShortcutProps): JSX.Element;
|
|
2656
2649
|
displayName: string;
|
|
2657
2650
|
};
|
|
2658
2651
|
|
|
@@ -2674,7 +2667,7 @@ type ListProps = ComponentPropsWithoutRef<'ul'> & {
|
|
|
2674
2667
|
variant?: VariantType;
|
|
2675
2668
|
};
|
|
2676
2669
|
declare const List: {
|
|
2677
|
-
({ children, items, variant, ...otherProps }: ListProps): JSX
|
|
2670
|
+
({ children, items, variant, ...otherProps }: ListProps): JSX.Element | null;
|
|
2678
2671
|
displayName: string;
|
|
2679
2672
|
};
|
|
2680
2673
|
|
|
@@ -2685,7 +2678,7 @@ type ListItemProps = {
|
|
|
2685
2678
|
children?: ReactNode;
|
|
2686
2679
|
};
|
|
2687
2680
|
declare const ListItem: {
|
|
2688
|
-
({ children }: ListItemProps): JSX
|
|
2681
|
+
({ children }: ListItemProps): JSX.Element | null;
|
|
2689
2682
|
displayName: string;
|
|
2690
2683
|
};
|
|
2691
2684
|
|
|
@@ -2698,7 +2691,7 @@ type MarkProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2698
2691
|
* Defines text that should be marked or highlighted.
|
|
2699
2692
|
*/
|
|
2700
2693
|
declare const Mark: {
|
|
2701
|
-
({ children, colorScheme, ...props }: MarkProps): JSX
|
|
2694
|
+
({ children, colorScheme, ...props }: MarkProps): JSX.Element;
|
|
2702
2695
|
displayName: string;
|
|
2703
2696
|
};
|
|
2704
2697
|
|
|
@@ -2793,7 +2786,7 @@ type SubMenuProps = {
|
|
|
2793
2786
|
/**
|
|
2794
2787
|
* Icon to display on the left side of the SubMenu. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2795
2788
|
*/
|
|
2796
|
-
icon?: JSX
|
|
2789
|
+
icon?: JSX.Element | undefined;
|
|
2797
2790
|
};
|
|
2798
2791
|
declare const SubMenu: {
|
|
2799
2792
|
({ label, description, children, onOpenChange, ...props }: SubMenuProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2879,7 +2872,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2879
2872
|
type?: LinkTypes;
|
|
2880
2873
|
} & {
|
|
2881
2874
|
appearance?: "dangerous" | "default" | "gated";
|
|
2882
|
-
badge?: JSX.Element;
|
|
2875
|
+
badge?: react.JSX.Element;
|
|
2883
2876
|
children?: react.ReactNode;
|
|
2884
2877
|
command?: react.ReactNode;
|
|
2885
2878
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -2918,7 +2911,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2918
2911
|
type?: LinkTypes;
|
|
2919
2912
|
} & {
|
|
2920
2913
|
appearance?: "dangerous" | "default" | "gated";
|
|
2921
|
-
badge?: JSX.Element;
|
|
2914
|
+
badge?: react.JSX.Element;
|
|
2922
2915
|
children?: react.ReactNode;
|
|
2923
2916
|
command?: react.ReactNode;
|
|
2924
2917
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -2942,7 +2935,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2942
2935
|
children: react.ReactNode;
|
|
2943
2936
|
} & {
|
|
2944
2937
|
appearance?: "dangerous" | "default" | "gated";
|
|
2945
|
-
badge?: JSX.Element;
|
|
2938
|
+
badge?: react.JSX.Element;
|
|
2946
2939
|
children?: react.ReactNode;
|
|
2947
2940
|
command?: react.ReactNode;
|
|
2948
2941
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -3182,7 +3175,7 @@ declare const ModalCallouts: {
|
|
|
3182
3175
|
};
|
|
3183
3176
|
type ModalCalloutProps = {
|
|
3184
3177
|
title: string;
|
|
3185
|
-
image: JSX
|
|
3178
|
+
image: JSX.Element;
|
|
3186
3179
|
/**
|
|
3187
3180
|
* The content to be displayed in the modal callout.
|
|
3188
3181
|
*/
|
|
@@ -3230,7 +3223,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
3230
3223
|
/**
|
|
3231
3224
|
* An interactive element. Most commonly a [Button](?path=/docs/components-button--docs) or [IconButton]([Button](?path=/docs/components-iconbutton--docs)).
|
|
3232
3225
|
*/
|
|
3233
|
-
trigger: JSX
|
|
3226
|
+
trigger: JSX.Element;
|
|
3234
3227
|
/**
|
|
3235
3228
|
* If true, the popover will use the unstyled Content component instead of StyledContent
|
|
3236
3229
|
*/
|
|
@@ -3249,7 +3242,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
3249
3242
|
* Displays rich content in a portal, triggered by a button.
|
|
3250
3243
|
*/
|
|
3251
3244
|
declare const Popover: {
|
|
3252
|
-
({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, withArrow, isAnimated, colorScheme, ...props }: PopoverProps): JSX
|
|
3245
|
+
({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, withArrow, isAnimated, colorScheme, ...props }: PopoverProps): JSX.Element;
|
|
3253
3246
|
displayName: string;
|
|
3254
3247
|
};
|
|
3255
3248
|
|
|
@@ -3279,7 +3272,7 @@ type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
3279
3272
|
* A progress component that visually represents the completion status of a task
|
|
3280
3273
|
*/
|
|
3281
3274
|
declare const ProgressBar: {
|
|
3282
|
-
({ progress, max, children, labelLeft, labelRight, colorScheme, ...props }: ProgressBarProps): JSX
|
|
3275
|
+
({ progress, max, children, labelLeft, labelRight, colorScheme, ...props }: ProgressBarProps): JSX.Element;
|
|
3283
3276
|
displayName: string;
|
|
3284
3277
|
};
|
|
3285
3278
|
|
|
@@ -3391,7 +3384,7 @@ type RadioCardDefaultLayoutProps = {
|
|
|
3391
3384
|
/**
|
|
3392
3385
|
* The icon to display
|
|
3393
3386
|
*/
|
|
3394
|
-
icon?: JSX
|
|
3387
|
+
icon?: JSX.Element | undefined;
|
|
3395
3388
|
/**
|
|
3396
3389
|
* The main label text for the card.
|
|
3397
3390
|
*
|
|
@@ -3614,7 +3607,7 @@ type IconWithLabel$1 = {
|
|
|
3614
3607
|
/**
|
|
3615
3608
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3616
3609
|
*/
|
|
3617
|
-
icon?: JSX
|
|
3610
|
+
icon?: JSX.Element;
|
|
3618
3611
|
/**
|
|
3619
3612
|
* The label of the item
|
|
3620
3613
|
*/
|
|
@@ -3625,7 +3618,7 @@ type IconWithAriaLabel$1 = {
|
|
|
3625
3618
|
/**
|
|
3626
3619
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3627
3620
|
*/
|
|
3628
|
-
icon?: JSX
|
|
3621
|
+
icon?: JSX.Element;
|
|
3629
3622
|
/**
|
|
3630
3623
|
* Use this when displaying an icon without a label
|
|
3631
3624
|
*/
|
|
@@ -3782,7 +3775,7 @@ type SliderProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> & {
|
|
|
3782
3775
|
value?: number[];
|
|
3783
3776
|
};
|
|
3784
3777
|
declare const Slider: {
|
|
3785
|
-
({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, disabled, initialValue, max, min, onChange, step, value, "data-testid": dataTestId, ...otherProps }: SliderProps): JSX
|
|
3778
|
+
({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, disabled, initialValue, max, min, onChange, step, value, "data-testid": dataTestId, ...otherProps }: SliderProps): JSX.Element;
|
|
3786
3779
|
displayName: string;
|
|
3787
3780
|
};
|
|
3788
3781
|
|
|
@@ -3922,23 +3915,23 @@ declare const Switch: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
|
|
|
3922
3915
|
type TableBodyProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3923
3916
|
children?: ReactNode;
|
|
3924
3917
|
};
|
|
3925
|
-
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX
|
|
3918
|
+
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX.Element;
|
|
3926
3919
|
|
|
3927
3920
|
type CellAttrs = Omit<react__default.TdHTMLAttributes<HTMLTableCellElement>, 'ref'> & Omit<react__default.ThHTMLAttributes<HTMLTableCellElement>, 'ref'>;
|
|
3928
3921
|
type TableCellProps = CellAttrs & {
|
|
3929
3922
|
children?: ReactNode;
|
|
3930
3923
|
};
|
|
3931
|
-
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX
|
|
3924
|
+
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX.Element;
|
|
3932
3925
|
|
|
3933
3926
|
type TableFootProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3934
3927
|
children?: ReactNode;
|
|
3935
3928
|
};
|
|
3936
|
-
declare const TableFoot: ({ children, ...props }: TableFootProps) => JSX
|
|
3929
|
+
declare const TableFoot: ({ children, ...props }: TableFootProps) => JSX.Element;
|
|
3937
3930
|
|
|
3938
3931
|
type TableHeadProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3939
3932
|
children?: ReactNode;
|
|
3940
3933
|
};
|
|
3941
|
-
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX
|
|
3934
|
+
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX.Element;
|
|
3942
3935
|
|
|
3943
3936
|
type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
3944
3937
|
/**
|
|
@@ -3963,22 +3956,22 @@ type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
|
3963
3956
|
/**
|
|
3964
3957
|
* Semantic table element for presenting data
|
|
3965
3958
|
*/
|
|
3966
|
-
declare const Table: ({ children, divided, striped, visuallyHiddenHeader, ...props }: TableProps) => JSX
|
|
3959
|
+
declare const Table: ({ children, divided, striped, visuallyHiddenHeader, ...props }: TableProps) => JSX.Element;
|
|
3967
3960
|
|
|
3968
3961
|
type TableRowProps = HTMLAttributes<HTMLTableRowElement> & {
|
|
3969
3962
|
children?: ReactNode;
|
|
3970
3963
|
};
|
|
3971
|
-
declare const TableRow: ({ children, ...props }: TableRowProps) => JSX
|
|
3964
|
+
declare const TableRow: ({ children, ...props }: TableRowProps) => JSX.Element;
|
|
3972
3965
|
|
|
3973
3966
|
type TabsProps = Pick<TabsProps$1, 'children' | 'defaultValue' | 'onValueChange' | 'value'>;
|
|
3974
3967
|
declare const Tabs: {
|
|
3975
|
-
({ children, value: valueProp, onValueChange: onValueChangeProp, defaultValue, ...props }: TabsProps): JSX
|
|
3968
|
+
({ children, value: valueProp, onValueChange: onValueChangeProp, defaultValue, ...props }: TabsProps): JSX.Element;
|
|
3976
3969
|
displayName: string;
|
|
3977
3970
|
};
|
|
3978
3971
|
|
|
3979
3972
|
type TabsContentProps = Pick<TabsContentProps$1, 'children' | 'value'>;
|
|
3980
3973
|
declare const TabsContent: {
|
|
3981
|
-
({ children, value }: TabsContentProps): JSX
|
|
3974
|
+
({ children, value }: TabsContentProps): JSX.Element;
|
|
3982
3975
|
displayName: string;
|
|
3983
3976
|
};
|
|
3984
3977
|
|
|
@@ -3986,7 +3979,7 @@ type TabsListProps = Pick<TabsListProps$1, 'aria-label'> & PropsWithChildren<{
|
|
|
3986
3979
|
fullWidth?: boolean;
|
|
3987
3980
|
}>;
|
|
3988
3981
|
declare const TabsList: {
|
|
3989
|
-
({ children, fullWidth, ...props }: TabsListProps): JSX
|
|
3982
|
+
({ children, fullWidth, ...props }: TabsListProps): JSX.Element;
|
|
3990
3983
|
displayName: string;
|
|
3991
3984
|
};
|
|
3992
3985
|
|
|
@@ -3995,7 +3988,7 @@ type IconWithLabel = {
|
|
|
3995
3988
|
/**
|
|
3996
3989
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3997
3990
|
*/
|
|
3998
|
-
icon?: JSX
|
|
3991
|
+
icon?: JSX.Element;
|
|
3999
3992
|
/**
|
|
4000
3993
|
* The label of the item
|
|
4001
3994
|
*/
|
|
@@ -4006,7 +3999,7 @@ type IconWithAriaLabel = {
|
|
|
4006
3999
|
/**
|
|
4007
4000
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
4008
4001
|
*/
|
|
4009
|
-
icon?: JSX
|
|
4002
|
+
icon?: JSX.Element;
|
|
4010
4003
|
/**
|
|
4011
4004
|
* Use this when displaying an icon without a label
|
|
4012
4005
|
*/
|
|
@@ -4036,7 +4029,7 @@ type TagProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
4036
4029
|
/**
|
|
4037
4030
|
* Optional icon to display before the label
|
|
4038
4031
|
*/
|
|
4039
|
-
icon?: JSX
|
|
4032
|
+
icon?: JSX.Element | undefined;
|
|
4040
4033
|
/**
|
|
4041
4034
|
* Text label for the `Tag`
|
|
4042
4035
|
*/
|
|
@@ -4065,7 +4058,7 @@ declare const Tag: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<
|
|
|
4065
4058
|
/**
|
|
4066
4059
|
* Optional icon to display before the label
|
|
4067
4060
|
*/
|
|
4068
|
-
icon?: JSX
|
|
4061
|
+
icon?: JSX.Element | undefined;
|
|
4069
4062
|
/**
|
|
4070
4063
|
* Text label for the `Tag`
|
|
4071
4064
|
*/
|
|
@@ -4084,14 +4077,14 @@ type ThumbnailBadgeProps = {
|
|
|
4084
4077
|
/**
|
|
4085
4078
|
* Icon to display on the left side of the badge
|
|
4086
4079
|
*/
|
|
4087
|
-
icon?: JSX
|
|
4080
|
+
icon?: JSX.Element | undefined;
|
|
4088
4081
|
/**
|
|
4089
4082
|
* Text content to display in the badge
|
|
4090
4083
|
*/
|
|
4091
4084
|
label: string;
|
|
4092
4085
|
};
|
|
4093
4086
|
declare const ThumbnailBadge: {
|
|
4094
|
-
({ icon, label, ...props }: ThumbnailBadgeProps): JSX
|
|
4087
|
+
({ icon, label, ...props }: ThumbnailBadgeProps): JSX.Element;
|
|
4095
4088
|
displayName: string;
|
|
4096
4089
|
};
|
|
4097
4090
|
|
|
@@ -4209,7 +4202,7 @@ type ThumbnailCollageProps = {
|
|
|
4209
4202
|
* It supports up to 3 thumbnails arranged in different configurations based on the number of children provided.
|
|
4210
4203
|
* If no thumbnails are provided, it displays a fallback thumbnail with a gradient background.
|
|
4211
4204
|
*/
|
|
4212
|
-
declare const ThumbnailCollage: ({ children, gradientBackground, ...props }: ThumbnailCollageProps) => JSX
|
|
4205
|
+
declare const ThumbnailCollage: ({ children, gradientBackground, ...props }: ThumbnailCollageProps) => JSX.Element;
|
|
4213
4206
|
|
|
4214
4207
|
type TooltipProps = {
|
|
4215
4208
|
/**
|
|
@@ -4250,7 +4243,7 @@ type TooltipProps = {
|
|
|
4250
4243
|
*
|
|
4251
4244
|
*/
|
|
4252
4245
|
declare const Tooltip: {
|
|
4253
|
-
({ delay, direction, content, children, forceOpen, hideArrow, container, }: TooltipProps): JSX
|
|
4246
|
+
({ delay, direction, content, children, forceOpen, hideArrow, container, }: TooltipProps): JSX.Element;
|
|
4254
4247
|
displayName: string;
|
|
4255
4248
|
};
|
|
4256
4249
|
|
|
@@ -4309,7 +4302,7 @@ type SplitButtonProps = {
|
|
|
4309
4302
|
* The icon to use for the menu toggle, defaults to a down caret
|
|
4310
4303
|
* @default <Icon type="caret-down" />
|
|
4311
4304
|
*/
|
|
4312
|
-
menuIcon?: JSX
|
|
4305
|
+
menuIcon?: JSX.Element;
|
|
4313
4306
|
/**
|
|
4314
4307
|
* The menu items to render within the menu. If the secondary behavior of `SplitButton` should be a button, rather than a menu, omit `menuItems` and use `secondaryAction` instead.
|
|
4315
4308
|
*/
|
|
@@ -4325,7 +4318,7 @@ type SplitButtonProps = {
|
|
|
4325
4318
|
/**
|
|
4326
4319
|
* Secondary action should not be used when menuItems is set
|
|
4327
4320
|
*/
|
|
4328
|
-
secondaryAction?: JSX
|
|
4321
|
+
secondaryAction?: JSX.Element;
|
|
4329
4322
|
/**
|
|
4330
4323
|
* The size of button to display. Can be used as a [responsive prop](/docs/ui-docs-responsive-props--docs)
|
|
4331
4324
|
*/
|
|
@@ -4339,7 +4332,7 @@ type SplitButtonProps = {
|
|
|
4339
4332
|
* A SplitButton is an extension of [Button]() that adds a menu to the right hand side of the button.
|
|
4340
4333
|
*/
|
|
4341
4334
|
declare const SplitButton: {
|
|
4342
|
-
({ children, menuLabel, menuIcon, menuItems, disabled, colorScheme, variant, secondaryAction, size, unstyled, menuProps, ...props }: SplitButtonProps): JSX
|
|
4335
|
+
({ children, menuLabel, menuIcon, menuItems, disabled, colorScheme, variant, secondaryAction, size, unstyled, menuProps, ...props }: SplitButtonProps): JSX.Element;
|
|
4343
4336
|
displayName: string;
|
|
4344
4337
|
};
|
|
4345
4338
|
|