get-elementa-ui 1.11.6 → 1.12.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.esm.js +113 -94
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +113 -94
- package/dist/index.js.map +1 -1
- package/dist/types/components/label.d.ts +4 -0
- package/dist/types/components/spinner.d.ts +2 -0
- package/dist/types/components/text.d.ts +21 -3
- package/package.json +2 -2
- package/dist/types/lib/types.d.ts +0 -22
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
export declare enum TextVariant {
|
|
2
|
+
H1 = 0,
|
|
3
|
+
H2 = 1,
|
|
4
|
+
H3 = 2,
|
|
5
|
+
H4 = 3,
|
|
6
|
+
H5 = 4,
|
|
7
|
+
H6 = 5,
|
|
8
|
+
Body = 6,
|
|
9
|
+
Button = 7,
|
|
10
|
+
Subtitle1 = 8,
|
|
11
|
+
Subtitle2 = 9,
|
|
12
|
+
Caption = 10,
|
|
13
|
+
Custom = 11
|
|
14
|
+
}
|
|
15
|
+
export interface TextProps {
|
|
16
|
+
variant?: TextVariant;
|
|
17
|
+
color?: string;
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
2
21
|
/**
|
|
3
22
|
* This function renders the Text component for the library.
|
|
4
23
|
*/
|
|
5
|
-
declare function Text({ variant, color, children,
|
|
6
|
-
export { Text };
|
|
24
|
+
export declare function Text({ variant, color, children, className }: TextProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "get-elementa-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "Elementa UI components library.",
|
|
5
5
|
"homepage": "https://deriva.xyz/branding",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
9
|
-
"style": "dist/
|
|
9
|
+
"style": "dist/styles.css",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/deriva-inc/elementa-ui.git"
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
declare enum TextVariant {
|
|
2
|
-
H1 = 0,
|
|
3
|
-
H2 = 1,
|
|
4
|
-
H3 = 2,
|
|
5
|
-
H4 = 3,
|
|
6
|
-
H5 = 4,
|
|
7
|
-
H6 = 5,
|
|
8
|
-
Body = 6,
|
|
9
|
-
Button = 7,
|
|
10
|
-
Subtitle1 = 8,
|
|
11
|
-
Subtitle2 = 9,
|
|
12
|
-
Caption = 10,
|
|
13
|
-
Custom = 11
|
|
14
|
-
}
|
|
15
|
-
interface TextProps {
|
|
16
|
-
variant?: TextVariant;
|
|
17
|
-
color?: string;
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
customClassName?: string;
|
|
20
|
-
}
|
|
21
|
-
export { TextVariant };
|
|
22
|
-
export type { TextProps };
|