lawgic-dev-kit 0.18.2 → 0.18.8

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 (38) hide show
  1. package/dist/_virtual/index2.js +2 -3
  2. package/dist/_virtual/index3.js +3 -3
  3. package/dist/_virtual/index4.js +3 -5
  4. package/dist/_virtual/index5.js +5 -2
  5. package/dist/components/atoms/LoadingProgress/LoadingProgress.d.ts +1 -0
  6. package/dist/components/atoms/LoadingProgress/LoadingProgress.js +14 -13
  7. package/dist/components/atoms/Pill/Pill.d.ts +8 -0
  8. package/dist/components/atoms/Pill/Pill.js +31 -0
  9. package/dist/components/atoms/Pill/index.d.ts +1 -0
  10. package/dist/components/atoms/Tab/Tab.d.ts +1 -1
  11. package/dist/components/atoms/Tab/Tab.js +19 -14
  12. package/dist/components/atoms/Tab/Tab.types.d.ts +3 -2
  13. package/dist/components/atoms/TextInput/TextInput.d.ts +1 -1
  14. package/dist/components/atoms/TextInput/TextInput.js +50 -34
  15. package/dist/components/atoms/TextInput/TextInput.types.d.ts +3 -2
  16. package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +41 -25
  17. package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +2 -1
  18. package/dist/components/atoms/UploadContainer/UploadContainer.js +139 -79
  19. package/dist/components/atoms/UploadContainer/UploadContainer.types.d.ts +2 -0
  20. package/dist/components/atoms/index.d.ts +1 -0
  21. package/dist/components/molecules/AutocompleteInput/AutocompleteInput.js +128 -119
  22. package/dist/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +3 -0
  23. package/dist/components/molecules/PillsContainer/PillsContainer.d.ts +6 -0
  24. package/dist/components/molecules/PillsContainer/PillsContainer.js +60 -0
  25. package/dist/components/molecules/PillsContainer/index.d.ts +1 -0
  26. package/dist/components/molecules/Tabs/Tabs.d.ts +3 -2
  27. package/dist/components/molecules/Tabs/Tabs.js +13 -10
  28. package/dist/components/molecules/index.d.ts +1 -0
  29. package/dist/index.js +67 -63
  30. package/dist/lawgic-dev-kit.css +1 -1
  31. package/dist/lawgic-dev-kit.umd.js +55 -55
  32. package/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +27 -17
  33. package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +15 -4
  34. package/dist/node_modules/prop-types/index.js +1 -1
  35. package/dist/node_modules/yup/index.esm.js +3 -3
  36. package/package.json +1 -1
  37. package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.d.ts +0 -3
  38. package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +0 -25
@@ -1,5 +1,4 @@
1
- import { __require as r } from "../node_modules/property-expr/index.js";
2
- var e = r();
1
+ var p = { exports: {} };
3
2
  export {
4
- e as p
3
+ p as __module
5
4
  };
@@ -1,5 +1,5 @@
1
- import { __require as r } from "../node_modules/tiny-case/index.js";
2
- var a = r();
1
+ import { __require as r } from "../node_modules/property-expr/index.js";
2
+ var e = r();
3
3
  export {
4
- a as t
4
+ e as p
5
5
  };
@@ -1,7 +1,5 @@
1
- import { getDefaultExportFromCjs as o } from "./_commonjsHelpers.js";
2
- import { __require as r } from "../node_modules/toposort/index.js";
3
- var t = r();
4
- const s = /* @__PURE__ */ o(t);
1
+ import { __require as r } from "../node_modules/tiny-case/index.js";
2
+ var a = r();
5
3
  export {
6
- s as default
4
+ a as t
7
5
  };
@@ -1,4 +1,7 @@
1
- var p = { exports: {} };
1
+ import { getDefaultExportFromCjs as o } from "./_commonjsHelpers.js";
2
+ import { __require as r } from "../node_modules/toposort/index.js";
3
+ var t = r();
4
+ const s = /* @__PURE__ */ o(t);
2
5
  export {
3
- p as __module
6
+ s as default
4
7
  };
@@ -7,6 +7,7 @@ export interface LoadingProgressProps extends React.HTMLAttributes<HTMLDivElemen
7
7
  label?: string;
8
8
  initialProgress?: number;
9
9
  automaticProgress?: boolean;
10
+ showProgress?: boolean;
10
11
  }
11
12
  declare const LoadingProgress: React.FC<LoadingProgressProps>;
12
13
  export default LoadingProgress;
@@ -1,6 +1,6 @@
1
1
  import { j as s } from "../../../_virtual/jsx-runtime.js";
2
- import { useState as E, useEffect as P } from "react";
3
- const k = ({
2
+ import { useState as P, useEffect as A } from "react";
3
+ const D = ({
4
4
  size: e = 100,
5
5
  strokeWidth: r = 4,
6
6
  color: c = "#1DA696",
@@ -8,21 +8,22 @@ const k = ({
8
8
  label: i = "",
9
9
  initialProgress: h = 0,
10
10
  automaticProgress: l = !0,
11
- ...j
11
+ showProgress: j = !0,
12
+ ...g
12
13
  }) => {
13
- const [m, g] = E(h), a = (e - r) / 2, f = 2 * Math.PI * a, p = f * (1 - m / 100), { className: y = "", ...N } = j;
14
- return P(() => {
14
+ const [m, p] = P(h), a = (e - r) / 2, f = 2 * Math.PI * a, y = f * (1 - m / 100), { className: N = "", ...v } = g;
15
+ return A(() => {
15
16
  if (!l) return;
16
17
  let n, t;
17
- const x = (d) => {
18
- n || (n = d);
19
- const v = d - n, u = Math.min(100, v / o * 100);
20
- g(u), u < 100 && (t = requestAnimationFrame(x));
18
+ const x = (u) => {
19
+ n || (n = u);
20
+ const E = u - n, d = Math.min(100, E / o * 100);
21
+ p(d), d < 100 && (t = requestAnimationFrame(x));
21
22
  };
22
23
  return t = requestAnimationFrame(x), () => {
23
24
  t && cancelAnimationFrame(t);
24
25
  };
25
- }, [o, l]), /* @__PURE__ */ s.jsxs("div", { ...N, className: `relative flex items-center justify-center ${y}`, children: [
26
+ }, [o, l]), /* @__PURE__ */ s.jsxs("div", { ...v, className: `relative flex items-center justify-center ${N}`, children: [
26
27
  /* @__PURE__ */ s.jsxs("svg", { height: e, width: e, className: "transform -rotate-90", children: [
27
28
  /* @__PURE__ */ s.jsx(
28
29
  "circle",
@@ -42,7 +43,7 @@ const k = ({
42
43
  fill: "transparent",
43
44
  strokeWidth: r,
44
45
  strokeDasharray: f,
45
- strokeDashoffset: p,
46
+ strokeDashoffset: y,
46
47
  strokeLinecap: "round",
47
48
  r: a,
48
49
  cx: e / 2,
@@ -52,7 +53,7 @@ const k = ({
52
53
  ] }),
53
54
  /* @__PURE__ */ s.jsxs("div", { className: "absolute flex flex-col items-center justify-center", children: [
54
55
  i && /* @__PURE__ */ s.jsx("div", { className: "text-xs font-medium text-gray-500", children: i }),
55
- /* @__PURE__ */ s.jsxs(
56
+ j && /* @__PURE__ */ s.jsxs(
56
57
  "div",
57
58
  {
58
59
  className: "text-lg font-semibold",
@@ -67,5 +68,5 @@ const k = ({
67
68
  ] });
68
69
  };
69
70
  export {
70
- k as default
71
+ D as default
71
72
  };
@@ -0,0 +1,8 @@
1
+ interface PillProps {
2
+ label: string;
3
+ onClick?: () => void;
4
+ onRemove?: () => void;
5
+ readOnly?: boolean;
6
+ }
7
+ declare const Pill: ({ label, onClick, onRemove, readOnly, }: PillProps) => React.ReactElement;
8
+ export default Pill;
@@ -0,0 +1,31 @@
1
+ import { j as e } from "../../../_virtual/jsx-runtime.js";
2
+ import { FontAwesomeIcon as n } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
3
+ import { faX as l } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
4
+ const p = ({
5
+ label: s,
6
+ onClick: o,
7
+ onRemove: t,
8
+ readOnly: r
9
+ }) => /* @__PURE__ */ e.jsxs(
10
+ "div",
11
+ {
12
+ className: "flex justify-between items-center gap-10 bg-[#DEE6F7] rounded-[4px] p-8 text-14",
13
+ onClick: o,
14
+ children: [
15
+ /* @__PURE__ */ e.jsx("span", { className: "text-blue-500 font-semibold text-nowrap text-ellipsis overflow-hidden", children: s }),
16
+ !r && t && /* @__PURE__ */ e.jsx(
17
+ "button",
18
+ {
19
+ onClick: (i) => {
20
+ t(), i.stopPropagation();
21
+ },
22
+ className: "flex items-center text-blue-300 hover:text-red-500",
23
+ children: /* @__PURE__ */ e.jsx(n, { icon: l })
24
+ }
25
+ )
26
+ ]
27
+ }
28
+ );
29
+ export {
30
+ p as default
31
+ };
@@ -0,0 +1 @@
1
+ export { default as Pill } from './Pill';
@@ -1,3 +1,3 @@
1
1
  import { default as TabProps } from './Tab.types';
2
- declare const Tab: ({ label, icon, isSelected, onClick, variant, direction, }: TabProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Tab: ({ label, icon, isSelected, onClick, variant, direction, labelClassName, }: TabProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Tab;
@@ -1,30 +1,35 @@
1
- import { j as t } from "../../../_virtual/jsx-runtime.js";
1
+ import { j as r } from "../../../_virtual/jsx-runtime.js";
2
2
  import { FontAwesomeIcon as n } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
3
- import { resolveTabClasses as m } from "./Tab.styles.js";
4
- const i = ({
5
- label: o,
6
- icon: r,
7
- isSelected: s,
3
+ import { resolveTabClasses as x } from "./Tab.styles.js";
4
+ import { clsx as f } from "../../../node_modules/clsx/dist/clsx.js";
5
+ const w = ({
6
+ label: s,
7
+ icon: t,
8
+ isSelected: o,
8
9
  onClick: a,
9
10
  variant: e = "default",
10
- direction: l = "row"
11
- }) => /* @__PURE__ */ t.jsxs(
11
+ direction: l = "row",
12
+ labelClassName: m = ""
13
+ }) => /* @__PURE__ */ r.jsxs(
12
14
  "button",
13
15
  {
14
- className: `${m(e, s)} w-full cursor-pointer transition-all duration-200 ${l === "row" && "flex-row!"}`,
16
+ className: `${x(
17
+ e,
18
+ o
19
+ )} w-full cursor-pointer transition-all duration-200 ${l === "row" && "flex-row!"}`,
15
20
  onClick: a,
16
21
  children: [
17
- r && /* @__PURE__ */ t.jsx(
22
+ t && /* @__PURE__ */ r.jsx(
18
23
  n,
19
24
  {
20
- icon: r,
21
- className: `${s ? "text-blue-500" : "text-gray-500"} w-20 h-20`
25
+ icon: t,
26
+ className: `${o ? "text-blue-500" : "text-gray-500"} w-20 h-20`
22
27
  }
23
28
  ),
24
- /* @__PURE__ */ t.jsx("span", { className: "text-lg font-500", children: o })
29
+ /* @__PURE__ */ r.jsx("span", { className: f("text-lg font-500", m), children: s })
25
30
  ]
26
31
  }
27
32
  );
28
33
  export {
29
- i as default
34
+ w as default
30
35
  };
@@ -4,7 +4,8 @@ export default interface TabProps {
4
4
  label: string;
5
5
  icon?: IconProp;
6
6
  isSelected?: boolean;
7
- direction?: 'row' | 'col';
7
+ direction?: "row" | "col";
8
8
  onClick?: () => void;
9
- variant?: 'default' | 'underline';
9
+ variant?: "default" | "underline";
10
+ labelClassName?: string;
10
11
  }
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TextInputProps } from './TextInput.types';
3
3
  import { FieldValues } from 'react-hook-form';
4
- declare const TextInput: <T extends FieldValues = FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, rightSide, translateKey, ...props }: TextInputProps<T>) => React.ReactElement;
4
+ declare const TextInput: <T extends FieldValues = FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, rightSide, translateKey, size, ...props }: TextInputProps<T>) => React.ReactElement;
5
5
  export default TextInput;
@@ -1,49 +1,65 @@
1
- import { j as r } from "../../../_virtual/jsx-runtime.js";
2
- import { useController as j } from "react-hook-form";
3
- import { useTheme as w } from "../../../hooks/useTheme.js";
4
- const C = ({
5
- label: u,
6
- control: d,
1
+ import { j as o } from "../../../_virtual/jsx-runtime.js";
2
+ import { useController as w } from "react-hook-form";
3
+ import { useTheme as v } from "../../../hooks/useTheme.js";
4
+ const I = ({
5
+ label: c,
6
+ control: x,
7
7
  name: e,
8
- placeholder: c,
9
- className: x = "",
8
+ placeholder: d,
9
+ className: i = "",
10
10
  disabled: t = !1,
11
- leftSide: a,
12
- rightSide: s,
13
- translateKey: f = "",
11
+ leftSide: s,
12
+ rightSide: n,
13
+ translateKey: p = "",
14
+ size: b = "base",
14
15
  ...g
15
16
  }) => {
16
17
  const {
17
- field: { value: n = "", onChange: i, ref: p, onBlur: b },
18
- fieldState: { error: l }
19
- } = j({ name: e, control: d }), { t: o } = w(), h = o(e), m = o(f);
20
- return /* @__PURE__ */ r.jsxs(
18
+ field: { value: u = "", onChange: f, ref: h, onBlur: m },
19
+ fieldState: { error: r }
20
+ } = w({ name: e, control: x }), { t: a } = v(), l = {
21
+ sm: {
22
+ container: "p-8",
23
+ text: "text-body-s",
24
+ label: "text-xs",
25
+ error: "text-xs",
26
+ gap: "gap-6"
27
+ },
28
+ base: {
29
+ container: "p-16",
30
+ text: "text-body-m",
31
+ label: "text-label",
32
+ error: "text-label",
33
+ gap: "gap-8"
34
+ }
35
+ }[b], y = a(e), $ = a(p);
36
+ return /* @__PURE__ */ o.jsxs(
21
37
  "label",
22
38
  {
23
- className: `flex flex-col group gap-8 select-none ${t && "cursor-not-allowed"} ${x}`,
39
+ className: `flex flex-col group select-none ${l.gap} ${t && "cursor-not-allowed"} ${i}`,
24
40
  htmlFor: e,
25
41
  children: [
26
- /* @__PURE__ */ r.jsx(
42
+ /* @__PURE__ */ o.jsx(
27
43
  "h6",
28
44
  {
29
- className: `text-gray-600 font-600 group ${l && "text-red-500!"} text-label ${t && "text-gray-300"}`,
30
- children: u
45
+ className: `text-gray-600 font-600 group ${r && "text-red-500!"} ${l.label} ${t && "text-gray-300"}`,
46
+ children: c
31
47
  }
32
48
  ),
33
- /* @__PURE__ */ r.jsxs(
49
+ /* @__PURE__ */ o.jsxs(
34
50
  "label",
35
51
  {
36
52
  htmlFor: e,
37
53
  className: `
38
- flex items-center justify-between gap-8 p-16
54
+ flex items-center justify-between gap-8 ${l.container}
39
55
 
40
- ${l && "border-red-500!"}
56
+ ${r && "border-red-500!"}
41
57
 
42
58
  !bg-blue-50
43
59
 
44
60
  w-full h-full rounded-full border
45
61
 
46
- ${n && !t ? "border-blue-200" : "border-blue-100"}
62
+ ${u && !t ? "border-blue-200" : "border-blue-100"}
47
63
  ${!t && "group-hover:border-blue-300"}
48
64
  ${t && "cursor-not-allowed"}
49
65
 
@@ -52,31 +68,31 @@ const C = ({
52
68
  group-disabled:bg-gray-500
53
69
  `,
54
70
  children: [
55
- a && a,
56
- /* @__PURE__ */ r.jsx(
71
+ s && s,
72
+ /* @__PURE__ */ o.jsx(
57
73
  "input",
58
74
  {
59
75
  id: e,
60
76
  name: e,
61
77
  disabled: t,
62
- placeholder: c,
63
- value: n,
64
- onChange: (y) => i(y.target.value),
65
- onBlur: b,
66
- ref: p,
67
- className: "group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden",
78
+ placeholder: d,
79
+ value: u,
80
+ onChange: (j) => f(j.target.value),
81
+ onBlur: m,
82
+ ref: h,
83
+ className: `group bg-transparent w-full h-full font-600 placeholder:font-600 ${l.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,
68
84
  ...g
69
85
  }
70
86
  ),
71
- s && s
87
+ n && n
72
88
  ]
73
89
  }
74
90
  ),
75
- /* @__PURE__ */ r.jsx("h4", { className: "font-500 text-label text-red-500 leading-none", children: (l == null ? void 0 : l.message) && o(l.message, { x: m || h }) })
91
+ /* @__PURE__ */ o.jsx("h4", { className: `font-500 text-red-500 leading-none ${l.error}`, children: (r == null ? void 0 : r.message) && a(r.message, { x: $ || y }) })
76
92
  ]
77
93
  }
78
94
  );
79
95
  };
80
96
  export {
81
- C as default
97
+ I as default
82
98
  };
@@ -1,12 +1,13 @@
1
1
  import { Control, FieldValues, Path } from 'react-hook-form';
2
2
  export type TextInputProps<T extends FieldValues = FieldValues> = {
3
- label: string;
3
+ label?: string;
4
4
  placeholder?: string;
5
5
  className?: string;
6
6
  disabled?: boolean;
7
7
  translateKey?: string;
8
+ size?: 'sm' | 'base';
8
9
  control: Control<T>;
9
10
  name: Path<T>;
10
11
  leftSide?: React.ReactNode;
11
12
  rightSide?: React.ReactNode;
12
- } & React.InputHTMLAttributes<HTMLInputElement>;
13
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>;
@@ -1,31 +1,47 @@
1
1
  import { j as o } from "../../../_virtual/jsx-runtime.js";
2
- import { useTheme as i } from "../../../hooks/useTheme.js";
3
- const m = ({
4
- label: c,
5
- onChange: x,
6
- value: r,
2
+ import { useTheme as h } from "../../../hooks/useTheme.js";
3
+ const j = ({
4
+ label: x,
5
+ onChange: p,
6
+ value: s,
7
7
  name: t,
8
8
  error: l,
9
- placeholder: d,
10
- className: p = "",
9
+ placeholder: b,
10
+ className: g = "",
11
11
  disabled: e = !1,
12
12
  disabledInput: n = !1,
13
- leftSide: s,
14
- rightSide: a,
15
- ...g
13
+ size: i = "base",
14
+ leftSide: a,
15
+ rightSide: c,
16
+ ...d
16
17
  }) => {
17
- const { t: u } = i();
18
+ const { t: u } = h(), r = {
19
+ sm: {
20
+ container: "p-8",
21
+ text: "text-body-s",
22
+ label: "text-xs",
23
+ error: "text-xs",
24
+ gap: "gap-6"
25
+ },
26
+ base: {
27
+ container: "p-16",
28
+ text: "text-body-m",
29
+ label: "text-label",
30
+ error: "text-label",
31
+ gap: "gap-8"
32
+ }
33
+ }[i];
18
34
  return /* @__PURE__ */ o.jsxs(
19
35
  "label",
20
36
  {
21
- className: `flex flex-col group gap-8 select-none ${e && "cursor-not-allowed"} ${p}`,
37
+ className: `flex flex-col group select-none ${r.gap} ${e && "cursor-not-allowed"} ${g}`,
22
38
  htmlFor: t,
23
39
  children: [
24
40
  /* @__PURE__ */ o.jsx(
25
41
  "h6",
26
42
  {
27
- className: `text-gray-600 font-600 group ${l && "!text-red-500"} text-label ${e && "text-gray-300"}`,
28
- children: c
43
+ className: `text-gray-600 font-600 group ${l && "!text-red-500"} ${r.label} ${e && "text-gray-300"}`,
44
+ children: x
29
45
  }
30
46
  ),
31
47
  /* @__PURE__ */ o.jsxs(
@@ -33,7 +49,7 @@ const m = ({
33
49
  {
34
50
  htmlFor: t,
35
51
  className: `
36
- flex items-center justify-between gap-8 p-16
52
+ flex items-center justify-between gap-8 ${r.container}
37
53
 
38
54
  ${l && "!border-red-500"}
39
55
 
@@ -41,7 +57,7 @@ const m = ({
41
57
 
42
58
  w-full h-full rounded-full border
43
59
 
44
- ${r && !e ? "border-blue-200" : "border-blue-100"}
60
+ ${s && !e ? "border-blue-200" : "border-blue-100"}
45
61
  ${!e && "group-hover:border-blue-300"}
46
62
  ${e && "cursor-not-allowed"}
47
63
 
@@ -50,31 +66,31 @@ const m = ({
50
66
  group-disabled:bg-gray-500
51
67
  `,
52
68
  children: [
53
- s && s,
69
+ a && a,
54
70
  /* @__PURE__ */ o.jsx(
55
71
  "input",
56
72
  {
57
- ...g,
73
+ ...d,
58
74
  id: t,
59
75
  name: t,
60
76
  disabled: e,
61
- placeholder: d,
62
- value: r,
77
+ placeholder: b,
78
+ value: s,
63
79
  onChange: (f) => {
64
- x(f.target.value);
80
+ p(f.target.value);
65
81
  },
66
- className: `group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${n && "pointer-events-none !select-none !caret-transparent"}`
82
+ className: `group bg-transparent w-full h-full font-600 placeholder:font-600 ${r.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${n && "pointer-events-none !select-none !caret-transparent"}`
67
83
  }
68
84
  ),
69
- a && a
85
+ c && c
70
86
  ]
71
87
  }
72
88
  ),
73
- /* @__PURE__ */ o.jsx("h4", { className: "font-500 text-label text-red-500 leading-none", children: l && u(l || "", { x: u(t) }) })
89
+ /* @__PURE__ */ o.jsx("h4", { className: `font-500 text-red-500 leading-none ${r.error}`, children: l && u(l || "", { x: u(t) }) })
74
90
  ]
75
91
  }
76
92
  );
77
93
  };
78
94
  export {
79
- m as default
95
+ j as default
80
96
  };
@@ -8,6 +8,7 @@ export type UncontrolledTextInputProps = {
8
8
  error?: string | undefined;
9
9
  disabled?: boolean;
10
10
  disabledInput?: boolean;
11
+ size?: 'sm' | 'base';
11
12
  leftSide?: React.ReactNode;
12
13
  rightSide?: React.ReactNode;
13
- } & React.InputHTMLAttributes<HTMLInputElement>;
14
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>;