@ctlyst.id/internal-ui 3.3.14 → 3.3.15

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -726,7 +726,7 @@ declare class Time {
726
726
  }
727
727
  interface TimeInputProps {
728
728
  config?: TimeOptions;
729
- value?: string;
729
+ value?: Time;
730
730
  seconds?: boolean;
731
731
  onChangeTime?: (time: Time) => void;
732
732
  isDisabled?: boolean;
package/dist/index.d.ts CHANGED
@@ -726,7 +726,7 @@ declare class Time {
726
726
  }
727
727
  interface TimeInputProps {
728
728
  config?: TimeOptions;
729
- value?: string;
729
+ value?: Time;
730
730
  seconds?: boolean;
731
731
  onChangeTime?: (time: Time) => void;
732
732
  isDisabled?: boolean;
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 dateVal = value != null ? value : config2 == null ? void 0 : config2.date;
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 ? new Date(dateVal) : defaultDate;
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)(import_react88.UnorderedList, { pl: 2, fontSize: 12, color: "gray.600", "data-test-id": "CT_component_base-image-uploader_helperText", children: helperText.map((text2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react88.ListItem, { children: text2 }, text2)) });
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