@sikka/hawa 0.26.3-next → 0.26.5-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/auth/index.js +4 -2
- package/dist/blocks/auth/index.mjs +4 -2
- package/dist/blocks/feedback/index.js +68 -60
- package/dist/blocks/feedback/index.mjs +5 -3
- package/dist/blocks/index.js +72 -62
- package/dist/blocks/index.mjs +8 -4
- package/dist/blocks/misc/index.js +41 -28
- package/dist/blocks/misc/index.mjs +1 -1
- package/dist/blocks/pricing/index.js +24 -31
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/chunk-LT3VHLAG.mjs +70 -0
- package/dist/{chunk-2UQWMSFQ.mjs → chunk-M2ZS3EDT.mjs} +24 -31
- package/dist/{chunk-I7I5JJHC.mjs → chunk-SUS6O2PO.mjs} +65 -59
- package/dist/codeBlock/index.js +41 -28
- package/dist/codeBlock/index.mjs +41 -28
- package/dist/elements/index.d.mts +3 -0
- package/dist/elements/index.d.ts +3 -0
- package/dist/elements/index.js +65 -59
- package/dist/elements/index.mjs +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +72 -62
- package/dist/index.mjs +72 -62
- package/dist/interfaceSettings/index.js +24 -31
- package/dist/interfaceSettings/index.mjs +24 -31
- package/dist/radio/index.js +24 -31
- package/dist/radio/index.mjs +24 -31
- package/dist/signature/index.js +1 -1
- package/dist/signature/index.mjs +1 -1
- package/dist/textarea/index.d.mts +3 -0
- package/dist/textarea/index.d.ts +3 -0
- package/dist/textarea/index.js +41 -28
- package/dist/textarea/index.mjs +41 -28
- package/package.json +4 -4
- package/dist/blocks/feedback/index.css +0 -5
- package/dist/blocks/index.css +0 -5
- package/dist/blocks/misc/index.css +0 -5
- package/dist/chunk-2XKXPVD3.mjs +0 -57
- package/dist/codeBlock/index.css +0 -5
- package/dist/elements/index.css +0 -5
- package/dist/textarea/index.css +0 -5
@@ -3753,10 +3753,12 @@ var RegisterForm = ({
|
|
3753
3753
|
/* @__PURE__ */ import_react15.default.createElement(
|
3754
3754
|
Button,
|
3755
3755
|
{
|
3756
|
+
className: "hawa-mt-4 hawa-w-full",
|
3757
|
+
type: "submit",
|
3756
3758
|
isLoading: props.isLoading,
|
3757
|
-
|
3759
|
+
disabled: props.isLoading
|
3758
3760
|
},
|
3759
|
-
texts == null ? void 0 : texts.registerText
|
3761
|
+
(texts == null ? void 0 : texts.registerText) || "Register"
|
3760
3762
|
),
|
3761
3763
|
props.additionalButtons
|
3762
3764
|
)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ import_react15.default.createElement("span", null, texts == null ? void 0 : texts.existingUserText), /* @__PURE__ */ import_react15.default.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react15.default.createElement(
|
@@ -2946,10 +2946,12 @@ var RegisterForm = ({
|
|
2946
2946
|
/* @__PURE__ */ React7.createElement(
|
2947
2947
|
Button,
|
2948
2948
|
{
|
2949
|
+
className: "hawa-mt-4 hawa-w-full",
|
2950
|
+
type: "submit",
|
2949
2951
|
isLoading: props.isLoading,
|
2950
|
-
|
2952
|
+
disabled: props.isLoading
|
2951
2953
|
},
|
2952
|
-
texts == null ? void 0 : texts.registerText
|
2954
|
+
(texts == null ? void 0 : texts.registerText) || "Register"
|
2953
2955
|
),
|
2954
2956
|
props.additionalButtons
|
2955
2957
|
)), /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ React7.createElement("span", null, texts == null ? void 0 : texts.existingUserText), /* @__PURE__ */ React7.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React7.createElement(
|
@@ -568,45 +568,38 @@ var Radio = ({
|
|
568
568
|
))
|
569
569
|
);
|
570
570
|
case "bordered":
|
571
|
-
return /* @__PURE__ */ import_react3.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react3.default.createElement(
|
571
|
+
return /* @__PURE__ */ import_react3.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react3.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react3.default.createElement(
|
572
572
|
"div",
|
573
573
|
{
|
574
|
-
|
575
|
-
|
574
|
+
className: cn(
|
575
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
576
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
577
|
+
),
|
578
|
+
key: i + 1
|
576
579
|
},
|
577
580
|
/* @__PURE__ */ import_react3.default.createElement(
|
578
|
-
"
|
581
|
+
"input",
|
582
|
+
{
|
583
|
+
disabled: opt.disabled,
|
584
|
+
id: opt.value.toString(),
|
585
|
+
type: "radio",
|
586
|
+
value: opt.value,
|
587
|
+
name,
|
588
|
+
onChange: () => handleChange(opt)
|
589
|
+
}
|
590
|
+
),
|
591
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
592
|
+
"label",
|
579
593
|
{
|
594
|
+
htmlFor: opt.value.toString(),
|
580
595
|
className: cn(
|
581
|
-
"
|
582
|
-
|
583
|
-
)
|
584
|
-
key: i + 1
|
596
|
+
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
|
597
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
598
|
+
)
|
585
599
|
},
|
586
|
-
|
587
|
-
"input",
|
588
|
-
{
|
589
|
-
disabled: opt.disabled,
|
590
|
-
id: opt.value.toString(),
|
591
|
-
type: "radio",
|
592
|
-
value: opt.value,
|
593
|
-
name,
|
594
|
-
onChange: () => handleChange(opt)
|
595
|
-
}
|
596
|
-
),
|
597
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
598
|
-
"label",
|
599
|
-
{
|
600
|
-
htmlFor: opt.value.toString(),
|
601
|
-
className: cn(
|
602
|
-
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
603
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
604
|
-
)
|
605
|
-
},
|
606
|
-
opt.label
|
607
|
-
)
|
600
|
+
opt.label
|
608
601
|
)
|
609
|
-
)));
|
602
|
+
))));
|
610
603
|
case "cards":
|
611
604
|
return /* @__PURE__ */ import_react3.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react3.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react3.default.createElement(
|
612
605
|
"input",
|
@@ -680,6 +673,7 @@ var React7 = __toESM(require("react"));
|
|
680
673
|
var Textarea = React7.forwardRef(
|
681
674
|
({
|
682
675
|
className,
|
676
|
+
classNames,
|
683
677
|
labelProps,
|
684
678
|
showCount,
|
685
679
|
forceHideHelperText,
|
@@ -687,39 +681,51 @@ var Textarea = React7.forwardRef(
|
|
687
681
|
countPosition = "bottom",
|
688
682
|
...props
|
689
683
|
}, ref) => {
|
690
|
-
return /* @__PURE__ */ React7.createElement(
|
691
|
-
"textarea",
|
692
|
-
{
|
693
|
-
className: cn(
|
694
|
-
"hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
695
|
-
className
|
696
|
-
),
|
697
|
-
ref,
|
698
|
-
...textareaProps
|
699
|
-
}
|
700
|
-
), /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React7.createElement(
|
701
|
-
"p",
|
702
|
-
{
|
703
|
-
className: cn(
|
704
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
705
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
706
|
-
)
|
707
|
-
},
|
708
|
-
props.helperText
|
709
|
-
), showCount && /* @__PURE__ */ React7.createElement(
|
684
|
+
return /* @__PURE__ */ React7.createElement(
|
710
685
|
"div",
|
711
686
|
{
|
712
687
|
className: cn(
|
713
|
-
"hawa-
|
714
|
-
|
715
|
-
|
716
|
-
}
|
688
|
+
"textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
|
689
|
+
!forceHideHelperText && "hawa-gap-2",
|
690
|
+
className
|
717
691
|
)
|
718
692
|
},
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
693
|
+
props.label && /* @__PURE__ */ React7.createElement(Label, { ...labelProps }, props.label),
|
694
|
+
/* @__PURE__ */ React7.createElement(
|
695
|
+
"textarea",
|
696
|
+
{
|
697
|
+
className: cn(
|
698
|
+
"hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
699
|
+
classNames == null ? void 0 : classNames.textarea
|
700
|
+
),
|
701
|
+
ref,
|
702
|
+
...textareaProps
|
703
|
+
}
|
704
|
+
),
|
705
|
+
/* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React7.createElement(
|
706
|
+
"p",
|
707
|
+
{
|
708
|
+
className: cn(
|
709
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
710
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
711
|
+
)
|
712
|
+
},
|
713
|
+
props.helperText
|
714
|
+
), showCount && /* @__PURE__ */ React7.createElement(
|
715
|
+
"div",
|
716
|
+
{
|
717
|
+
className: cn(
|
718
|
+
"hawa-text-start hawa-text-xs hawa-transition-all",
|
719
|
+
{
|
720
|
+
"hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
|
721
|
+
}
|
722
|
+
)
|
723
|
+
},
|
724
|
+
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
725
|
+
"/",
|
726
|
+
textareaProps == null ? void 0 : textareaProps.maxLength
|
727
|
+
))
|
728
|
+
);
|
723
729
|
}
|
724
730
|
);
|
725
731
|
Textarea.displayName = "Textarea";
|
@@ -1236,7 +1242,9 @@ var FeedbackEmoji = (props) => {
|
|
1236
1242
|
trigger: /* @__PURE__ */ import_react9.default.createElement(
|
1237
1243
|
Textarea,
|
1238
1244
|
{
|
1239
|
-
|
1245
|
+
classNames: {
|
1246
|
+
textarea: "hawa-mt-2 hawa-h-full hawa-resize-none"
|
1247
|
+
},
|
1240
1248
|
placeholder: "Your feedback",
|
1241
1249
|
onChange: (e) => {
|
1242
1250
|
if (e.target.value) {
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import {
|
2
2
|
Textarea
|
3
|
-
} from "../../chunk-
|
3
|
+
} from "../../chunk-LT3VHLAG.mjs";
|
4
4
|
import {
|
5
5
|
Select
|
6
6
|
} from "../../chunk-TTKRRN7S.mjs";
|
7
7
|
import {
|
8
8
|
Radio
|
9
|
-
} from "../../chunk-
|
9
|
+
} from "../../chunk-M2ZS3EDT.mjs";
|
10
10
|
import {
|
11
11
|
BadEmoji,
|
12
12
|
GoodEmoji,
|
@@ -438,7 +438,9 @@ var FeedbackEmoji = (props) => {
|
|
438
438
|
trigger: /* @__PURE__ */ React4.createElement(
|
439
439
|
Textarea,
|
440
440
|
{
|
441
|
-
|
441
|
+
classNames: {
|
442
|
+
textarea: "hawa-mt-2 hawa-h-full hawa-resize-none"
|
443
|
+
},
|
442
444
|
placeholder: "Your feedback",
|
443
445
|
onChange: (e) => {
|
444
446
|
if (e.target.value) {
|
package/dist/blocks/index.js
CHANGED
@@ -3910,10 +3910,12 @@ var RegisterForm = ({
|
|
3910
3910
|
/* @__PURE__ */ import_react15.default.createElement(
|
3911
3911
|
Button,
|
3912
3912
|
{
|
3913
|
+
className: "hawa-mt-4 hawa-w-full",
|
3914
|
+
type: "submit",
|
3913
3915
|
isLoading: props.isLoading,
|
3914
|
-
|
3916
|
+
disabled: props.isLoading
|
3915
3917
|
},
|
3916
|
-
texts == null ? void 0 : texts.registerText
|
3918
|
+
(texts == null ? void 0 : texts.registerText) || "Register"
|
3917
3919
|
),
|
3918
3920
|
props.additionalButtons
|
3919
3921
|
)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ import_react15.default.createElement("span", null, texts == null ? void 0 : texts.existingUserText), /* @__PURE__ */ import_react15.default.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react15.default.createElement(
|
@@ -4433,45 +4435,38 @@ var Radio = ({
|
|
4433
4435
|
))
|
4434
4436
|
);
|
4435
4437
|
case "bordered":
|
4436
|
-
return /* @__PURE__ */ import_react22.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react22.default.createElement(
|
4438
|
+
return /* @__PURE__ */ import_react22.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react22.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react22.default.createElement(
|
4437
4439
|
"div",
|
4438
4440
|
{
|
4439
|
-
|
4440
|
-
|
4441
|
+
className: cn(
|
4442
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
4443
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
4444
|
+
),
|
4445
|
+
key: i + 1
|
4441
4446
|
},
|
4442
4447
|
/* @__PURE__ */ import_react22.default.createElement(
|
4443
|
-
"
|
4448
|
+
"input",
|
4449
|
+
{
|
4450
|
+
disabled: opt.disabled,
|
4451
|
+
id: opt.value.toString(),
|
4452
|
+
type: "radio",
|
4453
|
+
value: opt.value,
|
4454
|
+
name,
|
4455
|
+
onChange: () => handleChange(opt)
|
4456
|
+
}
|
4457
|
+
),
|
4458
|
+
/* @__PURE__ */ import_react22.default.createElement(
|
4459
|
+
"label",
|
4444
4460
|
{
|
4461
|
+
htmlFor: opt.value.toString(),
|
4445
4462
|
className: cn(
|
4446
|
-
"
|
4447
|
-
|
4448
|
-
)
|
4449
|
-
key: i + 1
|
4463
|
+
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
|
4464
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
4465
|
+
)
|
4450
4466
|
},
|
4451
|
-
|
4452
|
-
"input",
|
4453
|
-
{
|
4454
|
-
disabled: opt.disabled,
|
4455
|
-
id: opt.value.toString(),
|
4456
|
-
type: "radio",
|
4457
|
-
value: opt.value,
|
4458
|
-
name,
|
4459
|
-
onChange: () => handleChange(opt)
|
4460
|
-
}
|
4461
|
-
),
|
4462
|
-
/* @__PURE__ */ import_react22.default.createElement(
|
4463
|
-
"label",
|
4464
|
-
{
|
4465
|
-
htmlFor: opt.value.toString(),
|
4466
|
-
className: cn(
|
4467
|
-
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
4468
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
4469
|
-
)
|
4470
|
-
},
|
4471
|
-
opt.label
|
4472
|
-
)
|
4467
|
+
opt.label
|
4473
4468
|
)
|
4474
|
-
)));
|
4469
|
+
))));
|
4475
4470
|
case "cards":
|
4476
4471
|
return /* @__PURE__ */ import_react22.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react22.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react22.default.createElement(
|
4477
4472
|
"input",
|
@@ -4545,6 +4540,7 @@ var React27 = __toESM(require("react"));
|
|
4545
4540
|
var Textarea = React27.forwardRef(
|
4546
4541
|
({
|
4547
4542
|
className,
|
4543
|
+
classNames,
|
4548
4544
|
labelProps,
|
4549
4545
|
showCount,
|
4550
4546
|
forceHideHelperText,
|
@@ -4552,39 +4548,51 @@ var Textarea = React27.forwardRef(
|
|
4552
4548
|
countPosition = "bottom",
|
4553
4549
|
...props
|
4554
4550
|
}, ref) => {
|
4555
|
-
return /* @__PURE__ */ React27.createElement(
|
4556
|
-
"textarea",
|
4557
|
-
{
|
4558
|
-
className: cn(
|
4559
|
-
"hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
4560
|
-
className
|
4561
|
-
),
|
4562
|
-
ref,
|
4563
|
-
...textareaProps
|
4564
|
-
}
|
4565
|
-
), /* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React27.createElement(
|
4566
|
-
"p",
|
4567
|
-
{
|
4568
|
-
className: cn(
|
4569
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
4570
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
4571
|
-
)
|
4572
|
-
},
|
4573
|
-
props.helperText
|
4574
|
-
), showCount && /* @__PURE__ */ React27.createElement(
|
4551
|
+
return /* @__PURE__ */ React27.createElement(
|
4575
4552
|
"div",
|
4576
4553
|
{
|
4577
4554
|
className: cn(
|
4578
|
-
"hawa-
|
4579
|
-
|
4580
|
-
|
4581
|
-
}
|
4555
|
+
"textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
|
4556
|
+
!forceHideHelperText && "hawa-gap-2",
|
4557
|
+
className
|
4582
4558
|
)
|
4583
4559
|
},
|
4584
|
-
|
4585
|
-
|
4586
|
-
|
4587
|
-
|
4560
|
+
props.label && /* @__PURE__ */ React27.createElement(Label, { ...labelProps }, props.label),
|
4561
|
+
/* @__PURE__ */ React27.createElement(
|
4562
|
+
"textarea",
|
4563
|
+
{
|
4564
|
+
className: cn(
|
4565
|
+
"hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
4566
|
+
classNames == null ? void 0 : classNames.textarea
|
4567
|
+
),
|
4568
|
+
ref,
|
4569
|
+
...textareaProps
|
4570
|
+
}
|
4571
|
+
),
|
4572
|
+
/* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React27.createElement(
|
4573
|
+
"p",
|
4574
|
+
{
|
4575
|
+
className: cn(
|
4576
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
4577
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
4578
|
+
)
|
4579
|
+
},
|
4580
|
+
props.helperText
|
4581
|
+
), showCount && /* @__PURE__ */ React27.createElement(
|
4582
|
+
"div",
|
4583
|
+
{
|
4584
|
+
className: cn(
|
4585
|
+
"hawa-text-start hawa-text-xs hawa-transition-all",
|
4586
|
+
{
|
4587
|
+
"hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
|
4588
|
+
}
|
4589
|
+
)
|
4590
|
+
},
|
4591
|
+
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
4592
|
+
"/",
|
4593
|
+
textareaProps == null ? void 0 : textareaProps.maxLength
|
4594
|
+
))
|
4595
|
+
);
|
4588
4596
|
}
|
4589
4597
|
);
|
4590
4598
|
Textarea.displayName = "Textarea";
|
@@ -5002,7 +5010,9 @@ var FeedbackEmoji = (props) => {
|
|
5002
5010
|
trigger: /* @__PURE__ */ import_react25.default.createElement(
|
5003
5011
|
Textarea,
|
5004
5012
|
{
|
5005
|
-
|
5013
|
+
classNames: {
|
5014
|
+
textarea: "hawa-mt-2 hawa-h-full hawa-resize-none"
|
5015
|
+
},
|
5006
5016
|
placeholder: "Your feedback",
|
5007
5017
|
onChange: (e) => {
|
5008
5018
|
if (e.target.value) {
|
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-SUS6O2PO.mjs";
|
29
29
|
import {
|
30
30
|
Button,
|
31
31
|
Card,
|
@@ -719,10 +719,12 @@ var RegisterForm = ({
|
|
719
719
|
/* @__PURE__ */ React3.createElement(
|
720
720
|
Button,
|
721
721
|
{
|
722
|
+
className: "hawa-mt-4 hawa-w-full",
|
723
|
+
type: "submit",
|
722
724
|
isLoading: props.isLoading,
|
723
|
-
|
725
|
+
disabled: props.isLoading
|
724
726
|
},
|
725
|
-
texts == null ? void 0 : texts.registerText
|
727
|
+
(texts == null ? void 0 : texts.registerText) || "Register"
|
726
728
|
),
|
727
729
|
props.additionalButtons
|
728
730
|
)), /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ React3.createElement("span", null, texts == null ? void 0 : texts.existingUserText), /* @__PURE__ */ React3.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React3.createElement(
|
@@ -1420,7 +1422,9 @@ var FeedbackEmoji = (props) => {
|
|
1420
1422
|
trigger: /* @__PURE__ */ React11.createElement(
|
1421
1423
|
Textarea,
|
1422
1424
|
{
|
1423
|
-
|
1425
|
+
classNames: {
|
1426
|
+
textarea: "hawa-mt-2 hawa-h-full hawa-resize-none"
|
1427
|
+
},
|
1424
1428
|
placeholder: "Your feedback",
|
1425
1429
|
onChange: (e) => {
|
1426
1430
|
if (e.target.value) {
|
@@ -980,6 +980,7 @@ var React18 = __toESM(require("react"));
|
|
980
980
|
var Textarea = React18.forwardRef(
|
981
981
|
({
|
982
982
|
className,
|
983
|
+
classNames,
|
983
984
|
labelProps,
|
984
985
|
showCount,
|
985
986
|
forceHideHelperText,
|
@@ -987,39 +988,51 @@ var Textarea = React18.forwardRef(
|
|
987
988
|
countPosition = "bottom",
|
988
989
|
...props
|
989
990
|
}, ref) => {
|
990
|
-
return /* @__PURE__ */ React18.createElement(
|
991
|
-
"textarea",
|
992
|
-
{
|
993
|
-
className: cn(
|
994
|
-
"hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
995
|
-
className
|
996
|
-
),
|
997
|
-
ref,
|
998
|
-
...textareaProps
|
999
|
-
}
|
1000
|
-
), /* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React18.createElement(
|
1001
|
-
"p",
|
1002
|
-
{
|
1003
|
-
className: cn(
|
1004
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
1005
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
1006
|
-
)
|
1007
|
-
},
|
1008
|
-
props.helperText
|
1009
|
-
), showCount && /* @__PURE__ */ React18.createElement(
|
991
|
+
return /* @__PURE__ */ React18.createElement(
|
1010
992
|
"div",
|
1011
993
|
{
|
1012
994
|
className: cn(
|
1013
|
-
"hawa-
|
1014
|
-
|
1015
|
-
|
1016
|
-
}
|
995
|
+
"textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
|
996
|
+
!forceHideHelperText && "hawa-gap-2",
|
997
|
+
className
|
1017
998
|
)
|
1018
999
|
},
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1000
|
+
props.label && /* @__PURE__ */ React18.createElement(Label, { ...labelProps }, props.label),
|
1001
|
+
/* @__PURE__ */ React18.createElement(
|
1002
|
+
"textarea",
|
1003
|
+
{
|
1004
|
+
className: cn(
|
1005
|
+
"hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
1006
|
+
classNames == null ? void 0 : classNames.textarea
|
1007
|
+
),
|
1008
|
+
ref,
|
1009
|
+
...textareaProps
|
1010
|
+
}
|
1011
|
+
),
|
1012
|
+
/* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React18.createElement(
|
1013
|
+
"p",
|
1014
|
+
{
|
1015
|
+
className: cn(
|
1016
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
1017
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
1018
|
+
)
|
1019
|
+
},
|
1020
|
+
props.helperText
|
1021
|
+
), showCount && /* @__PURE__ */ React18.createElement(
|
1022
|
+
"div",
|
1023
|
+
{
|
1024
|
+
className: cn(
|
1025
|
+
"hawa-text-start hawa-text-xs hawa-transition-all",
|
1026
|
+
{
|
1027
|
+
"hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
|
1028
|
+
}
|
1029
|
+
)
|
1030
|
+
},
|
1031
|
+
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
1032
|
+
"/",
|
1033
|
+
textareaProps == null ? void 0 : textareaProps.maxLength
|
1034
|
+
))
|
1035
|
+
);
|
1023
1036
|
}
|
1024
1037
|
);
|
1025
1038
|
Textarea.displayName = "Textarea";
|
@@ -995,45 +995,38 @@ var Radio = ({
|
|
995
995
|
))
|
996
996
|
);
|
997
997
|
case "bordered":
|
998
|
-
return /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement(
|
998
|
+
return /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react11.default.createElement(
|
999
999
|
"div",
|
1000
1000
|
{
|
1001
|
-
|
1002
|
-
|
1001
|
+
className: cn(
|
1002
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
1003
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
1004
|
+
),
|
1005
|
+
key: i + 1
|
1003
1006
|
},
|
1004
1007
|
/* @__PURE__ */ import_react11.default.createElement(
|
1005
|
-
"
|
1008
|
+
"input",
|
1009
|
+
{
|
1010
|
+
disabled: opt.disabled,
|
1011
|
+
id: opt.value.toString(),
|
1012
|
+
type: "radio",
|
1013
|
+
value: opt.value,
|
1014
|
+
name,
|
1015
|
+
onChange: () => handleChange(opt)
|
1016
|
+
}
|
1017
|
+
),
|
1018
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
1019
|
+
"label",
|
1006
1020
|
{
|
1021
|
+
htmlFor: opt.value.toString(),
|
1007
1022
|
className: cn(
|
1008
|
-
"
|
1009
|
-
|
1010
|
-
)
|
1011
|
-
key: i + 1
|
1023
|
+
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
|
1024
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
1025
|
+
)
|
1012
1026
|
},
|
1013
|
-
|
1014
|
-
"input",
|
1015
|
-
{
|
1016
|
-
disabled: opt.disabled,
|
1017
|
-
id: opt.value.toString(),
|
1018
|
-
type: "radio",
|
1019
|
-
value: opt.value,
|
1020
|
-
name,
|
1021
|
-
onChange: () => handleChange(opt)
|
1022
|
-
}
|
1023
|
-
),
|
1024
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
1025
|
-
"label",
|
1026
|
-
{
|
1027
|
-
htmlFor: opt.value.toString(),
|
1028
|
-
className: cn(
|
1029
|
-
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
1030
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
1031
|
-
)
|
1032
|
-
},
|
1033
|
-
opt.label
|
1034
|
-
)
|
1027
|
+
opt.label
|
1035
1028
|
)
|
1036
|
-
)));
|
1029
|
+
))));
|
1037
1030
|
case "cards":
|
1038
1031
|
return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react11.default.createElement(
|
1039
1032
|
"input",
|