@veeqo/ui 0.1.0 → 0.1.2
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/components/ActionList/styled.d.ts +3 -3
- package/dist/components/ActionList/types.d.ts +2 -2
- package/dist/components/Badge/types.d.ts +2 -2
- package/dist/components/Banner/Banner.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/types.d.ts +2 -2
- package/dist/components/DataTable/utils/types.d.ts +2 -2
- package/dist/components/DataTableExp/types.d.ts +2 -2
- package/dist/components/DimensionsInput/styled.d.ts +1 -1
- package/dist/components/FilterTag/types.d.ts +2 -2
- package/dist/components/PageHeader/PageHeader.d.ts +2 -2
- package/dist/components/PageHeader/styled.d.ts +1 -1
- package/dist/components/Pagination/styled.d.ts +1 -1
- package/dist/components/ToastsLayout/types.d.ts +3 -3
- package/dist/components/VideoModal/styled.d.ts +1 -1
- package/dist/components/WeightInput/styled.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export declare const Item: import("styled-components").StyledComponent<import("r
|
|
|
8
8
|
children?: import("react").ReactNode;
|
|
9
9
|
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
10
10
|
size?: "base" | "sm" | undefined;
|
|
11
|
-
icon?: import("react").
|
|
11
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
12
12
|
dropdown?: boolean | undefined;
|
|
13
13
|
loading?: boolean | undefined;
|
|
14
14
|
} & import("react").RefAttributes<HTMLButtonElement>>, any, {
|
|
@@ -18,7 +18,7 @@ export declare const ActionItem: import("styled-components").StyledComponent<imp
|
|
|
18
18
|
children?: import("react").ReactNode;
|
|
19
19
|
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
20
20
|
size?: "base" | "sm" | undefined;
|
|
21
|
-
icon?: import("react").
|
|
21
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
22
22
|
dropdown?: boolean | undefined;
|
|
23
23
|
loading?: boolean | undefined;
|
|
24
24
|
} & import("react").RefAttributes<HTMLButtonElement>>, any, {
|
|
@@ -28,7 +28,7 @@ export declare const LinkItem: import("styled-components").StyledComponent<impor
|
|
|
28
28
|
children?: import("react").ReactNode;
|
|
29
29
|
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
30
30
|
size?: "base" | "sm" | undefined;
|
|
31
|
-
icon?: import("react").
|
|
31
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
32
32
|
dropdown?: boolean | undefined;
|
|
33
33
|
loading?: boolean | undefined;
|
|
34
34
|
} & import("react").RefAttributes<HTMLButtonElement>>, any, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
2
|
import { ButtonVariant } from '../Button/types';
|
|
3
3
|
export type ActionListItem = {
|
|
4
4
|
title: string;
|
|
5
|
-
icon?:
|
|
5
|
+
icon?: ReactElement;
|
|
6
6
|
variant?: 'item' | 'action' | 'link';
|
|
7
7
|
onClick: () => void;
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
export type BadgeVariant = 'default' | 'primary' | 'warning';
|
|
3
3
|
/**
|
|
4
4
|
* Badge properties.
|
|
@@ -11,7 +11,7 @@ export type BadgeProps = {
|
|
|
11
11
|
/**
|
|
12
12
|
* Renders an optional icon inside the Badge.
|
|
13
13
|
*/
|
|
14
|
-
iconSlot?:
|
|
14
|
+
iconSlot?: ReactElement;
|
|
15
15
|
/**
|
|
16
16
|
* Specifies tooltip text to display on hover.
|
|
17
17
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { ReactEventHandler, ReactNode } from 'react';
|
|
1
|
+
import React, { ReactEventHandler, ReactNode, ReactElement } from 'react';
|
|
2
2
|
import { BannerTypes } from './types';
|
|
3
3
|
type BannerProps = {
|
|
4
4
|
type?: BannerTypes;
|
|
5
5
|
text?: string;
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: ReactElement;
|
|
7
7
|
onClose?: ReactEventHandler;
|
|
8
8
|
className?: string;
|
|
9
9
|
header?: ReactNode;
|
|
@@ -3,7 +3,7 @@ export declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAtt
|
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
variant?: import("./types").ButtonVariant | undefined;
|
|
5
5
|
size?: "base" | "sm" | undefined;
|
|
6
|
-
icon?: React.
|
|
6
|
+
icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
7
7
|
dropdown?: boolean | undefined;
|
|
8
8
|
loading?: boolean | undefined;
|
|
9
9
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, ButtonHTMLAttributes } from 'react';
|
|
1
|
+
import { ReactNode, ButtonHTMLAttributes, ReactElement } from 'react';
|
|
2
2
|
export type ButtonVariant = 'default' | 'destructive' | 'primary' | 'primaryDestructive' | 'flat' | 'link' | 'unstyled';
|
|
3
3
|
/**
|
|
4
4
|
* Button properties.
|
|
@@ -10,7 +10,7 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
10
10
|
/** Button sizes */
|
|
11
11
|
size?: 'sm' | 'base';
|
|
12
12
|
/** Icon */
|
|
13
|
-
icon?:
|
|
13
|
+
icon?: ReactElement;
|
|
14
14
|
/** Renders a dropdown indicator inside the button */
|
|
15
15
|
dropdown?: boolean;
|
|
16
16
|
/** Renders a loading indicator inside the button */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from 'react';
|
|
1
|
+
import { ReactNode, CSSProperties, ReactElement } from 'react';
|
|
2
2
|
export type DataTableId = string | number;
|
|
3
3
|
export type RowData = any;
|
|
4
4
|
export type DataTableHeader = {
|
|
5
5
|
id: DataTableId;
|
|
6
6
|
title?: string;
|
|
7
|
-
icon?:
|
|
7
|
+
icon?: ReactElement;
|
|
8
8
|
tooltip?: string;
|
|
9
9
|
align?: 'left' | 'center' | 'right';
|
|
10
10
|
sortable?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { Size } from '../Stack/types';
|
|
3
3
|
export type BorderType = 'all' | 'vertical' | 'none';
|
|
4
4
|
export type ScrollPosition = 'none' | 'start' | 'middle' | 'end';
|
|
@@ -22,7 +22,7 @@ export type ColumnConfig = {
|
|
|
22
22
|
id: ColumnId;
|
|
23
23
|
align?: ColumnAlignment;
|
|
24
24
|
hidden?: boolean;
|
|
25
|
-
icon?:
|
|
25
|
+
icon?: ReactElement;
|
|
26
26
|
pinned?: ColumnPinned;
|
|
27
27
|
sortable?: boolean;
|
|
28
28
|
spacing?: ColumnSpacing;
|
|
@@ -24,7 +24,7 @@ declare const StyledButton: import("styled-components").StyledComponent<import("
|
|
|
24
24
|
children?: import("react").ReactNode;
|
|
25
25
|
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
26
26
|
size?: "base" | "sm" | undefined;
|
|
27
|
-
icon?: import("react").
|
|
27
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
28
28
|
dropdown?: boolean | undefined;
|
|
29
29
|
loading?: boolean | undefined;
|
|
30
30
|
} & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, ReactElement } from 'react';
|
|
2
2
|
export interface FilterTagProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
e2eClassName?: string;
|
|
5
|
-
iconSlot?:
|
|
5
|
+
iconSlot?: ReactElement;
|
|
6
6
|
label?: string;
|
|
7
7
|
text: string;
|
|
8
8
|
fill?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { ActionListSection } from '../ActionList/types';
|
|
3
3
|
import { ButtonVariant } from '../Button/types';
|
|
4
4
|
import { ShadowPropType } from './styled';
|
|
5
5
|
type QuickAction = {
|
|
6
6
|
title: string;
|
|
7
|
-
icon:
|
|
7
|
+
icon: ReactElement;
|
|
8
8
|
variant: ButtonVariant;
|
|
9
9
|
onClick: () => void;
|
|
10
10
|
};
|
|
@@ -13,7 +13,7 @@ export declare const SidebarToggleButton: import("styled-components").StyledComp
|
|
|
13
13
|
children?: import("react").ReactNode;
|
|
14
14
|
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
15
15
|
size?: "base" | "sm" | undefined;
|
|
16
|
-
icon?: import("react").
|
|
16
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
17
17
|
dropdown?: boolean | undefined;
|
|
18
18
|
loading?: boolean | undefined;
|
|
19
19
|
} & import("react").RefAttributes<HTMLButtonElement>>, any, {
|
|
@@ -4,7 +4,7 @@ export declare const PaginationButton: import("styled-components").StyledCompone
|
|
|
4
4
|
children?: import("react").ReactNode;
|
|
5
5
|
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
6
6
|
size?: "base" | "sm" | undefined;
|
|
7
|
-
icon?: import("react").
|
|
7
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
8
8
|
dropdown?: boolean | undefined;
|
|
9
9
|
loading?: boolean | undefined;
|
|
10
10
|
} & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
2
|
export declare enum ToastTypes {
|
|
3
3
|
info = "info",
|
|
4
4
|
error = "error",
|
|
@@ -7,7 +7,7 @@ export declare enum ToastTypes {
|
|
|
7
7
|
}
|
|
8
8
|
export type ToastType = Record<ToastTypes, {
|
|
9
9
|
accentColor: string;
|
|
10
|
-
icon:
|
|
10
|
+
icon: ReactElement;
|
|
11
11
|
}>;
|
|
12
12
|
export type ToastPropTypes = Omit<Notification, 'key'> & {
|
|
13
13
|
className?: string;
|
|
@@ -32,7 +32,7 @@ export type ClassNamesReturnPayload = {
|
|
|
32
32
|
export type Notification = {
|
|
33
33
|
key: string;
|
|
34
34
|
type: keyof typeof ToastTypes;
|
|
35
|
-
iconSlot?:
|
|
35
|
+
iconSlot?: ReactElement;
|
|
36
36
|
text: string;
|
|
37
37
|
cta?: React.ReactNode;
|
|
38
38
|
};
|
|
@@ -5,7 +5,7 @@ export declare const ButtonSC: import("styled-components").StyledComponent<impor
|
|
|
5
5
|
children?: import("react").ReactNode;
|
|
6
6
|
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
7
7
|
size?: "base" | "sm" | undefined;
|
|
8
|
-
icon?: import("react").
|
|
8
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
9
9
|
dropdown?: boolean | undefined;
|
|
10
10
|
loading?: boolean | undefined;
|
|
11
11
|
} & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -24,7 +24,7 @@ declare const StyledButton: import("styled-components").StyledComponent<import("
|
|
|
24
24
|
children?: import("react").ReactNode;
|
|
25
25
|
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
26
26
|
size?: "base" | "sm" | undefined;
|
|
27
|
-
icon?: import("react").
|
|
27
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
28
28
|
dropdown?: boolean | undefined;
|
|
29
29
|
loading?: boolean | undefined;
|
|
30
30
|
} & import("react").RefAttributes<HTMLButtonElement>>, any, {
|