@esic-lab/data-core-ui 0.0.8 → 0.0.9
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 +12 -22
- package/dist/index.d.ts +12 -22
- package/dist/index.js +11 -1775
- package/dist/index.mjs +54 -1831
- package/package.json +5 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
type ElementType = undefined.ElementType;
|
|
3
|
-
interface Element extends undefined.Element {}
|
|
4
|
-
interface ElementClass extends undefined.ElementClass {}
|
|
5
|
-
interface ElementAttributesProperty extends undefined.ElementAttributesProperty {}
|
|
6
|
-
interface ElementChildrenAttribute extends undefined.ElementChildrenAttribute {}
|
|
7
|
-
type LibraryManagedAttributes<C, P> = undefined.LibraryManagedAttributes<C, P>;
|
|
8
|
-
interface IntrinsicAttributes extends undefined.IntrinsicAttributes {}
|
|
9
|
-
interface IntrinsicClassAttributes<T> extends undefined.IntrinsicClassAttributes<T> {}
|
|
10
|
-
interface IntrinsicElements extends undefined.IntrinsicElements {}
|
|
11
|
-
}
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
12
2
|
|
|
13
3
|
type ColorScale = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
14
4
|
type BaseColor = "primary" | "gray" | "green" | "red" | "yellow" | "blue";
|
|
@@ -21,7 +11,7 @@ interface PrimaryButtonProps {
|
|
|
21
11
|
bgColor?: ThemeColor;
|
|
22
12
|
textColor?: "white" | "black";
|
|
23
13
|
}
|
|
24
|
-
declare function PrimaryButton({ title, onClick, iconLeft, iconRight, bgColor, textColor, }: PrimaryButtonProps): JSX.Element;
|
|
14
|
+
declare function PrimaryButton({ title, onClick, iconLeft, iconRight, bgColor, textColor, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
25
15
|
|
|
26
16
|
interface SecondaryButtonProps {
|
|
27
17
|
title: string;
|
|
@@ -29,7 +19,7 @@ interface SecondaryButtonProps {
|
|
|
29
19
|
iconLeft?: React.ReactNode;
|
|
30
20
|
iconRight?: React.ReactNode;
|
|
31
21
|
}
|
|
32
|
-
declare function SecondaryButton({ title, onClick, iconLeft, iconRight }: SecondaryButtonProps): JSX.Element;
|
|
22
|
+
declare function SecondaryButton({ title, onClick, iconLeft, iconRight }: SecondaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
33
23
|
|
|
34
24
|
interface GhostButtonProps {
|
|
35
25
|
title: string;
|
|
@@ -37,19 +27,19 @@ interface GhostButtonProps {
|
|
|
37
27
|
iconLeft?: React.ReactNode;
|
|
38
28
|
iconRight?: React.ReactNode;
|
|
39
29
|
}
|
|
40
|
-
declare function GhostButton({ title, onClick, iconLeft, iconRight }: GhostButtonProps): JSX.Element;
|
|
30
|
+
declare function GhostButton({ title, onClick, iconLeft, iconRight }: GhostButtonProps): react_jsx_runtime.JSX.Element;
|
|
41
31
|
|
|
42
32
|
interface LoaderProps {
|
|
43
33
|
size?: number;
|
|
44
34
|
}
|
|
45
|
-
declare function Loader({ size }: LoaderProps): JSX.Element;
|
|
35
|
+
declare function Loader({ size }: LoaderProps): react_jsx_runtime.JSX.Element;
|
|
46
36
|
|
|
47
37
|
interface CheckboxProps {
|
|
48
38
|
label?: string;
|
|
49
39
|
checked: boolean;
|
|
50
40
|
onChange: (checked: boolean) => void;
|
|
51
41
|
}
|
|
52
|
-
declare function Checkbox({ label, checked, onChange }: CheckboxProps): JSX.Element;
|
|
42
|
+
declare function Checkbox({ label, checked, onChange }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
53
43
|
|
|
54
44
|
interface CheckboxOption {
|
|
55
45
|
checked: boolean;
|
|
@@ -60,13 +50,13 @@ interface CheckboxGroupProps {
|
|
|
60
50
|
onChange: (label: string) => void;
|
|
61
51
|
alignment?: "horizontal" | "vertical";
|
|
62
52
|
}
|
|
63
|
-
declare function CheckboxGroup({ options, onChange, alignment }: CheckboxGroupProps): JSX.Element;
|
|
53
|
+
declare function CheckboxGroup({ options, onChange, alignment }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
64
54
|
|
|
65
55
|
interface RadioProps {
|
|
66
56
|
selected: boolean;
|
|
67
57
|
onChange: (selected: boolean) => void;
|
|
68
58
|
}
|
|
69
|
-
declare function Radio({ selected, onChange }: RadioProps): JSX.Element;
|
|
59
|
+
declare function Radio({ selected, onChange }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
70
60
|
|
|
71
61
|
interface RadioOption {
|
|
72
62
|
value: string;
|
|
@@ -78,14 +68,14 @@ interface RadioGroupProps {
|
|
|
78
68
|
onChange: (value: string) => void;
|
|
79
69
|
alignment?: "vertical" | "horizontal";
|
|
80
70
|
}
|
|
81
|
-
declare function RadioGroup({ options, value, onChange, alignment }: RadioGroupProps): JSX.Element;
|
|
71
|
+
declare function RadioGroup({ options, value, onChange, alignment }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
82
72
|
|
|
83
73
|
interface SwitchProps {
|
|
84
74
|
label?: string;
|
|
85
75
|
checked: boolean;
|
|
86
76
|
onChange: (checked: boolean) => void;
|
|
87
77
|
}
|
|
88
|
-
declare function Switch({ label, checked, onChange }: SwitchProps): JSX.Element;
|
|
78
|
+
declare function Switch({ label, checked, onChange }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
89
79
|
|
|
90
80
|
interface Menu {
|
|
91
81
|
title: string;
|
|
@@ -101,11 +91,11 @@ interface MenuNavBarProps {
|
|
|
101
91
|
menus: Menu[];
|
|
102
92
|
onClick: (path: string) => void;
|
|
103
93
|
}
|
|
104
|
-
declare function MenuNavBar({ menus, onClick }: MenuNavBarProps):
|
|
94
|
+
declare function MenuNavBar({ menus, onClick }: MenuNavBarProps): react_jsx_runtime.JSX.Element;
|
|
105
95
|
|
|
106
96
|
interface TopNavBarProps {
|
|
107
97
|
onClickNoti: () => void;
|
|
108
98
|
}
|
|
109
|
-
declare function TopNavBar({ onClickNoti }: TopNavBarProps): JSX.Element;
|
|
99
|
+
declare function TopNavBar({ onClickNoti }: TopNavBarProps): react_jsx_runtime.JSX.Element;
|
|
110
100
|
|
|
111
101
|
export { Checkbox, CheckboxGroup, GhostButton, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, Radio, RadioGroup, SecondaryButton, Switch, TopNavBar };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
type ElementType = undefined.ElementType;
|
|
3
|
-
interface Element extends undefined.Element {}
|
|
4
|
-
interface ElementClass extends undefined.ElementClass {}
|
|
5
|
-
interface ElementAttributesProperty extends undefined.ElementAttributesProperty {}
|
|
6
|
-
interface ElementChildrenAttribute extends undefined.ElementChildrenAttribute {}
|
|
7
|
-
type LibraryManagedAttributes<C, P> = undefined.LibraryManagedAttributes<C, P>;
|
|
8
|
-
interface IntrinsicAttributes extends undefined.IntrinsicAttributes {}
|
|
9
|
-
interface IntrinsicClassAttributes<T> extends undefined.IntrinsicClassAttributes<T> {}
|
|
10
|
-
interface IntrinsicElements extends undefined.IntrinsicElements {}
|
|
11
|
-
}
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
12
2
|
|
|
13
3
|
type ColorScale = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
14
4
|
type BaseColor = "primary" | "gray" | "green" | "red" | "yellow" | "blue";
|
|
@@ -21,7 +11,7 @@ interface PrimaryButtonProps {
|
|
|
21
11
|
bgColor?: ThemeColor;
|
|
22
12
|
textColor?: "white" | "black";
|
|
23
13
|
}
|
|
24
|
-
declare function PrimaryButton({ title, onClick, iconLeft, iconRight, bgColor, textColor, }: PrimaryButtonProps): JSX.Element;
|
|
14
|
+
declare function PrimaryButton({ title, onClick, iconLeft, iconRight, bgColor, textColor, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
25
15
|
|
|
26
16
|
interface SecondaryButtonProps {
|
|
27
17
|
title: string;
|
|
@@ -29,7 +19,7 @@ interface SecondaryButtonProps {
|
|
|
29
19
|
iconLeft?: React.ReactNode;
|
|
30
20
|
iconRight?: React.ReactNode;
|
|
31
21
|
}
|
|
32
|
-
declare function SecondaryButton({ title, onClick, iconLeft, iconRight }: SecondaryButtonProps): JSX.Element;
|
|
22
|
+
declare function SecondaryButton({ title, onClick, iconLeft, iconRight }: SecondaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
33
23
|
|
|
34
24
|
interface GhostButtonProps {
|
|
35
25
|
title: string;
|
|
@@ -37,19 +27,19 @@ interface GhostButtonProps {
|
|
|
37
27
|
iconLeft?: React.ReactNode;
|
|
38
28
|
iconRight?: React.ReactNode;
|
|
39
29
|
}
|
|
40
|
-
declare function GhostButton({ title, onClick, iconLeft, iconRight }: GhostButtonProps): JSX.Element;
|
|
30
|
+
declare function GhostButton({ title, onClick, iconLeft, iconRight }: GhostButtonProps): react_jsx_runtime.JSX.Element;
|
|
41
31
|
|
|
42
32
|
interface LoaderProps {
|
|
43
33
|
size?: number;
|
|
44
34
|
}
|
|
45
|
-
declare function Loader({ size }: LoaderProps): JSX.Element;
|
|
35
|
+
declare function Loader({ size }: LoaderProps): react_jsx_runtime.JSX.Element;
|
|
46
36
|
|
|
47
37
|
interface CheckboxProps {
|
|
48
38
|
label?: string;
|
|
49
39
|
checked: boolean;
|
|
50
40
|
onChange: (checked: boolean) => void;
|
|
51
41
|
}
|
|
52
|
-
declare function Checkbox({ label, checked, onChange }: CheckboxProps): JSX.Element;
|
|
42
|
+
declare function Checkbox({ label, checked, onChange }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
53
43
|
|
|
54
44
|
interface CheckboxOption {
|
|
55
45
|
checked: boolean;
|
|
@@ -60,13 +50,13 @@ interface CheckboxGroupProps {
|
|
|
60
50
|
onChange: (label: string) => void;
|
|
61
51
|
alignment?: "horizontal" | "vertical";
|
|
62
52
|
}
|
|
63
|
-
declare function CheckboxGroup({ options, onChange, alignment }: CheckboxGroupProps): JSX.Element;
|
|
53
|
+
declare function CheckboxGroup({ options, onChange, alignment }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
64
54
|
|
|
65
55
|
interface RadioProps {
|
|
66
56
|
selected: boolean;
|
|
67
57
|
onChange: (selected: boolean) => void;
|
|
68
58
|
}
|
|
69
|
-
declare function Radio({ selected, onChange }: RadioProps): JSX.Element;
|
|
59
|
+
declare function Radio({ selected, onChange }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
70
60
|
|
|
71
61
|
interface RadioOption {
|
|
72
62
|
value: string;
|
|
@@ -78,14 +68,14 @@ interface RadioGroupProps {
|
|
|
78
68
|
onChange: (value: string) => void;
|
|
79
69
|
alignment?: "vertical" | "horizontal";
|
|
80
70
|
}
|
|
81
|
-
declare function RadioGroup({ options, value, onChange, alignment }: RadioGroupProps): JSX.Element;
|
|
71
|
+
declare function RadioGroup({ options, value, onChange, alignment }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
82
72
|
|
|
83
73
|
interface SwitchProps {
|
|
84
74
|
label?: string;
|
|
85
75
|
checked: boolean;
|
|
86
76
|
onChange: (checked: boolean) => void;
|
|
87
77
|
}
|
|
88
|
-
declare function Switch({ label, checked, onChange }: SwitchProps): JSX.Element;
|
|
78
|
+
declare function Switch({ label, checked, onChange }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
89
79
|
|
|
90
80
|
interface Menu {
|
|
91
81
|
title: string;
|
|
@@ -101,11 +91,11 @@ interface MenuNavBarProps {
|
|
|
101
91
|
menus: Menu[];
|
|
102
92
|
onClick: (path: string) => void;
|
|
103
93
|
}
|
|
104
|
-
declare function MenuNavBar({ menus, onClick }: MenuNavBarProps):
|
|
94
|
+
declare function MenuNavBar({ menus, onClick }: MenuNavBarProps): react_jsx_runtime.JSX.Element;
|
|
105
95
|
|
|
106
96
|
interface TopNavBarProps {
|
|
107
97
|
onClickNoti: () => void;
|
|
108
98
|
}
|
|
109
|
-
declare function TopNavBar({ onClickNoti }: TopNavBarProps): JSX.Element;
|
|
99
|
+
declare function TopNavBar({ onClickNoti }: TopNavBarProps): react_jsx_runtime.JSX.Element;
|
|
110
100
|
|
|
111
101
|
export { Checkbox, CheckboxGroup, GhostButton, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, Radio, RadioGroup, SecondaryButton, Switch, TopNavBar };
|