@sikka/hawa 0.30.11-next → 0.30.13-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-MHGhfbpA.d.ts → Radio-uPqJwFGq.d.ts} +2 -2
- package/dist/{Radio-ZM5l4CwH.d.mts → Radio-zXrZBXwJ.d.mts} +2 -2
- package/dist/blocks/auth/index.js +1 -1
- package/dist/blocks/auth/index.mjs +1 -1
- package/dist/blocks/feedback/index.js +179 -177
- package/dist/blocks/feedback/index.mjs +1 -1
- package/dist/blocks/index.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +180 -178
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/pricing/index.js +179 -177
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs.map +1 -1
- package/dist/{chunk-3GZMGTI5.mjs → chunk-MPRDKNFN.mjs} +180 -178
- package/dist/chunk-WQK2TN4F.mjs +215 -0
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/destroyableCard/index.js.map +1 -1
- package/dist/destroyableCard/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +2 -2
- package/dist/elements/index.d.ts +2 -2
- package/dist/elements/index.js +179 -177
- package/dist/elements/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +180 -178
- package/dist/index.mjs +181 -179
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +179 -177
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +180 -178
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/radio/index.d.mts +2 -2
- package/dist/radio/index.d.ts +2 -2
- package/dist/radio/index.js +179 -177
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +180 -178
- package/dist/radio/index.mjs.map +1 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-U42KD2OQ.mjs +0 -213
package/dist/blocks/index.js
CHANGED
@@ -4259,7 +4259,7 @@ var RegisterForm = ({
|
|
4259
4259
|
(texts == null ? void 0 : texts.registerText) || "Register"
|
4260
4260
|
),
|
4261
4261
|
props.additionalButtons
|
4262
|
-
)), /* @__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) || "Already have an account?"), /* @__PURE__ */ import_react15.default.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))),
|
4262
|
+
)), props.onRouteToLogin && /* @__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) || "Already have an account?"), /* @__PURE__ */ import_react15.default.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))),
|
4263
4263
|
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react15.default.createElement(
|
4264
4264
|
CardFooter,
|
4265
4265
|
{
|
@@ -4700,207 +4700,209 @@ var z6 = __toESM(require("zod"));
|
|
4700
4700
|
|
4701
4701
|
// elements/radio/Radio.tsx
|
4702
4702
|
var import_react22 = __toESM(require("react"));
|
4703
|
-
var Radio = (
|
4704
|
-
|
4705
|
-
|
4706
|
-
|
4707
|
-
|
4708
|
-
|
4709
|
-
|
4710
|
-
|
4711
|
-
|
4712
|
-
|
4713
|
-
|
4714
|
-
|
4715
|
-
|
4716
|
-
|
4717
|
-
|
4718
|
-
|
4719
|
-
|
4720
|
-
|
4703
|
+
var Radio = (0, import_react22.forwardRef)(
|
4704
|
+
({
|
4705
|
+
design = "default",
|
4706
|
+
width = "default",
|
4707
|
+
size = "default",
|
4708
|
+
orientation = "horizontal",
|
4709
|
+
name,
|
4710
|
+
labelProps,
|
4711
|
+
tabsContainerClassName,
|
4712
|
+
forceHideHelperText = false,
|
4713
|
+
onChange,
|
4714
|
+
...props
|
4715
|
+
}, ref) => {
|
4716
|
+
var _a, _b, _c;
|
4717
|
+
const [selectedOption, setSelectedOption] = (0, import_react22.useState)(
|
4718
|
+
props.defaultValue || props.value
|
4719
|
+
);
|
4720
|
+
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
4721
|
+
let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
|
4721
4722
|
${props.disabled ? "" : "hover:hawa-bg-muted"}`;
|
4722
|
-
|
4723
|
-
|
4724
|
-
|
4725
|
-
|
4726
|
-
|
4727
|
-
|
4728
|
-
|
4729
|
-
|
4730
|
-
|
4731
|
-
|
4732
|
-
|
4733
|
-
|
4734
|
-
|
4735
|
-
|
4736
|
-
|
4737
|
-
|
4738
|
-
|
4739
|
-
|
4740
|
-
|
4741
|
-
|
4742
|
-
|
4743
|
-
|
4744
|
-
|
4745
|
-
|
4746
|
-
|
4747
|
-
|
4748
|
-
|
4749
|
-
|
4750
|
-
|
4751
|
-
|
4752
|
-
|
4753
|
-
|
4754
|
-
|
4755
|
-
|
4756
|
-
|
4757
|
-
|
4758
|
-
|
4759
|
-
|
4760
|
-
|
4761
|
-
{
|
4762
|
-
ref: parentRef,
|
4763
|
-
className: cn(
|
4764
|
-
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
4765
|
-
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
|
4766
|
-
orientationStyle[orientation],
|
4767
|
-
widthStyle[width],
|
4768
|
-
tabsContainerClassName
|
4769
|
-
)
|
4770
|
-
},
|
4771
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react22.default.createElement(
|
4772
|
-
"li",
|
4723
|
+
let orientationStyle = {
|
4724
|
+
horizontal: "hawa-flex hawa-flex-row",
|
4725
|
+
vertical: "hawa-flex hawa-flex-col"
|
4726
|
+
};
|
4727
|
+
let tabSizeStyle = {
|
4728
|
+
default: "hawa-py-2 hawa-px-4 hawa-text-sm",
|
4729
|
+
lg: "hawa-py-2 hawa-px-4",
|
4730
|
+
sm: "hawa-p-1.5 hawa-text-xs",
|
4731
|
+
xs: "hawa-p-1 hawa-text-[10px]"
|
4732
|
+
};
|
4733
|
+
let widthStyle = {
|
4734
|
+
none: "",
|
4735
|
+
default: "hawa-max-w-fit",
|
4736
|
+
full: "hawa-w-full"
|
4737
|
+
};
|
4738
|
+
const [parentDirection, setParentDirection] = import_react22.default.useState(
|
4739
|
+
null
|
4740
|
+
);
|
4741
|
+
const parentRef = (0, import_react22.useRef)(null);
|
4742
|
+
(0, import_react22.useEffect)(() => {
|
4743
|
+
var _a2;
|
4744
|
+
const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
|
4745
|
+
if (parentNode) {
|
4746
|
+
const dir = window.getComputedStyle(parentNode).direction;
|
4747
|
+
setParentDirection(dir);
|
4748
|
+
}
|
4749
|
+
});
|
4750
|
+
const handleChange = (opt) => {
|
4751
|
+
setSelectedOption(opt.value);
|
4752
|
+
if (onChange) {
|
4753
|
+
onChange(opt.value);
|
4754
|
+
} else {
|
4755
|
+
console.log("onChange was not provided");
|
4756
|
+
}
|
4757
|
+
};
|
4758
|
+
switch (design) {
|
4759
|
+
case "tabs":
|
4760
|
+
return /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react22.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react22.default.createElement(
|
4761
|
+
"ul",
|
4773
4762
|
{
|
4774
|
-
|
4775
|
-
|
4776
|
-
|
4777
|
-
|
4778
|
-
|
4763
|
+
ref: parentRef,
|
4764
|
+
className: cn(
|
4765
|
+
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
4766
|
+
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
|
4767
|
+
orientationStyle[orientation],
|
4768
|
+
widthStyle[width],
|
4769
|
+
tabsContainerClassName
|
4770
|
+
)
|
4771
|
+
},
|
4772
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react22.default.createElement(
|
4773
|
+
"li",
|
4774
|
+
{
|
4775
|
+
"aria-current": "page",
|
4776
|
+
onClick: () => {
|
4777
|
+
if (props.disabled)
|
4778
|
+
return;
|
4779
|
+
handleChange(opt);
|
4780
|
+
},
|
4781
|
+
className: cn(
|
4782
|
+
"hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
4783
|
+
!props.disabled && "hawa-cursor-pointer",
|
4784
|
+
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
4785
|
+
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
4786
|
+
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
4787
|
+
tabSizeStyle[size],
|
4788
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
4789
|
+
),
|
4790
|
+
key: o
|
4779
4791
|
},
|
4792
|
+
opt.icon && opt.icon,
|
4793
|
+
opt.label
|
4794
|
+
))
|
4795
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react22.default.createElement(
|
4796
|
+
"p",
|
4797
|
+
{
|
4798
|
+
className: cn(
|
4799
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
4800
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
4801
|
+
)
|
4802
|
+
},
|
4803
|
+
props.helperText
|
4804
|
+
));
|
4805
|
+
case "bordered":
|
4806
|
+
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(
|
4807
|
+
"div",
|
4808
|
+
{
|
4780
4809
|
className: cn(
|
4781
|
-
"
|
4782
|
-
|
4783
|
-
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
4784
|
-
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
4785
|
-
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
4786
|
-
tabSizeStyle[size],
|
4787
|
-
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
4810
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
4811
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
4788
4812
|
),
|
4789
|
-
key:
|
4813
|
+
key: i + 1
|
4790
4814
|
},
|
4791
|
-
|
4792
|
-
|
4793
|
-
|
4794
|
-
|
4795
|
-
|
4796
|
-
|
4797
|
-
|
4798
|
-
|
4799
|
-
|
4800
|
-
|
4801
|
-
},
|
4802
|
-
props.helperText
|
4803
|
-
));
|
4804
|
-
case "bordered":
|
4805
|
-
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(
|
4806
|
-
"div",
|
4807
|
-
{
|
4808
|
-
className: cn(
|
4809
|
-
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
4810
|
-
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
4815
|
+
/* @__PURE__ */ import_react22.default.createElement(
|
4816
|
+
"input",
|
4817
|
+
{
|
4818
|
+
disabled: opt.disabled,
|
4819
|
+
id: opt.value.toString(),
|
4820
|
+
type: "radio",
|
4821
|
+
value: opt.value,
|
4822
|
+
name,
|
4823
|
+
onChange: () => handleChange(opt)
|
4824
|
+
}
|
4811
4825
|
),
|
4812
|
-
|
4813
|
-
|
4814
|
-
|
4826
|
+
/* @__PURE__ */ import_react22.default.createElement(
|
4827
|
+
"label",
|
4828
|
+
{
|
4829
|
+
htmlFor: opt.value.toString(),
|
4830
|
+
className: cn(
|
4831
|
+
"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",
|
4832
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
4833
|
+
)
|
4834
|
+
},
|
4835
|
+
opt.label
|
4836
|
+
)
|
4837
|
+
))));
|
4838
|
+
case "cards":
|
4839
|
+
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(
|
4815
4840
|
"input",
|
4816
4841
|
{
|
4817
|
-
disabled: opt.disabled,
|
4818
|
-
id: opt.value.toString(),
|
4819
4842
|
type: "radio",
|
4820
|
-
|
4843
|
+
id: opt.value.toString(),
|
4821
4844
|
name,
|
4822
|
-
|
4845
|
+
value: opt.value.toString(),
|
4846
|
+
className: "hawa-peer hawa-hidden",
|
4847
|
+
required: true,
|
4848
|
+
disabled: opt.disabled
|
4823
4849
|
}
|
4824
|
-
),
|
4825
|
-
/* @__PURE__ */ import_react22.default.createElement(
|
4850
|
+
), /* @__PURE__ */ import_react22.default.createElement(
|
4826
4851
|
"label",
|
4827
4852
|
{
|
4828
4853
|
htmlFor: opt.value.toString(),
|
4829
4854
|
className: cn(
|
4830
|
-
"hawa-
|
4831
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-
|
4855
|
+
"hawa-inline-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-white hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
|
4856
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
|
4832
4857
|
)
|
4833
4858
|
},
|
4834
|
-
opt.label
|
4835
|
-
)
|
4836
|
-
|
4837
|
-
|
4838
|
-
|
4839
|
-
"input",
|
4840
|
-
{
|
4841
|
-
type: "radio",
|
4842
|
-
id: opt.value.toString(),
|
4843
|
-
name,
|
4844
|
-
value: opt.value.toString(),
|
4845
|
-
className: "hawa-peer hawa-hidden",
|
4846
|
-
required: true,
|
4847
|
-
disabled: opt.disabled
|
4848
|
-
}
|
4849
|
-
), /* @__PURE__ */ import_react22.default.createElement(
|
4850
|
-
"label",
|
4851
|
-
{
|
4852
|
-
htmlFor: opt.value.toString(),
|
4853
|
-
className: cn(
|
4854
|
-
"hawa-inline-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-white hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
|
4855
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
|
4856
|
-
)
|
4857
|
-
},
|
4858
|
-
/* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
4859
|
-
))));
|
4860
|
-
default:
|
4861
|
-
return /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react22.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react22.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react22.default.createElement(
|
4862
|
-
"div",
|
4863
|
-
{
|
4864
|
-
className: cn(
|
4865
|
-
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
4866
|
-
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
4867
|
-
),
|
4868
|
-
key: i + 1
|
4869
|
-
},
|
4870
|
-
/* @__PURE__ */ import_react22.default.createElement(
|
4871
|
-
"input",
|
4859
|
+
/* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
4860
|
+
))));
|
4861
|
+
default:
|
4862
|
+
return /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react22.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react22.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react22.default.createElement(
|
4863
|
+
"div",
|
4872
4864
|
{
|
4873
|
-
|
4874
|
-
|
4875
|
-
|
4876
|
-
|
4877
|
-
|
4878
|
-
|
4879
|
-
|
4880
|
-
|
4881
|
-
|
4882
|
-
|
4865
|
+
className: cn(
|
4866
|
+
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
4867
|
+
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
4868
|
+
),
|
4869
|
+
key: i + 1
|
4870
|
+
},
|
4871
|
+
/* @__PURE__ */ import_react22.default.createElement(
|
4872
|
+
"input",
|
4873
|
+
{
|
4874
|
+
disabled: opt.disabled,
|
4875
|
+
id: opt.value.toString(),
|
4876
|
+
type: "radio",
|
4877
|
+
value: opt.value,
|
4878
|
+
name,
|
4879
|
+
onChange: () => handleChange(opt)
|
4880
|
+
}
|
4881
|
+
),
|
4882
|
+
/* @__PURE__ */ import_react22.default.createElement(
|
4883
|
+
"label",
|
4884
|
+
{
|
4885
|
+
htmlFor: opt.value.toString(),
|
4886
|
+
className: cn(
|
4887
|
+
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
4888
|
+
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
4889
|
+
)
|
4890
|
+
},
|
4891
|
+
opt.label
|
4892
|
+
)
|
4893
|
+
))), /* @__PURE__ */ import_react22.default.createElement(
|
4894
|
+
"p",
|
4883
4895
|
{
|
4884
|
-
htmlFor: opt.value.toString(),
|
4885
4896
|
className: cn(
|
4886
|
-
"hawa-text-
|
4887
|
-
|
4897
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
4898
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
4888
4899
|
)
|
4889
4900
|
},
|
4890
|
-
|
4891
|
-
)
|
4892
|
-
|
4893
|
-
"p",
|
4894
|
-
{
|
4895
|
-
className: cn(
|
4896
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
4897
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
4898
|
-
)
|
4899
|
-
},
|
4900
|
-
props.helperText
|
4901
|
-
));
|
4901
|
+
props.helperText
|
4902
|
+
));
|
4903
|
+
}
|
4902
4904
|
}
|
4903
|
-
|
4905
|
+
);
|
4904
4906
|
|
4905
4907
|
// elements/textarea/Textarea.tsx
|
4906
4908
|
var React27 = __toESM(require("react"));
|
package/dist/blocks/index.mjs
CHANGED
@@ -26,7 +26,7 @@ import {
|
|
26
26
|
UncheckMark,
|
27
27
|
VeryBadEmoji,
|
28
28
|
VeryGoodEmoji
|
29
|
-
} from "../chunk-
|
29
|
+
} from "../chunk-MPRDKNFN.mjs";
|
30
30
|
import {
|
31
31
|
Button,
|
32
32
|
Card,
|
@@ -817,7 +817,7 @@ var RegisterForm = ({
|
|
817
817
|
(texts == null ? void 0 : texts.registerText) || "Register"
|
818
818
|
),
|
819
819
|
props.additionalButtons
|
820
|
-
)), /* @__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) || "Already have an account?"), /* @__PURE__ */ React3.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))),
|
820
|
+
)), props.onRouteToLogin && /* @__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) || "Already have an account?"), /* @__PURE__ */ React3.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))),
|
821
821
|
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React3.createElement(
|
822
822
|
CardFooter,
|
823
823
|
{
|