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.
- package/dist/_virtual/index2.js +2 -3
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index5.js +5 -2
- package/dist/components/atoms/LoadingProgress/LoadingProgress.d.ts +1 -0
- package/dist/components/atoms/LoadingProgress/LoadingProgress.js +14 -13
- package/dist/components/atoms/Pill/Pill.d.ts +8 -0
- package/dist/components/atoms/Pill/Pill.js +31 -0
- package/dist/components/atoms/Pill/index.d.ts +1 -0
- package/dist/components/atoms/Tab/Tab.d.ts +1 -1
- package/dist/components/atoms/Tab/Tab.js +19 -14
- package/dist/components/atoms/Tab/Tab.types.d.ts +3 -2
- package/dist/components/atoms/TextInput/TextInput.d.ts +1 -1
- package/dist/components/atoms/TextInput/TextInput.js +50 -34
- package/dist/components/atoms/TextInput/TextInput.types.d.ts +3 -2
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +41 -25
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +2 -1
- package/dist/components/atoms/UploadContainer/UploadContainer.js +139 -79
- package/dist/components/atoms/UploadContainer/UploadContainer.types.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/molecules/AutocompleteInput/AutocompleteInput.js +128 -119
- package/dist/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +3 -0
- package/dist/components/molecules/PillsContainer/PillsContainer.d.ts +6 -0
- package/dist/components/molecules/PillsContainer/PillsContainer.js +60 -0
- package/dist/components/molecules/PillsContainer/index.d.ts +1 -0
- package/dist/components/molecules/Tabs/Tabs.d.ts +3 -2
- package/dist/components/molecules/Tabs/Tabs.js +13 -10
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/index.js +67 -63
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +55 -55
- package/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +27 -17
- package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +15 -4
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/package.json +1 -1
- package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.d.ts +0 -3
- package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +0 -25
package/dist/_virtual/index2.js
CHANGED
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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
|
-
|
|
4
|
+
a as t
|
|
7
5
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -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
|
|
3
|
-
const
|
|
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
|
-
|
|
11
|
+
showProgress: j = !0,
|
|
12
|
+
...g
|
|
12
13
|
}) => {
|
|
13
|
-
const [m,
|
|
14
|
-
return
|
|
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 = (
|
|
18
|
-
n || (n =
|
|
19
|
-
const
|
|
20
|
-
|
|
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", { ...
|
|
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:
|
|
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
|
-
|
|
71
|
+
D as default
|
|
71
72
|
};
|
|
@@ -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
|
|
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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
11
|
+
direction: l = "row",
|
|
12
|
+
labelClassName: m = ""
|
|
13
|
+
}) => /* @__PURE__ */ r.jsxs(
|
|
12
14
|
"button",
|
|
13
15
|
{
|
|
14
|
-
className: `${
|
|
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
|
-
|
|
22
|
+
t && /* @__PURE__ */ r.jsx(
|
|
18
23
|
n,
|
|
19
24
|
{
|
|
20
|
-
icon:
|
|
21
|
-
className: `${
|
|
25
|
+
icon: t,
|
|
26
|
+
className: `${o ? "text-blue-500" : "text-gray-500"} w-20 h-20`
|
|
22
27
|
}
|
|
23
28
|
),
|
|
24
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ r.jsx("span", { className: f("text-lg font-500", m), children: s })
|
|
25
30
|
]
|
|
26
31
|
}
|
|
27
32
|
);
|
|
28
33
|
export {
|
|
29
|
-
|
|
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?:
|
|
7
|
+
direction?: "row" | "col";
|
|
8
8
|
onClick?: () => void;
|
|
9
|
-
variant?:
|
|
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
|
|
2
|
-
import { useController as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
const
|
|
5
|
-
label:
|
|
6
|
-
control:
|
|
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:
|
|
9
|
-
className:
|
|
8
|
+
placeholder: d,
|
|
9
|
+
className: i = "",
|
|
10
10
|
disabled: t = !1,
|
|
11
|
-
leftSide:
|
|
12
|
-
rightSide:
|
|
13
|
-
translateKey:
|
|
11
|
+
leftSide: s,
|
|
12
|
+
rightSide: n,
|
|
13
|
+
translateKey: p = "",
|
|
14
|
+
size: b = "base",
|
|
14
15
|
...g
|
|
15
16
|
}) => {
|
|
16
17
|
const {
|
|
17
|
-
field: { value:
|
|
18
|
-
fieldState: { error:
|
|
19
|
-
} =
|
|
20
|
-
|
|
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
|
|
39
|
+
className: `flex flex-col group select-none ${l.gap} ${t && "cursor-not-allowed"} ${i}`,
|
|
24
40
|
htmlFor: e,
|
|
25
41
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ o.jsx(
|
|
27
43
|
"h6",
|
|
28
44
|
{
|
|
29
|
-
className: `text-gray-600 font-600 group ${
|
|
30
|
-
children:
|
|
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__ */
|
|
49
|
+
/* @__PURE__ */ o.jsxs(
|
|
34
50
|
"label",
|
|
35
51
|
{
|
|
36
52
|
htmlFor: e,
|
|
37
53
|
className: `
|
|
38
|
-
flex items-center justify-between gap-8
|
|
54
|
+
flex items-center justify-between gap-8 ${l.container}
|
|
39
55
|
|
|
40
|
-
${
|
|
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
|
-
${
|
|
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
|
-
|
|
56
|
-
/* @__PURE__ */
|
|
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:
|
|
63
|
-
value:
|
|
64
|
-
onChange: (
|
|
65
|
-
onBlur:
|
|
66
|
-
ref:
|
|
67
|
-
className:
|
|
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
|
-
|
|
87
|
+
n && n
|
|
72
88
|
]
|
|
73
89
|
}
|
|
74
90
|
),
|
|
75
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
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
|
|
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
|
|
3
|
-
const
|
|
4
|
-
label:
|
|
5
|
-
onChange:
|
|
6
|
-
value:
|
|
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:
|
|
10
|
-
className:
|
|
9
|
+
placeholder: b,
|
|
10
|
+
className: g = "",
|
|
11
11
|
disabled: e = !1,
|
|
12
12
|
disabledInput: n = !1,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
size: i = "base",
|
|
14
|
+
leftSide: a,
|
|
15
|
+
rightSide: c,
|
|
16
|
+
...d
|
|
16
17
|
}) => {
|
|
17
|
-
const { t: u } =
|
|
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
|
|
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"}
|
|
28
|
-
children:
|
|
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
|
|
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
|
-
${
|
|
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
|
-
|
|
69
|
+
a && a,
|
|
54
70
|
/* @__PURE__ */ o.jsx(
|
|
55
71
|
"input",
|
|
56
72
|
{
|
|
57
|
-
...
|
|
73
|
+
...d,
|
|
58
74
|
id: t,
|
|
59
75
|
name: t,
|
|
60
76
|
disabled: e,
|
|
61
|
-
placeholder:
|
|
62
|
-
value:
|
|
77
|
+
placeholder: b,
|
|
78
|
+
value: s,
|
|
63
79
|
onChange: (f) => {
|
|
64
|
-
|
|
80
|
+
p(f.target.value);
|
|
65
81
|
},
|
|
66
|
-
className: `group bg-transparent w-full h-full font-600 placeholder:font-600 text
|
|
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
|
-
|
|
85
|
+
c && c
|
|
70
86
|
]
|
|
71
87
|
}
|
|
72
88
|
),
|
|
73
|
-
/* @__PURE__ */ o.jsx("h4", { className:
|
|
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
|
-
|
|
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'>;
|