@sikka/hawa 0.32.2-next → 0.33.0-next
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/{Chip-BT2hUlGJ.d.mts → Chip-BtgTAs8x.d.mts} +1 -1
- package/dist/{Chip-Dt7zJ-jZ.d.ts → Chip-DQsP5hFS.d.ts} +1 -1
- package/dist/Label-UbMDLtJF.d.mts +14 -0
- package/dist/Label-UbMDLtJF.d.ts +14 -0
- package/dist/alert/index.js +151 -34
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +148 -31
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js +191 -145
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +226 -180
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js +147 -30
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +142 -25
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +230 -229
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +147 -148
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.js +230 -229
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +155 -154
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +174 -173
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.d.mts +3 -2
- package/dist/button/index.d.ts +3 -2
- package/dist/button/index.js +138 -21
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +138 -21
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.d.mts +15 -0
- package/dist/calendar/index.d.ts +15 -0
- package/dist/calendar/index.js +545 -0
- package/dist/calendar/index.js.map +1 -0
- package/dist/calendar/index.mjs +509 -0
- package/dist/calendar/index.mjs.map +1 -0
- package/dist/{chunk-WFPAI2QC.mjs → chunk-3HJ3JXPA.mjs} +130 -174
- package/dist/{chunk-XRUPXLOK.mjs → chunk-AW5FW5TY.mjs} +1 -1
- package/dist/{chunk-MQWYXMSK.mjs → chunk-CKLK3G32.mjs} +242 -197
- package/dist/{chunk-XZLXGXIA.mjs → chunk-E3WWI4I5.mjs} +1 -1
- package/dist/{chunk-WUMWQIAW.mjs → chunk-FRYGQYUO.mjs} +1 -1
- package/dist/{chunk-S6TZHTWS.mjs → chunk-GEB3LM5A.mjs} +1 -1
- package/dist/{chunk-2QAGLSHC.mjs → chunk-IQEBXGLM.mjs} +1 -1
- package/dist/{chunk-PA3Z7W32.mjs → chunk-OS2UOK5C.mjs} +147 -146
- package/dist/{chunk-3S44N7SB.mjs → chunk-RTGD7N7I.mjs} +1 -1
- package/dist/{chunk-WAVKQ44V.mjs → chunk-UBNCETCU.mjs} +1 -1
- package/dist/codeBlock/index.js +138 -92
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +157 -111
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/commonTypes-CgDwjGvU.d.mts +5 -0
- package/dist/commonTypes-CgDwjGvU.d.ts +5 -0
- package/dist/commonTypes-DZdITB5m.d.mts +4 -0
- package/dist/commonTypes-DZdITB5m.d.ts +4 -0
- package/dist/dataTable/index.d.mts +2 -1
- package/dist/dataTable/index.d.ts +2 -1
- package/dist/dataTable/index.js +177 -174
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +177 -174
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +20 -0
- package/dist/datePicker/index.d.ts +20 -0
- package/dist/datePicker/index.js +630 -0
- package/dist/datePicker/index.js.map +1 -0
- package/dist/datePicker/index.mjs +593 -0
- package/dist/datePicker/index.mjs.map +1 -0
- package/dist/destroyableCard/index.d.mts +1 -1
- package/dist/destroyableCard/index.d.ts +1 -1
- package/dist/dialog/index.d.mts +1 -1
- package/dist/dialog/index.d.ts +1 -1
- package/dist/docsLayout/index.js +231 -114
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +222 -105
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +1 -6
- package/dist/dropdownMenu/index.d.ts +1 -6
- package/dist/elements/index.d.mts +9 -8
- package/dist/elements/index.d.ts +9 -8
- package/dist/elements/index.js +54 -51
- package/dist/elements/index.mjs +7 -5
- package/dist/fileDropzone/index.js +184 -67
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +176 -59
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.css +83 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +54 -51
- package/dist/index.mjs +74 -71
- package/dist/input/index.d.mts +1 -2
- package/dist/input/index.d.ts +1 -2
- package/dist/label/index.d.mts +2 -1
- package/dist/label/index.d.ts +2 -1
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +204 -158
- package/dist/layout/index.mjs +2 -2
- package/dist/phoneInput/index.d.mts +1 -2
- package/dist/phoneInput/index.d.ts +1 -2
- package/dist/progress/index.d.mts +1 -8
- package/dist/progress/index.d.ts +1 -8
- package/dist/radio/index.d.mts +1 -9
- package/dist/radio/index.d.ts +1 -9
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/signature/index.d.mts +2 -1
- package/dist/signature/index.d.ts +2 -1
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/sortButton/index.js +145 -28
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +145 -28
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.d.mts +3 -2
- package/dist/splitButton/index.d.ts +3 -2
- package/dist/splitButton/index.js +145 -28
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +145 -28
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toaster/index.d.mts +22 -4
- package/dist/toaster/index.d.ts +22 -4
- package/package.json +3 -1
- package/dist/commonTypes-CMqMLkhN.d.mts +0 -4
- package/dist/commonTypes-CMqMLkhN.d.ts +0 -4
- package/dist/commonTypes-D_7LV7Ri.d.mts +0 -5
- package/dist/commonTypes-D_7LV7Ri.d.ts +0 -5
@@ -5,10 +5,10 @@ import {
|
|
5
5
|
import {
|
6
6
|
Button,
|
7
7
|
Chip,
|
8
|
+
Label,
|
8
9
|
Skeleton,
|
9
|
-
Tooltip,
|
10
10
|
cn
|
11
|
-
} from "./chunk-
|
11
|
+
} from "./chunk-CKLK3G32.mjs";
|
12
12
|
|
13
13
|
// elements/alert/Alert.tsx
|
14
14
|
import React, { useRef, useState, useEffect } from "react";
|
@@ -154,52 +154,9 @@ var Alert = ({
|
|
154
154
|
));
|
155
155
|
};
|
156
156
|
|
157
|
-
// elements/label/Label.tsx
|
158
|
-
import * as React2 from "react";
|
159
|
-
var Label = React2.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React2.createElement(
|
160
|
-
"label",
|
161
|
-
{
|
162
|
-
ref,
|
163
|
-
className: cn(
|
164
|
-
"hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
|
165
|
-
className
|
166
|
-
),
|
167
|
-
...props
|
168
|
-
},
|
169
|
-
children,
|
170
|
-
required && /* @__PURE__ */ React2.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
171
|
-
), hint && /* @__PURE__ */ React2.createElement(
|
172
|
-
Tooltip,
|
173
|
-
{
|
174
|
-
content: hint,
|
175
|
-
side: hintSide,
|
176
|
-
triggerProps: {
|
177
|
-
tabIndex: -1,
|
178
|
-
onClick: (event) => event.preventDefault()
|
179
|
-
}
|
180
|
-
},
|
181
|
-
/* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement(
|
182
|
-
"svg",
|
183
|
-
{
|
184
|
-
xmlns: "http://www.w3.org/2000/svg",
|
185
|
-
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
186
|
-
viewBox: "0 0 24 24",
|
187
|
-
fill: "none",
|
188
|
-
stroke: "currentColor",
|
189
|
-
strokeWidth: "2",
|
190
|
-
strokeLinecap: "round",
|
191
|
-
strokeLinejoin: "round"
|
192
|
-
},
|
193
|
-
/* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
194
|
-
/* @__PURE__ */ React2.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
195
|
-
/* @__PURE__ */ React2.createElement("path", { d: "M12 17h.01" })
|
196
|
-
))
|
197
|
-
)));
|
198
|
-
Label.displayName = "Label";
|
199
|
-
|
200
157
|
// elements/input/Input.tsx
|
201
|
-
import
|
202
|
-
var Input =
|
158
|
+
import React2, { forwardRef } from "react";
|
159
|
+
var Input = forwardRef(
|
203
160
|
({
|
204
161
|
margin = "none",
|
205
162
|
width = "full",
|
@@ -243,7 +200,7 @@ var Input = forwardRef2(
|
|
243
200
|
props.onChange(newEvent);
|
244
201
|
}
|
245
202
|
};
|
246
|
-
return /* @__PURE__ */
|
203
|
+
return /* @__PURE__ */ React2.createElement(
|
247
204
|
"div",
|
248
205
|
{
|
249
206
|
className: cn(
|
@@ -254,8 +211,8 @@ var Input = forwardRef2(
|
|
254
211
|
"hawa-w-full hawa-gap-2"
|
255
212
|
)
|
256
213
|
},
|
257
|
-
props.label && /* @__PURE__ */
|
258
|
-
/* @__PURE__ */
|
214
|
+
props.label && /* @__PURE__ */ React2.createElement(Label, { ...labelProps }, props.label),
|
215
|
+
/* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.outsidePrefix && /* @__PURE__ */ React2.createElement(
|
259
216
|
"span",
|
260
217
|
{
|
261
218
|
className: cn(
|
@@ -264,7 +221,7 @@ var Input = forwardRef2(
|
|
264
221
|
)
|
265
222
|
},
|
266
223
|
props.outsidePrefix
|
267
|
-
), props.isLoading ? /* @__PURE__ */
|
224
|
+
), props.isLoading ? /* @__PURE__ */ React2.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React2.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React2.createElement(React2.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React2.createElement(
|
268
225
|
"div",
|
269
226
|
{
|
270
227
|
className: cn(
|
@@ -272,7 +229,7 @@ var Input = forwardRef2(
|
|
272
229
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
273
230
|
)
|
274
231
|
}
|
275
|
-
), /* @__PURE__ */
|
232
|
+
), /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ React2.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ React2.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React2.createElement(
|
276
233
|
"div",
|
277
234
|
{
|
278
235
|
className: cn(
|
@@ -281,7 +238,7 @@ var Input = forwardRef2(
|
|
281
238
|
)
|
282
239
|
},
|
283
240
|
props.endIcon
|
284
|
-
), /* @__PURE__ */
|
241
|
+
), /* @__PURE__ */ React2.createElement(
|
285
242
|
"input",
|
286
243
|
{
|
287
244
|
required: true,
|
@@ -307,7 +264,7 @@ var Input = forwardRef2(
|
|
307
264
|
inputProps == null ? void 0 : inputProps.className
|
308
265
|
)
|
309
266
|
}
|
310
|
-
)), !forceHideHelperText && /* @__PURE__ */
|
267
|
+
)), !forceHideHelperText && /* @__PURE__ */ React2.createElement(
|
311
268
|
"p",
|
312
269
|
{
|
313
270
|
className: cn(
|
@@ -316,7 +273,7 @@ var Input = forwardRef2(
|
|
316
273
|
)
|
317
274
|
},
|
318
275
|
props.helperText
|
319
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */
|
276
|
+
), !props.disabled && forceHideHelperText && /* @__PURE__ */ React2.createElement(
|
320
277
|
"div",
|
321
278
|
{
|
322
279
|
className: cn(
|
@@ -325,7 +282,7 @@ var Input = forwardRef2(
|
|
325
282
|
)
|
326
283
|
},
|
327
284
|
props.helperText
|
328
|
-
), showCount && /* @__PURE__ */
|
285
|
+
), showCount && /* @__PURE__ */ React2.createElement(
|
329
286
|
"div",
|
330
287
|
{
|
331
288
|
className: cn(
|
@@ -346,7 +303,7 @@ var Input = forwardRef2(
|
|
346
303
|
);
|
347
304
|
|
348
305
|
// elements/select/Select.tsx
|
349
|
-
import
|
306
|
+
import React3 from "react";
|
350
307
|
import ReactSelect from "react-select";
|
351
308
|
import CreatableSelect from "react-select/creatable";
|
352
309
|
import clsx from "clsx";
|
@@ -357,10 +314,10 @@ var Select = ({
|
|
357
314
|
}) => {
|
358
315
|
const NoOption = () => {
|
359
316
|
var _a, _b;
|
360
|
-
return /* @__PURE__ */
|
317
|
+
return /* @__PURE__ */ React3.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
361
318
|
};
|
362
319
|
const Control = ({ children, innerProps, innerRef }) => {
|
363
|
-
return /* @__PURE__ */
|
320
|
+
return /* @__PURE__ */ React3.createElement(
|
364
321
|
"div",
|
365
322
|
{
|
366
323
|
ref: innerRef,
|
@@ -373,7 +330,7 @@ var Select = ({
|
|
373
330
|
);
|
374
331
|
};
|
375
332
|
const Option = ({ children, innerProps, innerRef }) => {
|
376
|
-
return /* @__PURE__ */
|
333
|
+
return /* @__PURE__ */ React3.createElement(
|
377
334
|
"div",
|
378
335
|
{
|
379
336
|
ref: innerRef,
|
@@ -394,7 +351,7 @@ var Select = ({
|
|
394
351
|
...menuProps
|
395
352
|
}) => {
|
396
353
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
397
|
-
return /* @__PURE__ */
|
354
|
+
return /* @__PURE__ */ React3.createElement(
|
398
355
|
"div",
|
399
356
|
{
|
400
357
|
className: cn(
|
@@ -408,7 +365,7 @@ var Select = ({
|
|
408
365
|
children
|
409
366
|
);
|
410
367
|
};
|
411
|
-
return /* @__PURE__ */
|
368
|
+
return /* @__PURE__ */ React3.createElement(
|
412
369
|
"div",
|
413
370
|
{
|
414
371
|
className: cn(
|
@@ -416,10 +373,10 @@ var Select = ({
|
|
416
373
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
417
374
|
)
|
418
375
|
},
|
419
|
-
props.label && /* @__PURE__ */
|
420
|
-
props.isLoading ? /* @__PURE__ */
|
376
|
+
props.label && /* @__PURE__ */ React3.createElement(Label, { ...labelProps }, props.label),
|
377
|
+
props.isLoading ? /* @__PURE__ */ React3.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
421
378
|
// TODO: enable keyboard to go to the next item in the list
|
422
|
-
/* @__PURE__ */
|
379
|
+
/* @__PURE__ */ React3.createElement(
|
423
380
|
ReactSelect,
|
424
381
|
{
|
425
382
|
noOptionsMessage: NoOption,
|
@@ -458,7 +415,7 @@ var Select = ({
|
|
458
415
|
// {...e}
|
459
416
|
// />
|
460
417
|
// ),
|
461
|
-
ValueContainer: (e) => /* @__PURE__ */
|
418
|
+
ValueContainer: (e) => /* @__PURE__ */ React3.createElement(
|
462
419
|
"div",
|
463
420
|
{
|
464
421
|
className: cn(
|
@@ -468,7 +425,7 @@ var Select = ({
|
|
468
425
|
...e
|
469
426
|
}
|
470
427
|
),
|
471
|
-
MultiValueContainer: (e) => /* @__PURE__ */
|
428
|
+
MultiValueContainer: (e) => /* @__PURE__ */ React3.createElement(
|
472
429
|
"div",
|
473
430
|
{
|
474
431
|
className: cn(
|
@@ -490,7 +447,7 @@ var Select = ({
|
|
490
447
|
isSearchable: props.isSearchable
|
491
448
|
}
|
492
449
|
)
|
493
|
-
) : /* @__PURE__ */
|
450
|
+
) : /* @__PURE__ */ React3.createElement(
|
494
451
|
CreatableSelect,
|
495
452
|
{
|
496
453
|
formatCreateLabel: (inputValue) => {
|
@@ -520,7 +477,7 @@ var Select = ({
|
|
520
477
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
521
478
|
}
|
522
479
|
),
|
523
|
-
!props.hideHelperText && /* @__PURE__ */
|
480
|
+
!props.hideHelperText && /* @__PURE__ */ React3.createElement(
|
524
481
|
"p",
|
525
482
|
{
|
526
483
|
className: cn(
|
@@ -534,7 +491,7 @@ var Select = ({
|
|
534
491
|
};
|
535
492
|
|
536
493
|
// elements/phoneInput/PhoneInput.tsx
|
537
|
-
import
|
494
|
+
import React4, { useState as useState2, useRef as useRef2 } from "react";
|
538
495
|
|
539
496
|
// countries.ts
|
540
497
|
var countries = [
|
@@ -2252,7 +2209,7 @@ var PhoneInput = ({
|
|
2252
2209
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
2253
2210
|
}
|
2254
2211
|
};
|
2255
|
-
return /* @__PURE__ */
|
2212
|
+
return /* @__PURE__ */ React4.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React4.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React4.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React4.createElement(
|
2256
2213
|
Select,
|
2257
2214
|
{
|
2258
2215
|
phoneCode: true,
|
@@ -2268,7 +2225,7 @@ var PhoneInput = ({
|
|
2268
2225
|
value: countryCode == null ? void 0 : countryCode.label,
|
2269
2226
|
defaultValue: props.preferredCountry
|
2270
2227
|
}
|
2271
|
-
), /* @__PURE__ */
|
2228
|
+
), /* @__PURE__ */ React4.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React4.createElement(
|
2272
2229
|
"input",
|
2273
2230
|
{
|
2274
2231
|
type: "tel",
|
@@ -2282,7 +2239,7 @@ var PhoneInput = ({
|
|
2282
2239
|
),
|
2283
2240
|
...inputProps
|
2284
2241
|
}
|
2285
|
-
))), /* @__PURE__ */
|
2242
|
+
))), /* @__PURE__ */ React4.createElement(
|
2286
2243
|
"p",
|
2287
2244
|
{
|
2288
2245
|
className: cn(
|
@@ -2295,7 +2252,7 @@ var PhoneInput = ({
|
|
2295
2252
|
};
|
2296
2253
|
|
2297
2254
|
// elements/checkbox/Checkbox.tsx
|
2298
|
-
import * as
|
2255
|
+
import * as React5 from "react";
|
2299
2256
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
2300
2257
|
var Checkbox = ({
|
2301
2258
|
id,
|
@@ -2315,7 +2272,7 @@ var Checkbox = ({
|
|
2315
2272
|
lg: 0.9,
|
2316
2273
|
xl: 1
|
2317
2274
|
};
|
2318
|
-
return /* @__PURE__ */
|
2275
|
+
return /* @__PURE__ */ React5.createElement(
|
2319
2276
|
"div",
|
2320
2277
|
{
|
2321
2278
|
className: cn(
|
@@ -2323,7 +2280,7 @@ var Checkbox = ({
|
|
2323
2280
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
2324
2281
|
)
|
2325
2282
|
},
|
2326
|
-
/* @__PURE__ */
|
2283
|
+
/* @__PURE__ */ React5.createElement(
|
2327
2284
|
CheckboxElement,
|
2328
2285
|
{
|
2329
2286
|
...props,
|
@@ -2333,7 +2290,7 @@ var Checkbox = ({
|
|
2333
2290
|
id
|
2334
2291
|
}
|
2335
2292
|
),
|
2336
|
-
(label || helperText) && /* @__PURE__ */
|
2293
|
+
(label || helperText) && /* @__PURE__ */ React5.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React5.createElement(
|
2337
2294
|
"label",
|
2338
2295
|
{
|
2339
2296
|
htmlFor: id,
|
@@ -2347,7 +2304,7 @@ var Checkbox = ({
|
|
2347
2304
|
}
|
2348
2305
|
},
|
2349
2306
|
label
|
2350
|
-
), sublabel && /* @__PURE__ */
|
2307
|
+
), sublabel && /* @__PURE__ */ React5.createElement(
|
2351
2308
|
"label",
|
2352
2309
|
{
|
2353
2310
|
htmlFor: id,
|
@@ -2357,7 +2314,7 @@ var Checkbox = ({
|
|
2357
2314
|
)
|
2358
2315
|
},
|
2359
2316
|
sublabel
|
2360
|
-
), helperText && !disabled && /* @__PURE__ */
|
2317
|
+
), helperText && !disabled && /* @__PURE__ */ React5.createElement(
|
2361
2318
|
"label",
|
2362
2319
|
{
|
2363
2320
|
htmlFor: id,
|
@@ -2370,7 +2327,7 @@ var Checkbox = ({
|
|
2370
2327
|
))
|
2371
2328
|
);
|
2372
2329
|
};
|
2373
|
-
var CheckboxElement =
|
2330
|
+
var CheckboxElement = React5.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
2374
2331
|
let checkboxRadius = {
|
2375
2332
|
none: "hawa-rounded-none",
|
2376
2333
|
inherit: "hawa-rounded-sm",
|
@@ -2392,7 +2349,7 @@ var CheckboxElement = React6.forwardRef(({ radius = "inherit", size = "default",
|
|
2392
2349
|
lg: "1em",
|
2393
2350
|
xl: "1.25em"
|
2394
2351
|
};
|
2395
|
-
return /* @__PURE__ */
|
2352
|
+
return /* @__PURE__ */ React5.createElement(
|
2396
2353
|
CheckboxPrimitive.Root,
|
2397
2354
|
{
|
2398
2355
|
ref,
|
@@ -2404,14 +2361,14 @@ var CheckboxElement = React6.forwardRef(({ radius = "inherit", size = "default",
|
|
2404
2361
|
),
|
2405
2362
|
...props
|
2406
2363
|
},
|
2407
|
-
/* @__PURE__ */
|
2364
|
+
/* @__PURE__ */ React5.createElement(
|
2408
2365
|
CheckboxPrimitive.Indicator,
|
2409
2366
|
{
|
2410
2367
|
className: cn(
|
2411
2368
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
2412
2369
|
)
|
2413
2370
|
},
|
2414
|
-
/* @__PURE__ */
|
2371
|
+
/* @__PURE__ */ React5.createElement(
|
2415
2372
|
"svg",
|
2416
2373
|
{
|
2417
2374
|
"aria-label": "Check Mark",
|
@@ -2422,7 +2379,7 @@ var CheckboxElement = React6.forwardRef(({ radius = "inherit", size = "default",
|
|
2422
2379
|
height: checkboxIndicatorSizes[size],
|
2423
2380
|
width: checkboxIndicatorSizes[size]
|
2424
2381
|
},
|
2425
|
-
/* @__PURE__ */
|
2382
|
+
/* @__PURE__ */ React5.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
2426
2383
|
),
|
2427
2384
|
" "
|
2428
2385
|
)
|
@@ -2431,16 +2388,16 @@ var CheckboxElement = React6.forwardRef(({ radius = "inherit", size = "default",
|
|
2431
2388
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
2432
2389
|
|
2433
2390
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
2434
|
-
import
|
2391
|
+
import React6 from "react";
|
2435
2392
|
var StopPropagationWrapper = (props) => {
|
2436
2393
|
const handleClick = (e) => {
|
2437
2394
|
e.stopPropagation();
|
2438
2395
|
};
|
2439
|
-
return /* @__PURE__ */
|
2396
|
+
return /* @__PURE__ */ React6.createElement("div", { onClick: handleClick }, props.children);
|
2440
2397
|
};
|
2441
2398
|
|
2442
2399
|
// elements/pinInput/PinInput.tsx
|
2443
|
-
import
|
2400
|
+
import React7, { useEffect as useEffect3, useState as useState3 } from "react";
|
2444
2401
|
var PinInput = ({
|
2445
2402
|
label,
|
2446
2403
|
icon,
|
@@ -2484,13 +2441,13 @@ var PinInput = ({
|
|
2484
2441
|
}
|
2485
2442
|
}
|
2486
2443
|
};
|
2487
|
-
return /* @__PURE__ */
|
2444
|
+
return /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React7.createElement(
|
2488
2445
|
"div",
|
2489
2446
|
{
|
2490
2447
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
2491
2448
|
dir: "ltr"
|
2492
2449
|
},
|
2493
|
-
pin.map((value, index) => /* @__PURE__ */
|
2450
|
+
pin.map((value, index) => /* @__PURE__ */ React7.createElement(
|
2494
2451
|
"input",
|
2495
2452
|
{
|
2496
2453
|
key: index,
|
@@ -2510,7 +2467,7 @@ var PinInput = ({
|
|
2510
2467
|
...inputProps
|
2511
2468
|
}
|
2512
2469
|
))
|
2513
|
-
), /* @__PURE__ */
|
2470
|
+
), /* @__PURE__ */ React7.createElement(
|
2514
2471
|
"p",
|
2515
2472
|
{
|
2516
2473
|
className: cn(
|
@@ -2523,8 +2480,8 @@ var PinInput = ({
|
|
2523
2480
|
};
|
2524
2481
|
|
2525
2482
|
// elements/radio/Radio.tsx
|
2526
|
-
import
|
2527
|
-
var Radio =
|
2483
|
+
import React8, { useState as useState4, useRef as useRef3, useEffect as useEffect4, forwardRef as forwardRef3 } from "react";
|
2484
|
+
var Radio = forwardRef3(
|
2528
2485
|
({
|
2529
2486
|
design = "default",
|
2530
2487
|
width = "default",
|
@@ -2559,7 +2516,7 @@ var Radio = forwardRef4(
|
|
2559
2516
|
default: "hawa-max-w-fit",
|
2560
2517
|
full: "hawa-w-full"
|
2561
2518
|
};
|
2562
|
-
const [parentDirection, setParentDirection] =
|
2519
|
+
const [parentDirection, setParentDirection] = React8.useState(
|
2563
2520
|
null
|
2564
2521
|
);
|
2565
2522
|
const parentRef = useRef3(null);
|
@@ -2581,7 +2538,7 @@ var Radio = forwardRef4(
|
|
2581
2538
|
};
|
2582
2539
|
switch (design) {
|
2583
2540
|
case "tabs":
|
2584
|
-
return /* @__PURE__ */
|
2541
|
+
return /* @__PURE__ */ React8.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ React8.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React8.createElement(
|
2585
2542
|
"ul",
|
2586
2543
|
{
|
2587
2544
|
ref: parentRef,
|
@@ -2593,7 +2550,7 @@ var Radio = forwardRef4(
|
|
2593
2550
|
tabsContainerClassName
|
2594
2551
|
)
|
2595
2552
|
},
|
2596
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */
|
2553
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ React8.createElement(
|
2597
2554
|
"li",
|
2598
2555
|
{
|
2599
2556
|
"aria-current": "page",
|
@@ -2616,7 +2573,7 @@ var Radio = forwardRef4(
|
|
2616
2573
|
opt.icon && opt.icon,
|
2617
2574
|
opt.label
|
2618
2575
|
))
|
2619
|
-
), !forceHideHelperText && /* @__PURE__ */
|
2576
|
+
), !forceHideHelperText && /* @__PURE__ */ React8.createElement(
|
2620
2577
|
"p",
|
2621
2578
|
{
|
2622
2579
|
className: cn(
|
@@ -2627,7 +2584,7 @@ var Radio = forwardRef4(
|
|
2627
2584
|
props.helperText
|
2628
2585
|
));
|
2629
2586
|
case "bordered":
|
2630
|
-
return /* @__PURE__ */
|
2587
|
+
return /* @__PURE__ */ React8.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React8.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ React8.createElement(
|
2631
2588
|
"div",
|
2632
2589
|
{
|
2633
2590
|
className: cn(
|
@@ -2636,7 +2593,7 @@ var Radio = forwardRef4(
|
|
2636
2593
|
),
|
2637
2594
|
key: i + 1
|
2638
2595
|
},
|
2639
|
-
/* @__PURE__ */
|
2596
|
+
/* @__PURE__ */ React8.createElement(
|
2640
2597
|
"input",
|
2641
2598
|
{
|
2642
2599
|
disabled: opt.disabled,
|
@@ -2647,7 +2604,7 @@ var Radio = forwardRef4(
|
|
2647
2604
|
onChange: () => handleChange(opt)
|
2648
2605
|
}
|
2649
2606
|
),
|
2650
|
-
/* @__PURE__ */
|
2607
|
+
/* @__PURE__ */ React8.createElement(
|
2651
2608
|
"label",
|
2652
2609
|
{
|
2653
2610
|
htmlFor: opt.value.toString(),
|
@@ -2660,7 +2617,7 @@ var Radio = forwardRef4(
|
|
2660
2617
|
)
|
2661
2618
|
))));
|
2662
2619
|
case "cards":
|
2663
|
-
return /* @__PURE__ */
|
2620
|
+
return /* @__PURE__ */ React8.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React8.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React8.createElement(
|
2664
2621
|
"input",
|
2665
2622
|
{
|
2666
2623
|
type: "radio",
|
@@ -2671,7 +2628,7 @@ var Radio = forwardRef4(
|
|
2671
2628
|
required: true,
|
2672
2629
|
disabled: opt.disabled
|
2673
2630
|
}
|
2674
|
-
), /* @__PURE__ */
|
2631
|
+
), /* @__PURE__ */ React8.createElement(
|
2675
2632
|
"label",
|
2676
2633
|
{
|
2677
2634
|
htmlFor: opt.value.toString(),
|
@@ -2680,10 +2637,10 @@ var Radio = forwardRef4(
|
|
2680
2637
|
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
|
2681
2638
|
)
|
2682
2639
|
},
|
2683
|
-
/* @__PURE__ */
|
2640
|
+
/* @__PURE__ */ React8.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ React8.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ React8.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
2684
2641
|
))));
|
2685
2642
|
default:
|
2686
|
-
return /* @__PURE__ */
|
2643
|
+
return /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React8.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React8.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React8.createElement(
|
2687
2644
|
"div",
|
2688
2645
|
{
|
2689
2646
|
className: cn(
|
@@ -2692,7 +2649,7 @@ var Radio = forwardRef4(
|
|
2692
2649
|
),
|
2693
2650
|
key: i + 1
|
2694
2651
|
},
|
2695
|
-
/* @__PURE__ */
|
2652
|
+
/* @__PURE__ */ React8.createElement(
|
2696
2653
|
"input",
|
2697
2654
|
{
|
2698
2655
|
disabled: opt.disabled,
|
@@ -2703,7 +2660,7 @@ var Radio = forwardRef4(
|
|
2703
2660
|
onChange: () => handleChange(opt)
|
2704
2661
|
}
|
2705
2662
|
),
|
2706
|
-
/* @__PURE__ */
|
2663
|
+
/* @__PURE__ */ React8.createElement(
|
2707
2664
|
"label",
|
2708
2665
|
{
|
2709
2666
|
htmlFor: opt.value.toString(),
|
@@ -2714,7 +2671,7 @@ var Radio = forwardRef4(
|
|
2714
2671
|
},
|
2715
2672
|
opt.label
|
2716
2673
|
)
|
2717
|
-
))), /* @__PURE__ */
|
2674
|
+
))), /* @__PURE__ */ React8.createElement(
|
2718
2675
|
"p",
|
2719
2676
|
{
|
2720
2677
|
className: cn(
|
@@ -2729,8 +2686,8 @@ var Radio = forwardRef4(
|
|
2729
2686
|
);
|
2730
2687
|
|
2731
2688
|
// elements/textarea/Textarea.tsx
|
2732
|
-
import * as
|
2733
|
-
var Textarea =
|
2689
|
+
import * as React9 from "react";
|
2690
|
+
var Textarea = React9.forwardRef(
|
2734
2691
|
({
|
2735
2692
|
className,
|
2736
2693
|
classNames,
|
@@ -2742,7 +2699,7 @@ var Textarea = React10.forwardRef(
|
|
2742
2699
|
isLoading,
|
2743
2700
|
...props
|
2744
2701
|
}, ref) => {
|
2745
|
-
return /* @__PURE__ */
|
2702
|
+
return /* @__PURE__ */ React9.createElement(
|
2746
2703
|
"div",
|
2747
2704
|
{
|
2748
2705
|
className: cn(
|
@@ -2751,7 +2708,7 @@ var Textarea = React10.forwardRef(
|
|
2751
2708
|
className
|
2752
2709
|
)
|
2753
2710
|
},
|
2754
|
-
/* @__PURE__ */
|
2711
|
+
/* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React9.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React9.createElement(
|
2755
2712
|
"div",
|
2756
2713
|
{
|
2757
2714
|
className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
|
@@ -2760,7 +2717,7 @@ var Textarea = React10.forwardRef(
|
|
2760
2717
|
"/",
|
2761
2718
|
textareaProps == null ? void 0 : textareaProps.maxLength
|
2762
2719
|
)),
|
2763
|
-
isLoading ? /* @__PURE__ */
|
2720
|
+
isLoading ? /* @__PURE__ */ React9.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React9.createElement(
|
2764
2721
|
"textarea",
|
2765
2722
|
{
|
2766
2723
|
...textareaProps,
|
@@ -2771,7 +2728,7 @@ var Textarea = React10.forwardRef(
|
|
2771
2728
|
ref
|
2772
2729
|
}
|
2773
2730
|
),
|
2774
|
-
/* @__PURE__ */
|
2731
|
+
/* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React9.createElement(
|
2775
2732
|
"p",
|
2776
2733
|
{
|
2777
2734
|
className: cn(
|
@@ -2780,17 +2737,17 @@ var Textarea = React10.forwardRef(
|
|
2780
2737
|
)
|
2781
2738
|
},
|
2782
2739
|
props.helperText
|
2783
|
-
), showCount && countPosition === "bottom" && /* @__PURE__ */
|
2740
|
+
), showCount && countPosition === "bottom" && /* @__PURE__ */ React9.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
|
2784
2741
|
);
|
2785
2742
|
}
|
2786
2743
|
);
|
2787
2744
|
Textarea.displayName = "Textarea";
|
2788
2745
|
|
2789
2746
|
// elements/popover/Popover.tsx
|
2790
|
-
import * as
|
2747
|
+
import * as React10 from "react";
|
2791
2748
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
2792
|
-
var PopoverContent =
|
2793
|
-
({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */
|
2749
|
+
var PopoverContent = React10.forwardRef(
|
2750
|
+
({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React10.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React10.createElement(
|
2794
2751
|
PopoverPrimitive.Content,
|
2795
2752
|
{
|
2796
2753
|
ref,
|
@@ -2823,7 +2780,7 @@ var Popover = ({
|
|
2823
2780
|
trigger: "var(--radix-popover-trigger-width)",
|
2824
2781
|
default: "auto"
|
2825
2782
|
};
|
2826
|
-
return /* @__PURE__ */
|
2783
|
+
return /* @__PURE__ */ React10.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React10.createElement(
|
2827
2784
|
PopoverPrimitive.Trigger,
|
2828
2785
|
{
|
2829
2786
|
className: "hawa-w-full",
|
@@ -2831,7 +2788,7 @@ var Popover = ({
|
|
2831
2788
|
...triggerProps
|
2832
2789
|
},
|
2833
2790
|
trigger
|
2834
|
-
), /* @__PURE__ */
|
2791
|
+
), /* @__PURE__ */ React10.createElement(
|
2835
2792
|
PopoverContent,
|
2836
2793
|
{
|
2837
2794
|
side,
|
@@ -2853,21 +2810,21 @@ var PopoverPortal = PopoverPrimitive.Portal;
|
|
2853
2810
|
var PopoverRoot = PopoverPrimitive.Root;
|
2854
2811
|
|
2855
2812
|
// elements/scrollArea/ScrollArea.tsx
|
2856
|
-
import * as
|
2813
|
+
import * as React11 from "react";
|
2857
2814
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
2858
|
-
var ScrollArea =
|
2815
|
+
var ScrollArea = React11.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
2859
2816
|
ScrollAreaPrimitive.Root,
|
2860
2817
|
{
|
2861
2818
|
ref,
|
2862
2819
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
2863
2820
|
...props
|
2864
2821
|
},
|
2865
|
-
/* @__PURE__ */
|
2866
|
-
/* @__PURE__ */
|
2867
|
-
/* @__PURE__ */
|
2822
|
+
/* @__PURE__ */ React11.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
2823
|
+
/* @__PURE__ */ React11.createElement(ScrollBar, { orientation }),
|
2824
|
+
/* @__PURE__ */ React11.createElement(ScrollAreaPrimitive.Corner, null)
|
2868
2825
|
));
|
2869
2826
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
2870
|
-
var ScrollBar =
|
2827
|
+
var ScrollBar = React11.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
2871
2828
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
2872
2829
|
{
|
2873
2830
|
ref,
|
@@ -2880,7 +2837,7 @@ var ScrollBar = React12.forwardRef(({ className, orientation = "vertical", ...pr
|
|
2880
2837
|
),
|
2881
2838
|
...props
|
2882
2839
|
},
|
2883
|
-
/* @__PURE__ */
|
2840
|
+
/* @__PURE__ */ React11.createElement(
|
2884
2841
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
2885
2842
|
{
|
2886
2843
|
className: cn(
|
@@ -2893,12 +2850,12 @@ var ScrollBar = React12.forwardRef(({ className, orientation = "vertical", ...pr
|
|
2893
2850
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
2894
2851
|
|
2895
2852
|
// elements/tabs/Tabs.tsx
|
2896
|
-
import * as
|
2853
|
+
import * as React13 from "react";
|
2897
2854
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
2898
2855
|
import { tv } from "tailwind-variants";
|
2899
2856
|
|
2900
2857
|
// elements/floatBox/FloatBox.tsx
|
2901
|
-
import * as
|
2858
|
+
import * as React12 from "react";
|
2902
2859
|
var FloatBox = ({
|
2903
2860
|
className,
|
2904
2861
|
open,
|
@@ -2936,7 +2893,7 @@ var FloatBox = ({
|
|
2936
2893
|
right: "hawa-arrow-default-left",
|
2937
2894
|
left: "hawa-arrow-default-right"
|
2938
2895
|
};
|
2939
|
-
return /* @__PURE__ */
|
2896
|
+
return /* @__PURE__ */ React12.createElement(
|
2940
2897
|
"div",
|
2941
2898
|
{
|
2942
2899
|
className: cn(
|
@@ -2947,8 +2904,8 @@ var FloatBox = ({
|
|
2947
2904
|
"data-side": side,
|
2948
2905
|
"data-floatbox-state": open ? "open" : "closed"
|
2949
2906
|
},
|
2950
|
-
withArrow && /* @__PURE__ */
|
2951
|
-
/* @__PURE__ */
|
2907
|
+
withArrow && /* @__PURE__ */ React12.createElement("div", { className: cn(arrowDirection[side]) }),
|
2908
|
+
/* @__PURE__ */ React12.createElement("span", null, props.children)
|
2952
2909
|
);
|
2953
2910
|
};
|
2954
2911
|
|
@@ -3011,8 +2968,8 @@ var tabsTriggerVariant = tv({
|
|
3011
2968
|
],
|
3012
2969
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
3013
2970
|
});
|
3014
|
-
var TabsContext =
|
3015
|
-
var Tabs =
|
2971
|
+
var TabsContext = React13.createContext({ orientation: "horizontal", variant: "default" });
|
2972
|
+
var Tabs = React13.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
3016
2973
|
TabsPrimitive.Root,
|
3017
2974
|
{
|
3018
2975
|
ref,
|
@@ -3023,11 +2980,11 @@ var Tabs = React14.forwardRef(({ className, orientation, variant = "default", ..
|
|
3023
2980
|
),
|
3024
2981
|
...props
|
3025
2982
|
},
|
3026
|
-
/* @__PURE__ */
|
2983
|
+
/* @__PURE__ */ React13.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
3027
2984
|
));
|
3028
|
-
var TabsList =
|
3029
|
-
const { orientation, variant } =
|
3030
|
-
return /* @__PURE__ */
|
2985
|
+
var TabsList = React13.forwardRef(({ className, ...props }, ref) => {
|
2986
|
+
const { orientation, variant } = React13.useContext(TabsContext);
|
2987
|
+
return /* @__PURE__ */ React13.createElement(
|
3031
2988
|
TabsPrimitive.List,
|
3032
2989
|
{
|
3033
2990
|
ref,
|
@@ -3040,11 +2997,11 @@ var TabsList = React14.forwardRef(({ className, ...props }, ref) => {
|
|
3040
2997
|
}
|
3041
2998
|
);
|
3042
2999
|
});
|
3043
|
-
var TabsTrigger =
|
3044
|
-
const { orientation, variant } =
|
3045
|
-
const tabTriggerRef =
|
3000
|
+
var TabsTrigger = React13.forwardRef(({ className, chipProps, ...props }, ref) => {
|
3001
|
+
const { orientation, variant } = React13.useContext(TabsContext);
|
3002
|
+
const tabTriggerRef = React13.useRef(null);
|
3046
3003
|
const { width } = useMeasureDirty(tabTriggerRef);
|
3047
|
-
return /* @__PURE__ */
|
3004
|
+
return /* @__PURE__ */ React13.createElement(
|
3048
3005
|
TabsPrimitive.Trigger,
|
3049
3006
|
{
|
3050
3007
|
ref: tabTriggerRef,
|
@@ -3056,8 +3013,8 @@ var TabsTrigger = React14.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
3056
3013
|
...props
|
3057
3014
|
},
|
3058
3015
|
props.children,
|
3059
|
-
chipProps && /* @__PURE__ */
|
3060
|
-
/* @__PURE__ */
|
3016
|
+
chipProps && /* @__PURE__ */ React13.createElement(Chip, { ...chipProps }),
|
3017
|
+
/* @__PURE__ */ React13.createElement(
|
3061
3018
|
FloatBox,
|
3062
3019
|
{
|
3063
3020
|
withArrow: true,
|
@@ -3070,7 +3027,7 @@ var TabsTrigger = React14.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
3070
3027
|
)
|
3071
3028
|
);
|
3072
3029
|
});
|
3073
|
-
var TabsContent =
|
3030
|
+
var TabsContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
3074
3031
|
TabsPrimitive.Content,
|
3075
3032
|
{
|
3076
3033
|
ref,
|
@@ -3087,12 +3044,12 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3087
3044
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
3088
3045
|
|
3089
3046
|
// elements/separator/Separator.tsx
|
3090
|
-
import * as
|
3047
|
+
import * as React14 from "react";
|
3091
3048
|
var Separator = ({
|
3092
3049
|
className,
|
3093
3050
|
orientation = "horizontal",
|
3094
3051
|
...props
|
3095
|
-
}) => /* @__PURE__ */
|
3052
|
+
}) => /* @__PURE__ */ React14.createElement(
|
3096
3053
|
"div",
|
3097
3054
|
{
|
3098
3055
|
className: cn(
|
@@ -3105,9 +3062,9 @@ var Separator = ({
|
|
3105
3062
|
);
|
3106
3063
|
|
3107
3064
|
// elements/progress/Progress.tsx
|
3108
|
-
import * as
|
3065
|
+
import * as React15 from "react";
|
3109
3066
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
3110
|
-
var Progress =
|
3067
|
+
var Progress = React15.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React15.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React15.createElement(Label, { ...props.labelProps }, props.label), /* @__PURE__ */ React15.createElement(
|
3111
3068
|
ProgressPrimitive.Root,
|
3112
3069
|
{
|
3113
3070
|
ref,
|
@@ -3117,7 +3074,7 @@ var Progress = React16.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
3117
3074
|
),
|
3118
3075
|
...props
|
3119
3076
|
},
|
3120
|
-
/* @__PURE__ */
|
3077
|
+
/* @__PURE__ */ React15.createElement(
|
3121
3078
|
ProgressPrimitive.Indicator,
|
3122
3079
|
{
|
3123
3080
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -3128,8 +3085,8 @@ var Progress = React16.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
3128
3085
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
3129
3086
|
|
3130
3087
|
// icons/Emojis.tsx
|
3131
|
-
import
|
3132
|
-
var VeryGoodEmoji = () => /* @__PURE__ */
|
3088
|
+
import React16 from "react";
|
3089
|
+
var VeryGoodEmoji = () => /* @__PURE__ */ React16.createElement(
|
3133
3090
|
"svg",
|
3134
3091
|
{
|
3135
3092
|
fill: "none",
|
@@ -3138,7 +3095,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React17.createElement(
|
|
3138
3095
|
width: "16",
|
3139
3096
|
xmlns: "http://www.w3.org/2000/svg"
|
3140
3097
|
},
|
3141
|
-
/* @__PURE__ */
|
3098
|
+
/* @__PURE__ */ React16.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ React16.createElement(
|
3142
3099
|
"path",
|
3143
3100
|
{
|
3144
3101
|
clipRule: "evenodd",
|
@@ -3146,7 +3103,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React17.createElement(
|
|
3146
3103
|
fill: "currentColor",
|
3147
3104
|
fillRule: "evenodd"
|
3148
3105
|
}
|
3149
|
-
), /* @__PURE__ */
|
3106
|
+
), /* @__PURE__ */ React16.createElement(
|
3150
3107
|
"path",
|
3151
3108
|
{
|
3152
3109
|
clipRule: "evenodd",
|
@@ -3156,7 +3113,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React17.createElement(
|
|
3156
3113
|
}
|
3157
3114
|
))
|
3158
3115
|
);
|
3159
|
-
var GoodEmoji = () => /* @__PURE__ */
|
3116
|
+
var GoodEmoji = () => /* @__PURE__ */ React16.createElement(
|
3160
3117
|
"svg",
|
3161
3118
|
{
|
3162
3119
|
fill: "none",
|
@@ -3165,7 +3122,7 @@ var GoodEmoji = () => /* @__PURE__ */ React17.createElement(
|
|
3165
3122
|
width: "16",
|
3166
3123
|
xmlns: "http://www.w3.org/2000/svg"
|
3167
3124
|
},
|
3168
|
-
/* @__PURE__ */
|
3125
|
+
/* @__PURE__ */ React16.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ React16.createElement(
|
3169
3126
|
"path",
|
3170
3127
|
{
|
3171
3128
|
clipRule: "evenodd",
|
@@ -3175,7 +3132,7 @@ var GoodEmoji = () => /* @__PURE__ */ React17.createElement(
|
|
3175
3132
|
}
|
3176
3133
|
))
|
3177
3134
|
);
|
3178
|
-
var BadEmoji = () => /* @__PURE__ */
|
3135
|
+
var BadEmoji = () => /* @__PURE__ */ React16.createElement(
|
3179
3136
|
"svg",
|
3180
3137
|
{
|
3181
3138
|
fill: "none",
|
@@ -3184,7 +3141,7 @@ var BadEmoji = () => /* @__PURE__ */ React17.createElement(
|
|
3184
3141
|
width: "16",
|
3185
3142
|
xmlns: "http://www.w3.org/2000/svg"
|
3186
3143
|
},
|
3187
|
-
/* @__PURE__ */
|
3144
|
+
/* @__PURE__ */ React16.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ React16.createElement(
|
3188
3145
|
"path",
|
3189
3146
|
{
|
3190
3147
|
clipRule: "evenodd",
|
@@ -3194,7 +3151,7 @@ var BadEmoji = () => /* @__PURE__ */ React17.createElement(
|
|
3194
3151
|
}
|
3195
3152
|
))
|
3196
3153
|
);
|
3197
|
-
var VeryBadEmoji = () => /* @__PURE__ */
|
3154
|
+
var VeryBadEmoji = () => /* @__PURE__ */ React16.createElement(
|
3198
3155
|
"svg",
|
3199
3156
|
{
|
3200
3157
|
fill: "none",
|
@@ -3203,13 +3160,13 @@ var VeryBadEmoji = () => /* @__PURE__ */ React17.createElement(
|
|
3203
3160
|
width: "16",
|
3204
3161
|
xmlns: "http://www.w3.org/2000/svg"
|
3205
3162
|
},
|
3206
|
-
/* @__PURE__ */
|
3163
|
+
/* @__PURE__ */ React16.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ React16.createElement(
|
3207
3164
|
"path",
|
3208
3165
|
{
|
3209
3166
|
d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
|
3210
3167
|
fill: "#0070F3"
|
3211
3168
|
}
|
3212
|
-
), /* @__PURE__ */
|
3169
|
+
), /* @__PURE__ */ React16.createElement(
|
3213
3170
|
"path",
|
3214
3171
|
{
|
3215
3172
|
clipRule: "evenodd",
|
@@ -3221,8 +3178,8 @@ var VeryBadEmoji = () => /* @__PURE__ */ React17.createElement(
|
|
3221
3178
|
);
|
3222
3179
|
|
3223
3180
|
// icons/InputIcons.tsx
|
3224
|
-
import
|
3225
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
3181
|
+
import React17 from "react";
|
3182
|
+
var EyeIcon = (props) => /* @__PURE__ */ React17.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React17.createElement(
|
3226
3183
|
"svg",
|
3227
3184
|
{
|
3228
3185
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3233,10 +3190,10 @@ var EyeIcon = (props) => /* @__PURE__ */ React18.createElement("div", { classNam
|
|
3233
3190
|
strokeLinecap: "round",
|
3234
3191
|
strokeLinejoin: "round"
|
3235
3192
|
},
|
3236
|
-
/* @__PURE__ */
|
3237
|
-
/* @__PURE__ */
|
3193
|
+
/* @__PURE__ */ React17.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
3194
|
+
/* @__PURE__ */ React17.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
3238
3195
|
));
|
3239
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
3196
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ React17.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React17.createElement(
|
3240
3197
|
"svg",
|
3241
3198
|
{
|
3242
3199
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3247,20 +3204,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ React18.createElement("div", { cl
|
|
3247
3204
|
strokeLinecap: "round",
|
3248
3205
|
strokeLinejoin: "round"
|
3249
3206
|
},
|
3250
|
-
/* @__PURE__ */
|
3251
|
-
/* @__PURE__ */
|
3252
|
-
/* @__PURE__ */
|
3253
|
-
/* @__PURE__ */
|
3207
|
+
/* @__PURE__ */ React17.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
3208
|
+
/* @__PURE__ */ React17.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
3209
|
+
/* @__PURE__ */ React17.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
3210
|
+
/* @__PURE__ */ React17.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
3254
3211
|
));
|
3255
3212
|
|
3256
3213
|
// icons/CommonIcons.tsx
|
3257
|
-
import
|
3214
|
+
import React18 from "react";
|
3258
3215
|
var CheckMark = ({ size = "default", className }) => {
|
3259
3216
|
let sizeStyles = {
|
3260
3217
|
default: "hawa-h-5 hawa-w-5",
|
3261
3218
|
sm: "hawa-h-3 hawa-w-3"
|
3262
3219
|
};
|
3263
|
-
return /* @__PURE__ */
|
3220
|
+
return /* @__PURE__ */ React18.createElement(
|
3264
3221
|
"svg",
|
3265
3222
|
{
|
3266
3223
|
className: cn(sizeStyles[size], className),
|
@@ -3268,7 +3225,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
3268
3225
|
fill: "currentColor",
|
3269
3226
|
viewBox: "0 0 20 20"
|
3270
3227
|
},
|
3271
|
-
/* @__PURE__ */
|
3228
|
+
/* @__PURE__ */ React18.createElement(
|
3272
3229
|
"path",
|
3273
3230
|
{
|
3274
3231
|
fillRule: "evenodd",
|
@@ -3283,7 +3240,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
3283
3240
|
default: "hawa-h-5 hawa-w-5",
|
3284
3241
|
sm: "hawa-h-3 hawa-w-3"
|
3285
3242
|
};
|
3286
|
-
return /* @__PURE__ */
|
3243
|
+
return /* @__PURE__ */ React18.createElement(
|
3287
3244
|
"svg",
|
3288
3245
|
{
|
3289
3246
|
className: cn(sizeStyles[size], className),
|
@@ -3291,7 +3248,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
3291
3248
|
fill: "currentColor",
|
3292
3249
|
viewBox: "0 0 20 20"
|
3293
3250
|
},
|
3294
|
-
/* @__PURE__ */
|
3251
|
+
/* @__PURE__ */ React18.createElement(
|
3295
3252
|
"path",
|
3296
3253
|
{
|
3297
3254
|
fillRule: "evenodd",
|
@@ -3304,7 +3261,6 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
3304
3261
|
|
3305
3262
|
export {
|
3306
3263
|
Alert,
|
3307
|
-
Label,
|
3308
3264
|
Input,
|
3309
3265
|
Select,
|
3310
3266
|
PhoneInput,
|