@trindtech/ui 0.3.0 → 0.4.0
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/index.d.mts +7 -16
- package/dist/index.d.ts +7 -16
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
|
|
4
|
-
type Size = "sm" | "md" | "lg" | "xl";
|
|
5
|
-
type Radius = "sm" | "md" | "lg" | "xl" | "full";
|
|
6
|
-
type Fw = "medium" | "semibold" | "bold";
|
|
7
|
-
type Fs = "xs" | "sm" | "base" | "lg" | "xl";
|
|
8
|
-
type Variant = "solid" | "outline";
|
|
9
3
|
interface ButtonProps {
|
|
10
|
-
|
|
11
|
-
variant?:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
rounded?: Radius;
|
|
17
|
-
fontWeight?: Fw;
|
|
18
|
-
fontSize?: Fs;
|
|
4
|
+
componentType: "button" | "link";
|
|
5
|
+
variant?: "primary" | "white" | "alternative";
|
|
6
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
7
|
+
rounded?: "sm" | "md" | "lg" | "xl" | "full";
|
|
8
|
+
fontWeight?: "medium" | "semibold" | "bold";
|
|
9
|
+
fontSize?: "xs" | "sm" | "base" | "lg" | "xl";
|
|
19
10
|
label: string;
|
|
20
11
|
onClick?: () => void;
|
|
21
12
|
href?: string;
|
|
@@ -27,7 +18,7 @@ interface ButtonProps {
|
|
|
27
18
|
id: string;
|
|
28
19
|
className?: string;
|
|
29
20
|
}
|
|
30
|
-
declare const Button:
|
|
21
|
+
declare const Button: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
31
22
|
|
|
32
23
|
interface IconProps {
|
|
33
24
|
size?: number | string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
|
|
4
|
-
type Size = "sm" | "md" | "lg" | "xl";
|
|
5
|
-
type Radius = "sm" | "md" | "lg" | "xl" | "full";
|
|
6
|
-
type Fw = "medium" | "semibold" | "bold";
|
|
7
|
-
type Fs = "xs" | "sm" | "base" | "lg" | "xl";
|
|
8
|
-
type Variant = "solid" | "outline";
|
|
9
3
|
interface ButtonProps {
|
|
10
|
-
|
|
11
|
-
variant?:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
rounded?: Radius;
|
|
17
|
-
fontWeight?: Fw;
|
|
18
|
-
fontSize?: Fs;
|
|
4
|
+
componentType: "button" | "link";
|
|
5
|
+
variant?: "primary" | "white" | "alternative";
|
|
6
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
7
|
+
rounded?: "sm" | "md" | "lg" | "xl" | "full";
|
|
8
|
+
fontWeight?: "medium" | "semibold" | "bold";
|
|
9
|
+
fontSize?: "xs" | "sm" | "base" | "lg" | "xl";
|
|
19
10
|
label: string;
|
|
20
11
|
onClick?: () => void;
|
|
21
12
|
href?: string;
|
|
@@ -27,7 +18,7 @@ interface ButtonProps {
|
|
|
27
18
|
id: string;
|
|
28
19
|
className?: string;
|
|
29
20
|
}
|
|
30
|
-
declare const Button:
|
|
21
|
+
declare const Button: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
31
22
|
|
|
32
23
|
interface IconProps {
|
|
33
24
|
size?: number | string;
|