@sikka/hawa 0.30.25-next → 0.30.26-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/blocks/index.js +100 -72
- package/dist/blocks/index.mjs +1 -1
- package/dist/blocks/misc/index.js +88 -60
- package/dist/blocks/misc/index.mjs +105 -75
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-7LAUVLVZ.mjs → chunk-QDRFTC7W.mjs} +96 -62
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
- package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
- package/dist/commonTypes-MeUyaBib.d.mts +5 -0
- package/dist/commonTypes-MeUyaBib.d.ts +5 -0
- package/dist/elements/index.d.mts +5 -1
- package/dist/elements/index.d.ts +5 -1
- package/dist/elements/index.js +122 -86
- package/dist/elements/index.mjs +5 -1
- package/dist/floatBox/index.d.mts +12 -0
- package/dist/floatBox/index.d.ts +12 -0
- package/dist/floatBox/index.js +85 -0
- package/dist/floatBox/index.js.map +1 -0
- package/dist/floatBox/index.mjs +49 -0
- package/dist/floatBox/index.mjs.map +1 -0
- package/dist/index.css +101 -56
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +162 -126
- package/dist/index.mjs +683 -649
- package/dist/input/index.d.mts +2 -1
- package/dist/input/index.d.ts +2 -1
- package/dist/label/index.d.mts +1 -2
- package/dist/label/index.d.ts +1 -2
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.d.mts +2 -1
- package/dist/phoneInput/index.d.ts +2 -1
- package/dist/popover/index.d.mts +3 -1
- package/dist/popover/index.d.ts +3 -1
- package/dist/popover/index.js +6 -0
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +4 -0
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.d.mts +8 -1
- package/dist/progress/index.d.ts +8 -1
- package/dist/radio/index.d.mts +9 -1
- package/dist/radio/index.d.ts +9 -1
- 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 +1 -2
- package/dist/signature/index.d.ts +1 -2
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/switch/index.d.mts +2 -1
- package/dist/switch/index.d.ts +2 -1
- package/dist/tabs/index.d.mts +3 -1
- package/dist/tabs/index.d.ts +3 -1
- package/dist/tabs/index.js +60 -32
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +60 -32
- package/dist/tabs/index.mjs.map +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/dist/tooltip/index.d.mts +3 -4
- package/dist/tooltip/index.d.ts +3 -4
- package/package.json +8 -8
- package/dist/Label-9FHRF7Ex.d.mts +0 -14
- package/dist/Label-9FHRF7Ex.d.ts +0 -14
- package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
- package/dist/commonTypes-PBumfOBg.d.mts +0 -3
- package/dist/commonTypes-PBumfOBg.d.ts +0 -3
- /package/dist/{chunk-CVOMHXJK.mjs → chunk-BXGDHNAY.mjs} +0 -0
@@ -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 React4 = __toESM(require("react"));
|
99
99
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
100
100
|
var import_tailwind_variants = require("tailwind-variants");
|
101
101
|
|
@@ -180,6 +180,41 @@ var Chip = import_react.default.forwardRef(
|
|
180
180
|
}
|
181
181
|
);
|
182
182
|
|
183
|
+
// elements/floatBox/FloatBox.tsx
|
184
|
+
var React3 = __toESM(require("react"));
|
185
|
+
var FloatBox = ({
|
186
|
+
className,
|
187
|
+
open,
|
188
|
+
side = "bottom",
|
189
|
+
sideOffset = 40,
|
190
|
+
...props
|
191
|
+
}) => {
|
192
|
+
let widthStyles = {
|
193
|
+
trigger: "var(--radix-popover-trigger-width)",
|
194
|
+
default: "auto"
|
195
|
+
};
|
196
|
+
let sideOffsetStyles = {
|
197
|
+
bottom: { top: sideOffset },
|
198
|
+
top: { bottom: sideOffset },
|
199
|
+
right: { left: sideOffset },
|
200
|
+
left: { right: sideOffset }
|
201
|
+
};
|
202
|
+
return /* @__PURE__ */ React3.createElement(
|
203
|
+
"div",
|
204
|
+
{
|
205
|
+
className: cn(
|
206
|
+
"data-[floatbox-state=closed]:hawa-invisible data-[floatbox-state=open]:hawa-visible hawa-absolute dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[floatbox-state=open]:hawa-animate-in data-[floatbox-state=closed]:hawa-animate-out data-[floatbox-state=closed]:hawa-fade-out-0 data-[floatbox-state=open]:hawa-fade-in-0 data-[floatbox-state=closed]:hawa-zoom-out-95 data-[floatbox-state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
207
|
+
sideOffsetStyles[side],
|
208
|
+
className
|
209
|
+
),
|
210
|
+
style: { ...sideOffsetStyles[side] },
|
211
|
+
"data-side": side,
|
212
|
+
"data-floatbox-state": open ? "open" : "closed"
|
213
|
+
},
|
214
|
+
props.children
|
215
|
+
);
|
216
|
+
};
|
217
|
+
|
183
218
|
// elements/tabs/Tabs.tsx
|
184
219
|
var tabsListVariant = (0, import_tailwind_variants.tv)({
|
185
220
|
base: "",
|
@@ -189,10 +224,7 @@ var tabsListVariant = (0, import_tailwind_variants.tv)({
|
|
189
224
|
underlined: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
|
190
225
|
underlined_tabs: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-text-muted-foreground"
|
191
226
|
},
|
192
|
-
orientation: {
|
193
|
-
horizontal: "",
|
194
|
-
vertical: ""
|
195
|
-
}
|
227
|
+
orientation: { horizontal: "", vertical: "" }
|
196
228
|
},
|
197
229
|
compoundVariants: [
|
198
230
|
{
|
@@ -206,10 +238,7 @@ var tabsListVariant = (0, import_tailwind_variants.tv)({
|
|
206
238
|
class: "hawa-border-b-2 hawa-border-b-primary"
|
207
239
|
}
|
208
240
|
],
|
209
|
-
defaultVariants: {
|
210
|
-
variant: "default",
|
211
|
-
orientation: "horizontal"
|
212
|
-
}
|
241
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
213
242
|
});
|
214
243
|
var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
215
244
|
base: "",
|
@@ -219,10 +248,7 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
219
248
|
underlined: "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-rounded-none hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
|
220
249
|
underlined_tabs: "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50 hawa-bg-primary/10 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground dark:hawa-border-primary/10"
|
221
250
|
},
|
222
|
-
orientation: {
|
223
|
-
horizontal: "",
|
224
|
-
vertical: ""
|
225
|
-
}
|
251
|
+
orientation: { horizontal: "", vertical: "" }
|
226
252
|
},
|
227
253
|
compoundVariants: [
|
228
254
|
{
|
@@ -246,13 +272,10 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
246
272
|
class: "hawa-rounded-e-none"
|
247
273
|
}
|
248
274
|
],
|
249
|
-
defaultVariants: {
|
250
|
-
variant: "default",
|
251
|
-
orientation: "horizontal"
|
252
|
-
}
|
275
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
253
276
|
});
|
254
|
-
var TabsContext =
|
255
|
-
var Tabs =
|
277
|
+
var TabsContext = React4.createContext({ orientation: "horizontal", variant: "default" });
|
278
|
+
var Tabs = React4.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React4.createElement(
|
256
279
|
TabsPrimitive.Root,
|
257
280
|
{
|
258
281
|
ref,
|
@@ -263,12 +286,11 @@ var Tabs = React3.forwardRef(({ className, orientation, variant = "default", ...
|
|
263
286
|
),
|
264
287
|
...props
|
265
288
|
},
|
266
|
-
/* @__PURE__ */
|
289
|
+
/* @__PURE__ */ React4.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
267
290
|
));
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
return /* @__PURE__ */ React3.createElement(
|
291
|
+
var TabsList = React4.forwardRef(({ className, ...props }, ref) => {
|
292
|
+
const { orientation, variant } = React4.useContext(TabsContext);
|
293
|
+
return /* @__PURE__ */ React4.createElement(
|
272
294
|
TabsPrimitive.List,
|
273
295
|
{
|
274
296
|
ref,
|
@@ -281,22 +303,25 @@ var TabsList = React3.forwardRef(({ className, ...props }, ref) => {
|
|
281
303
|
}
|
282
304
|
);
|
283
305
|
});
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
return /* @__PURE__ */ React3.createElement(
|
306
|
+
var TabsTrigger = React4.forwardRef(({ className, chipProps, ...props }, ref) => {
|
307
|
+
const { orientation, variant } = React4.useContext(TabsContext);
|
308
|
+
return /* @__PURE__ */ React4.createElement(
|
288
309
|
TabsPrimitive.Trigger,
|
289
310
|
{
|
290
311
|
ref,
|
291
|
-
className: cn(
|
312
|
+
className: cn(
|
313
|
+
tabsTriggerVariant({ variant, orientation }),
|
314
|
+
"hawa-relative",
|
315
|
+
className
|
316
|
+
),
|
292
317
|
...props
|
293
318
|
},
|
294
319
|
props.children,
|
295
|
-
chipProps && /* @__PURE__ */
|
320
|
+
chipProps && /* @__PURE__ */ React4.createElement(Chip, { ...chipProps }),
|
321
|
+
/* @__PURE__ */ React4.createElement(FloatBox, { open: props.showPopover }, props.popoverContent)
|
296
322
|
);
|
297
323
|
});
|
298
|
-
|
299
|
-
var TabsContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
324
|
+
var TabsContent = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React4.createElement(
|
300
325
|
TabsPrimitive.Content,
|
301
326
|
{
|
302
327
|
ref,
|
@@ -307,6 +332,9 @@ var TabsContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
307
332
|
...props
|
308
333
|
}
|
309
334
|
));
|
335
|
+
Tabs.displayName = TabsPrimitive.Root.displayName;
|
336
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
337
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
310
338
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
311
339
|
|
312
340
|
// blocks/misc/LegalTexts.tsx
|
@@ -337,7 +365,7 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
337
365
|
var import_react4 = __toESM(require("react"));
|
338
366
|
|
339
367
|
// elements/button/Button.tsx
|
340
|
-
var
|
368
|
+
var React7 = __toESM(require("react"));
|
341
369
|
var import_class_variance_authority = require("class-variance-authority");
|
342
370
|
|
343
371
|
// elements/loading/Loading.tsx
|
@@ -592,7 +620,7 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
592
620
|
}
|
593
621
|
}
|
594
622
|
);
|
595
|
-
var Button =
|
623
|
+
var Button = React7.forwardRef(
|
596
624
|
({
|
597
625
|
className,
|
598
626
|
variant,
|
@@ -605,7 +633,7 @@ var Button = React6.forwardRef(
|
|
605
633
|
}, ref) => {
|
606
634
|
const Comp = "button";
|
607
635
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
608
|
-
return /* @__PURE__ */
|
636
|
+
return /* @__PURE__ */ React7.createElement(
|
609
637
|
Comp,
|
610
638
|
{
|
611
639
|
className: cn(
|
@@ -616,7 +644,7 @@ var Button = React6.forwardRef(
|
|
616
644
|
ref,
|
617
645
|
...props
|
618
646
|
},
|
619
|
-
isLoading ? /* @__PURE__ */
|
647
|
+
isLoading ? /* @__PURE__ */ React7.createElement(
|
620
648
|
Loading,
|
621
649
|
{
|
622
650
|
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
@@ -631,8 +659,8 @@ var Button = React6.forwardRef(
|
|
631
659
|
Button.displayName = "Button";
|
632
660
|
|
633
661
|
// elements/card/Card.tsx
|
634
|
-
var
|
635
|
-
var Card =
|
662
|
+
var React8 = __toESM(require("react"));
|
663
|
+
var Card = React8.forwardRef(
|
636
664
|
({ className, variant = "default", clickable = false, ...props }, ref) => {
|
637
665
|
let variantStyles = {
|
638
666
|
default: cn(
|
@@ -645,7 +673,7 @@ var Card = React7.forwardRef(
|
|
645
673
|
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"
|
646
674
|
)
|
647
675
|
};
|
648
|
-
return /* @__PURE__ */
|
676
|
+
return /* @__PURE__ */ React8.createElement(
|
649
677
|
"div",
|
650
678
|
{
|
651
679
|
ref,
|
@@ -655,7 +683,7 @@ var Card = React7.forwardRef(
|
|
655
683
|
);
|
656
684
|
}
|
657
685
|
);
|
658
|
-
var CardHeader =
|
686
|
+
var CardHeader = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
659
687
|
"div",
|
660
688
|
{
|
661
689
|
ref,
|
@@ -666,7 +694,7 @@ var CardHeader = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
666
694
|
...props
|
667
695
|
}
|
668
696
|
));
|
669
|
-
var CardTitle =
|
697
|
+
var CardTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
670
698
|
"h3",
|
671
699
|
{
|
672
700
|
ref,
|
@@ -674,7 +702,7 @@ var CardTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
674
702
|
...props
|
675
703
|
}
|
676
704
|
));
|
677
|
-
var CardDescription =
|
705
|
+
var CardDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
678
706
|
"p",
|
679
707
|
{
|
680
708
|
ref,
|
@@ -682,8 +710,8 @@ var CardDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__
|
|
682
710
|
...props
|
683
711
|
}
|
684
712
|
));
|
685
|
-
var CardContent =
|
686
|
-
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */
|
713
|
+
var CardContent = React8.forwardRef(
|
714
|
+
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
687
715
|
"div",
|
688
716
|
{
|
689
717
|
ref,
|
@@ -696,7 +724,7 @@ var CardContent = React7.forwardRef(
|
|
696
724
|
}
|
697
725
|
)
|
698
726
|
);
|
699
|
-
var CardFooter =
|
727
|
+
var CardFooter = React8.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
700
728
|
"div",
|
701
729
|
{
|
702
730
|
ref,
|
@@ -757,7 +785,7 @@ var import_react_hook_form = require("react-hook-form");
|
|
757
785
|
var import_react8 = __toESM(require("react"));
|
758
786
|
|
759
787
|
// elements/label/Label.tsx
|
760
|
-
var
|
788
|
+
var React12 = __toESM(require("react"));
|
761
789
|
|
762
790
|
// elements/tooltip/Tooltip.tsx
|
763
791
|
var import_react6 = __toESM(require("react"));
|
@@ -831,7 +859,7 @@ var Tooltip = ({
|
|
831
859
|
};
|
832
860
|
|
833
861
|
// elements/label/Label.tsx
|
834
|
-
var Label =
|
862
|
+
var Label = React12.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React12.createElement(
|
835
863
|
"label",
|
836
864
|
{
|
837
865
|
ref,
|
@@ -842,8 +870,8 @@ var Label = React11.forwardRef(({ className, hint, hintSide, required, children,
|
|
842
870
|
...props
|
843
871
|
},
|
844
872
|
children,
|
845
|
-
required && /* @__PURE__ */
|
846
|
-
), hint && /* @__PURE__ */
|
873
|
+
required && /* @__PURE__ */ React12.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
874
|
+
), hint && /* @__PURE__ */ React12.createElement(
|
847
875
|
Tooltip,
|
848
876
|
{
|
849
877
|
content: hint,
|
@@ -853,7 +881,7 @@ var Label = React11.forwardRef(({ className, hint, hintSide, required, children,
|
|
853
881
|
onClick: (event) => event.preventDefault()
|
854
882
|
}
|
855
883
|
},
|
856
|
-
/* @__PURE__ */
|
884
|
+
/* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement(
|
857
885
|
"svg",
|
858
886
|
{
|
859
887
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -865,9 +893,9 @@ var Label = React11.forwardRef(({ className, hint, hintSide, required, children,
|
|
865
893
|
strokeLinecap: "round",
|
866
894
|
strokeLinejoin: "round"
|
867
895
|
},
|
868
|
-
/* @__PURE__ */
|
869
|
-
/* @__PURE__ */
|
870
|
-
/* @__PURE__ */
|
896
|
+
/* @__PURE__ */ React12.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
897
|
+
/* @__PURE__ */ React12.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
898
|
+
/* @__PURE__ */ React12.createElement("path", { d: "M12 17h.01" })
|
871
899
|
))
|
872
900
|
)));
|
873
901
|
Label.displayName = "Label";
|
@@ -1300,8 +1328,8 @@ var Select = ({
|
|
1300
1328
|
};
|
1301
1329
|
|
1302
1330
|
// elements/textarea/Textarea.tsx
|
1303
|
-
var
|
1304
|
-
var Textarea =
|
1331
|
+
var React20 = __toESM(require("react"));
|
1332
|
+
var Textarea = React20.forwardRef(
|
1305
1333
|
({
|
1306
1334
|
className,
|
1307
1335
|
classNames,
|
@@ -1313,7 +1341,7 @@ var Textarea = React19.forwardRef(
|
|
1313
1341
|
isLoading,
|
1314
1342
|
...props
|
1315
1343
|
}, ref) => {
|
1316
|
-
return /* @__PURE__ */
|
1344
|
+
return /* @__PURE__ */ React20.createElement(
|
1317
1345
|
"div",
|
1318
1346
|
{
|
1319
1347
|
className: cn(
|
@@ -1322,7 +1350,7 @@ var Textarea = React19.forwardRef(
|
|
1322
1350
|
className
|
1323
1351
|
)
|
1324
1352
|
},
|
1325
|
-
/* @__PURE__ */
|
1353
|
+
/* @__PURE__ */ React20.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React20.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React20.createElement(
|
1326
1354
|
"div",
|
1327
1355
|
{
|
1328
1356
|
className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
|
@@ -1331,7 +1359,7 @@ var Textarea = React19.forwardRef(
|
|
1331
1359
|
"/",
|
1332
1360
|
textareaProps == null ? void 0 : textareaProps.maxLength
|
1333
1361
|
)),
|
1334
|
-
isLoading ? /* @__PURE__ */
|
1362
|
+
isLoading ? /* @__PURE__ */ React20.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React20.createElement(
|
1335
1363
|
"textarea",
|
1336
1364
|
{
|
1337
1365
|
...textareaProps,
|
@@ -1342,7 +1370,7 @@ var Textarea = React19.forwardRef(
|
|
1342
1370
|
ref
|
1343
1371
|
}
|
1344
1372
|
),
|
1345
|
-
/* @__PURE__ */
|
1373
|
+
/* @__PURE__ */ React20.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React20.createElement(
|
1346
1374
|
"p",
|
1347
1375
|
{
|
1348
1376
|
className: cn(
|
@@ -1351,7 +1379,7 @@ var Textarea = React19.forwardRef(
|
|
1351
1379
|
)
|
1352
1380
|
},
|
1353
1381
|
props.helperText
|
1354
|
-
), showCount && countPosition === "bottom" && /* @__PURE__ */
|
1382
|
+
), showCount && countPosition === "bottom" && /* @__PURE__ */ React20.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))
|
1355
1383
|
);
|
1356
1384
|
}
|
1357
1385
|
);
|