@ctlyst.id/internal-ui 4.1.8 → 4.1.10

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
@@ -1085,7 +1085,7 @@ var useDataTable = ({
1085
1085
  };
1086
1086
  var DataTable = React5.forwardRef((props, ref) => {
1087
1087
  var _a, _b, _c, _d, _e, _f, _g;
1088
- const { isLoading, styles, headerSticky, onRowClick, container, columnPinning } = props;
1088
+ const { isLoading, styles, headerSticky, onRowClick, container, columnPinning, isRowDisabled } = props;
1089
1089
  const { table, toggleAllRowsSelected, generateColumn } = useDataTable(props);
1090
1090
  const refTable = React5.useRef(null);
1091
1091
  React5.useImperativeHandle(ref, () => ({
@@ -1223,6 +1223,8 @@ var DataTable = React5.forwardRef((props, ref) => {
1223
1223
  }
1224
1224
  }
1225
1225
  `,
1226
+ pointerEvents: isRowDisabled && isRowDisabled(row.original) ? "none" : "auto",
1227
+ cursor: isRowDisabled && isRowDisabled(row.original) ? "default" : "pointer",
1226
1228
  onMouseDown: (e) => {
1227
1229
  var _a2;
1228
1230
  (_a2 = e.currentTarget) == null ? void 0 : _a2.setAttribute("data-active", "true");
@@ -4915,6 +4917,7 @@ import {
4915
4917
  AccordionItem as AccordionItem2,
4916
4918
  AccordionPanel as AccordionPanel2,
4917
4919
  Box as Box28,
4920
+ Fade,
4918
4921
  Popover as Popover6,
4919
4922
  PopoverBody as PopoverBody4,
4920
4923
  PopoverContent as PopoverContent6,
@@ -5045,19 +5048,28 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5045
5048
  ) }) }) })
5046
5049
  ] });
5047
5050
  } }, item.id),
5048
- !isCollapse && /* @__PURE__ */ jsx60(AccordionPanel2, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ jsx60(
5049
- NavItem,
5051
+ !isCollapse && /* @__PURE__ */ jsx60(
5052
+ Fade,
5050
5053
  {
5051
- mt: "1",
5052
- "data-test-id": `CTA_Sidebar-accordion-item-${submenu.id}`,
5053
- isActive: active === submenu.navLink,
5054
- isChild: true,
5055
- ...itemStyles,
5056
- onClick: () => setActive(submenu.navLink),
5057
- children: submenu.title
5058
- },
5059
- submenu.id
5060
- )) })
5054
+ in: true,
5055
+ transition: {
5056
+ enter: { duration: 0.5 }
5057
+ },
5058
+ children: /* @__PURE__ */ jsx60(AccordionPanel2, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ jsx60(
5059
+ NavItem,
5060
+ {
5061
+ mt: "1",
5062
+ "data-test-id": `CTA_Sidebar-accordion-item-${submenu.id}`,
5063
+ isActive: active === submenu.navLink,
5064
+ isChild: true,
5065
+ ...itemStyles,
5066
+ onClick: () => setActive(submenu.navLink),
5067
+ children: submenu.title
5068
+ },
5069
+ submenu.id
5070
+ )) })
5071
+ }
5072
+ )
5061
5073
  ] });
5062
5074
  } }, item.id);
5063
5075
  }) })
@@ -6017,7 +6029,7 @@ import {
6017
6029
  AvatarProps,
6018
6030
  Collapse,
6019
6031
  CollapseProps,
6020
- Fade,
6032
+ Fade as Fade2,
6021
6033
  FadeProps,
6022
6034
  Hide,
6023
6035
  HideProps,
@@ -7865,7 +7877,7 @@ export {
7865
7877
  DropdownIndicator,
7866
7878
  empty_state_default as EmptyState,
7867
7879
  error_code_default as ErrorCode,
7868
- Fade,
7880
+ Fade2 as Fade,
7869
7881
  FadeProps,
7870
7882
  field_default as Field,
7871
7883
  Flex8 as Flex,