@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.
- package/dist/components/data-explorer/index.js +31 -31
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +31 -31
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/navigation-sidebar/index.js +31 -31
- package/dist/components/navigation-sidebar/index.js.map +1 -1
- package/dist/components/navigation-sidebar/index.mjs +31 -31
- package/dist/components/navigation-sidebar/index.mjs.map +1 -1
- package/dist/components/workbench/index.js +31 -31
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +31 -31
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.js +31 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7175,7 +7175,7 @@ function ChevronIcon2({ expanded }) {
|
|
|
7175
7175
|
{
|
|
7176
7176
|
"aria-hidden": "true",
|
|
7177
7177
|
viewBox: "0 0 24 24",
|
|
7178
|
-
className:
|
|
7178
|
+
className: cn2("h-3.5 w-3.5 transition-transform", expanded && "rotate-90"),
|
|
7179
7179
|
fill: "none",
|
|
7180
7180
|
stroke: "currentColor",
|
|
7181
7181
|
strokeLinecap: "round",
|
|
@@ -7402,10 +7402,10 @@ function DataExplorerViewTree({
|
|
|
7402
7402
|
type: "button",
|
|
7403
7403
|
title: actionLabel,
|
|
7404
7404
|
"aria-label": actionLabel,
|
|
7405
|
-
className:
|
|
7405
|
+
className: cn2(
|
|
7406
7406
|
theme.slots.menuTrigger,
|
|
7407
7407
|
target.type === "group" ? theme.slots.treeGroupActions : theme.slots.treeNodeActions,
|
|
7408
|
-
target.type === "group" ? classNames?.groupActions :
|
|
7408
|
+
target.type === "group" ? classNames?.groupActions : cn2(classNames?.nodeActions, classNames?.itemActions)
|
|
7409
7409
|
),
|
|
7410
7410
|
onClick: (event) => event.stopPropagation(),
|
|
7411
7411
|
children: /* @__PURE__ */ jsx(MoreIcon2, {})
|
|
@@ -7416,7 +7416,7 @@ function DataExplorerViewTree({
|
|
|
7416
7416
|
{
|
|
7417
7417
|
align: "end",
|
|
7418
7418
|
sideOffset: 6,
|
|
7419
|
-
className:
|
|
7419
|
+
className: cn2(theme.slots.menuContent, classNames?.menuContent),
|
|
7420
7420
|
style: theme.styles.menuContent,
|
|
7421
7421
|
onClick: (event) => event.stopPropagation(),
|
|
7422
7422
|
children: visibleActions.map((action) => {
|
|
@@ -7433,7 +7433,7 @@ function DataExplorerViewTree({
|
|
|
7433
7433
|
{
|
|
7434
7434
|
title: action.title,
|
|
7435
7435
|
disabled,
|
|
7436
|
-
className:
|
|
7436
|
+
className: cn2(
|
|
7437
7437
|
theme.slots.menuItem,
|
|
7438
7438
|
getDataExplorerMenuItemToneClassName(theme, action.tone),
|
|
7439
7439
|
active && "bg-accent text-accent-foreground",
|
|
@@ -7511,7 +7511,7 @@ function DataExplorerViewTree({
|
|
|
7511
7511
|
"data-data-explorer-entry": "node",
|
|
7512
7512
|
"data-data-explorer-node-id": node.id,
|
|
7513
7513
|
"data-data-explorer-group-id": group?.id,
|
|
7514
|
-
className:
|
|
7514
|
+
className: cn2(
|
|
7515
7515
|
theme.slots.treeNode,
|
|
7516
7516
|
classNames?.node,
|
|
7517
7517
|
classNames?.item,
|
|
@@ -7532,7 +7532,7 @@ function DataExplorerViewTree({
|
|
|
7532
7532
|
/* @__PURE__ */ jsxs(
|
|
7533
7533
|
"div",
|
|
7534
7534
|
{
|
|
7535
|
-
className:
|
|
7535
|
+
className: cn2(
|
|
7536
7536
|
theme.slots.treeNodeButton,
|
|
7537
7537
|
isSelected && theme.slots.treeNodeSelected,
|
|
7538
7538
|
node.disabled && theme.slots.treeNodeDisabled,
|
|
@@ -7567,7 +7567,7 @@ function DataExplorerViewTree({
|
|
|
7567
7567
|
"span",
|
|
7568
7568
|
{
|
|
7569
7569
|
draggable: true,
|
|
7570
|
-
className:
|
|
7570
|
+
className: cn2(theme.slots.treeNodeDragHandle, classNames?.nodeDragHandle),
|
|
7571
7571
|
onClick: (event) => event.stopPropagation(),
|
|
7572
7572
|
onDragStart: (event) => {
|
|
7573
7573
|
event.stopPropagation();
|
|
@@ -7589,7 +7589,7 @@ function DataExplorerViewTree({
|
|
|
7589
7589
|
"button",
|
|
7590
7590
|
{
|
|
7591
7591
|
type: "button",
|
|
7592
|
-
className:
|
|
7592
|
+
className: cn2(
|
|
7593
7593
|
theme.slots.treeNodeToggle,
|
|
7594
7594
|
classNames?.nodeToggle,
|
|
7595
7595
|
classNames?.expander
|
|
@@ -7601,11 +7601,11 @@ function DataExplorerViewTree({
|
|
|
7601
7601
|
},
|
|
7602
7602
|
children: /* @__PURE__ */ jsx(ChevronIcon2, { expanded: isExpanded })
|
|
7603
7603
|
}
|
|
7604
|
-
) : /* @__PURE__ */ jsx("span", { className:
|
|
7604
|
+
) : /* @__PURE__ */ jsx("span", { className: cn2(theme.slots.treeNodeToggle, classNames?.nodeToggle) }),
|
|
7605
7605
|
node.icon ? /* @__PURE__ */ jsx(
|
|
7606
7606
|
"span",
|
|
7607
7607
|
{
|
|
7608
|
-
className:
|
|
7608
|
+
className: cn2(
|
|
7609
7609
|
theme.slots.treeNodeIcon,
|
|
7610
7610
|
classNames?.nodeIcon,
|
|
7611
7611
|
classNames?.itemIcon
|
|
@@ -7617,7 +7617,7 @@ function DataExplorerViewTree({
|
|
|
7617
7617
|
/* @__PURE__ */ jsx(
|
|
7618
7618
|
"span",
|
|
7619
7619
|
{
|
|
7620
|
-
className:
|
|
7620
|
+
className: cn2(
|
|
7621
7621
|
theme.slots.treeNodeLabel,
|
|
7622
7622
|
classNames?.nodeLabel,
|
|
7623
7623
|
classNames?.itemLabel
|
|
@@ -7628,7 +7628,7 @@ function DataExplorerViewTree({
|
|
|
7628
7628
|
node.description ? /* @__PURE__ */ jsx(
|
|
7629
7629
|
"span",
|
|
7630
7630
|
{
|
|
7631
|
-
className:
|
|
7631
|
+
className: cn2(
|
|
7632
7632
|
theme.slots.treeNodeDescription,
|
|
7633
7633
|
classNames?.nodeDescription
|
|
7634
7634
|
),
|
|
@@ -7636,8 +7636,8 @@ function DataExplorerViewTree({
|
|
|
7636
7636
|
}
|
|
7637
7637
|
) : null
|
|
7638
7638
|
] }),
|
|
7639
|
-
node.meta ? /* @__PURE__ */ jsx("span", { className:
|
|
7640
|
-
node.badge ? /* @__PURE__ */ jsx("span", { className:
|
|
7639
|
+
node.meta ? /* @__PURE__ */ jsx("span", { className: cn2(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: node.meta }) : null,
|
|
7640
|
+
node.badge ? /* @__PURE__ */ jsx("span", { className: cn2(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: node.badge }) : null,
|
|
7641
7641
|
renderActions(actions, { type: "node", node, group })
|
|
7642
7642
|
]
|
|
7643
7643
|
}
|
|
@@ -7645,7 +7645,7 @@ function DataExplorerViewTree({
|
|
|
7645
7645
|
hasChildren && isExpanded ? /* @__PURE__ */ jsx(
|
|
7646
7646
|
"div",
|
|
7647
7647
|
{
|
|
7648
|
-
className:
|
|
7648
|
+
className: cn2(
|
|
7649
7649
|
theme.slots.treeNodeChildren,
|
|
7650
7650
|
classNames?.nodeChildren,
|
|
7651
7651
|
classNames?.list
|
|
@@ -7658,22 +7658,22 @@ function DataExplorerViewTree({
|
|
|
7658
7658
|
node.id
|
|
7659
7659
|
);
|
|
7660
7660
|
};
|
|
7661
|
-
const renderPlaceholder = (content, slotClassName, classNameOverride) => /* @__PURE__ */ jsx("div", { className:
|
|
7661
|
+
const renderPlaceholder = (content, slotClassName, classNameOverride) => /* @__PURE__ */ jsx("div", { className: cn2(slotClassName, classNameOverride), children: content });
|
|
7662
7662
|
if (loading) {
|
|
7663
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
7663
|
+
return /* @__PURE__ */ jsx("div", { className: cn2(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
|
|
7664
7664
|
loadingContent,
|
|
7665
7665
|
theme.slots.treeLoading,
|
|
7666
7666
|
classNames?.loading
|
|
7667
7667
|
) });
|
|
7668
7668
|
}
|
|
7669
7669
|
if (error) {
|
|
7670
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
7670
|
+
return /* @__PURE__ */ jsx("div", { className: cn2(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(error ?? labels?.error, theme.slots.treeError, classNames?.error) });
|
|
7671
7671
|
}
|
|
7672
7672
|
const hasAnyNodes = resolvedGroups.some((group) => (group.nodes ?? []).length > 0);
|
|
7673
7673
|
const hasAnyGroupState = resolvedGroups.some((group) => group.status === "loading" || group.error);
|
|
7674
7674
|
const shouldRenderGlobalEmpty = !hasAnyNodes && !hasAnyGroupState && (!hasExplicitGroups || resolvedGroups.length === 0);
|
|
7675
7675
|
if (shouldRenderGlobalEmpty) {
|
|
7676
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
7676
|
+
return /* @__PURE__ */ jsx("div", { className: cn2(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
|
|
7677
7677
|
emptyContent,
|
|
7678
7678
|
theme.slots.treeEmpty,
|
|
7679
7679
|
classNames?.empty
|
|
@@ -7682,7 +7682,7 @@ function DataExplorerViewTree({
|
|
|
7682
7682
|
return /* @__PURE__ */ jsx(
|
|
7683
7683
|
"div",
|
|
7684
7684
|
{
|
|
7685
|
-
className:
|
|
7685
|
+
className: cn2(theme.slots.treeRoot, classNames?.root, className),
|
|
7686
7686
|
role: hasAnyNodes ? "tree" : void 0,
|
|
7687
7687
|
children: resolvedGroups.map((group) => {
|
|
7688
7688
|
const groupExpanded = group.hideHeader || group.collapsible === false || resolvedExpandedGroupIds.has(group.id);
|
|
@@ -7695,12 +7695,12 @@ function DataExplorerViewTree({
|
|
|
7695
7695
|
{
|
|
7696
7696
|
"data-data-explorer-entry": "group",
|
|
7697
7697
|
"data-data-explorer-group-id": group.id,
|
|
7698
|
-
className:
|
|
7698
|
+
className: cn2(theme.slots.treeGroup, classNames?.group, group.className),
|
|
7699
7699
|
children: [
|
|
7700
7700
|
!group.hideHeader ? /* @__PURE__ */ jsxs(
|
|
7701
7701
|
"div",
|
|
7702
7702
|
{
|
|
7703
|
-
className:
|
|
7703
|
+
className: cn2(
|
|
7704
7704
|
theme.slots.treeGroupHeader,
|
|
7705
7705
|
theme.slots.treeGroupHeaderButton,
|
|
7706
7706
|
groupSelected && theme.slots.treeNodeSelected,
|
|
@@ -7713,7 +7713,7 @@ function DataExplorerViewTree({
|
|
|
7713
7713
|
"button",
|
|
7714
7714
|
{
|
|
7715
7715
|
type: "button",
|
|
7716
|
-
className:
|
|
7716
|
+
className: cn2(
|
|
7717
7717
|
"flex min-w-0 flex-1 items-center gap-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7718
7718
|
classNames?.groupLabel
|
|
7719
7719
|
),
|
|
@@ -7730,7 +7730,7 @@ function DataExplorerViewTree({
|
|
|
7730
7730
|
group.icon ? /* @__PURE__ */ jsx(
|
|
7731
7731
|
"span",
|
|
7732
7732
|
{
|
|
7733
|
-
className:
|
|
7733
|
+
className: cn2(
|
|
7734
7734
|
theme.slots.treeNodeIcon,
|
|
7735
7735
|
classNames?.nodeIcon,
|
|
7736
7736
|
classNames?.itemIcon
|
|
@@ -7742,7 +7742,7 @@ function DataExplorerViewTree({
|
|
|
7742
7742
|
group.label ? /* @__PURE__ */ jsx(
|
|
7743
7743
|
"span",
|
|
7744
7744
|
{
|
|
7745
|
-
className:
|
|
7745
|
+
className: cn2(
|
|
7746
7746
|
theme.slots.treeNodeLabel,
|
|
7747
7747
|
classNames?.nodeLabel,
|
|
7748
7748
|
classNames?.itemLabel
|
|
@@ -7753,7 +7753,7 @@ function DataExplorerViewTree({
|
|
|
7753
7753
|
group.description ? /* @__PURE__ */ jsx(
|
|
7754
7754
|
"span",
|
|
7755
7755
|
{
|
|
7756
|
-
className:
|
|
7756
|
+
className: cn2(
|
|
7757
7757
|
theme.slots.treeNodeDescription,
|
|
7758
7758
|
classNames?.nodeDescription
|
|
7759
7759
|
),
|
|
@@ -7761,8 +7761,8 @@ function DataExplorerViewTree({
|
|
|
7761
7761
|
}
|
|
7762
7762
|
) : null
|
|
7763
7763
|
] }),
|
|
7764
|
-
group.meta ? /* @__PURE__ */ jsx("span", { className:
|
|
7765
|
-
group.badge ? /* @__PURE__ */ jsx("span", { className:
|
|
7764
|
+
group.meta ? /* @__PURE__ */ jsx("span", { className: cn2(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: group.meta }) : null,
|
|
7765
|
+
group.badge ? /* @__PURE__ */ jsx("span", { className: cn2(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: group.badge }) : null
|
|
7766
7766
|
]
|
|
7767
7767
|
}
|
|
7768
7768
|
),
|
|
@@ -7770,7 +7770,7 @@ function DataExplorerViewTree({
|
|
|
7770
7770
|
"button",
|
|
7771
7771
|
{
|
|
7772
7772
|
type: "button",
|
|
7773
|
-
className:
|
|
7773
|
+
className: cn2(theme.slots.treeNodeToggle, classNames?.expander),
|
|
7774
7774
|
"aria-label": groupExpanded ? collapseLabel : expandLabel,
|
|
7775
7775
|
"aria-expanded": groupExpanded,
|
|
7776
7776
|
onClick: () => setGroupExpanded(group.id, !groupExpanded),
|
|
@@ -7784,7 +7784,7 @@ function DataExplorerViewTree({
|
|
|
7784
7784
|
groupExpanded ? /* @__PURE__ */ jsx(
|
|
7785
7785
|
"div",
|
|
7786
7786
|
{
|
|
7787
|
-
className:
|
|
7787
|
+
className: cn2(
|
|
7788
7788
|
theme.slots.treeGroupContent,
|
|
7789
7789
|
classNames?.groupContent,
|
|
7790
7790
|
classNames?.list
|