@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
package/dist/elements/index.mjs
CHANGED
package/dist/index.d.mts
CHANGED
@@ -547,6 +547,9 @@ interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaEleme
|
|
547
547
|
textareaProps?: React$1.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
548
548
|
showCount?: boolean;
|
549
549
|
countPosition?: "top" | "bottom";
|
550
|
+
classNames?: {
|
551
|
+
textarea?: string;
|
552
|
+
};
|
550
553
|
}
|
551
554
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
552
555
|
|
package/dist/index.d.ts
CHANGED
@@ -547,6 +547,9 @@ interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaEleme
|
|
547
547
|
textareaProps?: React$1.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
548
548
|
showCount?: boolean;
|
549
549
|
countPosition?: "top" | "bottom";
|
550
|
+
classNames?: {
|
551
|
+
textarea?: string;
|
552
|
+
};
|
550
553
|
}
|
551
554
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
552
555
|
|
package/dist/index.js
CHANGED
@@ -3046,45 +3046,38 @@ var Radio = ({
|
|
3046
3046
|
))
|
3047
3047
|
);
|
3048
3048
|
case "bordered":
|
3049
|
-
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(
|
3049
|
+
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(
|
3050
3050
|
"div",
|
3051
3051
|
{
|
3052
|
-
|
3053
|
-
|
3052
|
+
className: cn(
|
3053
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
3054
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
3055
|
+
),
|
3056
|
+
key: i + 1
|
3054
3057
|
},
|
3055
3058
|
/* @__PURE__ */ import_react11.default.createElement(
|
3056
|
-
"
|
3059
|
+
"input",
|
3057
3060
|
{
|
3061
|
+
disabled: opt.disabled,
|
3062
|
+
id: opt.value.toString(),
|
3063
|
+
type: "radio",
|
3064
|
+
value: opt.value,
|
3065
|
+
name,
|
3066
|
+
onChange: () => handleChange(opt)
|
3067
|
+
}
|
3068
|
+
),
|
3069
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3070
|
+
"label",
|
3071
|
+
{
|
3072
|
+
htmlFor: opt.value.toString(),
|
3058
3073
|
className: cn(
|
3059
|
-
"
|
3060
|
-
|
3061
|
-
)
|
3062
|
-
key: i + 1
|
3074
|
+
"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",
|
3075
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
3076
|
+
)
|
3063
3077
|
},
|
3064
|
-
|
3065
|
-
"input",
|
3066
|
-
{
|
3067
|
-
disabled: opt.disabled,
|
3068
|
-
id: opt.value.toString(),
|
3069
|
-
type: "radio",
|
3070
|
-
value: opt.value,
|
3071
|
-
name,
|
3072
|
-
onChange: () => handleChange(opt)
|
3073
|
-
}
|
3074
|
-
),
|
3075
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
3076
|
-
"label",
|
3077
|
-
{
|
3078
|
-
htmlFor: opt.value.toString(),
|
3079
|
-
className: cn(
|
3080
|
-
"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",
|
3081
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
3082
|
-
)
|
3083
|
-
},
|
3084
|
-
opt.label
|
3085
|
-
)
|
3078
|
+
opt.label
|
3086
3079
|
)
|
3087
|
-
)));
|
3080
|
+
))));
|
3088
3081
|
case "cards":
|
3089
3082
|
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(
|
3090
3083
|
"input",
|
@@ -3486,6 +3479,7 @@ var React28 = __toESM(require("react"));
|
|
3486
3479
|
var Textarea = React28.forwardRef(
|
3487
3480
|
({
|
3488
3481
|
className,
|
3482
|
+
classNames,
|
3489
3483
|
labelProps,
|
3490
3484
|
showCount,
|
3491
3485
|
forceHideHelperText,
|
@@ -3493,39 +3487,51 @@ var Textarea = React28.forwardRef(
|
|
3493
3487
|
countPosition = "bottom",
|
3494
3488
|
...props
|
3495
3489
|
}, ref) => {
|
3496
|
-
return /* @__PURE__ */ React28.createElement(
|
3497
|
-
"textarea",
|
3498
|
-
{
|
3499
|
-
className: cn(
|
3500
|
-
"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",
|
3501
|
-
className
|
3502
|
-
),
|
3503
|
-
ref,
|
3504
|
-
...textareaProps
|
3505
|
-
}
|
3506
|
-
), /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React28.createElement(
|
3507
|
-
"p",
|
3508
|
-
{
|
3509
|
-
className: cn(
|
3510
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3511
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3512
|
-
)
|
3513
|
-
},
|
3514
|
-
props.helperText
|
3515
|
-
), showCount && /* @__PURE__ */ React28.createElement(
|
3490
|
+
return /* @__PURE__ */ React28.createElement(
|
3516
3491
|
"div",
|
3517
3492
|
{
|
3518
3493
|
className: cn(
|
3519
|
-
"hawa-
|
3520
|
-
|
3521
|
-
|
3522
|
-
}
|
3494
|
+
"textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
|
3495
|
+
!forceHideHelperText && "hawa-gap-2",
|
3496
|
+
className
|
3523
3497
|
)
|
3524
3498
|
},
|
3525
|
-
|
3526
|
-
|
3527
|
-
|
3528
|
-
|
3499
|
+
props.label && /* @__PURE__ */ React28.createElement(Label2, { ...labelProps }, props.label),
|
3500
|
+
/* @__PURE__ */ React28.createElement(
|
3501
|
+
"textarea",
|
3502
|
+
{
|
3503
|
+
className: cn(
|
3504
|
+
"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",
|
3505
|
+
classNames == null ? void 0 : classNames.textarea
|
3506
|
+
),
|
3507
|
+
ref,
|
3508
|
+
...textareaProps
|
3509
|
+
}
|
3510
|
+
),
|
3511
|
+
/* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React28.createElement(
|
3512
|
+
"p",
|
3513
|
+
{
|
3514
|
+
className: cn(
|
3515
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3516
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3517
|
+
)
|
3518
|
+
},
|
3519
|
+
props.helperText
|
3520
|
+
), showCount && /* @__PURE__ */ React28.createElement(
|
3521
|
+
"div",
|
3522
|
+
{
|
3523
|
+
className: cn(
|
3524
|
+
"hawa-text-start hawa-text-xs hawa-transition-all",
|
3525
|
+
{
|
3526
|
+
"hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
|
3527
|
+
}
|
3528
|
+
)
|
3529
|
+
},
|
3530
|
+
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
3531
|
+
"/",
|
3532
|
+
textareaProps == null ? void 0 : textareaProps.maxLength
|
3533
|
+
))
|
3534
|
+
);
|
3529
3535
|
}
|
3530
3536
|
);
|
3531
3537
|
Textarea.displayName = "Textarea";
|
@@ -9826,10 +9832,12 @@ var RegisterForm = ({
|
|
9826
9832
|
/* @__PURE__ */ import_react47.default.createElement(
|
9827
9833
|
Button,
|
9828
9834
|
{
|
9835
|
+
className: "hawa-mt-4 hawa-w-full",
|
9836
|
+
type: "submit",
|
9829
9837
|
isLoading: props.isLoading,
|
9830
|
-
|
9838
|
+
disabled: props.isLoading
|
9831
9839
|
},
|
9832
|
-
texts == null ? void 0 : texts.registerText
|
9840
|
+
(texts == null ? void 0 : texts.registerText) || "Register"
|
9833
9841
|
),
|
9834
9842
|
props.additionalButtons
|
9835
9843
|
)), /* @__PURE__ */ import_react47.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_react47.default.createElement("span", null, texts == null ? void 0 : texts.existingUserText), /* @__PURE__ */ import_react47.default.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react47.default.createElement(
|
@@ -10527,7 +10535,9 @@ var FeedbackEmoji = (props) => {
|
|
10527
10535
|
trigger: /* @__PURE__ */ import_react55.default.createElement(
|
10528
10536
|
Textarea,
|
10529
10537
|
{
|
10530
|
-
|
10538
|
+
classNames: {
|
10539
|
+
textarea: "hawa-mt-2 hawa-h-full hawa-resize-none"
|
10540
|
+
},
|
10531
10541
|
placeholder: "Your feedback",
|
10532
10542
|
onChange: (e) => {
|
10533
10543
|
if (e.target.value) {
|
package/dist/index.mjs
CHANGED
@@ -2813,45 +2813,38 @@ var Radio = ({
|
|
2813
2813
|
))
|
2814
2814
|
);
|
2815
2815
|
case "bordered":
|
2816
|
-
return /* @__PURE__ */ React24.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React24.createElement(
|
2816
|
+
return /* @__PURE__ */ React24.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React24.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ React24.createElement(
|
2817
2817
|
"div",
|
2818
2818
|
{
|
2819
|
-
|
2820
|
-
|
2819
|
+
className: cn(
|
2820
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
2821
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
2822
|
+
),
|
2823
|
+
key: i + 1
|
2821
2824
|
},
|
2822
2825
|
/* @__PURE__ */ React24.createElement(
|
2823
|
-
"
|
2826
|
+
"input",
|
2824
2827
|
{
|
2828
|
+
disabled: opt.disabled,
|
2829
|
+
id: opt.value.toString(),
|
2830
|
+
type: "radio",
|
2831
|
+
value: opt.value,
|
2832
|
+
name,
|
2833
|
+
onChange: () => handleChange(opt)
|
2834
|
+
}
|
2835
|
+
),
|
2836
|
+
/* @__PURE__ */ React24.createElement(
|
2837
|
+
"label",
|
2838
|
+
{
|
2839
|
+
htmlFor: opt.value.toString(),
|
2825
2840
|
className: cn(
|
2826
|
-
"
|
2827
|
-
|
2828
|
-
)
|
2829
|
-
key: i + 1
|
2841
|
+
"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",
|
2842
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
2843
|
+
)
|
2830
2844
|
},
|
2831
|
-
|
2832
|
-
"input",
|
2833
|
-
{
|
2834
|
-
disabled: opt.disabled,
|
2835
|
-
id: opt.value.toString(),
|
2836
|
-
type: "radio",
|
2837
|
-
value: opt.value,
|
2838
|
-
name,
|
2839
|
-
onChange: () => handleChange(opt)
|
2840
|
-
}
|
2841
|
-
),
|
2842
|
-
/* @__PURE__ */ React24.createElement(
|
2843
|
-
"label",
|
2844
|
-
{
|
2845
|
-
htmlFor: opt.value.toString(),
|
2846
|
-
className: cn(
|
2847
|
-
"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",
|
2848
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
2849
|
-
)
|
2850
|
-
},
|
2851
|
-
opt.label
|
2852
|
-
)
|
2845
|
+
opt.label
|
2853
2846
|
)
|
2854
|
-
)));
|
2847
|
+
))));
|
2855
2848
|
case "cards":
|
2856
2849
|
return /* @__PURE__ */ React24.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React24.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React24.createElement(
|
2857
2850
|
"input",
|
@@ -3253,6 +3246,7 @@ import * as React28 from "react";
|
|
3253
3246
|
var Textarea = React28.forwardRef(
|
3254
3247
|
({
|
3255
3248
|
className,
|
3249
|
+
classNames,
|
3256
3250
|
labelProps,
|
3257
3251
|
showCount,
|
3258
3252
|
forceHideHelperText,
|
@@ -3260,39 +3254,51 @@ var Textarea = React28.forwardRef(
|
|
3260
3254
|
countPosition = "bottom",
|
3261
3255
|
...props
|
3262
3256
|
}, ref) => {
|
3263
|
-
return /* @__PURE__ */ React28.createElement(
|
3264
|
-
"textarea",
|
3265
|
-
{
|
3266
|
-
className: cn(
|
3267
|
-
"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",
|
3268
|
-
className
|
3269
|
-
),
|
3270
|
-
ref,
|
3271
|
-
...textareaProps
|
3272
|
-
}
|
3273
|
-
), /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React28.createElement(
|
3274
|
-
"p",
|
3275
|
-
{
|
3276
|
-
className: cn(
|
3277
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3278
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3279
|
-
)
|
3280
|
-
},
|
3281
|
-
props.helperText
|
3282
|
-
), showCount && /* @__PURE__ */ React28.createElement(
|
3257
|
+
return /* @__PURE__ */ React28.createElement(
|
3283
3258
|
"div",
|
3284
3259
|
{
|
3285
3260
|
className: cn(
|
3286
|
-
"hawa-
|
3287
|
-
|
3288
|
-
|
3289
|
-
}
|
3261
|
+
"textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
|
3262
|
+
!forceHideHelperText && "hawa-gap-2",
|
3263
|
+
className
|
3290
3264
|
)
|
3291
3265
|
},
|
3292
|
-
|
3293
|
-
|
3294
|
-
|
3295
|
-
|
3266
|
+
props.label && /* @__PURE__ */ React28.createElement(Label2, { ...labelProps }, props.label),
|
3267
|
+
/* @__PURE__ */ React28.createElement(
|
3268
|
+
"textarea",
|
3269
|
+
{
|
3270
|
+
className: cn(
|
3271
|
+
"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",
|
3272
|
+
classNames == null ? void 0 : classNames.textarea
|
3273
|
+
),
|
3274
|
+
ref,
|
3275
|
+
...textareaProps
|
3276
|
+
}
|
3277
|
+
),
|
3278
|
+
/* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React28.createElement(
|
3279
|
+
"p",
|
3280
|
+
{
|
3281
|
+
className: cn(
|
3282
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3283
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3284
|
+
)
|
3285
|
+
},
|
3286
|
+
props.helperText
|
3287
|
+
), showCount && /* @__PURE__ */ React28.createElement(
|
3288
|
+
"div",
|
3289
|
+
{
|
3290
|
+
className: cn(
|
3291
|
+
"hawa-text-start hawa-text-xs hawa-transition-all",
|
3292
|
+
{
|
3293
|
+
"hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
|
3294
|
+
}
|
3295
|
+
)
|
3296
|
+
},
|
3297
|
+
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
3298
|
+
"/",
|
3299
|
+
textareaProps == null ? void 0 : textareaProps.maxLength
|
3300
|
+
))
|
3301
|
+
);
|
3296
3302
|
}
|
3297
3303
|
);
|
3298
3304
|
Textarea.displayName = "Textarea";
|
@@ -9600,10 +9606,12 @@ var RegisterForm = ({
|
|
9600
9606
|
/* @__PURE__ */ React75.createElement(
|
9601
9607
|
Button,
|
9602
9608
|
{
|
9609
|
+
className: "hawa-mt-4 hawa-w-full",
|
9610
|
+
type: "submit",
|
9603
9611
|
isLoading: props.isLoading,
|
9604
|
-
|
9612
|
+
disabled: props.isLoading
|
9605
9613
|
},
|
9606
|
-
texts == null ? void 0 : texts.registerText
|
9614
|
+
(texts == null ? void 0 : texts.registerText) || "Register"
|
9607
9615
|
),
|
9608
9616
|
props.additionalButtons
|
9609
9617
|
)), /* @__PURE__ */ React75.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__ */ React75.createElement("span", null, texts == null ? void 0 : texts.existingUserText), /* @__PURE__ */ React75.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React75.createElement(
|
@@ -10301,7 +10309,9 @@ var FeedbackEmoji = (props) => {
|
|
10301
10309
|
trigger: /* @__PURE__ */ React83.createElement(
|
10302
10310
|
Textarea,
|
10303
10311
|
{
|
10304
|
-
|
10312
|
+
classNames: {
|
10313
|
+
textarea: "hawa-mt-2 hawa-h-full hawa-resize-none"
|
10314
|
+
},
|
10305
10315
|
placeholder: "Your feedback",
|
10306
10316
|
onChange: (e) => {
|
10307
10317
|
if (e.target.value) {
|
@@ -229,45 +229,38 @@ var Radio = ({
|
|
229
229
|
))
|
230
230
|
);
|
231
231
|
case "bordered":
|
232
|
-
return /* @__PURE__ */ import_react2.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react2.default.createElement(
|
232
|
+
return /* @__PURE__ */ import_react2.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react2.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react2.default.createElement(
|
233
233
|
"div",
|
234
234
|
{
|
235
|
-
|
236
|
-
|
235
|
+
className: cn(
|
236
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
237
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
238
|
+
),
|
239
|
+
key: i + 1
|
237
240
|
},
|
238
241
|
/* @__PURE__ */ import_react2.default.createElement(
|
239
|
-
"
|
242
|
+
"input",
|
240
243
|
{
|
244
|
+
disabled: opt.disabled,
|
245
|
+
id: opt.value.toString(),
|
246
|
+
type: "radio",
|
247
|
+
value: opt.value,
|
248
|
+
name,
|
249
|
+
onChange: () => handleChange(opt)
|
250
|
+
}
|
251
|
+
),
|
252
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
253
|
+
"label",
|
254
|
+
{
|
255
|
+
htmlFor: opt.value.toString(),
|
241
256
|
className: cn(
|
242
|
-
"
|
243
|
-
|
244
|
-
)
|
245
|
-
key: i + 1
|
257
|
+
"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",
|
258
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
259
|
+
)
|
246
260
|
},
|
247
|
-
|
248
|
-
"input",
|
249
|
-
{
|
250
|
-
disabled: opt.disabled,
|
251
|
-
id: opt.value.toString(),
|
252
|
-
type: "radio",
|
253
|
-
value: opt.value,
|
254
|
-
name,
|
255
|
-
onChange: () => handleChange(opt)
|
256
|
-
}
|
257
|
-
),
|
258
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
259
|
-
"label",
|
260
|
-
{
|
261
|
-
htmlFor: opt.value.toString(),
|
262
|
-
className: cn(
|
263
|
-
"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",
|
264
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
265
|
-
)
|
266
|
-
},
|
267
|
-
opt.label
|
268
|
-
)
|
261
|
+
opt.label
|
269
262
|
)
|
270
|
-
)));
|
263
|
+
))));
|
271
264
|
case "cards":
|
272
265
|
return /* @__PURE__ */ import_react2.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react2.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react2.default.createElement(
|
273
266
|
"input",
|
@@ -93,45 +93,38 @@ var Radio = ({
|
|
93
93
|
))
|
94
94
|
);
|
95
95
|
case "bordered":
|
96
|
-
return /* @__PURE__ */ React.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React.createElement(
|
96
|
+
return /* @__PURE__ */ React.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ React.createElement(
|
97
97
|
"div",
|
98
98
|
{
|
99
|
-
|
100
|
-
|
99
|
+
className: cn(
|
100
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
101
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
102
|
+
),
|
103
|
+
key: i + 1
|
101
104
|
},
|
102
105
|
/* @__PURE__ */ React.createElement(
|
103
|
-
"
|
106
|
+
"input",
|
104
107
|
{
|
108
|
+
disabled: opt.disabled,
|
109
|
+
id: opt.value.toString(),
|
110
|
+
type: "radio",
|
111
|
+
value: opt.value,
|
112
|
+
name,
|
113
|
+
onChange: () => handleChange(opt)
|
114
|
+
}
|
115
|
+
),
|
116
|
+
/* @__PURE__ */ React.createElement(
|
117
|
+
"label",
|
118
|
+
{
|
119
|
+
htmlFor: opt.value.toString(),
|
105
120
|
className: cn(
|
106
|
-
"
|
107
|
-
|
108
|
-
)
|
109
|
-
key: i + 1
|
121
|
+
"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",
|
122
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
123
|
+
)
|
110
124
|
},
|
111
|
-
|
112
|
-
"input",
|
113
|
-
{
|
114
|
-
disabled: opt.disabled,
|
115
|
-
id: opt.value.toString(),
|
116
|
-
type: "radio",
|
117
|
-
value: opt.value,
|
118
|
-
name,
|
119
|
-
onChange: () => handleChange(opt)
|
120
|
-
}
|
121
|
-
),
|
122
|
-
/* @__PURE__ */ React.createElement(
|
123
|
-
"label",
|
124
|
-
{
|
125
|
-
htmlFor: opt.value.toString(),
|
126
|
-
className: cn(
|
127
|
-
"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",
|
128
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
129
|
-
)
|
130
|
-
},
|
131
|
-
opt.label
|
132
|
-
)
|
125
|
+
opt.label
|
133
126
|
)
|
134
|
-
)));
|
127
|
+
))));
|
135
128
|
case "cards":
|
136
129
|
return /* @__PURE__ */ React.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React.createElement(
|
137
130
|
"input",
|
package/dist/radio/index.js
CHANGED
@@ -226,45 +226,38 @@ var Radio = ({
|
|
226
226
|
))
|
227
227
|
);
|
228
228
|
case "bordered":
|
229
|
-
return /* @__PURE__ */ import_react2.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react2.default.createElement(
|
229
|
+
return /* @__PURE__ */ import_react2.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react2.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react2.default.createElement(
|
230
230
|
"div",
|
231
231
|
{
|
232
|
-
|
233
|
-
|
232
|
+
className: cn(
|
233
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
234
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
235
|
+
),
|
236
|
+
key: i + 1
|
234
237
|
},
|
235
238
|
/* @__PURE__ */ import_react2.default.createElement(
|
236
|
-
"
|
239
|
+
"input",
|
240
|
+
{
|
241
|
+
disabled: opt.disabled,
|
242
|
+
id: opt.value.toString(),
|
243
|
+
type: "radio",
|
244
|
+
value: opt.value,
|
245
|
+
name,
|
246
|
+
onChange: () => handleChange(opt)
|
247
|
+
}
|
248
|
+
),
|
249
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
250
|
+
"label",
|
237
251
|
{
|
252
|
+
htmlFor: opt.value.toString(),
|
238
253
|
className: cn(
|
239
|
-
"
|
240
|
-
|
241
|
-
)
|
242
|
-
key: i + 1
|
254
|
+
"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",
|
255
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
256
|
+
)
|
243
257
|
},
|
244
|
-
|
245
|
-
"input",
|
246
|
-
{
|
247
|
-
disabled: opt.disabled,
|
248
|
-
id: opt.value.toString(),
|
249
|
-
type: "radio",
|
250
|
-
value: opt.value,
|
251
|
-
name,
|
252
|
-
onChange: () => handleChange(opt)
|
253
|
-
}
|
254
|
-
),
|
255
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
256
|
-
"label",
|
257
|
-
{
|
258
|
-
htmlFor: opt.value.toString(),
|
259
|
-
className: cn(
|
260
|
-
"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",
|
261
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
262
|
-
)
|
263
|
-
},
|
264
|
-
opt.label
|
265
|
-
)
|
258
|
+
opt.label
|
266
259
|
)
|
267
|
-
)));
|
260
|
+
))));
|
268
261
|
case "cards":
|
269
262
|
return /* @__PURE__ */ import_react2.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react2.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react2.default.createElement(
|
270
263
|
"input",
|