widenarrow-ui 2.4.11 → 2.5.0
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/lib/index.css +1 -1
- package/lib/index.d.ts +122 -80
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +16 -12
package/lib/index.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ declare enum IconTypes {
|
|
|
73
73
|
CLASSIFICATION_SPARKLE = "iconClassificationSparkle",
|
|
74
74
|
CLIP_BOARD = "iconClipBoard",
|
|
75
75
|
CO_PILOT = "iconCoPilot",
|
|
76
|
+
CODE = "iconCode",
|
|
76
77
|
COLOR_FORMAT = "iconColorFormat",
|
|
77
78
|
COMMENT = "iconComment",
|
|
78
79
|
COMMENT_SPARKLE = "iconCommentSparkle",
|
|
@@ -83,6 +84,7 @@ declare enum IconTypes {
|
|
|
83
84
|
CROSS = "iconCross",
|
|
84
85
|
CROSS_CIRCLE_200 = "iconCrossCircle200",
|
|
85
86
|
CROSS_CIRCLE_300 = "iconCrossCircle300",
|
|
87
|
+
CSV = "iconCsv",
|
|
86
88
|
DASHBOARD_200 = "iconDashboard200",
|
|
87
89
|
DASHBOARD_300 = "iconDashboard300",
|
|
88
90
|
DASHBOARD_FILLED = "iconDashboardFilled",
|
|
@@ -103,6 +105,7 @@ declare enum IconTypes {
|
|
|
103
105
|
EMERGING = "iconEmerging",
|
|
104
106
|
ERROR = "iconError",
|
|
105
107
|
ETHERNET = "iconEthernet",
|
|
108
|
+
EXCEL = "iconExcel",
|
|
106
109
|
EXIT_TO_APP = "iconExitToApp",
|
|
107
110
|
EXPAND = "iconExpand",
|
|
108
111
|
EXPAND_ARROWS = "iconExpandArrows",
|
|
@@ -155,6 +158,7 @@ declare enum IconTypes {
|
|
|
155
158
|
LIST_MODE = "iconListMode",
|
|
156
159
|
LIST_MODE_FILLED = "iconListModeFilled",
|
|
157
160
|
LOCK = "iconLock",
|
|
161
|
+
MARKDOWN = "iconMarkdown",
|
|
158
162
|
MASONRY = "iconMasonry",
|
|
159
163
|
MENU = "iconMenu",
|
|
160
164
|
MERGE_CELLS = "iconMergeCells",
|
|
@@ -300,6 +304,7 @@ declare enum IconTypes {
|
|
|
300
304
|
WARNING = "iconWarning",
|
|
301
305
|
WARNING_FILLED = "iconWarningFilled",
|
|
302
306
|
WILL_BE_DELETED = "iconWillBeDeleted",
|
|
307
|
+
WORD = "iconWord",
|
|
303
308
|
WORKSPACE_200 = "iconWorkspace200",
|
|
304
309
|
WORKSPACE_300 = "iconWorkspace300",
|
|
305
310
|
WORKSPACE_FILLED = "iconWorkspaceFilled",
|
|
@@ -436,61 +441,6 @@ declare enum AppColors {
|
|
|
436
441
|
MAIN_DARK = "#030718"
|
|
437
442
|
}
|
|
438
443
|
|
|
439
|
-
interface BadgeItem {
|
|
440
|
-
id: string | number;
|
|
441
|
-
name: string;
|
|
442
|
-
allUsers?: boolean;
|
|
443
|
-
type?: string;
|
|
444
|
-
}
|
|
445
|
-
interface BadgeProps {
|
|
446
|
-
badgeItem: BadgeItem;
|
|
447
|
-
className?: string;
|
|
448
|
-
/** Lets the badge fill the available width instead of being capped by `maxWidth`. */
|
|
449
|
-
displayAll?: boolean;
|
|
450
|
-
leftIcon?: Partial<IconTypes>;
|
|
451
|
-
/** CSS width expression, i.e. `calc(100% - 20px)`. Ignored when `displayAll` is set. */
|
|
452
|
-
maxWidth?: string;
|
|
453
|
-
style?: CSSProperties;
|
|
454
|
-
/** Renders the label as a button. */
|
|
455
|
-
onClickCallback?: (badgeItem: BadgeItem) => void;
|
|
456
|
-
/** Renders a remove (X) button after the label. */
|
|
457
|
-
onRemoveCallback?: (badgeItem: BadgeItem) => void;
|
|
458
|
-
/** Accessible name and tooltip for the remove button. Set it whenever `onRemoveCallback` is. */
|
|
459
|
-
removeLabel?: string;
|
|
460
|
-
/** Ref to the remove button, e.g. to move focus to it. Only set while `onRemoveCallback` is. */
|
|
461
|
-
removeButtonRef?: RefObject<HTMLButtonElement>;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
declare const Badge: {
|
|
465
|
-
({ badgeItem, className, displayAll, leftIcon, maxWidth, style, onClickCallback, onRemoveCallback, removeLabel, removeButtonRef }: BadgeProps): JSX.Element;
|
|
466
|
-
displayName: string;
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
interface BadgeListProps {
|
|
470
|
-
/** Either `BadgeItem` objects or ready-made badge components. Entries that render nothing are dropped. */
|
|
471
|
-
badgeArray: Array<BadgeItem> | Array<ReactElement>;
|
|
472
|
-
/** How many badges to show before the rest move into the dropdown. `0` shows all of them. */
|
|
473
|
-
numberToDisplay: number;
|
|
474
|
-
className?: string;
|
|
475
|
-
dropDownTitle?: string;
|
|
476
|
-
/** Reveals the overflow inline behind a toggle instead of in a dropdown. */
|
|
477
|
-
withToggleShowAll?: boolean;
|
|
478
|
-
wrapBadges?: boolean;
|
|
479
|
-
/** Styles the overflow toggle as a link. */
|
|
480
|
-
displayAsLinks?: boolean;
|
|
481
|
-
/** Label for the toggle once the overflow is open. Falls back to `- N`. Pass a translated string. */
|
|
482
|
-
showLessText?: string;
|
|
483
|
-
onClickCallback?: (badgeItem: BadgeItem) => void;
|
|
484
|
-
onRemoveCallback?: (badgeItem: BadgeItem) => void;
|
|
485
|
-
/** Accessible name and tooltip for each remove button. Set it whenever `onRemoveCallback` is. */
|
|
486
|
-
removeLabel?: string;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
declare const BadgeList: {
|
|
490
|
-
({ badgeArray, numberToDisplay, className, dropDownTitle, withToggleShowAll, wrapBadges, displayAsLinks, showLessText, onClickCallback, onRemoveCallback, removeLabel }: BadgeListProps): JSX.Element | null;
|
|
491
|
-
displayName: string;
|
|
492
|
-
};
|
|
493
|
-
|
|
494
444
|
interface MarginInterface {
|
|
495
445
|
margin?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25' | 'auto';
|
|
496
446
|
marginX?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25' | 'auto';
|
|
@@ -540,8 +490,31 @@ interface ColorStyleInterface {
|
|
|
540
490
|
interface SizeStyleInterface {
|
|
541
491
|
size?: Partial<SizeTypes>;
|
|
542
492
|
}
|
|
493
|
+
/** Two icons combined: `cornerIcon` is placed in a corner of `icon`, on a cut-out that keeps it legible */
|
|
494
|
+
interface CombinedIcon {
|
|
495
|
+
/** The main icon */
|
|
496
|
+
icon: Partial<IconTypes>;
|
|
497
|
+
/** Secondary icon drawn in a corner, cut out of the main icon. Uses the main icon's color */
|
|
498
|
+
cornerIcon: Partial<IconTypes>;
|
|
499
|
+
/**
|
|
500
|
+
* Which corner of the main icon the corner icon is placed in
|
|
501
|
+
* @default 'bottom-right'
|
|
502
|
+
*/
|
|
503
|
+
cornerPosition?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
504
|
+
/**
|
|
505
|
+
* Thickens the corner icon to compensate for the thinner strokes caused by scaling it down.
|
|
506
|
+
* Grows its outline by this many units on the main icon's 24px grid. Typically 0-0.5.
|
|
507
|
+
* @default 0.25
|
|
508
|
+
*/
|
|
509
|
+
weightCompensation?: number;
|
|
510
|
+
/**
|
|
511
|
+
* Accessible name for what the combination means, e.g. "Locked document". Without it the icon is
|
|
512
|
+
* hidden from assistive technology, which suits icons inside a control that has its own label.
|
|
513
|
+
*/
|
|
514
|
+
ariaLabel?: string;
|
|
515
|
+
}
|
|
543
516
|
interface IconStyleInterface {
|
|
544
|
-
icon?: Partial<IconTypes
|
|
517
|
+
icon?: Partial<IconTypes> | CombinedIcon;
|
|
545
518
|
}
|
|
546
519
|
declare const paddingClassNames: ({ padding, paddingX, paddingY, paddingTop, paddingBottom, paddingRight, paddingLeft }: PaddingInterface) => {
|
|
547
520
|
[x: string]: boolean;
|
|
@@ -559,6 +532,66 @@ declare const borderClassNames: ({ borderColor, border, borderTop, borderLeft, b
|
|
|
559
532
|
[x: string]: boolean;
|
|
560
533
|
};
|
|
561
534
|
|
|
535
|
+
interface BadgeItem {
|
|
536
|
+
id: string | number;
|
|
537
|
+
name: string;
|
|
538
|
+
allUsers?: boolean;
|
|
539
|
+
type?: string;
|
|
540
|
+
}
|
|
541
|
+
interface BadgeProps {
|
|
542
|
+
badgeItem: BadgeItem;
|
|
543
|
+
className?: string;
|
|
544
|
+
/** Lets the badge fill the available width instead of being capped by `maxWidth`. */
|
|
545
|
+
displayAll?: boolean;
|
|
546
|
+
leftIcon?: Partial<IconTypes> | CombinedIcon;
|
|
547
|
+
/**
|
|
548
|
+
* Height and text size of the badge.
|
|
549
|
+
* @default SizeTypes.MEDIUM
|
|
550
|
+
*/
|
|
551
|
+
size?: SizeTypes.SMALL | SizeTypes.MEDIUM;
|
|
552
|
+
/** CSS width expression, i.e. `calc(100% - 20px)`. Ignored when `displayAll` is set. */
|
|
553
|
+
maxWidth?: string;
|
|
554
|
+
style?: CSSProperties;
|
|
555
|
+
/** Renders the label as a button. */
|
|
556
|
+
onClickCallback?: (badgeItem: BadgeItem) => void;
|
|
557
|
+
/** Renders a remove (X) button after the label. */
|
|
558
|
+
onRemoveCallback?: (badgeItem: BadgeItem) => void;
|
|
559
|
+
/** Accessible name and tooltip for the remove button. Set it whenever `onRemoveCallback` is. */
|
|
560
|
+
removeLabel?: string;
|
|
561
|
+
/** Ref to the remove button, e.g. to move focus to it. Only set while `onRemoveCallback` is. */
|
|
562
|
+
removeButtonRef?: RefObject<HTMLButtonElement>;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
declare const Badge: {
|
|
566
|
+
({ badgeItem, className, displayAll, leftIcon, size, maxWidth, style, onClickCallback, onRemoveCallback, removeLabel, removeButtonRef }: BadgeProps): JSX.Element;
|
|
567
|
+
displayName: string;
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
interface BadgeListProps {
|
|
571
|
+
/** Either `BadgeItem` objects or ready-made badge components. Entries that render nothing are dropped. */
|
|
572
|
+
badgeArray: Array<BadgeItem> | Array<ReactElement>;
|
|
573
|
+
/** How many badges to show before the rest move into the dropdown. `0` shows all of them. */
|
|
574
|
+
numberToDisplay: number;
|
|
575
|
+
className?: string;
|
|
576
|
+
dropDownTitle?: string;
|
|
577
|
+
/** Reveals the overflow inline behind a toggle instead of in a dropdown. */
|
|
578
|
+
withToggleShowAll?: boolean;
|
|
579
|
+
wrapBadges?: boolean;
|
|
580
|
+
/** Styles the overflow toggle as a link. */
|
|
581
|
+
displayAsLinks?: boolean;
|
|
582
|
+
/** Label for the toggle once the overflow is open. Falls back to `- N`. Pass a translated string. */
|
|
583
|
+
showLessText?: string;
|
|
584
|
+
onClickCallback?: (badgeItem: BadgeItem) => void;
|
|
585
|
+
onRemoveCallback?: (badgeItem: BadgeItem) => void;
|
|
586
|
+
/** Accessible name and tooltip for each remove button. Set it whenever `onRemoveCallback` is. */
|
|
587
|
+
removeLabel?: string;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
declare const BadgeList: {
|
|
591
|
+
({ badgeArray, numberToDisplay, className, dropDownTitle, withToggleShowAll, wrapBadges, displayAsLinks, showLessText, onClickCallback, onRemoveCallback, removeLabel }: BadgeListProps): JSX.Element | null;
|
|
592
|
+
displayName: string;
|
|
593
|
+
};
|
|
594
|
+
|
|
562
595
|
interface BoxProps extends MarginInterface, PaddingInterface, BorderInterface, FlexStylingInterface {
|
|
563
596
|
children?: react__default.ReactNode;
|
|
564
597
|
id?: string;
|
|
@@ -590,13 +623,13 @@ interface ButtonProps {
|
|
|
590
623
|
sizeMd?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
591
624
|
sizeLg?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
592
625
|
sizeXl?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
593
|
-
icon?: Partial<IconTypes
|
|
626
|
+
icon?: Partial<IconTypes> | CombinedIcon;
|
|
594
627
|
iconColor?: Partial<ColorTypes>;
|
|
595
628
|
iconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE | SizeTypes.AUTO;
|
|
596
629
|
/** @default false */
|
|
597
630
|
withIconRight?: boolean;
|
|
598
|
-
leftIcon?: Partial<IconTypes
|
|
599
|
-
rightIcon?: Partial<IconTypes
|
|
631
|
+
leftIcon?: Partial<IconTypes> | CombinedIcon;
|
|
632
|
+
rightIcon?: Partial<IconTypes> | CombinedIcon;
|
|
600
633
|
/** @default false */
|
|
601
634
|
disabled?: boolean;
|
|
602
635
|
className?: string;
|
|
@@ -661,7 +694,7 @@ declare const Checkbox: FC<CheckboxProps>;
|
|
|
661
694
|
interface NoDataMessageProps {
|
|
662
695
|
id?: string;
|
|
663
696
|
className?: string;
|
|
664
|
-
icon?: Partial<IconTypes
|
|
697
|
+
icon?: Partial<IconTypes> | CombinedIcon;
|
|
665
698
|
title?: string;
|
|
666
699
|
message?: string;
|
|
667
700
|
/** @default false */
|
|
@@ -670,7 +703,7 @@ interface NoDataMessageProps {
|
|
|
670
703
|
button?: {
|
|
671
704
|
onClickCallback: () => void;
|
|
672
705
|
text: string;
|
|
673
|
-
icon: Partial<IconTypes
|
|
706
|
+
icon: Partial<IconTypes> | CombinedIcon;
|
|
674
707
|
};
|
|
675
708
|
}
|
|
676
709
|
|
|
@@ -699,7 +732,7 @@ interface OptionItem {
|
|
|
699
732
|
* Icon before the text. In a Combobox with `multiple`, also shown on the option's pill. Not shown
|
|
700
733
|
* in the field of a single value, nor with `nativeHtmlComponent`.
|
|
701
734
|
*/
|
|
702
|
-
leftIcon?: IconTypes;
|
|
735
|
+
leftIcon?: Partial<IconTypes> | CombinedIcon;
|
|
703
736
|
/**
|
|
704
737
|
* Component before the text, e.g. an avatar or a logo. Shown in the list in place of `leftIcon`,
|
|
705
738
|
* while pills keep showing `leftIcon`. It doesn't make the option higher, so keep it to the size of an
|
|
@@ -854,7 +887,8 @@ interface ComboboxBaseProps {
|
|
|
854
887
|
onLoadMoreCallback?: () => void;
|
|
855
888
|
/**
|
|
856
889
|
* Let the value be cleared: with a button while there is one, and for a single value also by deleting
|
|
857
|
-
* all text in the input. Without it, a value can only be replaced by another.
|
|
890
|
+
* all text in the input. Without it, a value can only be replaced by another. Not shown with
|
|
891
|
+
* `withPills={false}`. @default true
|
|
858
892
|
*/
|
|
859
893
|
withClearButton?: boolean;
|
|
860
894
|
/** Accessible names of the clear, toggle and pill remove buttons, e.g. to translate them. */
|
|
@@ -920,6 +954,14 @@ interface ComboboxMultipleProps extends ComboboxBaseProps {
|
|
|
920
954
|
onChange: (value: Array<ComboboxValue>) => void;
|
|
921
955
|
/** Only with `multiple`: pills shown in the field. The rest are behind a "+ N" button that lists them, as in BadgeList. @default 5 */
|
|
922
956
|
maxVisiblePills?: number;
|
|
957
|
+
/**
|
|
958
|
+
* Only with `multiple`: show the selected values as pills in the field. When false the field holds just
|
|
959
|
+
* the input, e.g. when the selection is shown elsewhere. The selected options stay checked in the list,
|
|
960
|
+
* the placeholder stays shown, there is no clear button, and Backspace in the empty input no longer
|
|
961
|
+
* removes the last value.
|
|
962
|
+
* @default true
|
|
963
|
+
*/
|
|
964
|
+
withPills?: boolean;
|
|
923
965
|
}
|
|
924
966
|
type ComboboxProps = ComboboxSingleProps | ComboboxMultipleProps;
|
|
925
967
|
|
|
@@ -933,7 +975,7 @@ interface CardProps extends PaddingInterface, MarginInterface, FlexStylingInterf
|
|
|
933
975
|
onClickCallback?: () => void;
|
|
934
976
|
/** @default AspectRatioTypes.ar16_9 */
|
|
935
977
|
imageAspectRatio?: Partial<AspectRatioTypes>;
|
|
936
|
-
imageIcon?: Partial<IconTypes
|
|
978
|
+
imageIcon?: Partial<IconTypes> | CombinedIcon;
|
|
937
979
|
imageIconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE | SizeTypes.AUTO | undefined;
|
|
938
980
|
/** @default false */
|
|
939
981
|
withEllipsis?: boolean;
|
|
@@ -1142,8 +1184,8 @@ interface DropDownItemProps {
|
|
|
1142
1184
|
/** @default 'li' */
|
|
1143
1185
|
wrapperElement?: 'div' | 'li';
|
|
1144
1186
|
className?: string;
|
|
1145
|
-
leftIcon?: Partial<IconTypes
|
|
1146
|
-
rightIcon?: Partial<IconTypes
|
|
1187
|
+
leftIcon?: Partial<IconTypes> | CombinedIcon;
|
|
1188
|
+
rightIcon?: Partial<IconTypes> | CombinedIcon;
|
|
1147
1189
|
rightComponent?: ReactNode;
|
|
1148
1190
|
children?: ReactNode | ReactNode[];
|
|
1149
1191
|
iconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
@@ -1181,8 +1223,8 @@ interface FacetButtonProps {
|
|
|
1181
1223
|
selected?: boolean;
|
|
1182
1224
|
/** @default false */
|
|
1183
1225
|
blocked?: boolean;
|
|
1184
|
-
icon?: Partial<IconTypes
|
|
1185
|
-
rightIcon?: Partial<IconTypes
|
|
1226
|
+
icon?: Partial<IconTypes> | CombinedIcon;
|
|
1227
|
+
rightIcon?: Partial<IconTypes> | CombinedIcon;
|
|
1186
1228
|
children?: ReactNode;
|
|
1187
1229
|
className?: string;
|
|
1188
1230
|
toolTip?: string;
|
|
@@ -1357,7 +1399,7 @@ interface IconButtonProps extends IconStyleInterface {
|
|
|
1357
1399
|
toolTip?: string;
|
|
1358
1400
|
toolTipComponent?: ReactNode;
|
|
1359
1401
|
ariaLabel?: string;
|
|
1360
|
-
toggleIcon?: IconTypes;
|
|
1402
|
+
toggleIcon?: Partial<IconTypes> | CombinedIcon;
|
|
1361
1403
|
badge?: string | number;
|
|
1362
1404
|
/** @default BadgeTypes.PURPLE */
|
|
1363
1405
|
badgeColor?: BadgeTypes;
|
|
@@ -1368,7 +1410,7 @@ declare const IconButton: react.MemoExoticComponent<({ className, disabled, styl
|
|
|
1368
1410
|
interface IconInterface$1 {
|
|
1369
1411
|
loading?: boolean;
|
|
1370
1412
|
disabled?: boolean;
|
|
1371
|
-
icon: Partial<IconTypes
|
|
1413
|
+
icon: Partial<IconTypes> | CombinedIcon;
|
|
1372
1414
|
toolTip?: string;
|
|
1373
1415
|
tabIndex?: number;
|
|
1374
1416
|
onClickCallback: () => void;
|
|
@@ -1455,7 +1497,7 @@ interface InlineButtonProps {
|
|
|
1455
1497
|
onClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
1456
1498
|
className?: string;
|
|
1457
1499
|
children?: ReactNode;
|
|
1458
|
-
icon?: Partial<IconTypes
|
|
1500
|
+
icon?: Partial<IconTypes> | CombinedIcon;
|
|
1459
1501
|
iconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
1460
1502
|
/** @default false */
|
|
1461
1503
|
rotateIcon?: boolean;
|
|
@@ -1499,7 +1541,7 @@ interface LinkProps {
|
|
|
1499
1541
|
/** Renders a react-router Link instead of an anchor. Requires a surrounding Router. */
|
|
1500
1542
|
to?: string;
|
|
1501
1543
|
text?: string;
|
|
1502
|
-
icon?: Partial<IconTypes
|
|
1544
|
+
icon?: Partial<IconTypes> | CombinedIcon;
|
|
1503
1545
|
/** @default ColorTypes.CURRENT */
|
|
1504
1546
|
iconColor?: Partial<ColorTypes>;
|
|
1505
1547
|
/** @default SizeTypes.MEDIUM */
|
|
@@ -1544,7 +1586,7 @@ declare const Link: FC<LinkProps>;
|
|
|
1544
1586
|
interface IconInterface {
|
|
1545
1587
|
loading?: boolean;
|
|
1546
1588
|
disabled?: boolean;
|
|
1547
|
-
icon: Partial<IconTypes
|
|
1589
|
+
icon: Partial<IconTypes> | CombinedIcon;
|
|
1548
1590
|
toolTip?: string;
|
|
1549
1591
|
tabIndex?: number;
|
|
1550
1592
|
onClickCallback: () => void;
|
|
@@ -1608,7 +1650,7 @@ interface ListButtonProps {
|
|
|
1608
1650
|
*/
|
|
1609
1651
|
labelClassName?: string;
|
|
1610
1652
|
iconClassName?: string;
|
|
1611
|
-
icon?: Partial<IconTypes
|
|
1653
|
+
icon?: Partial<IconTypes> | CombinedIcon;
|
|
1612
1654
|
/** Applied to the icon if in a Link component. Otherwise, size is inherited from the button's size.
|
|
1613
1655
|
* @default SizeTypes.SMALL */
|
|
1614
1656
|
iconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE | SizeTypes.AUTO | undefined;
|
|
@@ -1664,7 +1706,7 @@ interface ListItemProps extends MarginInterface, PaddingInterface {
|
|
|
1664
1706
|
withHoverEffect?: boolean;
|
|
1665
1707
|
/** @default true */
|
|
1666
1708
|
withEllipsis?: boolean;
|
|
1667
|
-
imageIcon?: Partial<IconTypes
|
|
1709
|
+
imageIcon?: Partial<IconTypes> | CombinedIcon;
|
|
1668
1710
|
/** @default SizeTypes.MEDIUM */
|
|
1669
1711
|
size: Partial<SizeTypes>;
|
|
1670
1712
|
/** @default AspectRatioTypes.ar1_1 */
|
|
@@ -1739,9 +1781,9 @@ interface MultiActionButtonProps {
|
|
|
1739
1781
|
sizeLg?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
1740
1782
|
sizeXl?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
1741
1783
|
iconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
1742
|
-
leftIcon?: Partial<IconTypes
|
|
1743
|
-
middleIcon?: Partial<IconTypes
|
|
1744
|
-
rightIcon?: Partial<IconTypes
|
|
1784
|
+
leftIcon?: Partial<IconTypes> | CombinedIcon;
|
|
1785
|
+
middleIcon?: Partial<IconTypes> | CombinedIcon;
|
|
1786
|
+
rightIcon?: Partial<IconTypes> | CombinedIcon;
|
|
1745
1787
|
rotateLeftIconByDegree?: 0 | 45 | 90 | 135 | 180 | 225 | 270 | 315;
|
|
1746
1788
|
rotateMiddleIconByDegree?: 0 | 45 | 90 | 135 | 180 | 225 | 270 | 315;
|
|
1747
1789
|
rotateRightIconByDegree?: 0 | 45 | 90 | 135 | 180 | 225 | 270 | 315;
|
|
@@ -1960,7 +2002,7 @@ interface SortableTableProps {
|
|
|
1960
2002
|
/** Shown in place of the rows when `data` is empty and `loading` is false. */
|
|
1961
2003
|
noDataMessage?: {
|
|
1962
2004
|
title?: string;
|
|
1963
|
-
icon?: Partial<IconTypes
|
|
2005
|
+
icon?: Partial<IconTypes> | CombinedIcon;
|
|
1964
2006
|
message?: string;
|
|
1965
2007
|
};
|
|
1966
2008
|
}
|
|
@@ -2207,4 +2249,4 @@ declare const NoDataMessage: {
|
|
|
2207
2249
|
displayName: string;
|
|
2208
2250
|
};
|
|
2209
2251
|
|
|
2210
|
-
export { AnimatedCount, AnimatedCountProps, AppColors, AspectRatioTypes, Badge, BadgeItem, BadgeList, BadgeListProps, BadgeProps, BadgeTypes, BorderInterface, Box, Button, Card, Checkbox, ColorStyleInterface, ColorTypes, Combobox, ComboboxAriaLabels, ComboboxMultipleProps, ComboboxProps, ComboboxSingleProps, ComboboxValue, DropDown, DropDownItem, DropDownProps, DropDownRef, FacetButton, FlexStylingInterface, FontFamilyTypes, FormSkeleton, Grid, Heading, HierarchyInterface, HierarchyTypes, Icon, IconButton, IconStyleInterface, IconTypes, Image, InlineButton, Input, Label, Link, LinkTypes, ListButton, ListButtonProps, ListItem, ListSkeleton, MarginInterface, MultiActionButton, NoDataMessage, NumberBadge, NumberBadgeProps, PaddingInterface, Pagination, Paragraph, RadioButton, SelectInput, OptionItem as SelectInputOptionItem, SelectInputProps, Separator, SizeStyleInterface, SizeTypes, SkeletonItem, SolidSpinner, SortableTable, SortableTableCellInterface, SortableTableProps, Span, SwitchButton, Tab, TabGroup, TabGroupProps, TabIndicatorProps, TabProps, TabValue, TableTypes, TextAreaInput, ToolTip, borderClassNames, flexClassNames, marginClassNames, paddingClassNames };
|
|
2252
|
+
export { AnimatedCount, AnimatedCountProps, AppColors, AspectRatioTypes, Badge, BadgeItem, BadgeList, BadgeListProps, BadgeProps, BadgeTypes, BorderInterface, Box, Button, Card, Checkbox, ColorStyleInterface, ColorTypes, CombinedIcon, Combobox, ComboboxAriaLabels, ComboboxMultipleProps, ComboboxProps, ComboboxSingleProps, ComboboxValue, DropDown, DropDownItem, DropDownProps, DropDownRef, FacetButton, FlexStylingInterface, FontFamilyTypes, FormSkeleton, Grid, Heading, HierarchyInterface, HierarchyTypes, Icon, IconButton, IconStyleInterface, IconTypes, Image, InlineButton, Input, Label, Link, LinkTypes, ListButton, ListButtonProps, ListItem, ListSkeleton, MarginInterface, MultiActionButton, NoDataMessage, NumberBadge, NumberBadgeProps, PaddingInterface, Pagination, Paragraph, RadioButton, SelectInput, OptionItem as SelectInputOptionItem, SelectInputProps, Separator, SizeStyleInterface, SizeTypes, SkeletonItem, SolidSpinner, SortableTable, SortableTableCellInterface, SortableTableProps, Span, SwitchButton, Tab, TabGroup, TabGroupProps, TabIndicatorProps, TabProps, TabValue, TableTypes, TextAreaInput, ToolTip, borderClassNames, flexClassNames, marginClassNames, paddingClassNames };
|