@liujip0/components 0.2.2 → 0.2.3
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/components/Backdrop/Backdrop.d.ts +2 -1
- package/dist/components/Backdrop/Backdrop.js +7 -7
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.js +4 -4
- package/dist/components/Button/IconButton/IconButton.d.ts +3 -2
- package/dist/components/Button/IconButton/IconButton.js +15 -9
- package/dist/components/Button/ToggleButton/ToggleButton.d.ts +10 -10
- package/dist/components/Button/ToggleButton/ToggleButton.js +28 -22
- package/dist/components/Button/ToggleButton/ToggleButtonGroup.d.ts +2 -2
- package/dist/components/Button/ToggleButton/ToggleButtonGroup.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +9 -4
- package/dist/components/Dialog/Dialog.js +32 -26
- package/dist/components/Divider/Divider.d.ts +2 -1
- package/dist/components/Divider/Divider.js +9 -9
- package/dist/components/Input/Checkbox/Checkbox.d.ts +5 -3
- package/dist/components/Input/Checkbox/Checkbox.js +23 -19
- package/dist/components/Input/Counter/Counter.d.ts +8 -4
- package/dist/components/Input/Counter/Counter.js +36 -30
- package/dist/components/Input/Input.d.ts +6 -6
- package/dist/components/Input/Input.js +17 -17
- package/dist/components/Input/Radio/Radio.d.ts +10 -5
- package/dist/components/Input/Radio/Radio.js +34 -29
- package/dist/components/Input/Radio/RadioGroup.d.ts +5 -5
- package/dist/components/Input/Radio/RadioGroup.js +17 -17
- package/dist/components/Input/Select/Select.d.ts +9 -5
- package/dist/components/Input/Select/Select.js +38 -32
- package/dist/components/Input/TextArea.d.ts +5 -5
- package/dist/components/Input/TextArea.js +16 -16
- package/dist/components/Snackbar/Snackbar.d.ts +5 -2
- package/dist/components/Snackbar/Snackbar.js +23 -20
- package/dist/components/Table/Table.d.ts +6 -3
- package/dist/components/Table/Table.js +10 -10
- package/dist/components/Tabs/Tab.d.ts +3 -4
- package/dist/components/Tabs/Tab.js +8 -8
- package/dist/components/Tabs/TabBar.d.ts +2 -1
- package/dist/components/Tabs/TabBar.js +7 -7
- package/dist/utils/omit.d.ts +1 -0
- package/dist/utils/omit.js +11 -0
- package/package.json +1 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { s as e } from "../../Input.module-C7oR_KDs.js";
|
|
3
3
|
function g({
|
|
4
|
+
id: t,
|
|
4
5
|
value: m,
|
|
5
|
-
onChange:
|
|
6
|
+
onChange: l,
|
|
6
7
|
type: o = "text",
|
|
7
|
-
|
|
8
|
+
label: s,
|
|
9
|
+
helperText: n,
|
|
8
10
|
startIcon: u,
|
|
9
11
|
endIcon: p,
|
|
10
|
-
|
|
11
|
-
error: n,
|
|
12
|
-
helperText: a,
|
|
12
|
+
error: a,
|
|
13
13
|
disabled: i,
|
|
14
14
|
className: h,
|
|
15
15
|
outlineClassName: x,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
inputClassName: N,
|
|
17
|
+
labelClassName: d,
|
|
18
|
+
helperTextClassName: f,
|
|
19
19
|
...v
|
|
20
20
|
}) {
|
|
21
21
|
return /* @__PURE__ */ c("div", { className: e.container + " " + (h || ""), children: [
|
|
22
22
|
s && /* @__PURE__ */ r(
|
|
23
23
|
"label",
|
|
24
24
|
{
|
|
25
|
-
htmlFor:
|
|
26
|
-
className: e.label + " " + (
|
|
25
|
+
htmlFor: t,
|
|
26
|
+
className: e.label + " " + (d || ""),
|
|
27
27
|
children: s
|
|
28
28
|
}
|
|
29
29
|
),
|
|
30
30
|
/* @__PURE__ */ c(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
|
-
className: e.outline + " " + (x || "") + " " + (
|
|
33
|
+
className: e.outline + " " + (x || "") + " " + (a ? e.errorOutline : ""),
|
|
34
34
|
children: [
|
|
35
35
|
u,
|
|
36
36
|
/* @__PURE__ */ r(
|
|
37
37
|
"input",
|
|
38
38
|
{
|
|
39
|
-
className: e.input + " " + (
|
|
39
|
+
className: e.input + " " + (N || "") + " " + (i ? e.inputDisabled : ""),
|
|
40
40
|
value: m,
|
|
41
41
|
onChange: (j) => {
|
|
42
|
-
|
|
42
|
+
l && l(j.currentTarget.value);
|
|
43
43
|
},
|
|
44
44
|
type: o,
|
|
45
|
-
id:
|
|
45
|
+
id: t,
|
|
46
46
|
disabled: i,
|
|
47
47
|
...v
|
|
48
48
|
}
|
|
@@ -51,11 +51,11 @@ function g({
|
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
|
|
54
|
+
n && /* @__PURE__ */ r(
|
|
55
55
|
"p",
|
|
56
56
|
{
|
|
57
|
-
className: e.helperText + " " + (
|
|
58
|
-
children:
|
|
57
|
+
className: e.helperText + " " + (f || "") + " " + (a ? e.helperTextError : ""),
|
|
58
|
+
children: n
|
|
59
59
|
}
|
|
60
60
|
)
|
|
61
61
|
] });
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export type RadioProps = {
|
|
2
|
-
selected?: boolean;
|
|
3
|
-
onChange?: (value: boolean) => void;
|
|
4
2
|
id: string;
|
|
5
3
|
value: string;
|
|
6
|
-
|
|
4
|
+
onChange?: (value: boolean) => void;
|
|
7
5
|
label?: string | React.ReactNode;
|
|
8
6
|
className?: string;
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
buttonClassName?: string;
|
|
8
|
+
labelClassName?: string;
|
|
9
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "id" | "value" | "selected" | "onChange" | "className">;
|
|
10
|
+
export type RadioPropsAsChild = {
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
} & RadioProps;
|
|
13
|
+
export declare function RadioInternal({ id, onChange, label, className, buttonClassName, labelClassName, }: RadioProps): React.ReactNode;
|
|
14
|
+
export declare function RadioInternal({ selected }: RadioPropsAsChild): React.ReactNode;
|
|
15
|
+
export declare function Radio({ ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,53 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IconButton as
|
|
3
|
-
import '../../../assets/Radio.css';const m = "_container_12u6r_1",
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { IconButton as u } from "../../Button/IconButton/IconButton.js";
|
|
3
|
+
import '../../../assets/Radio.css';const m = "_container_12u6r_1", _ = "_label_12u6r_7", a = {
|
|
4
4
|
container: m,
|
|
5
|
-
label:
|
|
5
|
+
label: _
|
|
6
6
|
};
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
onChange:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
function h({
|
|
8
|
+
id: c,
|
|
9
|
+
onChange: n,
|
|
10
|
+
label: l,
|
|
11
|
+
className: r,
|
|
12
|
+
buttonClassName: d,
|
|
13
|
+
labelClassName: s,
|
|
14
|
+
...e
|
|
14
15
|
}) {
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
16
|
+
return /* @__PURE__ */ i("div", { className: a.container + " " + (r || ""), children: [
|
|
17
|
+
/* @__PURE__ */ i(
|
|
18
|
+
u,
|
|
18
19
|
{
|
|
19
|
-
className:
|
|
20
|
+
className: d || "",
|
|
20
21
|
onClick: () => {
|
|
21
|
-
e &&
|
|
22
|
+
n && "selected" in e && n(!e.selected);
|
|
22
23
|
},
|
|
23
24
|
children: [
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */
|
|
25
|
+
"selected" in e && e.selected ? /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: "radio_button_checked" }) : /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: "radio_button_unchecked" }),
|
|
26
|
+
/* @__PURE__ */ t(
|
|
26
27
|
"input",
|
|
27
28
|
{
|
|
28
29
|
type: "radio",
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
e && e(s.currentTarget.checked);
|
|
30
|
+
id: c,
|
|
31
|
+
checked: "selected" in e && e.selected,
|
|
32
|
+
onChange: (o) => {
|
|
33
|
+
n && n(o.currentTarget.checked);
|
|
34
34
|
},
|
|
35
|
-
hidden: !0
|
|
35
|
+
hidden: !0,
|
|
36
|
+
...e
|
|
36
37
|
}
|
|
37
38
|
)
|
|
38
39
|
]
|
|
39
40
|
}
|
|
40
41
|
),
|
|
41
|
-
|
|
42
|
+
l && /* @__PURE__ */ t(
|
|
42
43
|
"label",
|
|
43
44
|
{
|
|
44
|
-
htmlFor:
|
|
45
|
-
className:
|
|
46
|
-
children:
|
|
45
|
+
htmlFor: c,
|
|
46
|
+
className: a.label + " " + (s || ""),
|
|
47
|
+
children: l
|
|
47
48
|
}
|
|
48
49
|
)
|
|
49
50
|
] });
|
|
50
51
|
}
|
|
52
|
+
function k({ ...c }) {
|
|
53
|
+
return /* @__PURE__ */ t(h, { ...c });
|
|
54
|
+
}
|
|
51
55
|
export {
|
|
52
|
-
|
|
56
|
+
k as Radio,
|
|
57
|
+
h as RadioInternal
|
|
53
58
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
type RadioGroupProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
3
|
name: string;
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
5
7
|
label?: string;
|
|
6
|
-
error?: boolean;
|
|
7
8
|
helperText?: string;
|
|
9
|
+
error?: boolean;
|
|
8
10
|
className?: string;
|
|
9
|
-
value: string;
|
|
10
|
-
onChange: (value: string) => void;
|
|
11
11
|
};
|
|
12
|
-
export declare function RadioGroup({
|
|
12
|
+
export declare function RadioGroup({ name, value, onChange, children, label, helperText, error, className, }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -8,30 +8,30 @@ import '../../../assets/RadioGroup.css';const x = "_container_1ygqk_1", d = "_ou
|
|
|
8
8
|
helperTextError: E
|
|
9
9
|
};
|
|
10
10
|
function k({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
name: a,
|
|
12
|
+
value: i,
|
|
13
|
+
onChange: n,
|
|
14
|
+
children: c,
|
|
15
|
+
label: o,
|
|
16
|
+
helperText: s,
|
|
17
|
+
error: p,
|
|
18
|
+
className: _
|
|
19
19
|
}) {
|
|
20
|
-
const m = l.Children.map(
|
|
21
|
-
name:
|
|
22
|
-
selected:
|
|
20
|
+
const m = l.Children.map(c, (e) => l.isValidElement(e) ? l.cloneElement(e, {
|
|
21
|
+
name: a,
|
|
22
|
+
selected: i === e.props.value,
|
|
23
23
|
onChange: (u) => {
|
|
24
|
-
|
|
24
|
+
n(u ? e.props.value : "");
|
|
25
25
|
}
|
|
26
26
|
}) : e);
|
|
27
|
-
return /* @__PURE__ */ h("div", { className: r.container + " " + (
|
|
28
|
-
|
|
27
|
+
return /* @__PURE__ */ h("div", { className: r.container + " " + (_ || ""), children: [
|
|
28
|
+
o && /* @__PURE__ */ t("p", { className: r.label, children: o }),
|
|
29
29
|
/* @__PURE__ */ t("div", { className: r.outline, children: m }),
|
|
30
|
-
|
|
30
|
+
s && /* @__PURE__ */ t(
|
|
31
31
|
"p",
|
|
32
32
|
{
|
|
33
|
-
className: r.helperText + " " + (
|
|
34
|
-
children:
|
|
33
|
+
className: r.helperText + " " + (p ? r.helperTextError : ""),
|
|
34
|
+
children: s
|
|
35
35
|
}
|
|
36
36
|
)
|
|
37
37
|
] });
|
|
@@ -2,13 +2,17 @@ import { default as React } from 'react';
|
|
|
2
2
|
type SelectProps = {
|
|
3
3
|
id: string;
|
|
4
4
|
value: string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
5
6
|
children?: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
7
|
label?: string;
|
|
8
|
-
onChange?: (value: string) => void;
|
|
9
|
-
disabled?: boolean;
|
|
10
8
|
helperText?: string;
|
|
11
9
|
error?: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
outlineClassName?: string;
|
|
13
|
+
selectClassName?: string;
|
|
14
|
+
labelClassName?: string;
|
|
15
|
+
helperTextClassName?: string;
|
|
16
|
+
} & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "id" | "value" | "onChange" | "disabled" | "className">;
|
|
17
|
+
export declare function Select({ id, value, onChange, children, label, helperText, error, disabled, className, outlineClassName, selectClassName, labelClassName, helperTextClassName, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
14
18
|
export {};
|
|
@@ -1,63 +1,69 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as b, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import '../../../assets/Select.css';const
|
|
4
|
-
container:
|
|
5
|
-
outline:
|
|
6
|
-
errorOutline:
|
|
7
|
-
select:
|
|
8
|
-
selectDisabled:
|
|
9
|
-
helperText:
|
|
10
|
-
helperTextError:
|
|
11
|
-
label:
|
|
3
|
+
import '../../../assets/Select.css';const d = "_container_14cji_1", T = "_outline_14cji_6", N = "_errorOutline_14cji_18", D = "_select_14cji_22", E = "_selectDisabled_14cji_39", O = "_helperText_14cji_51", f = "_helperTextError_14cji_58", v = "_label_14cji_62", e = {
|
|
4
|
+
container: d,
|
|
5
|
+
outline: T,
|
|
6
|
+
errorOutline: N,
|
|
7
|
+
select: D,
|
|
8
|
+
selectDisabled: E,
|
|
9
|
+
helperText: O,
|
|
10
|
+
helperTextError: f,
|
|
11
|
+
label: v
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function C({
|
|
14
14
|
id: t,
|
|
15
15
|
value: o,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
label:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
onChange: r,
|
|
17
|
+
children: a,
|
|
18
|
+
label: c,
|
|
19
|
+
helperText: s,
|
|
20
|
+
error: i,
|
|
21
|
+
disabled: n,
|
|
22
|
+
className: _,
|
|
23
|
+
outlineClassName: h,
|
|
24
|
+
selectClassName: p,
|
|
25
|
+
labelClassName: u,
|
|
26
|
+
helperTextClassName: j,
|
|
27
|
+
...m
|
|
23
28
|
}) {
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
29
|
+
return /* @__PURE__ */ b("div", { className: e.container + " " + (_ || ""), children: [
|
|
30
|
+
c && /* @__PURE__ */ l(
|
|
26
31
|
"label",
|
|
27
32
|
{
|
|
28
33
|
htmlFor: t,
|
|
29
|
-
className: e.label,
|
|
30
|
-
children:
|
|
34
|
+
className: e.label + " " + (e.labelClassName || "") + " " + (u || ""),
|
|
35
|
+
children: c
|
|
31
36
|
}
|
|
32
37
|
),
|
|
33
38
|
/* @__PURE__ */ l(
|
|
34
39
|
"div",
|
|
35
40
|
{
|
|
36
|
-
className: e.outline + " " + (
|
|
41
|
+
className: e.outline + " " + (i ? e.errorOutline : "") + " " + (h || ""),
|
|
37
42
|
children: /* @__PURE__ */ l(
|
|
38
43
|
"select",
|
|
39
44
|
{
|
|
40
45
|
id: t,
|
|
41
|
-
className: e.select + " " + (
|
|
46
|
+
className: e.select + " " + (n ? e.selectDisabled : "") + " " + (p || ""),
|
|
42
47
|
value: o,
|
|
43
|
-
onChange: (
|
|
44
|
-
|
|
48
|
+
onChange: (x) => {
|
|
49
|
+
r && r(x.target.value);
|
|
45
50
|
},
|
|
46
|
-
disabled:
|
|
47
|
-
|
|
51
|
+
disabled: n,
|
|
52
|
+
...m,
|
|
53
|
+
children: a
|
|
48
54
|
}
|
|
49
55
|
)
|
|
50
56
|
}
|
|
51
57
|
),
|
|
52
|
-
|
|
58
|
+
s && /* @__PURE__ */ l(
|
|
53
59
|
"p",
|
|
54
60
|
{
|
|
55
|
-
className: e.helperText + " " + (
|
|
56
|
-
children:
|
|
61
|
+
className: e.helperText + " " + (i ? e.helperTextError : "") + " " + (j || ""),
|
|
62
|
+
children: s
|
|
57
63
|
}
|
|
58
64
|
)
|
|
59
65
|
] });
|
|
60
66
|
}
|
|
61
67
|
export {
|
|
62
|
-
|
|
68
|
+
C as Select
|
|
63
69
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
type TextAreaProps = {
|
|
2
|
+
id: string;
|
|
2
3
|
value: string | number;
|
|
3
4
|
onChange?: (value: string) => void;
|
|
4
|
-
id: string;
|
|
5
5
|
label?: string;
|
|
6
|
-
error?: boolean;
|
|
7
6
|
helperText?: string;
|
|
7
|
+
error?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
className?: string;
|
|
10
10
|
outlineClassName?: string;
|
|
11
|
+
textAreaClassName?: string;
|
|
11
12
|
labelClassName?: string;
|
|
12
13
|
helperTextClassName?: string;
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
export declare function TextArea({ value, onChange, id, label, error, helperText, disabled, className, outlineClassName, labelClassName, helperTextClassName, textAreaClassName, ...props }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "id" | "value" | "onChange" | "disabled" | "className">;
|
|
15
|
+
export declare function TextArea({ id, value, onChange, label, helperText, error, disabled, className, outlineClassName, textAreaClassName, labelClassName, helperTextClassName, ...props }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { s as e } from "../../Input.module-C7oR_KDs.js";
|
|
3
3
|
function T({
|
|
4
|
+
id: a,
|
|
4
5
|
value: c,
|
|
5
|
-
onChange:
|
|
6
|
-
id: t,
|
|
6
|
+
onChange: t,
|
|
7
7
|
label: l,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
helperText: s,
|
|
9
|
+
error: i,
|
|
10
10
|
disabled: n,
|
|
11
11
|
className: m,
|
|
12
12
|
outlineClassName: o,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
textAreaClassName: u,
|
|
14
|
+
labelClassName: p,
|
|
15
|
+
helperTextClassName: h,
|
|
16
16
|
...x
|
|
17
17
|
}) {
|
|
18
18
|
return /* @__PURE__ */ d("div", { className: e.container + " " + (m || ""), children: [
|
|
19
19
|
l && /* @__PURE__ */ r(
|
|
20
20
|
"label",
|
|
21
21
|
{
|
|
22
|
-
htmlFor:
|
|
23
|
-
className: e.label + " " + (
|
|
22
|
+
htmlFor: a,
|
|
23
|
+
className: e.label + " " + (p || ""),
|
|
24
24
|
children: l
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
27
|
/* @__PURE__ */ r(
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
|
-
className: e.outline + " " + (
|
|
30
|
+
className: e.outline + " " + (i ? e.errorOutline : "") + " " + (o || ""),
|
|
31
31
|
children: /* @__PURE__ */ r(
|
|
32
32
|
"textarea",
|
|
33
33
|
{
|
|
34
|
-
className: e.input + " " + (
|
|
34
|
+
className: e.input + " " + (u || "") + " " + (n ? e.inputDisabled : ""),
|
|
35
35
|
value: c,
|
|
36
36
|
onChange: (N) => {
|
|
37
|
-
|
|
37
|
+
t && t(N.currentTarget.value);
|
|
38
38
|
},
|
|
39
|
-
id:
|
|
39
|
+
id: a,
|
|
40
40
|
disabled: n,
|
|
41
41
|
...x
|
|
42
42
|
}
|
|
43
43
|
)
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
|
-
|
|
46
|
+
s && /* @__PURE__ */ r(
|
|
47
47
|
"p",
|
|
48
48
|
{
|
|
49
|
-
className: e.helperText + " " + (
|
|
50
|
-
children:
|
|
49
|
+
className: e.helperText + " " + (h || "") + " " + (i ? e.helperTextError : ""),
|
|
50
|
+
children: s
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
] });
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
type SnackbarProps = {
|
|
2
2
|
open: boolean;
|
|
3
|
-
autoHideDuration?: number;
|
|
4
3
|
onClose?: () => void;
|
|
4
|
+
autoHideDuration?: number;
|
|
5
5
|
message?: string;
|
|
6
6
|
action?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
messageClassName?: string;
|
|
9
|
+
actionClassName?: string;
|
|
7
10
|
};
|
|
8
|
-
export declare function Snackbar({ open,
|
|
11
|
+
export declare function Snackbar({ open, onClose, autoHideDuration, message, action, className, messageClassName, actionClassName, }: SnackbarProps): import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export {};
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import '../../assets/Snackbar.css';const
|
|
4
|
-
snackbar:
|
|
5
|
-
message:
|
|
1
|
+
import { jsxs as _, jsx as c, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as g } from "react";
|
|
3
|
+
import '../../assets/Snackbar.css';const k = "_snackbar_tl00m_1", d = "_message_tl00m_18", r = {
|
|
4
|
+
snackbar: k,
|
|
5
|
+
message: d
|
|
6
6
|
};
|
|
7
|
-
function
|
|
7
|
+
function N({
|
|
8
8
|
open: s,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
onClose: e,
|
|
10
|
+
autoHideDuration: a,
|
|
11
11
|
message: m,
|
|
12
|
-
action: t
|
|
12
|
+
action: t,
|
|
13
|
+
className: n,
|
|
14
|
+
messageClassName: i,
|
|
15
|
+
actionClassName: l
|
|
13
16
|
}) {
|
|
14
|
-
return
|
|
15
|
-
if (s &&
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
return () => clearTimeout(
|
|
17
|
+
return g(() => {
|
|
18
|
+
if (s && a && e) {
|
|
19
|
+
const f = setTimeout(() => {
|
|
20
|
+
e();
|
|
21
|
+
}, a);
|
|
22
|
+
return () => clearTimeout(f);
|
|
20
23
|
}
|
|
21
|
-
}, [s,
|
|
22
|
-
/* @__PURE__ */ c("p", { className:
|
|
23
|
-
/* @__PURE__ */ c("div", { children: t })
|
|
24
|
-
] }) : /* @__PURE__ */ c(
|
|
24
|
+
}, [s, a, e]), s ? /* @__PURE__ */ _("div", { className: r.snackbar + " " + (n || ""), children: [
|
|
25
|
+
/* @__PURE__ */ c("p", { className: r.message + " " + (i || ""), children: m }),
|
|
26
|
+
/* @__PURE__ */ c("div", { className: l || "", children: t })
|
|
27
|
+
] }) : /* @__PURE__ */ c(b, {});
|
|
25
28
|
}
|
|
26
29
|
export {
|
|
27
|
-
|
|
30
|
+
N as Snackbar
|
|
28
31
|
};
|
|
@@ -5,14 +5,17 @@ type TableProps = {
|
|
|
5
5
|
export declare function Table({ children, className }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
type TableHeadProps = {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
8
9
|
};
|
|
9
|
-
export declare function TableHead({ children }: TableHeadProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function TableHead({ children, className }: TableHeadProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
type ThProps = {
|
|
11
12
|
children?: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
12
14
|
};
|
|
13
|
-
export declare function Th({ children }: ThProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function Th({ children, className }: ThProps): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
type TdProps = {
|
|
15
17
|
children?: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
16
19
|
};
|
|
17
|
-
export declare function Td({ children }: TdProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function Td({ children, className }: TdProps): import("react/jsx-runtime").JSX.Element;
|
|
18
21
|
export {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/Table.css';const l = "_table_10gvy_1", s = "_tableHead_10gvy_8", c = "_th_10gvy_21", d = "_td_10gvy_33",
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Table.css';const l = "_table_10gvy_1", s = "_tableHead_10gvy_8", c = "_th_10gvy_21", d = "_td_10gvy_33", n = {
|
|
3
3
|
table: l,
|
|
4
4
|
tableHead: s,
|
|
5
5
|
th: c,
|
|
6
6
|
td: d
|
|
7
7
|
};
|
|
8
|
-
function _({ children: t, className:
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
function _({ children: t, className: e }) {
|
|
9
|
+
return /* @__PURE__ */ a("table", { className: n.table + " " + (e || ""), children: t });
|
|
10
10
|
}
|
|
11
|
-
function b({ children: t }) {
|
|
12
|
-
return /* @__PURE__ */
|
|
11
|
+
function b({ children: t, className: e }) {
|
|
12
|
+
return /* @__PURE__ */ a("thead", { className: n.tableHead + " " + (e || ""), children: t });
|
|
13
13
|
}
|
|
14
|
-
function r({ children: t }) {
|
|
15
|
-
return /* @__PURE__ */
|
|
14
|
+
function r({ children: t, className: e }) {
|
|
15
|
+
return /* @__PURE__ */ a("th", { className: n.th + " " + (e || ""), children: t });
|
|
16
16
|
}
|
|
17
|
-
function u({ children: t }) {
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
function u({ children: t, className: e }) {
|
|
18
|
+
return /* @__PURE__ */ a("td", { className: n.td + " " + (e || ""), children: t });
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
21
|
_ as Table,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export type TabProps = {
|
|
2
2
|
value: string;
|
|
3
|
-
children: React.ReactNode;
|
|
4
3
|
selected?: boolean;
|
|
5
4
|
onClick?: () => void;
|
|
5
|
+
children: React.ReactNode;
|
|
6
6
|
className?: string;
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
export declare function Tab({ children, selected, onClick, className, style, }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "onClick">;
|
|
8
|
+
export declare function Tab({ selected, onClick, children, className, ...props }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,19 +4,19 @@ import '../../assets/Tab.css';const i = "_tab_1m0oo_1", n = "_activeTab_1m0oo_15
|
|
|
4
4
|
activeTab: n
|
|
5
5
|
};
|
|
6
6
|
function m({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
selected: a,
|
|
8
|
+
onClick: o,
|
|
9
|
+
children: b,
|
|
10
10
|
className: c,
|
|
11
|
-
|
|
11
|
+
...e
|
|
12
12
|
}) {
|
|
13
13
|
return /* @__PURE__ */ s(
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
16
|
-
className: t.tab + " " + (c || "") + " " + (
|
|
17
|
-
onClick:
|
|
18
|
-
|
|
19
|
-
children:
|
|
16
|
+
className: t.tab + " " + (c || "") + " " + (a ? t.activeTab : ""),
|
|
17
|
+
onClick: o,
|
|
18
|
+
...e,
|
|
19
|
+
children: b
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
}
|
|
@@ -3,6 +3,7 @@ type TabBarProps = {
|
|
|
3
3
|
value: string;
|
|
4
4
|
onChange: (value: string) => void;
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
6
7
|
};
|
|
7
|
-
export declare function TabBar({ value, onChange, children }: TabBarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function TabBar({ value, onChange, children, className }: TabBarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|