@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,18 +1,19 @@
1
- import { jsx as c, Fragment as t } from "react/jsx-runtime";
2
- import '../../assets/Backdrop.css';const p = "_backdrop_qbjym_1", d = {
1
+ import { jsx as o, Fragment as a } from "react/jsx-runtime";
2
+ import '../../assets/outlined.css';import '../../assets/Backdrop.css';/* empty css */
3
+ const p = "_backdrop_qbjym_1", d = {
3
4
  backdrop: p
4
5
  };
5
- function n({ open: o, onClose: r, className: a }) {
6
- return o ? /* @__PURE__ */ c(
6
+ function m({ open: c, onClose: r, className: t }) {
7
+ return c ? /* @__PURE__ */ o(
7
8
  "div",
8
9
  {
9
10
  onClick: () => {
10
11
  r && r();
11
12
  },
12
- className: d.backdrop + " " + (a || "")
13
+ className: d.backdrop + " " + (t || "")
13
14
  }
14
- ) : /* @__PURE__ */ c(t, {});
15
+ ) : /* @__PURE__ */ o(a, {});
15
16
  }
16
17
  export {
17
- n as Backdrop
18
+ m as Backdrop
18
19
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Backdrop } from './Backdrop';
3
+ declare const meta: {
4
+ component: typeof Backdrop;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,12 @@
1
+ import { Backdrop as o } from "./Backdrop.js";
2
+ const e = {
3
+ component: o
4
+ }, a = {
5
+ args: {
6
+ open: !0
7
+ }
8
+ };
9
+ export {
10
+ a as Default,
11
+ e as default
12
+ };
@@ -1,9 +1,10 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import '../../assets/Button.css';const r = "_button_y7o2r_1", b = {
3
- button: r
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import '../../assets/outlined.css';import '../../assets/Button.css';/* empty css */
3
+ const s = "_button_y7o2r_1", b = {
4
+ button: s
4
5
  };
5
- function e({ ref: t, children: o, className: n, ...u }) {
6
- return /* @__PURE__ */ s(
6
+ function m({ ref: t, children: o, className: n, ...u }) {
7
+ return /* @__PURE__ */ r(
7
8
  "button",
8
9
  {
9
10
  ref: t,
@@ -14,5 +15,5 @@ function e({ ref: t, children: o, className: n, ...u }) {
14
15
  );
15
16
  }
16
17
  export {
17
- e as Button
18
+ m as Button
18
19
  };
@@ -1,8 +1,12 @@
1
1
  import { Button as t } from "./Button.js";
2
- const e = {
2
+ const n = {
3
3
  component: t
4
- }, n = {};
4
+ }, e = {
5
+ args: {
6
+ children: "Button"
7
+ }
8
+ };
5
9
  export {
6
- n as Default,
7
- e as default
10
+ e as Default,
11
+ n as default
8
12
  };
@@ -1,8 +1,9 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import '../../../assets/IconButton.css';const b = "_button_180ek_1", c = {
3
- button: b
2
+ import '../../../assets/outlined.css';import '../../../assets/IconButton.css';/* empty css */
3
+ const r = "_button_180ek_1", b = {
4
+ button: r
4
5
  };
5
- function r({
6
+ function m({
6
7
  ref: t,
7
8
  children: o,
8
9
  className: n,
@@ -12,12 +13,12 @@ function r({
12
13
  "button",
13
14
  {
14
15
  ref: t,
15
- className: c.button + " " + (n || ""),
16
+ className: b.button + " " + (n || ""),
16
17
  ...u,
17
18
  children: o
18
19
  }
19
20
  );
20
21
  }
21
22
  export {
22
- r as IconButton
23
+ m as IconButton
23
24
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { IconButton } from './IconButton';
3
+ declare const meta: {
4
+ component: typeof IconButton;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,13 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { IconButton as o } from "./IconButton.js";
3
+ const e = {
4
+ component: o
5
+ }, i = {
6
+ args: {
7
+ children: /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: "visibility" })
8
+ }
9
+ };
10
+ export {
11
+ i as Default,
12
+ e as default
13
+ };
@@ -1,11 +1,12 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
+ import '../../../assets/outlined.css';import '../../../assets/ToggleButton.css';/* empty css */
2
3
  import { omit as C } from "../../../utils/omit.js";
3
- import { Button as b } from "../Button.js";
4
- import '../../../assets/ToggleButton.css';const f = "_buttonFalse_1ed44_1", m = "_buttonTrue_1ed44_8", u = {
5
- buttonFalse: f,
6
- buttonTrue: m
4
+ import { Button as m } from "../Button.js";
5
+ const b = "_buttonFalse_1ed44_1", f = "_buttonTrue_1ed44_8", i = {
6
+ buttonFalse: b,
7
+ buttonTrue: f
7
8
  };
8
- function i({
9
+ function u({
9
10
  ref: t,
10
11
  value: o,
11
12
  children: l,
@@ -15,10 +16,10 @@ function i({
15
16
  ...n
16
17
  }) {
17
18
  return /* @__PURE__ */ e(
18
- b,
19
+ m,
19
20
  {
20
21
  ref: t,
21
- className: (("selected" in n ? n.selected : o) ? u.buttonTrue + " " + (c || "") : u.buttonFalse + " " + (g || "")) + " " + (a || ""),
22
+ className: (("selected" in n ? n.selected : o) ? i.buttonTrue + " " + (c || "") : i.buttonFalse + " " + (g || "")) + " " + (a || ""),
22
23
  onClick: () => {
23
24
  "onChange" in n && n.onChange ? n.onChange(!o) : "onClick" in n && n.onClick && n.onClick();
24
25
  },
@@ -27,12 +28,12 @@ function i({
27
28
  }
28
29
  );
29
30
  }
30
- function _({
31
+ function d({
31
32
  ...t
32
33
  }) {
33
- return "onChange" in t ? /* @__PURE__ */ e(i, { ...t }) : /* @__PURE__ */ e(i, { ...t });
34
+ return "onChange" in t ? /* @__PURE__ */ e(u, { ...t }) : /* @__PURE__ */ e(u, { ...t });
34
35
  }
35
36
  export {
36
- _ as ToggleButton,
37
- i as ToggleButtonInternal
37
+ d as ToggleButton,
38
+ u as ToggleButtonInternal
38
39
  };
@@ -0,0 +1,9 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { ToggleButton } from './ToggleButton';
3
+ declare const meta: {
4
+ component: typeof ToggleButton;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const False: Story;
9
+ export declare const True: Story;
@@ -0,0 +1,23 @@
1
+ import { ToggleButton as e } from "./ToggleButton.js";
2
+ const a = {
3
+ component: e
4
+ }, n = {
5
+ args: {
6
+ children: "Toggle False",
7
+ value: !1,
8
+ onChange: () => {
9
+ }
10
+ }
11
+ }, l = {
12
+ args: {
13
+ children: "Toggle True",
14
+ value: !0,
15
+ onChange: () => {
16
+ }
17
+ }
18
+ };
19
+ export {
20
+ n as False,
21
+ l as True,
22
+ a as default
23
+ };
@@ -1,22 +1,23 @@
1
1
  import { jsxs as _, jsx as n } from "react/jsx-runtime";
2
+ import '../../../assets/outlined.css';import '../../../assets/ToggleButtonGroup.css';/* empty css */
2
3
  import t from "react";
3
- import '../../../assets/ToggleButtonGroup.css';const u = "_container_1ngm3_1", x = "_outline_1ngm3_6", h = "_label_1ngm3_11", T = "_helperText_1ngm3_16", g = "_helperTextError_1ngm3_23", r = {
4
+ const u = "_container_1ngm3_1", x = "_outline_1ngm3_6", h = "_label_1ngm3_11", T = "_helperText_1ngm3_16", g = "_helperTextError_1ngm3_23", r = {
4
5
  container: u,
5
6
  outline: x,
6
7
  label: h,
7
8
  helperText: T,
8
9
  helperTextError: g
9
10
  };
10
- function f({
11
+ function v({
11
12
  value: l,
12
13
  onChange: o,
13
- children: c,
14
+ children: i,
14
15
  label: s,
15
16
  helperText: p,
16
- error: i,
17
+ error: c,
17
18
  className: a
18
19
  }) {
19
- const m = t.Children.map(c, (e) => t.isValidElement(e) ? t.cloneElement(e, {
20
+ const m = t.Children.map(i, (e) => t.isValidElement(e) ? t.cloneElement(e, {
20
21
  selected: l === e.props.value,
21
22
  onClick: () => {
22
23
  l === e.props.value ? o("") : o(e.props.value);
@@ -28,12 +29,12 @@ function f({
28
29
  p && /* @__PURE__ */ n(
29
30
  "p",
30
31
  {
31
- className: r.helperText + " " + (i ? r.helperTextError : ""),
32
+ className: r.helperText + " " + (c ? r.helperTextError : ""),
32
33
  children: p
33
34
  }
34
35
  )
35
36
  ] });
36
37
  }
37
38
  export {
38
- f as ToggleButtonGroup
39
+ v as ToggleButtonGroup
39
40
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { ToggleButtonGroup } from './ToggleButtonGroup';
3
+ declare const meta: {
4
+ component: typeof ToggleButtonGroup;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,22 @@
1
+ import { jsxs as l, Fragment as r, jsx as e } from "react/jsx-runtime";
2
+ import { ToggleButton as o } from "./ToggleButton.js";
3
+ import { ToggleButtonGroup as g } from "./ToggleButtonGroup.js";
4
+ const u = {
5
+ component: g
6
+ }, c = {
7
+ args: {
8
+ value: "1",
9
+ onChange: () => {
10
+ },
11
+ children: /* @__PURE__ */ l(r, { children: [
12
+ /* @__PURE__ */ e(o, { value: "1", children: "Toggle 1" }),
13
+ /* @__PURE__ */ e(o, { value: "2", children: "Toggle 2" }),
14
+ /* @__PURE__ */ e(o, { value: "3", children: "Toggle 3" }),
15
+ /* @__PURE__ */ e(o, { value: "4", children: "Toggle 4" })
16
+ ] })
17
+ }
18
+ };
19
+ export {
20
+ c as Default,
21
+ u as default
22
+ };
@@ -1,26 +1,27 @@
1
- import { jsx as i, Fragment as c } from "react/jsx-runtime";
2
- import '../../assets/Dialog.css';const g = "_screenDarken_9wfqy_1", r = "_dialog_9wfqy_16", d = "_dialogTitle_9wfqy_29", _ = "_dialogContent_9wfqy_36", f = "_dialogActions_9wfqy_41", t = {
3
- screenDarken: g,
4
- dialog: r,
1
+ import { jsx as n, Fragment as c } from "react/jsx-runtime";
2
+ import '../../assets/outlined.css';import '../../assets/Dialog.css';/* empty css */
3
+ const r = "_screenDarken_9wfqy_1", g = "_dialog_9wfqy_16", d = "_dialogTitle_9wfqy_29", _ = "_dialogContent_9wfqy_36", f = "_dialogActions_9wfqy_41", t = {
4
+ screenDarken: r,
5
+ dialog: g,
5
6
  dialogTitle: d,
6
7
  dialogContent: _,
7
8
  dialogActions: f
8
9
  };
9
- function u({
10
- open: n,
10
+ function D({
11
+ open: i,
11
12
  onClose: o,
12
13
  children: a,
13
14
  backdropClassName: e,
14
15
  dialogClassName: l
15
16
  }) {
16
- return n ? /* @__PURE__ */ i(
17
+ return i ? /* @__PURE__ */ n(
17
18
  "div",
18
19
  {
19
20
  className: t.screenDarken + " " + (e || ""),
20
21
  onClick: () => {
21
22
  o && o();
22
23
  },
23
- children: /* @__PURE__ */ i(
24
+ children: /* @__PURE__ */ n(
24
25
  "div",
25
26
  {
26
27
  className: t.dialog + " " + (l || ""),
@@ -31,20 +32,20 @@ function u({
31
32
  }
32
33
  )
33
34
  }
34
- ) : /* @__PURE__ */ i(c, {});
35
+ ) : /* @__PURE__ */ n(c, {});
35
36
  }
36
- function D({ children: n, className: o }) {
37
- return /* @__PURE__ */ i("h2", { className: t.dialogTitle + " " + (o || ""), children: n });
37
+ function k({ children: i, className: o }) {
38
+ return /* @__PURE__ */ n("h2", { className: t.dialogTitle + " " + (o || ""), children: i });
38
39
  }
39
- function k({ children: n, className: o }) {
40
- return /* @__PURE__ */ i("div", { className: t.dialogContent + " " + (o || ""), children: n });
40
+ function y({ children: i, className: o }) {
41
+ return /* @__PURE__ */ n("div", { className: t.dialogContent + " " + (o || ""), children: i });
41
42
  }
42
- function y({ children: n, className: o }) {
43
- return /* @__PURE__ */ i("div", { className: t.dialogActions + " " + (o || ""), children: n });
43
+ function C({ children: i, className: o }) {
44
+ return /* @__PURE__ */ n("div", { className: t.dialogActions + " " + (o || ""), children: i });
44
45
  }
45
46
  export {
46
- u as Dialog,
47
- y as DialogActions,
48
- k as DialogContent,
49
- D as DialogTitle
47
+ D as Dialog,
48
+ C as DialogActions,
49
+ y as DialogContent,
50
+ k as DialogTitle
50
51
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Dialog } from './Dialog';
3
+ declare const meta: {
4
+ component: typeof Dialog;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,22 @@
1
+ import { jsxs as e, Fragment as t, jsx as o } from "react/jsx-runtime";
2
+ import { Button as n } from "../Button/Button.js";
3
+ import { Dialog as i, DialogTitle as l, DialogContent as r, DialogActions as a } from "./Dialog.js";
4
+ const h = {
5
+ component: i
6
+ }, s = {
7
+ args: {
8
+ open: !0,
9
+ children: /* @__PURE__ */ e(t, { children: [
10
+ /* @__PURE__ */ o(l, { children: "Dialog Title" }),
11
+ /* @__PURE__ */ o(r, { children: "Blah" }),
12
+ /* @__PURE__ */ e(a, { children: [
13
+ /* @__PURE__ */ o(n, { children: "Cancel" }),
14
+ /* @__PURE__ */ o(n, { children: "Done" })
15
+ ] })
16
+ ] })
17
+ }
18
+ };
19
+ export {
20
+ s as Default,
21
+ h as default
22
+ };
@@ -1,10 +1,11 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import '../../assets/Divider.css';const v = "_divider_rubc3_1", t = "_horizontalDivider_rubc3_8", o = "_verticalDivider_rubc3_13", i = {
3
- divider: v,
4
- horizontalDivider: t,
2
+ import '../../assets/outlined.css';import '../../assets/Divider.css';/* empty css */
3
+ const t = "_divider_rubc3_1", v = "_horizontalDivider_rubc3_8", o = "_verticalDivider_rubc3_13", i = {
4
+ divider: t,
5
+ horizontalDivider: v,
5
6
  verticalDivider: o
6
7
  };
7
- function n({ orientation: r, className: e }) {
8
+ function s({ orientation: r, className: e }) {
8
9
  return /* @__PURE__ */ d(
9
10
  "div",
10
11
  {
@@ -13,5 +14,5 @@ function n({ orientation: r, className: e }) {
13
14
  );
14
15
  }
15
16
  export {
16
- n as Divider
17
+ s as Divider
17
18
  };
@@ -0,0 +1,9 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Divider } from './Divider.tsx';
3
+ declare const meta: {
4
+ component: typeof Divider;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Horizontal: Story;
9
+ export declare const Vertical: Story;
@@ -0,0 +1,17 @@
1
+ import { Divider as o } from "./Divider.js";
2
+ const r = {
3
+ component: o
4
+ }, a = {
5
+ args: {
6
+ orientation: "horizontal"
7
+ }
8
+ }, i = {
9
+ args: {
10
+ orientation: "vertical"
11
+ }
12
+ };
13
+ export {
14
+ a as Horizontal,
15
+ i as Vertical,
16
+ r as default
17
+ };
@@ -1,10 +1,11 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import '../../../assets/outlined.css';import '../../../assets/Radio.css';/* empty css */
2
3
  import { IconButton as b } from "../../Button/IconButton/IconButton.js";
3
- import '../../../assets/Radio.css';const d = "_container_12u6r_1", _ = "_label_12u6r_7", r = {
4
+ const d = "_container_12u6r_1", _ = "_label_12u6r_7", r = {
4
5
  container: d,
5
6
  label: _
6
7
  };
7
- function p({
8
+ function x({
8
9
  id: n,
9
10
  value: c,
10
11
  onChange: l,
@@ -51,5 +52,5 @@ function p({
51
52
  ] });
52
53
  }
53
54
  export {
54
- p as Checkbox
55
+ x as Checkbox
55
56
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Checkbox } from './Checkbox';
3
+ declare const meta: {
4
+ component: typeof Checkbox;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,16 @@
1
+ import { Checkbox as e } from "./Checkbox.js";
2
+ const a = {
3
+ component: e
4
+ }, t = {
5
+ args: {
6
+ id: "id",
7
+ value: !0,
8
+ onChange: () => {
9
+ },
10
+ label: "Checkbox Label"
11
+ }
12
+ };
13
+ export {
14
+ t as Default,
15
+ a as default
16
+ };
@@ -1,13 +1,14 @@
1
1
  import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
- import { Button as r } from "../../Button/Button.js";
2
+ import '../../../assets/outlined.css';import '../../../assets/Counter.css';/* empty css */
3
+ import { Button as c } from "../../Button/Button.js";
3
4
  import { Input as f } from "../Input.js";
4
- import '../../../assets/Counter.css';const k = "_container_12kgw_1", h = "_button_12kgw_6", D = "_buttonDisabled_12kgw_19", N = "_input_12kgw_31", t = {
5
+ const k = "_container_12kgw_1", h = "_button_12kgw_6", D = "_buttonDisabled_12kgw_19", N = "_input_12kgw_31", t = {
5
6
  container: k,
6
7
  button: h,
7
8
  buttonDisabled: D,
8
9
  input: N
9
10
  };
10
- function j({
11
+ function v({
11
12
  id: a,
12
13
  value: i,
13
14
  increment: u,
@@ -17,15 +18,15 @@ function j({
17
18
  label: m,
18
19
  disabled: n,
19
20
  className: b,
20
- buttonClassName: c,
21
+ buttonClassName: r,
21
22
  inputClassName: p,
22
23
  ..._
23
24
  }) {
24
25
  return /* @__PURE__ */ d("div", { className: t.container + " " + (b || ""), children: [
25
26
  /* @__PURE__ */ o(
26
- r,
27
+ c,
27
28
  {
28
- className: t.button + " " + (n ? t.buttonDisabled : "") + " " + (c || ""),
29
+ className: t.button + " " + (n ? t.buttonDisabled : "") + " " + (r || ""),
29
30
  onClick: () => {
30
31
  (s === void 0 || i > s) && l();
31
32
  },
@@ -46,9 +47,9 @@ function j({
46
47
  }
47
48
  ),
48
49
  /* @__PURE__ */ o(
49
- r,
50
+ c,
50
51
  {
51
- className: t.button + " " + (n ? t.buttonDisabled : "") + " " + (c || ""),
52
+ className: t.button + " " + (n ? t.buttonDisabled : "") + " " + (r || ""),
52
53
  onClick: () => {
53
54
  (e === void 0 || i < e) && u();
54
55
  },
@@ -59,5 +60,5 @@ function j({
59
60
  ] });
60
61
  }
61
62
  export {
62
- j as Counter
63
+ v as Counter
63
64
  };
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Counter } from './Counter';
3
+ declare const meta: {
4
+ component: typeof Counter;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,18 @@
1
+ import { Counter as e } from "./Counter.js";
2
+ const a = {
3
+ component: e
4
+ }, n = {
5
+ args: {
6
+ id: "id",
7
+ value: 0,
8
+ increment: () => {
9
+ },
10
+ decrement: () => {
11
+ },
12
+ label: "label"
13
+ }
14
+ };
15
+ export {
16
+ n as Default,
17
+ a as default
18
+ };
@@ -14,6 +14,6 @@ export type InputProps = {
14
14
  inputClassName?: string;
15
15
  labelClassName?: string;
16
16
  helperTextClassName?: string;
17
- ref?: React.RefObject<HTMLInputElement>;
17
+ ref?: React.Ref<HTMLInputElement>;
18
18
  } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "id" | "value" | "onChange" | "type" | "disabled" | "className">;
19
19
  export declare function Input({ id, value, onChange, type, label, helperText, startIcon, endIcon, error, disabled, className, outlineClassName, inputClassName, labelClassName, helperTextClassName, ref, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;