@inf-monkeys-tech/monkeys-design 1.0.112 → 1.0.113

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.
@@ -7198,7 +7198,7 @@ function ChevronIcon2({ expanded }) {
7198
7198
  {
7199
7199
  "aria-hidden": "true",
7200
7200
  viewBox: "0 0 24 24",
7201
- className: cn("h-3.5 w-3.5 transition-transform", expanded && "rotate-90"),
7201
+ className: cn2("h-3.5 w-3.5 transition-transform", expanded && "rotate-90"),
7202
7202
  fill: "none",
7203
7203
  stroke: "currentColor",
7204
7204
  strokeLinecap: "round",
@@ -7425,10 +7425,10 @@ function DataExplorerViewTree({
7425
7425
  type: "button",
7426
7426
  title: actionLabel,
7427
7427
  "aria-label": actionLabel,
7428
- className: cn(
7428
+ className: cn2(
7429
7429
  theme.slots.menuTrigger,
7430
7430
  target.type === "group" ? theme.slots.treeGroupActions : theme.slots.treeNodeActions,
7431
- target.type === "group" ? classNames?.groupActions : cn(classNames?.nodeActions, classNames?.itemActions)
7431
+ target.type === "group" ? classNames?.groupActions : cn2(classNames?.nodeActions, classNames?.itemActions)
7432
7432
  ),
7433
7433
  onClick: (event) => event.stopPropagation(),
7434
7434
  children: /* @__PURE__ */ jsxRuntime.jsx(MoreIcon2, {})
@@ -7439,7 +7439,7 @@ function DataExplorerViewTree({
7439
7439
  {
7440
7440
  align: "end",
7441
7441
  sideOffset: 6,
7442
- className: cn(theme.slots.menuContent, classNames?.menuContent),
7442
+ className: cn2(theme.slots.menuContent, classNames?.menuContent),
7443
7443
  style: theme.styles.menuContent,
7444
7444
  onClick: (event) => event.stopPropagation(),
7445
7445
  children: visibleActions.map((action) => {
@@ -7456,7 +7456,7 @@ function DataExplorerViewTree({
7456
7456
  {
7457
7457
  title: action.title,
7458
7458
  disabled,
7459
- className: cn(
7459
+ className: cn2(
7460
7460
  theme.slots.menuItem,
7461
7461
  getDataExplorerMenuItemToneClassName(theme, action.tone),
7462
7462
  active && "bg-accent text-accent-foreground",
@@ -7534,7 +7534,7 @@ function DataExplorerViewTree({
7534
7534
  "data-data-explorer-entry": "node",
7535
7535
  "data-data-explorer-node-id": node.id,
7536
7536
  "data-data-explorer-group-id": group?.id,
7537
- className: cn(
7537
+ className: cn2(
7538
7538
  theme.slots.treeNode,
7539
7539
  classNames?.node,
7540
7540
  classNames?.item,
@@ -7555,7 +7555,7 @@ function DataExplorerViewTree({
7555
7555
  /* @__PURE__ */ jsxRuntime.jsxs(
7556
7556
  "div",
7557
7557
  {
7558
- className: cn(
7558
+ className: cn2(
7559
7559
  theme.slots.treeNodeButton,
7560
7560
  isSelected && theme.slots.treeNodeSelected,
7561
7561
  node.disabled && theme.slots.treeNodeDisabled,
@@ -7590,7 +7590,7 @@ function DataExplorerViewTree({
7590
7590
  "span",
7591
7591
  {
7592
7592
  draggable: true,
7593
- className: cn(theme.slots.treeNodeDragHandle, classNames?.nodeDragHandle),
7593
+ className: cn2(theme.slots.treeNodeDragHandle, classNames?.nodeDragHandle),
7594
7594
  onClick: (event) => event.stopPropagation(),
7595
7595
  onDragStart: (event) => {
7596
7596
  event.stopPropagation();
@@ -7612,7 +7612,7 @@ function DataExplorerViewTree({
7612
7612
  "button",
7613
7613
  {
7614
7614
  type: "button",
7615
- className: cn(
7615
+ className: cn2(
7616
7616
  theme.slots.treeNodeToggle,
7617
7617
  classNames?.nodeToggle,
7618
7618
  classNames?.expander
@@ -7624,11 +7624,11 @@ function DataExplorerViewTree({
7624
7624
  },
7625
7625
  children: /* @__PURE__ */ jsxRuntime.jsx(ChevronIcon2, { expanded: isExpanded })
7626
7626
  }
7627
- ) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(theme.slots.treeNodeToggle, classNames?.nodeToggle) }),
7627
+ ) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn2(theme.slots.treeNodeToggle, classNames?.nodeToggle) }),
7628
7628
  node.icon ? /* @__PURE__ */ jsxRuntime.jsx(
7629
7629
  "span",
7630
7630
  {
7631
- className: cn(
7631
+ className: cn2(
7632
7632
  theme.slots.treeNodeIcon,
7633
7633
  classNames?.nodeIcon,
7634
7634
  classNames?.itemIcon
@@ -7640,7 +7640,7 @@ function DataExplorerViewTree({
7640
7640
  /* @__PURE__ */ jsxRuntime.jsx(
7641
7641
  "span",
7642
7642
  {
7643
- className: cn(
7643
+ className: cn2(
7644
7644
  theme.slots.treeNodeLabel,
7645
7645
  classNames?.nodeLabel,
7646
7646
  classNames?.itemLabel
@@ -7651,7 +7651,7 @@ function DataExplorerViewTree({
7651
7651
  node.description ? /* @__PURE__ */ jsxRuntime.jsx(
7652
7652
  "span",
7653
7653
  {
7654
- className: cn(
7654
+ className: cn2(
7655
7655
  theme.slots.treeNodeDescription,
7656
7656
  classNames?.nodeDescription
7657
7657
  ),
@@ -7659,8 +7659,8 @@ function DataExplorerViewTree({
7659
7659
  }
7660
7660
  ) : null
7661
7661
  ] }),
7662
- node.meta ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: node.meta }) : null,
7663
- node.badge ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: node.badge }) : null,
7662
+ node.meta ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn2(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: node.meta }) : null,
7663
+ node.badge ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn2(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: node.badge }) : null,
7664
7664
  renderActions(actions, { type: "node", node, group })
7665
7665
  ]
7666
7666
  }
@@ -7668,7 +7668,7 @@ function DataExplorerViewTree({
7668
7668
  hasChildren && isExpanded ? /* @__PURE__ */ jsxRuntime.jsx(
7669
7669
  "div",
7670
7670
  {
7671
- className: cn(
7671
+ className: cn2(
7672
7672
  theme.slots.treeNodeChildren,
7673
7673
  classNames?.nodeChildren,
7674
7674
  classNames?.list
@@ -7681,22 +7681,22 @@ function DataExplorerViewTree({
7681
7681
  node.id
7682
7682
  );
7683
7683
  };
7684
- const renderPlaceholder = (content, slotClassName, classNameOverride) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(slotClassName, classNameOverride), children: content });
7684
+ const renderPlaceholder = (content, slotClassName, classNameOverride) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2(slotClassName, classNameOverride), children: content });
7685
7685
  if (loading) {
7686
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
7686
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
7687
7687
  loadingContent,
7688
7688
  theme.slots.treeLoading,
7689
7689
  classNames?.loading
7690
7690
  ) });
7691
7691
  }
7692
7692
  if (error) {
7693
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(error ?? labels?.error, theme.slots.treeError, classNames?.error) });
7693
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(error ?? labels?.error, theme.slots.treeError, classNames?.error) });
7694
7694
  }
7695
7695
  const hasAnyNodes = resolvedGroups.some((group) => (group.nodes ?? []).length > 0);
7696
7696
  const hasAnyGroupState = resolvedGroups.some((group) => group.status === "loading" || group.error);
7697
7697
  const shouldRenderGlobalEmpty = !hasAnyNodes && !hasAnyGroupState && (!hasExplicitGroups || resolvedGroups.length === 0);
7698
7698
  if (shouldRenderGlobalEmpty) {
7699
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
7699
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
7700
7700
  emptyContent,
7701
7701
  theme.slots.treeEmpty,
7702
7702
  classNames?.empty
@@ -7705,7 +7705,7 @@ function DataExplorerViewTree({
7705
7705
  return /* @__PURE__ */ jsxRuntime.jsx(
7706
7706
  "div",
7707
7707
  {
7708
- className: cn(theme.slots.treeRoot, classNames?.root, className),
7708
+ className: cn2(theme.slots.treeRoot, classNames?.root, className),
7709
7709
  role: hasAnyNodes ? "tree" : void 0,
7710
7710
  children: resolvedGroups.map((group) => {
7711
7711
  const groupExpanded = group.hideHeader || group.collapsible === false || resolvedExpandedGroupIds.has(group.id);
@@ -7718,12 +7718,12 @@ function DataExplorerViewTree({
7718
7718
  {
7719
7719
  "data-data-explorer-entry": "group",
7720
7720
  "data-data-explorer-group-id": group.id,
7721
- className: cn(theme.slots.treeGroup, classNames?.group, group.className),
7721
+ className: cn2(theme.slots.treeGroup, classNames?.group, group.className),
7722
7722
  children: [
7723
7723
  !group.hideHeader ? /* @__PURE__ */ jsxRuntime.jsxs(
7724
7724
  "div",
7725
7725
  {
7726
- className: cn(
7726
+ className: cn2(
7727
7727
  theme.slots.treeGroupHeader,
7728
7728
  theme.slots.treeGroupHeaderButton,
7729
7729
  groupSelected && theme.slots.treeNodeSelected,
@@ -7736,7 +7736,7 @@ function DataExplorerViewTree({
7736
7736
  "button",
7737
7737
  {
7738
7738
  type: "button",
7739
- className: cn(
7739
+ className: cn2(
7740
7740
  "flex min-w-0 flex-1 items-center gap-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring",
7741
7741
  classNames?.groupLabel
7742
7742
  ),
@@ -7753,7 +7753,7 @@ function DataExplorerViewTree({
7753
7753
  group.icon ? /* @__PURE__ */ jsxRuntime.jsx(
7754
7754
  "span",
7755
7755
  {
7756
- className: cn(
7756
+ className: cn2(
7757
7757
  theme.slots.treeNodeIcon,
7758
7758
  classNames?.nodeIcon,
7759
7759
  classNames?.itemIcon
@@ -7765,7 +7765,7 @@ function DataExplorerViewTree({
7765
7765
  group.label ? /* @__PURE__ */ jsxRuntime.jsx(
7766
7766
  "span",
7767
7767
  {
7768
- className: cn(
7768
+ className: cn2(
7769
7769
  theme.slots.treeNodeLabel,
7770
7770
  classNames?.nodeLabel,
7771
7771
  classNames?.itemLabel
@@ -7776,7 +7776,7 @@ function DataExplorerViewTree({
7776
7776
  group.description ? /* @__PURE__ */ jsxRuntime.jsx(
7777
7777
  "span",
7778
7778
  {
7779
- className: cn(
7779
+ className: cn2(
7780
7780
  theme.slots.treeNodeDescription,
7781
7781
  classNames?.nodeDescription
7782
7782
  ),
@@ -7784,8 +7784,8 @@ function DataExplorerViewTree({
7784
7784
  }
7785
7785
  ) : null
7786
7786
  ] }),
7787
- group.meta ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: group.meta }) : null,
7788
- group.badge ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: group.badge }) : null
7787
+ group.meta ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn2(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: group.meta }) : null,
7788
+ group.badge ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn2(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: group.badge }) : null
7789
7789
  ]
7790
7790
  }
7791
7791
  ),
@@ -7793,7 +7793,7 @@ function DataExplorerViewTree({
7793
7793
  "button",
7794
7794
  {
7795
7795
  type: "button",
7796
- className: cn(theme.slots.treeNodeToggle, classNames?.expander),
7796
+ className: cn2(theme.slots.treeNodeToggle, classNames?.expander),
7797
7797
  "aria-label": groupExpanded ? collapseLabel : expandLabel,
7798
7798
  "aria-expanded": groupExpanded,
7799
7799
  onClick: () => setGroupExpanded(group.id, !groupExpanded),
@@ -7807,7 +7807,7 @@ function DataExplorerViewTree({
7807
7807
  groupExpanded ? /* @__PURE__ */ jsxRuntime.jsx(
7808
7808
  "div",
7809
7809
  {
7810
- className: cn(
7810
+ className: cn2(
7811
7811
  theme.slots.treeGroupContent,
7812
7812
  classNames?.groupContent,
7813
7813
  classNames?.list