@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.css +0 -7
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -439,7 +439,7 @@ interface ExtendedTableProps extends TableProps {
|
|
|
439
439
|
sort_by?: string;
|
|
440
440
|
sort_order?: string;
|
|
441
441
|
onCellClick?: (props: CellClickProps) => void;
|
|
442
|
-
onDeleteRow?: (
|
|
442
|
+
onDeleteRow?: ({ id }: { id: string }) => void;
|
|
443
443
|
enableDelete?: boolean;
|
|
444
444
|
enableRowSelection?: boolean;
|
|
445
445
|
getRowSelection?: (rowSelection: any) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -439,7 +439,7 @@ interface ExtendedTableProps extends TableProps {
|
|
|
439
439
|
sort_by?: string;
|
|
440
440
|
sort_order?: string;
|
|
441
441
|
onCellClick?: (props: CellClickProps) => void;
|
|
442
|
-
onDeleteRow?: (
|
|
442
|
+
onDeleteRow?: ({ id }: { id: string }) => void;
|
|
443
443
|
enableDelete?: boolean;
|
|
444
444
|
enableRowSelection?: boolean;
|
|
445
445
|
getRowSelection?: (rowSelection: any) => void;
|
package/dist/index.js
CHANGED
|
@@ -983,7 +983,7 @@ var TextInput = ({ className, style, ...props }) => {
|
|
|
983
983
|
const isAutocomplete = props.isAutocomplete ?? false;
|
|
984
984
|
(0, import_react9.useEffect)(() => {
|
|
985
985
|
if (props.value !== void 0) {
|
|
986
|
-
const e = { target: { value: props.value } };
|
|
986
|
+
const e = { target: { value: props.value }, type: "change" };
|
|
987
987
|
handleChange?.(e);
|
|
988
988
|
}
|
|
989
989
|
}, []);
|
|
@@ -1033,7 +1033,7 @@ var NumberInput = ({ className, style, ...props }) => {
|
|
|
1033
1033
|
const isAutocomplete = props.isAutocomplete ?? false;
|
|
1034
1034
|
(0, import_react10.useEffect)(() => {
|
|
1035
1035
|
if (props.value !== void 0) {
|
|
1036
|
-
const e = { target: { value: props.value } };
|
|
1036
|
+
const e = { target: { value: props.value }, type: "change" };
|
|
1037
1037
|
handleChange?.(e);
|
|
1038
1038
|
}
|
|
1039
1039
|
}, []);
|
|
@@ -1083,7 +1083,7 @@ var EmailInput = ({ className, style, ...props }) => {
|
|
|
1083
1083
|
const isAutocomplete = props.isAutocomplete ?? false;
|
|
1084
1084
|
(0, import_react11.useEffect)(() => {
|
|
1085
1085
|
if (props.value !== void 0) {
|
|
1086
|
-
const e = { target: { value: props.value } };
|
|
1086
|
+
const e = { target: { value: props.value }, type: "change" };
|
|
1087
1087
|
handleChange?.(e);
|
|
1088
1088
|
}
|
|
1089
1089
|
}, []);
|
|
@@ -1133,7 +1133,7 @@ var PasswordInput = ({ className, style, ...props }) => {
|
|
|
1133
1133
|
const isAutocomplete = props.isAutocomplete ?? false;
|
|
1134
1134
|
(0, import_react12.useEffect)(() => {
|
|
1135
1135
|
if (props.value !== void 0) {
|
|
1136
|
-
const e = { target: { value: props.value } };
|
|
1136
|
+
const e = { target: { value: props.value }, type: "change" };
|
|
1137
1137
|
handleChange?.(e);
|
|
1138
1138
|
}
|
|
1139
1139
|
}, []);
|
|
@@ -1201,7 +1201,7 @@ var Textarea2 = ({ className, style, ...props }) => {
|
|
|
1201
1201
|
const isAutocomplete = props.isAutocomplete ?? false;
|
|
1202
1202
|
(0, import_react13.useEffect)(() => {
|
|
1203
1203
|
if (props.value !== void 0) {
|
|
1204
|
-
const e = { target: { value: props.value } };
|
|
1204
|
+
const e = { target: { value: props.value }, type: "change" };
|
|
1205
1205
|
handleChange?.(e);
|
|
1206
1206
|
}
|
|
1207
1207
|
}, []);
|
|
@@ -1243,7 +1243,7 @@ var UrlInput = ({ className, style, ...props }) => {
|
|
|
1243
1243
|
const isAutocomplete = props.isAutocomplete ?? false;
|
|
1244
1244
|
(0, import_react14.useEffect)(() => {
|
|
1245
1245
|
if (props.value !== void 0) {
|
|
1246
|
-
const e = { target: { value: props.value } };
|
|
1246
|
+
const e = { target: { value: props.value }, type: "change" };
|
|
1247
1247
|
handleChange?.(e);
|
|
1248
1248
|
}
|
|
1249
1249
|
}, []);
|
|
@@ -2511,7 +2511,7 @@ var SearchInput = ({ className, style, ...props }) => {
|
|
|
2511
2511
|
const isAutocomplete = props.isAutocomplete ?? false;
|
|
2512
2512
|
(0, import_react25.useEffect)(() => {
|
|
2513
2513
|
if (props.value !== void 0) {
|
|
2514
|
-
const e = { target: { value: props.value } };
|
|
2514
|
+
const e = { target: { value: props.value }, type: "change" };
|
|
2515
2515
|
handleChange?.(e);
|
|
2516
2516
|
}
|
|
2517
2517
|
}, []);
|
|
@@ -2557,7 +2557,7 @@ var FileInput = ({ className, style, ...props }) => {
|
|
|
2557
2557
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
2558
2558
|
(0, import_react26.useEffect)(() => {
|
|
2559
2559
|
if (props.value !== void 0) {
|
|
2560
|
-
const e = { target: { value: props.value } };
|
|
2560
|
+
const e = { target: { value: props.value }, type: "change" };
|
|
2561
2561
|
handleChange?.(e);
|
|
2562
2562
|
}
|
|
2563
2563
|
}, []);
|
|
@@ -3214,7 +3214,7 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
3214
3214
|
const isAutocomplete = props.isAutocomplete ?? false;
|
|
3215
3215
|
(0, import_react28.useEffect)(() => {
|
|
3216
3216
|
if (props.value !== void 0) {
|
|
3217
|
-
const e = { target: { value: props.value } };
|
|
3217
|
+
const e = { target: { value: props.value }, type: "change" };
|
|
3218
3218
|
handleChange?.(e);
|
|
3219
3219
|
}
|
|
3220
3220
|
}, []);
|
|
@@ -4220,7 +4220,7 @@ function DataTable({
|
|
|
4220
4220
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4221
4221
|
TableCell,
|
|
4222
4222
|
{
|
|
4223
|
-
className: `break-words whitespace-normal align-top ${meta?.cellClass ?? ""} ${isClickable ? "cursor-pointer hover:bg-gray-100 underline text-blue-500" : ""} relative py-2`,
|
|
4223
|
+
className: `break-words whitespace-normal align-top ${meta?.cellClass ?? ""} ${isClickable ? "cursor-pointer hover:bg-gray-100 underline text-blue-500" : ""} relative py-2 `,
|
|
4224
4224
|
style: {
|
|
4225
4225
|
width: cell.column.getSize(),
|
|
4226
4226
|
minWidth: cell.column.columnDef.minSize,
|
|
@@ -4234,7 +4234,7 @@ function DataTable({
|
|
|
4234
4234
|
},
|
|
4235
4235
|
children: [
|
|
4236
4236
|
(0, import_react_table2.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
4237
|
-
isLastCell && rowActions && rowActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "absolute
|
|
4237
|
+
isLastCell && rowActions && rowActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "absolute p-1 px-2 inset-y-0 right-0 flex items-center transition-opacity duration-200", children: rowActions.map((action) => {
|
|
4238
4238
|
const isDelete = action.id === "delete" || action.icon === "delete";
|
|
4239
4239
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4240
4240
|
"button",
|
|
@@ -4369,7 +4369,7 @@ var Table2 = ({
|
|
|
4369
4369
|
onCellClick?.({ id: cell.id, column: cell, columnId });
|
|
4370
4370
|
},
|
|
4371
4371
|
onDeleteRow: (cell) => {
|
|
4372
|
-
onDeleteRow?.(cell.id);
|
|
4372
|
+
onDeleteRow?.({ id: cell.id });
|
|
4373
4373
|
}
|
|
4374
4374
|
}
|
|
4375
4375
|
) });
|