prometeo-design-system 2.5.5 → 2.5.7
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/Avatar.es.js +1 -1
- package/dist/{Button-Bc0LYLfg.js → Button-DsbEyjth.js} +1 -1
- package/dist/Button.es.js +1 -1
- package/dist/{CardProfile-DA-HDUpi.js → CardProfile-DV3gwvqE.js} +1 -1
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +1 -1
- package/dist/CheckboxFormik.es.js +1 -1
- package/dist/DatePicker.es.js +3 -3
- package/dist/DialogModal.es.js +1 -1
- package/dist/DrawerDesktop.es.js +2 -2
- package/dist/DrawerMobile.es.js +88 -88
- package/dist/DropZone.es.js +1 -1
- package/dist/Header.es.js +1 -1
- package/dist/Icons.es.js +1 -1
- package/dist/Image.es.js +1 -1
- package/dist/{ImageGallery-BeADef_g.js → ImageGallery-DnoRTpCr.js} +2 -2
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-DwIAUqcc.js → Input-PNwH7rb6.js} +2 -2
- package/dist/Input.es.js +1 -1
- package/dist/InputFormik.es.js +137 -94
- package/dist/InputMultiple.es.js +1 -1
- package/dist/{LayoutGeneric-B6E-yOYJ.js → LayoutGeneric-CbaoatQB.js} +1 -1
- package/dist/LayoutGeneric.es.js +1 -1
- package/dist/Logo.es.js +1 -1
- package/dist/Menu.es.js +1 -1
- package/dist/OtpInput.es.js +1 -1
- package/dist/Pagination.es.js +1 -1
- package/dist/ProfilePictureUpload.es.js +1 -1
- package/dist/ProgressBar.es.js +1 -1
- package/dist/SegmentedButton.es.js +1 -1
- package/dist/{Select-C1MxM6yq.js → Select-CrTtTmXZ.js} +2 -2
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +2 -2
- package/dist/SelectFormikLegacy.es.js +1 -1
- package/dist/SelectSearch.es.js +2 -2
- package/dist/Skeleton.es.js +1 -1
- package/dist/Spinner.es.js +1 -1
- package/dist/Steps.es.js +1 -1
- package/dist/SwipeContainer.es.js +1 -1
- package/dist/Switch.es.js +1 -1
- package/dist/TabLinks.es.js +1 -1
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/Toast.es.js +2 -2
- package/dist/ToastProvider.es.js +1 -1
- package/dist/Tooltip.es.js +1 -1
- package/dist/components/Drawer/DrawerMobile.d.ts +1 -1
- package/dist/components/InputFormik/InputFormik.d.ts +2 -1
- package/dist/{jsx-runtime-ByW6EXIE.js → jsx-runtime-DKDX3adD.js} +94 -96
- package/dist/prometeo-design-system.es.js +8 -8
- package/package.json +1 -1
package/dist/InputFormik.es.js
CHANGED
|
@@ -1,44 +1,50 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
2
|
-
import { c as
|
|
3
|
-
import { FastField as
|
|
4
|
-
import { memo as
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { c as s } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { FastField as q, ErrorMessage as G } from "formik";
|
|
4
|
+
import { memo as H, useState as I, useRef as J, useCallback as y, useLayoutEffect as Q } from "react";
|
|
5
5
|
import { Icons as N } from "./Icons.es.js";
|
|
6
|
-
const
|
|
7
|
-
icon:
|
|
6
|
+
const W = ({
|
|
7
|
+
icon: t,
|
|
8
8
|
iconPosition: r = "left",
|
|
9
9
|
label: d,
|
|
10
10
|
className: B,
|
|
11
|
-
containerClassName:
|
|
11
|
+
containerClassName: R,
|
|
12
12
|
id: w,
|
|
13
13
|
type: j = "text",
|
|
14
14
|
labelVariant: n = "default",
|
|
15
15
|
placeholder: p,
|
|
16
16
|
disabled: b = !1,
|
|
17
|
-
field:
|
|
17
|
+
field: l,
|
|
18
|
+
innerRef: $,
|
|
18
19
|
form: z,
|
|
19
20
|
...a
|
|
20
21
|
}) => {
|
|
21
|
-
const [o, v] = I(!1), [C, K] = I(!1),
|
|
22
|
+
const [o, v] = I(!1), [C, K] = I(!1), i = J(null), F = z.getFieldMeta(l.name), k = F.touched && F.error, E = l.value && l.value.toString().length > 0, x = j === "password", M = x ? C ? "text" : "password" : j, P = () => n === "static" ? p || d : p || "", A = () => x ? t ? r === "left" ? "pl-10 pr-10" : "pr-16" : "pr-10" : t ? r === "left" ? "pl-10" : "pr-10" : "", D = y(() => {
|
|
22
23
|
v(!0), a.onFocus?.();
|
|
23
|
-
}, [a]),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
}, [a]), T = y(
|
|
25
|
+
(c) => {
|
|
26
|
+
v(!1), a.onBlur?.(), l.onBlur(c);
|
|
27
|
+
},
|
|
28
|
+
[l, a]
|
|
29
|
+
), U = y(() => {
|
|
30
|
+
K((c) => !c);
|
|
27
31
|
}, []);
|
|
28
|
-
|
|
29
|
-
if (
|
|
30
|
-
const
|
|
31
|
-
let
|
|
32
|
-
for (;
|
|
33
|
-
const f = window.getComputedStyle(
|
|
32
|
+
Q(() => {
|
|
33
|
+
if (i.current) {
|
|
34
|
+
const L = ((O) => {
|
|
35
|
+
let u = O;
|
|
36
|
+
for (; u && u !== document.body; ) {
|
|
37
|
+
const f = window.getComputedStyle(u).backgroundColor;
|
|
34
38
|
if (f && f !== "transparent" && f !== "rgba(0, 0, 0, 0)")
|
|
35
39
|
return f;
|
|
36
|
-
|
|
40
|
+
u = u.parentElement;
|
|
37
41
|
}
|
|
38
42
|
const m = window.getComputedStyle(document.body).backgroundColor;
|
|
39
43
|
return m && m !== "transparent" && m !== "rgba(0, 0, 0, 0)" ? m : "rgb(255, 255, 255)";
|
|
40
|
-
})(
|
|
41
|
-
|
|
44
|
+
})(
|
|
45
|
+
i.current.parentElement
|
|
46
|
+
);
|
|
47
|
+
i.current.style.backgroundColor = L;
|
|
42
48
|
}
|
|
43
49
|
}, []);
|
|
44
50
|
const g = {
|
|
@@ -72,7 +78,7 @@ const Q = ({
|
|
|
72
78
|
icon: {},
|
|
73
79
|
placeholder: {}
|
|
74
80
|
}
|
|
75
|
-
},
|
|
81
|
+
}, V = {
|
|
76
82
|
none: {
|
|
77
83
|
label: "left-2 "
|
|
78
84
|
},
|
|
@@ -92,79 +98,116 @@ const Q = ({
|
|
|
92
98
|
label: `top-1/2 -translate-y-1/2 scale-100 peer-focus:text-sm peer-placeholder-shown:text-base ${(o || E) && "top-0 scale-90"}`
|
|
93
99
|
}
|
|
94
100
|
}, h = b ? "disabled" : k ? "error" : "default";
|
|
95
|
-
return /* @__PURE__ */ e.jsxs(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
type: M,
|
|
103
|
-
name: t.name,
|
|
104
|
-
value: t.value || "",
|
|
105
|
-
placeholder: P(),
|
|
106
|
-
onChange: t.onChange,
|
|
107
|
-
onFocus: A,
|
|
108
|
-
onEmptied: a.onEmptied,
|
|
109
|
-
onKeyDown: a.onKeyDown,
|
|
110
|
-
onKeyUp: a.onKeyUp,
|
|
111
|
-
onBlur: D,
|
|
112
|
-
className: u(
|
|
113
|
-
"w-full px-3 h-12 text-left border-[1px] rounded-lg transition-all duration-200 ease-in-out text-neutral-default-default",
|
|
114
|
-
"bg-transparent focus:outline-none",
|
|
115
|
-
S[n].input,
|
|
116
|
-
g[h].input,
|
|
117
|
-
R(),
|
|
118
|
-
B
|
|
119
|
-
)
|
|
120
|
-
}
|
|
101
|
+
return /* @__PURE__ */ e.jsxs(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
className: s(
|
|
105
|
+
"relative w-full bg-inherit",
|
|
106
|
+
n === "static" && "mt-5",
|
|
107
|
+
R
|
|
121
108
|
),
|
|
122
|
-
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ e.jsxs("div", { className: "relative bg-inherit", children: [
|
|
111
|
+
/* @__PURE__ */ e.jsx(
|
|
112
|
+
"input",
|
|
113
|
+
{
|
|
114
|
+
disabled: b,
|
|
115
|
+
id: w || l.name,
|
|
116
|
+
type: M,
|
|
117
|
+
name: l.name,
|
|
118
|
+
value: l.value || "",
|
|
119
|
+
placeholder: P(),
|
|
120
|
+
onChange: l.onChange,
|
|
121
|
+
onFocus: D,
|
|
122
|
+
onEmptied: a.onEmptied,
|
|
123
|
+
onKeyDown: a.onKeyDown,
|
|
124
|
+
onKeyUp: a.onKeyUp,
|
|
125
|
+
onBlur: T,
|
|
126
|
+
className: s(
|
|
127
|
+
"w-full px-3 h-12 text-left border-[1px] rounded-lg transition-all duration-200 ease-in-out text-neutral-default-default",
|
|
128
|
+
"bg-transparent focus:outline-none",
|
|
129
|
+
S[n].input,
|
|
130
|
+
g[h].input,
|
|
131
|
+
A(),
|
|
132
|
+
B
|
|
133
|
+
),
|
|
134
|
+
ref: $
|
|
135
|
+
}
|
|
133
136
|
),
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"absolute top-1/2 -translate-y-1/2 p-1 text-neutral-medium-default hover:text-neutral-strong-default",
|
|
149
|
-
"transition-colors duration-200 focus:outline-none focus:text-primary-default-default",
|
|
150
|
-
l && r === "right" ? "right-8" : "right-3"
|
|
137
|
+
/* @__PURE__ */ e.jsx(
|
|
138
|
+
"label",
|
|
139
|
+
{
|
|
140
|
+
ref: i,
|
|
141
|
+
htmlFor: w || a.name,
|
|
142
|
+
className: s(
|
|
143
|
+
"absolute transition-all duration-200 font-bold text-sm ease-in-out pointer-events-none bg-inherit px-1 z-10",
|
|
144
|
+
"prometeo-fonts-label-large text-sm",
|
|
145
|
+
V[t ? r : "none"].label,
|
|
146
|
+
S[n].label,
|
|
147
|
+
g[h].label
|
|
148
|
+
),
|
|
149
|
+
children: d
|
|
150
|
+
}
|
|
151
151
|
),
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
152
|
+
t && /* @__PURE__ */ e.jsx(
|
|
153
|
+
"div",
|
|
154
|
+
{
|
|
155
|
+
className: s(
|
|
156
|
+
"absolute top-1/2 -translate-y-1/2 text-neutral-medium-default",
|
|
157
|
+
g[h].icon,
|
|
158
|
+
r === "left" ? "left-3" : "right-3"
|
|
159
|
+
),
|
|
160
|
+
children: t
|
|
161
|
+
}
|
|
162
|
+
),
|
|
163
|
+
x && /* @__PURE__ */ e.jsx(
|
|
164
|
+
"button",
|
|
165
|
+
{
|
|
166
|
+
type: "button",
|
|
167
|
+
onClick: U,
|
|
168
|
+
className: s(
|
|
169
|
+
"absolute top-1/2 -translate-y-1/2 p-1 text-neutral-medium-default hover:text-neutral-strong-default",
|
|
170
|
+
"transition-colors duration-200 focus:outline-none focus:text-primary-default-default",
|
|
171
|
+
t && r === "right" ? "right-8" : "right-3"
|
|
172
|
+
),
|
|
173
|
+
tabIndex: -1,
|
|
174
|
+
disabled: b,
|
|
175
|
+
children: C ? /* @__PURE__ */ e.jsx(
|
|
176
|
+
N.EyeVisibility,
|
|
177
|
+
{
|
|
178
|
+
size: 24,
|
|
179
|
+
className: "text-neutral-default-default"
|
|
180
|
+
}
|
|
181
|
+
) : /* @__PURE__ */ e.jsx(
|
|
182
|
+
N.EyeVisibilityOff,
|
|
183
|
+
{
|
|
184
|
+
size: 24,
|
|
185
|
+
className: "text-neutral-default-default"
|
|
186
|
+
}
|
|
187
|
+
)
|
|
188
|
+
}
|
|
189
|
+
)
|
|
190
|
+
] }),
|
|
191
|
+
k && /* @__PURE__ */ e.jsx(
|
|
192
|
+
G,
|
|
193
|
+
{
|
|
194
|
+
name: l.name,
|
|
195
|
+
component: "span",
|
|
196
|
+
className: "block text-error-default-default text-xs mt-1"
|
|
197
|
+
}
|
|
198
|
+
)
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
}, X = H(W), ae = (t) => /* @__PURE__ */ e.jsx(q, { name: t.name, children: ({ field: r, form: d }) => /* @__PURE__ */ e.jsx(
|
|
203
|
+
X,
|
|
204
|
+
{
|
|
205
|
+
...t,
|
|
206
|
+
field: r,
|
|
207
|
+
form: d,
|
|
208
|
+
innerRef: t.innerRef
|
|
209
|
+
}
|
|
210
|
+
) });
|
|
168
211
|
export {
|
|
169
|
-
|
|
212
|
+
ae as default
|
|
170
213
|
};
|
package/dist/InputMultiple.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-
|
|
1
|
+
import { j as r } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { Icons as C } from "./Icons.es.js";
|
|
3
3
|
import { c as d } from "./cn-B6yFEsav.js";
|
|
4
4
|
import S, { useRef as M, useState as x, useCallback as T, useEffect as ee } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as n } from "./jsx-runtime-
|
|
1
|
+
import { j as n } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { useRef as o, createContext as c, useContext as l, memo as d } from "react";
|
|
3
3
|
const a = c(null), x = ({ children: e }) => {
|
|
4
4
|
const r = o(null), s = o(null), u = (t) => {
|
package/dist/LayoutGeneric.es.js
CHANGED
package/dist/Logo.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { Icons as t } from "./Icons.es.js";
|
|
3
3
|
const s = () => /* @__PURE__ */ e.jsxs("div", { className: "container-logo flex items-center justify-center gap-1 bg-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md min-w-[185px]", children: [
|
|
4
4
|
/* @__PURE__ */ e.jsx(t.TicketFilled, { size: 28, className: "rotate-140 text-primary-medium-pressed icon-logo" }),
|
package/dist/Menu.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as r } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { AnimatePresence as n, motion as o } from "framer-motion";
|
|
4
4
|
const s = ({ menuRef: t, children: a, className: i }) => /* @__PURE__ */ e.jsx("div", { ref: t, className: r("flex bg-neutral-default-default absolute bottom-10 left-24 border-1 border-neutral-strong-default h-auto w-60 rounded-md px-2", i), children: /* @__PURE__ */ e.jsx(n, { mode: "wait", children: /* @__PURE__ */ e.jsx(
|
package/dist/OtpInput.es.js
CHANGED
package/dist/Pagination.es.js
CHANGED
package/dist/ProgressBar.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as l } from "./jsx-runtime-
|
|
1
|
+
import { j as l } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { Icons as Q } from "./Icons.es.js";
|
|
3
3
|
import { c as u } from "./cn-B6yFEsav.js";
|
|
4
4
|
import we, { memo as R, useState as ce, useRef as V, useMemo as Z, useCallback as J, useEffect as ee, useImperativeHandle as _e } from "react";
|
|
5
5
|
import Re from "./Spinner.es.js";
|
|
6
6
|
import { createPortal as We } from "react-dom";
|
|
7
7
|
import { u as Be } from "./useDragScroll-CHN9OMwn.js";
|
|
8
|
-
import { u as Ke, I as Ue } from "./Input-
|
|
8
|
+
import { u as Ke, I as Ue } from "./Input-PNwH7rb6.js";
|
|
9
9
|
import Fe from "./CheckBox.es.js";
|
|
10
10
|
import { Skeleton as Ne } from "./Skeleton.es.js";
|
|
11
11
|
const ke = (e) => {
|
package/dist/Select.es.js
CHANGED
package/dist/SelectFormik.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as d } from "./jsx-runtime-
|
|
1
|
+
import { j as d } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { useField as y } from "formik";
|
|
3
|
-
import { S as m } from "./Select-
|
|
3
|
+
import { S as m } from "./Select-CrTtTmXZ.js";
|
|
4
4
|
import { useRef as p, useEffect as g } from "react";
|
|
5
5
|
function f(e) {
|
|
6
6
|
return Array.isArray(e) && e.every(
|
package/dist/SelectSearch.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as G } from "./jsx-runtime-
|
|
2
|
-
import { g as i, S as H } from "./Select-
|
|
1
|
+
import { j as G } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { g as i, S as H } from "./Select-CrTtTmXZ.js";
|
|
3
3
|
import { useState as w, useRef as T, useEffect as m, useMemo as Q, useCallback as X } from "react";
|
|
4
4
|
function te(e) {
|
|
5
5
|
const {
|
package/dist/Skeleton.es.js
CHANGED
package/dist/Spinner.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { ClipLoader as l, SyncLoader as m, HashLoader as p, GridLoader as x, DotLoader as j, BounceLoader as f } from "react-spinners";
|
|
3
3
|
import { c as L } from "./cn-B6yFEsav.js";
|
|
4
4
|
const y = ({
|
package/dist/Steps.es.js
CHANGED
package/dist/Switch.es.js
CHANGED
package/dist/TabLinks.es.js
CHANGED
package/dist/Table.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-
|
|
1
|
+
import { j as r } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as l } from "./cn-B6yFEsav.js";
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx("div", { className: "w-full", children: /* @__PURE__ */ r.jsx(
|
package/dist/TextArea.es.js
CHANGED
package/dist/Toast.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import b from "react";
|
|
3
3
|
import { toast as p } from "sonner";
|
|
4
4
|
import { Icons as m } from "./Icons.es.js";
|
|
5
5
|
import { c as s } from "./cn-B6yFEsav.js";
|
|
6
|
-
import { B as u } from "./Button-
|
|
6
|
+
import { B as u } from "./Button-DsbEyjth.js";
|
|
7
7
|
const x = {
|
|
8
8
|
dark: {
|
|
9
9
|
success: {
|
package/dist/ToastProvider.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
1
|
+
import { j as t } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { Toaster as r } from "sonner";
|
|
3
3
|
const i = ({ ...o }) => /* @__PURE__ */ t.jsx(r, { ...o, position: "bottom-right", richColors: !1, theme: "light" });
|
|
4
4
|
export {
|
package/dist/Tooltip.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { AnimatePresence as f, motion as n } from "framer-motion";
|
|
3
3
|
import { useState as p, cloneElement as x } from "react";
|
|
4
4
|
import { Icons as b } from "./Icons.es.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface DrawerMobileProps<TContext = unknown> {
|
|
3
|
-
children?: React.ReactNode;
|
|
3
|
+
children?: React.ReactNode | ((context: TContext | null) => React.ReactNode);
|
|
4
4
|
defaultOpen?: boolean;
|
|
5
5
|
onClose?: (context: TContext | null) => void;
|
|
6
6
|
snap?: string | number | null;
|
|
@@ -3,7 +3,7 @@ export type LabelVariant = "default" | "static";
|
|
|
3
3
|
export interface IInputFormik {
|
|
4
4
|
label: string;
|
|
5
5
|
icon?: ReactNode;
|
|
6
|
-
iconPosition?:
|
|
6
|
+
iconPosition?: "left" | "right";
|
|
7
7
|
className?: string;
|
|
8
8
|
containerClassName?: string;
|
|
9
9
|
id?: string;
|
|
@@ -17,6 +17,7 @@ export interface IInputFormik {
|
|
|
17
17
|
onEmptied?: () => void;
|
|
18
18
|
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
19
19
|
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
20
|
+
innerRef?: React.Ref<HTMLInputElement>;
|
|
20
21
|
}
|
|
21
22
|
declare const InputFormik: (props: IInputFormik) => import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
export default InputFormik;
|