widenarrow-ui 1.0.13 → 1.0.15
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/components/InlineButton/InlineButton.types.d.ts +1 -1
- package/lib/components/ListItem/ListItem.types.d.ts +1 -0
- package/lib/components/MultiActionButton/MultiActionButton.types.d.ts +1 -1
- package/lib/components/SortableTable/SortableTable.types.d.ts +5 -6
- package/lib/constants.d.ts +2 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +9 -10
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +34 -36
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +34 -36
- package/lib/index.js.map +1 -1
- package/lib/types/styling.types.d.ts +0 -3
- package/lib/utils.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/Button/Button.tsx +1 -0
- package/src/components/InlineButton/InlineButton.types.ts +1 -1
- package/src/components/ListItem/ListItem.tsx +2 -1
- package/src/components/ListItem/ListItem.types.ts +1 -0
- package/src/components/MultiActionButton/MultiActionButton.types.ts +1 -1
- package/src/components/SolidSpinner/SolidSpinner.tsx +1 -1
- package/src/components/SortableTable/SortableTable.tsx +14 -16
- package/src/components/SortableTable/SortableTable.types.ts +5 -6
- package/src/components/SwitchButton/SwitchButton.module.scss +25 -18
- package/src/components/SwitchButton/SwitchButton.tsx +1 -0
- package/src/constants.ts +2 -1
- package/src/styles/mixins.scss +22 -0
- package/src/types/styling.types.ts +0 -4
- package/src/utils.ts +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3,9 +3,6 @@ import react__default, { CSSProperties, MouseEvent, ReactNode, FC, ChangeEvent }
|
|
|
3
3
|
import { HierarchyTypes as HierarchyTypes$1, ColorTypes as ColorTypes$1, SizeTypes as SizeTypes$1, IconTypes as IconTypes$1 } from 'src/constants';
|
|
4
4
|
import { Placement, PositioningStrategy } from '@popperjs/core';
|
|
5
5
|
|
|
6
|
-
interface UnknownObjectInterface {
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
}
|
|
9
6
|
interface MarginInterface {
|
|
10
7
|
margin?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8';
|
|
11
8
|
marginX?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8';
|
|
@@ -243,7 +240,8 @@ declare enum IconTypes {
|
|
|
243
240
|
declare enum HierarchyTypes {
|
|
244
241
|
PRIMARY = "primary",
|
|
245
242
|
SECONDARY = "secondary",
|
|
246
|
-
TERTIARY = "tertiary"
|
|
243
|
+
TERTIARY = "tertiary",
|
|
244
|
+
QUATERNARY = "quaternary"
|
|
247
245
|
}
|
|
248
246
|
declare enum AspectRatioTypes {
|
|
249
247
|
ar4_1 = "ar4_1",
|
|
@@ -577,7 +575,7 @@ interface InlineButtonProps {
|
|
|
577
575
|
rotateIcon?: boolean;
|
|
578
576
|
iconClassName?: string;
|
|
579
577
|
withIconRight?: boolean;
|
|
580
|
-
type?:
|
|
578
|
+
type?: HierarchyTypes.PRIMARY | HierarchyTypes.SECONDARY | HierarchyTypes.TERTIARY;
|
|
581
579
|
size?: SizeTypes.SMALL | SizeTypes.MEDIUM;
|
|
582
580
|
textClassName?: string;
|
|
583
581
|
withEllipsis?: boolean;
|
|
@@ -594,6 +592,7 @@ interface ListItemProps extends MarginInterface, PaddingInterface {
|
|
|
594
592
|
className?: string;
|
|
595
593
|
imageSrc?: string;
|
|
596
594
|
withBorderRadius?: boolean;
|
|
595
|
+
withHoverEffect?: boolean;
|
|
597
596
|
imageIcon?: Partial<IconTypes>;
|
|
598
597
|
size: Partial<SizeTypes>;
|
|
599
598
|
imageAspectRatio?: Partial<AspectRatioTypes>;
|
|
@@ -637,7 +636,7 @@ interface MultiActionButtonProps {
|
|
|
637
636
|
text?: string;
|
|
638
637
|
onLeftClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
639
638
|
onRightClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
640
|
-
type?:
|
|
639
|
+
type?: HierarchyTypes.PRIMARY | HierarchyTypes.SECONDARY | HierarchyTypes.TERTIARY;
|
|
641
640
|
size?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
642
641
|
leftIconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
643
642
|
middleIconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
@@ -693,12 +692,12 @@ interface CellInterface {
|
|
|
693
692
|
alignCenter?: boolean;
|
|
694
693
|
withEllipsis?: boolean;
|
|
695
694
|
toolTip?: string;
|
|
696
|
-
customHeaderCellComponent?: (cell: CellInterface) => ReactNode;
|
|
697
|
-
customCellComponent?: (row:
|
|
695
|
+
customHeaderCellComponent?: (cell: CellInterface) => ReactNode | JSX.Element;
|
|
696
|
+
customCellComponent?: (row: any) => ReactNode | JSX.Element;
|
|
698
697
|
}
|
|
699
698
|
interface SortableTableProps {
|
|
700
699
|
cells: Array<CellInterface>;
|
|
701
|
-
data: Array<
|
|
700
|
+
data: Array<any>;
|
|
702
701
|
sortBy: Array<{
|
|
703
702
|
keyName: string;
|
|
704
703
|
ascending: boolean;
|
|
@@ -787,4 +786,4 @@ declare const Label: FC<LabelProps>;
|
|
|
787
786
|
declare const Paragraph: FC<ParagraphProps>;
|
|
788
787
|
declare const Span: FC<SpanProps>;
|
|
789
788
|
|
|
790
|
-
export { AppColors, AspectRatioTypes, Box, Button, Checkbox, ColorStyleInterface, ColorTypes, DropDown, DropDownItem, FacetButton, FlexStylingInterface, FontFamilyTypes, FormSkeleton, Grid, Heading, HierarchyInterface, HierarchyTypes, Icon, IconButton, IconStyleInterface, IconTypes, Image, InlineButton, Label, ListItem, ListSkeleton, MarginInterface, MultiActionButton, PaddingInterface, Paragraph, RadioButton, Separator, SizeStyleInterface, SizeTypes, SolidSpinner, SortableTable, Span, SwitchButton, ToolTip
|
|
789
|
+
export { AppColors, AspectRatioTypes, Box, Button, Checkbox, ColorStyleInterface, ColorTypes, DropDown, DropDownItem, FacetButton, FlexStylingInterface, FontFamilyTypes, FormSkeleton, Grid, Heading, HierarchyInterface, HierarchyTypes, Icon, IconButton, IconStyleInterface, IconTypes, Image, InlineButton, Label, ListItem, ListSkeleton, MarginInterface, MultiActionButton, PaddingInterface, Paragraph, RadioButton, Separator, SizeStyleInterface, SizeTypes, SolidSpinner, SortableTable, Span, SwitchButton, ToolTip };
|