@sikka/hawa 0.34.8-next → 0.35.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/{Radio-BpXOu4Hr.d.mts → Radio-BCD7k628.d.mts} +3 -0
- package/dist/{Radio-CREjhlGz.d.ts → Radio-y9uhxitu.d.ts} +3 -0
- package/dist/alert/index.js +28 -17
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +61 -50
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js +81 -70
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +138 -127
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js +28 -17
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +55 -44
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +50 -39
- package/dist/blocks/auth/index.mjs +5 -5
- package/dist/blocks/feedback/index.d.mts +3 -0
- package/dist/blocks/feedback/index.d.ts +3 -0
- package/dist/blocks/feedback/index.js +174 -120
- package/dist/blocks/feedback/index.mjs +29 -93
- package/dist/blocks/index.d.mts +2 -1
- package/dist/blocks/index.d.ts +2 -1
- package/dist/blocks/index.js +253 -201
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +71 -60
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +154 -80
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.d.mts +13 -0
- package/dist/button/index.d.ts +13 -0
- package/dist/button/index.js +28 -17
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +51 -40
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +34 -23
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +57 -46
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/{chunk-GEB3LM5A.mjs → chunk-A376BKNX.mjs} +2 -2
- package/dist/{chunk-OS2UOK5C.mjs → chunk-DABX3SU6.mjs} +64 -51
- package/dist/{chunk-QPZ4ZR2B.mjs → chunk-DFWFQWWT.mjs} +155 -116
- package/dist/{chunk-UBNCETCU.mjs → chunk-GVZWOUGN.mjs} +1 -1
- package/dist/chunk-HHC34DXN.mjs +320 -0
- package/dist/{chunk-QVF3VLB7.mjs → chunk-IDKXEJET.mjs} +157 -144
- package/dist/{chunk-AW5FW5TY.mjs → chunk-L56XQRQI.mjs} +1 -1
- package/dist/{chunk-ORNLFAC6.mjs → chunk-XFRJ62W3.mjs} +1 -1
- package/dist/{chunk-RTGD7N7I.mjs → chunk-XJMDUR5A.mjs} +1 -1
- package/dist/{chunk-J7BT4XJR.mjs → chunk-YOT2GVXO.mjs} +1 -1
- package/dist/codeBlock/index.js +28 -17
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +70 -59
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dataTable/index.d.mts +1 -2
- package/dist/dataTable/index.d.ts +1 -2
- package/dist/dataTable/index.js +144 -105
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +178 -139
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +23 -5
- package/dist/datePicker/index.d.ts +23 -5
- package/dist/datePicker/index.js +46 -18
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +46 -18
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +40 -29
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +135 -124
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +7 -3
- package/dist/elements/index.d.ts +7 -3
- package/dist/elements/index.js +475 -395
- package/dist/elements/index.mjs +32 -4
- package/dist/fileDropzone/index.js +28 -17
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +89 -78
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.css +3 -0
- package/dist/index.d.mts +16 -9
- package/dist/index.d.ts +16 -9
- package/dist/index.js +515 -435
- package/dist/index.mjs +1204 -1124
- package/dist/input/index.js +1 -1
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +1 -1
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +85 -24
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +107 -46
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/layout/index.js +121 -110
- package/dist/layout/index.mjs +2 -2
- package/dist/passwordInput/index.js +1 -1
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/radio/index.d.mts +3 -0
- package/dist/radio/index.d.ts +3 -0
- package/dist/radio/index.js +85 -24
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +100 -39
- package/dist/radio/index.mjs.map +1 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs.map +1 -1
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/sortButton/index.js +28 -17
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +58 -47
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.d.mts +12 -0
- package/dist/splitButton/index.d.ts +12 -0
- package/dist/splitButton/index.js +70 -59
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +93 -82
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs.map +1 -1
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs.map +1 -1
- package/package.json +6 -6
- package/dist/chunk-IQEBXGLM.mjs +0 -215
package/dist/blocks/index.mjs
CHANGED
@@ -25,7 +25,7 @@ import {
|
|
25
25
|
UncheckMark,
|
26
26
|
VeryBadEmoji,
|
27
27
|
VeryGoodEmoji
|
28
|
-
} from "../chunk-
|
28
|
+
} from "../chunk-DFWFQWWT.mjs";
|
29
29
|
import "../chunk-OPYDG34F.mjs";
|
30
30
|
import {
|
31
31
|
Button,
|
@@ -43,7 +43,7 @@ import {
|
|
43
43
|
Skeleton,
|
44
44
|
Tooltip,
|
45
45
|
cn
|
46
|
-
} from "../chunk-
|
46
|
+
} from "../chunk-IDKXEJET.mjs";
|
47
47
|
import "../chunk-JU6Q4Q3T.mjs";
|
48
48
|
|
49
49
|
// blocks/auth/AuthButtons.tsx
|
@@ -1208,7 +1208,7 @@ var CodeConfirmation = (props) => {
|
|
1208
1208
|
},
|
1209
1209
|
((_i = props.texts) == null ? void 0 : _i.resendCode) || "Click to resend"
|
1210
1210
|
)),
|
1211
|
-
/* @__PURE__ */ React8.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ React8.createElement(Button, { variant: "
|
1211
|
+
/* @__PURE__ */ React8.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ React8.createElement(Button, { variant: "outline" }, ((_j = props.texts) == null ? void 0 : _j.cancel) || "Cancel"), /* @__PURE__ */ React8.createElement(Button, { isLoading: props.confirmLoading }, ((_k = props.texts) == null ? void 0 : _k.confirm) || "Confirm"))
|
1212
1212
|
)));
|
1213
1213
|
};
|
1214
1214
|
|
@@ -46,7 +46,7 @@ module.exports = __toCommonJS(misc_exports);
|
|
46
46
|
var import_react18 = __toESM(require("react"));
|
47
47
|
|
48
48
|
// elements/scrollArea/ScrollArea.tsx
|
49
|
-
var
|
49
|
+
var React2 = __toESM(require("react"));
|
50
50
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
51
51
|
|
52
52
|
// util/index.ts
|
@@ -57,19 +57,19 @@ function cn(...inputs) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
// elements/scrollArea/ScrollArea.tsx
|
60
|
-
var ScrollArea =
|
60
|
+
var ScrollArea = React2.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
61
61
|
ScrollAreaPrimitive.Root,
|
62
62
|
{
|
63
63
|
ref,
|
64
64
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
65
65
|
...props
|
66
66
|
},
|
67
|
-
/* @__PURE__ */
|
68
|
-
/* @__PURE__ */
|
69
|
-
/* @__PURE__ */
|
67
|
+
/* @__PURE__ */ React2.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
68
|
+
/* @__PURE__ */ React2.createElement(ScrollBar, { orientation }),
|
69
|
+
/* @__PURE__ */ React2.createElement(ScrollAreaPrimitive.Corner, null)
|
70
70
|
));
|
71
71
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
72
|
-
var ScrollBar =
|
72
|
+
var ScrollBar = React2.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
73
73
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
74
74
|
{
|
75
75
|
ref,
|
@@ -82,7 +82,7 @@ var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...prop
|
|
82
82
|
),
|
83
83
|
...props
|
84
84
|
},
|
85
|
-
/* @__PURE__ */
|
85
|
+
/* @__PURE__ */ React2.createElement(
|
86
86
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
87
87
|
{
|
88
88
|
className: cn(
|
@@ -95,7 +95,7 @@ var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...prop
|
|
95
95
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
96
96
|
|
97
97
|
// elements/tabs/Tabs.tsx
|
98
|
-
var
|
98
|
+
var React14 = __toESM(require("react"));
|
99
99
|
|
100
100
|
// hooks/useIsomorphicEffect.ts
|
101
101
|
var import_react = require("react");
|
@@ -107,7 +107,7 @@ var import_react2 = require("react");
|
|
107
107
|
var import_react3 = require("react");
|
108
108
|
|
109
109
|
// hooks/useToast.ts
|
110
|
-
var
|
110
|
+
var React5 = __toESM(require("react"));
|
111
111
|
|
112
112
|
// hooks/useCarousel.ts
|
113
113
|
var import_react4 = require("react");
|
@@ -267,7 +267,7 @@ var Chip = import_react17.default.forwardRef(
|
|
267
267
|
);
|
268
268
|
|
269
269
|
// elements/floatBox/FloatBox.tsx
|
270
|
-
var
|
270
|
+
var React13 = __toESM(require("react"));
|
271
271
|
var FloatBox = ({
|
272
272
|
className,
|
273
273
|
open,
|
@@ -305,7 +305,7 @@ var FloatBox = ({
|
|
305
305
|
right: "hawa-arrow-default-left",
|
306
306
|
left: "hawa-arrow-default-right"
|
307
307
|
};
|
308
|
-
return /* @__PURE__ */
|
308
|
+
return /* @__PURE__ */ React13.createElement(
|
309
309
|
"div",
|
310
310
|
{
|
311
311
|
className: cn(
|
@@ -316,8 +316,8 @@ var FloatBox = ({
|
|
316
316
|
"data-side": side,
|
317
317
|
"data-floatbox-state": open ? "open" : "closed"
|
318
318
|
},
|
319
|
-
withArrow && /* @__PURE__ */
|
320
|
-
/* @__PURE__ */
|
319
|
+
withArrow && /* @__PURE__ */ React13.createElement("div", { className: cn(arrowDirection[side]) }),
|
320
|
+
/* @__PURE__ */ React13.createElement("span", null, props.children)
|
321
321
|
);
|
322
322
|
};
|
323
323
|
|
@@ -380,8 +380,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
380
380
|
],
|
381
381
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
382
382
|
});
|
383
|
-
var TabsContext =
|
384
|
-
var Tabs =
|
383
|
+
var TabsContext = React14.createContext({ orientation: "horizontal", variant: "default" });
|
384
|
+
var Tabs = React14.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
385
385
|
TabsPrimitive.Root,
|
386
386
|
{
|
387
387
|
ref,
|
@@ -392,11 +392,11 @@ var Tabs = React13.forwardRef(({ className, orientation, variant = "default", ..
|
|
392
392
|
),
|
393
393
|
...props
|
394
394
|
},
|
395
|
-
/* @__PURE__ */
|
395
|
+
/* @__PURE__ */ React14.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
396
396
|
));
|
397
|
-
var TabsList =
|
398
|
-
const { orientation, variant } =
|
399
|
-
return /* @__PURE__ */
|
397
|
+
var TabsList = React14.forwardRef(({ className, ...props }, ref) => {
|
398
|
+
const { orientation, variant } = React14.useContext(TabsContext);
|
399
|
+
return /* @__PURE__ */ React14.createElement(
|
400
400
|
TabsPrimitive.List,
|
401
401
|
{
|
402
402
|
ref,
|
@@ -409,11 +409,11 @@ var TabsList = React13.forwardRef(({ className, ...props }, ref) => {
|
|
409
409
|
}
|
410
410
|
);
|
411
411
|
});
|
412
|
-
var TabsTrigger =
|
413
|
-
const { orientation, variant } =
|
414
|
-
const tabTriggerRef =
|
412
|
+
var TabsTrigger = React14.forwardRef(({ className, chipProps, ...props }, ref) => {
|
413
|
+
const { orientation, variant } = React14.useContext(TabsContext);
|
414
|
+
const tabTriggerRef = React14.useRef(null);
|
415
415
|
const { width } = useMeasureDirty(tabTriggerRef);
|
416
|
-
return /* @__PURE__ */
|
416
|
+
return /* @__PURE__ */ React14.createElement(
|
417
417
|
TabsPrimitive.Trigger,
|
418
418
|
{
|
419
419
|
ref: tabTriggerRef,
|
@@ -425,8 +425,8 @@ var TabsTrigger = React13.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
425
425
|
...props
|
426
426
|
},
|
427
427
|
props.children,
|
428
|
-
chipProps && /* @__PURE__ */
|
429
|
-
/* @__PURE__ */
|
428
|
+
chipProps && /* @__PURE__ */ React14.createElement(Chip, { ...chipProps }),
|
429
|
+
/* @__PURE__ */ React14.createElement(
|
430
430
|
FloatBox,
|
431
431
|
{
|
432
432
|
withArrow: true,
|
@@ -439,7 +439,7 @@ var TabsTrigger = React13.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
439
439
|
)
|
440
440
|
);
|
441
441
|
});
|
442
|
-
var TabsContent =
|
442
|
+
var TabsContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
443
443
|
TabsPrimitive.Content,
|
444
444
|
{
|
445
445
|
ref,
|
@@ -483,11 +483,23 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
483
483
|
var import_react21 = __toESM(require("react"));
|
484
484
|
|
485
485
|
// elements/button/Button.tsx
|
486
|
-
var
|
486
|
+
var React19 = __toESM(require("react"));
|
487
487
|
var import_class_variance_authority = require("class-variance-authority");
|
488
488
|
|
489
|
+
// elements/helperText/HelperText.tsx
|
490
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ React.createElement(
|
491
|
+
"p",
|
492
|
+
{
|
493
|
+
className: cn(
|
494
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
495
|
+
helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
496
|
+
)
|
497
|
+
},
|
498
|
+
helperText
|
499
|
+
);
|
500
|
+
|
489
501
|
// elements/label/Label.tsx
|
490
|
-
var
|
502
|
+
var React17 = __toESM(require("react"));
|
491
503
|
|
492
504
|
// elements/tooltip/Tooltip.tsx
|
493
505
|
var import_react19 = __toESM(require("react"));
|
@@ -561,7 +573,7 @@ var Tooltip = ({
|
|
561
573
|
};
|
562
574
|
|
563
575
|
// elements/label/Label.tsx
|
564
|
-
var Label =
|
576
|
+
var Label = React17.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React17.createElement(
|
565
577
|
"label",
|
566
578
|
{
|
567
579
|
ref,
|
@@ -572,8 +584,8 @@ var Label = React16.forwardRef(({ className, hint, hintSide, required, children,
|
|
572
584
|
...props
|
573
585
|
},
|
574
586
|
children,
|
575
|
-
required && /* @__PURE__ */
|
576
|
-
), hint && /* @__PURE__ */
|
587
|
+
required && /* @__PURE__ */ React17.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
588
|
+
), hint && /* @__PURE__ */ React17.createElement(
|
577
589
|
Tooltip,
|
578
590
|
{
|
579
591
|
content: hint,
|
@@ -583,7 +595,7 @@ var Label = React16.forwardRef(({ className, hint, hintSide, required, children,
|
|
583
595
|
onClick: (event) => event.preventDefault()
|
584
596
|
}
|
585
597
|
},
|
586
|
-
/* @__PURE__ */
|
598
|
+
/* @__PURE__ */ React17.createElement("div", null, /* @__PURE__ */ React17.createElement(
|
587
599
|
"svg",
|
588
600
|
{
|
589
601
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -595,9 +607,9 @@ var Label = React16.forwardRef(({ className, hint, hintSide, required, children,
|
|
595
607
|
strokeLinecap: "round",
|
596
608
|
strokeLinejoin: "round"
|
597
609
|
},
|
598
|
-
/* @__PURE__ */
|
599
|
-
/* @__PURE__ */
|
600
|
-
/* @__PURE__ */
|
610
|
+
/* @__PURE__ */ React17.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
611
|
+
/* @__PURE__ */ React17.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
612
|
+
/* @__PURE__ */ React17.createElement("path", { d: "M12 17h.01" })
|
601
613
|
))
|
602
614
|
)));
|
603
615
|
Label.displayName = "Label";
|
@@ -848,13 +860,10 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
848
860
|
smallIcon: "hawa-h-7 hawa-w-7"
|
849
861
|
}
|
850
862
|
},
|
851
|
-
defaultVariants: {
|
852
|
-
variant: "default",
|
853
|
-
size: "default"
|
854
|
-
}
|
863
|
+
defaultVariants: { variant: "default", size: "default" }
|
855
864
|
}
|
856
865
|
);
|
857
|
-
var Button =
|
866
|
+
var Button = React19.forwardRef(
|
858
867
|
({
|
859
868
|
className,
|
860
869
|
label,
|
@@ -864,11 +873,13 @@ var Button = React18.forwardRef(
|
|
864
873
|
centered = true,
|
865
874
|
isLoading,
|
866
875
|
children,
|
876
|
+
labelProps,
|
877
|
+
showHelperText = false,
|
867
878
|
...props
|
868
879
|
}, ref) => {
|
869
880
|
const Comp = "button";
|
870
881
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
871
|
-
return /* @__PURE__ */
|
882
|
+
return /* @__PURE__ */ React19.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React19.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React19.createElement(
|
872
883
|
Comp,
|
873
884
|
{
|
874
885
|
className: cn(
|
@@ -878,7 +889,7 @@ var Button = React18.forwardRef(
|
|
878
889
|
ref,
|
879
890
|
...props
|
880
891
|
},
|
881
|
-
isLoading ? /* @__PURE__ */
|
892
|
+
isLoading ? /* @__PURE__ */ React19.createElement(
|
882
893
|
Loading,
|
883
894
|
{
|
884
895
|
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
@@ -887,14 +898,14 @@ var Button = React18.forwardRef(
|
|
887
898
|
size: size === "sm" || size === "xs" ? "xs" : "button"
|
888
899
|
}
|
889
900
|
) : children
|
890
|
-
));
|
901
|
+
), showHelperText && /* @__PURE__ */ React19.createElement(HelperText, { helperText: props.helperText }));
|
891
902
|
}
|
892
903
|
);
|
893
904
|
Button.displayName = "Button";
|
894
905
|
|
895
906
|
// elements/card/Card.tsx
|
896
|
-
var
|
897
|
-
var Card =
|
907
|
+
var React20 = __toESM(require("react"));
|
908
|
+
var Card = React20.forwardRef(
|
898
909
|
({
|
899
910
|
className,
|
900
911
|
variant = "default",
|
@@ -913,7 +924,7 @@ var Card = React19.forwardRef(
|
|
913
924
|
clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
|
914
925
|
)
|
915
926
|
};
|
916
|
-
return /* @__PURE__ */
|
927
|
+
return /* @__PURE__ */ React20.createElement(
|
917
928
|
"div",
|
918
929
|
{
|
919
930
|
ref,
|
@@ -923,7 +934,7 @@ var Card = React19.forwardRef(
|
|
923
934
|
);
|
924
935
|
}
|
925
936
|
);
|
926
|
-
var CardHeader =
|
937
|
+
var CardHeader = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
|
927
938
|
"div",
|
928
939
|
{
|
929
940
|
ref,
|
@@ -934,7 +945,7 @@ var CardHeader = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
934
945
|
...props
|
935
946
|
}
|
936
947
|
));
|
937
|
-
var CardTitle =
|
948
|
+
var CardTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
|
938
949
|
"h3",
|
939
950
|
{
|
940
951
|
ref,
|
@@ -942,7 +953,7 @@ var CardTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
942
953
|
...props
|
943
954
|
}
|
944
955
|
));
|
945
|
-
var CardDescription =
|
956
|
+
var CardDescription = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
|
946
957
|
"p",
|
947
958
|
{
|
948
959
|
ref,
|
@@ -950,8 +961,8 @@ var CardDescription = React19.forwardRef(({ className, ...props }, ref) => /* @_
|
|
950
961
|
...props
|
951
962
|
}
|
952
963
|
));
|
953
|
-
var CardContent =
|
954
|
-
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */
|
964
|
+
var CardContent = React20.forwardRef(
|
965
|
+
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
|
955
966
|
"div",
|
956
967
|
{
|
957
968
|
ref,
|
@@ -964,7 +975,7 @@ var CardContent = React19.forwardRef(
|
|
964
975
|
}
|
965
976
|
)
|
966
977
|
);
|
967
|
-
var CardFooter =
|
978
|
+
var CardFooter = React20.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React20.createElement(
|
968
979
|
"div",
|
969
980
|
{
|
970
981
|
ref,
|
@@ -1125,7 +1136,7 @@ var Input = (0, import_react24.forwardRef)(
|
|
1125
1136
|
)
|
1126
1137
|
},
|
1127
1138
|
props.outsidePrefix
|
1128
|
-
), props.isLoading ? /* @__PURE__ */ import_react24.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react24.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react24.default.createElement(
|
1139
|
+
), props.isLoading ? /* @__PURE__ */ import_react24.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react24.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react24.default.createElement(
|
1129
1140
|
"div",
|
1130
1141
|
{
|
1131
1142
|
className: cn(
|
@@ -1486,8 +1497,8 @@ var Select = ({
|
|
1486
1497
|
};
|
1487
1498
|
|
1488
1499
|
// elements/textarea/Textarea.tsx
|
1489
|
-
var
|
1490
|
-
var Textarea =
|
1500
|
+
var React30 = __toESM(require("react"));
|
1501
|
+
var Textarea = React30.forwardRef(
|
1491
1502
|
({
|
1492
1503
|
className,
|
1493
1504
|
classNames,
|
@@ -1499,7 +1510,7 @@ var Textarea = React29.forwardRef(
|
|
1499
1510
|
isLoading,
|
1500
1511
|
...props
|
1501
1512
|
}, ref) => {
|
1502
|
-
return /* @__PURE__ */
|
1513
|
+
return /* @__PURE__ */ React30.createElement(
|
1503
1514
|
"div",
|
1504
1515
|
{
|
1505
1516
|
className: cn(
|
@@ -1508,7 +1519,7 @@ var Textarea = React29.forwardRef(
|
|
1508
1519
|
className
|
1509
1520
|
)
|
1510
1521
|
},
|
1511
|
-
/* @__PURE__ */
|
1522
|
+
/* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React30.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React30.createElement(
|
1512
1523
|
"div",
|
1513
1524
|
{
|
1514
1525
|
className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
|
@@ -1517,7 +1528,7 @@ var Textarea = React29.forwardRef(
|
|
1517
1528
|
"/",
|
1518
1529
|
textareaProps == null ? void 0 : textareaProps.maxLength
|
1519
1530
|
)),
|
1520
|
-
isLoading ? /* @__PURE__ */
|
1531
|
+
isLoading ? /* @__PURE__ */ React30.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React30.createElement(
|
1521
1532
|
"textarea",
|
1522
1533
|
{
|
1523
1534
|
...textareaProps,
|
@@ -1528,7 +1539,7 @@ var Textarea = React29.forwardRef(
|
|
1528
1539
|
ref
|
1529
1540
|
}
|
1530
1541
|
),
|
1531
|
-
/* @__PURE__ */
|
1542
|
+
/* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React30.createElement(
|
1532
1543
|
"p",
|
1533
1544
|
{
|
1534
1545
|
className: cn(
|
@@ -1537,7 +1548,7 @@ var Textarea = React29.forwardRef(
|
|
1537
1548
|
)
|
1538
1549
|
},
|
1539
1550
|
props.helperText
|
1540
|
-
), showCount && countPosition === "bottom" && /* @__PURE__ */
|
1551
|
+
), showCount && countPosition === "bottom" && /* @__PURE__ */ React30.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))
|
1541
1552
|
);
|
1542
1553
|
}
|
1543
1554
|
);
|
@@ -1,17 +1,17 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
3
|
Input
|
4
|
-
} from "../../chunk-
|
4
|
+
} from "../../chunk-A376BKNX.mjs";
|
5
5
|
import {
|
6
6
|
Chip,
|
7
7
|
ScrollArea
|
8
|
-
} from "../../chunk-
|
8
|
+
} from "../../chunk-YOT2GVXO.mjs";
|
9
9
|
import {
|
10
10
|
Textarea
|
11
|
-
} from "../../chunk-
|
11
|
+
} from "../../chunk-L56XQRQI.mjs";
|
12
12
|
import {
|
13
13
|
Select
|
14
|
-
} from "../../chunk-
|
14
|
+
} from "../../chunk-GVZWOUGN.mjs";
|
15
15
|
import {
|
16
16
|
Button,
|
17
17
|
Card,
|
@@ -21,7 +21,7 @@ import {
|
|
21
21
|
CardHeader,
|
22
22
|
CardTitle,
|
23
23
|
cn
|
24
|
-
} from "../../chunk-
|
24
|
+
} from "../../chunk-DABX3SU6.mjs";
|
25
25
|
|
26
26
|
// blocks/misc/LegalTexts.tsx
|
27
27
|
import React12 from "react";
|