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