@ctlyst.id/internal-ui 3.3.14 → 3.3.15
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -4920,10 +4920,12 @@ var TimeInput2 = (0, import_react84.forwardRef)(
|
|
4920
4920
|
isSuccess,
|
4921
4921
|
onChangeTime
|
4922
4922
|
}, ref) => {
|
4923
|
-
const
|
4923
|
+
const timeVal = value != null ? value : new Time(0, 0, 0);
|
4924
|
+
const dateVal = /* @__PURE__ */ new Date();
|
4925
|
+
dateVal.setHours(timeVal.hours, timeVal.minutes, timeVal.seconds, 0);
|
4924
4926
|
const defaultDate = /* @__PURE__ */ new Date();
|
4925
4927
|
defaultDate.setHours(0, 0, 0, 0);
|
4926
|
-
const date = dateVal
|
4928
|
+
const date = dateVal || defaultDate;
|
4927
4929
|
const timeValue = new Time();
|
4928
4930
|
const { getRootProps, getInputProps, options, update, _manager } = useTimescape({
|
4929
4931
|
date,
|
@@ -5289,7 +5291,16 @@ var Uploader = ({
|
|
5289
5291
|
});
|
5290
5292
|
const renderHelperText = () => {
|
5291
5293
|
if (Array.isArray(helperText)) {
|
5292
|
-
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
5294
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
5295
|
+
import_react88.UnorderedList,
|
5296
|
+
{
|
5297
|
+
pl: 2,
|
5298
|
+
fontSize: 12,
|
5299
|
+
color: "black.medium",
|
5300
|
+
"data-test-id": "CT_component_base-image-uploader_helperText",
|
5301
|
+
children: helperText.map((text2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react88.ListItem, { children: text2 }, text2))
|
5302
|
+
}
|
5303
|
+
);
|
5293
5304
|
}
|
5294
5305
|
return helperText;
|
5295
5306
|
};
|
@@ -5316,7 +5327,6 @@ var Uploader = ({
|
|
5316
5327
|
const color = isDisabled ? "neutral.500" : "primary.500";
|
5317
5328
|
const containerHeight = !isSmall ? "160px" : "120px";
|
5318
5329
|
const cursorType = filePreview ? "initial" : "pointer";
|
5319
|
-
console.log(isDragActive);
|
5320
5330
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react88.FormControl, { isRequired, children: [
|
5321
5331
|
label && typeof label === "string" ? (
|
5322
5332
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|