@bikdotai/bik-component-library 0.0.830-beta.2 → 0.0.830-beta.3
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/cjs/components/dropdown/Dropdown.js +1 -1
- package/dist/cjs/components/dropdown/Dropdown.js.map +1 -1
- package/dist/cjs/components/input/Input.js +1 -1
- package/dist/cjs/components/input/Input.js.map +1 -1
- package/dist/cjs/components/input/Input.styled.js +16 -10
- package/dist/cjs/components/input/Input.styled.js.map +1 -1
- package/dist/esm/components/dropdown/Dropdown.d.ts +2 -0
- package/dist/esm/components/dropdown/Dropdown.js +108 -102
- package/dist/esm/components/dropdown/Dropdown.js.map +1 -1
- package/dist/esm/components/input/Input.js +130 -127
- package/dist/esm/components/input/Input.js.map +1 -1
- package/dist/esm/components/input/Input.model.d.ts +2 -0
- package/dist/esm/components/input/Input.styled.d.ts +2 -0
- package/dist/esm/components/input/Input.styled.js +31 -25
- package/dist/esm/components/input/Input.styled.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxDEV as t, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { isFunction as
|
|
5
|
-
import { TitleSmall as
|
|
6
|
-
import { COLORS as
|
|
7
|
-
import
|
|
8
|
-
import { InputStyleContext as
|
|
9
|
-
import { RootContainer as
|
|
10
|
-
import { Button as
|
|
11
|
-
import { Tooltip as
|
|
12
|
-
const
|
|
13
|
-
(e,
|
|
1
|
+
import { jsxDEV as t, Fragment as Ce } from "react/jsx-dev-runtime";
|
|
2
|
+
import Te from "../../assets/icons/info.svg.js";
|
|
3
|
+
import { forwardRef as We, useState as b, useContext as Ue, useRef as Me, useEffect as c } from "react";
|
|
4
|
+
import { isFunction as ne, shouldSanitizeForType as Se, sanitizeUnsafeInput as Le, validateInput as Ee } from "./Input-helper.js";
|
|
5
|
+
import { TitleSmall as He, BodySecondary as _e } from "../TypographyStyle.js";
|
|
6
|
+
import { COLORS as te } from "../../constants/Theme.js";
|
|
7
|
+
import Ae from "../../assets/icons/errorInfo.svg.js";
|
|
8
|
+
import { InputStyleContext as Re } from "./context/InputStyleProvider.js";
|
|
9
|
+
import { RootContainer as Fe, InputFooter as Be, MaxCharStyle as ie, InputWrapper as Oe, IconHolder as re, PrefixHolder as Pe, InputContainer as ze, InputContainerSmall as Ke, InputContainerXSmall as Ve, SuffixHolder as Xe, InputHeader as je } from "./Input.styled.js";
|
|
10
|
+
import { Button as se } from "../button/Button.js";
|
|
11
|
+
import { Tooltip as qe } from "../tooltips/Tooltip.js";
|
|
12
|
+
const Ge = We(
|
|
13
|
+
(e, oe) => {
|
|
14
14
|
const {
|
|
15
15
|
placeholder: T,
|
|
16
16
|
leftIcon: W,
|
|
@@ -21,37 +21,38 @@ const qe = Te(
|
|
|
21
21
|
hintText: S,
|
|
22
22
|
type: a,
|
|
23
23
|
state: x,
|
|
24
|
-
validate:
|
|
24
|
+
validate: ae,
|
|
25
25
|
variant: o,
|
|
26
26
|
button: l,
|
|
27
27
|
suffixText: L,
|
|
28
28
|
prefixText: E,
|
|
29
29
|
onChangeText: H,
|
|
30
30
|
value: d,
|
|
31
|
-
noErrorHint:
|
|
31
|
+
noErrorHint: ue,
|
|
32
32
|
reset: _,
|
|
33
|
-
rangeValidation:
|
|
34
|
-
noKeyDownChange:
|
|
35
|
-
version:
|
|
33
|
+
rangeValidation: le,
|
|
34
|
+
noKeyDownChange: me,
|
|
35
|
+
version: ce,
|
|
36
36
|
noMaxCharCheck: A,
|
|
37
37
|
labelElement: R,
|
|
38
38
|
autoGrow: I,
|
|
39
39
|
minHeight: y,
|
|
40
|
-
maxHeight:
|
|
41
|
-
labelTextBold:
|
|
42
|
-
truncateText:
|
|
40
|
+
maxHeight: pe,
|
|
41
|
+
labelTextBold: de,
|
|
42
|
+
truncateText: he,
|
|
43
43
|
maxCharLimitPosition: F,
|
|
44
44
|
maxCharStyle: B,
|
|
45
|
-
hightlightInputColor:
|
|
45
|
+
hightlightInputColor: ke,
|
|
46
46
|
onKeyDownEvent: O,
|
|
47
|
-
hideInputHeader:
|
|
48
|
-
hideBorder:
|
|
49
|
-
inputWrapperStyles:
|
|
47
|
+
hideInputHeader: ve,
|
|
48
|
+
hideBorder: fe,
|
|
49
|
+
inputWrapperStyles: be,
|
|
50
50
|
minCharsToTrigger: P,
|
|
51
|
-
maxCharAlignment:
|
|
51
|
+
maxCharAlignment: Ne,
|
|
52
52
|
isDisabled: z = !1,
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
solidDisabled: K = !1,
|
|
54
|
+
allowUnsafeInput: xe,
|
|
55
|
+
leftIconStyle: Ie
|
|
55
56
|
} = {
|
|
56
57
|
maxCharLimit: 0,
|
|
57
58
|
type: "text",
|
|
@@ -60,7 +61,7 @@ const qe = Te(
|
|
|
60
61
|
minCharsToTrigger: 0,
|
|
61
62
|
maxCharAlignment: !1,
|
|
62
63
|
...e
|
|
63
|
-
},
|
|
64
|
+
}, V = W?.icon, X = U?.icon, [g, v] = b(!1), [ye, w] = b(!1), [m, j] = b(), q = o === "x-small" ? "12px" : o === "small" ? "18px" : "22px", f = Ue(Re), [G, D] = b(""), ge = Me(null), r = oe ?? ge;
|
|
64
65
|
c(() => {
|
|
65
66
|
D(d || ""), !d && I && (r.current.style.height = y || "48px");
|
|
66
67
|
}, [d]), c(() => {
|
|
@@ -68,70 +69,70 @@ const qe = Te(
|
|
|
68
69
|
}, [r]), c(() => {
|
|
69
70
|
const n = r.current;
|
|
70
71
|
if (n && ["phonenumber", "zip", "number"].includes(a))
|
|
71
|
-
return n.addEventListener("wheel",
|
|
72
|
-
n.removeEventListener("wheel",
|
|
72
|
+
return n.addEventListener("wheel", J, { passive: !1 }), () => {
|
|
73
|
+
n.removeEventListener("wheel", J);
|
|
73
74
|
};
|
|
74
75
|
}, []), c(() => {
|
|
75
76
|
_ && D("");
|
|
76
77
|
}, [_]), c(() => {
|
|
77
78
|
w(!!e.isActive), e.isActive && r.current?.focus();
|
|
78
79
|
}, [e.isActive]), c(() => {
|
|
79
|
-
|
|
80
|
+
j(e.errorMessage);
|
|
80
81
|
}, [e.errorMessage]), c(() => {
|
|
81
82
|
v(!1), (e.state === "invalid" || m || e.state === "disabled-invalid") && v(!0), e.state === "active" && r.current?.focus();
|
|
82
83
|
}, [e.state, m]), c(() => {
|
|
83
84
|
v(!!m || e.state === "invalid");
|
|
84
85
|
}, [m, e.state]);
|
|
85
86
|
const p = (n, ...i) => {
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
const i = s !== 0 ? s :
|
|
89
|
-
O && (!u.length || u.length >= k) && O(n), !
|
|
90
|
-
}, $ = (n) => {
|
|
91
|
-
n.preventDefault();
|
|
87
|
+
ne(n) && n(...i);
|
|
88
|
+
}, Y = () => a === "zip" ? 6 : 2e3, $ = (n) => {
|
|
89
|
+
const i = s !== 0 ? s : Y(), h = [8], k = P, u = n.target.value;
|
|
90
|
+
O && (!u.length || u.length >= k) && O(n), !me && (!u.length || u.length >= k) && H(d || "", n), !A && !h.includes(n.which) && i > 0 && u.length >= i && n.preventDefault();
|
|
92
91
|
}, J = (n) => {
|
|
92
|
+
n.preventDefault();
|
|
93
|
+
}, Q = (n) => {
|
|
93
94
|
let i = n.target.value;
|
|
94
|
-
const h = s !== 0 ? s + 1 :
|
|
95
|
-
if (!
|
|
95
|
+
const h = s !== 0 ? s + 1 : Y(), k = P;
|
|
96
|
+
if (!xe && Se(a) && (i = Le(i)), !A && h > 0 && i.length >= h && (i = i.substring(0, h - 1)), e.textControl || D(i || ""), k && i && i.length < k)
|
|
96
97
|
return;
|
|
97
98
|
H(i, n), I && (r.current.style.height = `${r.current.scrollHeight}px`, i || (r.current.style.height = y || "48px"));
|
|
98
|
-
const u =
|
|
99
|
-
if (!u || !
|
|
99
|
+
const u = ae || Ee;
|
|
100
|
+
if (!u || !ne(u))
|
|
100
101
|
return;
|
|
101
|
-
const [
|
|
102
|
+
const [we, De] = u(
|
|
102
103
|
i,
|
|
103
104
|
a,
|
|
104
|
-
|
|
105
|
+
le
|
|
105
106
|
);
|
|
106
|
-
v(!
|
|
107
|
-
}, Q = (n) => {
|
|
108
|
-
e.skipFocus || w(!0), p(e.onFocus?.(n));
|
|
107
|
+
v(!we), j(e.errorMessage ? e.errorMessage : De);
|
|
109
108
|
}, Z = (n) => {
|
|
109
|
+
e.skipFocus || w(!0), p(e.onFocus?.(n));
|
|
110
|
+
}, ee = (n) => {
|
|
110
111
|
e.skipFocus || w(!1), p(e.onBlur?.(n));
|
|
111
|
-
}, C = () => /* @__PURE__ */ t(
|
|
112
|
+
}, C = () => /* @__PURE__ */ t(Ce, { children: [
|
|
112
113
|
a !== "multiline" && /* @__PURE__ */ t(
|
|
113
114
|
"input",
|
|
114
115
|
{
|
|
115
|
-
className:
|
|
116
|
+
className: he ? "truncate-class" : "",
|
|
116
117
|
"data-test": e["data-test"],
|
|
117
118
|
id: e.id,
|
|
118
119
|
style: f?.input ?? {},
|
|
119
120
|
ref: r,
|
|
120
121
|
disabled: z,
|
|
121
122
|
type: ["phonenumber", "zip", "number"].includes(a) ? "number" : a,
|
|
122
|
-
value:
|
|
123
|
-
onFocus: (n) =>
|
|
124
|
-
onBlur: (n) =>
|
|
123
|
+
value: G,
|
|
124
|
+
onFocus: (n) => Z(n),
|
|
125
|
+
onBlur: (n) => ee(n),
|
|
125
126
|
placeholder: T || "Enter here",
|
|
126
|
-
onChange:
|
|
127
|
+
onChange: Q,
|
|
127
128
|
onClick: (n) => p(e.onClick),
|
|
128
|
-
onKeyDown: (n) =>
|
|
129
|
+
onKeyDown: (n) => $(n)
|
|
129
130
|
},
|
|
130
131
|
void 0,
|
|
131
132
|
!1,
|
|
132
133
|
{
|
|
133
134
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
134
|
-
lineNumber:
|
|
135
|
+
lineNumber: 272,
|
|
135
136
|
columnNumber: 7
|
|
136
137
|
},
|
|
137
138
|
void 0
|
|
@@ -140,95 +141,97 @@ const qe = Te(
|
|
|
140
141
|
"textarea",
|
|
141
142
|
{
|
|
142
143
|
"data-test": e["data-test"],
|
|
143
|
-
value:
|
|
144
|
+
value: G,
|
|
144
145
|
ref: r,
|
|
145
|
-
onFocus: (n) =>
|
|
146
|
-
onBlur: (n) =>
|
|
146
|
+
onFocus: (n) => Z(n),
|
|
147
|
+
onBlur: (n) => ee(n),
|
|
147
148
|
onClick: (n) => p(e.onClick),
|
|
148
149
|
disabled: z,
|
|
149
150
|
placeholder: T || "Enter here",
|
|
150
|
-
onChange:
|
|
151
|
-
onKeyDown: (n) =>
|
|
151
|
+
onChange: Q,
|
|
152
|
+
onKeyDown: (n) => $(n),
|
|
152
153
|
maxLength: s > 0 ? s : void 0
|
|
153
154
|
},
|
|
154
155
|
void 0,
|
|
155
156
|
!1,
|
|
156
157
|
{
|
|
157
158
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
158
|
-
lineNumber:
|
|
159
|
+
lineNumber: 294,
|
|
159
160
|
columnNumber: 7
|
|
160
161
|
},
|
|
161
162
|
void 0
|
|
162
163
|
)
|
|
163
164
|
] }, void 0, !0, {
|
|
164
165
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
165
|
-
lineNumber:
|
|
166
|
+
lineNumber: 270,
|
|
166
167
|
columnNumber: 5
|
|
167
168
|
}, void 0);
|
|
168
169
|
return /* @__PURE__ */ t(
|
|
169
|
-
|
|
170
|
+
Fe,
|
|
170
171
|
{
|
|
171
172
|
width: e.width,
|
|
172
173
|
height: e.height,
|
|
173
174
|
state: x,
|
|
175
|
+
solidDisabled: K,
|
|
174
176
|
type: a,
|
|
175
177
|
style: f?.RootContainer ?? {},
|
|
176
178
|
children: [
|
|
177
179
|
/* @__PURE__ */ t("div", { className: "flex-align-center", children: [
|
|
178
|
-
!
|
|
179
|
-
!!m && /* @__PURE__ */ t(
|
|
180
|
+
!ue && (!!S || !!m) && /* @__PURE__ */ t(Be, { invalid: !!m, children: [
|
|
181
|
+
!!m && /* @__PURE__ */ t(Ae, { width: 16, height: 16 }, void 0, !1, {
|
|
180
182
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
181
|
-
lineNumber:
|
|
183
|
+
lineNumber: 324,
|
|
182
184
|
columnNumber: 27
|
|
183
185
|
}, void 0),
|
|
184
186
|
m || S
|
|
185
187
|
] }, void 0, !0, {
|
|
186
188
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
187
|
-
lineNumber:
|
|
189
|
+
lineNumber: 323,
|
|
188
190
|
columnNumber: 7
|
|
189
191
|
}, void 0),
|
|
190
|
-
s > 0 && F === "BOTTOM" && /* @__PURE__ */ t(
|
|
192
|
+
s > 0 && F === "BOTTOM" && /* @__PURE__ */ t(ie, { position: "BOTTOM", style: B, children: [
|
|
191
193
|
(d ?? "").toString()?.length ?? 0,
|
|
192
194
|
"/",
|
|
193
195
|
s
|
|
194
196
|
] }, void 0, !0, {
|
|
195
197
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
196
|
-
lineNumber:
|
|
198
|
+
lineNumber: 329,
|
|
197
199
|
columnNumber: 7
|
|
198
200
|
}, void 0)
|
|
199
201
|
] }, void 0, !0, {
|
|
200
202
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
201
|
-
lineNumber:
|
|
203
|
+
lineNumber: 321,
|
|
202
204
|
columnNumber: 5
|
|
203
205
|
}, void 0),
|
|
204
206
|
/* @__PURE__ */ t(
|
|
205
|
-
|
|
207
|
+
Oe,
|
|
206
208
|
{
|
|
207
209
|
variant: o,
|
|
208
210
|
state: x,
|
|
211
|
+
solidDisabled: K,
|
|
209
212
|
width: e.width,
|
|
210
|
-
isActive: x === "active" ||
|
|
213
|
+
isActive: x === "active" || ye,
|
|
211
214
|
isInvalid: g,
|
|
212
|
-
style: f?.InputWrapper ??
|
|
213
|
-
version:
|
|
215
|
+
style: f?.InputWrapper ?? be ?? {},
|
|
216
|
+
version: ce,
|
|
214
217
|
height: e.height,
|
|
215
|
-
hightlightInputColor:
|
|
216
|
-
hideBorder:
|
|
218
|
+
hightlightInputColor: ke,
|
|
219
|
+
hideBorder: fe,
|
|
217
220
|
children: [
|
|
218
|
-
!!
|
|
219
|
-
|
|
221
|
+
!!V && /* @__PURE__ */ t(
|
|
222
|
+
re,
|
|
220
223
|
{
|
|
221
224
|
variant: o,
|
|
222
|
-
iconSize:
|
|
225
|
+
iconSize: q,
|
|
223
226
|
onClick: () => p(W?.callback),
|
|
224
227
|
isLeft: !0,
|
|
225
228
|
style: {
|
|
226
229
|
...f?.IconHolder ?? {},
|
|
227
|
-
...
|
|
230
|
+
...Ie
|
|
228
231
|
},
|
|
229
|
-
children: /* @__PURE__ */ t(
|
|
232
|
+
children: /* @__PURE__ */ t(V, {}, void 0, !1, {
|
|
230
233
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
231
|
-
lineNumber:
|
|
234
|
+
lineNumber: 358,
|
|
232
235
|
columnNumber: 8
|
|
233
236
|
}, void 0)
|
|
234
237
|
},
|
|
@@ -236,23 +239,23 @@ const qe = Te(
|
|
|
236
239
|
!1,
|
|
237
240
|
{
|
|
238
241
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
239
|
-
lineNumber:
|
|
242
|
+
lineNumber: 348,
|
|
240
243
|
columnNumber: 7
|
|
241
244
|
},
|
|
242
245
|
void 0
|
|
243
246
|
),
|
|
244
|
-
!!E && /* @__PURE__ */ t(
|
|
247
|
+
!!E && /* @__PURE__ */ t(Pe, { variant: o, children: E }, void 0, !1, {
|
|
245
248
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
246
|
-
lineNumber:
|
|
249
|
+
lineNumber: 362,
|
|
247
250
|
columnNumber: 7
|
|
248
251
|
}, void 0),
|
|
249
252
|
o === "default" && /* @__PURE__ */ t(
|
|
250
|
-
|
|
253
|
+
ze,
|
|
251
254
|
{
|
|
252
255
|
height: e.height,
|
|
253
256
|
type: e.type,
|
|
254
257
|
minHeight: y,
|
|
255
|
-
maxHeight:
|
|
258
|
+
maxHeight: pe,
|
|
256
259
|
autoGrow: I,
|
|
257
260
|
children: C()
|
|
258
261
|
},
|
|
@@ -260,31 +263,31 @@ const qe = Te(
|
|
|
260
263
|
!1,
|
|
261
264
|
{
|
|
262
265
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
263
|
-
lineNumber:
|
|
266
|
+
lineNumber: 365,
|
|
264
267
|
columnNumber: 7
|
|
265
268
|
},
|
|
266
269
|
void 0
|
|
267
270
|
),
|
|
268
|
-
o === "small" && /* @__PURE__ */ t(
|
|
271
|
+
o === "small" && /* @__PURE__ */ t(Ke, { height: e.height, type: e.type, children: C() }, void 0, !1, {
|
|
269
272
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
270
|
-
lineNumber:
|
|
273
|
+
lineNumber: 376,
|
|
271
274
|
columnNumber: 7
|
|
272
275
|
}, void 0),
|
|
273
|
-
o === "x-small" && /* @__PURE__ */ t(
|
|
276
|
+
o === "x-small" && /* @__PURE__ */ t(Ve, { height: e.height, type: e.type, children: C() }, void 0, !1, {
|
|
274
277
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
275
|
-
lineNumber:
|
|
278
|
+
lineNumber: 381,
|
|
276
279
|
columnNumber: 7
|
|
277
280
|
}, void 0),
|
|
278
|
-
!!
|
|
279
|
-
|
|
281
|
+
!!X && /* @__PURE__ */ t(
|
|
282
|
+
re,
|
|
280
283
|
{
|
|
281
284
|
variant: o,
|
|
282
|
-
iconSize:
|
|
285
|
+
iconSize: q,
|
|
283
286
|
onClick: () => p(U?.callback),
|
|
284
287
|
isLeft: !1,
|
|
285
|
-
children: /* @__PURE__ */ t(
|
|
288
|
+
children: /* @__PURE__ */ t(X, {}, void 0, !1, {
|
|
286
289
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
287
|
-
lineNumber:
|
|
290
|
+
lineNumber: 392,
|
|
288
291
|
columnNumber: 8
|
|
289
292
|
}, void 0)
|
|
290
293
|
},
|
|
@@ -292,18 +295,18 @@ const qe = Te(
|
|
|
292
295
|
!1,
|
|
293
296
|
{
|
|
294
297
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
295
|
-
lineNumber:
|
|
298
|
+
lineNumber: 386,
|
|
296
299
|
columnNumber: 7
|
|
297
300
|
},
|
|
298
301
|
void 0
|
|
299
302
|
),
|
|
300
|
-
!!L && /* @__PURE__ */ t(
|
|
303
|
+
!!L && /* @__PURE__ */ t(Xe, { variant: o, children: L }, void 0, !1, {
|
|
301
304
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
302
|
-
lineNumber:
|
|
305
|
+
lineNumber: 396,
|
|
303
306
|
columnNumber: 7
|
|
304
307
|
}, void 0),
|
|
305
308
|
l && l.text && /* @__PURE__ */ t(
|
|
306
|
-
|
|
309
|
+
se,
|
|
307
310
|
{
|
|
308
311
|
buttonText: l.text,
|
|
309
312
|
buttonType: l.buttonType,
|
|
@@ -313,14 +316,14 @@ const qe = Te(
|
|
|
313
316
|
!1,
|
|
314
317
|
{
|
|
315
318
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
316
|
-
lineNumber:
|
|
319
|
+
lineNumber: 399,
|
|
317
320
|
columnNumber: 7
|
|
318
321
|
},
|
|
319
322
|
void 0
|
|
320
323
|
),
|
|
321
|
-
l && l.buttonProps && /* @__PURE__ */ t(
|
|
324
|
+
l && l.buttonProps && /* @__PURE__ */ t(se, { ...l.buttonProps }, void 0, !1, {
|
|
322
325
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
323
|
-
lineNumber:
|
|
326
|
+
lineNumber: 405,
|
|
324
327
|
columnNumber: 39
|
|
325
328
|
}, void 0)
|
|
326
329
|
]
|
|
@@ -329,79 +332,79 @@ const qe = Te(
|
|
|
329
332
|
!0,
|
|
330
333
|
{
|
|
331
334
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
332
|
-
lineNumber:
|
|
335
|
+
lineNumber: 334,
|
|
333
336
|
columnNumber: 5
|
|
334
337
|
},
|
|
335
338
|
void 0
|
|
336
339
|
),
|
|
337
|
-
!
|
|
338
|
-
|
|
340
|
+
!ve && (!!N || !!s) && /* @__PURE__ */ t(
|
|
341
|
+
je,
|
|
339
342
|
{
|
|
340
343
|
invalid: g,
|
|
341
|
-
maxCharAlignment:
|
|
344
|
+
maxCharAlignment: Ne,
|
|
342
345
|
children: [
|
|
343
346
|
R && R,
|
|
344
347
|
/* @__PURE__ */ t("div", { className: "label__container", children: [
|
|
345
|
-
|
|
348
|
+
de ? /* @__PURE__ */ t(He, { children: [
|
|
346
349
|
N,
|
|
347
350
|
M ? /* @__PURE__ */ t("span", { children: "*" }, void 0, !1, {
|
|
348
351
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
349
|
-
lineNumber:
|
|
352
|
+
lineNumber: 417,
|
|
350
353
|
columnNumber: 24
|
|
351
354
|
}, void 0) : ""
|
|
352
355
|
] }, void 0, !0, {
|
|
353
356
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
354
|
-
lineNumber:
|
|
357
|
+
lineNumber: 415,
|
|
355
358
|
columnNumber: 9
|
|
356
|
-
}, void 0) : /* @__PURE__ */ t(
|
|
359
|
+
}, void 0) : /* @__PURE__ */ t(_e, { children: [
|
|
357
360
|
N,
|
|
358
361
|
M ? /* @__PURE__ */ t("span", { children: "*" }, void 0, !1, {
|
|
359
362
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
360
|
-
lineNumber:
|
|
363
|
+
lineNumber: 422,
|
|
361
364
|
columnNumber: 24
|
|
362
365
|
}, void 0) : ""
|
|
363
366
|
] }, void 0, !0, {
|
|
364
367
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
365
|
-
lineNumber:
|
|
368
|
+
lineNumber: 420,
|
|
366
369
|
columnNumber: 9
|
|
367
370
|
}, void 0),
|
|
368
|
-
e.tooltipText && /* @__PURE__ */ t(
|
|
369
|
-
|
|
371
|
+
e.tooltipText && /* @__PURE__ */ t(qe, { body: e.tooltipText, placement: "top", children: /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(
|
|
372
|
+
Te,
|
|
370
373
|
{
|
|
371
374
|
style: { marginTop: -3 },
|
|
372
375
|
width: 18,
|
|
373
376
|
height: 18,
|
|
374
|
-
color: g ?
|
|
377
|
+
color: g ? te.content.negative : te.content.primary
|
|
375
378
|
},
|
|
376
379
|
void 0,
|
|
377
380
|
!1,
|
|
378
381
|
{
|
|
379
382
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
380
|
-
lineNumber:
|
|
383
|
+
lineNumber: 428,
|
|
381
384
|
columnNumber: 11
|
|
382
385
|
},
|
|
383
386
|
void 0
|
|
384
387
|
) }, void 0, !1, {
|
|
385
388
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
386
|
-
lineNumber:
|
|
389
|
+
lineNumber: 427,
|
|
387
390
|
columnNumber: 10
|
|
388
391
|
}, void 0) }, void 0, !1, {
|
|
389
392
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
390
|
-
lineNumber:
|
|
393
|
+
lineNumber: 426,
|
|
391
394
|
columnNumber: 9
|
|
392
395
|
}, void 0)
|
|
393
396
|
] }, void 0, !0, {
|
|
394
397
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
395
|
-
lineNumber:
|
|
398
|
+
lineNumber: 413,
|
|
396
399
|
columnNumber: 7
|
|
397
400
|
}, void 0),
|
|
398
|
-
s > 0 && F === "TOP" && /* @__PURE__ */ t(
|
|
401
|
+
s > 0 && F === "TOP" && /* @__PURE__ */ t(ie, { style: B, children: [
|
|
399
402
|
(d ?? "").toString()?.length ?? 0,
|
|
400
403
|
"/",
|
|
401
404
|
s
|
|
402
405
|
] }, void 0, !0, {
|
|
403
406
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
404
|
-
lineNumber:
|
|
407
|
+
lineNumber: 443,
|
|
405
408
|
columnNumber: 8
|
|
406
409
|
}, void 0)
|
|
407
410
|
]
|
|
@@ -410,7 +413,7 @@ const qe = Te(
|
|
|
410
413
|
!0,
|
|
411
414
|
{
|
|
412
415
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
413
|
-
lineNumber:
|
|
416
|
+
lineNumber: 408,
|
|
414
417
|
columnNumber: 6
|
|
415
418
|
},
|
|
416
419
|
void 0
|
|
@@ -421,15 +424,15 @@ const qe = Te(
|
|
|
421
424
|
!0,
|
|
422
425
|
{
|
|
423
426
|
fileName: "/Users/himanshusrivastava/Desktop/Work/worktrees/helpdesk-ui-revamp/bik-component-library/src/components/input/Input.tsx",
|
|
424
|
-
lineNumber:
|
|
427
|
+
lineNumber: 313,
|
|
425
428
|
columnNumber: 4
|
|
426
429
|
},
|
|
427
430
|
void 0
|
|
428
431
|
);
|
|
429
432
|
}
|
|
430
433
|
);
|
|
431
|
-
|
|
434
|
+
Ge.displayName = "Input";
|
|
432
435
|
export {
|
|
433
|
-
|
|
436
|
+
Ge as Input
|
|
434
437
|
};
|
|
435
438
|
//# sourceMappingURL=Input.js.map
|