lizaui 9.0.2 → 9.0.3
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/button/index.cjs.js +1 -1
- package/dist/button/index.es.js +1 -1
- package/dist/calendar/index.cjs.js +47 -796
- package/dist/calendar/index.cjs.js.map +1 -1
- package/dist/calendar/index.es.js +11 -760
- package/dist/calendar/index.es.js.map +1 -1
- package/dist/checkbox/index.cjs.js +1 -1
- package/dist/checkbox/index.es.js +1 -1
- package/dist/chip/index.cjs.js +9 -9
- package/dist/chip/index.cjs.js.map +1 -1
- package/dist/chip/index.es.js +2 -2
- package/dist/chunks/{button-MKhaqe0K.js → button-B0fpJrMg.js} +3 -3
- package/dist/chunks/{button-MKhaqe0K.js.map → button-B0fpJrMg.js.map} +1 -1
- package/dist/chunks/{button-BKebd9mx.js → button-d5z8H59K.js} +13 -13
- package/dist/chunks/{button-BKebd9mx.js.map → button-d5z8H59K.js.map} +1 -1
- package/dist/chunks/{checkbox-DpLEjjb9.js → checkbox-C1Sssumg.js} +3 -3
- package/dist/chunks/{checkbox-DpLEjjb9.js.map → checkbox-C1Sssumg.js.map} +1 -1
- package/dist/chunks/{checkbox-BoxBfskJ.js → checkbox-ovjcc7jF.js} +15 -15
- package/dist/chunks/{checkbox-BoxBfskJ.js.map → checkbox-ovjcc7jF.js.map} +1 -1
- package/dist/chunks/{index-BHpUy2Ix.js → index-CEKmKomA.js} +2 -2
- package/dist/chunks/{index-BHpUy2Ix.js.map → index-CEKmKomA.js.map} +1 -1
- package/dist/chunks/{index-CATvGmak.js → index-C_sOsPRt.js} +5 -5
- package/dist/chunks/{index-CATvGmak.js.map → index-C_sOsPRt.js.map} +1 -1
- package/dist/chunks/{index-CNDtGisb.js → index-DaMyCNJ8.js} +2 -2
- package/dist/chunks/{index-CNDtGisb.js.map → index-DaMyCNJ8.js.map} +1 -1
- package/dist/chunks/{label-error-DkVGsF5w.js → label-error-BTCuInp7.js} +2 -2
- package/dist/chunks/{label-error-DkVGsF5w.js.map → label-error-BTCuInp7.js.map} +1 -1
- package/dist/chunks/label-error-C8lIsfXu.js +9 -0
- package/dist/chunks/{label-error-2QXnvbxJ.js.map → label-error-C8lIsfXu.js.map} +1 -1
- package/dist/chunks/{ripple-CTAKSntE.js → ripple-Bm6QamOy.js} +4 -4
- package/dist/chunks/{ripple-CTAKSntE.js.map → ripple-Bm6QamOy.js.map} +1 -1
- package/dist/chunks/{scroll-area-CNEU8oOo.js → scroll-area-C0NhSIO2.js} +31 -31
- package/dist/chunks/{scroll-area-CNEU8oOo.js.map → scroll-area-C0NhSIO2.js.map} +1 -1
- package/dist/chunks/{scroll-area-3h3tgoqp.js → scroll-area-JgKF61tc.js} +3 -3
- package/dist/chunks/{scroll-area-3h3tgoqp.js.map → scroll-area-JgKF61tc.js.map} +1 -1
- package/dist/chunks/{select-BW-plZA9.js → select-DGnc8VJi.js} +73 -73
- package/dist/chunks/{select-BW-plZA9.js.map → select-DGnc8VJi.js.map} +1 -1
- package/dist/chunks/{select-wGmz50gN.js → select-Dpyj5dUk.js} +3 -3
- package/dist/chunks/{select-wGmz50gN.js.map → select-Dpyj5dUk.js.map} +1 -1
- package/dist/chunks/{styled-components.browser.esm-DbYXI9h_.js → styled-components.browser.esm-CPR7VH_x.js} +3 -3
- package/dist/chunks/{styled-components.browser.esm-DbYXI9h_.js.map → styled-components.browser.esm-CPR7VH_x.js.map} +1 -1
- package/dist/chunks/{textarea-CPHr2RpC.js → textarea-D2_KC-J4.js} +98 -98
- package/dist/chunks/{textarea-CPHr2RpC.js.map → textarea-D2_KC-J4.js.map} +1 -1
- package/dist/chunks/{textarea-CXQO1MMF.js → textarea-_HQpXiCX.js} +8 -8
- package/dist/chunks/{textarea-CXQO1MMF.js.map → textarea-_HQpXiCX.js.map} +1 -1
- package/dist/chunks/{tooltip-05Mv2hjx.js → tooltip-GGFk8ALK.js} +15 -15
- package/dist/chunks/{tooltip-05Mv2hjx.js.map → tooltip-GGFk8ALK.js.map} +1 -1
- package/dist/chunks/{tooltip-D3J0_sJU.js → tooltip-JwIbppjO.js} +3 -3
- package/dist/chunks/{tooltip-D3J0_sJU.js.map → tooltip-JwIbppjO.js.map} +1 -1
- package/dist/chunks/tv-B0li4IsO.js +41 -0
- package/dist/chunks/tv-B0li4IsO.js.map +1 -0
- package/dist/chunks/tv-CGbWb8zP.js +40 -0
- package/dist/chunks/tv-CGbWb8zP.js.map +1 -0
- package/dist/chunks/utils-H80jjgLf.js +9 -0
- package/dist/chunks/{utils-BnY7EXd5.js.map → utils-H80jjgLf.js.map} +1 -1
- package/dist/chunks/utils-ij3i9zTT.js +8 -0
- package/dist/chunks/{utils-nIKS3WsJ.js.map → utils-ij3i9zTT.js.map} +1 -1
- package/dist/divider/index.cjs.js +4 -4
- package/dist/divider/index.es.js +1 -1
- package/dist/modal/index.cjs.js +17 -17
- package/dist/modal/index.es.js +3 -3
- package/dist/pagination/index.cjs.js +29 -29
- package/dist/pagination/index.cjs.js.map +1 -1
- package/dist/pagination/index.es.js +5 -5
- package/dist/phone-input/index.cjs.js +32 -31
- package/dist/phone-input/index.cjs.js.map +1 -1
- package/dist/phone-input/index.es.js +7 -6
- package/dist/phone-input/index.es.js.map +1 -1
- package/dist/ripple/index.cjs.js +1 -1
- package/dist/select-input/index.cjs.js +39 -39
- package/dist/select-input/index.cjs.js.map +1 -1
- package/dist/select-input/index.es.js +5 -5
- package/dist/table/index.cjs.js +44 -44
- package/dist/table/index.cjs.js.map +1 -1
- package/dist/table/index.es.js +5 -5
- package/dist/time-input/index.cjs.js +53 -53
- package/dist/time-input/index.cjs.js.map +1 -1
- package/dist/time-input/index.es.js +5 -5
- package/dist/tooltip/index.cjs.js +1 -1
- package/dist/tooltip/index.es.js +1 -1
- package/dist/ui/index.cjs.js +324 -324
- package/dist/ui/index.es.js +10 -10
- package/package.json +8 -2
- package/dist/chunks/bundle-mjs-BWLS65yY.js +0 -3003
- package/dist/chunks/bundle-mjs-BWLS65yY.js.map +0 -1
- package/dist/chunks/bundle-mjs-DB1IOBLD.js +0 -3004
- package/dist/chunks/bundle-mjs-DB1IOBLD.js.map +0 -1
- package/dist/chunks/clsx-CBkIpawf.js +0 -16
- package/dist/chunks/clsx-CBkIpawf.js.map +0 -1
- package/dist/chunks/clsx-DgYk2OaC.js +0 -17
- package/dist/chunks/clsx-DgYk2OaC.js.map +0 -1
- package/dist/chunks/label-error-2QXnvbxJ.js +0 -9
- package/dist/chunks/tv-C-wpiWwh.js +0 -274
- package/dist/chunks/tv-C-wpiWwh.js.map +0 -1
- package/dist/chunks/tv-C4gJMNo3.js +0 -275
- package/dist/chunks/tv-C4gJMNo3.js.map +0 -1
- package/dist/chunks/utils-BnY7EXd5.js +0 -9
- package/dist/chunks/utils-nIKS3WsJ.js +0 -8
- package/dist/chunks/v4-BQ42ZlDJ.js +0 -39
- package/dist/chunks/v4-BQ42ZlDJ.js.map +0 -1
- package/dist/chunks/v4-C3omdoBX.js +0 -40
- package/dist/chunks/v4-C3omdoBX.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const variants = require("./variants-BW2bI62Y.js");
|
|
5
|
-
const tv = require("./tv-
|
|
6
|
-
const index = require("./index-
|
|
7
|
-
const
|
|
8
|
-
const utils = require("./utils-
|
|
9
|
-
const clsx = require("
|
|
5
|
+
const tv = require("./tv-CGbWb8zP.js");
|
|
6
|
+
const index = require("./index-DaMyCNJ8.js");
|
|
7
|
+
const tailwindMerge = require("tailwind-merge");
|
|
8
|
+
const utils = require("./utils-ij3i9zTT.js");
|
|
9
|
+
const clsx = require("clsx");
|
|
10
10
|
const pattern = require("./pattern-D0UCtvgZ.js");
|
|
11
11
|
require("./assertion-C4-_LOAB.js");
|
|
12
|
-
const labelError = require("./label-error-
|
|
12
|
+
const labelError = require("./label-error-C8lIsfXu.js");
|
|
13
13
|
const framerMotion = require("framer-motion");
|
|
14
|
-
const index$1 = require("./index-
|
|
14
|
+
const index$1 = require("./index-C_sOsPRt.js");
|
|
15
15
|
const ReactDOM = require("react-dom");
|
|
16
|
-
const button = require("./button-
|
|
16
|
+
const button = require("./button-d5z8H59K.js");
|
|
17
17
|
function _interopNamespaceDefault(e) {
|
|
18
18
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
19
19
|
if (e) {
|
|
@@ -411,9 +411,9 @@ const badge = tv.tv({
|
|
|
411
411
|
const Badge = React__namespace.forwardRef(
|
|
412
412
|
({ className, variant, size, color, children, content, shape, placement, ...props2 }, ref) => {
|
|
413
413
|
const { base, badge: badgeClass } = badge({ variant, size, color, shape, placement });
|
|
414
|
-
return /* @__PURE__ */
|
|
414
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: base(), children: [
|
|
415
415
|
children,
|
|
416
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
417
417
|
"span",
|
|
418
418
|
{
|
|
419
419
|
ref,
|
|
@@ -481,13 +481,13 @@ const Input = React__namespace.forwardRef((props2, ref) => {
|
|
|
481
481
|
const resolvedId = id || inputId;
|
|
482
482
|
const isControlled = value !== void 0;
|
|
483
483
|
const isInvalid = !disabled && !!error && touched;
|
|
484
|
-
const iconClass = clsx
|
|
484
|
+
const iconClass = clsx("absolute top-0 h-full flex items-center cursor-pointer px-1.5 z-[1]", {
|
|
485
485
|
"text-red-700": isInvalid,
|
|
486
486
|
"text-gray-400": disabled,
|
|
487
487
|
"text-green-700": !error && touched,
|
|
488
488
|
"text-gray-500": !isInvalid
|
|
489
489
|
});
|
|
490
|
-
const paddingClass = clsx
|
|
490
|
+
const paddingClass = clsx(startContent && "pl-8", !startContent && "pl-2.5", endContent && "pr-8", !endContent && "pr-2.5");
|
|
491
491
|
const inputClass = utils.cn(inputStyles({ size, radius }), paddingClass, className);
|
|
492
492
|
const labelClass = utils.cn("form-control-label block font-normal text-sm text-foreground mb-1", {
|
|
493
493
|
"text-danger": isInvalid
|
|
@@ -501,15 +501,15 @@ const Input = React__namespace.forwardRef((props2, ref) => {
|
|
|
501
501
|
e.preventDefault();
|
|
502
502
|
onClear?.();
|
|
503
503
|
};
|
|
504
|
-
return /* @__PURE__ */
|
|
505
|
-
label && /* @__PURE__ */
|
|
504
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tailwindMerge.twMerge("w-full relative flex flex-col", classNameContainer), children: [
|
|
505
|
+
label && /* @__PURE__ */ jsxRuntime.jsxs("label", { htmlFor: resolvedId, className: labelClass, children: [
|
|
506
506
|
label,
|
|
507
507
|
" ",
|
|
508
|
-
required && /* @__PURE__ */
|
|
508
|
+
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-danger", children: "*" })
|
|
509
509
|
] }),
|
|
510
|
-
/* @__PURE__ */
|
|
511
|
-
startContent && /* @__PURE__ */
|
|
512
|
-
/* @__PURE__ */
|
|
510
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full relative", children: [
|
|
511
|
+
startContent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("left-1", iconClass, startClassName), children: startContent }),
|
|
512
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
513
513
|
"input",
|
|
514
514
|
{
|
|
515
515
|
ref,
|
|
@@ -525,15 +525,15 @@ const Input = React__namespace.forwardRef((props2, ref) => {
|
|
|
525
525
|
...rest
|
|
526
526
|
}
|
|
527
527
|
),
|
|
528
|
-
isClearable && !disabled && value ? /* @__PURE__ */
|
|
528
|
+
isClearable && !disabled && value ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
529
529
|
"div",
|
|
530
530
|
{
|
|
531
|
-
className:
|
|
531
|
+
className: tailwindMerge.twMerge(
|
|
532
532
|
"absolute top-0 h-full flex items-center px-1.5 z-[1] opacity-70 hover:opacity-100 cursor-pointer rounded-full",
|
|
533
533
|
"right-1"
|
|
534
534
|
),
|
|
535
535
|
onClick: handleClear,
|
|
536
|
-
children: /* @__PURE__ */
|
|
536
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", height: "18", viewBox: "0 0 24 24", width: "18", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
537
537
|
"path",
|
|
538
538
|
{
|
|
539
539
|
d: "M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",
|
|
@@ -542,9 +542,9 @@ const Input = React__namespace.forwardRef((props2, ref) => {
|
|
|
542
542
|
) })
|
|
543
543
|
}
|
|
544
544
|
) : null,
|
|
545
|
-
endContent && /* @__PURE__ */
|
|
545
|
+
endContent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("right-1", iconClass, endClassName), children: endContent })
|
|
546
546
|
] }),
|
|
547
|
-
!disabled && error && touched && isErrorText && /* @__PURE__ */
|
|
547
|
+
!disabled && error && touched && isErrorText && /* @__PURE__ */ jsxRuntime.jsx(labelError.LabelError, { text: error })
|
|
548
548
|
] });
|
|
549
549
|
});
|
|
550
550
|
Input.displayName = "Input";
|
|
@@ -575,7 +575,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
575
575
|
if (typeof window !== "undefined") {
|
|
576
576
|
window[Symbol.for("radix-ui")] = true;
|
|
577
577
|
}
|
|
578
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
579
579
|
});
|
|
580
580
|
Node2.displayName = `Primitive.${node}`;
|
|
581
581
|
return { ...primitive, [node]: Node2 };
|
|
@@ -635,9 +635,9 @@ const Switch = ({
|
|
|
635
635
|
const handleClick = () => {
|
|
636
636
|
if (!disabled) onChange(!valueCheck);
|
|
637
637
|
};
|
|
638
|
-
const classSpan =
|
|
638
|
+
const classSpan = tailwindMerge.twMerge(
|
|
639
639
|
"transition transform bg-white rounded-full shadow-sm flex justify-center items-center",
|
|
640
|
-
clsx
|
|
640
|
+
clsx(
|
|
641
641
|
size === "sm" && "w-4 h-4",
|
|
642
642
|
size === "md" && "w-5 h-5",
|
|
643
643
|
size === "lg" && "w-6 h-6",
|
|
@@ -646,29 +646,29 @@ const Switch = ({
|
|
|
646
646
|
size === "lg" && valueCheck && "translate-x-6"
|
|
647
647
|
)
|
|
648
648
|
);
|
|
649
|
-
const classLabel =
|
|
650
|
-
const classText =
|
|
649
|
+
const classLabel = tailwindMerge.twMerge(clsx(!valueCheck && "bg-default-200", disabled && "bg-default-100 hover:bg-default-100"));
|
|
650
|
+
const classText = tailwindMerge.twMerge(
|
|
651
651
|
"text-gray-500 leading-none",
|
|
652
|
-
clsx
|
|
652
|
+
clsx({
|
|
653
653
|
"text-sm": size === "sm" || size === "md",
|
|
654
654
|
"after:content-['*'] after:ml-0.5 after:text-green-500": required,
|
|
655
655
|
"after:text-gray-400 text-gray-400": disabled
|
|
656
656
|
})
|
|
657
657
|
);
|
|
658
|
-
const classDescription =
|
|
659
|
-
return /* @__PURE__ */
|
|
660
|
-
/* @__PURE__ */
|
|
661
|
-
positionLabel === "start" && (label || description) && /* @__PURE__ */
|
|
662
|
-
label && /* @__PURE__ */
|
|
663
|
-
description && /* @__PURE__ */
|
|
658
|
+
const classDescription = tailwindMerge.twMerge("text-xs text-gray-500 mt-1", disabled && "text-gray-400");
|
|
659
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tailwindMerge.twMerge(className), children: [
|
|
660
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx("flex gap-2", description && label ? "items-start" : "items-center"), children: [
|
|
661
|
+
positionLabel === "start" && (label || description) && /* @__PURE__ */ jsxRuntime.jsxs("div", { onClick: handleClick, className: "cursor-pointer", children: [
|
|
662
|
+
label && /* @__PURE__ */ jsxRuntime.jsx("p", { className: classText, children: label }),
|
|
663
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: classDescription, children: description })
|
|
664
664
|
] }),
|
|
665
|
-
/* @__PURE__ */
|
|
665
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
666
666
|
"label",
|
|
667
667
|
{
|
|
668
668
|
htmlFor: resolvedId,
|
|
669
669
|
className: utils.cn(SwitchClassProps({ size, color }), classLabel),
|
|
670
670
|
children: [
|
|
671
|
-
/* @__PURE__ */
|
|
671
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
672
672
|
"input",
|
|
673
673
|
{
|
|
674
674
|
type: "checkbox",
|
|
@@ -681,7 +681,7 @@ const Switch = ({
|
|
|
681
681
|
...props2
|
|
682
682
|
}
|
|
683
683
|
),
|
|
684
|
-
leftIcon && /* @__PURE__ */
|
|
684
|
+
leftIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
685
685
|
framerMotion.motion.div,
|
|
686
686
|
{
|
|
687
687
|
initial: false,
|
|
@@ -691,7 +691,7 @@ const Switch = ({
|
|
|
691
691
|
children: leftIcon
|
|
692
692
|
}
|
|
693
693
|
),
|
|
694
|
-
rightIcon && /* @__PURE__ */
|
|
694
|
+
rightIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
695
695
|
framerMotion.motion.div,
|
|
696
696
|
{
|
|
697
697
|
initial: false,
|
|
@@ -701,7 +701,7 @@ const Switch = ({
|
|
|
701
701
|
children: rightIcon
|
|
702
702
|
}
|
|
703
703
|
),
|
|
704
|
-
/* @__PURE__ */
|
|
704
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classSpan, children: thumbIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
705
705
|
framerMotion.motion.div,
|
|
706
706
|
{
|
|
707
707
|
initial: false,
|
|
@@ -713,12 +713,12 @@ const Switch = ({
|
|
|
713
713
|
]
|
|
714
714
|
}
|
|
715
715
|
),
|
|
716
|
-
positionLabel === "end" && (label || description) && /* @__PURE__ */
|
|
717
|
-
label && /* @__PURE__ */
|
|
718
|
-
description && /* @__PURE__ */
|
|
716
|
+
positionLabel === "end" && (label || description) && /* @__PURE__ */ jsxRuntime.jsxs("div", { onClick: handleClick, className: "cursor-pointer", children: [
|
|
717
|
+
label && /* @__PURE__ */ jsxRuntime.jsx("p", { className: classText, children: label }),
|
|
718
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: classDescription, children: description })
|
|
719
719
|
] })
|
|
720
720
|
] }),
|
|
721
|
-
!disabled && error && touched && /* @__PURE__ */
|
|
721
|
+
!disabled && error && touched && /* @__PURE__ */ jsxRuntime.jsx(labelError.LabelError, { text: error })
|
|
722
722
|
] });
|
|
723
723
|
};
|
|
724
724
|
Switch.displayName = "Switch";
|
|
@@ -735,7 +735,7 @@ function createContext2(rootComponentName, defaultContext) {
|
|
|
735
735
|
const Provider = (props2) => {
|
|
736
736
|
const { children, ...context } = props2;
|
|
737
737
|
const value = React__namespace.useMemo(() => context, Object.values(context));
|
|
738
|
-
return /* @__PURE__ */
|
|
738
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, { value, children });
|
|
739
739
|
};
|
|
740
740
|
Provider.displayName = rootComponentName + "Provider";
|
|
741
741
|
function useContext2(consumerName) {
|
|
@@ -756,7 +756,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
756
756
|
const { scope, children, ...context } = props2;
|
|
757
757
|
const Context = scope?.[scopeName]?.[index2] || BaseContext;
|
|
758
758
|
const value = React__namespace.useMemo(() => context, Object.values(context));
|
|
759
|
-
return /* @__PURE__ */
|
|
759
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, { value, children });
|
|
760
760
|
};
|
|
761
761
|
Provider.displayName = rootComponentName + "Provider";
|
|
762
762
|
function useContext2(consumerName, scope) {
|
|
@@ -972,7 +972,7 @@ var DismissableLayer = React__namespace.forwardRef(
|
|
|
972
972
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
973
973
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
974
974
|
}, []);
|
|
975
|
-
return /* @__PURE__ */
|
|
975
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
976
976
|
Primitive.div,
|
|
977
977
|
{
|
|
978
978
|
...layerProps,
|
|
@@ -1006,7 +1006,7 @@ var DismissableLayerBranch = React__namespace.forwardRef((props2, forwardedRef)
|
|
|
1006
1006
|
};
|
|
1007
1007
|
}
|
|
1008
1008
|
}, [context.branches]);
|
|
1009
|
-
return /* @__PURE__ */
|
|
1009
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { ...props2, ref: composedRefs });
|
|
1010
1010
|
});
|
|
1011
1011
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
1012
1012
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -1228,7 +1228,7 @@ var FocusScope = React__namespace.forwardRef((props2, forwardedRef) => {
|
|
|
1228
1228
|
},
|
|
1229
1229
|
[loop, trapped, focusScope.paused]
|
|
1230
1230
|
);
|
|
1231
|
-
return /* @__PURE__ */
|
|
1231
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
1232
1232
|
});
|
|
1233
1233
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
1234
1234
|
function focusFirst(candidates, { select = false } = {}) {
|
|
@@ -1325,7 +1325,7 @@ var Portal$1 = React__namespace.forwardRef((props2, forwardedRef) => {
|
|
|
1325
1325
|
const [mounted, setMounted] = React__namespace.useState(false);
|
|
1326
1326
|
useLayoutEffect2(() => setMounted(true), []);
|
|
1327
1327
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
1328
|
-
return container ? ReactDOM.createPortal(/* @__PURE__ */
|
|
1328
|
+
return container ? ReactDOM.createPortal(/* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
1329
1329
|
});
|
|
1330
1330
|
Portal$1.displayName = PORTAL_NAME$1;
|
|
1331
1331
|
function useStateMachine(initialState, machine) {
|
|
@@ -4346,7 +4346,7 @@ var Dialog$1 = (props2) => {
|
|
|
4346
4346
|
onChange: onOpenChange,
|
|
4347
4347
|
caller: DIALOG_NAME
|
|
4348
4348
|
});
|
|
4349
|
-
return /* @__PURE__ */
|
|
4349
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4350
4350
|
DialogProvider,
|
|
4351
4351
|
{
|
|
4352
4352
|
scope: __scopeDialog,
|
|
@@ -4370,7 +4370,7 @@ var DialogTrigger$1 = React__namespace.forwardRef(
|
|
|
4370
4370
|
const { __scopeDialog, ...triggerProps } = props2;
|
|
4371
4371
|
const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
|
|
4372
4372
|
const composedTriggerRef = index$1.useComposedRefs(forwardedRef, context.triggerRef);
|
|
4373
|
-
return /* @__PURE__ */
|
|
4373
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4374
4374
|
Primitive.button,
|
|
4375
4375
|
{
|
|
4376
4376
|
type: "button",
|
|
@@ -4393,7 +4393,7 @@ var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {
|
|
|
4393
4393
|
var DialogPortal$1 = (props2) => {
|
|
4394
4394
|
const { __scopeDialog, forceMount, children, container } = props2;
|
|
4395
4395
|
const context = useDialogContext(PORTAL_NAME, __scopeDialog);
|
|
4396
|
-
return /* @__PURE__ */
|
|
4396
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React__namespace.Children.map(children, (child) => /* @__PURE__ */ jsxRuntime.jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Portal$1, { asChild: true, container, children: child }) })) });
|
|
4397
4397
|
};
|
|
4398
4398
|
DialogPortal$1.displayName = PORTAL_NAME;
|
|
4399
4399
|
var OVERLAY_NAME = "DialogOverlay";
|
|
@@ -4402,7 +4402,7 @@ var DialogOverlay$1 = React__namespace.forwardRef(
|
|
|
4402
4402
|
const portalContext = usePortalContext(OVERLAY_NAME, props2.__scopeDialog);
|
|
4403
4403
|
const { forceMount = portalContext.forceMount, ...overlayProps } = props2;
|
|
4404
4404
|
const context = useDialogContext(OVERLAY_NAME, props2.__scopeDialog);
|
|
4405
|
-
return context.modal ? /* @__PURE__ */
|
|
4405
|
+
return context.modal ? /* @__PURE__ */ jsxRuntime.jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
|
|
4406
4406
|
}
|
|
4407
4407
|
);
|
|
4408
4408
|
DialogOverlay$1.displayName = OVERLAY_NAME;
|
|
@@ -4414,7 +4414,7 @@ var DialogOverlayImpl = React__namespace.forwardRef(
|
|
|
4414
4414
|
return (
|
|
4415
4415
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4416
4416
|
// ie. when `Overlay` and `Content` are siblings
|
|
4417
|
-
/* @__PURE__ */
|
|
4417
|
+
/* @__PURE__ */ jsxRuntime.jsx(ReactRemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4418
4418
|
Primitive.div,
|
|
4419
4419
|
{
|
|
4420
4420
|
"data-state": getState(context.open),
|
|
@@ -4432,7 +4432,7 @@ var DialogContent$1 = React__namespace.forwardRef(
|
|
|
4432
4432
|
const portalContext = usePortalContext(CONTENT_NAME, props2.__scopeDialog);
|
|
4433
4433
|
const { forceMount = portalContext.forceMount, ...contentProps } = props2;
|
|
4434
4434
|
const context = useDialogContext(CONTENT_NAME, props2.__scopeDialog);
|
|
4435
|
-
return /* @__PURE__ */
|
|
4435
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsxRuntime.jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntime.jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
|
4436
4436
|
}
|
|
4437
4437
|
);
|
|
4438
4438
|
DialogContent$1.displayName = CONTENT_NAME;
|
|
@@ -4445,7 +4445,7 @@ var DialogContentModal = React__namespace.forwardRef(
|
|
|
4445
4445
|
const content = contentRef.current;
|
|
4446
4446
|
if (content) return hideOthers(content);
|
|
4447
4447
|
}, []);
|
|
4448
|
-
return /* @__PURE__ */
|
|
4448
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4449
4449
|
DialogContentImpl,
|
|
4450
4450
|
{
|
|
4451
4451
|
...props2,
|
|
@@ -4475,7 +4475,7 @@ var DialogContentNonModal = React__namespace.forwardRef(
|
|
|
4475
4475
|
const context = useDialogContext(CONTENT_NAME, props2.__scopeDialog);
|
|
4476
4476
|
const hasInteractedOutsideRef = React__namespace.useRef(false);
|
|
4477
4477
|
const hasPointerDownOutsideRef = React__namespace.useRef(false);
|
|
4478
|
-
return /* @__PURE__ */
|
|
4478
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4479
4479
|
DialogContentImpl,
|
|
4480
4480
|
{
|
|
4481
4481
|
...props2,
|
|
@@ -4517,8 +4517,8 @@ var DialogContentImpl = React__namespace.forwardRef(
|
|
|
4517
4517
|
const contentRef = React__namespace.useRef(null);
|
|
4518
4518
|
const composedRefs = index$1.useComposedRefs(forwardedRef, contentRef);
|
|
4519
4519
|
useFocusGuards();
|
|
4520
|
-
return /* @__PURE__ */
|
|
4521
|
-
/* @__PURE__ */
|
|
4520
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4521
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4522
4522
|
FocusScope,
|
|
4523
4523
|
{
|
|
4524
4524
|
asChild: true,
|
|
@@ -4526,7 +4526,7 @@ var DialogContentImpl = React__namespace.forwardRef(
|
|
|
4526
4526
|
trapped: trapFocus,
|
|
4527
4527
|
onMountAutoFocus: onOpenAutoFocus,
|
|
4528
4528
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
4529
|
-
children: /* @__PURE__ */
|
|
4529
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4530
4530
|
DismissableLayer,
|
|
4531
4531
|
{
|
|
4532
4532
|
role: "dialog",
|
|
@@ -4541,9 +4541,9 @@ var DialogContentImpl = React__namespace.forwardRef(
|
|
|
4541
4541
|
)
|
|
4542
4542
|
}
|
|
4543
4543
|
),
|
|
4544
|
-
/* @__PURE__ */
|
|
4545
|
-
/* @__PURE__ */
|
|
4546
|
-
/* @__PURE__ */
|
|
4544
|
+
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4545
|
+
/* @__PURE__ */ jsxRuntime.jsx(TitleWarning, { titleId: context.titleId }),
|
|
4546
|
+
/* @__PURE__ */ jsxRuntime.jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
|
|
4547
4547
|
] })
|
|
4548
4548
|
] });
|
|
4549
4549
|
}
|
|
@@ -4553,7 +4553,7 @@ var DialogTitle$1 = React__namespace.forwardRef(
|
|
|
4553
4553
|
(props2, forwardedRef) => {
|
|
4554
4554
|
const { __scopeDialog, ...titleProps } = props2;
|
|
4555
4555
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
|
4556
|
-
return /* @__PURE__ */
|
|
4556
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
|
|
4557
4557
|
}
|
|
4558
4558
|
);
|
|
4559
4559
|
DialogTitle$1.displayName = TITLE_NAME;
|
|
@@ -4562,7 +4562,7 @@ var DialogDescription$1 = React__namespace.forwardRef(
|
|
|
4562
4562
|
(props2, forwardedRef) => {
|
|
4563
4563
|
const { __scopeDialog, ...descriptionProps } = props2;
|
|
4564
4564
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
|
4565
|
-
return /* @__PURE__ */
|
|
4565
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
|
|
4566
4566
|
}
|
|
4567
4567
|
);
|
|
4568
4568
|
DialogDescription$1.displayName = DESCRIPTION_NAME;
|
|
@@ -4571,7 +4571,7 @@ var DialogClose$1 = React__namespace.forwardRef(
|
|
|
4571
4571
|
(props2, forwardedRef) => {
|
|
4572
4572
|
const { __scopeDialog, ...closeProps } = props2;
|
|
4573
4573
|
const context = useDialogContext(CLOSE_NAME, __scopeDialog);
|
|
4574
|
-
return /* @__PURE__ */
|
|
4574
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4575
4575
|
Primitive.button,
|
|
4576
4576
|
{
|
|
4577
4577
|
type: "button",
|
|
@@ -4629,16 +4629,16 @@ var Title = DialogTitle$1;
|
|
|
4629
4629
|
var Description = DialogDescription$1;
|
|
4630
4630
|
var Close = DialogClose$1;
|
|
4631
4631
|
function Dialog({ ...props2 }) {
|
|
4632
|
-
return /* @__PURE__ */
|
|
4632
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Root, { "data-slot": "dialog", ...props2 });
|
|
4633
4633
|
}
|
|
4634
4634
|
function DialogTrigger({ ...props2 }) {
|
|
4635
|
-
return /* @__PURE__ */
|
|
4635
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Trigger, { "data-slot": "dialog-trigger", ...props2 });
|
|
4636
4636
|
}
|
|
4637
4637
|
function DialogPortal({ ...props2 }) {
|
|
4638
|
-
return /* @__PURE__ */
|
|
4638
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal, { "data-slot": "dialog-portal", ...props2 });
|
|
4639
4639
|
}
|
|
4640
4640
|
function DialogClose({ ...props2 }) {
|
|
4641
|
-
return /* @__PURE__ */
|
|
4641
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Close, { "data-slot": "dialog-close", ...props2 });
|
|
4642
4642
|
}
|
|
4643
4643
|
function DialogOverlay({ className, backdrop, ...props2 }) {
|
|
4644
4644
|
let overlayClass = "";
|
|
@@ -4653,7 +4653,7 @@ function DialogOverlay({ className, backdrop, ...props2 }) {
|
|
|
4653
4653
|
overlayClass = "backdrop-blur-md backdrop-saturate-150 bg-overlay/30";
|
|
4654
4654
|
break;
|
|
4655
4655
|
}
|
|
4656
|
-
return /* @__PURE__ */
|
|
4656
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4657
4657
|
Overlay,
|
|
4658
4658
|
{
|
|
4659
4659
|
"data-slot": "dialog-overlay",
|
|
@@ -4668,9 +4668,9 @@ function DialogOverlay({ className, backdrop, ...props2 }) {
|
|
|
4668
4668
|
}
|
|
4669
4669
|
const DialogContent = React__namespace.forwardRef(
|
|
4670
4670
|
({ className, children, showCloseButton = true, disabled = false, backdrop = "opaque", ...props2 }, ref) => {
|
|
4671
|
-
return /* @__PURE__ */
|
|
4672
|
-
/* @__PURE__ */
|
|
4673
|
-
/* @__PURE__ */
|
|
4671
|
+
return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
4672
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, { backdrop }),
|
|
4673
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4674
4674
|
Content,
|
|
4675
4675
|
{
|
|
4676
4676
|
"data-slot": "dialog-content",
|
|
@@ -4682,7 +4682,7 @@ const DialogContent = React__namespace.forwardRef(
|
|
|
4682
4682
|
...props2,
|
|
4683
4683
|
children: [
|
|
4684
4684
|
children,
|
|
4685
|
-
showCloseButton && /* @__PURE__ */
|
|
4685
|
+
showCloseButton && /* @__PURE__ */ jsxRuntime.jsx(Close, { "data-slot": "dialog-close", asChild: true, className: "absolute top-3 right-4 disabled:pointer-events-none", children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4686
4686
|
button.Button,
|
|
4687
4687
|
{
|
|
4688
4688
|
isIconOnly: true,
|
|
@@ -4692,11 +4692,11 @@ const DialogContent = React__namespace.forwardRef(
|
|
|
4692
4692
|
disabled,
|
|
4693
4693
|
className: "p-0 w-[36px] h-[36px] min-w-auto bg-default-100 hover:bg-default-200 text-default-500 hover:text-default-600 dark:bg-default-100 dark:hover:bg-default-200 dark:text-default-500 dark:hover:text-default-600 disabled:opacity-50 disabled:pointer-events-none",
|
|
4694
4694
|
children: [
|
|
4695
|
-
/* @__PURE__ */
|
|
4696
|
-
/* @__PURE__ */
|
|
4697
|
-
/* @__PURE__ */
|
|
4695
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "20", height: "20", fill: "currentColor", role: "img", "aria-hidden": "true", children: [
|
|
4696
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h21v21H0z" }),
|
|
4697
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m12.12 10 4.07-4.06a1.5 1.5 0 1 0-2.11-2.12L10 7.88 5.94 3.81a1.5 1.5 0 1 0-2.12 2.12L7.88 10l-4.07 4.06a1.5 1.5 0 0 0 0 2.12 1.51 1.51 0 0 0 2.13 0L10 12.12l4.06 4.07a1.45 1.45 0 0 0 1.06.44 1.5 1.5 0 0 0 1.06-2.56Z" })
|
|
4698
4698
|
] }),
|
|
4699
|
-
/* @__PURE__ */
|
|
4699
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
4700
4700
|
]
|
|
4701
4701
|
}
|
|
4702
4702
|
) }) })
|
|
@@ -4707,16 +4707,16 @@ const DialogContent = React__namespace.forwardRef(
|
|
|
4707
4707
|
}
|
|
4708
4708
|
);
|
|
4709
4709
|
function DialogHeader({ className, ...props2 }) {
|
|
4710
|
-
return /* @__PURE__ */
|
|
4710
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "dialog-header", className: utils.cn("flex flex-col gap-2 text-center sm:text-left", className), ...props2 });
|
|
4711
4711
|
}
|
|
4712
4712
|
function DialogFooter({ className, ...props2 }) {
|
|
4713
|
-
return /* @__PURE__ */
|
|
4713
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "dialog-footer", className: utils.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props2 });
|
|
4714
4714
|
}
|
|
4715
4715
|
function DialogTitle({ className, ...props2 }) {
|
|
4716
|
-
return /* @__PURE__ */
|
|
4716
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Title, { "data-slot": "dialog-title", className: utils.cn("text-lg leading-none font-semibold", className), ...props2 });
|
|
4717
4717
|
}
|
|
4718
4718
|
function DialogDescription({ className, ...props2 }) {
|
|
4719
|
-
return /* @__PURE__ */
|
|
4719
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Description, { "data-slot": "dialog-description", className: utils.cn("text-muted-foreground text-sm", className), ...props2 });
|
|
4720
4720
|
}
|
|
4721
4721
|
var Bt = Object.defineProperty, At = Object.defineProperties;
|
|
4722
4722
|
var kt = Object.getOwnPropertyDescriptors;
|
|
@@ -4939,27 +4939,27 @@ const Textarea = React__namespace.forwardRef(
|
|
|
4939
4939
|
const labelClass = utils.cn("block font-normal text-sm text-foreground mb-1", {
|
|
4940
4940
|
"text-danger": isInvalid
|
|
4941
4941
|
});
|
|
4942
|
-
const iconClass = clsx
|
|
4942
|
+
const iconClass = clsx("absolute top-0 h-full flex items-center cursor-pointer px-1.5 z-[1]", {
|
|
4943
4943
|
"text-red-700": isInvalid,
|
|
4944
4944
|
"text-gray-400": disabled,
|
|
4945
4945
|
"text-green-700": !error && touched,
|
|
4946
4946
|
"text-gray-500": !isInvalid
|
|
4947
4947
|
});
|
|
4948
|
-
const paddingClass = clsx
|
|
4948
|
+
const paddingClass = clsx(startContent && "pl-8", !startContent && "pl-2.5", endContent && "pr-8", !endContent && "pr-2.5");
|
|
4949
4949
|
const handleClear = (e) => {
|
|
4950
4950
|
if (disabled) return;
|
|
4951
4951
|
e.preventDefault();
|
|
4952
4952
|
onClear?.();
|
|
4953
4953
|
};
|
|
4954
|
-
return /* @__PURE__ */
|
|
4955
|
-
label && /* @__PURE__ */
|
|
4954
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tailwindMerge.twMerge("w-full relative flex flex-col", classNameContainer), children: [
|
|
4955
|
+
label && /* @__PURE__ */ jsxRuntime.jsxs("label", { htmlFor: resolvedId, className: labelClass, children: [
|
|
4956
4956
|
label,
|
|
4957
4957
|
" ",
|
|
4958
|
-
required && /* @__PURE__ */
|
|
4958
|
+
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-danger", children: "*" })
|
|
4959
4959
|
] }),
|
|
4960
|
-
/* @__PURE__ */
|
|
4961
|
-
startContent && /* @__PURE__ */
|
|
4962
|
-
/* @__PURE__ */
|
|
4960
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full relative", children: [
|
|
4961
|
+
startContent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("left-1", iconClass, startClassName), children: startContent }),
|
|
4962
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4963
4963
|
"textarea",
|
|
4964
4964
|
{
|
|
4965
4965
|
"data-slot": "textarea",
|
|
@@ -4974,17 +4974,17 @@ const Textarea = React__namespace.forwardRef(
|
|
|
4974
4974
|
...props2
|
|
4975
4975
|
}
|
|
4976
4976
|
),
|
|
4977
|
-
isClearable && !disabled && value ? /* @__PURE__ */
|
|
4977
|
+
isClearable && !disabled && value ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4978
4978
|
"div",
|
|
4979
4979
|
{
|
|
4980
|
-
className:
|
|
4980
|
+
className: tailwindMerge.twMerge(
|
|
4981
4981
|
"absolute top-0 h-full flex items-center px-1.5 z-[1] opacity-70 hover:opacity-100 cursor-pointer rounded-full",
|
|
4982
4982
|
"right-1",
|
|
4983
4983
|
disabled ? "opacity-50 cursor-not-allowed" : "opacity-70 hover:opacity-100 cursor-pointer"
|
|
4984
4984
|
// Estilo normal
|
|
4985
4985
|
),
|
|
4986
4986
|
onClick: handleClear,
|
|
4987
|
-
children: /* @__PURE__ */
|
|
4987
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", height: "18", viewBox: "0 0 24 24", width: "18", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4988
4988
|
"path",
|
|
4989
4989
|
{
|
|
4990
4990
|
d: "M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",
|
|
@@ -4993,7 +4993,7 @@ const Textarea = React__namespace.forwardRef(
|
|
|
4993
4993
|
) })
|
|
4994
4994
|
}
|
|
4995
4995
|
) : null,
|
|
4996
|
-
endContent && /* @__PURE__ */
|
|
4996
|
+
endContent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("right-1", iconClass, endClassName), children: endContent })
|
|
4997
4997
|
] })
|
|
4998
4998
|
] });
|
|
4999
4999
|
}
|
|
@@ -5043,4 +5043,4 @@ exports.useControllableState = useControllableState;
|
|
|
5043
5043
|
exports.useFocusGuards = useFocusGuards;
|
|
5044
5044
|
exports.useId = useId$1;
|
|
5045
5045
|
exports.useLayoutEffect2 = useLayoutEffect2;
|
|
5046
|
-
//# sourceMappingURL=textarea-
|
|
5046
|
+
//# sourceMappingURL=textarea-D2_KC-J4.js.map
|