@ctlyst.id/internal-ui 4.1.13 → 4.1.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.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1210,12 +1210,14 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1210
1210
|
}
|
1211
1211
|
),
|
1212
1212
|
/* @__PURE__ */ jsx24(Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row) => {
|
1213
|
+
const disabledRow = isRowDisabled && isRowDisabled(row.original);
|
1213
1214
|
return /* @__PURE__ */ jsx24(
|
1214
1215
|
Tr,
|
1215
1216
|
{
|
1216
1217
|
"data-test-id": "-RU0hNYGRzeVM3HQ4cXHl",
|
1217
1218
|
tabindex: "0",
|
1218
1219
|
...styles == null ? void 0 : styles.tableRow,
|
1220
|
+
"aria-disabled": disabledRow,
|
1219
1221
|
css: css`
|
1220
1222
|
&:last-child {
|
1221
1223
|
td {
|
@@ -1223,10 +1225,12 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1223
1225
|
}
|
1224
1226
|
}
|
1225
1227
|
`,
|
1226
|
-
cursor:
|
1228
|
+
cursor: disabledRow ? "default" : "pointer",
|
1227
1229
|
onMouseDown: (e) => {
|
1228
1230
|
var _a2;
|
1229
|
-
(
|
1231
|
+
if (!disabledRow) {
|
1232
|
+
(_a2 = e.currentTarget) == null ? void 0 : _a2.setAttribute("data-active", "true");
|
1233
|
+
}
|
1230
1234
|
},
|
1231
1235
|
onMouseUp: (e) => {
|
1232
1236
|
var _a2;
|
@@ -1234,7 +1238,7 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1234
1238
|
},
|
1235
1239
|
onClick: () => {
|
1236
1240
|
if (onRowClick) {
|
1237
|
-
if (
|
1241
|
+
if (disabledRow) return;
|
1238
1242
|
onRowClick(row.original);
|
1239
1243
|
}
|
1240
1244
|
},
|
@@ -2775,6 +2779,7 @@ var Datepicker = ({
|
|
2775
2779
|
{
|
2776
2780
|
autoComplete: "off",
|
2777
2781
|
isError,
|
2782
|
+
name,
|
2778
2783
|
sx: props.selectsRange ? { caretColor: "transparent" } : {},
|
2779
2784
|
addOnRight: /* @__PURE__ */ jsxs10(InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
|
2780
2785
|
/* @__PURE__ */ jsx27(Calendar, { size: 4, color: "neutral.400" }),
|