@ctlyst.id/internal-ui 3.3.13 → 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.mjs CHANGED
@@ -1083,16 +1083,25 @@ var DataTable = React5.forwardRef((props, ref) => {
1083
1083
  w: "full",
1084
1084
  ...container,
1085
1085
  children: isLoading ? /* @__PURE__ */ jsxs8(Table, { ...styles == null ? void 0 : styles.table, "data-loading": "true", children: [
1086
- /* @__PURE__ */ jsx24(Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx24(Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ jsx24(Th, { colSpan: header.colSpan, width: header.getSize(), ...styles == null ? void 0 : styles.tableColumnHeader, children: /* @__PURE__ */ jsx24(
1087
- Flex2,
1086
+ /* @__PURE__ */ jsx24(Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx24(Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ jsx24(
1087
+ Th,
1088
1088
  {
1089
- "data-test-id": "CT_component_data-table_loader",
1090
- textTransform: "capitalize",
1091
- align: "center",
1092
- gap: 2,
1093
- children: flexRender(header.column.columnDef.header, header.getContext())
1094
- }
1095
- ) }, header.id)) }, headerGroup.id)) }),
1089
+ colSpan: header.colSpan,
1090
+ width: `${header.getSize()}px`,
1091
+ ...styles == null ? void 0 : styles.tableColumnHeader,
1092
+ children: /* @__PURE__ */ jsx24(
1093
+ Flex2,
1094
+ {
1095
+ "data-test-id": "CT_component_data-table_loader",
1096
+ textTransform: "capitalize",
1097
+ align: "center",
1098
+ gap: 2,
1099
+ children: flexRender(header.column.columnDef.header, header.getContext())
1100
+ }
1101
+ )
1102
+ },
1103
+ header.id
1104
+ )) }, headerGroup.id)) }),
1096
1105
  /* @__PURE__ */ jsx24(Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ jsx24(Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ jsx24(Td, { width: 210, children: /* @__PURE__ */ jsx24(Skeleton2, { startColor: "neutral.100", endColor: "neutral.200", h: "20px", w: "70%" }, i) }, i)) }, num)) })
1097
1106
  ] }) : /* @__PURE__ */ jsxs8(Table, { ...styles == null ? void 0 : styles.table, children: [
1098
1107
  /* @__PURE__ */ jsx24(
@@ -1107,7 +1116,7 @@ var DataTable = React5.forwardRef((props, ref) => {
1107
1116
  {
1108
1117
  colSpan: header.colSpan,
1109
1118
  sx: getCommonPinningStyles(header.column),
1110
- width: header.getSize(),
1119
+ width: `${header.getSize()}px`,
1111
1120
  ...styles == null ? void 0 : styles.tableColumnHeader,
1112
1121
  children: /* @__PURE__ */ jsxs8(
1113
1122
  Flex2,
@@ -4754,7 +4763,8 @@ var InputTimeArea = forwardRef12((props, ref) => {
4754
4763
  px: "2px",
4755
4764
  py: 0,
4756
4765
  sx: {
4757
- fontVariantNumeric: "tabular-nums"
4766
+ fontVariantNumeric: "tabular-nums",
4767
+ fontSize: 12
4758
4768
  },
4759
4769
  ...props
4760
4770
  }
@@ -4775,10 +4785,12 @@ var TimeInput2 = forwardRef12(
4775
4785
  isSuccess,
4776
4786
  onChangeTime
4777
4787
  }, ref) => {
4778
- const dateVal = value != null ? value : config2 == null ? void 0 : config2.date;
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);
4779
4791
  const defaultDate = /* @__PURE__ */ new Date();
4780
4792
  defaultDate.setHours(0, 0, 0, 0);
4781
- const date = dateVal ? new Date(dateVal) : defaultDate;
4793
+ const date = dateVal || defaultDate;
4782
4794
  const timeValue = new Time();
4783
4795
  const { getRootProps, getInputProps, options, update, _manager } = useTimescape({
4784
4796
  date,
@@ -5156,7 +5168,16 @@ var Uploader = ({
5156
5168
  });
5157
5169
  const renderHelperText = () => {
5158
5170
  if (Array.isArray(helperText)) {
5159
- return /* @__PURE__ */ jsx66(UnorderedList2, { pl: 2, fontSize: 12, color: "gray.600", "data-test-id": "CT_component_base-image-uploader_helperText", children: helperText.map((text2) => /* @__PURE__ */ jsx66(ListItem2, { children: text2 }, text2)) });
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
+ );
5160
5181
  }
5161
5182
  return helperText;
5162
5183
  };
@@ -5183,7 +5204,6 @@ var Uploader = ({
5183
5204
  const color = isDisabled ? "neutral.500" : "primary.500";
5184
5205
  const containerHeight = !isSmall ? "160px" : "120px";
5185
5206
  const cursorType = filePreview ? "initial" : "pointer";
5186
- console.log(isDragActive);
5187
5207
  return /* @__PURE__ */ jsxs31(FormControl4, { isRequired, children: [
5188
5208
  label && typeof label === "string" ? (
5189
5209
  // eslint-disable-next-line react/jsx-no-useless-fragment