@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.
@@ -1,20 +1,29 @@
1
- import { ButtonHTMLAttributes, ReactElement, ReactNode } from 'react';
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
- * @deprecated Use `ActionProps` from the `Action` component instead
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?: ButtonSize;
14
- /** Icon rendered before children */
12
+ size?: 'sm' | 'base';
13
+ /** Icon */
15
14
  iconSlot?: ReactElement;
16
- /** Renders a dropdown chevron indicator */
15
+ /** Renders a dropdown indicator inside the button */
17
16
  dropdown?: boolean;
18
- /** Shows a loading spinner */
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?: import("../Button/types").ButtonSize | undefined;
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?: import("../Button/types").ButtonSize | undefined;
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veeqo/ui",
3
- "version": "14.10.1",
3
+ "version": "14.10.2",
4
4
  "description": "New optimised component library for Veeqo.",
5
5
  "author": "Robert Wealthall",
6
6
  "license": "ISC",