@veeqo/ui 14.10.1 → 14.10.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/Action/styles/button.module.scss.cjs +2 -2
- package/dist/components/Action/styles/button.module.scss.cjs.map +1 -1
- package/dist/components/Action/styles/button.module.scss.js +2 -2
- package/dist/components/Action/styles/button.module.scss.js.map +1 -1
- package/dist/components/Action/styles/link.module.scss.cjs +2 -2
- package/dist/components/Action/styles/link.module.scss.cjs.map +1 -1
- package/dist/components/Action/styles/link.module.scss.js +2 -2
- package/dist/components/Action/styles/link.module.scss.js.map +1 -1
- package/dist/components/Action/utils.cjs +12 -14
- package/dist/components/Action/utils.cjs.map +1 -1
- package/dist/components/Action/utils.js +12 -14
- package/dist/components/Action/utils.js.map +1 -1
- package/dist/components/Button/Button.cjs +37 -37
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.ts +13 -4
- package/dist/components/Button/Button.js +37 -37
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.module.scss.cjs +9 -0
- package/dist/components/Button/Button.module.scss.cjs.map +1 -0
- package/dist/components/Button/Button.module.scss.js +7 -0
- package/dist/components/Button/Button.module.scss.js.map +1 -0
- package/dist/components/Button/types.d.ts +16 -7
- package/dist/components/Pagination/styled.d.ts +6 -1
- package/dist/components/VideoModal/styled.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1,20 +1,29 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, ReactElement,
|
|
1
|
+
import { ReactNode, ButtonHTMLAttributes, ReactElement, CSSProperties, ElementType } from 'react';
|
|
2
2
|
import { WithTokensProps } from '../../hoc/withTokens/withTokens';
|
|
3
3
|
export type ButtonVariant = 'default' | 'destructive' | 'primary' | 'primaryDestructive' | 'flat' | 'link' | 'unstyled';
|
|
4
|
-
export type ButtonSize = 'xs' | 'sm' | 'base';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
5
|
+
* Button properties.
|
|
7
6
|
*/
|
|
8
7
|
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & WithTokensProps & {
|
|
9
8
|
children?: ReactNode;
|
|
10
9
|
/** Variant styles */
|
|
11
10
|
variant?: ButtonVariant;
|
|
12
11
|
/** Button sizes */
|
|
13
|
-
size?:
|
|
14
|
-
/** Icon
|
|
12
|
+
size?: 'sm' | 'base';
|
|
13
|
+
/** Icon */
|
|
15
14
|
iconSlot?: ReactElement;
|
|
16
|
-
/** Renders a dropdown
|
|
15
|
+
/** Renders a dropdown indicator inside the button */
|
|
17
16
|
dropdown?: boolean;
|
|
18
|
-
/**
|
|
17
|
+
/** Renders a loading indicator inside the button */
|
|
19
18
|
loading?: boolean;
|
|
19
|
+
/** Additional styles for mainContent */
|
|
20
|
+
contentStyles?: CSSProperties;
|
|
21
|
+
/** Render as a different element type (e.g. 'a' for links) */
|
|
22
|
+
as?: ElementType;
|
|
23
|
+
/** URL when rendered as an anchor (use with as="a") */
|
|
24
|
+
href?: string;
|
|
25
|
+
/** Link target (use with as="a") */
|
|
26
|
+
target?: string;
|
|
27
|
+
/** Link rel attribute (use with as="a") */
|
|
28
|
+
rel?: string;
|
|
20
29
|
};
|
|
@@ -9,10 +9,15 @@ export declare const PageLimitContainer: import("styled-components").StyledCompo
|
|
|
9
9
|
export declare const PaginationButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("../../hoc/withTokens").WithTokensProps & {
|
|
10
10
|
children?: import("react").ReactNode;
|
|
11
11
|
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
12
|
-
size?:
|
|
12
|
+
size?: "base" | "sm" | undefined;
|
|
13
13
|
iconSlot?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
14
14
|
dropdown?: boolean | undefined;
|
|
15
15
|
loading?: boolean | undefined;
|
|
16
|
+
contentStyles?: import("react").CSSProperties | undefined;
|
|
17
|
+
as?: import("react").ElementType | undefined;
|
|
18
|
+
href?: string | undefined;
|
|
19
|
+
target?: string | undefined;
|
|
20
|
+
rel?: string | undefined;
|
|
16
21
|
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("../../hoc/withTokens").WithTokensProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
17
22
|
export declare const PageInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<{
|
|
18
23
|
rel?: string | undefined;
|
|
@@ -4,8 +4,13 @@ export declare const VideoWrapper: import("styled-components").StyledComponent<"
|
|
|
4
4
|
export declare const ButtonSC: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("../../hoc/withTokens").WithTokensProps & {
|
|
5
5
|
children?: import("react").ReactNode;
|
|
6
6
|
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
7
|
-
size?:
|
|
7
|
+
size?: "base" | "sm" | undefined;
|
|
8
8
|
iconSlot?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
9
9
|
dropdown?: boolean | undefined;
|
|
10
10
|
loading?: boolean | undefined;
|
|
11
|
+
contentStyles?: import("react").CSSProperties | undefined;
|
|
12
|
+
as?: import("react").ElementType | undefined;
|
|
13
|
+
href?: string | undefined;
|
|
14
|
+
target?: string | undefined;
|
|
15
|
+
rel?: string | undefined;
|
|
11
16
|
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("../../hoc/withTokens").WithTokensProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|