@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.
@@ -937,7 +937,7 @@ function ChevronIcon({ expanded }) {
937
937
  {
938
938
  "aria-hidden": "true",
939
939
  viewBox: "0 0 24 24",
940
- className: cn2("h-3.5 w-3.5 transition-transform", expanded && "rotate-90"),
940
+ className: cn("h-3.5 w-3.5 transition-transform", expanded && "rotate-90"),
941
941
  fill: "none",
942
942
  stroke: "currentColor",
943
943
  strokeLinecap: "round",
@@ -1164,10 +1164,10 @@ function DataExplorerViewTree({
1164
1164
  type: "button",
1165
1165
  title: actionLabel,
1166
1166
  "aria-label": actionLabel,
1167
- className: cn2(
1167
+ className: cn(
1168
1168
  theme.slots.menuTrigger,
1169
1169
  target.type === "group" ? theme.slots.treeGroupActions : theme.slots.treeNodeActions,
1170
- target.type === "group" ? classNames?.groupActions : cn2(classNames?.nodeActions, classNames?.itemActions)
1170
+ target.type === "group" ? classNames?.groupActions : cn(classNames?.nodeActions, classNames?.itemActions)
1171
1171
  ),
1172
1172
  onClick: (event) => event.stopPropagation(),
1173
1173
  children: /* @__PURE__ */ jsxRuntime.jsx(MoreIcon, {})
@@ -1178,7 +1178,7 @@ function DataExplorerViewTree({
1178
1178
  {
1179
1179
  align: "end",
1180
1180
  sideOffset: 6,
1181
- className: cn2(theme.slots.menuContent, classNames?.menuContent),
1181
+ className: cn(theme.slots.menuContent, classNames?.menuContent),
1182
1182
  style: theme.styles.menuContent,
1183
1183
  onClick: (event) => event.stopPropagation(),
1184
1184
  children: visibleActions.map((action) => {
@@ -1195,7 +1195,7 @@ function DataExplorerViewTree({
1195
1195
  {
1196
1196
  title: action.title,
1197
1197
  disabled,
1198
- className: cn2(
1198
+ className: cn(
1199
1199
  theme.slots.menuItem,
1200
1200
  getDataExplorerMenuItemToneClassName(theme, action.tone),
1201
1201
  active && "bg-accent text-accent-foreground",
@@ -1273,7 +1273,7 @@ function DataExplorerViewTree({
1273
1273
  "data-data-explorer-entry": "node",
1274
1274
  "data-data-explorer-node-id": node.id,
1275
1275
  "data-data-explorer-group-id": group?.id,
1276
- className: cn2(
1276
+ className: cn(
1277
1277
  theme.slots.treeNode,
1278
1278
  classNames?.node,
1279
1279
  classNames?.item,
@@ -1294,7 +1294,7 @@ function DataExplorerViewTree({
1294
1294
  /* @__PURE__ */ jsxRuntime.jsxs(
1295
1295
  "div",
1296
1296
  {
1297
- className: cn2(
1297
+ className: cn(
1298
1298
  theme.slots.treeNodeButton,
1299
1299
  isSelected && theme.slots.treeNodeSelected,
1300
1300
  node.disabled && theme.slots.treeNodeDisabled,
@@ -1329,7 +1329,7 @@ function DataExplorerViewTree({
1329
1329
  "span",
1330
1330
  {
1331
1331
  draggable: true,
1332
- className: cn2(theme.slots.treeNodeDragHandle, classNames?.nodeDragHandle),
1332
+ className: cn(theme.slots.treeNodeDragHandle, classNames?.nodeDragHandle),
1333
1333
  onClick: (event) => event.stopPropagation(),
1334
1334
  onDragStart: (event) => {
1335
1335
  event.stopPropagation();
@@ -1351,7 +1351,7 @@ function DataExplorerViewTree({
1351
1351
  "button",
1352
1352
  {
1353
1353
  type: "button",
1354
- className: cn2(
1354
+ className: cn(
1355
1355
  theme.slots.treeNodeToggle,
1356
1356
  classNames?.nodeToggle,
1357
1357
  classNames?.expander
@@ -1363,11 +1363,11 @@ function DataExplorerViewTree({
1363
1363
  },
1364
1364
  children: /* @__PURE__ */ jsxRuntime.jsx(ChevronIcon, { expanded: isExpanded })
1365
1365
  }
1366
- ) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn2(theme.slots.treeNodeToggle, classNames?.nodeToggle) }),
1366
+ ) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(theme.slots.treeNodeToggle, classNames?.nodeToggle) }),
1367
1367
  node.icon ? /* @__PURE__ */ jsxRuntime.jsx(
1368
1368
  "span",
1369
1369
  {
1370
- className: cn2(
1370
+ className: cn(
1371
1371
  theme.slots.treeNodeIcon,
1372
1372
  classNames?.nodeIcon,
1373
1373
  classNames?.itemIcon
@@ -1379,7 +1379,7 @@ function DataExplorerViewTree({
1379
1379
  /* @__PURE__ */ jsxRuntime.jsx(
1380
1380
  "span",
1381
1381
  {
1382
- className: cn2(
1382
+ className: cn(
1383
1383
  theme.slots.treeNodeLabel,
1384
1384
  classNames?.nodeLabel,
1385
1385
  classNames?.itemLabel
@@ -1390,7 +1390,7 @@ function DataExplorerViewTree({
1390
1390
  node.description ? /* @__PURE__ */ jsxRuntime.jsx(
1391
1391
  "span",
1392
1392
  {
1393
- className: cn2(
1393
+ className: cn(
1394
1394
  theme.slots.treeNodeDescription,
1395
1395
  classNames?.nodeDescription
1396
1396
  ),
@@ -1398,8 +1398,8 @@ function DataExplorerViewTree({
1398
1398
  }
1399
1399
  ) : null
1400
1400
  ] }),
1401
- node.meta ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn2(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: node.meta }) : null,
1402
- node.badge ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn2(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: node.badge }) : null,
1401
+ node.meta ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: node.meta }) : null,
1402
+ node.badge ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: node.badge }) : null,
1403
1403
  renderActions(actions, { type: "node", node, group })
1404
1404
  ]
1405
1405
  }
@@ -1407,7 +1407,7 @@ function DataExplorerViewTree({
1407
1407
  hasChildren && isExpanded ? /* @__PURE__ */ jsxRuntime.jsx(
1408
1408
  "div",
1409
1409
  {
1410
- className: cn2(
1410
+ className: cn(
1411
1411
  theme.slots.treeNodeChildren,
1412
1412
  classNames?.nodeChildren,
1413
1413
  classNames?.list
@@ -1420,22 +1420,22 @@ function DataExplorerViewTree({
1420
1420
  node.id
1421
1421
  );
1422
1422
  };
1423
- const renderPlaceholder = (content, slotClassName, classNameOverride) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2(slotClassName, classNameOverride), children: content });
1423
+ const renderPlaceholder = (content, slotClassName, classNameOverride) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(slotClassName, classNameOverride), children: content });
1424
1424
  if (loading) {
1425
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
1425
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
1426
1426
  loadingContent,
1427
1427
  theme.slots.treeLoading,
1428
1428
  classNames?.loading
1429
1429
  ) });
1430
1430
  }
1431
1431
  if (error) {
1432
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(error ?? labels?.error, theme.slots.treeError, classNames?.error) });
1432
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(error ?? labels?.error, theme.slots.treeError, classNames?.error) });
1433
1433
  }
1434
1434
  const hasAnyNodes = resolvedGroups.some((group) => (group.nodes ?? []).length > 0);
1435
1435
  const hasAnyGroupState = resolvedGroups.some((group) => group.status === "loading" || group.error);
1436
1436
  const shouldRenderGlobalEmpty = !hasAnyNodes && !hasAnyGroupState && (!hasExplicitGroups || resolvedGroups.length === 0);
1437
1437
  if (shouldRenderGlobalEmpty) {
1438
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
1438
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
1439
1439
  emptyContent,
1440
1440
  theme.slots.treeEmpty,
1441
1441
  classNames?.empty
@@ -1444,7 +1444,7 @@ function DataExplorerViewTree({
1444
1444
  return /* @__PURE__ */ jsxRuntime.jsx(
1445
1445
  "div",
1446
1446
  {
1447
- className: cn2(theme.slots.treeRoot, classNames?.root, className),
1447
+ className: cn(theme.slots.treeRoot, classNames?.root, className),
1448
1448
  role: hasAnyNodes ? "tree" : void 0,
1449
1449
  children: resolvedGroups.map((group) => {
1450
1450
  const groupExpanded = group.hideHeader || group.collapsible === false || resolvedExpandedGroupIds.has(group.id);
@@ -1457,12 +1457,12 @@ function DataExplorerViewTree({
1457
1457
  {
1458
1458
  "data-data-explorer-entry": "group",
1459
1459
  "data-data-explorer-group-id": group.id,
1460
- className: cn2(theme.slots.treeGroup, classNames?.group, group.className),
1460
+ className: cn(theme.slots.treeGroup, classNames?.group, group.className),
1461
1461
  children: [
1462
1462
  !group.hideHeader ? /* @__PURE__ */ jsxRuntime.jsxs(
1463
1463
  "div",
1464
1464
  {
1465
- className: cn2(
1465
+ className: cn(
1466
1466
  theme.slots.treeGroupHeader,
1467
1467
  theme.slots.treeGroupHeaderButton,
1468
1468
  groupSelected && theme.slots.treeNodeSelected,
@@ -1475,7 +1475,7 @@ function DataExplorerViewTree({
1475
1475
  "button",
1476
1476
  {
1477
1477
  type: "button",
1478
- className: cn2(
1478
+ className: cn(
1479
1479
  "flex min-w-0 flex-1 items-center gap-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring",
1480
1480
  classNames?.groupLabel
1481
1481
  ),
@@ -1492,7 +1492,7 @@ function DataExplorerViewTree({
1492
1492
  group.icon ? /* @__PURE__ */ jsxRuntime.jsx(
1493
1493
  "span",
1494
1494
  {
1495
- className: cn2(
1495
+ className: cn(
1496
1496
  theme.slots.treeNodeIcon,
1497
1497
  classNames?.nodeIcon,
1498
1498
  classNames?.itemIcon
@@ -1504,7 +1504,7 @@ function DataExplorerViewTree({
1504
1504
  group.label ? /* @__PURE__ */ jsxRuntime.jsx(
1505
1505
  "span",
1506
1506
  {
1507
- className: cn2(
1507
+ className: cn(
1508
1508
  theme.slots.treeNodeLabel,
1509
1509
  classNames?.nodeLabel,
1510
1510
  classNames?.itemLabel
@@ -1515,7 +1515,7 @@ function DataExplorerViewTree({
1515
1515
  group.description ? /* @__PURE__ */ jsxRuntime.jsx(
1516
1516
  "span",
1517
1517
  {
1518
- className: cn2(
1518
+ className: cn(
1519
1519
  theme.slots.treeNodeDescription,
1520
1520
  classNames?.nodeDescription
1521
1521
  ),
@@ -1523,8 +1523,8 @@ function DataExplorerViewTree({
1523
1523
  }
1524
1524
  ) : null
1525
1525
  ] }),
1526
- group.meta ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn2(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: group.meta }) : null,
1527
- group.badge ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn2(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: group.badge }) : null
1526
+ group.meta ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: group.meta }) : null,
1527
+ group.badge ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: group.badge }) : null
1528
1528
  ]
1529
1529
  }
1530
1530
  ),
@@ -1532,7 +1532,7 @@ function DataExplorerViewTree({
1532
1532
  "button",
1533
1533
  {
1534
1534
  type: "button",
1535
- className: cn2(theme.slots.treeNodeToggle, classNames?.expander),
1535
+ className: cn(theme.slots.treeNodeToggle, classNames?.expander),
1536
1536
  "aria-label": groupExpanded ? collapseLabel : expandLabel,
1537
1537
  "aria-expanded": groupExpanded,
1538
1538
  onClick: () => setGroupExpanded(group.id, !groupExpanded),
@@ -1546,7 +1546,7 @@ function DataExplorerViewTree({
1546
1546
  groupExpanded ? /* @__PURE__ */ jsxRuntime.jsx(
1547
1547
  "div",
1548
1548
  {
1549
- className: cn2(
1549
+ className: cn(
1550
1550
  theme.slots.treeGroupContent,
1551
1551
  classNames?.groupContent,
1552
1552
  classNames?.list