@liujip0/components 0.2.23 → 0.2.25
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/outlined.css +1 -0
- package/dist/components/Backdrop/Backdrop.js +8 -7
- package/dist/components/Backdrop/Backdrop.stories.d.ts +8 -0
- package/dist/components/Backdrop/Backdrop.stories.js +12 -0
- package/dist/components/Button/Button.js +7 -6
- package/dist/components/Button/Button.stories.js +8 -4
- package/dist/components/Button/IconButton/IconButton.js +6 -5
- package/dist/components/Button/IconButton/IconButton.stories.d.ts +8 -0
- package/dist/components/Button/IconButton/IconButton.stories.js +13 -0
- package/dist/components/Button/ToggleButton/ToggleButton.js +12 -11
- package/dist/components/Button/ToggleButton/ToggleButton.stories.d.ts +9 -0
- package/dist/components/Button/ToggleButton/ToggleButton.stories.js +23 -0
- package/dist/components/Button/ToggleButton/ToggleButtonGroup.js +8 -7
- package/dist/components/Button/ToggleButton/ToggleButtonGroup.stories.d.ts +8 -0
- package/dist/components/Button/ToggleButton/ToggleButtonGroup.stories.js +22 -0
- package/dist/components/Dialog/Dialog.js +20 -19
- package/dist/components/Dialog/Dialog.stories.d.ts +8 -0
- package/dist/components/Dialog/Dialog.stories.js +22 -0
- package/dist/components/Divider/Divider.js +6 -5
- package/dist/components/Divider/Divider.stories.d.ts +9 -0
- package/dist/components/Divider/Divider.stories.js +17 -0
- package/dist/components/Input/Checkbox/Checkbox.js +4 -3
- package/dist/components/Input/Checkbox/Checkbox.stories.d.ts +8 -0
- package/dist/components/Input/Checkbox/Checkbox.stories.js +16 -0
- package/dist/components/Input/Counter/Counter.js +10 -9
- package/dist/components/Input/Counter/Counter.stories.d.ts +8 -0
- package/dist/components/Input/Counter/Counter.stories.js +18 -0
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +16 -15
- package/dist/components/Input/Input.stories.d.ts +8 -0
- package/dist/components/Input/Input.stories.js +13 -0
- package/dist/components/Input/Password.js +2 -1
- package/dist/components/Input/Password.stories.d.ts +8 -0
- package/dist/components/Input/Password.stories.js +13 -0
- package/dist/components/Input/Radio/Radio.js +7 -6
- package/dist/components/Input/Radio/Radio.stories.d.ts +8 -0
- package/dist/components/Input/Radio/Radio.stories.js +14 -0
- package/dist/components/Input/Radio/RadioGroup.js +8 -7
- package/dist/components/Input/Radio/RadioGroup.stories.d.ts +8 -0
- package/dist/components/Input/Radio/RadioGroup.stories.js +51 -0
- package/dist/components/Input/Select/Select.js +8 -7
- package/dist/components/Input/Select/Select.stories.d.ts +8 -0
- package/dist/components/Input/Select/Select.stories.js +20 -0
- package/dist/components/Input/TextArea.d.ts +1 -1
- package/dist/components/Input/TextArea.js +12 -11
- package/dist/components/Input/TextArea.stories.d.ts +8 -0
- package/dist/components/Input/TextArea.stories.js +13 -0
- package/dist/components/Snackbar/Snackbar.js +12 -11
- package/dist/components/Snackbar/Snackbar.stories.d.ts +8 -0
- package/dist/components/Snackbar/Snackbar.stories.js +19 -0
- package/dist/components/Table/Table.js +7 -6
- package/dist/components/Table/Table.stories.d.ts +8 -0
- package/dist/components/Table/Table.stories.js +40 -0
- package/dist/components/Tabs/Tab.js +8 -7
- package/dist/components/Tabs/Tab.stories.d.ts +8 -0
- package/dist/components/Tabs/Tab.stories.js +13 -0
- package/dist/components/Tabs/TabBar.js +10 -9
- package/dist/components/Tabs/TabBar.stories.d.ts +8 -0
- package/dist/components/Tabs/TabBar.stories.js +22 -0
- package/dist/components/Tabs/Tabs.js +9 -8
- package/dist/components/Tabs/Tabs.stories.d.ts +8 -0
- package/dist/components/Tabs/Tabs.stories.js +16 -0
- package/dist/components/Tooltip/Tooltip.js +7 -6
- package/dist/components/Tooltip/Tooltip.stories.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.stories.js +13 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +47 -44
- package/package.json +17 -12
- /package/dist/assets/{Password.css → main.css} +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/outlined.css';/* empty css */
|
|
2
3
|
import { s as e } from "../../Input.module-lBhDn5k1.js";
|
|
3
|
-
function
|
|
4
|
+
function D({
|
|
4
5
|
id: t,
|
|
5
6
|
value: m,
|
|
6
7
|
onChange: l,
|
|
7
8
|
type: o = "text",
|
|
8
9
|
label: s,
|
|
9
|
-
helperText:
|
|
10
|
-
startIcon:
|
|
11
|
-
endIcon:
|
|
12
|
-
error:
|
|
13
|
-
disabled:
|
|
10
|
+
helperText: i,
|
|
11
|
+
startIcon: p,
|
|
12
|
+
endIcon: u,
|
|
13
|
+
error: n,
|
|
14
|
+
disabled: a,
|
|
14
15
|
className: h,
|
|
15
16
|
outlineClassName: x,
|
|
16
17
|
inputClassName: N,
|
|
@@ -31,37 +32,37 @@ function y({
|
|
|
31
32
|
/* @__PURE__ */ c(
|
|
32
33
|
"div",
|
|
33
34
|
{
|
|
34
|
-
className: e.outline + " " + (x || "") + " " + (
|
|
35
|
+
className: e.outline + " " + (x || "") + " " + (n ? e.errorOutline : ""),
|
|
35
36
|
children: [
|
|
36
|
-
|
|
37
|
+
p,
|
|
37
38
|
/* @__PURE__ */ r(
|
|
38
39
|
"input",
|
|
39
40
|
{
|
|
40
|
-
className: e.input + " " + (N || "") + " " + (
|
|
41
|
+
className: e.input + " " + (N || "") + " " + (a ? e.inputDisabled : ""),
|
|
41
42
|
value: m,
|
|
42
43
|
onChange: (T) => {
|
|
43
44
|
l && l(T.currentTarget.value);
|
|
44
45
|
},
|
|
45
46
|
type: o,
|
|
46
47
|
id: t,
|
|
47
|
-
disabled:
|
|
48
|
+
disabled: a,
|
|
48
49
|
ref: v,
|
|
49
50
|
...j
|
|
50
51
|
}
|
|
51
52
|
),
|
|
52
|
-
|
|
53
|
+
u
|
|
53
54
|
]
|
|
54
55
|
}
|
|
55
56
|
),
|
|
56
|
-
|
|
57
|
+
i && /* @__PURE__ */ r(
|
|
57
58
|
"p",
|
|
58
59
|
{
|
|
59
|
-
className: e.helperText + " " + (f || "") + " " + (
|
|
60
|
-
children:
|
|
60
|
+
className: e.helperText + " " + (f || "") + " " + (n ? e.helperTextError : ""),
|
|
61
|
+
children: i
|
|
61
62
|
}
|
|
62
63
|
)
|
|
63
64
|
] });
|
|
64
65
|
}
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
+
D as Input
|
|
67
68
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/outlined.css';/* empty css */
|
|
2
3
|
import { useState as r } from "react";
|
|
3
4
|
import { IconButton as e } from "../Button/IconButton/IconButton.js";
|
|
4
5
|
import { Input as n } from "./Input.js";
|
|
5
|
-
|
|
6
|
+
function d({ ...t }) {
|
|
6
7
|
const [s, i] = r(!1);
|
|
7
8
|
return /* @__PURE__ */ o(
|
|
8
9
|
n,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
2
|
+
import '../../../assets/outlined.css';import '../../../assets/Radio.css';/* empty css */
|
|
3
|
+
import { IconButton as m } from "../../Button/IconButton/IconButton.js";
|
|
4
|
+
const u = "_container_12u6r_1", _ = "_label_12u6r_7", a = {
|
|
5
|
+
container: u,
|
|
5
6
|
label: _
|
|
6
7
|
};
|
|
7
8
|
function h({
|
|
@@ -15,7 +16,7 @@ function h({
|
|
|
15
16
|
}) {
|
|
16
17
|
return /* @__PURE__ */ i("div", { className: a.container + " " + (r || ""), children: [
|
|
17
18
|
/* @__PURE__ */ i(
|
|
18
|
-
|
|
19
|
+
m,
|
|
19
20
|
{
|
|
20
21
|
className: d || "",
|
|
21
22
|
onClick: () => {
|
|
@@ -49,10 +50,10 @@ function h({
|
|
|
49
50
|
)
|
|
50
51
|
] });
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function N({ ...c }) {
|
|
53
54
|
return /* @__PURE__ */ t(h, { ...c });
|
|
54
55
|
}
|
|
55
56
|
export {
|
|
56
|
-
|
|
57
|
+
N as Radio,
|
|
57
58
|
h as RadioInternal
|
|
58
59
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import '../../../assets/outlined.css';import '../../../assets/RadioGroup.css';/* empty css */
|
|
2
3
|
import l from "react";
|
|
3
|
-
|
|
4
|
+
const x = "_container_1ygqk_1", d = "_outline_1ygqk_6", T = "_label_1ygqk_12", y = "_helperText_1ygqk_17", E = "_helperTextError_1ygqk_24", r = {
|
|
4
5
|
container: x,
|
|
5
6
|
outline: d,
|
|
6
7
|
label: T,
|
|
7
8
|
helperText: y,
|
|
8
9
|
helperTextError: E
|
|
9
10
|
};
|
|
10
|
-
function
|
|
11
|
-
name:
|
|
12
|
-
value:
|
|
11
|
+
function q({
|
|
12
|
+
name: i,
|
|
13
|
+
value: a,
|
|
13
14
|
onChange: n,
|
|
14
15
|
children: c,
|
|
15
16
|
label: o,
|
|
@@ -18,8 +19,8 @@ function k({
|
|
|
18
19
|
className: _
|
|
19
20
|
}) {
|
|
20
21
|
const m = l.Children.map(c, (e) => l.isValidElement(e) ? l.cloneElement(e, {
|
|
21
|
-
name:
|
|
22
|
-
selected:
|
|
22
|
+
name: i,
|
|
23
|
+
selected: a === e.props.value,
|
|
23
24
|
onChange: (u) => {
|
|
24
25
|
n(u ? e.props.value : "");
|
|
25
26
|
}
|
|
@@ -37,5 +38,5 @@ function k({
|
|
|
37
38
|
] });
|
|
38
39
|
}
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
+
q as RadioGroup
|
|
41
42
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs as r, Fragment as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Radio as a } from "./Radio.js";
|
|
3
|
+
import { RadioGroup as d } from "./RadioGroup.js";
|
|
4
|
+
const p = {
|
|
5
|
+
component: d
|
|
6
|
+
}, t = {
|
|
7
|
+
args: {
|
|
8
|
+
name: "radio-group-id",
|
|
9
|
+
value: "1",
|
|
10
|
+
onChange: () => {
|
|
11
|
+
},
|
|
12
|
+
children: /* @__PURE__ */ r(i, { children: [
|
|
13
|
+
/* @__PURE__ */ o(
|
|
14
|
+
a,
|
|
15
|
+
{
|
|
16
|
+
id: "radio-group-1",
|
|
17
|
+
value: "1",
|
|
18
|
+
label: "Radio 1"
|
|
19
|
+
}
|
|
20
|
+
),
|
|
21
|
+
/* @__PURE__ */ o(
|
|
22
|
+
a,
|
|
23
|
+
{
|
|
24
|
+
id: "radio-group-2",
|
|
25
|
+
value: "2",
|
|
26
|
+
label: "Radio 2"
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ o(
|
|
30
|
+
a,
|
|
31
|
+
{
|
|
32
|
+
id: "radio-group-3",
|
|
33
|
+
value: "3",
|
|
34
|
+
label: "Radio 3"
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ o(
|
|
38
|
+
a,
|
|
39
|
+
{
|
|
40
|
+
id: "radio-group-4",
|
|
41
|
+
value: "4",
|
|
42
|
+
label: "Radio 4"
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] })
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
t as Default,
|
|
50
|
+
p as default
|
|
51
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as y, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import '../../../assets/outlined.css';import '../../../assets/Select.css';/* empty css */
|
|
2
3
|
import "react";
|
|
3
|
-
|
|
4
|
+
const b = "_container_cgwzy_1", w = "_outline_cgwzy_6", z = "_errorOutline_cgwzy_19", d = "_select_cgwzy_23", T = "_selectDisabled_cgwzy_40", N = "_helperText_cgwzy_52", D = "_helperTextError_cgwzy_59", E = "_label_cgwzy_63", e = {
|
|
4
5
|
container: b,
|
|
5
6
|
outline: w,
|
|
6
7
|
errorOutline: z,
|
|
@@ -10,7 +11,7 @@ import '../../../assets/Select.css';const b = "_container_cgwzy_1", w = "_outlin
|
|
|
10
11
|
helperTextError: D,
|
|
11
12
|
label: E
|
|
12
13
|
};
|
|
13
|
-
function
|
|
14
|
+
function j({
|
|
14
15
|
id: t,
|
|
15
16
|
value: a,
|
|
16
17
|
onChange: r,
|
|
@@ -22,8 +23,8 @@ function v({
|
|
|
22
23
|
className: _,
|
|
23
24
|
outlineClassName: h,
|
|
24
25
|
selectClassName: p,
|
|
25
|
-
labelClassName:
|
|
26
|
-
helperTextClassName:
|
|
26
|
+
labelClassName: m,
|
|
27
|
+
helperTextClassName: u,
|
|
27
28
|
...x
|
|
28
29
|
}) {
|
|
29
30
|
return /* @__PURE__ */ y("div", { className: e.container + " " + (_ || ""), children: [
|
|
@@ -31,7 +32,7 @@ function v({
|
|
|
31
32
|
"label",
|
|
32
33
|
{
|
|
33
34
|
htmlFor: t,
|
|
34
|
-
className: e.label + " " + (e.labelClassName || "") + " " + (
|
|
35
|
+
className: e.label + " " + (e.labelClassName || "") + " " + (m || ""),
|
|
35
36
|
children: c
|
|
36
37
|
}
|
|
37
38
|
),
|
|
@@ -58,12 +59,12 @@ function v({
|
|
|
58
59
|
s && /* @__PURE__ */ l(
|
|
59
60
|
"p",
|
|
60
61
|
{
|
|
61
|
-
className: e.helperText + " " + (n ? e.helperTextError : "") + " " + (
|
|
62
|
+
className: e.helperText + " " + (n ? e.helperTextError : "") + " " + (u || ""),
|
|
62
63
|
children: s
|
|
63
64
|
}
|
|
64
65
|
)
|
|
65
66
|
] });
|
|
66
67
|
}
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
j as Select
|
|
69
70
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs as o, Fragment as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Select as n } from "./Select.js";
|
|
3
|
+
const r = {
|
|
4
|
+
component: n
|
|
5
|
+
}, p = {
|
|
6
|
+
args: {
|
|
7
|
+
id: "select-id",
|
|
8
|
+
value: "1",
|
|
9
|
+
children: /* @__PURE__ */ o(t, { children: [
|
|
10
|
+
/* @__PURE__ */ e("option", { value: "1", children: "Option 1" }),
|
|
11
|
+
/* @__PURE__ */ e("option", { value: "2", children: "Option 2" }),
|
|
12
|
+
/* @__PURE__ */ e("option", { value: "3", children: "Option 3" }),
|
|
13
|
+
/* @__PURE__ */ e("option", { value: "4", children: "Option 4" })
|
|
14
|
+
] })
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
p as Default,
|
|
19
|
+
r as default
|
|
20
|
+
};
|
|
@@ -11,7 +11,7 @@ type TextAreaProps = {
|
|
|
11
11
|
textAreaClassName?: string;
|
|
12
12
|
labelClassName?: string;
|
|
13
13
|
helperTextClassName?: string;
|
|
14
|
-
ref?: React.
|
|
14
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
|
15
15
|
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "id" | "value" | "onChange" | "disabled" | "className">;
|
|
16
16
|
export declare function TextArea({ id, value, onChange, label, helperText, error, disabled, className, outlineClassName, textAreaClassName, labelClassName, helperTextClassName, ref, ...props }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/outlined.css';/* empty css */
|
|
2
3
|
import { s as e } from "../../Input.module-lBhDn5k1.js";
|
|
3
|
-
function
|
|
4
|
-
id:
|
|
4
|
+
function b({
|
|
5
|
+
id: t,
|
|
5
6
|
value: c,
|
|
6
|
-
onChange:
|
|
7
|
+
onChange: a,
|
|
7
8
|
label: l,
|
|
8
9
|
helperText: s,
|
|
9
10
|
error: i,
|
|
10
11
|
disabled: n,
|
|
11
12
|
className: m,
|
|
12
13
|
outlineClassName: o,
|
|
13
|
-
textAreaClassName:
|
|
14
|
-
labelClassName:
|
|
14
|
+
textAreaClassName: p,
|
|
15
|
+
labelClassName: u,
|
|
15
16
|
helperTextClassName: h,
|
|
16
17
|
ref: x,
|
|
17
18
|
...N
|
|
@@ -20,8 +21,8 @@ function j({
|
|
|
20
21
|
l && /* @__PURE__ */ r(
|
|
21
22
|
"label",
|
|
22
23
|
{
|
|
23
|
-
htmlFor:
|
|
24
|
-
className: e.label + " " + (
|
|
24
|
+
htmlFor: t,
|
|
25
|
+
className: e.label + " " + (u || ""),
|
|
25
26
|
children: l
|
|
26
27
|
}
|
|
27
28
|
),
|
|
@@ -32,12 +33,12 @@ function j({
|
|
|
32
33
|
children: /* @__PURE__ */ r(
|
|
33
34
|
"textarea",
|
|
34
35
|
{
|
|
35
|
-
className: e.input + " " + (
|
|
36
|
+
className: e.input + " " + (p || "") + " " + (n ? e.inputDisabled : ""),
|
|
36
37
|
value: c,
|
|
37
38
|
onChange: (d) => {
|
|
38
|
-
|
|
39
|
+
a && a(d.currentTarget.value);
|
|
39
40
|
},
|
|
40
|
-
id:
|
|
41
|
+
id: t,
|
|
41
42
|
disabled: n,
|
|
42
43
|
ref: x,
|
|
43
44
|
...N
|
|
@@ -55,5 +56,5 @@ function j({
|
|
|
55
56
|
] });
|
|
56
57
|
}
|
|
57
58
|
export {
|
|
58
|
-
|
|
59
|
+
b as TextArea
|
|
59
60
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsxs as _, jsx as
|
|
1
|
+
import { jsxs as _, jsx as a, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/outlined.css';import '../../assets/Snackbar.css';/* empty css */
|
|
2
3
|
import { useEffect as g } from "react";
|
|
3
|
-
|
|
4
|
+
const k = "_snackbar_tl00m_1", d = "_message_tl00m_18", c = {
|
|
4
5
|
snackbar: k,
|
|
5
6
|
message: d
|
|
6
7
|
};
|
|
7
|
-
function
|
|
8
|
+
function x({
|
|
8
9
|
open: s,
|
|
9
10
|
onClose: e,
|
|
10
|
-
autoHideDuration:
|
|
11
|
+
autoHideDuration: r,
|
|
11
12
|
message: m,
|
|
12
13
|
action: t,
|
|
13
14
|
className: n,
|
|
@@ -15,17 +16,17 @@ function N({
|
|
|
15
16
|
actionClassName: l
|
|
16
17
|
}) {
|
|
17
18
|
return g(() => {
|
|
18
|
-
if (s &&
|
|
19
|
+
if (s && r && e) {
|
|
19
20
|
const f = setTimeout(() => {
|
|
20
21
|
e();
|
|
21
|
-
},
|
|
22
|
+
}, r);
|
|
22
23
|
return () => clearTimeout(f);
|
|
23
24
|
}
|
|
24
|
-
}, [s,
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
] }) : /* @__PURE__ */
|
|
25
|
+
}, [s, r, e]), s ? /* @__PURE__ */ _("div", { className: c.snackbar + " " + (n || ""), children: [
|
|
26
|
+
/* @__PURE__ */ a("p", { className: c.message + " " + (i || ""), children: m }),
|
|
27
|
+
/* @__PURE__ */ a("div", { className: l || "", children: t })
|
|
28
|
+
] }) : /* @__PURE__ */ a(b, {});
|
|
28
29
|
}
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
x as Snackbar
|
|
31
32
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/outlined.css';import '../../assets/main.css';/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { IconButton as t } from "../Button/IconButton/IconButton.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { Snackbar as a } from "./Snackbar.js";
|
|
7
|
+
const c = {
|
|
8
|
+
component: a
|
|
9
|
+
}, p = {
|
|
10
|
+
args: {
|
|
11
|
+
open: !0,
|
|
12
|
+
message: "This is a snackbar message",
|
|
13
|
+
action: /* @__PURE__ */ o(t, { children: /* @__PURE__ */ o("span", { className: "material-symbols-outlined", children: "close" }) })
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
p as Default,
|
|
18
|
+
c as default
|
|
19
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/
|
|
2
|
+
import '../../assets/outlined.css';import '../../assets/Table.css';/* empty css */
|
|
3
|
+
const l = "_table_10gvy_1", s = "_tableHead_10gvy_8", c = "_th_10gvy_21", o = "_td_10gvy_33", n = {
|
|
3
4
|
table: l,
|
|
4
5
|
tableHead: s,
|
|
5
6
|
th: c,
|
|
6
|
-
td:
|
|
7
|
+
td: o
|
|
7
8
|
};
|
|
8
9
|
function _({ children: t, className: e }) {
|
|
9
10
|
return /* @__PURE__ */ a("table", { className: n.table + " " + (e || ""), children: t });
|
|
@@ -11,15 +12,15 @@ function _({ children: t, className: e }) {
|
|
|
11
12
|
function b({ children: t, className: e }) {
|
|
12
13
|
return /* @__PURE__ */ a("thead", { className: n.tableHead + " " + (e || ""), children: t });
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
+
function u({ children: t, className: e }) {
|
|
15
16
|
return /* @__PURE__ */ a("th", { className: n.th + " " + (e || ""), children: t });
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
+
function h({ children: t, className: e }) {
|
|
18
19
|
return /* @__PURE__ */ a("td", { className: n.td + " " + (e || ""), children: t });
|
|
19
20
|
}
|
|
20
21
|
export {
|
|
21
22
|
_ as Table,
|
|
22
23
|
b as TableHead,
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
h as Td,
|
|
25
|
+
u as Th
|
|
25
26
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Table as l, TableHead as c, Th as r, Td as n } from "./Table.js";
|
|
3
|
+
const o = {
|
|
4
|
+
component: l
|
|
5
|
+
}, a = {
|
|
6
|
+
args: {
|
|
7
|
+
children: /* @__PURE__ */ t(d, { children: [
|
|
8
|
+
/* @__PURE__ */ e(c, { children: /* @__PURE__ */ t("tr", { children: [
|
|
9
|
+
/* @__PURE__ */ e(r, { children: "Header 1" }),
|
|
10
|
+
/* @__PURE__ */ e(r, { children: "Header 2" }),
|
|
11
|
+
/* @__PURE__ */ e(r, { children: "Header 3" }),
|
|
12
|
+
/* @__PURE__ */ e(r, { children: "Header 4" })
|
|
13
|
+
] }) }),
|
|
14
|
+
/* @__PURE__ */ t("tbody", { children: [
|
|
15
|
+
/* @__PURE__ */ t("tr", { children: [
|
|
16
|
+
/* @__PURE__ */ e(r, { children: "Row 1" }),
|
|
17
|
+
/* @__PURE__ */ e(n, { children: "Content 1" }),
|
|
18
|
+
/* @__PURE__ */ e(n, { children: "Content 2" }),
|
|
19
|
+
/* @__PURE__ */ e(n, { children: "Content 3" })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ t("tr", { children: [
|
|
22
|
+
/* @__PURE__ */ e(r, { children: "Row 2" }),
|
|
23
|
+
/* @__PURE__ */ e(n, { children: "Content 4" }),
|
|
24
|
+
/* @__PURE__ */ e(n, { children: "Content 5" }),
|
|
25
|
+
/* @__PURE__ */ e(n, { children: "Content 6" })
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ t("tr", { children: [
|
|
28
|
+
/* @__PURE__ */ e(r, { children: "Row 3" }),
|
|
29
|
+
/* @__PURE__ */ e(n, { children: "Content 7" }),
|
|
30
|
+
/* @__PURE__ */ e(n, { children: "Content 8" }),
|
|
31
|
+
/* @__PURE__ */ e(n, { children: "Content 9" })
|
|
32
|
+
] })
|
|
33
|
+
] })
|
|
34
|
+
] })
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
a as Default,
|
|
39
|
+
o as default
|
|
40
|
+
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/outlined.css';import '../../assets/Tab.css';/* empty css */
|
|
3
|
+
const s = "_tab_1m0oo_1", m = "_activeTab_1m0oo_15", t = {
|
|
4
|
+
tab: s,
|
|
5
|
+
activeTab: m
|
|
5
6
|
};
|
|
6
|
-
function
|
|
7
|
+
function _({
|
|
7
8
|
selected: a,
|
|
8
9
|
onClick: o,
|
|
9
10
|
children: b,
|
|
10
11
|
className: c,
|
|
11
12
|
...e
|
|
12
13
|
}) {
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ i(
|
|
14
15
|
"div",
|
|
15
16
|
{
|
|
16
17
|
className: t.tab + " " + (c || "") + " " + (a ? t.activeTab : ""),
|
|
@@ -21,5 +22,5 @@ function m({
|
|
|
21
22
|
);
|
|
22
23
|
}
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
_ as Tab
|
|
25
26
|
};
|