@wistia/ui 0.18.0-beta.ce6c1712.725e361 → 0.18.0-beta.d5accfdd.0ddbbc0
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 +40 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +99 -99
- package/dist/index.d.ts +99 -99
- package/dist/index.mjs +40 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
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';
|
|
@@ -123,11 +123,11 @@ declare const useFocusTrap: (active?: boolean, options?: UseFocusTrapOptions) =>
|
|
|
123
123
|
declare const useForceUpdate: () => (() => void);
|
|
124
124
|
|
|
125
125
|
type HoverProps = {
|
|
126
|
-
onFocus: (
|
|
127
|
-
onMouseEnter: (
|
|
128
|
-
onBlur: (
|
|
129
|
-
onMouseLeave: (
|
|
130
|
-
onMouseMove?: (
|
|
126
|
+
onFocus: () => void;
|
|
127
|
+
onMouseEnter: () => void;
|
|
128
|
+
onBlur: () => void;
|
|
129
|
+
onMouseLeave: () => void;
|
|
130
|
+
onMouseMove?: () => void;
|
|
131
131
|
};
|
|
132
132
|
declare const useIsHovered: () => [boolean, HoverProps, (hovered: boolean) => void];
|
|
133
133
|
|
|
@@ -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
|
|
|
@@ -887,7 +887,7 @@ type BreadcrumbsProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
887
887
|
* [Button](?path=/docs/components-button--docs). See it's documentation for additional functionality.
|
|
888
888
|
*/
|
|
889
889
|
declare const Breadcrumbs: {
|
|
890
|
-
({ children, ...props }: BreadcrumbsProps): JSX
|
|
890
|
+
({ children, ...props }: BreadcrumbsProps): JSX.Element;
|
|
891
891
|
displayName: string;
|
|
892
892
|
};
|
|
893
893
|
|
|
@@ -936,7 +936,7 @@ type ButtonGroupProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
936
936
|
* with a standardized gap between them.
|
|
937
937
|
*/
|
|
938
938
|
declare const ButtonGroup: {
|
|
939
|
-
({ children, align, fullWidth, collapseOnSmallScreens, buttonSize, ...props }: ButtonGroupProps): JSX
|
|
939
|
+
({ children, align, fullWidth, collapseOnSmallScreens, buttonSize, ...props }: ButtonGroupProps): JSX.Element | null;
|
|
940
940
|
displayName: string;
|
|
941
941
|
};
|
|
942
942
|
|
|
@@ -1041,7 +1041,7 @@ type CardProps = BoxProps & ComponentPropsWithoutRef<'div'> & {
|
|
|
1041
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)
|
|
1042
1042
|
*/
|
|
1043
1043
|
declare const Card: {
|
|
1044
|
-
({ children, border, borderRadius, colorScheme, direction, gap, height, paddingSize, prominence, width, ...props }: CardProps): JSX
|
|
1044
|
+
({ children, border, borderRadius, colorScheme, direction, gap, height, paddingSize, prominence, width, ...props }: CardProps): JSX.Element;
|
|
1045
1045
|
displayName: string;
|
|
1046
1046
|
};
|
|
1047
1047
|
|
|
@@ -1138,7 +1138,7 @@ type ClickRegionProps = {
|
|
|
1138
1138
|
/**
|
|
1139
1139
|
* The content that should be clickable.
|
|
1140
1140
|
*/
|
|
1141
|
-
children: JSX
|
|
1141
|
+
children: JSX.Element;
|
|
1142
1142
|
/**
|
|
1143
1143
|
* The ref to the button or link that should be clicked when the ClickRegion is clicked.
|
|
1144
1144
|
*/
|
|
@@ -1155,7 +1155,7 @@ type ClickRegionProps = {
|
|
|
1155
1155
|
* In either case, a link or button must be present, but can be hidden by using `ScreenReaderOnly`.
|
|
1156
1156
|
*/
|
|
1157
1157
|
declare const ClickRegion: {
|
|
1158
|
-
({ children, targetRef }: ClickRegionProps): JSX
|
|
1158
|
+
({ children, targetRef }: ClickRegionProps): JSX.Element;
|
|
1159
1159
|
displayName: string;
|
|
1160
1160
|
};
|
|
1161
1161
|
|
|
@@ -1177,7 +1177,7 @@ type CollapsibleProps = {
|
|
|
1177
1177
|
* Toggle the visibility of content with a trigger.
|
|
1178
1178
|
*/
|
|
1179
1179
|
declare const Collapsible: {
|
|
1180
|
-
({ children, isOpen, onOpenChange, }: CollapsibleProps): JSX
|
|
1180
|
+
({ children, isOpen, onOpenChange, }: CollapsibleProps): JSX.Element;
|
|
1181
1181
|
displayName: string;
|
|
1182
1182
|
};
|
|
1183
1183
|
|
|
@@ -1430,7 +1430,7 @@ type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
|
1430
1430
|
* If you need an interactive element, use IconButton.
|
|
1431
1431
|
*/
|
|
1432
1432
|
declare const Icon: {
|
|
1433
|
-
({ useInlineStyles, invertColor, colorScheme, size, style, type, ...props }: IconProps): JSX
|
|
1433
|
+
({ useInlineStyles, invertColor, colorScheme, size, style, type, ...props }: IconProps): JSX.Element;
|
|
1434
1434
|
displayName: string;
|
|
1435
1435
|
};
|
|
1436
1436
|
|
|
@@ -1458,7 +1458,7 @@ type ColorGridProps = PropsWithChildren & {
|
|
|
1458
1458
|
label?: string;
|
|
1459
1459
|
};
|
|
1460
1460
|
declare const ColorGrid: {
|
|
1461
|
-
({ children, label }: ColorGridProps): JSX
|
|
1461
|
+
({ children, label }: ColorGridProps): JSX.Element;
|
|
1462
1462
|
displayName: string;
|
|
1463
1463
|
};
|
|
1464
1464
|
|
|
@@ -1475,13 +1475,13 @@ type ColorPickerOption = {
|
|
|
1475
1475
|
|
|
1476
1476
|
type ColorGridOptionProps = ColorPickerOption;
|
|
1477
1477
|
declare const ColorGridOption: {
|
|
1478
|
-
({ value: rawValue, name }: ColorGridOptionProps): JSX
|
|
1478
|
+
({ value: rawValue, name }: ColorGridOptionProps): JSX.Element;
|
|
1479
1479
|
displayName: string;
|
|
1480
1480
|
};
|
|
1481
1481
|
|
|
1482
1482
|
type ColorListProps = PropsWithChildren;
|
|
1483
1483
|
declare const ColorList: {
|
|
1484
|
-
({ children }: ColorListProps): JSX
|
|
1484
|
+
({ children }: ColorListProps): JSX.Element;
|
|
1485
1485
|
displayName: string;
|
|
1486
1486
|
};
|
|
1487
1487
|
|
|
@@ -1489,13 +1489,13 @@ type ColorListGroupProps = PropsWithChildren<{
|
|
|
1489
1489
|
label: string;
|
|
1490
1490
|
}>;
|
|
1491
1491
|
declare const ColorListGroup: {
|
|
1492
|
-
({ label, children }: ColorListGroupProps): JSX
|
|
1492
|
+
({ label, children }: ColorListGroupProps): JSX.Element;
|
|
1493
1493
|
displayName: string;
|
|
1494
1494
|
};
|
|
1495
1495
|
|
|
1496
1496
|
type ColorListOptionProps = ColorPickerOption;
|
|
1497
1497
|
declare const ColorListOption: {
|
|
1498
|
-
({ value: rawValue, name }: ColorListOptionProps): JSX
|
|
1498
|
+
({ value: rawValue, name }: ColorListOptionProps): JSX.Element;
|
|
1499
1499
|
displayName: string;
|
|
1500
1500
|
};
|
|
1501
1501
|
|
|
@@ -1528,19 +1528,19 @@ type ColorPickerProps = PropsWithChildren<{
|
|
|
1528
1528
|
* subcomponents.
|
|
1529
1529
|
*/
|
|
1530
1530
|
declare const ColorPicker: {
|
|
1531
|
-
({ children, colorForComparison, minimumContrastRatio, opacityForContrastCalculation, onValueChange, value, }: ColorPickerProps): JSX
|
|
1531
|
+
({ children, colorForComparison, minimumContrastRatio, opacityForContrastCalculation, onValueChange, value, }: ColorPickerProps): JSX.Element;
|
|
1532
1532
|
displayName: string;
|
|
1533
1533
|
};
|
|
1534
1534
|
|
|
1535
1535
|
type ColorPickerPopoverContentProps = PropsWithChildren;
|
|
1536
1536
|
declare const ColorPickerPopoverContent: {
|
|
1537
|
-
({ children, }: ColorPickerPopoverContentProps): JSX
|
|
1537
|
+
({ children, }: ColorPickerPopoverContentProps): JSX.Element;
|
|
1538
1538
|
displayName: string;
|
|
1539
1539
|
};
|
|
1540
1540
|
|
|
1541
1541
|
type ColorPickerSectionProps = PropsWithChildren;
|
|
1542
1542
|
declare const ColorPickerSection: {
|
|
1543
|
-
({ children }: ColorPickerSectionProps): JSX
|
|
1543
|
+
({ children }: ColorPickerSectionProps): JSX.Element;
|
|
1544
1544
|
displayName: string;
|
|
1545
1545
|
};
|
|
1546
1546
|
|
|
@@ -1550,7 +1550,7 @@ declare const ColorPickerTrigger: react.ForwardRefExoticComponent<{
|
|
|
1550
1550
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1551
1551
|
|
|
1552
1552
|
declare const ContrastControls: {
|
|
1553
|
-
(): JSX
|
|
1553
|
+
(): JSX.Element;
|
|
1554
1554
|
displayName: string;
|
|
1555
1555
|
};
|
|
1556
1556
|
|
|
@@ -1561,12 +1561,12 @@ type HexColorInputProps = {
|
|
|
1561
1561
|
autoFocus?: boolean;
|
|
1562
1562
|
};
|
|
1563
1563
|
declare const HexColorInput: {
|
|
1564
|
-
({ autoFocus }: HexColorInputProps): JSX
|
|
1564
|
+
({ autoFocus }: HexColorInputProps): JSX.Element;
|
|
1565
1565
|
displayName: string;
|
|
1566
1566
|
};
|
|
1567
1567
|
|
|
1568
1568
|
declare const HueSlider: {
|
|
1569
|
-
(): JSX
|
|
1569
|
+
(): JSX.Element;
|
|
1570
1570
|
displayName: string;
|
|
1571
1571
|
};
|
|
1572
1572
|
|
|
@@ -1574,12 +1574,12 @@ type SaturationAndValuePickerProps = {
|
|
|
1574
1574
|
dataTestId?: string;
|
|
1575
1575
|
};
|
|
1576
1576
|
declare const SaturationAndValuePicker: {
|
|
1577
|
-
({ dataTestId, }: SaturationAndValuePickerProps): JSX
|
|
1577
|
+
({ dataTestId, }: SaturationAndValuePickerProps): JSX.Element;
|
|
1578
1578
|
displayName: string;
|
|
1579
1579
|
};
|
|
1580
1580
|
|
|
1581
1581
|
declare const ValueNameOrHexCode: {
|
|
1582
|
-
(): JSX
|
|
1582
|
+
(): JSX.Element;
|
|
1583
1583
|
displayName: string;
|
|
1584
1584
|
};
|
|
1585
1585
|
|
|
@@ -1592,7 +1592,7 @@ type ColorSwatchProps = PropsWithChildren<{
|
|
|
1592
1592
|
|
|
1593
1593
|
type ValueSwatchProps = Pick<ColorSwatchProps, 'diameterPx'>;
|
|
1594
1594
|
declare const ValueSwatch: {
|
|
1595
|
-
({ diameterPx, }: ValueSwatchProps): JSX
|
|
1595
|
+
({ diameterPx, }: ValueSwatchProps): JSX.Element;
|
|
1596
1596
|
displayName: string;
|
|
1597
1597
|
};
|
|
1598
1598
|
|
|
@@ -1731,7 +1731,7 @@ type DataCardsProps = ComponentPropsWithoutRef<'dl'> & {
|
|
|
1731
1731
|
* Displays a series of cards tailor made for displaying analytics data
|
|
1732
1732
|
*/
|
|
1733
1733
|
declare const DataCards: {
|
|
1734
|
-
({ children, cardMaxWidth, colorScheme, ...props }: DataCardsProps): JSX
|
|
1734
|
+
({ children, cardMaxWidth, colorScheme, ...props }: DataCardsProps): JSX.Element;
|
|
1735
1735
|
displayName: string;
|
|
1736
1736
|
};
|
|
1737
1737
|
|
|
@@ -1747,9 +1747,9 @@ type DataCardTrendProps = {
|
|
|
1747
1747
|
/**
|
|
1748
1748
|
* Content to display next to the trend arrow
|
|
1749
1749
|
*/
|
|
1750
|
-
children: JSX
|
|
1750
|
+
children: JSX.Element | string;
|
|
1751
1751
|
};
|
|
1752
|
-
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX
|
|
1752
|
+
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
|
|
1753
1753
|
|
|
1754
1754
|
declare const DataCardHoverArrow: {
|
|
1755
1755
|
(): react_jsx_runtime.JSX.Element;
|
|
@@ -1778,7 +1778,7 @@ type DataListProps = ComponentPropsWithoutRef<'dl'> & {
|
|
|
1778
1778
|
* The DataList component is used to display a list of items with labels and values.
|
|
1779
1779
|
*/
|
|
1780
1780
|
declare const DataList: {
|
|
1781
|
-
({ children, valueAlignment, labelMaxWith, labelProminence, ...props }: DataListProps): JSX
|
|
1781
|
+
({ children, valueAlignment, labelMaxWith, labelProminence, ...props }: DataListProps): JSX.Element;
|
|
1782
1782
|
displayName: string;
|
|
1783
1783
|
};
|
|
1784
1784
|
|
|
@@ -1872,7 +1872,7 @@ declare const Text: (<C extends ElementType = "p">(props: PolymorphicComponentPr
|
|
|
1872
1872
|
* The label of the `DataListItem`. Extends the [Text]() component.
|
|
1873
1873
|
*/
|
|
1874
1874
|
declare const DataListItemLabel: {
|
|
1875
|
-
(props: TextProps): JSX
|
|
1875
|
+
(props: TextProps): JSX.Element;
|
|
1876
1876
|
displayName: string;
|
|
1877
1877
|
};
|
|
1878
1878
|
|
|
@@ -1880,7 +1880,7 @@ declare const DataListItemLabel: {
|
|
|
1880
1880
|
* The value of the `DataListItem`. Extends the [Text]() component.
|
|
1881
1881
|
*/
|
|
1882
1882
|
declare const DataListItemValue: {
|
|
1883
|
-
(props: TextProps): JSX
|
|
1883
|
+
(props: TextProps): JSX.Element;
|
|
1884
1884
|
displayName: string;
|
|
1885
1885
|
};
|
|
1886
1886
|
|
|
@@ -1894,7 +1894,7 @@ type DividerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1894
1894
|
* A line used to visually separate content; note that dividers have no margin/spacing on their own.
|
|
1895
1895
|
*/
|
|
1896
1896
|
declare const Divider: {
|
|
1897
|
-
({ orientation, ...props }: DividerProps): JSX
|
|
1897
|
+
({ orientation, ...props }: DividerProps): JSX.Element;
|
|
1898
1898
|
displayName: string;
|
|
1899
1899
|
};
|
|
1900
1900
|
|
|
@@ -2008,7 +2008,7 @@ type EditableHeadingProps = {
|
|
|
2008
2008
|
* an accessible button that enables editing mode. The component handles empty values, keyboard
|
|
2009
2009
|
* navigation (Enter to save, Escape to cancel), and provides callbacks for value and state changes.
|
|
2010
2010
|
*/
|
|
2011
|
-
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;
|
|
2012
2012
|
|
|
2013
2013
|
declare const typographicVariantStyleMap: {
|
|
2014
2014
|
hero: styled_components.RuleSet<object>;
|
|
@@ -2122,7 +2122,7 @@ type EditableTextContextValues = {
|
|
|
2122
2122
|
finalFocusEl: (() => HTMLElement | null) | undefined;
|
|
2123
2123
|
};
|
|
2124
2124
|
declare const EditableTextContext: react.Context<EditableTextContextValues | null>;
|
|
2125
|
-
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;
|
|
2126
2126
|
|
|
2127
2127
|
type EditableTextProps = Omit<EditableTextRootProps, 'children'> & {
|
|
2128
2128
|
/**
|
|
@@ -2134,7 +2134,7 @@ type EditableTextProps = Omit<EditableTextRootProps, 'children'> & {
|
|
|
2134
2134
|
* Used for inline editing of text.
|
|
2135
2135
|
*/
|
|
2136
2136
|
declare const EditableText: {
|
|
2137
|
-
({ hideLabel, ...props }: EditableTextProps): JSX
|
|
2137
|
+
({ hideLabel, ...props }: EditableTextProps): JSX.Element;
|
|
2138
2138
|
displayName: string;
|
|
2139
2139
|
};
|
|
2140
2140
|
|
|
@@ -2174,7 +2174,7 @@ type LabelProps = ComponentPropsWithoutRef<'label'> & {
|
|
|
2174
2174
|
* Labels are used to give a title to a form component (eg. Input, Select, etc.)
|
|
2175
2175
|
*/
|
|
2176
2176
|
declare const Label: {
|
|
2177
|
-
({ children, disabled, htmlFor, required, screenReaderOnly, ...props }: LabelProps): JSX
|
|
2177
|
+
({ children, disabled, htmlFor, required, screenReaderOnly, ...props }: LabelProps): JSX.Element;
|
|
2178
2178
|
displayName: string;
|
|
2179
2179
|
};
|
|
2180
2180
|
|
|
@@ -2183,7 +2183,7 @@ declare const EditableTextLabel: ({ ...props }: EditableTextLabelProps) => react
|
|
|
2183
2183
|
|
|
2184
2184
|
declare const EditableTextSubmitButton: ({ children, }: {
|
|
2185
2185
|
children: ReactElement;
|
|
2186
|
-
}) => JSX
|
|
2186
|
+
}) => JSX.Element | null;
|
|
2187
2187
|
|
|
2188
2188
|
type EditableTextCancelButtonProps = {
|
|
2189
2189
|
/**
|
|
@@ -2199,7 +2199,7 @@ type EditableTextTriggerProps = {
|
|
|
2199
2199
|
*/
|
|
2200
2200
|
children: ReactElement;
|
|
2201
2201
|
};
|
|
2202
|
-
declare const EditableTextTrigger: ({ children, ...props }: EditableTextTriggerProps) => JSX
|
|
2202
|
+
declare const EditableTextTrigger: ({ children, ...props }: EditableTextTriggerProps) => JSX.Element | null;
|
|
2203
2203
|
|
|
2204
2204
|
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
2205
2205
|
/**
|
|
@@ -2274,7 +2274,7 @@ declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HT
|
|
|
2274
2274
|
} & react.RefAttributes<HTMLTextAreaElement | HTMLInputElement>>;
|
|
2275
2275
|
|
|
2276
2276
|
type EditableTextInputProps = Pick<InputProps, 'autoSelect'>;
|
|
2277
|
-
declare const EditableTextInput: (props: EditableTextInputProps) => JSX
|
|
2277
|
+
declare const EditableTextInput: (props: EditableTextInputProps) => JSX.Element | null;
|
|
2278
2278
|
|
|
2279
2279
|
type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
|
|
2280
2280
|
/**
|
|
@@ -2290,7 +2290,7 @@ type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
|
|
|
2290
2290
|
* Truncate text with an ellispsis visble at the end
|
|
2291
2291
|
*/
|
|
2292
2292
|
declare const Ellipsis: {
|
|
2293
|
-
({ children, lines, ...props }: EllipsisProps): JSX
|
|
2293
|
+
({ children, lines, ...props }: EllipsisProps): JSX.Element;
|
|
2294
2294
|
displayName: string;
|
|
2295
2295
|
};
|
|
2296
2296
|
|
|
@@ -2357,7 +2357,7 @@ type FormProps<T> = Omit<ComponentPropsWithoutRef<'form'>, 'action' | 'aria-labe
|
|
|
2357
2357
|
*/
|
|
2358
2358
|
declare const Form: <T>(props: FormProps<T> & {
|
|
2359
2359
|
ref?: Ref<HTMLFormElement>;
|
|
2360
|
-
}) => JSX
|
|
2360
|
+
}) => JSX.Element;
|
|
2361
2361
|
|
|
2362
2362
|
type FormErrorSummaryProps = {
|
|
2363
2363
|
description: string;
|
|
@@ -2368,7 +2368,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2368
2368
|
/**
|
|
2369
2369
|
* This should be a single child that is a valid form field (or can pretend to be one).
|
|
2370
2370
|
*/
|
|
2371
|
-
children: JSX
|
|
2371
|
+
children: JSX.Element;
|
|
2372
2372
|
/**
|
|
2373
2373
|
* Additional descriptive text to display below the form field
|
|
2374
2374
|
*/
|
|
@@ -2406,7 +2406,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2406
2406
|
* FormField is a compound component that combines a label, form control, and optional description and error message.
|
|
2407
2407
|
*/
|
|
2408
2408
|
declare const FormField: {
|
|
2409
|
-
({ 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;
|
|
2410
2410
|
displayName: string;
|
|
2411
2411
|
};
|
|
2412
2412
|
|
|
@@ -2425,7 +2425,7 @@ type FormGroupProps = Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange'> & {
|
|
|
2425
2425
|
* For grouping like form elements together.
|
|
2426
2426
|
*/
|
|
2427
2427
|
declare const FormGroup: {
|
|
2428
|
-
({ children, label, description, ...props }: FormGroupProps): JSX
|
|
2428
|
+
({ children, label, description, ...props }: FormGroupProps): JSX.Element;
|
|
2429
2429
|
displayName: string;
|
|
2430
2430
|
};
|
|
2431
2431
|
|
|
@@ -2438,7 +2438,7 @@ type RadioGroupProps = FormGroupProps & {
|
|
|
2438
2438
|
* For grouping like form elements together. Can serve as a checkbox
|
|
2439
2439
|
*/
|
|
2440
2440
|
declare const RadioGroup: {
|
|
2441
|
-
({ children, name, onChange, value, ...props }: RadioGroupProps): JSX
|
|
2441
|
+
({ children, name, onChange, value, ...props }: RadioGroupProps): JSX.Element;
|
|
2442
2442
|
displayName: string;
|
|
2443
2443
|
};
|
|
2444
2444
|
|
|
@@ -2451,7 +2451,7 @@ type CheckboxGroupProps = FormGroupProps & {
|
|
|
2451
2451
|
* For grouping like form elements together. Can serve as a checkbox
|
|
2452
2452
|
*/
|
|
2453
2453
|
declare const CheckboxGroup: {
|
|
2454
|
-
({ children, name, onChange, value, ...props }: CheckboxGroupProps): JSX
|
|
2454
|
+
({ children, name, onChange, value, ...props }: CheckboxGroupProps): JSX.Element;
|
|
2455
2455
|
displayName: string;
|
|
2456
2456
|
};
|
|
2457
2457
|
|
|
@@ -2494,7 +2494,7 @@ type IconButtonProps = {
|
|
|
2494
2494
|
/**
|
|
2495
2495
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2496
2496
|
*/
|
|
2497
|
-
children: JSX
|
|
2497
|
+
children: JSX.Element;
|
|
2498
2498
|
} & (Omit<ButtonAsButtonProps, 'fullWidth' | 'leftIcon' | 'rightIcon'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'leftIcon' | 'rightIcon'>);
|
|
2499
2499
|
/**
|
|
2500
2500
|
* IconButton behaves like a [Button](?path=/docs/components-button--docs),
|
|
@@ -2508,7 +2508,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
2508
2508
|
/**
|
|
2509
2509
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2510
2510
|
*/
|
|
2511
|
-
children: JSX
|
|
2511
|
+
children: JSX.Element;
|
|
2512
2512
|
} & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
|
|
2513
2513
|
/**
|
|
2514
2514
|
* Accessible text for screen readers.
|
|
@@ -2517,7 +2517,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
2517
2517
|
/**
|
|
2518
2518
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2519
2519
|
*/
|
|
2520
|
-
children: JSX
|
|
2520
|
+
children: JSX.Element;
|
|
2521
2521
|
} & Omit<ButtonAsLinkProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
2522
2522
|
|
|
2523
2523
|
type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
@@ -2564,7 +2564,7 @@ type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
|
2564
2564
|
onError?: (event?: SyntheticEvent<HTMLImageElement>) => void;
|
|
2565
2565
|
};
|
|
2566
2566
|
declare const Image: {
|
|
2567
|
-
({ 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;
|
|
2568
2568
|
displayName: string;
|
|
2569
2569
|
};
|
|
2570
2570
|
|
|
@@ -2645,7 +2645,7 @@ type KeyboardShortcutProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2645
2645
|
label?: string;
|
|
2646
2646
|
};
|
|
2647
2647
|
declare const KeyboardShortcut: {
|
|
2648
|
-
({ label, keyboardKeys, fullWidth, ...otherProps }: KeyboardShortcutProps): JSX
|
|
2648
|
+
({ label, keyboardKeys, fullWidth, ...otherProps }: KeyboardShortcutProps): JSX.Element;
|
|
2649
2649
|
displayName: string;
|
|
2650
2650
|
};
|
|
2651
2651
|
|
|
@@ -2667,7 +2667,7 @@ type ListProps = ComponentPropsWithoutRef<'ul'> & {
|
|
|
2667
2667
|
variant?: VariantType;
|
|
2668
2668
|
};
|
|
2669
2669
|
declare const List: {
|
|
2670
|
-
({ children, items, variant, ...otherProps }: ListProps): JSX
|
|
2670
|
+
({ children, items, variant, ...otherProps }: ListProps): JSX.Element | null;
|
|
2671
2671
|
displayName: string;
|
|
2672
2672
|
};
|
|
2673
2673
|
|
|
@@ -2678,7 +2678,7 @@ type ListItemProps = {
|
|
|
2678
2678
|
children?: ReactNode;
|
|
2679
2679
|
};
|
|
2680
2680
|
declare const ListItem: {
|
|
2681
|
-
({ children }: ListItemProps): JSX
|
|
2681
|
+
({ children }: ListItemProps): JSX.Element | null;
|
|
2682
2682
|
displayName: string;
|
|
2683
2683
|
};
|
|
2684
2684
|
|
|
@@ -2691,7 +2691,7 @@ type MarkProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2691
2691
|
* Defines text that should be marked or highlighted.
|
|
2692
2692
|
*/
|
|
2693
2693
|
declare const Mark: {
|
|
2694
|
-
({ children, colorScheme, ...props }: MarkProps): JSX
|
|
2694
|
+
({ children, colorScheme, ...props }: MarkProps): JSX.Element;
|
|
2695
2695
|
displayName: string;
|
|
2696
2696
|
};
|
|
2697
2697
|
|
|
@@ -2786,7 +2786,7 @@ type SubMenuProps = {
|
|
|
2786
2786
|
/**
|
|
2787
2787
|
* Icon to display on the left side of the SubMenu. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2788
2788
|
*/
|
|
2789
|
-
icon?: JSX
|
|
2789
|
+
icon?: JSX.Element | undefined;
|
|
2790
2790
|
};
|
|
2791
2791
|
declare const SubMenu: {
|
|
2792
2792
|
({ label, description, children, onOpenChange, ...props }: SubMenuProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2872,7 +2872,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2872
2872
|
type?: LinkTypes;
|
|
2873
2873
|
} & {
|
|
2874
2874
|
appearance?: "dangerous" | "default" | "gated";
|
|
2875
|
-
badge?: JSX.Element;
|
|
2875
|
+
badge?: react.JSX.Element;
|
|
2876
2876
|
children?: react.ReactNode;
|
|
2877
2877
|
command?: react.ReactNode;
|
|
2878
2878
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -2911,7 +2911,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2911
2911
|
type?: LinkTypes;
|
|
2912
2912
|
} & {
|
|
2913
2913
|
appearance?: "dangerous" | "default" | "gated";
|
|
2914
|
-
badge?: JSX.Element;
|
|
2914
|
+
badge?: react.JSX.Element;
|
|
2915
2915
|
children?: react.ReactNode;
|
|
2916
2916
|
command?: react.ReactNode;
|
|
2917
2917
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -2935,7 +2935,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2935
2935
|
children: react.ReactNode;
|
|
2936
2936
|
} & {
|
|
2937
2937
|
appearance?: "dangerous" | "default" | "gated";
|
|
2938
|
-
badge?: JSX.Element;
|
|
2938
|
+
badge?: react.JSX.Element;
|
|
2939
2939
|
children?: react.ReactNode;
|
|
2940
2940
|
command?: react.ReactNode;
|
|
2941
2941
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -3175,7 +3175,7 @@ declare const ModalCallouts: {
|
|
|
3175
3175
|
};
|
|
3176
3176
|
type ModalCalloutProps = {
|
|
3177
3177
|
title: string;
|
|
3178
|
-
image: JSX
|
|
3178
|
+
image: JSX.Element;
|
|
3179
3179
|
/**
|
|
3180
3180
|
* The content to be displayed in the modal callout.
|
|
3181
3181
|
*/
|
|
@@ -3223,7 +3223,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
3223
3223
|
/**
|
|
3224
3224
|
* An interactive element. Most commonly a [Button](?path=/docs/components-button--docs) or [IconButton]([Button](?path=/docs/components-iconbutton--docs)).
|
|
3225
3225
|
*/
|
|
3226
|
-
trigger: JSX
|
|
3226
|
+
trigger: JSX.Element;
|
|
3227
3227
|
/**
|
|
3228
3228
|
* If true, the popover will use the unstyled Content component instead of StyledContent
|
|
3229
3229
|
*/
|
|
@@ -3242,7 +3242,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
3242
3242
|
* Displays rich content in a portal, triggered by a button.
|
|
3243
3243
|
*/
|
|
3244
3244
|
declare const Popover: {
|
|
3245
|
-
({ 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;
|
|
3246
3246
|
displayName: string;
|
|
3247
3247
|
};
|
|
3248
3248
|
|
|
@@ -3272,7 +3272,7 @@ type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
3272
3272
|
* A progress component that visually represents the completion status of a task
|
|
3273
3273
|
*/
|
|
3274
3274
|
declare const ProgressBar: {
|
|
3275
|
-
({ progress, max, children, labelLeft, labelRight, colorScheme, ...props }: ProgressBarProps): JSX
|
|
3275
|
+
({ progress, max, children, labelLeft, labelRight, colorScheme, ...props }: ProgressBarProps): JSX.Element;
|
|
3276
3276
|
displayName: string;
|
|
3277
3277
|
};
|
|
3278
3278
|
|
|
@@ -3384,7 +3384,7 @@ type RadioCardDefaultLayoutProps = {
|
|
|
3384
3384
|
/**
|
|
3385
3385
|
* The icon to display
|
|
3386
3386
|
*/
|
|
3387
|
-
icon?: JSX
|
|
3387
|
+
icon?: JSX.Element | undefined;
|
|
3388
3388
|
/**
|
|
3389
3389
|
* The main label text for the card.
|
|
3390
3390
|
*
|
|
@@ -3607,7 +3607,7 @@ type IconWithLabel$1 = {
|
|
|
3607
3607
|
/**
|
|
3608
3608
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3609
3609
|
*/
|
|
3610
|
-
icon?: JSX
|
|
3610
|
+
icon?: JSX.Element;
|
|
3611
3611
|
/**
|
|
3612
3612
|
* The label of the item
|
|
3613
3613
|
*/
|
|
@@ -3618,7 +3618,7 @@ type IconWithAriaLabel$1 = {
|
|
|
3618
3618
|
/**
|
|
3619
3619
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3620
3620
|
*/
|
|
3621
|
-
icon?: JSX
|
|
3621
|
+
icon?: JSX.Element;
|
|
3622
3622
|
/**
|
|
3623
3623
|
* Use this when displaying an icon without a label
|
|
3624
3624
|
*/
|
|
@@ -3775,7 +3775,7 @@ type SliderProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> & {
|
|
|
3775
3775
|
value?: number[];
|
|
3776
3776
|
};
|
|
3777
3777
|
declare const Slider: {
|
|
3778
|
-
({ "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;
|
|
3779
3779
|
displayName: string;
|
|
3780
3780
|
};
|
|
3781
3781
|
|
|
@@ -3915,23 +3915,23 @@ declare const Switch: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
|
|
|
3915
3915
|
type TableBodyProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3916
3916
|
children?: ReactNode;
|
|
3917
3917
|
};
|
|
3918
|
-
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX
|
|
3918
|
+
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX.Element;
|
|
3919
3919
|
|
|
3920
3920
|
type CellAttrs = Omit<react__default.TdHTMLAttributes<HTMLTableCellElement>, 'ref'> & Omit<react__default.ThHTMLAttributes<HTMLTableCellElement>, 'ref'>;
|
|
3921
3921
|
type TableCellProps = CellAttrs & {
|
|
3922
3922
|
children?: ReactNode;
|
|
3923
3923
|
};
|
|
3924
|
-
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX
|
|
3924
|
+
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX.Element;
|
|
3925
3925
|
|
|
3926
3926
|
type TableFootProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3927
3927
|
children?: ReactNode;
|
|
3928
3928
|
};
|
|
3929
|
-
declare const TableFoot: ({ children, ...props }: TableFootProps) => JSX
|
|
3929
|
+
declare const TableFoot: ({ children, ...props }: TableFootProps) => JSX.Element;
|
|
3930
3930
|
|
|
3931
3931
|
type TableHeadProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3932
3932
|
children?: ReactNode;
|
|
3933
3933
|
};
|
|
3934
|
-
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX
|
|
3934
|
+
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX.Element;
|
|
3935
3935
|
|
|
3936
3936
|
type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
3937
3937
|
/**
|
|
@@ -3956,22 +3956,22 @@ type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
|
3956
3956
|
/**
|
|
3957
3957
|
* Semantic table element for presenting data
|
|
3958
3958
|
*/
|
|
3959
|
-
declare const Table: ({ children, divided, striped, visuallyHiddenHeader, ...props }: TableProps) => JSX
|
|
3959
|
+
declare const Table: ({ children, divided, striped, visuallyHiddenHeader, ...props }: TableProps) => JSX.Element;
|
|
3960
3960
|
|
|
3961
3961
|
type TableRowProps = HTMLAttributes<HTMLTableRowElement> & {
|
|
3962
3962
|
children?: ReactNode;
|
|
3963
3963
|
};
|
|
3964
|
-
declare const TableRow: ({ children, ...props }: TableRowProps) => JSX
|
|
3964
|
+
declare const TableRow: ({ children, ...props }: TableRowProps) => JSX.Element;
|
|
3965
3965
|
|
|
3966
3966
|
type TabsProps = Pick<TabsProps$1, 'children' | 'defaultValue' | 'onValueChange' | 'value'>;
|
|
3967
3967
|
declare const Tabs: {
|
|
3968
|
-
({ children, value: valueProp, onValueChange: onValueChangeProp, defaultValue, ...props }: TabsProps): JSX
|
|
3968
|
+
({ children, value: valueProp, onValueChange: onValueChangeProp, defaultValue, ...props }: TabsProps): JSX.Element;
|
|
3969
3969
|
displayName: string;
|
|
3970
3970
|
};
|
|
3971
3971
|
|
|
3972
3972
|
type TabsContentProps = Pick<TabsContentProps$1, 'children' | 'value'>;
|
|
3973
3973
|
declare const TabsContent: {
|
|
3974
|
-
({ children, value }: TabsContentProps): JSX
|
|
3974
|
+
({ children, value }: TabsContentProps): JSX.Element;
|
|
3975
3975
|
displayName: string;
|
|
3976
3976
|
};
|
|
3977
3977
|
|
|
@@ -3979,7 +3979,7 @@ type TabsListProps = Pick<TabsListProps$1, 'aria-label'> & PropsWithChildren<{
|
|
|
3979
3979
|
fullWidth?: boolean;
|
|
3980
3980
|
}>;
|
|
3981
3981
|
declare const TabsList: {
|
|
3982
|
-
({ children, fullWidth, ...props }: TabsListProps): JSX
|
|
3982
|
+
({ children, fullWidth, ...props }: TabsListProps): JSX.Element;
|
|
3983
3983
|
displayName: string;
|
|
3984
3984
|
};
|
|
3985
3985
|
|
|
@@ -3988,7 +3988,7 @@ type IconWithLabel = {
|
|
|
3988
3988
|
/**
|
|
3989
3989
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3990
3990
|
*/
|
|
3991
|
-
icon?: JSX
|
|
3991
|
+
icon?: JSX.Element;
|
|
3992
3992
|
/**
|
|
3993
3993
|
* The label of the item
|
|
3994
3994
|
*/
|
|
@@ -3999,7 +3999,7 @@ type IconWithAriaLabel = {
|
|
|
3999
3999
|
/**
|
|
4000
4000
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
4001
4001
|
*/
|
|
4002
|
-
icon?: JSX
|
|
4002
|
+
icon?: JSX.Element;
|
|
4003
4003
|
/**
|
|
4004
4004
|
* Use this when displaying an icon without a label
|
|
4005
4005
|
*/
|
|
@@ -4029,7 +4029,7 @@ type TagProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
4029
4029
|
/**
|
|
4030
4030
|
* Optional icon to display before the label
|
|
4031
4031
|
*/
|
|
4032
|
-
icon?: JSX
|
|
4032
|
+
icon?: JSX.Element | undefined;
|
|
4033
4033
|
/**
|
|
4034
4034
|
* Text label for the `Tag`
|
|
4035
4035
|
*/
|
|
@@ -4058,7 +4058,7 @@ declare const Tag: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<
|
|
|
4058
4058
|
/**
|
|
4059
4059
|
* Optional icon to display before the label
|
|
4060
4060
|
*/
|
|
4061
|
-
icon?: JSX
|
|
4061
|
+
icon?: JSX.Element | undefined;
|
|
4062
4062
|
/**
|
|
4063
4063
|
* Text label for the `Tag`
|
|
4064
4064
|
*/
|
|
@@ -4077,14 +4077,14 @@ type ThumbnailBadgeProps = {
|
|
|
4077
4077
|
/**
|
|
4078
4078
|
* Icon to display on the left side of the badge
|
|
4079
4079
|
*/
|
|
4080
|
-
icon?: JSX
|
|
4080
|
+
icon?: JSX.Element | undefined;
|
|
4081
4081
|
/**
|
|
4082
4082
|
* Text content to display in the badge
|
|
4083
4083
|
*/
|
|
4084
4084
|
label: string;
|
|
4085
4085
|
};
|
|
4086
4086
|
declare const ThumbnailBadge: {
|
|
4087
|
-
({ icon, label, ...props }: ThumbnailBadgeProps): JSX
|
|
4087
|
+
({ icon, label, ...props }: ThumbnailBadgeProps): JSX.Element;
|
|
4088
4088
|
displayName: string;
|
|
4089
4089
|
};
|
|
4090
4090
|
|
|
@@ -4202,7 +4202,7 @@ type ThumbnailCollageProps = {
|
|
|
4202
4202
|
* It supports up to 3 thumbnails arranged in different configurations based on the number of children provided.
|
|
4203
4203
|
* If no thumbnails are provided, it displays a fallback thumbnail with a gradient background.
|
|
4204
4204
|
*/
|
|
4205
|
-
declare const ThumbnailCollage: ({ children, gradientBackground, ...props }: ThumbnailCollageProps) => JSX
|
|
4205
|
+
declare const ThumbnailCollage: ({ children, gradientBackground, ...props }: ThumbnailCollageProps) => JSX.Element;
|
|
4206
4206
|
|
|
4207
4207
|
type TooltipProps = {
|
|
4208
4208
|
/**
|
|
@@ -4243,7 +4243,7 @@ type TooltipProps = {
|
|
|
4243
4243
|
*
|
|
4244
4244
|
*/
|
|
4245
4245
|
declare const Tooltip: {
|
|
4246
|
-
({ delay, direction, content, children, forceOpen, hideArrow, container, }: TooltipProps): JSX
|
|
4246
|
+
({ delay, direction, content, children, forceOpen, hideArrow, container, }: TooltipProps): JSX.Element;
|
|
4247
4247
|
displayName: string;
|
|
4248
4248
|
};
|
|
4249
4249
|
|
|
@@ -4302,7 +4302,7 @@ type SplitButtonProps = {
|
|
|
4302
4302
|
* The icon to use for the menu toggle, defaults to a down caret
|
|
4303
4303
|
* @default <Icon type="caret-down" />
|
|
4304
4304
|
*/
|
|
4305
|
-
menuIcon?: JSX
|
|
4305
|
+
menuIcon?: JSX.Element;
|
|
4306
4306
|
/**
|
|
4307
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.
|
|
4308
4308
|
*/
|
|
@@ -4318,7 +4318,7 @@ type SplitButtonProps = {
|
|
|
4318
4318
|
/**
|
|
4319
4319
|
* Secondary action should not be used when menuItems is set
|
|
4320
4320
|
*/
|
|
4321
|
-
secondaryAction?: JSX
|
|
4321
|
+
secondaryAction?: JSX.Element;
|
|
4322
4322
|
/**
|
|
4323
4323
|
* The size of button to display. Can be used as a [responsive prop](/docs/ui-docs-responsive-props--docs)
|
|
4324
4324
|
*/
|
|
@@ -4332,7 +4332,7 @@ type SplitButtonProps = {
|
|
|
4332
4332
|
* A SplitButton is an extension of [Button]() that adds a menu to the right hand side of the button.
|
|
4333
4333
|
*/
|
|
4334
4334
|
declare const SplitButton: {
|
|
4335
|
-
({ 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;
|
|
4336
4336
|
displayName: string;
|
|
4337
4337
|
};
|
|
4338
4338
|
|