@sito/ui 0.0.45 → 0.0.47
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/assets/styles/theme.d.ts +58 -0
- package/dist/components/InputControl/Input.d.ts +1 -0
- package/dist/components/InputControl/Select.d.ts +1 -0
- package/dist/components/InputControl/Textarea.d.ts +1 -0
- package/dist/providers/StyleProvider.d.ts +4 -2
- package/dist/ui.cjs +20 -20
- package/dist/ui.js +50 -39
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export default theme;
|
|
2
|
+
declare namespace theme {
|
|
3
|
+
let screens: {
|
|
4
|
+
"2xl": {
|
|
5
|
+
max: string;
|
|
6
|
+
};
|
|
7
|
+
xl: {
|
|
8
|
+
max: string;
|
|
9
|
+
};
|
|
10
|
+
lg: {
|
|
11
|
+
max: string;
|
|
12
|
+
};
|
|
13
|
+
md: {
|
|
14
|
+
max: string;
|
|
15
|
+
};
|
|
16
|
+
sm: {
|
|
17
|
+
max: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
namespace color {
|
|
21
|
+
namespace dark {
|
|
22
|
+
let _default: string;
|
|
23
|
+
export { _default as default };
|
|
24
|
+
export let alter: string;
|
|
25
|
+
}
|
|
26
|
+
namespace light {
|
|
27
|
+
let _default_1: string;
|
|
28
|
+
export { _default_1 as default };
|
|
29
|
+
let alter_1: string;
|
|
30
|
+
export { alter_1 as alter };
|
|
31
|
+
}
|
|
32
|
+
let primary: {
|
|
33
|
+
default: string;
|
|
34
|
+
200: string;
|
|
35
|
+
300: string;
|
|
36
|
+
400: string;
|
|
37
|
+
500: string;
|
|
38
|
+
};
|
|
39
|
+
let secondary: {
|
|
40
|
+
default: string;
|
|
41
|
+
200: string;
|
|
42
|
+
300: string;
|
|
43
|
+
400: string;
|
|
44
|
+
500: string;
|
|
45
|
+
};
|
|
46
|
+
let ternary: {
|
|
47
|
+
default: string;
|
|
48
|
+
200: string;
|
|
49
|
+
300: string;
|
|
50
|
+
400: string;
|
|
51
|
+
500: string;
|
|
52
|
+
};
|
|
53
|
+
let error: string;
|
|
54
|
+
let warning: string;
|
|
55
|
+
let success: string;
|
|
56
|
+
let info: string;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -5,6 +5,7 @@ export interface InputControlProps extends HTMLProps<HTMLInputElement> {
|
|
|
5
5
|
color?: "primary" | "secondary" | "ternary" | "inherit" | undefined;
|
|
6
6
|
orientation?: "column" | "row" | undefined;
|
|
7
7
|
label: string | undefined;
|
|
8
|
+
helperText?: string | undefined;
|
|
8
9
|
type?: "date" | "datetime-local" | "email" | "number" | "password" | "search" | "tel" | "time" | "url" | "text" | undefined;
|
|
9
10
|
}
|
|
10
11
|
declare const InputControl: import("react").ForwardRefExoticComponent<Omit<InputControlProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -5,6 +5,7 @@ export interface SelectControlProps extends HTMLProps<HTMLSelectElement> {
|
|
|
5
5
|
color?: "primary" | "secondary" | "ternary" | "inherit" | undefined;
|
|
6
6
|
orientation?: "column" | "row" | undefined;
|
|
7
7
|
label: string | undefined;
|
|
8
|
+
helperText?: string | undefined;
|
|
8
9
|
}
|
|
9
10
|
declare const SelectControl: import("react").ForwardRefExoticComponent<Omit<SelectControlProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
10
11
|
export default SelectControl;
|
|
@@ -5,6 +5,7 @@ export interface TextareaControlProps extends HTMLProps<HTMLTextAreaElement> {
|
|
|
5
5
|
color?: "primary" | "secondary" | "ternary" | "inherit" | undefined;
|
|
6
6
|
orientation?: "column" | "row" | undefined;
|
|
7
7
|
label: string | undefined;
|
|
8
|
+
helperText?: string | undefined;
|
|
8
9
|
}
|
|
9
10
|
declare const TextareaControl: import("react").ForwardRefExoticComponent<Omit<TextareaControlProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
10
11
|
export default TextareaControl;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import theme from "../assets/styles/theme";
|
|
1
2
|
import { ReactNode } from "react";
|
|
2
3
|
export interface StyleProviderProps {
|
|
3
4
|
children: ReactNode;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
declare const StyleProvider: (props: StyleProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const useStyle: () => {};
|
|
8
|
+
export { StyleProvider, useStyle, theme };
|