@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.
Files changed (69) hide show
  1. package/dist/assets/outlined.css +1 -0
  2. package/dist/components/Backdrop/Backdrop.js +8 -7
  3. package/dist/components/Backdrop/Backdrop.stories.d.ts +8 -0
  4. package/dist/components/Backdrop/Backdrop.stories.js +12 -0
  5. package/dist/components/Button/Button.js +7 -6
  6. package/dist/components/Button/Button.stories.js +8 -4
  7. package/dist/components/Button/IconButton/IconButton.js +6 -5
  8. package/dist/components/Button/IconButton/IconButton.stories.d.ts +8 -0
  9. package/dist/components/Button/IconButton/IconButton.stories.js +13 -0
  10. package/dist/components/Button/ToggleButton/ToggleButton.js +12 -11
  11. package/dist/components/Button/ToggleButton/ToggleButton.stories.d.ts +9 -0
  12. package/dist/components/Button/ToggleButton/ToggleButton.stories.js +23 -0
  13. package/dist/components/Button/ToggleButton/ToggleButtonGroup.js +8 -7
  14. package/dist/components/Button/ToggleButton/ToggleButtonGroup.stories.d.ts +8 -0
  15. package/dist/components/Button/ToggleButton/ToggleButtonGroup.stories.js +22 -0
  16. package/dist/components/Dialog/Dialog.js +20 -19
  17. package/dist/components/Dialog/Dialog.stories.d.ts +8 -0
  18. package/dist/components/Dialog/Dialog.stories.js +22 -0
  19. package/dist/components/Divider/Divider.js +6 -5
  20. package/dist/components/Divider/Divider.stories.d.ts +9 -0
  21. package/dist/components/Divider/Divider.stories.js +17 -0
  22. package/dist/components/Input/Checkbox/Checkbox.js +4 -3
  23. package/dist/components/Input/Checkbox/Checkbox.stories.d.ts +8 -0
  24. package/dist/components/Input/Checkbox/Checkbox.stories.js +16 -0
  25. package/dist/components/Input/Counter/Counter.js +10 -9
  26. package/dist/components/Input/Counter/Counter.stories.d.ts +8 -0
  27. package/dist/components/Input/Counter/Counter.stories.js +18 -0
  28. package/dist/components/Input/Input.d.ts +1 -1
  29. package/dist/components/Input/Input.js +16 -15
  30. package/dist/components/Input/Input.stories.d.ts +8 -0
  31. package/dist/components/Input/Input.stories.js +13 -0
  32. package/dist/components/Input/Password.js +2 -1
  33. package/dist/components/Input/Password.stories.d.ts +8 -0
  34. package/dist/components/Input/Password.stories.js +13 -0
  35. package/dist/components/Input/Radio/Radio.js +7 -6
  36. package/dist/components/Input/Radio/Radio.stories.d.ts +8 -0
  37. package/dist/components/Input/Radio/Radio.stories.js +14 -0
  38. package/dist/components/Input/Radio/RadioGroup.js +8 -7
  39. package/dist/components/Input/Radio/RadioGroup.stories.d.ts +8 -0
  40. package/dist/components/Input/Radio/RadioGroup.stories.js +51 -0
  41. package/dist/components/Input/Select/Select.js +8 -7
  42. package/dist/components/Input/Select/Select.stories.d.ts +8 -0
  43. package/dist/components/Input/Select/Select.stories.js +20 -0
  44. package/dist/components/Input/TextArea.d.ts +1 -1
  45. package/dist/components/Input/TextArea.js +12 -11
  46. package/dist/components/Input/TextArea.stories.d.ts +8 -0
  47. package/dist/components/Input/TextArea.stories.js +13 -0
  48. package/dist/components/Snackbar/Snackbar.js +12 -11
  49. package/dist/components/Snackbar/Snackbar.stories.d.ts +8 -0
  50. package/dist/components/Snackbar/Snackbar.stories.js +19 -0
  51. package/dist/components/Table/Table.js +7 -6
  52. package/dist/components/Table/Table.stories.d.ts +8 -0
  53. package/dist/components/Table/Table.stories.js +40 -0
  54. package/dist/components/Tabs/Tab.js +8 -7
  55. package/dist/components/Tabs/Tab.stories.d.ts +8 -0
  56. package/dist/components/Tabs/Tab.stories.js +13 -0
  57. package/dist/components/Tabs/TabBar.js +10 -9
  58. package/dist/components/Tabs/TabBar.stories.d.ts +8 -0
  59. package/dist/components/Tabs/TabBar.stories.js +22 -0
  60. package/dist/components/Tabs/Tabs.js +9 -8
  61. package/dist/components/Tabs/Tabs.stories.d.ts +8 -0
  62. package/dist/components/Tabs/Tabs.stories.js +16 -0
  63. package/dist/components/Tooltip/Tooltip.js +7 -6
  64. package/dist/components/Tooltip/Tooltip.stories.d.ts +8 -0
  65. package/dist/components/Tooltip/Tooltip.stories.js +13 -0
  66. package/dist/main.d.ts +1 -0
  67. package/dist/main.js +47 -44
  68. package/package.json +17 -12
  69. /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 y({
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: n,
10
- startIcon: u,
11
- endIcon: p,
12
- error: a,
13
- disabled: i,
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 || "") + " " + (a ? e.errorOutline : ""),
35
+ className: e.outline + " " + (x || "") + " " + (n ? e.errorOutline : ""),
35
36
  children: [
36
- u,
37
+ p,
37
38
  /* @__PURE__ */ r(
38
39
  "input",
39
40
  {
40
- className: e.input + " " + (N || "") + " " + (i ? e.inputDisabled : ""),
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: i,
48
+ disabled: a,
48
49
  ref: v,
49
50
  ...j
50
51
  }
51
52
  ),
52
- p
53
+ u
53
54
  ]
54
55
  }
55
56
  ),
56
- n && /* @__PURE__ */ r(
57
+ i && /* @__PURE__ */ r(
57
58
  "p",
58
59
  {
59
- className: e.helperText + " " + (f || "") + " " + (a ? e.helperTextError : ""),
60
- children: n
60
+ className: e.helperText + " " + (f || "") + " " + (n ? e.helperTextError : ""),
61
+ children: i
61
62
  }
62
63
  )
63
64
  ] });
64
65
  }
65
66
  export {
66
- y as Input
67
+ D as Input
67
68
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Input } from './Input.tsx';
3
+ declare const meta: {
4
+ component: typeof Input;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,13 @@
1
+ import { Input as t } from "./Input.js";
2
+ const a = {
3
+ component: t
4
+ }, e = {
5
+ args: {
6
+ id: "input-id",
7
+ value: ""
8
+ }
9
+ };
10
+ export {
11
+ e as Default,
12
+ a as default
13
+ };
@@ -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
- import '../../assets/Password.css';function d({ ...t }) {
6
+ function d({ ...t }) {
6
7
  const [s, i] = r(!1);
7
8
  return /* @__PURE__ */ o(
8
9
  n,
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Password } from './Password.tsx';
3
+ declare const meta: {
4
+ component: typeof Password;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,13 @@
1
+ import { Password as o } from "./Password.js";
2
+ const s = {
3
+ component: o
4
+ }, t = {
5
+ args: {
6
+ id: "password-id",
7
+ value: ""
8
+ }
9
+ };
10
+ export {
11
+ t as Default,
12
+ s as default
13
+ };
@@ -1,7 +1,8 @@
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
- container: m,
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
- u,
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 k({ ...c }) {
53
+ function N({ ...c }) {
53
54
  return /* @__PURE__ */ t(h, { ...c });
54
55
  }
55
56
  export {
56
- k as Radio,
57
+ N as Radio,
57
58
  h as RadioInternal
58
59
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Radio } from './Radio';
3
+ declare const meta: {
4
+ component: typeof Radio;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,14 @@
1
+ import { Radio as a } from "./Radio.js";
2
+ const o = {
3
+ component: a
4
+ }, t = {
5
+ args: {
6
+ id: "id",
7
+ value: "value",
8
+ label: "Radio Label"
9
+ }
10
+ };
11
+ export {
12
+ t as Default,
13
+ o as default
14
+ };
@@ -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
- import '../../../assets/RadioGroup.css';const x = "_container_1ygqk_1", d = "_outline_1ygqk_6", T = "_label_1ygqk_12", y = "_helperText_1ygqk_17", E = "_helperTextError_1ygqk_24", r = {
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 k({
11
- name: a,
12
- value: i,
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: a,
22
- selected: i === e.props.value,
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
- k as RadioGroup
41
+ q as RadioGroup
41
42
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { RadioGroup } from './RadioGroup';
3
+ declare const meta: {
4
+ component: typeof RadioGroup;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -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
- import '../../../assets/Select.css';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
+ 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 v({
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: u,
26
- helperTextClassName: m,
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 || "") + " " + (u || ""),
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 : "") + " " + (m || ""),
62
+ className: e.helperText + " " + (n ? e.helperTextError : "") + " " + (u || ""),
62
63
  children: s
63
64
  }
64
65
  )
65
66
  ] });
66
67
  }
67
68
  export {
68
- v as Select
69
+ j as Select
69
70
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Select } from './Select';
3
+ declare const meta: {
4
+ component: typeof Select;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -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.RefObject<HTMLTextAreaElement>;
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 j({
4
- id: a,
4
+ function b({
5
+ id: t,
5
6
  value: c,
6
- onChange: t,
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: u,
14
- labelClassName: p,
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: a,
24
- className: e.label + " " + (p || ""),
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 + " " + (u || "") + " " + (n ? e.inputDisabled : ""),
36
+ className: e.input + " " + (p || "") + " " + (n ? e.inputDisabled : ""),
36
37
  value: c,
37
38
  onChange: (d) => {
38
- t && t(d.currentTarget.value);
39
+ a && a(d.currentTarget.value);
39
40
  },
40
- id: a,
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
- j as TextArea
59
+ b as TextArea
59
60
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { TextArea } from './TextArea';
3
+ declare const meta: {
4
+ component: typeof TextArea;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,13 @@
1
+ import { TextArea as t } from "./TextArea.js";
2
+ const a = {
3
+ component: t
4
+ }, o = {
5
+ args: {
6
+ id: "id",
7
+ value: ""
8
+ }
9
+ };
10
+ export {
11
+ o as Default,
12
+ a as default
13
+ };
@@ -1,13 +1,14 @@
1
- import { jsxs as _, jsx as c, Fragment as b } from "react/jsx-runtime";
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
- import '../../assets/Snackbar.css';const k = "_snackbar_tl00m_1", d = "_message_tl00m_18", r = {
4
+ const k = "_snackbar_tl00m_1", d = "_message_tl00m_18", c = {
4
5
  snackbar: k,
5
6
  message: d
6
7
  };
7
- function N({
8
+ function x({
8
9
  open: s,
9
10
  onClose: e,
10
- autoHideDuration: a,
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 && a && e) {
19
+ if (s && r && e) {
19
20
  const f = setTimeout(() => {
20
21
  e();
21
- }, a);
22
+ }, r);
22
23
  return () => clearTimeout(f);
23
24
  }
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
+ }, [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
- N as Snackbar
31
+ x as Snackbar
31
32
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Snackbar } from './Snackbar';
3
+ declare const meta: {
4
+ component: typeof Snackbar;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -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/Table.css';const l = "_table_10gvy_1", s = "_tableHead_10gvy_8", c = "_th_10gvy_21", d = "_td_10gvy_33", n = {
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: d
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 r({ children: t, className: e }) {
15
+ function u({ children: t, className: e }) {
15
16
  return /* @__PURE__ */ a("th", { className: n.th + " " + (e || ""), children: t });
16
17
  }
17
- function u({ children: t, className: e }) {
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
- u as Td,
24
- r as Th
24
+ h as Td,
25
+ u as Th
25
26
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Table } from './Table';
3
+ declare const meta: {
4
+ component: typeof Table;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -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 s } from "react/jsx-runtime";
2
- import '../../assets/Tab.css';const i = "_tab_1m0oo_1", n = "_activeTab_1m0oo_15", t = {
3
- tab: i,
4
- activeTab: n
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 m({
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__ */ s(
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
- m as Tab
25
+ _ as Tab
25
26
  };