@algorithm-shift/design-system 1.3.103 → 1.3.105

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
@@ -885,7 +885,7 @@ var TextInput = ({ className, style, ...props }) => {
885
885
  const isAutocomplete = props.isAutocomplete ?? false;
886
886
  useEffect4(() => {
887
887
  if (props.value !== void 0) {
888
- const e = { target: { value: props.value } };
888
+ const e = { target: { value: props.value }, type: "change" };
889
889
  handleChange?.(e);
890
890
  }
891
891
  }, []);
@@ -935,7 +935,7 @@ var NumberInput = ({ className, style, ...props }) => {
935
935
  const isAutocomplete = props.isAutocomplete ?? false;
936
936
  useEffect5(() => {
937
937
  if (props.value !== void 0) {
938
- const e = { target: { value: props.value } };
938
+ const e = { target: { value: props.value }, type: "change" };
939
939
  handleChange?.(e);
940
940
  }
941
941
  }, []);
@@ -985,7 +985,7 @@ var EmailInput = ({ className, style, ...props }) => {
985
985
  const isAutocomplete = props.isAutocomplete ?? false;
986
986
  useEffect6(() => {
987
987
  if (props.value !== void 0) {
988
- const e = { target: { value: props.value } };
988
+ const e = { target: { value: props.value }, type: "change" };
989
989
  handleChange?.(e);
990
990
  }
991
991
  }, []);
@@ -1035,7 +1035,7 @@ var PasswordInput = ({ className, style, ...props }) => {
1035
1035
  const isAutocomplete = props.isAutocomplete ?? false;
1036
1036
  useEffect7(() => {
1037
1037
  if (props.value !== void 0) {
1038
- const e = { target: { value: props.value } };
1038
+ const e = { target: { value: props.value }, type: "change" };
1039
1039
  handleChange?.(e);
1040
1040
  }
1041
1041
  }, []);
@@ -1103,7 +1103,7 @@ var Textarea2 = ({ className, style, ...props }) => {
1103
1103
  const isAutocomplete = props.isAutocomplete ?? false;
1104
1104
  useEffect8(() => {
1105
1105
  if (props.value !== void 0) {
1106
- const e = { target: { value: props.value } };
1106
+ const e = { target: { value: props.value }, type: "change" };
1107
1107
  handleChange?.(e);
1108
1108
  }
1109
1109
  }, []);
@@ -1145,7 +1145,7 @@ var UrlInput = ({ className, style, ...props }) => {
1145
1145
  const isAutocomplete = props.isAutocomplete ?? false;
1146
1146
  useEffect9(() => {
1147
1147
  if (props.value !== void 0) {
1148
- const e = { target: { value: props.value } };
1148
+ const e = { target: { value: props.value }, type: "change" };
1149
1149
  handleChange?.(e);
1150
1150
  }
1151
1151
  }, []);
@@ -2413,7 +2413,7 @@ var SearchInput = ({ className, style, ...props }) => {
2413
2413
  const isAutocomplete = props.isAutocomplete ?? false;
2414
2414
  useEffect19(() => {
2415
2415
  if (props.value !== void 0) {
2416
- const e = { target: { value: props.value } };
2416
+ const e = { target: { value: props.value }, type: "change" };
2417
2417
  handleChange?.(e);
2418
2418
  }
2419
2419
  }, []);
@@ -2459,7 +2459,7 @@ var FileInput = ({ className, style, ...props }) => {
2459
2459
  const placeholder = props.placeholder ?? "Placeholder text";
2460
2460
  useEffect20(() => {
2461
2461
  if (props.value !== void 0) {
2462
- const e = { target: { value: props.value } };
2462
+ const e = { target: { value: props.value }, type: "change" };
2463
2463
  handleChange?.(e);
2464
2464
  }
2465
2465
  }, []);
@@ -3120,7 +3120,7 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
3120
3120
  const isAutocomplete = props.isAutocomplete ?? false;
3121
3121
  useEffect24(() => {
3122
3122
  if (props.value !== void 0) {
3123
- const e = { target: { value: props.value } };
3123
+ const e = { target: { value: props.value }, type: "change" };
3124
3124
  handleChange?.(e);
3125
3125
  }
3126
3126
  }, []);
@@ -4132,7 +4132,7 @@ function DataTable({
4132
4132
  return /* @__PURE__ */ jsxs30(
4133
4133
  TableCell,
4134
4134
  {
4135
- className: `break-words whitespace-normal align-top ${meta?.cellClass ?? ""} ${isClickable ? "cursor-pointer hover:bg-gray-100 underline text-blue-500" : ""} relative py-2`,
4135
+ className: `break-words whitespace-normal align-top ${meta?.cellClass ?? ""} ${isClickable ? "cursor-pointer hover:bg-gray-100 underline text-blue-500" : ""} relative py-2 `,
4136
4136
  style: {
4137
4137
  width: cell.column.getSize(),
4138
4138
  minWidth: cell.column.columnDef.minSize,
@@ -4146,7 +4146,7 @@ function DataTable({
4146
4146
  },
4147
4147
  children: [
4148
4148
  flexRender(cell.column.columnDef.cell, cell.getContext()),
4149
- isLastCell && rowActions && rowActions.length > 0 && /* @__PURE__ */ jsx51("div", { className: "absolute bg-[#fff] p-1 px-4 inset-y-0 right-0 flex items-center opacity-0 group-hover:opacity-100 transition-opacity duration-200 shadow-lg rounded", children: rowActions.map((action) => {
4149
+ isLastCell && rowActions && rowActions.length > 0 && /* @__PURE__ */ jsx51("div", { className: "absolute p-1 px-2 inset-y-0 right-0 flex items-center transition-opacity duration-200", children: rowActions.map((action) => {
4150
4150
  const isDelete = action.id === "delete" || action.icon === "delete";
4151
4151
  return /* @__PURE__ */ jsx51(
4152
4152
  "button",
@@ -4281,7 +4281,7 @@ var Table2 = ({
4281
4281
  onCellClick?.({ id: cell.id, column: cell, columnId });
4282
4282
  },
4283
4283
  onDeleteRow: (cell) => {
4284
- onDeleteRow?.(cell.id);
4284
+ onDeleteRow?.({ id: cell.id });
4285
4285
  }
4286
4286
  }
4287
4287
  ) });