@wistia/ui 0.14.36 → 0.14.37-beta.e51eca76.58dee09
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 +82 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +205 -144
- package/dist/index.d.ts +205 -144
- package/dist/index.mjs +84 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
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
|
-
import * as react_router from 'react-router';
|
|
7
|
-
import { LinkProps as LinkProps$1 } from 'react-router-dom';
|
|
8
6
|
import { CollapsibleContentProps as CollapsibleContentProps$1 } from '@radix-ui/react-collapsible';
|
|
9
7
|
import { Color } from 'culori/fn';
|
|
10
8
|
import * as styled_components from 'styled-components';
|
|
@@ -192,13 +190,20 @@ type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
192
190
|
* A wrapper to apply a color scheme to its children.
|
|
193
191
|
*/
|
|
194
192
|
declare const ColorSchemeWrapper: {
|
|
195
|
-
({ __nav, colorScheme, children, ...props }: ColorSchemeWrapperProps): JSX.Element;
|
|
193
|
+
({ __nav, colorScheme, children, ...props }: ColorSchemeWrapperProps): JSX$1.Element;
|
|
196
194
|
displayName: string;
|
|
197
195
|
};
|
|
198
196
|
|
|
199
197
|
type ButtonVariants = 'ghost' | 'outline' | 'soft' | 'solid';
|
|
200
198
|
|
|
201
199
|
type LinkTypes = 'default' | 'email' | 'external' | 'phone';
|
|
200
|
+
type ReactRouterLinkProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> & {
|
|
201
|
+
reloadDocument?: boolean;
|
|
202
|
+
replace?: boolean;
|
|
203
|
+
state?: any;
|
|
204
|
+
preventScrollReset?: boolean;
|
|
205
|
+
viewTransition?: boolean;
|
|
206
|
+
};
|
|
202
207
|
type BaseProps$2 = {
|
|
203
208
|
/**
|
|
204
209
|
* A Promise to invoke before navigating to location.
|
|
@@ -220,13 +225,13 @@ type BaseProps$2 = {
|
|
|
220
225
|
*/
|
|
221
226
|
disabled?: boolean;
|
|
222
227
|
/**
|
|
223
|
-
* Icon to display on the left side of the link
|
|
228
|
+
* Icon to display on the left side of the link. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
224
229
|
*/
|
|
225
|
-
leftIcon?:
|
|
230
|
+
leftIcon?: ReactNode | undefined;
|
|
226
231
|
/**
|
|
227
|
-
* Icon to display on the right side of the link
|
|
232
|
+
* Icon to display on the right side of the link. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
228
233
|
*/
|
|
229
|
-
rightIcon?:
|
|
234
|
+
rightIcon?: ReactNode | undefined;
|
|
230
235
|
/**
|
|
231
236
|
* Type of link to display
|
|
232
237
|
*
|
|
@@ -244,7 +249,7 @@ type BaseProps$2 = {
|
|
|
244
249
|
*/
|
|
245
250
|
underline?: 'always' | 'hover' | 'none';
|
|
246
251
|
};
|
|
247
|
-
type LinkAsLinkProps = BaseProps$2 & ComponentPropsWithRef<'a'> &
|
|
252
|
+
type LinkAsLinkProps = BaseProps$2 & ComponentPropsWithRef<'a'> & ReactRouterLinkProps & {
|
|
248
253
|
href: string | undefined;
|
|
249
254
|
type?: LinkTypes;
|
|
250
255
|
};
|
|
@@ -292,9 +297,9 @@ type BaseButtonProps = {
|
|
|
292
297
|
*/
|
|
293
298
|
isLoading?: boolean;
|
|
294
299
|
/**
|
|
295
|
-
* Icon to display on the left side of the button
|
|
300
|
+
* Icon to display on the left side of the button. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
296
301
|
*/
|
|
297
|
-
leftIcon?:
|
|
302
|
+
leftIcon?: ReactNode | undefined;
|
|
298
303
|
/**
|
|
299
304
|
* Callback function invoked when the button is clicked
|
|
300
305
|
*
|
|
@@ -315,11 +320,11 @@ type BaseButtonProps = {
|
|
|
315
320
|
/**
|
|
316
321
|
* Provides a button without any styling (useful for wrapping another element)
|
|
317
322
|
*/
|
|
318
|
-
unstyled?: boolean;
|
|
323
|
+
unstyled?: boolean | undefined;
|
|
319
324
|
/**
|
|
320
|
-
* Icon to display on the right side of the button
|
|
325
|
+
* Icon to display on the right side of the button. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
321
326
|
*/
|
|
322
|
-
rightIcon?:
|
|
327
|
+
rightIcon?: ReactNode | undefined;
|
|
323
328
|
/**
|
|
324
329
|
* The size of button to display. Can be used as a [responsive prop](/docs/ui-docs-responsive-props--docs)
|
|
325
330
|
*/
|
|
@@ -365,11 +370,17 @@ declare const Button: react.ForwardRefExoticComponent<(Omit<BaseButtonProps & Om
|
|
|
365
370
|
children: ReactNode;
|
|
366
371
|
colorScheme?: ColorSchemeTypes;
|
|
367
372
|
disabled?: boolean;
|
|
368
|
-
leftIcon?:
|
|
369
|
-
rightIcon?:
|
|
373
|
+
leftIcon?: ReactNode | undefined;
|
|
374
|
+
rightIcon?: ReactNode | undefined;
|
|
370
375
|
type?: LinkTypes | undefined;
|
|
371
376
|
underline?: "always" | "hover" | "none";
|
|
372
|
-
} & Omit<
|
|
377
|
+
} & Omit<react.AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & {
|
|
378
|
+
reloadDocument?: boolean;
|
|
379
|
+
replace?: boolean;
|
|
380
|
+
state?: any;
|
|
381
|
+
preventScrollReset?: boolean;
|
|
382
|
+
viewTransition?: boolean;
|
|
383
|
+
} & {
|
|
373
384
|
href: string | undefined;
|
|
374
385
|
type?: LinkTypes;
|
|
375
386
|
} & {
|
|
@@ -392,8 +403,8 @@ declare const Button: react.ForwardRefExoticComponent<(Omit<BaseButtonProps & Om
|
|
|
392
403
|
children: ReactNode;
|
|
393
404
|
colorScheme?: ColorSchemeTypes;
|
|
394
405
|
disabled?: boolean;
|
|
395
|
-
leftIcon?:
|
|
396
|
-
rightIcon?:
|
|
406
|
+
leftIcon?: ReactNode | undefined;
|
|
407
|
+
rightIcon?: ReactNode | undefined;
|
|
397
408
|
type?: LinkTypes | undefined;
|
|
398
409
|
underline?: "always" | "hover" | "none";
|
|
399
410
|
} & Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
@@ -428,11 +439,11 @@ type ToastProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
428
439
|
/**
|
|
429
440
|
* Optional `Icon` component to use. Must be an instance of [Icon](/?path=/docs/components-icon--docs)
|
|
430
441
|
*/
|
|
431
|
-
icon?: JSX.Element | undefined;
|
|
442
|
+
icon?: JSX$1.Element | undefined;
|
|
432
443
|
/**
|
|
433
444
|
* The message displayed in the toast
|
|
434
445
|
*/
|
|
435
|
-
message:
|
|
446
|
+
message: ReactNode;
|
|
436
447
|
};
|
|
437
448
|
|
|
438
449
|
type Position = 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right';
|
|
@@ -457,7 +468,7 @@ type ActionButtonProps = {
|
|
|
457
468
|
/**
|
|
458
469
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
459
470
|
*/
|
|
460
|
-
icon: JSX.Element;
|
|
471
|
+
icon: JSX$1.Element;
|
|
461
472
|
/**
|
|
462
473
|
* @override
|
|
463
474
|
* Disables the button
|
|
@@ -485,7 +496,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
485
496
|
/**
|
|
486
497
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
487
498
|
*/
|
|
488
|
-
icon: JSX.Element;
|
|
499
|
+
icon: JSX$1.Element;
|
|
489
500
|
/**
|
|
490
501
|
* @override
|
|
491
502
|
* Disables the button
|
|
@@ -509,7 +520,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
509
520
|
/**
|
|
510
521
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
511
522
|
*/
|
|
512
|
-
icon: JSX.Element;
|
|
523
|
+
icon: JSX$1.Element;
|
|
513
524
|
/**
|
|
514
525
|
* @override
|
|
515
526
|
* Disables the button
|
|
@@ -560,7 +571,7 @@ type AvatarProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
560
571
|
* An avatar uses a photo or initials to represent an identity.
|
|
561
572
|
*/
|
|
562
573
|
declare const Avatar: {
|
|
563
|
-
({ imageUrl, heightAndWidth, name, size, onImageLoad, ...props }: AvatarProps): JSX.Element;
|
|
574
|
+
({ imageUrl, heightAndWidth, name, size, onImageLoad, ...props }: AvatarProps): JSX$1.Element;
|
|
564
575
|
displayName: string;
|
|
565
576
|
};
|
|
566
577
|
|
|
@@ -571,9 +582,9 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
571
582
|
*/
|
|
572
583
|
colorScheme?: ColorSchemeTypes;
|
|
573
584
|
/**
|
|
574
|
-
*
|
|
585
|
+
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
575
586
|
*/
|
|
576
|
-
icon?: JSX.Element;
|
|
587
|
+
icon?: JSX$1.Element;
|
|
577
588
|
/**
|
|
578
589
|
* The text to display in the `Badge`
|
|
579
590
|
*/
|
|
@@ -592,9 +603,9 @@ declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProp
|
|
|
592
603
|
*/
|
|
593
604
|
colorScheme?: ColorSchemeTypes;
|
|
594
605
|
/**
|
|
595
|
-
*
|
|
606
|
+
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
596
607
|
*/
|
|
597
|
-
icon?: JSX.Element;
|
|
608
|
+
icon?: JSX$1.Element;
|
|
598
609
|
/**
|
|
599
610
|
* The text to display in the `Badge`
|
|
600
611
|
*/
|
|
@@ -615,9 +626,9 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
615
626
|
*/
|
|
616
627
|
headingText?: string;
|
|
617
628
|
/**
|
|
618
|
-
* Optional
|
|
629
|
+
* Optional `Icon` component to use. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
619
630
|
*/
|
|
620
|
-
icon?:
|
|
631
|
+
icon?: JSX$1.Element;
|
|
621
632
|
/**
|
|
622
633
|
* Controls the visual prominence of the banner
|
|
623
634
|
*/
|
|
@@ -626,7 +637,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
626
637
|
/**
|
|
627
638
|
* Optional image element to display in the banner
|
|
628
639
|
*/
|
|
629
|
-
image?: JSX.Element;
|
|
640
|
+
image?: JSX$1.Element | undefined;
|
|
630
641
|
/**
|
|
631
642
|
* Controls the layout direction. If set to 'auto', the banner will switch between horizontal and vertical based on the container width.
|
|
632
643
|
*/
|
|
@@ -648,7 +659,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
648
659
|
* The `Banner` component is for displaying contextual information to the user such as alerts or feature announcements.
|
|
649
660
|
*/
|
|
650
661
|
declare const Banner: {
|
|
651
|
-
({ bodyText, colorScheme, headingText, icon, image, onClose, orientation, primaryAction, prominence, secondaryAction, ...props }: BannerProps): JSX.Element;
|
|
662
|
+
({ bodyText, colorScheme, headingText, icon, image, onClose, orientation, primaryAction, prominence, secondaryAction, ...props }: BannerProps): JSX$1.Element;
|
|
652
663
|
displayName: string;
|
|
653
664
|
};
|
|
654
665
|
|
|
@@ -859,7 +870,7 @@ type BreadcrumbsProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
859
870
|
* [Button](?path=/docs/components-button--docs). See it's documentation for additional functionality.
|
|
860
871
|
*/
|
|
861
872
|
declare const Breadcrumbs: {
|
|
862
|
-
({ children, ...props }: BreadcrumbsProps): JSX.Element;
|
|
873
|
+
({ children, ...props }: BreadcrumbsProps): JSX$1.Element;
|
|
863
874
|
displayName: string;
|
|
864
875
|
};
|
|
865
876
|
|
|
@@ -908,7 +919,7 @@ type ButtonGroupProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
908
919
|
* with a standardized gap between them.
|
|
909
920
|
*/
|
|
910
921
|
declare const ButtonGroup: {
|
|
911
|
-
({ children, align, fullWidth, collapseOnSmallScreens, buttonSize, ...props }: ButtonGroupProps): JSX.Element | null;
|
|
922
|
+
({ children, align, fullWidth, collapseOnSmallScreens, buttonSize, ...props }: ButtonGroupProps): JSX$1.Element | null;
|
|
912
923
|
displayName: string;
|
|
913
924
|
};
|
|
914
925
|
|
|
@@ -1013,7 +1024,7 @@ type CardProps = BoxProps & ComponentPropsWithoutRef<'div'> & {
|
|
|
1013
1024
|
* 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
1025
|
*/
|
|
1015
1026
|
declare const Card: {
|
|
1016
|
-
({ children, border, borderRadius, colorScheme, direction, gap, height, paddingSize, prominence, width, ...props }: CardProps): JSX.Element;
|
|
1027
|
+
({ children, border, borderRadius, colorScheme, direction, gap, height, paddingSize, prominence, width, ...props }: CardProps): JSX$1.Element;
|
|
1017
1028
|
displayName: string;
|
|
1018
1029
|
};
|
|
1019
1030
|
|
|
@@ -1075,11 +1086,11 @@ declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.Detailed
|
|
|
1075
1086
|
/**
|
|
1076
1087
|
* The label for the checkbox
|
|
1077
1088
|
*/
|
|
1078
|
-
label:
|
|
1089
|
+
label: ReactNode;
|
|
1079
1090
|
/**
|
|
1080
1091
|
* The description for the checkbox
|
|
1081
1092
|
*/
|
|
1082
|
-
description?:
|
|
1093
|
+
description?: ReactNode | undefined;
|
|
1083
1094
|
/**
|
|
1084
1095
|
* The name of the checkbox. Submitted with its owning form as part of a name/value pair.
|
|
1085
1096
|
*/
|
|
@@ -1110,7 +1121,7 @@ type ClickRegionProps = {
|
|
|
1110
1121
|
/**
|
|
1111
1122
|
* The content that should be clickable.
|
|
1112
1123
|
*/
|
|
1113
|
-
children: JSX.Element;
|
|
1124
|
+
children: JSX$1.Element;
|
|
1114
1125
|
/**
|
|
1115
1126
|
* The ref to the button or link that should be clicked when the ClickRegion is clicked.
|
|
1116
1127
|
*/
|
|
@@ -1127,7 +1138,7 @@ type ClickRegionProps = {
|
|
|
1127
1138
|
* In either case, a link or button must be present, but can be hidden by using `ScreenReaderOnly`.
|
|
1128
1139
|
*/
|
|
1129
1140
|
declare const ClickRegion: {
|
|
1130
|
-
({ children, targetRef }: ClickRegionProps): JSX.Element;
|
|
1141
|
+
({ children, targetRef }: ClickRegionProps): JSX$1.Element;
|
|
1131
1142
|
displayName: string;
|
|
1132
1143
|
};
|
|
1133
1144
|
|
|
@@ -1149,7 +1160,7 @@ type CollapsibleProps = {
|
|
|
1149
1160
|
* Toggle the visibility of content with a trigger.
|
|
1150
1161
|
*/
|
|
1151
1162
|
declare const Collapsible: {
|
|
1152
|
-
({ children, isOpen, onOpenChange, }: CollapsibleProps): JSX.Element;
|
|
1163
|
+
({ children, isOpen, onOpenChange, }: CollapsibleProps): JSX$1.Element;
|
|
1153
1164
|
displayName: string;
|
|
1154
1165
|
};
|
|
1155
1166
|
|
|
@@ -1400,7 +1411,7 @@ type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
|
1400
1411
|
* If you need an interactive element, use IconButton.
|
|
1401
1412
|
*/
|
|
1402
1413
|
declare const Icon: {
|
|
1403
|
-
({ useInlineStyles, invertColor, colorScheme, size, style, type, ...props }: IconProps): JSX.Element;
|
|
1414
|
+
({ useInlineStyles, invertColor, colorScheme, size, style, type, ...props }: IconProps): JSX$1.Element;
|
|
1404
1415
|
displayName: string;
|
|
1405
1416
|
};
|
|
1406
1417
|
|
|
@@ -1428,7 +1439,7 @@ type ColorGridProps = PropsWithChildren & {
|
|
|
1428
1439
|
label?: string;
|
|
1429
1440
|
};
|
|
1430
1441
|
declare const ColorGrid: {
|
|
1431
|
-
({ children, label }: ColorGridProps): JSX.Element;
|
|
1442
|
+
({ children, label }: ColorGridProps): JSX$1.Element;
|
|
1432
1443
|
displayName: string;
|
|
1433
1444
|
};
|
|
1434
1445
|
|
|
@@ -1445,13 +1456,13 @@ type ColorPickerOption = {
|
|
|
1445
1456
|
|
|
1446
1457
|
type ColorGridOptionProps = ColorPickerOption;
|
|
1447
1458
|
declare const ColorGridOption: {
|
|
1448
|
-
({ value: rawValue, name }: ColorGridOptionProps): JSX.Element;
|
|
1459
|
+
({ value: rawValue, name }: ColorGridOptionProps): JSX$1.Element;
|
|
1449
1460
|
displayName: string;
|
|
1450
1461
|
};
|
|
1451
1462
|
|
|
1452
1463
|
type ColorListProps = PropsWithChildren;
|
|
1453
1464
|
declare const ColorList: {
|
|
1454
|
-
({ children }: ColorListProps): JSX.Element;
|
|
1465
|
+
({ children }: ColorListProps): JSX$1.Element;
|
|
1455
1466
|
displayName: string;
|
|
1456
1467
|
};
|
|
1457
1468
|
|
|
@@ -1459,13 +1470,13 @@ type ColorListGroupProps = PropsWithChildren<{
|
|
|
1459
1470
|
label: string;
|
|
1460
1471
|
}>;
|
|
1461
1472
|
declare const ColorListGroup: {
|
|
1462
|
-
({ label, children }: ColorListGroupProps): JSX.Element;
|
|
1473
|
+
({ label, children }: ColorListGroupProps): JSX$1.Element;
|
|
1463
1474
|
displayName: string;
|
|
1464
1475
|
};
|
|
1465
1476
|
|
|
1466
1477
|
type ColorListOptionProps = ColorPickerOption;
|
|
1467
1478
|
declare const ColorListOption: {
|
|
1468
|
-
({ value: rawValue, name }: ColorListOptionProps): JSX.Element;
|
|
1479
|
+
({ value: rawValue, name }: ColorListOptionProps): JSX$1.Element;
|
|
1469
1480
|
displayName: string;
|
|
1470
1481
|
};
|
|
1471
1482
|
|
|
@@ -1498,19 +1509,19 @@ type ColorPickerProps = PropsWithChildren<{
|
|
|
1498
1509
|
* subcomponents.
|
|
1499
1510
|
*/
|
|
1500
1511
|
declare const ColorPicker: {
|
|
1501
|
-
({ children, colorForComparison, minimumContrastRatio, opacityForContrastCalculation, onValueChange, value, }: ColorPickerProps): JSX.Element;
|
|
1512
|
+
({ children, colorForComparison, minimumContrastRatio, opacityForContrastCalculation, onValueChange, value, }: ColorPickerProps): JSX$1.Element;
|
|
1502
1513
|
displayName: string;
|
|
1503
1514
|
};
|
|
1504
1515
|
|
|
1505
1516
|
type ColorPickerPopoverContentProps = PropsWithChildren;
|
|
1506
1517
|
declare const ColorPickerPopoverContent: {
|
|
1507
|
-
({ children, }: ColorPickerPopoverContentProps): JSX.Element;
|
|
1518
|
+
({ children, }: ColorPickerPopoverContentProps): JSX$1.Element;
|
|
1508
1519
|
displayName: string;
|
|
1509
1520
|
};
|
|
1510
1521
|
|
|
1511
1522
|
type ColorPickerSectionProps = PropsWithChildren;
|
|
1512
1523
|
declare const ColorPickerSection: {
|
|
1513
|
-
({ children }: ColorPickerSectionProps): JSX.Element;
|
|
1524
|
+
({ children }: ColorPickerSectionProps): JSX$1.Element;
|
|
1514
1525
|
displayName: string;
|
|
1515
1526
|
};
|
|
1516
1527
|
|
|
@@ -1520,7 +1531,7 @@ declare const ColorPickerTrigger: react.ForwardRefExoticComponent<{
|
|
|
1520
1531
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1521
1532
|
|
|
1522
1533
|
declare const ContrastControls: {
|
|
1523
|
-
(): JSX.Element;
|
|
1534
|
+
(): JSX$1.Element;
|
|
1524
1535
|
displayName: string;
|
|
1525
1536
|
};
|
|
1526
1537
|
|
|
@@ -1531,12 +1542,12 @@ type HexColorInputProps = {
|
|
|
1531
1542
|
autoFocus?: boolean;
|
|
1532
1543
|
};
|
|
1533
1544
|
declare const HexColorInput: {
|
|
1534
|
-
({ autoFocus }: HexColorInputProps): JSX.Element;
|
|
1545
|
+
({ autoFocus }: HexColorInputProps): JSX$1.Element;
|
|
1535
1546
|
displayName: string;
|
|
1536
1547
|
};
|
|
1537
1548
|
|
|
1538
1549
|
declare const HueSlider: {
|
|
1539
|
-
(): JSX.Element;
|
|
1550
|
+
(): JSX$1.Element;
|
|
1540
1551
|
displayName: string;
|
|
1541
1552
|
};
|
|
1542
1553
|
|
|
@@ -1544,17 +1555,17 @@ type SaturationAndValuePickerProps = {
|
|
|
1544
1555
|
dataTestId?: string;
|
|
1545
1556
|
};
|
|
1546
1557
|
declare const SaturationAndValuePicker: {
|
|
1547
|
-
({ dataTestId, }: SaturationAndValuePickerProps): JSX.Element;
|
|
1558
|
+
({ dataTestId, }: SaturationAndValuePickerProps): JSX$1.Element;
|
|
1548
1559
|
displayName: string;
|
|
1549
1560
|
};
|
|
1550
1561
|
|
|
1551
1562
|
declare const ValueNameOrHexCode: {
|
|
1552
|
-
(): JSX.Element;
|
|
1563
|
+
(): JSX$1.Element;
|
|
1553
1564
|
displayName: string;
|
|
1554
1565
|
};
|
|
1555
1566
|
|
|
1556
1567
|
declare const ValueSwatch: {
|
|
1557
|
-
(): JSX.Element;
|
|
1568
|
+
(): JSX$1.Element;
|
|
1558
1569
|
displayName: string;
|
|
1559
1570
|
};
|
|
1560
1571
|
|
|
@@ -1656,7 +1667,7 @@ type DataCardProps = ComponentPropsWithoutRef<'div'> & Partial<Pick<ButtonAsLink
|
|
|
1656
1667
|
/**
|
|
1657
1668
|
* Optional trend arrow to display below the value. Use the `DataCardTrend` component to create this.
|
|
1658
1669
|
*/
|
|
1659
|
-
trend?:
|
|
1670
|
+
trend?: ReactNode;
|
|
1660
1671
|
/**
|
|
1661
1672
|
* Optional subtitle text to display below the value
|
|
1662
1673
|
*/
|
|
@@ -1685,7 +1696,7 @@ type DataCardsProps = ComponentPropsWithoutRef<'dl'> & {
|
|
|
1685
1696
|
* Displays a series of cards tailor made for displaying analytics data
|
|
1686
1697
|
*/
|
|
1687
1698
|
declare const DataCards: {
|
|
1688
|
-
({ children, cardMaxWidth, colorScheme, ...props }: DataCardsProps): JSX.Element;
|
|
1699
|
+
({ children, cardMaxWidth, colorScheme, ...props }: DataCardsProps): JSX$1.Element;
|
|
1689
1700
|
displayName: string;
|
|
1690
1701
|
};
|
|
1691
1702
|
|
|
@@ -1701,9 +1712,9 @@ type DataCardTrendProps = {
|
|
|
1701
1712
|
/**
|
|
1702
1713
|
* Content to display next to the trend arrow
|
|
1703
1714
|
*/
|
|
1704
|
-
children: JSX.Element | string;
|
|
1715
|
+
children: JSX$1.Element | string;
|
|
1705
1716
|
};
|
|
1706
|
-
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
|
|
1717
|
+
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX$1.Element;
|
|
1707
1718
|
|
|
1708
1719
|
declare const DataCardHoverArrow: {
|
|
1709
1720
|
(): react_jsx_runtime.JSX.Element;
|
|
@@ -1732,7 +1743,7 @@ type DataListProps = ComponentPropsWithoutRef<'dl'> & {
|
|
|
1732
1743
|
* The DataList component is used to display a list of items with labels and values.
|
|
1733
1744
|
*/
|
|
1734
1745
|
declare const DataList: {
|
|
1735
|
-
({ children, valueAlignment, labelMaxWith, labelProminence, ...props }: DataListProps): JSX.Element;
|
|
1746
|
+
({ children, valueAlignment, labelMaxWith, labelProminence, ...props }: DataListProps): JSX$1.Element;
|
|
1736
1747
|
displayName: string;
|
|
1737
1748
|
};
|
|
1738
1749
|
|
|
@@ -1821,7 +1832,7 @@ declare const Text: (<C extends ElementType = "p">(props: PolymorphicComponentPr
|
|
|
1821
1832
|
* The label of the `DataListItem`. Extends the [Text]() component.
|
|
1822
1833
|
*/
|
|
1823
1834
|
declare const DataListItemLabel: {
|
|
1824
|
-
(props: TextProps): JSX.Element;
|
|
1835
|
+
(props: TextProps): JSX$1.Element;
|
|
1825
1836
|
displayName: string;
|
|
1826
1837
|
};
|
|
1827
1838
|
|
|
@@ -1829,7 +1840,7 @@ declare const DataListItemLabel: {
|
|
|
1829
1840
|
* The value of the `DataListItem`. Extends the [Text]() component.
|
|
1830
1841
|
*/
|
|
1831
1842
|
declare const DataListItemValue: {
|
|
1832
|
-
(props: TextProps): JSX.Element;
|
|
1843
|
+
(props: TextProps): JSX$1.Element;
|
|
1833
1844
|
displayName: string;
|
|
1834
1845
|
};
|
|
1835
1846
|
|
|
@@ -1843,7 +1854,7 @@ type DividerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1843
1854
|
* A line used to visually separate content; note that dividers have no margin/spacing on their own.
|
|
1844
1855
|
*/
|
|
1845
1856
|
declare const Divider: {
|
|
1846
|
-
({ orientation, ...props }: DividerProps): JSX.Element;
|
|
1857
|
+
({ orientation, ...props }: DividerProps): JSX$1.Element;
|
|
1847
1858
|
displayName: string;
|
|
1848
1859
|
};
|
|
1849
1860
|
|
|
@@ -1952,7 +1963,7 @@ type EditableHeadingProps = {
|
|
|
1952
1963
|
* an accessible button that enables editing mode. The component handles empty values, keyboard
|
|
1953
1964
|
* navigation (Enter to save, Escape to cancel), and provides callbacks for value and state changes.
|
|
1954
1965
|
*/
|
|
1955
|
-
declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, variant, __forceEditing, editingDisabled, }: EditableHeadingProps) => JSX.Element;
|
|
1966
|
+
declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, variant, __forceEditing, editingDisabled, }: EditableHeadingProps) => JSX$1.Element;
|
|
1956
1967
|
|
|
1957
1968
|
declare const typographicVariantStyleMap: {
|
|
1958
1969
|
hero: styled_components.FlattenSimpleInterpolation;
|
|
@@ -2066,7 +2077,7 @@ type EditableTextContextValues = {
|
|
|
2066
2077
|
finalFocusEl: (() => HTMLElement | null) | undefined;
|
|
2067
2078
|
};
|
|
2068
2079
|
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;
|
|
2080
|
+
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
2081
|
|
|
2071
2082
|
type EditableTextProps = Omit<EditableTextRootProps, 'children'> & {
|
|
2072
2083
|
/**
|
|
@@ -2078,7 +2089,7 @@ type EditableTextProps = Omit<EditableTextRootProps, 'children'> & {
|
|
|
2078
2089
|
* Used for inline editing of text.
|
|
2079
2090
|
*/
|
|
2080
2091
|
declare const EditableText: {
|
|
2081
|
-
({ hideLabel, ...props }: EditableTextProps): JSX.Element;
|
|
2092
|
+
({ hideLabel, ...props }: EditableTextProps): JSX$1.Element;
|
|
2082
2093
|
displayName: string;
|
|
2083
2094
|
};
|
|
2084
2095
|
|
|
@@ -2118,16 +2129,16 @@ type LabelProps = ComponentPropsWithoutRef<'label'> & {
|
|
|
2118
2129
|
* Labels are used to give a title to a form component (eg. Input, Select, etc.)
|
|
2119
2130
|
*/
|
|
2120
2131
|
declare const Label: {
|
|
2121
|
-
({ children, disabled, htmlFor, required, screenReaderOnly, ...props }: LabelProps): JSX.Element;
|
|
2132
|
+
({ children, disabled, htmlFor, required, screenReaderOnly, ...props }: LabelProps): JSX$1.Element;
|
|
2122
2133
|
displayName: string;
|
|
2123
2134
|
};
|
|
2124
2135
|
|
|
2125
2136
|
type EditableTextLabelProps = Omit<LabelProps, 'disabled' | 'htmlFor' | 'required'>;
|
|
2126
|
-
declare const EditableTextLabel: ({ ...props }: EditableTextLabelProps) => react_jsx_runtime.JSX.Element;
|
|
2137
|
+
declare const EditableTextLabel: ({ ...props }: EditableTextLabelProps) => react_jsx_runtime.JSX.Element | null;
|
|
2127
2138
|
|
|
2128
2139
|
declare const EditableTextSubmitButton: ({ children, }: {
|
|
2129
2140
|
children: ReactElement;
|
|
2130
|
-
}) => JSX.Element | null;
|
|
2141
|
+
}) => JSX$1.Element | null;
|
|
2131
2142
|
|
|
2132
2143
|
type EditableTextCancelButtonProps = {
|
|
2133
2144
|
/**
|
|
@@ -2143,7 +2154,7 @@ type EditableTextTriggerProps = {
|
|
|
2143
2154
|
*/
|
|
2144
2155
|
children: ReactElement;
|
|
2145
2156
|
};
|
|
2146
|
-
declare const EditableTextTrigger: ({ children, ...props }: EditableTextTriggerProps) => JSX.Element | null;
|
|
2157
|
+
declare const EditableTextTrigger: ({ children, ...props }: EditableTextTriggerProps) => JSX$1.Element | null;
|
|
2147
2158
|
|
|
2148
2159
|
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
2149
2160
|
/**
|
|
@@ -2167,13 +2178,13 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElemen
|
|
|
2167
2178
|
*/
|
|
2168
2179
|
monospace?: boolean;
|
|
2169
2180
|
/**
|
|
2170
|
-
* Icon to display on the left side of the input
|
|
2181
|
+
* Icon to display on the left side of the input. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2171
2182
|
*/
|
|
2172
|
-
leftIcon?:
|
|
2183
|
+
leftIcon?: ReactNode | undefined;
|
|
2173
2184
|
/**
|
|
2174
|
-
* Icon to display on the right side of the input
|
|
2185
|
+
* Icon to display on the right side of the input. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2175
2186
|
*/
|
|
2176
|
-
rightIcon?:
|
|
2187
|
+
rightIcon?: ReactNode | undefined;
|
|
2177
2188
|
/**
|
|
2178
2189
|
* The type of the input
|
|
2179
2190
|
*/
|
|
@@ -2204,13 +2215,13 @@ declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HT
|
|
|
2204
2215
|
*/
|
|
2205
2216
|
monospace?: boolean;
|
|
2206
2217
|
/**
|
|
2207
|
-
* Icon to display on the left side of the input
|
|
2218
|
+
* Icon to display on the left side of the input. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2208
2219
|
*/
|
|
2209
|
-
leftIcon?:
|
|
2220
|
+
leftIcon?: ReactNode | undefined;
|
|
2210
2221
|
/**
|
|
2211
|
-
* Icon to display on the right side of the input
|
|
2222
|
+
* Icon to display on the right side of the input. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2212
2223
|
*/
|
|
2213
|
-
rightIcon?:
|
|
2224
|
+
rightIcon?: ReactNode | undefined;
|
|
2214
2225
|
/**
|
|
2215
2226
|
* The type of the input
|
|
2216
2227
|
*/
|
|
@@ -2218,7 +2229,7 @@ declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HT
|
|
|
2218
2229
|
} & react.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
2219
2230
|
|
|
2220
2231
|
type EditableTextInputProps = Pick<InputProps, 'autoSelect'>;
|
|
2221
|
-
declare const EditableTextInput: (props: EditableTextInputProps) => JSX.Element | null;
|
|
2232
|
+
declare const EditableTextInput: (props: EditableTextInputProps) => JSX$1.Element | null;
|
|
2222
2233
|
|
|
2223
2234
|
type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
|
|
2224
2235
|
/**
|
|
@@ -2234,7 +2245,7 @@ type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
|
|
|
2234
2245
|
* Truncate text with an ellispsis visble at the end
|
|
2235
2246
|
*/
|
|
2236
2247
|
declare const Ellipsis: {
|
|
2237
|
-
({ children, lines, ...props }: EllipsisProps): JSX.Element;
|
|
2248
|
+
({ children, lines, ...props }: EllipsisProps): JSX$1.Element;
|
|
2238
2249
|
displayName: string;
|
|
2239
2250
|
};
|
|
2240
2251
|
|
|
@@ -2301,7 +2312,7 @@ type FormProps<T> = Omit<ComponentPropsWithoutRef<'form'>, 'action' | 'aria-labe
|
|
|
2301
2312
|
*/
|
|
2302
2313
|
declare const Form: <T>(props: FormProps<T> & {
|
|
2303
2314
|
ref?: Ref<HTMLFormElement>;
|
|
2304
|
-
}) => JSX.Element;
|
|
2315
|
+
}) => JSX$1.Element;
|
|
2305
2316
|
|
|
2306
2317
|
type FormErrorSummaryProps = {
|
|
2307
2318
|
description: string;
|
|
@@ -2312,7 +2323,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2312
2323
|
/**
|
|
2313
2324
|
* This should be a single child that is a valid form field (or can pretend to be one).
|
|
2314
2325
|
*/
|
|
2315
|
-
children: JSX.Element;
|
|
2326
|
+
children: JSX$1.Element;
|
|
2316
2327
|
/**
|
|
2317
2328
|
* Additional descriptive text to display below the form field
|
|
2318
2329
|
*/
|
|
@@ -2346,7 +2357,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2346
2357
|
* FormField is a compound component that combines a label, form control, and optional description and error message.
|
|
2347
2358
|
*/
|
|
2348
2359
|
declare const FormField: {
|
|
2349
|
-
({ children, description, error, id, label, labelPosition, name, value, ...props }: FormFieldProps): JSX.Element;
|
|
2360
|
+
({ children, description, error, id, label, labelPosition, name, value, ...props }: FormFieldProps): JSX$1.Element;
|
|
2350
2361
|
displayName: string;
|
|
2351
2362
|
};
|
|
2352
2363
|
|
|
@@ -2365,7 +2376,7 @@ type FormGroupProps = Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange'> & {
|
|
|
2365
2376
|
* For grouping like form elements together.
|
|
2366
2377
|
*/
|
|
2367
2378
|
declare const FormGroup: {
|
|
2368
|
-
({ children, label, description, ...props }: FormGroupProps): JSX.Element;
|
|
2379
|
+
({ children, label, description, ...props }: FormGroupProps): JSX$1.Element;
|
|
2369
2380
|
displayName: string;
|
|
2370
2381
|
};
|
|
2371
2382
|
|
|
@@ -2378,7 +2389,7 @@ type RadioGroupProps = FormGroupProps & {
|
|
|
2378
2389
|
* For grouping like form elements together. Can serve as a checkbox
|
|
2379
2390
|
*/
|
|
2380
2391
|
declare const RadioGroup: {
|
|
2381
|
-
({ children, name, onChange, value, ...props }: RadioGroupProps): JSX.Element;
|
|
2392
|
+
({ children, name, onChange, value, ...props }: RadioGroupProps): JSX$1.Element;
|
|
2382
2393
|
displayName: string;
|
|
2383
2394
|
};
|
|
2384
2395
|
|
|
@@ -2391,7 +2402,7 @@ type CheckboxGroupProps = FormGroupProps & {
|
|
|
2391
2402
|
* For grouping like form elements together. Can serve as a checkbox
|
|
2392
2403
|
*/
|
|
2393
2404
|
declare const CheckboxGroup: {
|
|
2394
|
-
({ children, name, onChange, value, ...props }: CheckboxGroupProps): JSX.Element;
|
|
2405
|
+
({ children, name, onChange, value, ...props }: CheckboxGroupProps): JSX$1.Element;
|
|
2395
2406
|
displayName: string;
|
|
2396
2407
|
};
|
|
2397
2408
|
|
|
@@ -2434,7 +2445,7 @@ type IconButtonProps = {
|
|
|
2434
2445
|
/**
|
|
2435
2446
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2436
2447
|
*/
|
|
2437
|
-
children: JSX.Element;
|
|
2448
|
+
children: JSX$1.Element;
|
|
2438
2449
|
} & (Omit<ButtonAsButtonProps, 'fullWidth' | 'leftIcon' | 'rightIcon'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'leftIcon' | 'rightIcon'>);
|
|
2439
2450
|
/**
|
|
2440
2451
|
* IconButton behaves like a [Button](?path=/docs/components-button--docs),
|
|
@@ -2448,7 +2459,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
2448
2459
|
/**
|
|
2449
2460
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2450
2461
|
*/
|
|
2451
|
-
children: JSX.Element;
|
|
2462
|
+
children: JSX$1.Element;
|
|
2452
2463
|
} & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
|
|
2453
2464
|
/**
|
|
2454
2465
|
* Accessible text for screen readers.
|
|
@@ -2457,7 +2468,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
2457
2468
|
/**
|
|
2458
2469
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2459
2470
|
*/
|
|
2460
|
-
children: JSX.Element;
|
|
2471
|
+
children: JSX$1.Element;
|
|
2461
2472
|
} & Omit<ButtonAsLinkProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
2462
2473
|
|
|
2463
2474
|
type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
@@ -2504,7 +2515,7 @@ type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
|
2504
2515
|
onError?: (event?: SyntheticEvent<HTMLImageElement>) => void;
|
|
2505
2516
|
};
|
|
2506
2517
|
declare const Image: {
|
|
2507
|
-
({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, onLoad, onError, ...props }: ImageProps): JSX.Element;
|
|
2518
|
+
({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, onLoad, onError, ...props }: ImageProps): JSX$1.Element;
|
|
2508
2519
|
displayName: string;
|
|
2509
2520
|
};
|
|
2510
2521
|
|
|
@@ -2585,7 +2596,7 @@ type KeyboardShortcutProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2585
2596
|
label?: string;
|
|
2586
2597
|
};
|
|
2587
2598
|
declare const KeyboardShortcut: {
|
|
2588
|
-
({ label, keyboardKeys, fullWidth, ...otherProps }: KeyboardShortcutProps): JSX.Element;
|
|
2599
|
+
({ label, keyboardKeys, fullWidth, ...otherProps }: KeyboardShortcutProps): JSX$1.Element;
|
|
2589
2600
|
displayName: string;
|
|
2590
2601
|
};
|
|
2591
2602
|
|
|
@@ -2607,7 +2618,7 @@ type ListProps = ComponentPropsWithoutRef<'ul'> & {
|
|
|
2607
2618
|
variant?: VariantType;
|
|
2608
2619
|
};
|
|
2609
2620
|
declare const List: {
|
|
2610
|
-
({ children, items, variant, ...otherProps }: ListProps): JSX.Element | null;
|
|
2621
|
+
({ children, items, variant, ...otherProps }: ListProps): JSX$1.Element | null;
|
|
2611
2622
|
displayName: string;
|
|
2612
2623
|
};
|
|
2613
2624
|
|
|
@@ -2618,7 +2629,7 @@ type ListItemProps = {
|
|
|
2618
2629
|
children?: ReactNode;
|
|
2619
2630
|
};
|
|
2620
2631
|
declare const ListItem: {
|
|
2621
|
-
({ children }: ListItemProps): JSX.Element | null;
|
|
2632
|
+
({ children }: ListItemProps): JSX$1.Element | null;
|
|
2622
2633
|
displayName: string;
|
|
2623
2634
|
};
|
|
2624
2635
|
|
|
@@ -2631,7 +2642,7 @@ type MarkProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2631
2642
|
* Defines text that should be marked or highlighted.
|
|
2632
2643
|
*/
|
|
2633
2644
|
declare const Mark: {
|
|
2634
|
-
({ children, colorScheme, ...props }: MarkProps): JSX.Element;
|
|
2645
|
+
({ children, colorScheme, ...props }: MarkProps): JSX$1.Element;
|
|
2635
2646
|
displayName: string;
|
|
2636
2647
|
};
|
|
2637
2648
|
|
|
@@ -2724,9 +2735,9 @@ type SubMenuProps = {
|
|
|
2724
2735
|
*/
|
|
2725
2736
|
onOpenChange?: (open: boolean) => void;
|
|
2726
2737
|
/**
|
|
2727
|
-
* Icon to display on the left side of the SubMenu
|
|
2738
|
+
* Icon to display on the left side of the SubMenu. Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
2728
2739
|
*/
|
|
2729
|
-
icon?: JSX.Element | undefined;
|
|
2740
|
+
icon?: JSX$1.Element | undefined;
|
|
2730
2741
|
};
|
|
2731
2742
|
declare const SubMenu: {
|
|
2732
2743
|
({ label, description, children, onOpenChange, ...props }: SubMenuProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2739,7 +2750,7 @@ type MenuItemButtonProps = ButtonProps & {
|
|
|
2739
2750
|
*/
|
|
2740
2751
|
appearance?: 'dangerous' | 'default' | 'gated';
|
|
2741
2752
|
/**
|
|
2742
|
-
*
|
|
2753
|
+
* Optional `Badge` to display on the MenuItem. Must be an instance of [Badge](../?path=/docs/components-badge--docs)
|
|
2743
2754
|
*/
|
|
2744
2755
|
badge?: JSX.Element;
|
|
2745
2756
|
/**
|
|
@@ -2792,11 +2803,17 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2792
2803
|
children: react.ReactNode;
|
|
2793
2804
|
colorScheme?: ColorSchemeTypes;
|
|
2794
2805
|
disabled?: boolean;
|
|
2795
|
-
leftIcon?: react.
|
|
2796
|
-
rightIcon?: react.
|
|
2806
|
+
leftIcon?: react.ReactNode | undefined;
|
|
2807
|
+
rightIcon?: react.ReactNode | undefined;
|
|
2797
2808
|
type?: LinkTypes | undefined;
|
|
2798
2809
|
underline?: "always" | "hover" | "none";
|
|
2799
|
-
} & Omit<
|
|
2810
|
+
} & Omit<react.AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & {
|
|
2811
|
+
reloadDocument?: boolean;
|
|
2812
|
+
replace?: boolean;
|
|
2813
|
+
state?: any;
|
|
2814
|
+
preventScrollReset?: boolean;
|
|
2815
|
+
viewTransition?: boolean;
|
|
2816
|
+
} & {
|
|
2800
2817
|
href: string | undefined;
|
|
2801
2818
|
type?: LinkTypes;
|
|
2802
2819
|
} & {
|
|
@@ -2806,7 +2823,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2806
2823
|
type?: LinkTypes;
|
|
2807
2824
|
} & {
|
|
2808
2825
|
appearance?: "dangerous" | "default" | "gated";
|
|
2809
|
-
badge?:
|
|
2826
|
+
badge?: JSX.Element;
|
|
2810
2827
|
children?: react.ReactNode;
|
|
2811
2828
|
command?: react.ReactNode;
|
|
2812
2829
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -2829,8 +2846,8 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2829
2846
|
children: react.ReactNode;
|
|
2830
2847
|
colorScheme?: ColorSchemeTypes;
|
|
2831
2848
|
disabled?: boolean;
|
|
2832
|
-
leftIcon?: react.
|
|
2833
|
-
rightIcon?: react.
|
|
2849
|
+
leftIcon?: react.ReactNode | undefined;
|
|
2850
|
+
rightIcon?: react.ReactNode | undefined;
|
|
2834
2851
|
type?: LinkTypes | undefined;
|
|
2835
2852
|
underline?: "always" | "hover" | "none";
|
|
2836
2853
|
} & Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
@@ -2845,7 +2862,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2845
2862
|
type?: LinkTypes;
|
|
2846
2863
|
} & {
|
|
2847
2864
|
appearance?: "dangerous" | "default" | "gated";
|
|
2848
|
-
badge?:
|
|
2865
|
+
badge?: JSX.Element;
|
|
2849
2866
|
children?: react.ReactNode;
|
|
2850
2867
|
command?: react.ReactNode;
|
|
2851
2868
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -2869,7 +2886,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
2869
2886
|
children: react.ReactNode;
|
|
2870
2887
|
} & {
|
|
2871
2888
|
appearance?: "dangerous" | "default" | "gated";
|
|
2872
|
-
badge?:
|
|
2889
|
+
badge?: JSX.Element;
|
|
2873
2890
|
children?: react.ReactNode;
|
|
2874
2891
|
command?: react.ReactNode;
|
|
2875
2892
|
icon?: ButtonProps["leftIcon"];
|
|
@@ -2919,9 +2936,9 @@ declare const MenuRadioGroup: {
|
|
|
2919
2936
|
|
|
2920
2937
|
type RadioMenuItemProps = DropdownMenuRadioItemProps & MenuItemButtonProps & {
|
|
2921
2938
|
/**
|
|
2922
|
-
*
|
|
2939
|
+
* 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
2940
|
*/
|
|
2924
|
-
indicator?:
|
|
2941
|
+
indicator?: ReactNode;
|
|
2925
2942
|
/**
|
|
2926
2943
|
* The value of the item
|
|
2927
2944
|
*/
|
|
@@ -2948,9 +2965,9 @@ type CheckboxMenuItemProps = DropdownMenuCheckboxItemProps & MenuItemButtonProps
|
|
|
2948
2965
|
/** Callback to fire when the checked status changes */
|
|
2949
2966
|
onCheckedChange: (checked: boolean) => void;
|
|
2950
2967
|
/**
|
|
2951
|
-
*
|
|
2968
|
+
* 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
2969
|
*/
|
|
2953
|
-
indicator?:
|
|
2970
|
+
indicator?: ReactNode;
|
|
2954
2971
|
/**
|
|
2955
2972
|
* The checked state of the menu item
|
|
2956
2973
|
*/
|
|
@@ -2994,7 +3011,7 @@ type FilterMenuProps = MenuProps & {
|
|
|
2994
3011
|
declare const FilterMenuItem: {
|
|
2995
3012
|
({ onSelect, checked, onCheckedChange, ...props }: _radix_ui_react_dropdown_menu.DropdownMenuCheckboxItemProps & (MenuItemButtonProps & {
|
|
2996
3013
|
onCheckedChange: (checked: boolean) => void;
|
|
2997
|
-
indicator?: react.
|
|
3014
|
+
indicator?: react.ReactNode;
|
|
2998
3015
|
checked: boolean;
|
|
2999
3016
|
href?: never;
|
|
3000
3017
|
isLoading?: never;
|
|
@@ -3126,7 +3143,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
3126
3143
|
/**
|
|
3127
3144
|
* An interactive element. Most commonly a [Button](?path=/docs/components-button--docs) or [IconButton]([Button](?path=/docs/components-iconbutton--docs)).
|
|
3128
3145
|
*/
|
|
3129
|
-
trigger: JSX.Element;
|
|
3146
|
+
trigger: JSX$1.Element;
|
|
3130
3147
|
/**
|
|
3131
3148
|
* If true, the popover will use the unstyled Content component instead of StyledContent
|
|
3132
3149
|
*/
|
|
@@ -3145,7 +3162,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
3145
3162
|
* Displays rich content in a portal, triggered by a button.
|
|
3146
3163
|
*/
|
|
3147
3164
|
declare const Popover: {
|
|
3148
|
-
({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, withArrow, isAnimated, colorScheme, ...props }: PopoverProps): JSX.Element;
|
|
3165
|
+
({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, withArrow, isAnimated, colorScheme, ...props }: PopoverProps): JSX$1.Element;
|
|
3149
3166
|
displayName: string;
|
|
3150
3167
|
};
|
|
3151
3168
|
|
|
@@ -3175,7 +3192,7 @@ type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
3175
3192
|
* A progress component that visually represents the completion status of a task
|
|
3176
3193
|
*/
|
|
3177
3194
|
declare const ProgressBar: {
|
|
3178
|
-
({ progress, max, children, labelLeft, labelRight, colorScheme, ...props }: ProgressBarProps): JSX.Element;
|
|
3195
|
+
({ progress, max, children, labelLeft, labelRight, colorScheme, ...props }: ProgressBarProps): JSX$1.Element;
|
|
3179
3196
|
displayName: string;
|
|
3180
3197
|
};
|
|
3181
3198
|
|
|
@@ -3200,11 +3217,11 @@ type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'hideLabel' | 'label'
|
|
|
3200
3217
|
/**
|
|
3201
3218
|
* The label for the input
|
|
3202
3219
|
*/
|
|
3203
|
-
label:
|
|
3220
|
+
label: ReactNode;
|
|
3204
3221
|
/**
|
|
3205
3222
|
* The description for the radio
|
|
3206
3223
|
*/
|
|
3207
|
-
description?:
|
|
3224
|
+
description?: ReactNode | undefined;
|
|
3208
3225
|
/**
|
|
3209
3226
|
* Should match the ID attribute of the radio.
|
|
3210
3227
|
* Can be used to group together multiple radios
|
|
@@ -3251,11 +3268,11 @@ declare const Radio: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTM
|
|
|
3251
3268
|
/**
|
|
3252
3269
|
* The label for the input
|
|
3253
3270
|
*/
|
|
3254
|
-
label:
|
|
3271
|
+
label: ReactNode;
|
|
3255
3272
|
/**
|
|
3256
3273
|
* The description for the radio
|
|
3257
3274
|
*/
|
|
3258
|
-
description?:
|
|
3275
|
+
description?: ReactNode | undefined;
|
|
3259
3276
|
/**
|
|
3260
3277
|
* Should match the ID attribute of the radio.
|
|
3261
3278
|
* Can be used to group together multiple radios
|
|
@@ -3287,7 +3304,7 @@ type RadioCardDefaultLayoutProps = {
|
|
|
3287
3304
|
/**
|
|
3288
3305
|
* The icon to display
|
|
3289
3306
|
*/
|
|
3290
|
-
icon?: JSX.Element | undefined;
|
|
3307
|
+
icon?: JSX$1.Element | undefined;
|
|
3291
3308
|
/**
|
|
3292
3309
|
* The main label text for the card.
|
|
3293
3310
|
*
|
|
@@ -3504,7 +3521,7 @@ type IconWithLabel$1 = {
|
|
|
3504
3521
|
/**
|
|
3505
3522
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3506
3523
|
*/
|
|
3507
|
-
icon?: JSX.Element;
|
|
3524
|
+
icon?: JSX$1.Element;
|
|
3508
3525
|
/**
|
|
3509
3526
|
* The label of the item
|
|
3510
3527
|
*/
|
|
@@ -3515,7 +3532,7 @@ type IconWithAriaLabel$1 = {
|
|
|
3515
3532
|
/**
|
|
3516
3533
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3517
3534
|
*/
|
|
3518
|
-
icon?: JSX.Element;
|
|
3535
|
+
icon?: JSX$1.Element;
|
|
3519
3536
|
/**
|
|
3520
3537
|
* Use this when displaying an icon without a label
|
|
3521
3538
|
*/
|
|
@@ -3664,7 +3681,7 @@ type SliderProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> & {
|
|
|
3664
3681
|
value?: number[];
|
|
3665
3682
|
};
|
|
3666
3683
|
declare const Slider: {
|
|
3667
|
-
({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, disabled, initialValue, max, min, onChange, step, value, "data-testid": dataTestId, ...otherProps }: SliderProps): JSX.Element;
|
|
3684
|
+
({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, disabled, initialValue, max, min, onChange, step, value, "data-testid": dataTestId, ...otherProps }: SliderProps): JSX$1.Element;
|
|
3668
3685
|
displayName: string;
|
|
3669
3686
|
};
|
|
3670
3687
|
|
|
@@ -3720,11 +3737,11 @@ type SwitchProps = Omit<ComponentPropsWithoutRef<'input'>, 'hideLabel' | 'label'
|
|
|
3720
3737
|
/**
|
|
3721
3738
|
* The label for the switch
|
|
3722
3739
|
*/
|
|
3723
|
-
label:
|
|
3740
|
+
label: ReactNode;
|
|
3724
3741
|
/**
|
|
3725
3742
|
* The description for the switch
|
|
3726
3743
|
*/
|
|
3727
|
-
description?:
|
|
3744
|
+
description?: ReactNode | undefined;
|
|
3728
3745
|
/**
|
|
3729
3746
|
* The name of the switch. Submitted with its owning form as part of a name/value pair.
|
|
3730
3747
|
*/
|
|
@@ -3770,11 +3787,11 @@ declare const Switch: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
|
|
|
3770
3787
|
/**
|
|
3771
3788
|
* The label for the switch
|
|
3772
3789
|
*/
|
|
3773
|
-
label:
|
|
3790
|
+
label: ReactNode;
|
|
3774
3791
|
/**
|
|
3775
3792
|
* The description for the switch
|
|
3776
3793
|
*/
|
|
3777
|
-
description?:
|
|
3794
|
+
description?: ReactNode | undefined;
|
|
3778
3795
|
/**
|
|
3779
3796
|
* The name of the switch. Submitted with its owning form as part of a name/value pair.
|
|
3780
3797
|
*/
|
|
@@ -3804,23 +3821,23 @@ declare const Switch: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
|
|
|
3804
3821
|
type TableBodyProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3805
3822
|
children?: ReactNode;
|
|
3806
3823
|
};
|
|
3807
|
-
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX.Element;
|
|
3824
|
+
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX$1.Element;
|
|
3808
3825
|
|
|
3809
3826
|
type CellAttrs = Omit<react__default.TdHTMLAttributes<HTMLTableCellElement>, 'ref'> & Omit<react__default.ThHTMLAttributes<HTMLTableCellElement>, 'ref'>;
|
|
3810
3827
|
type TableCellProps = CellAttrs & {
|
|
3811
3828
|
children?: ReactNode;
|
|
3812
3829
|
};
|
|
3813
|
-
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX.Element;
|
|
3830
|
+
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX$1.Element;
|
|
3814
3831
|
|
|
3815
3832
|
type TableFootProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3816
3833
|
children?: ReactNode;
|
|
3817
3834
|
};
|
|
3818
|
-
declare const TableFoot: ({ children, ...props }: TableFootProps) => JSX.Element;
|
|
3835
|
+
declare const TableFoot: ({ children, ...props }: TableFootProps) => JSX$1.Element;
|
|
3819
3836
|
|
|
3820
3837
|
type TableHeadProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
3821
3838
|
children?: ReactNode;
|
|
3822
3839
|
};
|
|
3823
|
-
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX.Element;
|
|
3840
|
+
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX$1.Element;
|
|
3824
3841
|
|
|
3825
3842
|
type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
3826
3843
|
/**
|
|
@@ -3845,22 +3862,22 @@ type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
|
3845
3862
|
/**
|
|
3846
3863
|
* Semantic table element for presenting data
|
|
3847
3864
|
*/
|
|
3848
|
-
declare const Table: ({ children, divided, striped, visuallyHiddenHeader, ...props }: TableProps) => JSX.Element;
|
|
3865
|
+
declare const Table: ({ children, divided, striped, visuallyHiddenHeader, ...props }: TableProps) => JSX$1.Element;
|
|
3849
3866
|
|
|
3850
3867
|
type TableRowProps = HTMLAttributes<HTMLTableRowElement> & {
|
|
3851
3868
|
children?: ReactNode;
|
|
3852
3869
|
};
|
|
3853
|
-
declare const TableRow: ({ children, ...props }: TableRowProps) => JSX.Element;
|
|
3870
|
+
declare const TableRow: ({ children, ...props }: TableRowProps) => JSX$1.Element;
|
|
3854
3871
|
|
|
3855
3872
|
type TabsProps = Pick<TabsProps$1, 'children' | 'defaultValue' | 'onValueChange' | 'value'>;
|
|
3856
3873
|
declare const Tabs: {
|
|
3857
|
-
({ children, value: valueProp, onValueChange: onValueChangeProp, defaultValue, ...props }: TabsProps): JSX.Element;
|
|
3874
|
+
({ children, value: valueProp, onValueChange: onValueChangeProp, defaultValue, ...props }: TabsProps): JSX$1.Element;
|
|
3858
3875
|
displayName: string;
|
|
3859
3876
|
};
|
|
3860
3877
|
|
|
3861
3878
|
type TabsContentProps = Pick<TabsContentProps$1, 'children' | 'value'>;
|
|
3862
3879
|
declare const TabsContent: {
|
|
3863
|
-
({ children, value }: TabsContentProps): JSX.Element;
|
|
3880
|
+
({ children, value }: TabsContentProps): JSX$1.Element;
|
|
3864
3881
|
displayName: string;
|
|
3865
3882
|
};
|
|
3866
3883
|
|
|
@@ -3868,7 +3885,7 @@ type TabsListProps = Pick<TabsListProps$1, 'aria-label'> & PropsWithChildren<{
|
|
|
3868
3885
|
fullWidth?: boolean;
|
|
3869
3886
|
}>;
|
|
3870
3887
|
declare const TabsList: {
|
|
3871
|
-
({ children, fullWidth, ...props }: TabsListProps): JSX.Element;
|
|
3888
|
+
({ children, fullWidth, ...props }: TabsListProps): JSX$1.Element;
|
|
3872
3889
|
displayName: string;
|
|
3873
3890
|
};
|
|
3874
3891
|
|
|
@@ -3877,7 +3894,7 @@ type IconWithLabel = {
|
|
|
3877
3894
|
/**
|
|
3878
3895
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3879
3896
|
*/
|
|
3880
|
-
icon?: JSX.Element;
|
|
3897
|
+
icon?: JSX$1.Element;
|
|
3881
3898
|
/**
|
|
3882
3899
|
* The label of the item
|
|
3883
3900
|
*/
|
|
@@ -3888,7 +3905,7 @@ type IconWithAriaLabel = {
|
|
|
3888
3905
|
/**
|
|
3889
3906
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3890
3907
|
*/
|
|
3891
|
-
icon?: JSX.Element;
|
|
3908
|
+
icon?: JSX$1.Element;
|
|
3892
3909
|
/**
|
|
3893
3910
|
* Use this when displaying an icon without a label
|
|
3894
3911
|
*/
|
|
@@ -3918,7 +3935,7 @@ type TagProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
3918
3935
|
/**
|
|
3919
3936
|
* Optional icon to display before the label
|
|
3920
3937
|
*/
|
|
3921
|
-
icon?: JSX.Element | undefined;
|
|
3938
|
+
icon?: JSX$1.Element | undefined;
|
|
3922
3939
|
/**
|
|
3923
3940
|
* Text label for the `Tag`
|
|
3924
3941
|
*/
|
|
@@ -3947,7 +3964,7 @@ declare const Tag: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<
|
|
|
3947
3964
|
/**
|
|
3948
3965
|
* Optional icon to display before the label
|
|
3949
3966
|
*/
|
|
3950
|
-
icon?: JSX.Element | undefined;
|
|
3967
|
+
icon?: JSX$1.Element | undefined;
|
|
3951
3968
|
/**
|
|
3952
3969
|
* Text label for the `Tag`
|
|
3953
3970
|
*/
|
|
@@ -3966,14 +3983,14 @@ type ThumbnailBadgeProps = {
|
|
|
3966
3983
|
/**
|
|
3967
3984
|
* Icon to display on the left side of the badge
|
|
3968
3985
|
*/
|
|
3969
|
-
icon?: JSX.Element | undefined;
|
|
3986
|
+
icon?: JSX$1.Element | undefined;
|
|
3970
3987
|
/**
|
|
3971
3988
|
* Text content to display in the badge
|
|
3972
3989
|
*/
|
|
3973
3990
|
label: string;
|
|
3974
3991
|
};
|
|
3975
3992
|
declare const ThumbnailBadge: {
|
|
3976
|
-
({ icon, label, ...props }: ThumbnailBadgeProps): JSX.Element;
|
|
3993
|
+
({ icon, label, ...props }: ThumbnailBadgeProps): JSX$1.Element;
|
|
3977
3994
|
displayName: string;
|
|
3978
3995
|
};
|
|
3979
3996
|
|
|
@@ -4091,7 +4108,7 @@ type ThumbnailCollageProps = {
|
|
|
4091
4108
|
* It supports up to 3 thumbnails arranged in different configurations based on the number of children provided.
|
|
4092
4109
|
* If no thumbnails are provided, it displays a fallback thumbnail with a gradient background.
|
|
4093
4110
|
*/
|
|
4094
|
-
declare const ThumbnailCollage: ({ children, gradientBackground, ...props }: ThumbnailCollageProps) => JSX.Element;
|
|
4111
|
+
declare const ThumbnailCollage: ({ children, gradientBackground, ...props }: ThumbnailCollageProps) => JSX$1.Element;
|
|
4095
4112
|
|
|
4096
4113
|
type TooltipProps = {
|
|
4097
4114
|
/**
|
|
@@ -4132,7 +4149,7 @@ type TooltipProps = {
|
|
|
4132
4149
|
*
|
|
4133
4150
|
*/
|
|
4134
4151
|
declare const Tooltip: {
|
|
4135
|
-
({ delay, direction, content, children, forceOpen, hideArrow, container, }: TooltipProps): JSX.Element;
|
|
4152
|
+
({ delay, direction, content, children, forceOpen, hideArrow, container, }: TooltipProps): JSX$1.Element;
|
|
4136
4153
|
displayName: string;
|
|
4137
4154
|
};
|
|
4138
4155
|
|
|
@@ -4181,4 +4198,48 @@ declare const WistiaLogo: {
|
|
|
4181
4198
|
displayName: string;
|
|
4182
4199
|
};
|
|
4183
4200
|
|
|
4184
|
-
|
|
4201
|
+
type SplitButtonProps = {
|
|
4202
|
+
/**
|
|
4203
|
+
* The text for the primary button
|
|
4204
|
+
*/
|
|
4205
|
+
children?: ButtonProps['children'];
|
|
4206
|
+
colorScheme?: ButtonProps['colorScheme'];
|
|
4207
|
+
/**
|
|
4208
|
+
* The icon to use for the menu toggle, defaults to a down caret
|
|
4209
|
+
* @default <Icon type="caret-down" />
|
|
4210
|
+
*/
|
|
4211
|
+
menuIcon?: JSX$1.Element;
|
|
4212
|
+
/**
|
|
4213
|
+
* 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.
|
|
4214
|
+
*/
|
|
4215
|
+
menuItems?: ReactNode;
|
|
4216
|
+
/**
|
|
4217
|
+
* The label to use for the menu, only for screenreaders
|
|
4218
|
+
*/
|
|
4219
|
+
menuLabel?: string;
|
|
4220
|
+
/**
|
|
4221
|
+
* If using `menuItems`, any additional props to pass to the `Menu` component
|
|
4222
|
+
*/
|
|
4223
|
+
menuProps?: Omit<ComponentProps<typeof Menu>, 'children' | 'disabled' | 'trigger'>;
|
|
4224
|
+
/**
|
|
4225
|
+
* Secondary action should not be used when menuItems is set
|
|
4226
|
+
*/
|
|
4227
|
+
secondaryAction?: JSX$1.Element;
|
|
4228
|
+
/**
|
|
4229
|
+
* The size of button to display. Can be used as a [responsive prop](/docs/ui-docs-responsive-props--docs)
|
|
4230
|
+
*/
|
|
4231
|
+
size?: ButtonSizes | ResponsiveObject<ButtonSizes>;
|
|
4232
|
+
/**
|
|
4233
|
+
* A visual style for the button
|
|
4234
|
+
*/
|
|
4235
|
+
variant?: ButtonVariants;
|
|
4236
|
+
} & (ButtonAsButtonProps | ButtonAsLinkProps);
|
|
4237
|
+
/**
|
|
4238
|
+
* A SplitButton is an extension of [Button]() that adds a menu to the right hand side of the button.
|
|
4239
|
+
*/
|
|
4240
|
+
declare const SplitButton: {
|
|
4241
|
+
({ children, menuLabel, menuIcon, menuItems, disabled, colorScheme, variant, secondaryAction, size, unstyled, menuProps, ...props }: SplitButtonProps): JSX$1.Element;
|
|
4242
|
+
displayName: string;
|
|
4243
|
+
};
|
|
4244
|
+
|
|
4245
|
+
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 };
|