@ctlyst.id/internal-ui 4.1.14 → 4.1.16
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -675,7 +675,7 @@ interface SidebarMenuProps {
|
|
675
675
|
menu: MenuItem[];
|
676
676
|
isCollapse: boolean;
|
677
677
|
active: string | undefined;
|
678
|
-
setActive: (active: string) => void;
|
678
|
+
setActive: (active: string, fromParent?: boolean) => void;
|
679
679
|
itemStyles?: NavItemProps;
|
680
680
|
mappingIcon?: Map<string, JSX.Element>;
|
681
681
|
}
|
package/dist/index.d.ts
CHANGED
@@ -675,7 +675,7 @@ interface SidebarMenuProps {
|
|
675
675
|
menu: MenuItem[];
|
676
676
|
isCollapse: boolean;
|
677
677
|
active: string | undefined;
|
678
|
-
setActive: (active: string) => void;
|
678
|
+
setActive: (active: string, fromParent?: boolean) => void;
|
679
679
|
itemStyles?: NavItemProps;
|
680
680
|
mappingIcon?: Map<string, JSX.Element>;
|
681
681
|
}
|
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:
|
1575
|
+
cursor: disabledRow ? "default" : "pointer",
|
1574
1576
|
onMouseDown: (e) => {
|
1575
1577
|
var _a2;
|
1576
|
-
(
|
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 (
|
1588
|
+
if (disabledRow) return;
|
1585
1589
|
onRowClick(row.original);
|
1586
1590
|
}
|
1587
1591
|
},
|
@@ -5155,7 +5159,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
5155
5159
|
isActive,
|
5156
5160
|
bg: activeParent,
|
5157
5161
|
"data-test-id": `CTA_nav-item-${item.title}`,
|
5158
|
-
onClick: () => setActive(item.children.length > 0 ? item.children[0].navLink : item.navLink),
|
5162
|
+
onClick: () => setActive(item.children.length > 0 ? item.children[0].navLink : item.navLink, true),
|
5159
5163
|
position: "relative",
|
5160
5164
|
...itemStyles,
|
5161
5165
|
children: [
|