@sikka/hawa 0.27.7-next → 0.27.9-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/appLayout/index.js +2 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +2 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +9 -8
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +6 -5
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +1 -0
- package/dist/blocks/index.d.ts +1 -0
- package/dist/blocks/index.js +40 -25
- package/dist/blocks/index.mjs +33 -19
- package/dist/blocks/misc/index.js +9 -8
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.d.mts +3 -1
- package/dist/blocks/pricing/index.d.ts +3 -1
- package/dist/blocks/pricing/index.js +37 -22
- package/dist/blocks/pricing/index.mjs +35 -21
- package/dist/{chunk-7PMCIALZ.mjs → chunk-3QADSQDZ.mjs} +1 -1
- package/dist/{chunk-YVA24XDX.mjs → chunk-77PYXYCP.mjs} +1 -1
- package/dist/{chunk-FWXGRCMV.mjs → chunk-EZKMFH4D.mjs} +1 -1
- package/dist/{chunk-VH3BSHXE.mjs → chunk-H6RXLCDX.mjs} +6 -5
- package/dist/{chunk-HMOLUVOW.mjs → chunk-O3Y6K3YE.mjs} +6 -5
- package/dist/{chunk-22AYTFV7.mjs → chunk-PPOMNW7H.mjs} +1 -1
- package/dist/{chunk-JOONPMGB.mjs → chunk-QDNT7A7D.mjs} +1 -1
- package/dist/{chunk-3DLPFXOW.mjs → chunk-TZT5E6NW.mjs} +1 -1
- package/dist/{chunk-KLVQRGD5.mjs → chunk-YHED4XVA.mjs} +4 -4
- package/dist/{chunk-3V6NT6T7.mjs → chunk-YVH4TWNC.mjs} +4 -4
- package/dist/codeBlock/index.js +2 -1
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +2 -1
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js +6 -5
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +6 -5
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.js +6 -5
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +6 -5
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dataTable/index.js +9 -8
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +9 -8
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +4 -0
- package/dist/elements/index.d.ts +4 -0
- package/dist/elements/index.js +9 -8
- package/dist/elements/index.mjs +3 -3
- package/dist/index.css +19 -16
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +40 -25
- package/dist/index.mjs +40 -25
- package/dist/input/index.d.mts +2 -0
- package/dist/input/index.d.ts +2 -0
- package/dist/input/index.js +9 -8
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +9 -8
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +2 -1
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +2 -1
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.js +2 -1
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +2 -1
- package/dist/label/index.mjs.map +1 -1
- package/dist/layout/index.js +6 -5
- package/dist/layout/index.mjs +2 -2
- package/dist/passwordInput/index.js +9 -8
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +9 -8
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +6 -5
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +6 -5
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/radio/index.js +2 -1
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +2 -1
- package/dist/radio/index.mjs.map +1 -1
- package/dist/select/index.js +6 -5
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +6 -5
- package/dist/select/index.mjs.map +1 -1
- package/dist/signature/index.js +2 -1
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs +2 -1
- package/dist/signature/index.mjs.map +1 -1
- package/dist/simpleTable/index.js +4 -4
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs +4 -4
- package/dist/simpleTable/index.mjs.map +1 -1
- package/dist/skeleton/index.js +4 -4
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs +4 -4
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/stats/index.js +4 -4
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +4 -4
- package/dist/stats/index.mjs.map +1 -1
- package/dist/textarea/index.js +6 -5
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +6 -5
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/tooltip/index.d.mts +2 -0
- package/dist/tooltip/index.d.ts +2 -0
- package/dist/tooltip/index.js +2 -1
- package/dist/tooltip/index.js.map +1 -1
- package/dist/tooltip/index.mjs +2 -1
- package/dist/tooltip/index.mjs.map +1 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/elements/index.js
CHANGED
@@ -528,6 +528,7 @@ var Tooltip = ({
|
|
528
528
|
open,
|
529
529
|
content,
|
530
530
|
children,
|
531
|
+
disabled,
|
531
532
|
defaultOpen,
|
532
533
|
onOpenChange,
|
533
534
|
triggerProps,
|
@@ -545,7 +546,7 @@ var Tooltip = ({
|
|
545
546
|
/* @__PURE__ */ import_react2.default.createElement(
|
546
547
|
TooltipPrimitive.Root,
|
547
548
|
{
|
548
|
-
open,
|
549
|
+
open: !disabled && open,
|
549
550
|
defaultOpen,
|
550
551
|
onOpenChange,
|
551
552
|
...props
|
@@ -580,10 +581,10 @@ function Skeleton({
|
|
580
581
|
shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
|
581
582
|
};
|
582
583
|
const fadeStyle = {
|
583
|
-
bottom: "
|
584
|
-
top: "
|
585
|
-
right: "
|
586
|
-
left: "
|
584
|
+
bottom: "hawa-mask-fade-bottom",
|
585
|
+
top: "hawa-mask-fade-top",
|
586
|
+
right: "hawa-mask-fade-right",
|
587
|
+
left: "hawa-mask-fade-left "
|
587
588
|
};
|
588
589
|
return /* @__PURE__ */ import_react3.default.createElement(
|
589
590
|
"div",
|
@@ -2372,7 +2373,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2372
2373
|
)
|
2373
2374
|
},
|
2374
2375
|
props.label && /* @__PURE__ */ import_react9.default.createElement(Label2, { ...labelProps }, props.label),
|
2375
|
-
props.isLoading ? /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react9.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react9.default.createElement(
|
2376
|
+
/* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.prefixText && /* @__PURE__ */ import_react9.default.createElement("span", { className: cn("hawa-me-2 hawa-opacity-90", !forceHideHelperText && "hawa-mb-2") }, props.prefixText), props.isLoading ? /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react9.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react9.default.createElement(
|
2376
2377
|
"div",
|
2377
2378
|
{
|
2378
2379
|
className: cn(
|
@@ -2380,7 +2381,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2380
2381
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
2381
2382
|
)
|
2382
2383
|
}
|
2383
|
-
), /* @__PURE__ */ import_react9.default.createElement(
|
2384
|
+
), /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react9.default.createElement(
|
2384
2385
|
"div",
|
2385
2386
|
{
|
2386
2387
|
className: cn(
|
@@ -2448,7 +2449,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2448
2449
|
props.value ? String(props.value).length : 0,
|
2449
2450
|
"/",
|
2450
2451
|
props.maxLength
|
2451
|
-
)))
|
2452
|
+
))))
|
2452
2453
|
);
|
2453
2454
|
}
|
2454
2455
|
);
|
package/dist/elements/index.mjs
CHANGED
@@ -27,7 +27,7 @@ import {
|
|
27
27
|
TabsTrigger,
|
28
28
|
Textarea,
|
29
29
|
UncheckMark
|
30
|
-
} from "../chunk-
|
30
|
+
} from "../chunk-YHED4XVA.mjs";
|
31
31
|
import {
|
32
32
|
Sheet,
|
33
33
|
SheetClose,
|
@@ -39,7 +39,7 @@ import {
|
|
39
39
|
SheetPortal,
|
40
40
|
SheetTitle,
|
41
41
|
SheetTrigger
|
42
|
-
} from "../chunk-
|
42
|
+
} from "../chunk-QDNT7A7D.mjs";
|
43
43
|
import {
|
44
44
|
Button,
|
45
45
|
Card,
|
@@ -73,7 +73,7 @@ import {
|
|
73
73
|
buttonVariants,
|
74
74
|
calculateLuminance,
|
75
75
|
cn
|
76
|
-
} from "../chunk-
|
76
|
+
} from "../chunk-H6RXLCDX.mjs";
|
77
77
|
import {
|
78
78
|
__require
|
79
79
|
} from "../chunk-ZFXKCRJC.mjs";
|
package/dist/index.css
CHANGED
@@ -586,6 +586,22 @@ video {
|
|
586
586
|
text-decoration: underline;
|
587
587
|
color: var(--button-primary-700);
|
588
588
|
}
|
589
|
+
.hawa-mask-fade-bottom {
|
590
|
+
-webkit-mask-image: linear-gradient(to bottom, #d1d4dc, transparent);
|
591
|
+
mask-image: linear-gradient(to bottom, #d1d4dc, transparent);
|
592
|
+
}
|
593
|
+
.hawa-mask-fade-top {
|
594
|
+
-webkit-mask-image: linear-gradient(to top, #d1d4dc, transparent);
|
595
|
+
mask-image: linear-gradient(to top, #d1d4dc, transparent);
|
596
|
+
}
|
597
|
+
.hawa-mask-fade-right {
|
598
|
+
-webkit-mask-image: linear-gradient(to right, #d1d4dc, transparent);
|
599
|
+
mask-image: linear-gradient(to right, #d1d4dc, transparent);
|
600
|
+
}
|
601
|
+
.hawa-mask-fade-left {
|
602
|
+
-webkit-mask-image: linear-gradient(to left, #d1d4dc, transparent);
|
603
|
+
mask-image: linear-gradient(to left, #d1d4dc, transparent);
|
604
|
+
}
|
589
605
|
input[type="number"]::-webkit-inner-spin-button,
|
590
606
|
input[type="number"]::-webkit-outer-spin-button {
|
591
607
|
-webkit-appearance: none;
|
@@ -1387,6 +1403,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
1387
1403
|
.hawa-h-\[1px\] {
|
1388
1404
|
height: 1px;
|
1389
1405
|
}
|
1406
|
+
.hawa-h-\[200px\] {
|
1407
|
+
height: 200px;
|
1408
|
+
}
|
1390
1409
|
.hawa-h-\[20px\] {
|
1391
1410
|
height: 20px;
|
1392
1411
|
}
|
@@ -3035,22 +3054,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
3035
3054
|
--tw-shadow: 0.25rem 0.25rem hsl(var(--primary));
|
3036
3055
|
box-shadow: var(--tw-shadow);
|
3037
3056
|
}
|
3038
|
-
.\[mask-image\:linear-gradient\(to_bottom\2c \#D1D4DC_50\%\2c transparent_100\%\)\] {
|
3039
|
-
-webkit-mask-image: linear-gradient(to bottom,#D1D4DC 50%,transparent 100%);
|
3040
|
-
mask-image: linear-gradient(to bottom,#D1D4DC 50%,transparent 100%);
|
3041
|
-
}
|
3042
|
-
.\[mask-image\:linear-gradient\(to_left\2c \#D1D4DC_50\%\2c transparent_100\%\)\] {
|
3043
|
-
-webkit-mask-image: linear-gradient(to left,#D1D4DC 50%,transparent 100%);
|
3044
|
-
mask-image: linear-gradient(to left,#D1D4DC 50%,transparent 100%);
|
3045
|
-
}
|
3046
|
-
.\[mask-image\:linear-gradient\(to_right\2c \#D1D4DC_50\%\2c transparent_100\%\)\] {
|
3047
|
-
-webkit-mask-image: linear-gradient(to right,#D1D4DC 50%,transparent 100%);
|
3048
|
-
mask-image: linear-gradient(to right,#D1D4DC 50%,transparent 100%);
|
3049
|
-
}
|
3050
|
-
.\[mask-image\:linear-gradient\(to_top\2c \#D1D4DC_50\%\2c transparent_100\%\)\] {
|
3051
|
-
-webkit-mask-image: linear-gradient(to top,#D1D4DC 50%,transparent 100%);
|
3052
|
-
mask-image: linear-gradient(to top,#D1D4DC 50%,transparent 100%);
|
3053
|
-
}
|
3054
3057
|
body {
|
3055
3058
|
font-family: "IBM Plex Sans Arabic", sans-serif;
|
3056
3059
|
}
|
package/dist/index.d.mts
CHANGED
@@ -80,6 +80,8 @@ type TooltipTypes = {
|
|
80
80
|
delayDuration?: any;
|
81
81
|
/** Size of the tooltip. */
|
82
82
|
size?: "default" | "small" | "large";
|
83
|
+
/** Disables the tooltip. */
|
84
|
+
disabled?: boolean;
|
83
85
|
triggerProps?: TooltipPrimitive.TooltipTriggerProps;
|
84
86
|
contentProps?: TooltipPrimitive.TooltipContentProps;
|
85
87
|
providerProps?: TooltipPrimitive.TooltipProviderProps;
|
@@ -646,6 +648,7 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
646
648
|
countPosition?: "top" | "bottom" | "center";
|
647
649
|
popup?: boolean;
|
648
650
|
popupContent?: React__default.ReactNode;
|
651
|
+
prefixText?: any;
|
649
652
|
};
|
650
653
|
declare const Input: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
|
651
654
|
isLoading?: boolean | undefined;
|
@@ -676,6 +679,7 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
|
|
676
679
|
countPosition?: "top" | "bottom" | "center" | undefined;
|
677
680
|
popup?: boolean | undefined;
|
678
681
|
popupContent?: React__default.ReactNode;
|
682
|
+
prefixText?: any;
|
679
683
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
680
684
|
|
681
685
|
type CommandProps = React$1.ComponentPropsWithoutRef<typeof Command$1>;
|
@@ -1311,7 +1315,8 @@ type PricingCardProps = {
|
|
1311
1315
|
currentPlan?: boolean;
|
1312
1316
|
recommended?: boolean;
|
1313
1317
|
size?: "small" | "medium" | "large";
|
1314
|
-
|
1318
|
+
isLoadingPrice?: boolean;
|
1319
|
+
isLoadingCard?: boolean;
|
1315
1320
|
texts: PricingPlanTexts;
|
1316
1321
|
};
|
1317
1322
|
|
@@ -1757,6 +1762,7 @@ type ContactFormProps = {
|
|
1757
1762
|
declare const ContactForm: React__default.FC<ContactFormProps>;
|
1758
1763
|
|
1759
1764
|
type PricingPlansTypes = {
|
1765
|
+
loadingCards?: boolean;
|
1760
1766
|
plans: PricingCardProps[];
|
1761
1767
|
currencies: RadioOptionType[];
|
1762
1768
|
billingCycles: RadioOptionType[];
|
package/dist/index.d.ts
CHANGED
@@ -80,6 +80,8 @@ type TooltipTypes = {
|
|
80
80
|
delayDuration?: any;
|
81
81
|
/** Size of the tooltip. */
|
82
82
|
size?: "default" | "small" | "large";
|
83
|
+
/** Disables the tooltip. */
|
84
|
+
disabled?: boolean;
|
83
85
|
triggerProps?: TooltipPrimitive.TooltipTriggerProps;
|
84
86
|
contentProps?: TooltipPrimitive.TooltipContentProps;
|
85
87
|
providerProps?: TooltipPrimitive.TooltipProviderProps;
|
@@ -646,6 +648,7 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
646
648
|
countPosition?: "top" | "bottom" | "center";
|
647
649
|
popup?: boolean;
|
648
650
|
popupContent?: React__default.ReactNode;
|
651
|
+
prefixText?: any;
|
649
652
|
};
|
650
653
|
declare const Input: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
|
651
654
|
isLoading?: boolean | undefined;
|
@@ -676,6 +679,7 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
|
|
676
679
|
countPosition?: "top" | "bottom" | "center" | undefined;
|
677
680
|
popup?: boolean | undefined;
|
678
681
|
popupContent?: React__default.ReactNode;
|
682
|
+
prefixText?: any;
|
679
683
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
680
684
|
|
681
685
|
type CommandProps = React$1.ComponentPropsWithoutRef<typeof Command$1>;
|
@@ -1311,7 +1315,8 @@ type PricingCardProps = {
|
|
1311
1315
|
currentPlan?: boolean;
|
1312
1316
|
recommended?: boolean;
|
1313
1317
|
size?: "small" | "medium" | "large";
|
1314
|
-
|
1318
|
+
isLoadingPrice?: boolean;
|
1319
|
+
isLoadingCard?: boolean;
|
1315
1320
|
texts: PricingPlanTexts;
|
1316
1321
|
};
|
1317
1322
|
|
@@ -1757,6 +1762,7 @@ type ContactFormProps = {
|
|
1757
1762
|
declare const ContactForm: React__default.FC<ContactFormProps>;
|
1758
1763
|
|
1759
1764
|
type PricingPlansTypes = {
|
1765
|
+
loadingCards?: boolean;
|
1760
1766
|
plans: PricingCardProps[];
|
1761
1767
|
currencies: RadioOptionType[];
|
1762
1768
|
billingCycles: RadioOptionType[];
|
package/dist/index.js
CHANGED
@@ -594,6 +594,7 @@ var Tooltip = ({
|
|
594
594
|
open,
|
595
595
|
content,
|
596
596
|
children,
|
597
|
+
disabled,
|
597
598
|
defaultOpen,
|
598
599
|
onOpenChange,
|
599
600
|
triggerProps,
|
@@ -611,7 +612,7 @@ var Tooltip = ({
|
|
611
612
|
/* @__PURE__ */ import_react2.default.createElement(
|
612
613
|
TooltipPrimitive.Root,
|
613
614
|
{
|
614
|
-
open,
|
615
|
+
open: !disabled && open,
|
615
616
|
defaultOpen,
|
616
617
|
onOpenChange,
|
617
618
|
...props
|
@@ -646,10 +647,10 @@ function Skeleton({
|
|
646
647
|
shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
|
647
648
|
};
|
648
649
|
const fadeStyle = {
|
649
|
-
bottom: "
|
650
|
-
top: "
|
651
|
-
right: "
|
652
|
-
left: "
|
650
|
+
bottom: "hawa-mask-fade-bottom",
|
651
|
+
top: "hawa-mask-fade-top",
|
652
|
+
right: "hawa-mask-fade-right",
|
653
|
+
left: "hawa-mask-fade-left "
|
653
654
|
};
|
654
655
|
return /* @__PURE__ */ import_react3.default.createElement(
|
655
656
|
"div",
|
@@ -2438,7 +2439,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2438
2439
|
)
|
2439
2440
|
},
|
2440
2441
|
props.label && /* @__PURE__ */ import_react9.default.createElement(Label2, { ...labelProps }, props.label),
|
2441
|
-
props.isLoading ? /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react9.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react9.default.createElement(
|
2442
|
+
/* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.prefixText && /* @__PURE__ */ import_react9.default.createElement("span", { className: cn("hawa-me-2 hawa-opacity-90", !forceHideHelperText && "hawa-mb-2") }, props.prefixText), props.isLoading ? /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react9.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react9.default.createElement(
|
2442
2443
|
"div",
|
2443
2444
|
{
|
2444
2445
|
className: cn(
|
@@ -2446,7 +2447,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2446
2447
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
2447
2448
|
)
|
2448
2449
|
}
|
2449
|
-
), /* @__PURE__ */ import_react9.default.createElement(
|
2450
|
+
), /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react9.default.createElement(
|
2450
2451
|
"div",
|
2451
2452
|
{
|
2452
2453
|
className: cn(
|
@@ -2514,7 +2515,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2514
2515
|
props.value ? String(props.value).length : 0,
|
2515
2516
|
"/",
|
2516
2517
|
props.maxLength
|
2517
|
-
)))
|
2518
|
+
))))
|
2518
2519
|
);
|
2519
2520
|
}
|
2520
2521
|
);
|
@@ -11174,7 +11175,13 @@ var PricingCard = ({
|
|
11174
11175
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
11175
11176
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
11176
11177
|
};
|
11177
|
-
return /* @__PURE__ */ import_react67.default.createElement(
|
11178
|
+
return /* @__PURE__ */ import_react67.default.createElement(import_react67.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react67.default.createElement(
|
11179
|
+
Skeleton,
|
11180
|
+
{
|
11181
|
+
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
11182
|
+
fade: "bottom"
|
11183
|
+
}
|
11184
|
+
) : /* @__PURE__ */ import_react67.default.createElement(
|
11178
11185
|
Card,
|
11179
11186
|
{
|
11180
11187
|
dir: direction,
|
@@ -11193,7 +11200,7 @@ var PricingCard = ({
|
|
11193
11200
|
},
|
11194
11201
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
11195
11202
|
),
|
11196
|
-
/* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ import_react67.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react67.default.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ import_react67.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react67.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react67.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.
|
11203
|
+
/* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ import_react67.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react67.default.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ import_react67.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react67.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react67.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoadingPrice ? /* @__PURE__ */ import_react67.default.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ import_react67.default.createElement(import_react67.default.Fragment, null, props.noPrice ? /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ import_react67.default.createElement(import_react67.default.Fragment, null, /* @__PURE__ */ import_react67.default.createElement(import_react67.default.Fragment, null, /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react67.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ import_react67.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react67.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ import_react67.default.createElement("span", { className: "hawa-ml-1 hawa-whitespace-nowrap hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ import_react67.default.createElement(Separator2, null), /* @__PURE__ */ import_react67.default.createElement(
|
11197
11204
|
"div",
|
11198
11205
|
{
|
11199
11206
|
className: cn(
|
@@ -11237,22 +11244,29 @@ var PricingCard = ({
|
|
11237
11244
|
size: "small"
|
11238
11245
|
}
|
11239
11246
|
))),
|
11240
|
-
feature.hint && /* @__PURE__ */ import_react67.default.createElement(
|
11241
|
-
|
11247
|
+
feature.hint && /* @__PURE__ */ import_react67.default.createElement(
|
11248
|
+
Tooltip,
|
11242
11249
|
{
|
11243
|
-
|
11244
|
-
|
11245
|
-
viewBox: "0 0 24 24",
|
11246
|
-
fill: "none",
|
11247
|
-
stroke: "currentColor",
|
11248
|
-
strokeWidth: "2",
|
11249
|
-
strokeLinecap: "round",
|
11250
|
-
strokeLinejoin: "round"
|
11250
|
+
content: feature.hint,
|
11251
|
+
side: feature.hintSide
|
11251
11252
|
},
|
11252
|
-
/* @__PURE__ */ import_react67.default.createElement(
|
11253
|
-
|
11254
|
-
|
11255
|
-
|
11253
|
+
/* @__PURE__ */ import_react67.default.createElement(
|
11254
|
+
"svg",
|
11255
|
+
{
|
11256
|
+
xmlns: "http://www.w3.org/2000/svg",
|
11257
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
11258
|
+
viewBox: "0 0 24 24",
|
11259
|
+
fill: "none",
|
11260
|
+
stroke: "currentColor",
|
11261
|
+
strokeWidth: "2",
|
11262
|
+
strokeLinecap: "round",
|
11263
|
+
strokeLinejoin: "round"
|
11264
|
+
},
|
11265
|
+
/* @__PURE__ */ import_react67.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
11266
|
+
/* @__PURE__ */ import_react67.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
11267
|
+
/* @__PURE__ */ import_react67.default.createElement("path", { d: "M12 17h.01" })
|
11268
|
+
)
|
11269
|
+
)
|
11256
11270
|
);
|
11257
11271
|
})),
|
11258
11272
|
/* @__PURE__ */ import_react67.default.createElement(
|
@@ -11265,7 +11279,7 @@ var PricingCard = ({
|
|
11265
11279
|
(_i = props.texts) == null ? void 0 : _i.buttonText
|
11266
11280
|
)
|
11267
11281
|
))
|
11268
|
-
);
|
11282
|
+
));
|
11269
11283
|
};
|
11270
11284
|
|
11271
11285
|
// blocks/cards/ItemCard.tsx
|
@@ -11448,6 +11462,7 @@ var PricingPlans = ({
|
|
11448
11462
|
}
|
11449
11463
|
},
|
11450
11464
|
...plan,
|
11465
|
+
isLoadingCard: props.loadingCards || plan.isLoadingCard,
|
11451
11466
|
price: plan.price,
|
11452
11467
|
texts: {
|
11453
11468
|
...plan.texts,
|
package/dist/index.mjs
CHANGED
@@ -361,6 +361,7 @@ var Tooltip = ({
|
|
361
361
|
open,
|
362
362
|
content,
|
363
363
|
children,
|
364
|
+
disabled,
|
364
365
|
defaultOpen,
|
365
366
|
onOpenChange,
|
366
367
|
triggerProps,
|
@@ -378,7 +379,7 @@ var Tooltip = ({
|
|
378
379
|
/* @__PURE__ */ React3.createElement(
|
379
380
|
TooltipPrimitive.Root,
|
380
381
|
{
|
381
|
-
open,
|
382
|
+
open: !disabled && open,
|
382
383
|
defaultOpen,
|
383
384
|
onOpenChange,
|
384
385
|
...props
|
@@ -413,10 +414,10 @@ function Skeleton({
|
|
413
414
|
shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
|
414
415
|
};
|
415
416
|
const fadeStyle = {
|
416
|
-
bottom: "
|
417
|
-
top: "
|
418
|
-
right: "
|
419
|
-
left: "
|
417
|
+
bottom: "hawa-mask-fade-bottom",
|
418
|
+
top: "hawa-mask-fade-top",
|
419
|
+
right: "hawa-mask-fade-right",
|
420
|
+
left: "hawa-mask-fade-left "
|
420
421
|
};
|
421
422
|
return /* @__PURE__ */ React4.createElement(
|
422
423
|
"div",
|
@@ -2213,7 +2214,7 @@ var Input = forwardRef12(
|
|
2213
2214
|
)
|
2214
2215
|
},
|
2215
2216
|
props.label && /* @__PURE__ */ React20.createElement(Label2, { ...labelProps }, props.label),
|
2216
|
-
props.isLoading ? /* @__PURE__ */ React20.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React20.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React20.createElement(React20.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React20.createElement(
|
2217
|
+
/* @__PURE__ */ React20.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.prefixText && /* @__PURE__ */ React20.createElement("span", { className: cn("hawa-me-2 hawa-opacity-90", !forceHideHelperText && "hawa-mb-2") }, props.prefixText), props.isLoading ? /* @__PURE__ */ React20.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React20.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React20.createElement(React20.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React20.createElement(
|
2217
2218
|
"div",
|
2218
2219
|
{
|
2219
2220
|
className: cn(
|
@@ -2221,7 +2222,7 @@ var Input = forwardRef12(
|
|
2221
2222
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
2222
2223
|
)
|
2223
2224
|
}
|
2224
|
-
), /* @__PURE__ */ React20.createElement(
|
2225
|
+
), /* @__PURE__ */ React20.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ React20.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ React20.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React20.createElement(
|
2225
2226
|
"div",
|
2226
2227
|
{
|
2227
2228
|
className: cn(
|
@@ -2289,7 +2290,7 @@ var Input = forwardRef12(
|
|
2289
2290
|
props.value ? String(props.value).length : 0,
|
2290
2291
|
"/",
|
2291
2292
|
props.maxLength
|
2292
|
-
)))
|
2293
|
+
))))
|
2293
2294
|
);
|
2294
2295
|
}
|
2295
2296
|
);
|
@@ -10956,7 +10957,13 @@ var PricingCard = ({
|
|
10956
10957
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
10957
10958
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
10958
10959
|
};
|
10959
|
-
return /* @__PURE__ */ React94.createElement(
|
10960
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ React94.createElement(
|
10961
|
+
Skeleton,
|
10962
|
+
{
|
10963
|
+
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
10964
|
+
fade: "bottom"
|
10965
|
+
}
|
10966
|
+
) : /* @__PURE__ */ React94.createElement(
|
10960
10967
|
Card,
|
10961
10968
|
{
|
10962
10969
|
dir: direction,
|
@@ -10975,7 +10982,7 @@ var PricingCard = ({
|
|
10975
10982
|
},
|
10976
10983
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
10977
10984
|
),
|
10978
|
-
/* @__PURE__ */ React94.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React94.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React94.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ React94.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ React94.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React94.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ React94.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.
|
10985
|
+
/* @__PURE__ */ React94.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React94.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React94.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ React94.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ React94.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React94.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ React94.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoadingPrice ? /* @__PURE__ */ React94.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ React94.createElement(React94.Fragment, null, props.noPrice ? /* @__PURE__ */ React94.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ React94.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ React94.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ React94.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ React94.createElement("span", { className: "hawa-ml-1 hawa-whitespace-nowrap hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ React94.createElement(Separator2, null), /* @__PURE__ */ React94.createElement(
|
10979
10986
|
"div",
|
10980
10987
|
{
|
10981
10988
|
className: cn(
|
@@ -11019,22 +11026,29 @@ var PricingCard = ({
|
|
11019
11026
|
size: "small"
|
11020
11027
|
}
|
11021
11028
|
))),
|
11022
|
-
feature.hint && /* @__PURE__ */ React94.createElement(
|
11023
|
-
|
11029
|
+
feature.hint && /* @__PURE__ */ React94.createElement(
|
11030
|
+
Tooltip,
|
11024
11031
|
{
|
11025
|
-
|
11026
|
-
|
11027
|
-
viewBox: "0 0 24 24",
|
11028
|
-
fill: "none",
|
11029
|
-
stroke: "currentColor",
|
11030
|
-
strokeWidth: "2",
|
11031
|
-
strokeLinecap: "round",
|
11032
|
-
strokeLinejoin: "round"
|
11032
|
+
content: feature.hint,
|
11033
|
+
side: feature.hintSide
|
11033
11034
|
},
|
11034
|
-
/* @__PURE__ */ React94.createElement(
|
11035
|
-
|
11036
|
-
|
11037
|
-
|
11035
|
+
/* @__PURE__ */ React94.createElement(
|
11036
|
+
"svg",
|
11037
|
+
{
|
11038
|
+
xmlns: "http://www.w3.org/2000/svg",
|
11039
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
11040
|
+
viewBox: "0 0 24 24",
|
11041
|
+
fill: "none",
|
11042
|
+
stroke: "currentColor",
|
11043
|
+
strokeWidth: "2",
|
11044
|
+
strokeLinecap: "round",
|
11045
|
+
strokeLinejoin: "round"
|
11046
|
+
},
|
11047
|
+
/* @__PURE__ */ React94.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
11048
|
+
/* @__PURE__ */ React94.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
11049
|
+
/* @__PURE__ */ React94.createElement("path", { d: "M12 17h.01" })
|
11050
|
+
)
|
11051
|
+
)
|
11038
11052
|
);
|
11039
11053
|
})),
|
11040
11054
|
/* @__PURE__ */ React94.createElement(
|
@@ -11047,7 +11061,7 @@ var PricingCard = ({
|
|
11047
11061
|
(_i = props.texts) == null ? void 0 : _i.buttonText
|
11048
11062
|
)
|
11049
11063
|
))
|
11050
|
-
);
|
11064
|
+
));
|
11051
11065
|
};
|
11052
11066
|
|
11053
11067
|
// blocks/cards/ItemCard.tsx
|
@@ -11230,6 +11244,7 @@ var PricingPlans = ({
|
|
11230
11244
|
}
|
11231
11245
|
},
|
11232
11246
|
...plan,
|
11247
|
+
isLoadingCard: props.loadingCards || plan.isLoadingCard,
|
11233
11248
|
price: plan.price,
|
11234
11249
|
texts: {
|
11235
11250
|
...plan.texts,
|
package/dist/input/index.d.mts
CHANGED
@@ -38,6 +38,7 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
38
38
|
countPosition?: "top" | "bottom" | "center";
|
39
39
|
popup?: boolean;
|
40
40
|
popupContent?: React__default.ReactNode;
|
41
|
+
prefixText?: any;
|
41
42
|
};
|
42
43
|
declare const Input: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
|
43
44
|
isLoading?: boolean | undefined;
|
@@ -68,6 +69,7 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
|
|
68
69
|
countPosition?: "top" | "bottom" | "center" | undefined;
|
69
70
|
popup?: boolean | undefined;
|
70
71
|
popupContent?: React__default.ReactNode;
|
72
|
+
prefixText?: any;
|
71
73
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
72
74
|
|
73
75
|
export { Input, type TextFieldTypes };
|
package/dist/input/index.d.ts
CHANGED
@@ -38,6 +38,7 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
38
38
|
countPosition?: "top" | "bottom" | "center";
|
39
39
|
popup?: boolean;
|
40
40
|
popupContent?: React__default.ReactNode;
|
41
|
+
prefixText?: any;
|
41
42
|
};
|
42
43
|
declare const Input: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
|
43
44
|
isLoading?: boolean | undefined;
|
@@ -68,6 +69,7 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
|
|
68
69
|
countPosition?: "top" | "bottom" | "center" | undefined;
|
69
70
|
popup?: boolean | undefined;
|
70
71
|
popupContent?: React__default.ReactNode;
|
72
|
+
prefixText?: any;
|
71
73
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
72
74
|
|
73
75
|
export { Input, type TextFieldTypes };
|
package/dist/input/index.js
CHANGED
@@ -75,6 +75,7 @@ var Tooltip = ({
|
|
75
75
|
open,
|
76
76
|
content,
|
77
77
|
children,
|
78
|
+
disabled,
|
78
79
|
defaultOpen,
|
79
80
|
onOpenChange,
|
80
81
|
triggerProps,
|
@@ -92,7 +93,7 @@ var Tooltip = ({
|
|
92
93
|
/* @__PURE__ */ import_react.default.createElement(
|
93
94
|
TooltipPrimitive.Root,
|
94
95
|
{
|
95
|
-
open,
|
96
|
+
open: !disabled && open,
|
96
97
|
defaultOpen,
|
97
98
|
onOpenChange,
|
98
99
|
...props
|
@@ -169,10 +170,10 @@ function Skeleton({
|
|
169
170
|
shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
|
170
171
|
};
|
171
172
|
const fadeStyle = {
|
172
|
-
bottom: "
|
173
|
-
top: "
|
174
|
-
right: "
|
175
|
-
left: "
|
173
|
+
bottom: "hawa-mask-fade-bottom",
|
174
|
+
top: "hawa-mask-fade-top",
|
175
|
+
right: "hawa-mask-fade-right",
|
176
|
+
left: "hawa-mask-fade-left "
|
176
177
|
};
|
177
178
|
return /* @__PURE__ */ import_react2.default.createElement(
|
178
179
|
"div",
|
@@ -229,7 +230,7 @@ var Input = (0, import_react3.forwardRef)(
|
|
229
230
|
)
|
230
231
|
},
|
231
232
|
props.label && /* @__PURE__ */ import_react3.default.createElement(Label, { ...labelProps }, props.label),
|
232
|
-
props.isLoading ? /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react3.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react3.default.createElement(
|
233
|
+
/* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.prefixText && /* @__PURE__ */ import_react3.default.createElement("span", { className: cn("hawa-me-2 hawa-opacity-90", !forceHideHelperText && "hawa-mb-2") }, props.prefixText), props.isLoading ? /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react3.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react3.default.createElement(
|
233
234
|
"div",
|
234
235
|
{
|
235
236
|
className: cn(
|
@@ -237,7 +238,7 @@ var Input = (0, import_react3.forwardRef)(
|
|
237
238
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
238
239
|
)
|
239
240
|
}
|
240
|
-
), /* @__PURE__ */ import_react3.default.createElement(
|
241
|
+
), /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react3.default.createElement(
|
241
242
|
"div",
|
242
243
|
{
|
243
244
|
className: cn(
|
@@ -305,7 +306,7 @@ var Input = (0, import_react3.forwardRef)(
|
|
305
306
|
props.value ? String(props.value).length : 0,
|
306
307
|
"/",
|
307
308
|
props.maxLength
|
308
|
-
)))
|
309
|
+
))))
|
309
310
|
);
|
310
311
|
}
|
311
312
|
);
|