@invoicebox/ui 0.1.0-alpha.25 → 0.1.0-alpha.26

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,16 +1,13 @@
1
1
  import { AnchorHTMLAttributes, ButtonHTMLAttributes, FC } from 'react';
2
2
  import { TProps as TInvoiceboxSpinnerProps } from '../InvoiceboxSpinner';
3
3
  import { TSecondaryButtonPalette } from './palette';
4
- type TDefaultElementProps = {
5
- element?: never;
6
- } & ButtonHTMLAttributes<HTMLButtonElement>;
7
4
  type TButtonProps = {
8
- element: 'button';
5
+ element?: 'button';
9
6
  } & ButtonHTMLAttributes<HTMLButtonElement>;
10
7
  type TAnchorProps = {
11
8
  element: 'a';
12
9
  } & AnchorHTMLAttributes<HTMLAnchorElement>;
13
- export type TProps = (TDefaultElementProps | TButtonProps | TAnchorProps) & {
10
+ export type TProps = (TButtonProps | TAnchorProps) & {
14
11
  isLoading?: boolean;
15
12
  fullWidth?: boolean;
16
13
  disabled?: boolean;
@@ -1,10 +1,7 @@
1
1
  import { ButtonHTMLAttributes, FC, HTMLAttributes } from 'react';
2
2
  import { typography } from './typography';
3
- type TDefaultElementProps = {
4
- element?: never;
5
- } & HTMLAttributes<HTMLDivElement>;
6
3
  type TDivProps = {
7
- element: 'div';
4
+ element?: 'div';
8
5
  } & HTMLAttributes<HTMLDivElement>;
9
6
  type TParagraphProps = {
10
7
  element: 'p';
@@ -20,7 +17,7 @@ type TButtonProps = {
20
17
  } & ButtonHTMLAttributes<HTMLButtonElement>;
21
18
  export type TProps = {
22
19
  variant: keyof typeof typography;
23
- } & ((TDefaultElementProps | TDivProps) | TParagraphProps | TSpanProps | THeadingProps | TButtonProps);
20
+ } & (TDivProps | TParagraphProps | TSpanProps | THeadingProps | TButtonProps);
24
21
  export declare const Typography: FC<TProps>;
25
22
  export declare const TypographyGlobalStyle: FC;
26
23
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.25",
3
+ "version": "0.1.0-alpha.26",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {