widenarrow-ui 2.0.12 → 2.0.14
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 +16 -3
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { IconTypes as IconTypes$1, ColorTypes as ColorTypes$1 } from 'src/consta
|
|
|
5
5
|
|
|
6
6
|
declare enum IconTypes {
|
|
7
7
|
ACCOUNT_SETTINGS = "iconAccountSettings",
|
|
8
|
+
ALL_SOURCES = "iconAllSources",
|
|
8
9
|
ADD_CHART = "iconAddChart",
|
|
9
10
|
ADD_CIRCLE = "iconAddCircle",
|
|
10
11
|
ADD_COMMENT = "iconAddComment",
|
|
@@ -198,6 +199,7 @@ declare enum IconTypes {
|
|
|
198
199
|
SAVED_SEARCH_200 = "iconSavedSearch200",
|
|
199
200
|
SAVED_SEARCH_300 = "iconSavedSearch300",
|
|
200
201
|
SCHEDULE = "iconSchedule",
|
|
202
|
+
SCHOOL_HAT = "iconSchoolHat",
|
|
201
203
|
SEARCH_200 = "iconSearch200",
|
|
202
204
|
SEARCH_300 = "iconSearch300",
|
|
203
205
|
SEARCH_FILLED = "iconSearchFilled",
|
|
@@ -466,8 +468,11 @@ interface ButtonProps {
|
|
|
466
468
|
sizeLg?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
467
469
|
sizeXl?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
468
470
|
icon?: Partial<IconTypes>;
|
|
471
|
+
iconColor?: Partial<ColorTypes>;
|
|
469
472
|
iconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE | SizeTypes.AUTO;
|
|
470
473
|
withIconRight?: boolean;
|
|
474
|
+
leftIcon?: Partial<IconTypes>;
|
|
475
|
+
rightIcon?: Partial<IconTypes>;
|
|
471
476
|
disabled?: boolean;
|
|
472
477
|
className?: string;
|
|
473
478
|
style?: CSSProperties;
|
|
@@ -484,7 +489,7 @@ interface ButtonProps {
|
|
|
484
489
|
tabIndex?: number;
|
|
485
490
|
}
|
|
486
491
|
|
|
487
|
-
declare const Button: react.MemoExoticComponent<({ className, id, style, type, size, sizeMd, sizeLg, sizeXl, text, toolTip, toolTipComponent, icon, buttonRef, iconSize, withIconRight, rotateIconByDegree, withEllipsis, onClickCallback, loading, disabled, children, autoFocus, ariaLabel, tabIndex }: ButtonProps) => JSX.Element>;
|
|
492
|
+
declare const Button: react.MemoExoticComponent<({ className, id, style, type, size, sizeMd, sizeLg, sizeXl, text, toolTip, toolTipComponent, icon, buttonRef, iconSize, iconColor, leftIcon, rightIcon, withIconRight, rotateIconByDegree, withEllipsis, onClickCallback, loading, disabled, children, autoFocus, ariaLabel, tabIndex }: ButtonProps) => JSX.Element>;
|
|
488
493
|
|
|
489
494
|
interface CheckboxProps {
|
|
490
495
|
label: string;
|
|
@@ -601,6 +606,7 @@ declare const DropDown: {
|
|
|
601
606
|
|
|
602
607
|
interface DropDownItemProps {
|
|
603
608
|
text?: string;
|
|
609
|
+
description?: string;
|
|
604
610
|
onClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
605
611
|
size?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
606
612
|
active?: boolean;
|
|
@@ -620,10 +626,14 @@ interface DropDownItemProps {
|
|
|
620
626
|
fontWeight?: string;
|
|
621
627
|
iconClassName?: string;
|
|
622
628
|
closeDropDownOnClick?: boolean;
|
|
629
|
+
descriptionColor?: Partial<ColorTypes>;
|
|
630
|
+
descriptionTextAlign?: string;
|
|
631
|
+
descriptionFontSize?: string;
|
|
632
|
+
descriptionFontWeight?: string;
|
|
623
633
|
}
|
|
624
634
|
|
|
625
635
|
declare const DropDownItem: {
|
|
626
|
-
({ text, onClickCallback, size, textAlign, fontSize, fontWeight, textColor, active, disabled, className, iconColor, leftIcon, rightIcon, rightComponent, children, iconSize, withEllipsis, iconClassName, wrapperElement, closeDropDownOnClick }: DropDownItemProps): JSX.Element;
|
|
636
|
+
({ text, description, onClickCallback, size, textAlign, fontSize, fontWeight, descriptionTextAlign, descriptionFontSize, descriptionFontWeight, textColor, descriptionColor, active, disabled, className, iconColor, leftIcon, rightIcon, rightComponent, children, iconSize, withEllipsis, iconClassName, wrapperElement, closeDropDownOnClick }: DropDownItemProps): JSX.Element;
|
|
627
637
|
defaultProps: {
|
|
628
638
|
closeDropDownOnClick: boolean;
|
|
629
639
|
};
|
|
@@ -635,18 +645,21 @@ interface FacetButtonProps {
|
|
|
635
645
|
component?: ReactNode;
|
|
636
646
|
id?: string | number;
|
|
637
647
|
onClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
648
|
+
onRightClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
638
649
|
disabled?: boolean;
|
|
639
650
|
selected?: boolean;
|
|
640
651
|
blocked?: boolean;
|
|
641
652
|
icon?: Partial<IconTypes>;
|
|
653
|
+
rightIcon?: Partial<IconTypes>;
|
|
642
654
|
children?: ReactNode;
|
|
643
655
|
className?: string;
|
|
644
656
|
toolTip?: string;
|
|
657
|
+
rightAriaLabel?: string;
|
|
645
658
|
percent: number;
|
|
646
659
|
}
|
|
647
660
|
|
|
648
661
|
declare const FacetButton: {
|
|
649
|
-
({ text, component, id, onClickCallback, disabled, selected, icon, className, toolTip, blocked, percent, children }: FacetButtonProps): JSX.Element;
|
|
662
|
+
({ text, component, id, onClickCallback, onRightClickCallback, disabled, selected, icon, rightIcon, className, toolTip, blocked, percent, children, rightAriaLabel }: FacetButtonProps): JSX.Element;
|
|
650
663
|
displayName: string;
|
|
651
664
|
};
|
|
652
665
|
|