@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 +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.mjs
CHANGED
@@ -4785,10 +4785,12 @@ var TimeInput2 = forwardRef12(
|
|
4785
4785
|
isSuccess,
|
4786
4786
|
onChangeTime
|
4787
4787
|
}, ref) => {
|
4788
|
-
const
|
4788
|
+
const timeVal = value != null ? value : new Time(0, 0, 0);
|
4789
|
+
const dateVal = /* @__PURE__ */ new Date();
|
4790
|
+
dateVal.setHours(timeVal.hours, timeVal.minutes, timeVal.seconds, 0);
|
4789
4791
|
const defaultDate = /* @__PURE__ */ new Date();
|
4790
4792
|
defaultDate.setHours(0, 0, 0, 0);
|
4791
|
-
const date = dateVal
|
4793
|
+
const date = dateVal || defaultDate;
|
4792
4794
|
const timeValue = new Time();
|
4793
4795
|
const { getRootProps, getInputProps, options, update, _manager } = useTimescape({
|
4794
4796
|
date,
|
@@ -5166,7 +5168,16 @@ var Uploader = ({
|
|
5166
5168
|
});
|
5167
5169
|
const renderHelperText = () => {
|
5168
5170
|
if (Array.isArray(helperText)) {
|
5169
|
-
return /* @__PURE__ */ jsx66(
|
5171
|
+
return /* @__PURE__ */ jsx66(
|
5172
|
+
UnorderedList2,
|
5173
|
+
{
|
5174
|
+
pl: 2,
|
5175
|
+
fontSize: 12,
|
5176
|
+
color: "black.medium",
|
5177
|
+
"data-test-id": "CT_component_base-image-uploader_helperText",
|
5178
|
+
children: helperText.map((text2) => /* @__PURE__ */ jsx66(ListItem2, { children: text2 }, text2))
|
5179
|
+
}
|
5180
|
+
);
|
5170
5181
|
}
|
5171
5182
|
return helperText;
|
5172
5183
|
};
|
@@ -5193,7 +5204,6 @@ var Uploader = ({
|
|
5193
5204
|
const color = isDisabled ? "neutral.500" : "primary.500";
|
5194
5205
|
const containerHeight = !isSmall ? "160px" : "120px";
|
5195
5206
|
const cursorType = filePreview ? "initial" : "pointer";
|
5196
|
-
console.log(isDragActive);
|
5197
5207
|
return /* @__PURE__ */ jsxs31(FormControl4, { isRequired, children: [
|
5198
5208
|
label && typeof label === "string" ? (
|
5199
5209
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|