@wistia/ui 0.14.36 → 0.14.37-beta.82ee8b9b.f3a4bf4
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 +203 -124
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +185 -141
- package/dist/index.d.ts +185 -141
- package/dist/index.mjs +90 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
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, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, PropsWithChildren, ReactElement, InputHTMLAttributes, Ref, SyntheticEvent, HTMLAttributes, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
import react__default, { ReactNode, LegacyRef, MutableRefObject, RefCallback, Dispatch, SetStateAction, RefObject, ComponentPropsWithoutRef, JSX as JSX$1, 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 * as react_router from 'react-router';
|
|
@@ -192,7 +192,7 @@ type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
192
192
|
* A wrapper to apply a color scheme to its children.
|
|
193
193
|
*/
|
|
194
194
|
declare const ColorSchemeWrapper: {
|
|
195
|
-
({ __nav, colorScheme, children, ...props }: ColorSchemeWrapperProps): JSX.Element;
|
|
195
|
+
({ __nav, colorScheme, children, ...props }: ColorSchemeWrapperProps): JSX$1.Element;
|
|
196
196
|
displayName: string;
|
|
197
197
|
};
|
|
198
198
|
|
|
@@ -220,13 +220,13 @@ type BaseProps$2 = {
|
|
|
220
220
|
*/
|
|
221
221
|
disabled?: boolean;
|
|
222
222
|
/**
|
|
223
|
-
* Icon to display on the left side of the link
|
|
223
|
+
* Icon to display on the left side of the link. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
224
224
|
*/
|
|
225
|
-
leftIcon?:
|
|
225
|
+
leftIcon?: ReactNode | undefined;
|
|
226
226
|
/**
|
|
227
|
-
* Icon to display on the right side of the link
|
|
227
|
+
* Icon to display on the right side of the link. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
228
228
|
*/
|
|
229
|
-
rightIcon?:
|
|
229
|
+
rightIcon?: ReactNode | undefined;
|
|
230
230
|
/**
|
|
231
231
|
* Type of link to display
|
|
232
232
|
*
|
|
@@ -292,9 +292,9 @@ type BaseButtonProps = {
|
|
|
292
292
|
*/
|
|
293
293
|
isLoading?: boolean;
|
|
294
294
|
/**
|
|
295
|
-
* Icon to display on the left side of the button
|
|
295
|
+
* Icon to display on the left side of the button. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
296
296
|
*/
|
|
297
|
-
leftIcon?:
|
|
297
|
+
leftIcon?: ReactNode | undefined;
|
|
298
298
|
/**
|
|
299
299
|
* Callback function invoked when the button is clicked
|
|
300
300
|
*
|
|
@@ -315,11 +315,11 @@ type BaseButtonProps = {
|
|
|
315
315
|
/**
|
|
316
316
|
* Provides a button without any styling (useful for wrapping another element)
|
|
317
317
|
*/
|
|
318
|
-
unstyled?: boolean;
|
|
318
|
+
unstyled?: boolean | undefined;
|
|
319
319
|
/**
|
|
320
|
-
* Icon to display on the right side of the button
|
|
320
|
+
* Icon to display on the right side of the button. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
321
321
|
*/
|
|
322
|
-
rightIcon?:
|
|
322
|
+
rightIcon?: ReactNode | undefined;
|
|
323
323
|
/**
|
|
324
324
|
* The size of button to display. Can be used as a [responsive prop](/docs/ui-docs-responsive-props--docs)
|
|
325
325
|
*/
|
|
@@ -365,8 +365,8 @@ declare const Button: react.ForwardRefExoticComponent<(Omit<BaseButtonProps & Om
|
|
|
365
365
|
children: ReactNode;
|
|
366
366
|
colorScheme?: ColorSchemeTypes;
|
|
367
367
|
disabled?: boolean;
|
|
368
|
-
leftIcon?:
|
|
369
|
-
rightIcon?:
|
|
368
|
+
leftIcon?: ReactNode | undefined;
|
|
369
|
+
rightIcon?: ReactNode | undefined;
|
|
370
370
|
type?: LinkTypes | undefined;
|
|
371
371
|
underline?: "always" | "hover" | "none";
|
|
372
372
|
} & Omit<react_router.LinkProps, "to"> & {
|
|
@@ -392,8 +392,8 @@ declare const Button: react.ForwardRefExoticComponent<(Omit<BaseButtonProps & Om
|
|
|
392
392
|
children: ReactNode;
|
|
393
393
|
colorScheme?: ColorSchemeTypes;
|
|
394
394
|
disabled?: boolean;
|
|
395
|
-
leftIcon?:
|
|
396
|
-
rightIcon?:
|
|
395
|
+
leftIcon?: ReactNode | undefined;
|
|
396
|
+
rightIcon?: ReactNode | undefined;
|
|
397
397
|
type?: LinkTypes | undefined;
|
|
398
398
|
underline?: "always" | "hover" | "none";
|
|
399
399
|
} & Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
@@ -428,11 +428,11 @@ type ToastProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
428
428
|
/**
|
|
429
429
|
* Optional `Icon` component to use. Must be an instance of [Icon](/?path=/docs/components-icon--docs)
|
|
430
430
|
*/
|
|
431
|
-
icon?: JSX.Element | undefined;
|
|
431
|
+
icon?: JSX$1.Element | undefined;
|
|
432
432
|
/**
|
|
433
433
|
* The message displayed in the toast
|
|
434
434
|
*/
|
|
435
|
-
message:
|
|
435
|
+
message: ReactNode;
|
|
436
436
|
};
|
|
437
437
|
|
|
438
438
|
type Position = 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right';
|
|
@@ -457,7 +457,7 @@ type ActionButtonProps = {
|
|
|
457
457
|
/**
|
|
458
458
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
459
459
|
*/
|
|
460
|
-
icon: JSX.Element;
|
|
460
|
+
icon: JSX$1.Element;
|
|
461
461
|
/**
|
|
462
462
|
* @override
|
|
463
463
|
* Disables the button
|
|
@@ -485,7 +485,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
485
485
|
/**
|
|
486
486
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
487
487
|
*/
|
|
488
|
-
icon: JSX.Element;
|
|
488
|
+
icon: JSX$1.Element;
|
|
489
489
|
/**
|
|
490
490
|
* @override
|
|
491
491
|
* Disables the button
|
|
@@ -509,7 +509,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
509
509
|
/**
|
|
510
510
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
511
511
|
*/
|
|
512
|
-
icon: JSX.Element;
|
|
512
|
+
icon: JSX$1.Element;
|
|
513
513
|
/**
|
|
514
514
|
* @override
|
|
515
515
|
* Disables the button
|
|
@@ -560,7 +560,7 @@ type AvatarProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
560
560
|
* An avatar uses a photo or initials to represent an identity.
|
|
561
561
|
*/
|
|
562
562
|
declare const Avatar: {
|
|
563
|
-
({ imageUrl, heightAndWidth, name, size, onImageLoad, ...props }: AvatarProps): JSX.Element;
|
|
563
|
+
({ imageUrl, heightAndWidth, name, size, onImageLoad, ...props }: AvatarProps): JSX$1.Element;
|
|
564
564
|
displayName: string;
|
|
565
565
|
};
|
|
566
566
|
|
|
@@ -571,9 +571,9 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
571
571
|
*/
|
|
572
572
|
colorScheme?: ColorSchemeTypes;
|
|
573
573
|
/**
|
|
574
|
-
*
|
|
574
|
+
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
575
575
|
*/
|
|
576
|
-
icon?: JSX.Element;
|
|
576
|
+
icon?: JSX$1.Element;
|
|
577
577
|
/**
|
|
578
578
|
* The text to display in the `Badge`
|
|
579
579
|
*/
|
|
@@ -592,9 +592,9 @@ declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProp
|
|
|
592
592
|
*/
|
|
593
593
|
colorScheme?: ColorSchemeTypes;
|
|
594
594
|
/**
|
|
595
|
-
*
|
|
595
|
+
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
596
596
|
*/
|
|
597
|
-
icon?: JSX.Element;
|
|
597
|
+
icon?: JSX$1.Element;
|
|
598
598
|
/**
|
|
599
599
|
* The text to display in the `Badge`
|
|
600
600
|
*/
|
|
@@ -615,9 +615,9 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
615
615
|
*/
|
|
616
616
|
headingText?: string;
|
|
617
617
|
/**
|
|
618
|
-
* Optional
|
|
618
|
+
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
619
619
|
*/
|
|
620
|
-
icon?:
|
|
620
|
+
icon?: JSX$1.Element;
|
|
621
621
|
/**
|
|
622
622
|
* Controls the visual prominence of the banner
|
|
623
623
|
*/
|
|
@@ -626,7 +626,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
626
626
|
/**
|
|
627
627
|
* Optional image element to display in the banner
|
|
628
628
|
*/
|
|
629
|
-
image?: JSX.Element;
|
|
629
|
+
image?: JSX$1.Element | undefined;
|
|
630
630
|
/**
|
|
631
631
|
* Controls the layout direction. If set to 'auto', the banner will switch between horizontal and vertical based on the container width.
|
|
632
632
|
*/
|
|
@@ -648,7 +648,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
648
648
|
* The `Banner` component is for displaying contextual information to the user such as alerts or feature announcements.
|
|
649
649
|
*/
|
|
650
650
|
declare const Banner: {
|
|
651
|
-
({ bodyText, colorScheme, headingText, icon, image, onClose, orientation, primaryAction, prominence, secondaryAction, ...props }: BannerProps): JSX.Element;
|
|
651
|
+
({ bodyText, colorScheme, headingText, icon, image, onClose, orientation, primaryAction, prominence, secondaryAction, ...props }: BannerProps): JSX$1.Element;
|
|
652
652
|
displayName: string;
|
|
653
653
|
};
|
|
654
654
|
|
|
@@ -859,7 +859,7 @@ type BreadcrumbsProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
859
859
|
* [Button](?path=/docs/components-button--docs). See it's documentation for additional functionality.
|
|
860
860
|
*/
|
|
861
861
|
declare const Breadcrumbs: {
|
|
862
|
-
({ children, ...props }: BreadcrumbsProps): JSX.Element;
|
|
862
|
+
({ children, ...props }: BreadcrumbsProps): JSX$1.Element;
|
|
863
863
|
displayName: string;
|
|
864
864
|
};
|
|
865
865
|
|
|
@@ -908,7 +908,7 @@ type ButtonGroupProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
908
908
|
* with a standardized gap between them.
|
|
909
909
|
*/
|
|
910
910
|
declare const ButtonGroup: {
|
|
911
|
-
({ children, align, fullWidth, collapseOnSmallScreens, buttonSize, ...props }: ButtonGroupProps): JSX.Element | null;
|
|
911
|
+
({ children, align, fullWidth, collapseOnSmallScreens, buttonSize, ...props }: ButtonGroupProps): JSX$1.Element | null;
|
|
912
912
|
displayName: string;
|
|
913
913
|
};
|
|
914
914
|
|
|
@@ -1013,7 +1013,7 @@ type CardProps = BoxProps & ComponentPropsWithoutRef<'div'> & {
|
|
|
1013
1013
|
* 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)
|
|
1014
1014
|
*/
|
|
1015
1015
|
declare const Card: {
|
|
1016
|
-
({ children, border, borderRadius, colorScheme, direction, gap, height, paddingSize, prominence, width, ...props }: CardProps): JSX.Element;
|
|
1016
|
+
({ children, border, borderRadius, colorScheme, direction, gap, height, paddingSize, prominence, width, ...props }: CardProps): JSX$1.Element;
|
|
1017
1017
|
displayName: string;
|
|
1018
1018
|
};
|
|
1019
1019
|
|
|
@@ -1075,11 +1075,11 @@ declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.Detailed
|
|
|
1075
1075
|
/**
|
|
1076
1076
|
* The label for the checkbox
|
|
1077
1077
|
*/
|
|
1078
|
-
label:
|
|
1078
|
+
label: ReactNode;
|
|
1079
1079
|
/**
|
|
1080
1080
|
* The description for the checkbox
|
|
1081
1081
|
*/
|
|
1082
|
-
description?:
|
|
1082
|
+
description?: ReactNode | undefined;
|
|
1083
1083
|
/**
|
|
1084
1084
|
* The name of the checkbox. Submitted with its owning form as part of a name/value pair.
|
|
1085
1085
|
*/
|
|
@@ -1110,7 +1110,7 @@ type ClickRegionProps = {
|
|
|
1110
1110
|
/**
|
|
1111
1111
|
* The content that should be clickable.
|
|
1112
1112
|
*/
|
|
1113
|
-
children: JSX.Element;
|
|
1113
|
+
children: JSX$1.Element;
|
|
1114
1114
|
/**
|
|
1115
1115
|
* The ref to the button or link that should be clicked when the ClickRegion is clicked.
|
|
1116
1116
|
*/
|
|
@@ -1127,7 +1127,7 @@ type ClickRegionProps = {
|
|
|
1127
1127
|
* In either case, a link or button must be present, but can be hidden by using `ScreenReaderOnly`.
|
|
1128
1128
|
*/
|
|
1129
1129
|
declare const ClickRegion: {
|
|
1130
|
-
({ children, targetRef }: ClickRegionProps): JSX.Element;
|
|
1130
|
+
({ children, targetRef }: ClickRegionProps): JSX$1.Element;
|
|
1131
1131
|
displayName: string;
|
|
1132
1132
|
};
|
|
1133
1133
|
|
|
@@ -1149,7 +1149,7 @@ type CollapsibleProps = {
|
|
|
1149
1149
|
* Toggle the visibility of content with a trigger.
|
|
1150
1150
|
*/
|
|
1151
1151
|
declare const Collapsible: {
|
|
1152
|
-
({ children, isOpen, onOpenChange, }: CollapsibleProps): JSX.Element;
|
|
1152
|
+
({ children, isOpen, onOpenChange, }: CollapsibleProps): JSX$1.Element;
|
|
1153
1153
|
displayName: string;
|
|
1154
1154
|
};
|
|
1155
1155
|
|
|
@@ -1400,7 +1400,7 @@ type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
|
1400
1400
|
* If you need an interactive element, use IconButton.
|
|
1401
1401
|
*/
|
|
1402
1402
|
declare const Icon: {
|
|
1403
|
-
({ useInlineStyles, invertColor, colorScheme, size, style, type, ...props }: IconProps): JSX.Element;
|
|
1403
|
+
({ useInlineStyles, invertColor, colorScheme, size, style, type, ...props }: IconProps): JSX$1.Element;
|
|
1404
1404
|
displayName: string;
|
|
1405
1405
|
};
|
|
1406
1406
|
|
|
@@ -1428,7 +1428,7 @@ type ColorGridProps = PropsWithChildren & {
|
|
|
1428
1428
|
label?: string;
|
|
1429
1429
|
};
|
|
1430
1430
|
declare const ColorGrid: {
|
|
1431
|
-
({ children, label }: ColorGridProps): JSX.Element;
|
|
1431
|
+
({ children, label }: ColorGridProps): JSX$1.Element;
|
|
1432
1432
|
displayName: string;
|
|
1433
1433
|
};
|
|
1434
1434
|
|
|
@@ -1445,13 +1445,13 @@ type ColorPickerOption = {
|
|
|
1445
1445
|
|
|
1446
1446
|
type ColorGridOptionProps = ColorPickerOption;
|
|
1447
1447
|
declare const ColorGridOption: {
|
|
1448
|
-
({ value: rawValue, name }: ColorGridOptionProps): JSX.Element;
|
|
1448
|
+
({ value: rawValue, name }: ColorGridOptionProps): JSX$1.Element;
|
|
1449
1449
|
displayName: string;
|
|
1450
1450
|
};
|
|
1451
1451
|
|
|
1452
1452
|
type ColorListProps = PropsWithChildren;
|
|
1453
1453
|
declare const ColorList: {
|
|
1454
|
-
({ children }: ColorListProps): JSX.Element;
|
|
1454
|
+
({ children }: ColorListProps): JSX$1.Element;
|
|
1455
1455
|
displayName: string;
|
|
1456
1456
|
};
|
|
1457
1457
|
|
|
@@ -1459,13 +1459,13 @@ type ColorListGroupProps = PropsWithChildren<{
|
|
|
1459
1459
|
label: string;
|
|
1460
1460
|
}>;
|
|
1461
1461
|
declare const ColorListGroup: {
|
|
1462
|
-
({ label, children }: ColorListGroupProps): JSX.Element;
|
|
1462
|
+
({ label, children }: ColorListGroupProps): JSX$1.Element;
|
|
1463
1463
|
displayName: string;
|
|
1464
1464
|
};
|
|
1465
1465
|
|
|
1466
1466
|
type ColorListOptionProps = ColorPickerOption;
|
|
1467
1467
|
declare const ColorListOption: {
|
|
1468
|
-
({ value: rawValue, name }: ColorListOptionProps): JSX.Element;
|
|
1468
|
+
({ value: rawValue, name }: ColorListOptionProps): JSX$1.Element;
|
|
1469
1469
|
displayName: string;
|
|
1470
1470
|
};
|
|
1471
1471
|
|
|
@@ -1498,19 +1498,19 @@ type ColorPickerProps = PropsWithChildren<{
|
|
|
1498
1498
|
* subcomponents.
|
|
1499
1499
|
*/
|
|
1500
1500
|
declare const ColorPicker: {
|
|
1501
|
-
({ children, colorForComparison, minimumContrastRatio, opacityForContrastCalculation, onValueChange, value, }: ColorPickerProps): JSX.Element;
|
|
1501
|
+
({ children, colorForComparison, minimumContrastRatio, opacityForContrastCalculation, onValueChange, value, }: ColorPickerProps): JSX$1.Element;
|
|
1502
1502
|
displayName: string;
|
|
1503
1503
|
};
|
|
1504
1504
|
|
|
1505
1505
|
type ColorPickerPopoverContentProps = PropsWithChildren;
|
|
1506
1506
|
declare const ColorPickerPopoverContent: {
|
|
1507
|
-
({ children, }: ColorPickerPopoverContentProps): JSX.Element;
|
|
1507
|
+
({ children, }: ColorPickerPopoverContentProps): JSX$1.Element;
|
|
1508
1508
|
displayName: string;
|
|
1509
1509
|
};
|
|
1510
1510
|
|
|
1511
1511
|
type ColorPickerSectionProps = PropsWithChildren;
|
|
1512
1512
|
declare const ColorPickerSection: {
|
|
1513
|
-
({ children }: ColorPickerSectionProps): JSX.Element;
|
|
1513
|
+
({ children }: ColorPickerSectionProps): JSX$1.Element;
|
|
1514
1514
|
displayName: string;
|
|
1515
1515
|
};
|
|
1516
1516
|
|
|
@@ -1520,7 +1520,7 @@ declare const ColorPickerTrigger: react.ForwardRefExoticComponent<{
|
|
|
1520
1520
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1521
1521
|
|
|
1522
1522
|
declare const ContrastControls: {
|
|
1523
|
-
(): JSX.Element;
|
|
1523
|
+
(): JSX$1.Element;
|
|
1524
1524
|
displayName: string;
|
|
1525
1525
|
};
|
|
1526
1526
|
|
|
@@ -1531,12 +1531,12 @@ type HexColorInputProps = {
|
|
|
1531
1531
|
autoFocus?: boolean;
|
|
1532
1532
|
};
|
|
1533
1533
|
declare const HexColorInput: {
|
|
1534
|
-
({ autoFocus }: HexColorInputProps): JSX.Element;
|
|
1534
|
+
({ autoFocus }: HexColorInputProps): JSX$1.Element;
|
|
1535
1535
|
displayName: string;
|
|
1536
1536
|
};
|
|
1537
1537
|
|
|
1538
1538
|
declare const HueSlider: {
|
|
1539
|
-
(): JSX.Element;
|
|
1539
|
+
(): JSX$1.Element;
|
|
1540
1540
|
displayName: string;
|
|
1541
1541
|
};
|
|
1542
1542
|
|
|
@@ -1544,17 +1544,17 @@ type SaturationAndValuePickerProps = {
|
|
|
1544
1544
|
dataTestId?: string;
|
|
1545
1545
|
};
|
|
1546
1546
|
declare const SaturationAndValuePicker: {
|
|
1547
|
-
({ dataTestId, }: SaturationAndValuePickerProps): JSX.Element;
|
|
1547
|
+
({ dataTestId, }: SaturationAndValuePickerProps): JSX$1.Element;
|
|
1548
1548
|
displayName: string;
|
|
1549
1549
|
};
|
|
1550
1550
|
|
|
1551
1551
|
declare const ValueNameOrHexCode: {
|
|
1552
|
-
(): JSX.Element;
|
|
1552
|
+
(): JSX$1.Element;
|
|
1553
1553
|
displayName: string;
|
|
1554
1554
|
};
|
|
1555
1555
|
|
|
1556
1556
|
declare const ValueSwatch: {
|
|
1557
|
-
(): JSX.Element;
|
|
1557
|
+
(): JSX$1.Element;
|
|
1558
1558
|
displayName: string;
|
|
1559
1559
|
};
|
|
1560
1560
|
|
|
@@ -1581,7 +1581,7 @@ type ComboboxProps = {
|
|
|
1581
1581
|
/**
|
|
1582
1582
|
* Function to render the selected values. Receives the selected values and a function to remove a value.
|
|
1583
1583
|
*/
|
|
1584
|
-
displayValues?: (values: string[], onRemove: (value: string) => void) => ReactNode;
|
|
1584
|
+
displayValues?: (values: string[] | string, onRemove: (value: string) => void) => ReactNode;
|
|
1585
1585
|
/**
|
|
1586
1586
|
* The placeholder text for the combobox input
|
|
1587
1587
|
*/
|
|
@@ -1597,11 +1597,11 @@ type ComboboxProps = {
|
|
|
1597
1597
|
/**
|
|
1598
1598
|
* Callback that fires when a value is selected
|
|
1599
1599
|
*/
|
|
1600
|
-
onChange: (value: string[]) => void;
|
|
1600
|
+
onChange: (value: string[] | string) => void;
|
|
1601
1601
|
/**
|
|
1602
1602
|
* The selected values of the combobox
|
|
1603
1603
|
*/
|
|
1604
|
-
value: string[];
|
|
1604
|
+
value: string[] | string;
|
|
1605
1605
|
};
|
|
1606
1606
|
declare const Combobox: ({ placeholder, value, onChange, searchValue, onSearchValueChange, displayValues, children, fullWidth, }: ComboboxProps) => react_jsx_runtime.JSX.Element;
|
|
1607
1607
|
|
|
@@ -1656,7 +1656,7 @@ type DataCardProps = ComponentPropsWithoutRef<'div'> & Partial<Pick<ButtonAsLink
|
|
|
1656
1656
|
/**
|
|
1657
1657
|
* Optional trend arrow to display below the value. Use the `DataCardTrend` component to create this.
|
|
1658
1658
|
*/
|
|
1659
|
-
trend?:
|
|
1659
|
+
trend?: ReactNode;
|
|
1660
1660
|
/**
|
|
1661
1661
|
* Optional subtitle text to display below the value
|
|
1662
1662
|
*/
|
|
@@ -1685,7 +1685,7 @@ type DataCardsProps = ComponentPropsWithoutRef<'dl'> & {
|
|
|
1685
1685
|
* Displays a series of cards tailor made for displaying analytics data
|
|
1686
1686
|
*/
|
|
1687
1687
|
declare const DataCards: {
|
|
1688
|
-
({ children, cardMaxWidth, colorScheme, ...props }: DataCardsProps): JSX.Element;
|
|
1688
|
+
({ children, cardMaxWidth, colorScheme, ...props }: DataCardsProps): JSX$1.Element;
|
|
1689
1689
|
displayName: string;
|
|
1690
1690
|
};
|
|
1691
1691
|
|
|
@@ -1701,9 +1701,9 @@ type DataCardTrendProps = {
|
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Content to display next to the trend arrow
|
|
1703
1703
|
*/
|
|
1704
|
-
children: JSX.Element | string;
|
|
1704
|
+
children: JSX$1.Element | string;
|
|
1705
1705
|
};
|
|
1706
|
-
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
|
|
1706
|
+
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX$1.Element;
|
|
1707
1707
|
|
|
1708
1708
|
declare const DataCardHoverArrow: {
|
|
1709
1709
|
(): react_jsx_runtime.JSX.Element;
|
|
@@ -1732,7 +1732,7 @@ type DataListProps = ComponentPropsWithoutRef<'dl'> & {
|
|
|
1732
1732
|
* The DataList component is used to display a list of items with labels and values.
|
|
1733
1733
|
*/
|
|
1734
1734
|
declare const DataList: {
|
|
1735
|
-
({ children, valueAlignment, labelMaxWith, labelProminence, ...props }: DataListProps): JSX.Element;
|
|
1735
|
+
({ children, valueAlignment, labelMaxWith, labelProminence, ...props }: DataListProps): JSX$1.Element;
|
|
1736
1736
|
displayName: string;
|
|
1737
1737
|
};
|
|
1738
1738
|
|
|
@@ -1821,7 +1821,7 @@ declare const Text: (<C extends ElementType = "p">(props: PolymorphicComponentPr
|
|
|
1821
1821
|
* The label of the `DataListItem`. Extends the [Text]() component.
|
|
1822
1822
|
*/
|
|
1823
1823
|
declare const DataListItemLabel: {
|
|
1824
|
-
(props: TextProps): JSX.Element;
|
|
1824
|
+
(props: TextProps): JSX$1.Element;
|
|
1825
1825
|
displayName: string;
|
|
1826
1826
|
};
|
|
1827
1827
|
|
|
@@ -1829,7 +1829,7 @@ declare const DataListItemLabel: {
|
|
|
1829
1829
|
* The value of the `DataListItem`. Extends the [Text]() component.
|
|
1830
1830
|
*/
|
|
1831
1831
|
declare const DataListItemValue: {
|
|
1832
|
-
(props: TextProps): JSX.Element;
|
|
1832
|
+
(props: TextProps): JSX$1.Element;
|
|
1833
1833
|
displayName: string;
|
|
1834
1834
|
};
|
|
1835
1835
|
|
|
@@ -1843,7 +1843,7 @@ type DividerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1843
1843
|
* A line used to visually separate content; note that dividers have no margin/spacing on their own.
|
|
1844
1844
|
*/
|
|
1845
1845
|
declare const Divider: {
|
|
1846
|
-
({ orientation, ...props }: DividerProps): JSX.Element;
|
|
1846
|
+
({ orientation, ...props }: DividerProps): JSX$1.Element;
|
|
1847
1847
|
displayName: string;
|
|
1848
1848
|
};
|
|
1849
1849
|
|
|
@@ -1952,7 +1952,7 @@ type EditableHeadingProps = {
|
|
|
1952
1952
|
* an accessible button that enables editing mode. The component handles empty values, keyboard
|
|
1953
1953
|
* navigation (Enter to save, Escape to cancel), and provides callbacks for value and state changes.
|
|
1954
1954
|
*/
|
|
1955
|
-
declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, variant, __forceEditing, editingDisabled, }: EditableHeadingProps) => JSX.Element;
|
|
1955
|
+
declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, variant, __forceEditing, editingDisabled, }: EditableHeadingProps) => JSX$1.Element;
|
|
1956
1956
|
|
|
1957
1957
|
declare const typographicVariantStyleMap: {
|
|
1958
1958
|
hero: styled_components.FlattenSimpleInterpolation;
|
|
@@ -2066,7 +2066,7 @@ type EditableTextContextValues = {
|
|
|
2066
2066
|
finalFocusEl: (() => HTMLElement | null) | undefined;
|
|
2067
2067
|
};
|
|
2068
2068
|
declare const EditableTextContext: react.Context<EditableTextContextValues | null>;
|
|
2069
|
-
declare const EditableTextRoot: ({ children, defaultValue, value: controlledValue, onValueChange, onValueCommit, onValueRevert, onEditingChange, typographicVariant, submitMode, readOnly, id, label, placeholder, minLines, maxLines, finalFocusEl, ...props }: EditableTextRootProps) => JSX.Element;
|
|
2069
|
+
declare const EditableTextRoot: ({ children, defaultValue, value: controlledValue, onValueChange, onValueCommit, onValueRevert, onEditingChange, typographicVariant, submitMode, readOnly, id, label, placeholder, minLines, maxLines, finalFocusEl, ...props }: EditableTextRootProps) => JSX$1.Element;
|
|
2070
2070
|
|
|
2071
2071
|
type EditableTextProps = Omit<EditableTextRootProps, 'children'> & {
|
|
2072
2072
|
/**
|
|
@@ -2078,7 +2078,7 @@ type EditableTextProps = Omit<EditableTextRootProps, 'children'> & {
|
|
|
2078
2078
|
* Used for inline editing of text.
|
|
2079
2079
|
*/
|
|
2080
2080
|
declare const EditableText: {
|
|
2081
|
-
({ hideLabel, ...props }: EditableTextProps): JSX.Element;
|
|
2081
|
+
({ hideLabel, ...props }: EditableTextProps): JSX$1.Element;
|
|
2082
2082
|
displayName: string;
|
|
2083
2083
|
};
|
|
2084
2084
|
|
|
@@ -2118,7 +2118,7 @@ type LabelProps = ComponentPropsWithoutRef<'label'> & {
|
|
|
2118
2118
|
* Labels are used to give a title to a form component (eg. Input, Select, etc.)
|
|
2119
2119
|
*/
|
|
2120
2120
|
declare const Label: {
|
|
2121
|
-
({ children, disabled, htmlFor, required, screenReaderOnly, ...props }: LabelProps): JSX.Element;
|
|
2121
|
+
({ children, disabled, htmlFor, required, screenReaderOnly, ...props }: LabelProps): JSX$1.Element;
|
|
2122
2122
|
displayName: string;
|
|
2123
2123
|
};
|
|
2124
2124
|
|
|
@@ -2127,7 +2127,7 @@ declare const EditableTextLabel: ({ ...props }: EditableTextLabelProps) => react
|
|
|
2127
2127
|
|
|
2128
2128
|
declare const EditableTextSubmitButton: ({ children, }: {
|
|
2129
2129
|
children: ReactElement;
|
|
2130
|
-
}) => JSX.Element | null;
|
|
2130
|
+
}) => JSX$1.Element | null;
|
|
2131
2131
|
|
|
2132
2132
|
type EditableTextCancelButtonProps = {
|
|
2133
2133
|
/**
|
|
@@ -2143,7 +2143,7 @@ type EditableTextTriggerProps = {
|
|
|
2143
2143
|
*/
|
|
2144
2144
|
children: ReactElement;
|
|
2145
2145
|
};
|
|
2146
|
-
declare const EditableTextTrigger: ({ children, ...props }: EditableTextTriggerProps) => JSX.Element | null;
|
|
2146
|
+
declare const EditableTextTrigger: ({ children, ...props }: EditableTextTriggerProps) => JSX$1.Element | null;
|
|
2147
2147
|
|
|
2148
2148
|
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
2149
2149
|
/**
|
|
@@ -2167,13 +2167,13 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElemen
|
|
|
2167
2167
|
*/
|
|
2168
2168
|
monospace?: boolean;
|
|
2169
2169
|
/**
|
|
2170
|
-
* Icon to display on the left side of the input
|
|
2170
|
+
* Icon to display on the left side of the input. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2171
2171
|
*/
|
|
2172
|
-
leftIcon?:
|
|
2172
|
+
leftIcon?: ReactNode | undefined;
|
|
2173
2173
|
/**
|
|
2174
|
-
* Icon to display on the right side of the input
|
|
2174
|
+
* Icon to display on the right side of the input. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2175
2175
|
*/
|
|
2176
|
-
rightIcon?:
|
|
2176
|
+
rightIcon?: ReactNode | undefined;
|
|
2177
2177
|
/**
|
|
2178
2178
|
* The type of the input
|
|
2179
2179
|
*/
|
|
@@ -2204,13 +2204,13 @@ declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HT
|
|
|
2204
2204
|
*/
|
|
2205
2205
|
monospace?: boolean;
|
|
2206
2206
|
/**
|
|
2207
|
-
* Icon to display on the left side of the input
|
|
2207
|
+
* Icon to display on the left side of the input. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2208
2208
|
*/
|
|
2209
|
-
leftIcon?:
|
|
2209
|
+
leftIcon?: ReactNode | undefined;
|
|
2210
2210
|
/**
|
|
2211
|
-
* Icon to display on the right side of the input
|
|
2211
|
+
* Icon to display on the right side of the input. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2212
2212
|
*/
|
|
2213
|
-
rightIcon?:
|
|
2213
|
+
rightIcon?: ReactNode | undefined;
|
|
2214
2214
|
/**
|
|
2215
2215
|
* The type of the input
|
|
2216
2216
|
*/
|
|
@@ -2218,7 +2218,7 @@ declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HT
|
|
|
2218
2218
|
} & react.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
2219
2219
|
|
|
2220
2220
|
type EditableTextInputProps = Pick<InputProps, 'autoSelect'>;
|
|
2221
|
-
declare const EditableTextInput: (props: EditableTextInputProps) => JSX.Element | null;
|
|
2221
|
+
declare const EditableTextInput: (props: EditableTextInputProps) => JSX$1.Element | null;
|
|
2222
2222
|
|
|
2223
2223
|
type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
|
|
2224
2224
|
/**
|
|
@@ -2234,7 +2234,7 @@ type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
|
|
|
2234
2234
|
* Truncate text with an ellispsis visble at the end
|
|
2235
2235
|
*/
|
|
2236
2236
|
declare const Ellipsis: {
|
|
2237
|
-
({ children, lines, ...props }: EllipsisProps): JSX.Element;
|
|
2237
|
+
({ children, lines, ...props }: EllipsisProps): JSX$1.Element;
|
|
2238
2238
|
displayName: string;
|
|
2239
2239
|
};
|
|
2240
2240
|
|
|
@@ -2301,7 +2301,7 @@ type FormProps<T> = Omit<ComponentPropsWithoutRef<'form'>, 'action' | 'aria-labe
|
|
|
2301
2301
|
*/
|
|
2302
2302
|
declare const Form: <T>(props: FormProps<T> & {
|
|
2303
2303
|
ref?: Ref<HTMLFormElement>;
|
|
2304
|
-
}) => JSX.Element;
|
|
2304
|
+
}) => JSX$1.Element;
|
|
2305
2305
|
|
|
2306
2306
|
type FormErrorSummaryProps = {
|
|
2307
2307
|
description: string;
|
|
@@ -2312,7 +2312,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2312
2312
|
/**
|
|
2313
2313
|
* This should be a single child that is a valid form field (or can pretend to be one).
|
|
2314
2314
|
*/
|
|
2315
|
-
children: JSX.Element;
|
|
2315
|
+
children: JSX$1.Element;
|
|
2316
2316
|
/**
|
|
2317
2317
|
* Additional descriptive text to display below the form field
|
|
2318
2318
|
*/
|
|
@@ -2346,7 +2346,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2346
2346
|
* FormField is a compound component that combines a label, form control, and optional description and error message.
|
|
2347
2347
|
*/
|
|
2348
2348
|
declare const FormField: {
|
|
2349
|
-
({ children, description, error, id, label, labelPosition, name, value, ...props }: FormFieldProps): JSX.Element;
|
|
2349
|
+
({ children, description, error, id, label, labelPosition, name, value, ...props }: FormFieldProps): JSX$1.Element;
|
|
2350
2350
|
displayName: string;
|
|
2351
2351
|
};
|
|
2352
2352
|
|
|
@@ -2365,7 +2365,7 @@ type FormGroupProps = Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange'> & {
|
|
|
2365
2365
|
* For grouping like form elements together.
|
|
2366
2366
|
*/
|
|
2367
2367
|
declare const FormGroup: {
|
|
2368
|
-
({ children, label, description, ...props }: FormGroupProps): JSX.Element;
|
|
2368
|
+
({ children, label, description, ...props }: FormGroupProps): JSX$1.Element;
|
|
2369
2369
|
displayName: string;
|
|
2370
2370
|
};
|
|
2371
2371
|
|
|
@@ -2378,7 +2378,7 @@ type RadioGroupProps = FormGroupProps & {
|
|
|
2378
2378
|
* For grouping like form elements together. Can serve as a checkbox
|
|
2379
2379
|
*/
|
|
2380
2380
|
declare const RadioGroup: {
|
|
2381
|
-
({ children, name, onChange, value, ...props }: RadioGroupProps): JSX.Element;
|
|
2381
|
+
({ children, name, onChange, value, ...props }: RadioGroupProps): JSX$1.Element;
|
|
2382
2382
|
displayName: string;
|
|
2383
2383
|
};
|
|
2384
2384
|
|
|
@@ -2391,7 +2391,7 @@ type CheckboxGroupProps = FormGroupProps & {
|
|
|
2391
2391
|
* For grouping like form elements together. Can serve as a checkbox
|
|
2392
2392
|
*/
|
|
2393
2393
|
declare const CheckboxGroup: {
|
|
2394
|
-
({ children, name, onChange, value, ...props }: CheckboxGroupProps): JSX.Element;
|
|
2394
|
+
({ children, name, onChange, value, ...props }: CheckboxGroupProps): JSX$1.Element;
|
|
2395
2395
|
displayName: string;
|
|
2396
2396
|
};
|
|
2397
2397
|
|
|
@@ -2434,7 +2434,7 @@ type IconButtonProps = {
|
|
|
2434
2434
|
/**
|
|
2435
2435
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2436
2436
|
*/
|
|
2437
|
-
children: JSX.Element;
|
|
2437
|
+
children: JSX$1.Element;
|
|
2438
2438
|
} & (Omit<ButtonAsButtonProps, 'fullWidth' | 'leftIcon' | 'rightIcon'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'leftIcon' | 'rightIcon'>);
|
|
2439
2439
|
/**
|
|
2440
2440
|
* IconButton behaves like a [Button](?path=/docs/components-button--docs),
|
|
@@ -2448,7 +2448,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
2448
2448
|
/**
|
|
2449
2449
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2450
2450
|
*/
|
|
2451
|
-
children: JSX.Element;
|
|
2451
|
+
children: JSX$1.Element;
|
|
2452
2452
|
} & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
|
|
2453
2453
|
/**
|
|
2454
2454
|
* Accessible text for screen readers.
|
|
@@ -2457,7 +2457,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
2457
2457
|
/**
|
|
2458
2458
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2459
2459
|
*/
|
|
2460
|
-
children: JSX.Element;
|
|
2460
|
+
children: JSX$1.Element;
|
|
2461
2461
|
} & Omit<ButtonAsLinkProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
2462
2462
|
|
|
2463
2463
|
type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
@@ -2504,7 +2504,7 @@ type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
|
2504
2504
|
onError?: (event?: SyntheticEvent<HTMLImageElement>) => void;
|
|
2505
2505
|
};
|
|
2506
2506
|
declare const Image: {
|
|
2507
|
-
({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, onLoad, onError, ...props }: ImageProps): JSX.Element;
|
|
2507
|
+
({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, onLoad, onError, ...props }: ImageProps): JSX$1.Element;
|
|
2508
2508
|
displayName: string;
|
|
2509
2509
|
};
|
|
2510
2510
|
|
|
@@ -2585,7 +2585,7 @@ type KeyboardShortcutProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2585
2585
|
label?: string;
|
|
2586
2586
|
};
|
|
2587
2587
|
declare const KeyboardShortcut: {
|
|
2588
|
-
({ label, keyboardKeys, fullWidth, ...otherProps }: KeyboardShortcutProps): JSX.Element;
|
|
2588
|
+
({ label, keyboardKeys, fullWidth, ...otherProps }: KeyboardShortcutProps): JSX$1.Element;
|
|
2589
2589
|
displayName: string;
|
|
2590
2590
|
};
|
|
2591
2591
|
|
|
@@ -2607,7 +2607,7 @@ type ListProps = ComponentPropsWithoutRef<'ul'> & {
|
|
|
2607
2607
|
variant?: VariantType;
|
|
2608
2608
|
};
|
|
2609
2609
|
declare const List: {
|
|
2610
|
-
({ children, items, variant, ...otherProps }: ListProps): JSX.Element | null;
|
|
2610
|
+
({ children, items, variant, ...otherProps }: ListProps): JSX$1.Element | null;
|
|
2611
2611
|
displayName: string;
|
|
2612
2612
|
};
|
|
2613
2613
|
|
|
@@ -2618,7 +2618,7 @@ type ListItemProps = {
|
|
|
2618
2618
|
children?: ReactNode;
|
|
2619
2619
|
};
|
|
2620
2620
|
declare const ListItem: {
|
|
2621
|
-
({ children }: ListItemProps): JSX.Element | null;
|
|
2621
|
+
({ children }: ListItemProps): JSX$1.Element | null;
|
|
2622
2622
|
displayName: string;
|
|
2623
2623
|
};
|
|
2624
2624
|
|
|
@@ -2631,7 +2631,7 @@ type MarkProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2631
2631
|
* Defines text that should be marked or highlighted.
|
|
2632
2632
|
*/
|
|
2633
2633
|
declare const Mark: {
|
|
2634
|
-
({ children, colorScheme, ...props }: MarkProps): JSX.Element;
|
|
2634
|
+
({ children, colorScheme, ...props }: MarkProps): JSX$1.Element;
|
|
2635
2635
|
displayName: string;
|
|
2636
2636
|
};
|
|
2637
2637
|
|
|
@@ -2724,9 +2724,9 @@ type SubMenuProps = {
|
|
|
2724
2724
|
*/
|
|
2725
2725
|
onOpenChange?: (open: boolean) => void;
|
|
2726
2726
|
/**
|
|
2727
|
-
* Icon to display on the left side of the SubMenu
|
|
2727
|
+
* Icon to display on the left side of the SubMenu. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2728
2728
|
*/
|
|
2729
|
-
icon?: JSX.Element | undefined;
|
|
2729
|
+
icon?: JSX$1.Element | undefined;
|
|
2730
2730
|
};
|
|
2731
2731
|
declare const SubMenu: {
|
|
2732
2732
|
({ label, description, children, onOpenChange, ...props }: SubMenuProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2739,7 +2739,7 @@ type MenuItemButtonProps = ButtonProps & {
|
|
|
2739
2739
|
*/
|
|
2740
2740
|
appearance?: 'dangerous' | 'default' | 'gated';
|
|
2741
2741
|
/**
|
|
2742
|
-
*
|
|
2742
|
+
* Optional `Badge` to display on the MenuItem. Must be an instance of [Badge](../?path=/docs/components-badge--docs)
|
|
2743
2743
|
*/
|
|
2744
2744
|
badge?: JSX.Element;
|
|
2745
2745
|
/**
|
|
@@ -2792,8 +2792,8 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2792
2792
|
children: react.ReactNode;
|
|
2793
2793
|
colorScheme?: ColorSchemeTypes;
|
|
2794
2794
|
disabled?: boolean;
|
|
2795
|
-
leftIcon?: react.
|
|
2796
|
-
rightIcon?: react.
|
|
2795
|
+
leftIcon?: react.ReactNode | undefined;
|
|
2796
|
+
rightIcon?: react.ReactNode | undefined;
|
|
2797
2797
|
type?: LinkTypes | undefined;
|
|
2798
2798
|
underline?: "always" | "hover" | "none";
|
|
2799
2799
|
} & Omit<react_router.LinkProps, "to"> & {
|
|
@@ -2806,7 +2806,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2806
2806
|
type?: LinkTypes;
|
|
2807
2807
|
} & {
|
|
2808
2808
|
appearance?: "dangerous" | "default" | "gated";
|
|
2809
|
-
badge?:
|
|
2809
|
+
badge?: JSX.Element;
|
|
2810
2810
|
children?: react.ReactNode;
|
|
2811
2811
|
command?: react.ReactNode;
|
|
2812
2812
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -2829,8 +2829,8 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2829
2829
|
children: react.ReactNode;
|
|
2830
2830
|
colorScheme?: ColorSchemeTypes;
|
|
2831
2831
|
disabled?: boolean;
|
|
2832
|
-
leftIcon?: react.
|
|
2833
|
-
rightIcon?: react.
|
|
2832
|
+
leftIcon?: react.ReactNode | undefined;
|
|
2833
|
+
rightIcon?: react.ReactNode | undefined;
|
|
2834
2834
|
type?: LinkTypes | undefined;
|
|
2835
2835
|
underline?: "always" | "hover" | "none";
|
|
2836
2836
|
} & Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
@@ -2845,7 +2845,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2845
2845
|
type?: LinkTypes;
|
|
2846
2846
|
} & {
|
|
2847
2847
|
appearance?: "dangerous" | "default" | "gated";
|
|
2848
|
-
badge?:
|
|
2848
|
+
badge?: JSX.Element;
|
|
2849
2849
|
children?: react.ReactNode;
|
|
2850
2850
|
command?: react.ReactNode;
|
|
2851
2851
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -2869,7 +2869,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2869
2869
|
children: react.ReactNode;
|
|
2870
2870
|
} & {
|
|
2871
2871
|
appearance?: "dangerous" | "default" | "gated";
|
|
2872
|
-
badge?:
|
|
2872
|
+
badge?: JSX.Element;
|
|
2873
2873
|
children?: react.ReactNode;
|
|
2874
2874
|
command?: react.ReactNode;
|
|
2875
2875
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -2919,9 +2919,9 @@ declare const MenuRadioGroup: {
|
|
|
2919
2919
|
|
|
2920
2920
|
type RadioMenuItemProps = DropdownMenuRadioItemProps & MenuItemButtonProps & {
|
|
2921
2921
|
/**
|
|
2922
|
-
*
|
|
2922
|
+
* Optional `Icon` to use as the indicator that the radio item is selected. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
2923
2923
|
*/
|
|
2924
|
-
indicator?:
|
|
2924
|
+
indicator?: ReactNode;
|
|
2925
2925
|
/**
|
|
2926
2926
|
* The value of the item
|
|
2927
2927
|
*/
|
|
@@ -2948,9 +2948,9 @@ type CheckboxMenuItemProps = DropdownMenuCheckboxItemProps & MenuItemButtonProps
|
|
|
2948
2948
|
/** Callback to fire when the checked status changes */
|
|
2949
2949
|
onCheckedChange: (checked: boolean) => void;
|
|
2950
2950
|
/**
|
|
2951
|
-
*
|
|
2951
|
+
* Optional `Icon` to use as the indicator that the checkbox item is selected. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
2952
2952
|
*/
|
|
2953
|
-
indicator?:
|
|
2953
|
+
indicator?: ReactNode;
|
|
2954
2954
|
/**
|
|
2955
2955
|
* The checked state of the menu item
|
|
2956
2956
|
*/
|
|
@@ -2994,7 +2994,7 @@ type FilterMenuProps = MenuProps & {
|
|
|
2994
2994
|
declare const FilterMenuItem: {
|
|
2995
2995
|
({ onSelect, checked, onCheckedChange, ...props }: _radix_ui_react_dropdown_menu.DropdownMenuCheckboxItemProps & (MenuItemButtonProps & {
|
|
2996
2996
|
onCheckedChange: (checked: boolean) => void;
|
|
2997
|
-
indicator?: react.
|
|
2997
|
+
indicator?: react.ReactNode;
|
|
2998
2998
|
checked: boolean;
|
|
2999
2999
|
href?: never;
|
|
3000
3000
|
isLoading?: never;
|
|
@@ -3126,7 +3126,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
3126
3126
|
/**
|
|
3127
3127
|
* An interactive element. Most commonly a [Button](?path=/docs/components-button--docs) or [IconButton]([Button](?path=/docs/components-iconbutton--docs)).
|
|
3128
3128
|
*/
|
|
3129
|
-
trigger: JSX.Element;
|
|
3129
|
+
trigger: JSX$1.Element;
|
|
3130
3130
|
/**
|
|
3131
3131
|
* If true, the popover will use the unstyled Content component instead of StyledContent
|
|
3132
3132
|
*/
|
|
@@ -3145,7 +3145,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
3145
3145
|
* Displays rich content in a portal, triggered by a button.
|
|
3146
3146
|
*/
|
|
3147
3147
|
declare const Popover: {
|
|
3148
|
-
({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, withArrow, isAnimated, colorScheme, ...props }: PopoverProps): JSX.Element;
|
|
3148
|
+
({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, withArrow, isAnimated, colorScheme, ...props }: PopoverProps): JSX$1.Element;
|
|
3149
3149
|
displayName: string;
|
|
3150
3150
|
};
|
|
3151
3151
|
|
|
@@ -3175,7 +3175,7 @@ type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
3175
3175
|
* A progress component that visually represents the completion status of a task
|
|
3176
3176
|
*/
|
|
3177
3177
|
declare const ProgressBar: {
|
|
3178
|
-
({ progress, max, children, labelLeft, labelRight, colorScheme, ...props }: ProgressBarProps): JSX.Element;
|
|
3178
|
+
({ progress, max, children, labelLeft, labelRight, colorScheme, ...props }: ProgressBarProps): JSX$1.Element;
|
|
3179
3179
|
displayName: string;
|
|
3180
3180
|
};
|
|
3181
3181
|
|
|
@@ -3200,11 +3200,11 @@ type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'hideLabel' | 'label'
|
|
|
3200
3200
|
/**
|
|
3201
3201
|
* The label for the input
|
|
3202
3202
|
*/
|
|
3203
|
-
label:
|
|
3203
|
+
label: ReactNode;
|
|
3204
3204
|
/**
|
|
3205
3205
|
* The description for the radio
|
|
3206
3206
|
*/
|
|
3207
|
-
description?:
|
|
3207
|
+
description?: ReactNode | undefined;
|
|
3208
3208
|
/**
|
|
3209
3209
|
* Should match the ID attribute of the radio.
|
|
3210
3210
|
* Can be used to group together multiple radios
|
|
@@ -3251,11 +3251,11 @@ declare const Radio: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTM
|
|
|
3251
3251
|
/**
|
|
3252
3252
|
* The label for the input
|
|
3253
3253
|
*/
|
|
3254
|
-
label:
|
|
3254
|
+
label: ReactNode;
|
|
3255
3255
|
/**
|
|
3256
3256
|
* The description for the radio
|
|
3257
3257
|
*/
|
|
3258
|
-
description?:
|
|
3258
|
+
description?: ReactNode | undefined;
|
|
3259
3259
|
/**
|
|
3260
3260
|
* Should match the ID attribute of the radio.
|
|
3261
3261
|
* Can be used to group together multiple radios
|
|
@@ -3287,7 +3287,7 @@ type RadioCardDefaultLayoutProps = {
|
|
|
3287
3287
|
/**
|
|
3288
3288
|
* The icon to display
|
|
3289
3289
|
*/
|
|
3290
|
-
icon?: JSX.Element | undefined;
|
|
3290
|
+
icon?: JSX$1.Element | undefined;
|
|
3291
3291
|
/**
|
|
3292
3292
|
* The main label text for the card.
|
|
3293
3293
|
*
|
|
@@ -3504,7 +3504,7 @@ type IconWithLabel$1 = {
|
|
|
3504
3504
|
/**
|
|
3505
3505
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3506
3506
|
*/
|
|
3507
|
-
icon?: JSX.Element;
|
|
3507
|
+
icon?: JSX$1.Element;
|
|
3508
3508
|
/**
|
|
3509
3509
|
* The label of the item
|
|
3510
3510
|
*/
|
|
@@ -3515,7 +3515,7 @@ type IconWithAriaLabel$1 = {
|
|
|
3515
3515
|
/**
|
|
3516
3516
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3517
3517
|
*/
|
|
3518
|
-
icon?: JSX.Element;
|
|
3518
|
+
icon?: JSX$1.Element;
|
|
3519
3519
|
/**
|
|
3520
3520
|
* Use this when displaying an icon without a label
|
|
3521
3521
|
*/
|
|
@@ -3664,7 +3664,7 @@ type SliderProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> & {
|
|
|
3664
3664
|
value?: number[];
|
|
3665
3665
|
};
|
|
3666
3666
|
declare const Slider: {
|
|
3667
|
-
({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, disabled, initialValue, max, min, onChange, step, value, "data-testid": dataTestId, ...otherProps }: SliderProps): JSX.Element;
|
|
3667
|
+
({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, disabled, initialValue, max, min, onChange, step, value, "data-testid": dataTestId, ...otherProps }: SliderProps): JSX$1.Element;
|
|
3668
3668
|
displayName: string;
|
|
3669
3669
|
};
|
|
3670
3670
|
|
|
@@ -3720,11 +3720,11 @@ type SwitchProps = Omit<ComponentPropsWithoutRef<'input'>, 'hideLabel' | 'label'
|
|
|
3720
3720
|
/**
|
|
3721
3721
|
* The label for the switch
|
|
3722
3722
|
*/
|
|
3723
|
-
label:
|
|
3723
|
+
label: ReactNode;
|
|
3724
3724
|
/**
|
|
3725
3725
|
* The description for the switch
|
|
3726
3726
|
*/
|
|
3727
|
-
description?:
|
|
3727
|
+
description?: ReactNode | undefined;
|
|
3728
3728
|
/**
|
|
3729
3729
|
* The name of the switch. Submitted with its owning form as part of a name/value pair.
|
|
3730
3730
|
*/
|
|
@@ -3770,11 +3770,11 @@ declare const Switch: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
|
|
|
3770
3770
|
/**
|
|
3771
3771
|
* The label for the switch
|
|
3772
3772
|
*/
|
|
3773
|
-
label:
|
|
3773
|
+
label: ReactNode;
|
|
3774
3774
|
/**
|
|
3775
3775
|
* The description for the switch
|
|
3776
3776
|
*/
|
|
3777
|
-
description?:
|
|
3777
|
+
description?: ReactNode | undefined;
|
|
3778
3778
|
/**
|
|
3779
3779
|
* The name of the switch. Submitted with its owning form as part of a name/value pair.
|
|
3780
3780
|
*/
|
|
@@ -3804,23 +3804,23 @@ declare const Switch: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
|
|
|
3804
3804
|
type TableBodyProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3805
3805
|
children?: ReactNode;
|
|
3806
3806
|
};
|
|
3807
|
-
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX.Element;
|
|
3807
|
+
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX$1.Element;
|
|
3808
3808
|
|
|
3809
3809
|
type CellAttrs = Omit<react__default.TdHTMLAttributes<HTMLTableCellElement>, 'ref'> & Omit<react__default.ThHTMLAttributes<HTMLTableCellElement>, 'ref'>;
|
|
3810
3810
|
type TableCellProps = CellAttrs & {
|
|
3811
3811
|
children?: ReactNode;
|
|
3812
3812
|
};
|
|
3813
|
-
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX.Element;
|
|
3813
|
+
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX$1.Element;
|
|
3814
3814
|
|
|
3815
3815
|
type TableFootProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3816
3816
|
children?: ReactNode;
|
|
3817
3817
|
};
|
|
3818
|
-
declare const TableFoot: ({ children, ...props }: TableFootProps) => JSX.Element;
|
|
3818
|
+
declare const TableFoot: ({ children, ...props }: TableFootProps) => JSX$1.Element;
|
|
3819
3819
|
|
|
3820
3820
|
type TableHeadProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3821
3821
|
children?: ReactNode;
|
|
3822
3822
|
};
|
|
3823
|
-
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX.Element;
|
|
3823
|
+
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX$1.Element;
|
|
3824
3824
|
|
|
3825
3825
|
type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
3826
3826
|
/**
|
|
@@ -3845,22 +3845,22 @@ type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
|
3845
3845
|
/**
|
|
3846
3846
|
* Semantic table element for presenting data
|
|
3847
3847
|
*/
|
|
3848
|
-
declare const Table: ({ children, divided, striped, visuallyHiddenHeader, ...props }: TableProps) => JSX.Element;
|
|
3848
|
+
declare const Table: ({ children, divided, striped, visuallyHiddenHeader, ...props }: TableProps) => JSX$1.Element;
|
|
3849
3849
|
|
|
3850
3850
|
type TableRowProps = HTMLAttributes<HTMLTableRowElement> & {
|
|
3851
3851
|
children?: ReactNode;
|
|
3852
3852
|
};
|
|
3853
|
-
declare const TableRow: ({ children, ...props }: TableRowProps) => JSX.Element;
|
|
3853
|
+
declare const TableRow: ({ children, ...props }: TableRowProps) => JSX$1.Element;
|
|
3854
3854
|
|
|
3855
3855
|
type TabsProps = Pick<TabsProps$1, 'children' | 'defaultValue' | 'onValueChange' | 'value'>;
|
|
3856
3856
|
declare const Tabs: {
|
|
3857
|
-
({ children, value: valueProp, onValueChange: onValueChangeProp, defaultValue, ...props }: TabsProps): JSX.Element;
|
|
3857
|
+
({ children, value: valueProp, onValueChange: onValueChangeProp, defaultValue, ...props }: TabsProps): JSX$1.Element;
|
|
3858
3858
|
displayName: string;
|
|
3859
3859
|
};
|
|
3860
3860
|
|
|
3861
3861
|
type TabsContentProps = Pick<TabsContentProps$1, 'children' | 'value'>;
|
|
3862
3862
|
declare const TabsContent: {
|
|
3863
|
-
({ children, value }: TabsContentProps): JSX.Element;
|
|
3863
|
+
({ children, value }: TabsContentProps): JSX$1.Element;
|
|
3864
3864
|
displayName: string;
|
|
3865
3865
|
};
|
|
3866
3866
|
|
|
@@ -3868,7 +3868,7 @@ type TabsListProps = Pick<TabsListProps$1, 'aria-label'> & PropsWithChildren<{
|
|
|
3868
3868
|
fullWidth?: boolean;
|
|
3869
3869
|
}>;
|
|
3870
3870
|
declare const TabsList: {
|
|
3871
|
-
({ children, fullWidth, ...props }: TabsListProps): JSX.Element;
|
|
3871
|
+
({ children, fullWidth, ...props }: TabsListProps): JSX$1.Element;
|
|
3872
3872
|
displayName: string;
|
|
3873
3873
|
};
|
|
3874
3874
|
|
|
@@ -3877,7 +3877,7 @@ type IconWithLabel = {
|
|
|
3877
3877
|
/**
|
|
3878
3878
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3879
3879
|
*/
|
|
3880
|
-
icon?: JSX.Element;
|
|
3880
|
+
icon?: JSX$1.Element;
|
|
3881
3881
|
/**
|
|
3882
3882
|
* The label of the item
|
|
3883
3883
|
*/
|
|
@@ -3888,7 +3888,7 @@ type IconWithAriaLabel = {
|
|
|
3888
3888
|
/**
|
|
3889
3889
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3890
3890
|
*/
|
|
3891
|
-
icon?: JSX.Element;
|
|
3891
|
+
icon?: JSX$1.Element;
|
|
3892
3892
|
/**
|
|
3893
3893
|
* Use this when displaying an icon without a label
|
|
3894
3894
|
*/
|
|
@@ -3918,7 +3918,7 @@ type TagProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
3918
3918
|
/**
|
|
3919
3919
|
* Optional icon to display before the label
|
|
3920
3920
|
*/
|
|
3921
|
-
icon?: JSX.Element | undefined;
|
|
3921
|
+
icon?: JSX$1.Element | undefined;
|
|
3922
3922
|
/**
|
|
3923
3923
|
* Text label for the `Tag`
|
|
3924
3924
|
*/
|
|
@@ -3947,7 +3947,7 @@ declare const Tag: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<
|
|
|
3947
3947
|
/**
|
|
3948
3948
|
* Optional icon to display before the label
|
|
3949
3949
|
*/
|
|
3950
|
-
icon?: JSX.Element | undefined;
|
|
3950
|
+
icon?: JSX$1.Element | undefined;
|
|
3951
3951
|
/**
|
|
3952
3952
|
* Text label for the `Tag`
|
|
3953
3953
|
*/
|
|
@@ -3966,14 +3966,14 @@ type ThumbnailBadgeProps = {
|
|
|
3966
3966
|
/**
|
|
3967
3967
|
* Icon to display on the left side of the badge
|
|
3968
3968
|
*/
|
|
3969
|
-
icon?: JSX.Element | undefined;
|
|
3969
|
+
icon?: JSX$1.Element | undefined;
|
|
3970
3970
|
/**
|
|
3971
3971
|
* Text content to display in the badge
|
|
3972
3972
|
*/
|
|
3973
3973
|
label: string;
|
|
3974
3974
|
};
|
|
3975
3975
|
declare const ThumbnailBadge: {
|
|
3976
|
-
({ icon, label, ...props }: ThumbnailBadgeProps): JSX.Element;
|
|
3976
|
+
({ icon, label, ...props }: ThumbnailBadgeProps): JSX$1.Element;
|
|
3977
3977
|
displayName: string;
|
|
3978
3978
|
};
|
|
3979
3979
|
|
|
@@ -4091,7 +4091,7 @@ type ThumbnailCollageProps = {
|
|
|
4091
4091
|
* It supports up to 3 thumbnails arranged in different configurations based on the number of children provided.
|
|
4092
4092
|
* If no thumbnails are provided, it displays a fallback thumbnail with a gradient background.
|
|
4093
4093
|
*/
|
|
4094
|
-
declare const ThumbnailCollage: ({ children, gradientBackground, ...props }: ThumbnailCollageProps) => JSX.Element;
|
|
4094
|
+
declare const ThumbnailCollage: ({ children, gradientBackground, ...props }: ThumbnailCollageProps) => JSX$1.Element;
|
|
4095
4095
|
|
|
4096
4096
|
type TooltipProps = {
|
|
4097
4097
|
/**
|
|
@@ -4132,7 +4132,7 @@ type TooltipProps = {
|
|
|
4132
4132
|
*
|
|
4133
4133
|
*/
|
|
4134
4134
|
declare const Tooltip: {
|
|
4135
|
-
({ delay, direction, content, children, forceOpen, hideArrow, container, }: TooltipProps): JSX.Element;
|
|
4135
|
+
({ delay, direction, content, children, forceOpen, hideArrow, container, }: TooltipProps): JSX$1.Element;
|
|
4136
4136
|
displayName: string;
|
|
4137
4137
|
};
|
|
4138
4138
|
|
|
@@ -4181,4 +4181,48 @@ declare const WistiaLogo: {
|
|
|
4181
4181
|
displayName: string;
|
|
4182
4182
|
};
|
|
4183
4183
|
|
|
4184
|
-
|
|
4184
|
+
type SplitButtonProps = {
|
|
4185
|
+
/**
|
|
4186
|
+
* The text for the primary button
|
|
4187
|
+
*/
|
|
4188
|
+
children?: ButtonProps['children'];
|
|
4189
|
+
colorScheme?: ButtonProps['colorScheme'];
|
|
4190
|
+
/**
|
|
4191
|
+
* The icon to use for the menu toggle, defaults to a down caret
|
|
4192
|
+
* @default <Icon type="caret-down" />
|
|
4193
|
+
*/
|
|
4194
|
+
menuIcon?: JSX$1.Element;
|
|
4195
|
+
/**
|
|
4196
|
+
* 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.
|
|
4197
|
+
*/
|
|
4198
|
+
menuItems?: ReactNode;
|
|
4199
|
+
/**
|
|
4200
|
+
* The label to use for the menu, only for screenreaders
|
|
4201
|
+
*/
|
|
4202
|
+
menuLabel?: string;
|
|
4203
|
+
/**
|
|
4204
|
+
* If using `menuItems`, any additional props to pass to the `Menu` component
|
|
4205
|
+
*/
|
|
4206
|
+
menuProps?: Omit<ComponentProps<typeof Menu>, 'children' | 'disabled' | 'trigger'>;
|
|
4207
|
+
/**
|
|
4208
|
+
* Secondary action should not be used when menuItems is set
|
|
4209
|
+
*/
|
|
4210
|
+
secondaryAction?: JSX$1.Element;
|
|
4211
|
+
/**
|
|
4212
|
+
* The size of button to display. Can be used as a [responsive prop](/docs/ui-docs-responsive-props--docs)
|
|
4213
|
+
*/
|
|
4214
|
+
size?: ButtonSizes | ResponsiveObject<ButtonSizes>;
|
|
4215
|
+
/**
|
|
4216
|
+
* A visual style for the button
|
|
4217
|
+
*/
|
|
4218
|
+
variant?: ButtonVariants;
|
|
4219
|
+
} & (ButtonAsButtonProps | ButtonAsLinkProps);
|
|
4220
|
+
/**
|
|
4221
|
+
* A SplitButton is an extension of [Button]() that adds a menu to the right hand side of the button.
|
|
4222
|
+
*/
|
|
4223
|
+
declare const SplitButton: {
|
|
4224
|
+
({ children, menuLabel, menuIcon, menuItems, disabled, colorScheme, variant, secondaryAction, size, unstyled, menuProps, ...props }: SplitButtonProps): JSX$1.Element;
|
|
4225
|
+
displayName: string;
|
|
4226
|
+
};
|
|
4227
|
+
|
|
4228
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerIcon, ColorGrid, ColorGridOption, type ColorGridOptionProps, type ColorGridProps, ColorList, ColorListGroup, type ColorListGroupProps, ColorListOption, type ColorListOptionProps, type ColorListProps, ColorPicker, ColorPickerPopoverContent, type ColorPickerPopoverContentProps, type ColorPickerProps, ColorPickerSection, type ColorPickerSectionProps, ColorPickerTrigger, type ColorPickerTriggerProps, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, ContrastControls, DataCard, DataCardHoverArrow, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, DataList, DataListItem, DataListItemLabel, DataListItemValue, type DataListProps, Divider, EditableHeading, type EditableHeadingProps, EditableText, EditableTextCancelButton, EditableTextContext, EditableTextDisplay, EditableTextInput, EditableTextLabel, type EditableTextProps, EditableTextRoot, type EditableTextRootProps, EditableTextSubmitButton, EditableTextTrigger, Ellipsis, type EllipsisProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, HexColorInput, type HexColorInputProps, HueSlider, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, InputPassword, type InputPasswordProps, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, type LabelProps, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Mark, type MarkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, ScrollArea, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, SplitButton, type SplitButtonProps, Stack, SubMenu, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, ValueNameOrHexCode, ValueSwatch, WistiaLogo, calculateContrast, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
|