@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 CHANGED
@@ -1557,12 +1557,14 @@ var DataTable = React5.forwardRef((props, ref) => {
1557
1557
  }
1558
1558
  ),
1559
1559
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row) => {
1560
+ const disabledRow = isRowDisabled && isRowDisabled(row.original);
1560
1561
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1561
1562
  import_react28.Tr,
1562
1563
  {
1563
1564
  "data-test-id": "-RU0hNYGRzeVM3HQ4cXHl",
1564
1565
  tabindex: "0",
1565
1566
  ...styles == null ? void 0 : styles.tableRow,
1567
+ "aria-disabled": disabledRow,
1566
1568
  css: import_react29.css`
1567
1569
  &:last-child {
1568
1570
  td {
@@ -1570,10 +1572,12 @@ var DataTable = React5.forwardRef((props, ref) => {
1570
1572
  }
1571
1573
  }
1572
1574
  `,
1573
- cursor: isRowDisabled && isRowDisabled(row.original) ? "default" : "pointer",
1575
+ cursor: disabledRow ? "default" : "pointer",
1574
1576
  onMouseDown: (e) => {
1575
1577
  var _a2;
1576
- (_a2 = e.currentTarget) == null ? void 0 : _a2.setAttribute("data-active", "true");
1578
+ if (!disabledRow) {
1579
+ (_a2 = e.currentTarget) == null ? void 0 : _a2.setAttribute("data-active", "true");
1580
+ }
1577
1581
  },
1578
1582
  onMouseUp: (e) => {
1579
1583
  var _a2;
@@ -1581,7 +1585,7 @@ var DataTable = React5.forwardRef((props, ref) => {
1581
1585
  },
1582
1586
  onClick: () => {
1583
1587
  if (onRowClick) {
1584
- if (isRowDisabled && isRowDisabled(row.original)) return;
1588
+ if (disabledRow) return;
1585
1589
  onRowClick(row.original);
1586
1590
  }
1587
1591
  },
@@ -3122,6 +3126,7 @@ var Datepicker = ({
3122
3126
  {
3123
3127
  autoComplete: "off",
3124
3128
  isError,
3129
+ name,
3125
3130
  sx: props.selectsRange ? { caretColor: "transparent" } : {},
3126
3131
  addOnRight: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react20.InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
3127
3132
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_internal_icon6.Calendar, { size: 4, color: "neutral.400" }),