@deepnoid/ui 0.1.149 → 0.1.150
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/.turbo/turbo-build.log +164 -164
- package/dist/{chunk-V4QN7YF6.mjs → chunk-5WRGQA43.mjs} +1 -1
- package/dist/{chunk-M523N4SD.mjs → chunk-7GSGUYRN.mjs} +4 -4
- package/dist/{chunk-WD5NOXWK.mjs → chunk-K35MQWDR.mjs} +5 -3
- package/dist/{chunk-3D5ZOAUR.mjs → chunk-OUA32RDP.mjs} +1 -1
- package/dist/{chunk-KBT5RMIE.mjs → chunk-QP74BKWC.mjs} +4 -4
- package/dist/components/breadcrumb/breadcrumb.mjs +3 -3
- package/dist/components/breadcrumb/index.mjs +3 -3
- package/dist/components/button/button.mjs +1 -1
- package/dist/components/button/icon-button.mjs +1 -1
- package/dist/components/button/index.mjs +4 -4
- package/dist/components/charts/index.mjs +3 -3
- package/dist/components/chip/chip.mjs +1 -1
- package/dist/components/chip/index.mjs +1 -1
- package/dist/components/fileUpload/fileUpload.js +5 -3
- package/dist/components/fileUpload/fileUpload.mjs +4 -4
- package/dist/components/fileUpload/index.js +5 -3
- package/dist/components/fileUpload/index.mjs +4 -4
- package/dist/components/input/index.js +5 -3
- package/dist/components/input/index.mjs +2 -2
- package/dist/components/input/input.js +5 -3
- package/dist/components/input/input.mjs +2 -2
- package/dist/components/list/index.mjs +3 -3
- package/dist/components/list/listItem.mjs +3 -3
- package/dist/components/modal/index.mjs +5 -5
- package/dist/components/modal/modal.mjs +5 -5
- package/dist/components/pagination/index.js +5 -3
- package/dist/components/pagination/index.mjs +3 -3
- package/dist/components/pagination/pagination.js +5 -3
- package/dist/components/pagination/pagination.mjs +3 -3
- package/dist/components/picker/datePicker.js +5 -3
- package/dist/components/picker/datePicker.mjs +4 -4
- package/dist/components/picker/index.js +5 -3
- package/dist/components/picker/index.mjs +4 -4
- package/dist/components/picker/timePicker.mjs +1 -1
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/select/select.mjs +1 -1
- package/dist/components/table/index.js +5 -3
- package/dist/components/table/index.mjs +6 -6
- package/dist/components/table/table-body.js +5 -3
- package/dist/components/table/table-body.mjs +6 -6
- package/dist/components/table/table-head.js +5 -3
- package/dist/components/table/table-head.mjs +6 -6
- package/dist/components/table/table.js +5 -3
- package/dist/components/table/table.mjs +6 -6
- package/dist/components/timePicker/calendar.mjs +1 -1
- package/dist/components/toast/index.mjs +1 -1
- package/dist/components/toast/toast.mjs +1 -1
- package/dist/components/toast/use-toast.mjs +1 -1
- package/dist/index.js +5 -3
- package/dist/index.mjs +41 -41
- package/package.json +1 -1
- package/dist/{chunk-7HWPWDYW.mjs → chunk-DKIMBPI6.mjs} +3 -3
- package/dist/{chunk-J64OQUOI.mjs → chunk-ERFDBZ5A.mjs} +3 -3
- package/dist/{chunk-LWSGRTWO.mjs → chunk-KWVJOJCT.mjs} +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
pagination_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-5WRGQA43.mjs";
|
|
5
5
|
import "../../chunk-F3HENRVM.mjs";
|
|
6
6
|
import "../../chunk-2GCSFWHD.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-K35MQWDR.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
10
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
11
10
|
import "../../chunk-NX4FTFY3.mjs";
|
|
11
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
12
12
|
import "../../chunk-CDXBML6O.mjs";
|
|
13
13
|
import "../../chunk-27Y6K5NK.mjs";
|
|
14
14
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -6199,6 +6199,7 @@ var Input = (0, import_react6.forwardRef)((originalProps, ref) => {
|
|
|
6199
6199
|
const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
|
|
6200
6200
|
const { classNames, label, helperMessage, errorMessage, startContent, endContent, ...inputProps } = props;
|
|
6201
6201
|
const inputRef = (0, import_react6.useRef)(null);
|
|
6202
|
+
const hasError = errorMessage !== void 0;
|
|
6202
6203
|
const slots = (0, import_react6.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
6203
6204
|
const getContentProps = (0, import_react6.useCallback)(
|
|
6204
6205
|
() => ({
|
|
@@ -6243,7 +6244,7 @@ var Input = (0, import_react6.forwardRef)((originalProps, ref) => {
|
|
|
6243
6244
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
6244
6245
|
};
|
|
6245
6246
|
return (0, import_react6.cloneElement)(endContent, mergedProps);
|
|
6246
|
-
} else if (
|
|
6247
|
+
} else if (hasError) {
|
|
6247
6248
|
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
6248
6249
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
|
|
6249
6250
|
} else {
|
|
@@ -6295,7 +6296,7 @@ var Input = (0, import_react6.forwardRef)((originalProps, ref) => {
|
|
|
6295
6296
|
]
|
|
6296
6297
|
}
|
|
6297
6298
|
),
|
|
6298
|
-
helperMessage && !
|
|
6299
|
+
helperMessage && !hasError && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6299
6300
|
"p",
|
|
6300
6301
|
{
|
|
6301
6302
|
className: clsx(
|
|
@@ -6305,7 +6306,8 @@ var Input = (0, import_react6.forwardRef)((originalProps, ref) => {
|
|
|
6305
6306
|
children: helperMessage
|
|
6306
6307
|
}
|
|
6307
6308
|
),
|
|
6308
|
-
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
|
|
6309
|
+
errorMessage && errorMessage.trim() !== "" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
|
|
6310
|
+
errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: clsx("error", "sr-only"), "aria-hidden": "true" })
|
|
6309
6311
|
] })
|
|
6310
6312
|
]
|
|
6311
6313
|
}
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
datePickerStyle,
|
|
4
4
|
datePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-7GSGUYRN.mjs";
|
|
6
6
|
import "../../chunk-4DESGO3D.mjs";
|
|
7
7
|
import "../../chunk-FWFEKWWD.mjs";
|
|
8
8
|
import "../../chunk-2GCSFWHD.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-K35MQWDR.mjs";
|
|
10
10
|
import "../../chunk-MY5U63QO.mjs";
|
|
11
|
-
import "../../chunk-Q364C3FI.mjs";
|
|
12
11
|
import "../../chunk-ITWKPTSD.mjs";
|
|
13
12
|
import "../../chunk-6F4GD2PP.mjs";
|
|
14
13
|
import "../../chunk-WYEUAXY7.mjs";
|
|
@@ -17,8 +16,9 @@ import "../../chunk-LXHUO6VM.mjs";
|
|
|
17
16
|
import "../../chunk-SZL743JC.mjs";
|
|
18
17
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
19
18
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
20
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-Q364C3FI.mjs";
|
|
21
20
|
import "../../chunk-NX4FTFY3.mjs";
|
|
21
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
22
22
|
import "../../chunk-CDXBML6O.mjs";
|
|
23
23
|
import "../../chunk-27Y6K5NK.mjs";
|
|
24
24
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -6204,6 +6204,7 @@ var Input = (0, import_react6.forwardRef)((originalProps, ref) => {
|
|
|
6204
6204
|
const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
|
|
6205
6205
|
const { classNames, label, helperMessage, errorMessage, startContent, endContent, ...inputProps } = props;
|
|
6206
6206
|
const inputRef = (0, import_react6.useRef)(null);
|
|
6207
|
+
const hasError = errorMessage !== void 0;
|
|
6207
6208
|
const slots = (0, import_react6.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
6208
6209
|
const getContentProps = (0, import_react6.useCallback)(
|
|
6209
6210
|
() => ({
|
|
@@ -6248,7 +6249,7 @@ var Input = (0, import_react6.forwardRef)((originalProps, ref) => {
|
|
|
6248
6249
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
6249
6250
|
};
|
|
6250
6251
|
return (0, import_react6.cloneElement)(endContent, mergedProps);
|
|
6251
|
-
} else if (
|
|
6252
|
+
} else if (hasError) {
|
|
6252
6253
|
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
6253
6254
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
|
|
6254
6255
|
} else {
|
|
@@ -6300,7 +6301,7 @@ var Input = (0, import_react6.forwardRef)((originalProps, ref) => {
|
|
|
6300
6301
|
]
|
|
6301
6302
|
}
|
|
6302
6303
|
),
|
|
6303
|
-
helperMessage && !
|
|
6304
|
+
helperMessage && !hasError && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6304
6305
|
"p",
|
|
6305
6306
|
{
|
|
6306
6307
|
className: clsx(
|
|
@@ -6310,7 +6311,8 @@ var Input = (0, import_react6.forwardRef)((originalProps, ref) => {
|
|
|
6310
6311
|
children: helperMessage
|
|
6311
6312
|
}
|
|
6312
6313
|
),
|
|
6313
|
-
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
|
|
6314
|
+
errorMessage && errorMessage.trim() !== "" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
|
|
6315
|
+
errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: clsx("error", "sr-only"), "aria-hidden": "true" })
|
|
6314
6316
|
] })
|
|
6315
6317
|
]
|
|
6316
6318
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "../../chunk-4VWG4726.mjs";
|
|
3
3
|
import {
|
|
4
4
|
datePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-7GSGUYRN.mjs";
|
|
6
6
|
import {
|
|
7
7
|
day_default
|
|
8
8
|
} from "../../chunk-4DESGO3D.mjs";
|
|
@@ -13,9 +13,8 @@ import "../../chunk-QCEKPS7U.mjs";
|
|
|
13
13
|
import "../../chunk-5HMTKXVV.mjs";
|
|
14
14
|
import "../../chunk-FWFEKWWD.mjs";
|
|
15
15
|
import "../../chunk-2GCSFWHD.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-K35MQWDR.mjs";
|
|
17
17
|
import "../../chunk-MY5U63QO.mjs";
|
|
18
|
-
import "../../chunk-Q364C3FI.mjs";
|
|
19
18
|
import "../../chunk-ITWKPTSD.mjs";
|
|
20
19
|
import "../../chunk-6F4GD2PP.mjs";
|
|
21
20
|
import "../../chunk-WYEUAXY7.mjs";
|
|
@@ -24,8 +23,9 @@ import "../../chunk-LXHUO6VM.mjs";
|
|
|
24
23
|
import "../../chunk-SZL743JC.mjs";
|
|
25
24
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
26
25
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
27
|
-
import "../../chunk-
|
|
26
|
+
import "../../chunk-Q364C3FI.mjs";
|
|
28
27
|
import "../../chunk-NX4FTFY3.mjs";
|
|
28
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
29
29
|
import "../../chunk-CDXBML6O.mjs";
|
|
30
30
|
import "../../chunk-27Y6K5NK.mjs";
|
|
31
31
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -7,8 +7,8 @@ import "../../chunk-QCEKPS7U.mjs";
|
|
|
7
7
|
import "../../chunk-5HMTKXVV.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
10
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
11
10
|
import "../../chunk-NX4FTFY3.mjs";
|
|
11
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
12
12
|
import "../../chunk-CDXBML6O.mjs";
|
|
13
13
|
import "../../chunk-27Y6K5NK.mjs";
|
|
14
14
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
} from "../../chunk-5HMTKXVV.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
7
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
8
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
9
8
|
import "../../chunk-NX4FTFY3.mjs";
|
|
9
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
10
10
|
import "../../chunk-CDXBML6O.mjs";
|
|
11
11
|
import "../../chunk-27Y6K5NK.mjs";
|
|
12
12
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
} from "../../chunk-5HMTKXVV.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
6
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
7
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
8
7
|
import "../../chunk-NX4FTFY3.mjs";
|
|
8
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
9
9
|
import "../../chunk-CDXBML6O.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -5492,6 +5492,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5492
5492
|
const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
|
|
5493
5493
|
const { classNames, label, helperMessage, errorMessage, startContent, endContent, ...inputProps } = props;
|
|
5494
5494
|
const inputRef = (0, import_react3.useRef)(null);
|
|
5495
|
+
const hasError = errorMessage !== void 0;
|
|
5495
5496
|
const slots = (0, import_react3.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
5496
5497
|
const getContentProps = (0, import_react3.useCallback)(
|
|
5497
5498
|
() => ({
|
|
@@ -5536,7 +5537,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5536
5537
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
5537
5538
|
};
|
|
5538
5539
|
return (0, import_react3.cloneElement)(endContent, mergedProps);
|
|
5539
|
-
} else if (
|
|
5540
|
+
} else if (hasError) {
|
|
5540
5541
|
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
5541
5542
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
|
|
5542
5543
|
} else {
|
|
@@ -5588,7 +5589,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5588
5589
|
]
|
|
5589
5590
|
}
|
|
5590
5591
|
),
|
|
5591
|
-
helperMessage && !
|
|
5592
|
+
helperMessage && !hasError && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
5592
5593
|
"p",
|
|
5593
5594
|
{
|
|
5594
5595
|
className: clsx(
|
|
@@ -5598,7 +5599,8 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5598
5599
|
children: helperMessage
|
|
5599
5600
|
}
|
|
5600
5601
|
),
|
|
5601
|
-
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
|
|
5602
|
+
errorMessage && errorMessage.trim() !== "" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
|
|
5603
|
+
errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: clsx("error", "sr-only"), "aria-hidden": "true" })
|
|
5602
5604
|
] })
|
|
5603
5605
|
]
|
|
5604
5606
|
}
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
import "../../chunk-DX3KXNP6.mjs";
|
|
3
3
|
import {
|
|
4
4
|
table_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-QP74BKWC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
definition_table_default
|
|
8
8
|
} from "../../chunk-JZMJ5UMR.mjs";
|
|
9
9
|
import "../../chunk-7B7LRG5J.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-5WRGQA43.mjs";
|
|
11
11
|
import "../../chunk-F3HENRVM.mjs";
|
|
12
12
|
import "../../chunk-2GCSFWHD.mjs";
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-DQRAFUDA.mjs";
|
|
15
|
-
import "../../chunk-M37VBNB3.mjs";
|
|
13
|
+
import "../../chunk-K35MQWDR.mjs";
|
|
16
14
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
17
15
|
import "../../chunk-H6JGLPPF.mjs";
|
|
18
16
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
19
17
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
20
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
21
18
|
import "../../chunk-NX4FTFY3.mjs";
|
|
19
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
20
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
21
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
22
22
|
import "../../chunk-CDXBML6O.mjs";
|
|
23
23
|
import "../../chunk-27Y6K5NK.mjs";
|
|
24
24
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -5423,6 +5423,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5423
5423
|
const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
|
|
5424
5424
|
const { classNames, label, helperMessage, errorMessage, startContent, endContent, ...inputProps } = props;
|
|
5425
5425
|
const inputRef = (0, import_react3.useRef)(null);
|
|
5426
|
+
const hasError = errorMessage !== void 0;
|
|
5426
5427
|
const slots = (0, import_react3.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
5427
5428
|
const getContentProps = (0, import_react3.useCallback)(
|
|
5428
5429
|
() => ({
|
|
@@ -5467,7 +5468,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5467
5468
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
5468
5469
|
};
|
|
5469
5470
|
return (0, import_react3.cloneElement)(endContent, mergedProps);
|
|
5470
|
-
} else if (
|
|
5471
|
+
} else if (hasError) {
|
|
5471
5472
|
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
5472
5473
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
|
|
5473
5474
|
} else {
|
|
@@ -5519,7 +5520,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5519
5520
|
]
|
|
5520
5521
|
}
|
|
5521
5522
|
),
|
|
5522
|
-
helperMessage && !
|
|
5523
|
+
helperMessage && !hasError && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
5523
5524
|
"p",
|
|
5524
5525
|
{
|
|
5525
5526
|
className: clsx(
|
|
@@ -5529,7 +5530,8 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5529
5530
|
children: helperMessage
|
|
5530
5531
|
}
|
|
5531
5532
|
),
|
|
5532
|
-
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
|
|
5533
|
+
errorMessage && errorMessage.trim() !== "" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
|
|
5534
|
+
errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: clsx("error", "sr-only"), "aria-hidden": "true" })
|
|
5533
5535
|
] })
|
|
5534
5536
|
]
|
|
5535
5537
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_body_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-QP74BKWC.mjs";
|
|
5
5
|
import "../../chunk-7B7LRG5J.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-5WRGQA43.mjs";
|
|
7
7
|
import "../../chunk-F3HENRVM.mjs";
|
|
8
8
|
import "../../chunk-2GCSFWHD.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-DQRAFUDA.mjs";
|
|
11
|
-
import "../../chunk-M37VBNB3.mjs";
|
|
9
|
+
import "../../chunk-K35MQWDR.mjs";
|
|
12
10
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
13
11
|
import "../../chunk-H6JGLPPF.mjs";
|
|
14
12
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
15
13
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
16
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
17
14
|
import "../../chunk-NX4FTFY3.mjs";
|
|
15
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
16
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
17
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
18
18
|
import "../../chunk-CDXBML6O.mjs";
|
|
19
19
|
import "../../chunk-27Y6K5NK.mjs";
|
|
20
20
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -5444,6 +5444,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5444
5444
|
const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
|
|
5445
5445
|
const { classNames, label, helperMessage, errorMessage, startContent, endContent, ...inputProps } = props;
|
|
5446
5446
|
const inputRef = (0, import_react3.useRef)(null);
|
|
5447
|
+
const hasError = errorMessage !== void 0;
|
|
5447
5448
|
const slots = (0, import_react3.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
5448
5449
|
const getContentProps = (0, import_react3.useCallback)(
|
|
5449
5450
|
() => ({
|
|
@@ -5488,7 +5489,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5488
5489
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
5489
5490
|
};
|
|
5490
5491
|
return (0, import_react3.cloneElement)(endContent, mergedProps);
|
|
5491
|
-
} else if (
|
|
5492
|
+
} else if (hasError) {
|
|
5492
5493
|
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
5493
5494
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
|
|
5494
5495
|
} else {
|
|
@@ -5540,7 +5541,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5540
5541
|
]
|
|
5541
5542
|
}
|
|
5542
5543
|
),
|
|
5543
|
-
helperMessage && !
|
|
5544
|
+
helperMessage && !hasError && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
5544
5545
|
"p",
|
|
5545
5546
|
{
|
|
5546
5547
|
className: clsx(
|
|
@@ -5550,7 +5551,8 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5550
5551
|
children: helperMessage
|
|
5551
5552
|
}
|
|
5552
5553
|
),
|
|
5553
|
-
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
|
|
5554
|
+
errorMessage && errorMessage.trim() !== "" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
|
|
5555
|
+
errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: clsx("error", "sr-only"), "aria-hidden": "true" })
|
|
5554
5556
|
] })
|
|
5555
5557
|
]
|
|
5556
5558
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_head_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-QP74BKWC.mjs";
|
|
5
5
|
import "../../chunk-7B7LRG5J.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-5WRGQA43.mjs";
|
|
7
7
|
import "../../chunk-F3HENRVM.mjs";
|
|
8
8
|
import "../../chunk-2GCSFWHD.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-DQRAFUDA.mjs";
|
|
11
|
-
import "../../chunk-M37VBNB3.mjs";
|
|
9
|
+
import "../../chunk-K35MQWDR.mjs";
|
|
12
10
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
13
11
|
import "../../chunk-H6JGLPPF.mjs";
|
|
14
12
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
15
13
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
16
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
17
14
|
import "../../chunk-NX4FTFY3.mjs";
|
|
15
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
16
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
17
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
18
18
|
import "../../chunk-CDXBML6O.mjs";
|
|
19
19
|
import "../../chunk-27Y6K5NK.mjs";
|
|
20
20
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -5490,6 +5490,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5490
5490
|
const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
|
|
5491
5491
|
const { classNames, label, helperMessage, errorMessage, startContent, endContent, ...inputProps } = props;
|
|
5492
5492
|
const inputRef = (0, import_react3.useRef)(null);
|
|
5493
|
+
const hasError = errorMessage !== void 0;
|
|
5493
5494
|
const slots = (0, import_react3.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
5494
5495
|
const getContentProps = (0, import_react3.useCallback)(
|
|
5495
5496
|
() => ({
|
|
@@ -5534,7 +5535,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5534
5535
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
5535
5536
|
};
|
|
5536
5537
|
return (0, import_react3.cloneElement)(endContent, mergedProps);
|
|
5537
|
-
} else if (
|
|
5538
|
+
} else if (hasError) {
|
|
5538
5539
|
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
5539
5540
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
|
|
5540
5541
|
} else {
|
|
@@ -5586,7 +5587,7 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5586
5587
|
]
|
|
5587
5588
|
}
|
|
5588
5589
|
),
|
|
5589
|
-
helperMessage && !
|
|
5590
|
+
helperMessage && !hasError && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
5590
5591
|
"p",
|
|
5591
5592
|
{
|
|
5592
5593
|
className: clsx(
|
|
@@ -5596,7 +5597,8 @@ var Input = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
5596
5597
|
children: helperMessage
|
|
5597
5598
|
}
|
|
5598
5599
|
),
|
|
5599
|
-
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
|
|
5600
|
+
errorMessage && errorMessage.trim() !== "" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
|
|
5601
|
+
errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: clsx("error", "sr-only"), "aria-hidden": "true" })
|
|
5600
5602
|
] })
|
|
5601
5603
|
]
|
|
5602
5604
|
}
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getCellStyle,
|
|
4
4
|
table_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-QP74BKWC.mjs";
|
|
6
6
|
import "../../chunk-7B7LRG5J.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-5WRGQA43.mjs";
|
|
8
8
|
import "../../chunk-F3HENRVM.mjs";
|
|
9
9
|
import "../../chunk-2GCSFWHD.mjs";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-DQRAFUDA.mjs";
|
|
12
|
-
import "../../chunk-M37VBNB3.mjs";
|
|
10
|
+
import "../../chunk-K35MQWDR.mjs";
|
|
13
11
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
14
12
|
import "../../chunk-H6JGLPPF.mjs";
|
|
15
13
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
16
14
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
17
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
18
15
|
import "../../chunk-NX4FTFY3.mjs";
|
|
16
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
17
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
18
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
19
19
|
import "../../chunk-CDXBML6O.mjs";
|
|
20
20
|
import "../../chunk-27Y6K5NK.mjs";
|
|
21
21
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -7,10 +7,10 @@ import "../../chunk-ZYIIXWVY.mjs";
|
|
|
7
7
|
import {
|
|
8
8
|
Icon_default
|
|
9
9
|
} from "../../chunk-Q6BXFXQM.mjs";
|
|
10
|
+
import "../../chunk-NX4FTFY3.mjs";
|
|
10
11
|
import {
|
|
11
12
|
mapPropsVariants
|
|
12
13
|
} from "../../chunk-E3G5QXSH.mjs";
|
|
13
|
-
import "../../chunk-NX4FTFY3.mjs";
|
|
14
14
|
import {
|
|
15
15
|
tv
|
|
16
16
|
} from "../../chunk-CDXBML6O.mjs";
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
} from "../../chunk-EOP4227J.mjs";
|
|
11
11
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
12
12
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
13
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
14
13
|
import "../../chunk-NX4FTFY3.mjs";
|
|
14
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
15
15
|
import "../../chunk-CDXBML6O.mjs";
|
|
16
16
|
import "../../chunk-27Y6K5NK.mjs";
|
|
17
17
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
} from "../../chunk-EOP4227J.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
6
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
7
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
8
7
|
import "../../chunk-NX4FTFY3.mjs";
|
|
8
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
9
9
|
import "../../chunk-CDXBML6O.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -7,8 +7,8 @@ import "../../chunk-ZOTHPHXA.mjs";
|
|
|
7
7
|
import "../../chunk-EOP4227J.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
10
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
11
10
|
import "../../chunk-NX4FTFY3.mjs";
|
|
11
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
12
12
|
import "../../chunk-CDXBML6O.mjs";
|
|
13
13
|
import "../../chunk-27Y6K5NK.mjs";
|
|
14
14
|
import "../../chunk-AC6TWLRT.mjs";
|
package/dist/index.js
CHANGED
|
@@ -6999,6 +6999,7 @@ var Input = (0, import_react11.forwardRef)((originalProps, ref) => {
|
|
|
6999
6999
|
const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
|
|
7000
7000
|
const { classNames, label, helperMessage, errorMessage, startContent, endContent, ...inputProps } = props;
|
|
7001
7001
|
const inputRef = (0, import_react11.useRef)(null);
|
|
7002
|
+
const hasError = errorMessage !== void 0;
|
|
7002
7003
|
const slots = (0, import_react11.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
7003
7004
|
const getContentProps = (0, import_react11.useCallback)(
|
|
7004
7005
|
() => ({
|
|
@@ -7043,7 +7044,7 @@ var Input = (0, import_react11.forwardRef)((originalProps, ref) => {
|
|
|
7043
7044
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
7044
7045
|
};
|
|
7045
7046
|
return (0, import_react11.cloneElement)(endContent, mergedProps);
|
|
7046
|
-
} else if (
|
|
7047
|
+
} else if (hasError) {
|
|
7047
7048
|
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
7048
7049
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
|
|
7049
7050
|
} else {
|
|
@@ -7095,7 +7096,7 @@ var Input = (0, import_react11.forwardRef)((originalProps, ref) => {
|
|
|
7095
7096
|
]
|
|
7096
7097
|
}
|
|
7097
7098
|
),
|
|
7098
|
-
helperMessage && !
|
|
7099
|
+
helperMessage && !hasError && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
7099
7100
|
"p",
|
|
7100
7101
|
{
|
|
7101
7102
|
className: clsx(
|
|
@@ -7105,7 +7106,8 @@ var Input = (0, import_react11.forwardRef)((originalProps, ref) => {
|
|
|
7105
7106
|
children: helperMessage
|
|
7106
7107
|
}
|
|
7107
7108
|
),
|
|
7108
|
-
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
|
|
7109
|
+
errorMessage && errorMessage.trim() !== "" && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
|
|
7110
|
+
errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: clsx("error", "sr-only"), "aria-hidden": "true" })
|
|
7109
7111
|
] })
|
|
7110
7112
|
]
|
|
7111
7113
|
}
|