@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
|
@@ -2422,7 +2422,7 @@ function ChevronIcon({ expanded }) {
|
|
|
2422
2422
|
{
|
|
2423
2423
|
"aria-hidden": "true",
|
|
2424
2424
|
viewBox: "0 0 24 24",
|
|
2425
|
-
className:
|
|
2425
|
+
className: cn("h-3.5 w-3.5 transition-transform", expanded && "rotate-90"),
|
|
2426
2426
|
fill: "none",
|
|
2427
2427
|
stroke: "currentColor",
|
|
2428
2428
|
strokeLinecap: "round",
|
|
@@ -2649,10 +2649,10 @@ function DataExplorerViewTree({
|
|
|
2649
2649
|
type: "button",
|
|
2650
2650
|
title: actionLabel,
|
|
2651
2651
|
"aria-label": actionLabel,
|
|
2652
|
-
className:
|
|
2652
|
+
className: cn(
|
|
2653
2653
|
theme.slots.menuTrigger,
|
|
2654
2654
|
target.type === "group" ? theme.slots.treeGroupActions : theme.slots.treeNodeActions,
|
|
2655
|
-
target.type === "group" ? classNames?.groupActions :
|
|
2655
|
+
target.type === "group" ? classNames?.groupActions : cn(classNames?.nodeActions, classNames?.itemActions)
|
|
2656
2656
|
),
|
|
2657
2657
|
onClick: (event) => event.stopPropagation(),
|
|
2658
2658
|
children: /* @__PURE__ */ jsx(MoreIcon, {})
|
|
@@ -2663,7 +2663,7 @@ function DataExplorerViewTree({
|
|
|
2663
2663
|
{
|
|
2664
2664
|
align: "end",
|
|
2665
2665
|
sideOffset: 6,
|
|
2666
|
-
className:
|
|
2666
|
+
className: cn(theme.slots.menuContent, classNames?.menuContent),
|
|
2667
2667
|
style: theme.styles.menuContent,
|
|
2668
2668
|
onClick: (event) => event.stopPropagation(),
|
|
2669
2669
|
children: visibleActions.map((action) => {
|
|
@@ -2680,7 +2680,7 @@ function DataExplorerViewTree({
|
|
|
2680
2680
|
{
|
|
2681
2681
|
title: action.title,
|
|
2682
2682
|
disabled,
|
|
2683
|
-
className:
|
|
2683
|
+
className: cn(
|
|
2684
2684
|
theme.slots.menuItem,
|
|
2685
2685
|
getDataExplorerMenuItemToneClassName(theme, action.tone),
|
|
2686
2686
|
active && "bg-accent text-accent-foreground",
|
|
@@ -2758,7 +2758,7 @@ function DataExplorerViewTree({
|
|
|
2758
2758
|
"data-data-explorer-entry": "node",
|
|
2759
2759
|
"data-data-explorer-node-id": node.id,
|
|
2760
2760
|
"data-data-explorer-group-id": group?.id,
|
|
2761
|
-
className:
|
|
2761
|
+
className: cn(
|
|
2762
2762
|
theme.slots.treeNode,
|
|
2763
2763
|
classNames?.node,
|
|
2764
2764
|
classNames?.item,
|
|
@@ -2779,7 +2779,7 @@ function DataExplorerViewTree({
|
|
|
2779
2779
|
/* @__PURE__ */ jsxs(
|
|
2780
2780
|
"div",
|
|
2781
2781
|
{
|
|
2782
|
-
className:
|
|
2782
|
+
className: cn(
|
|
2783
2783
|
theme.slots.treeNodeButton,
|
|
2784
2784
|
isSelected && theme.slots.treeNodeSelected,
|
|
2785
2785
|
node.disabled && theme.slots.treeNodeDisabled,
|
|
@@ -2814,7 +2814,7 @@ function DataExplorerViewTree({
|
|
|
2814
2814
|
"span",
|
|
2815
2815
|
{
|
|
2816
2816
|
draggable: true,
|
|
2817
|
-
className:
|
|
2817
|
+
className: cn(theme.slots.treeNodeDragHandle, classNames?.nodeDragHandle),
|
|
2818
2818
|
onClick: (event) => event.stopPropagation(),
|
|
2819
2819
|
onDragStart: (event) => {
|
|
2820
2820
|
event.stopPropagation();
|
|
@@ -2836,7 +2836,7 @@ function DataExplorerViewTree({
|
|
|
2836
2836
|
"button",
|
|
2837
2837
|
{
|
|
2838
2838
|
type: "button",
|
|
2839
|
-
className:
|
|
2839
|
+
className: cn(
|
|
2840
2840
|
theme.slots.treeNodeToggle,
|
|
2841
2841
|
classNames?.nodeToggle,
|
|
2842
2842
|
classNames?.expander
|
|
@@ -2848,11 +2848,11 @@ function DataExplorerViewTree({
|
|
|
2848
2848
|
},
|
|
2849
2849
|
children: /* @__PURE__ */ jsx(ChevronIcon, { expanded: isExpanded })
|
|
2850
2850
|
}
|
|
2851
|
-
) : /* @__PURE__ */ jsx("span", { className:
|
|
2851
|
+
) : /* @__PURE__ */ jsx("span", { className: cn(theme.slots.treeNodeToggle, classNames?.nodeToggle) }),
|
|
2852
2852
|
node.icon ? /* @__PURE__ */ jsx(
|
|
2853
2853
|
"span",
|
|
2854
2854
|
{
|
|
2855
|
-
className:
|
|
2855
|
+
className: cn(
|
|
2856
2856
|
theme.slots.treeNodeIcon,
|
|
2857
2857
|
classNames?.nodeIcon,
|
|
2858
2858
|
classNames?.itemIcon
|
|
@@ -2864,7 +2864,7 @@ function DataExplorerViewTree({
|
|
|
2864
2864
|
/* @__PURE__ */ jsx(
|
|
2865
2865
|
"span",
|
|
2866
2866
|
{
|
|
2867
|
-
className:
|
|
2867
|
+
className: cn(
|
|
2868
2868
|
theme.slots.treeNodeLabel,
|
|
2869
2869
|
classNames?.nodeLabel,
|
|
2870
2870
|
classNames?.itemLabel
|
|
@@ -2875,7 +2875,7 @@ function DataExplorerViewTree({
|
|
|
2875
2875
|
node.description ? /* @__PURE__ */ jsx(
|
|
2876
2876
|
"span",
|
|
2877
2877
|
{
|
|
2878
|
-
className:
|
|
2878
|
+
className: cn(
|
|
2879
2879
|
theme.slots.treeNodeDescription,
|
|
2880
2880
|
classNames?.nodeDescription
|
|
2881
2881
|
),
|
|
@@ -2883,8 +2883,8 @@ function DataExplorerViewTree({
|
|
|
2883
2883
|
}
|
|
2884
2884
|
) : null
|
|
2885
2885
|
] }),
|
|
2886
|
-
node.meta ? /* @__PURE__ */ jsx("span", { className:
|
|
2887
|
-
node.badge ? /* @__PURE__ */ jsx("span", { className:
|
|
2886
|
+
node.meta ? /* @__PURE__ */ jsx("span", { className: cn(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: node.meta }) : null,
|
|
2887
|
+
node.badge ? /* @__PURE__ */ jsx("span", { className: cn(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: node.badge }) : null,
|
|
2888
2888
|
renderActions(actions, { type: "node", node, group })
|
|
2889
2889
|
]
|
|
2890
2890
|
}
|
|
@@ -2892,7 +2892,7 @@ function DataExplorerViewTree({
|
|
|
2892
2892
|
hasChildren && isExpanded ? /* @__PURE__ */ jsx(
|
|
2893
2893
|
"div",
|
|
2894
2894
|
{
|
|
2895
|
-
className:
|
|
2895
|
+
className: cn(
|
|
2896
2896
|
theme.slots.treeNodeChildren,
|
|
2897
2897
|
classNames?.nodeChildren,
|
|
2898
2898
|
classNames?.list
|
|
@@ -2905,22 +2905,22 @@ function DataExplorerViewTree({
|
|
|
2905
2905
|
node.id
|
|
2906
2906
|
);
|
|
2907
2907
|
};
|
|
2908
|
-
const renderPlaceholder = (content, slotClassName, classNameOverride) => /* @__PURE__ */ jsx("div", { className:
|
|
2908
|
+
const renderPlaceholder = (content, slotClassName, classNameOverride) => /* @__PURE__ */ jsx("div", { className: cn(slotClassName, classNameOverride), children: content });
|
|
2909
2909
|
if (loading) {
|
|
2910
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
2910
|
+
return /* @__PURE__ */ jsx("div", { className: cn(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
|
|
2911
2911
|
loadingContent,
|
|
2912
2912
|
theme.slots.treeLoading,
|
|
2913
2913
|
classNames?.loading
|
|
2914
2914
|
) });
|
|
2915
2915
|
}
|
|
2916
2916
|
if (error) {
|
|
2917
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
2917
|
+
return /* @__PURE__ */ jsx("div", { className: cn(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(error ?? labels?.error, theme.slots.treeError, classNames?.error) });
|
|
2918
2918
|
}
|
|
2919
2919
|
const hasAnyNodes = resolvedGroups.some((group) => (group.nodes ?? []).length > 0);
|
|
2920
2920
|
const hasAnyGroupState = resolvedGroups.some((group) => group.status === "loading" || group.error);
|
|
2921
2921
|
const shouldRenderGlobalEmpty = !hasAnyNodes && !hasAnyGroupState && (!hasExplicitGroups || resolvedGroups.length === 0);
|
|
2922
2922
|
if (shouldRenderGlobalEmpty) {
|
|
2923
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
2923
|
+
return /* @__PURE__ */ jsx("div", { className: cn(theme.slots.treeRoot, classNames?.root, className), children: renderPlaceholder(
|
|
2924
2924
|
emptyContent,
|
|
2925
2925
|
theme.slots.treeEmpty,
|
|
2926
2926
|
classNames?.empty
|
|
@@ -2929,7 +2929,7 @@ function DataExplorerViewTree({
|
|
|
2929
2929
|
return /* @__PURE__ */ jsx(
|
|
2930
2930
|
"div",
|
|
2931
2931
|
{
|
|
2932
|
-
className:
|
|
2932
|
+
className: cn(theme.slots.treeRoot, classNames?.root, className),
|
|
2933
2933
|
role: hasAnyNodes ? "tree" : void 0,
|
|
2934
2934
|
children: resolvedGroups.map((group) => {
|
|
2935
2935
|
const groupExpanded = group.hideHeader || group.collapsible === false || resolvedExpandedGroupIds.has(group.id);
|
|
@@ -2942,12 +2942,12 @@ function DataExplorerViewTree({
|
|
|
2942
2942
|
{
|
|
2943
2943
|
"data-data-explorer-entry": "group",
|
|
2944
2944
|
"data-data-explorer-group-id": group.id,
|
|
2945
|
-
className:
|
|
2945
|
+
className: cn(theme.slots.treeGroup, classNames?.group, group.className),
|
|
2946
2946
|
children: [
|
|
2947
2947
|
!group.hideHeader ? /* @__PURE__ */ jsxs(
|
|
2948
2948
|
"div",
|
|
2949
2949
|
{
|
|
2950
|
-
className:
|
|
2950
|
+
className: cn(
|
|
2951
2951
|
theme.slots.treeGroupHeader,
|
|
2952
2952
|
theme.slots.treeGroupHeaderButton,
|
|
2953
2953
|
groupSelected && theme.slots.treeNodeSelected,
|
|
@@ -2960,7 +2960,7 @@ function DataExplorerViewTree({
|
|
|
2960
2960
|
"button",
|
|
2961
2961
|
{
|
|
2962
2962
|
type: "button",
|
|
2963
|
-
className:
|
|
2963
|
+
className: cn(
|
|
2964
2964
|
"flex min-w-0 flex-1 items-center gap-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2965
2965
|
classNames?.groupLabel
|
|
2966
2966
|
),
|
|
@@ -2977,7 +2977,7 @@ function DataExplorerViewTree({
|
|
|
2977
2977
|
group.icon ? /* @__PURE__ */ jsx(
|
|
2978
2978
|
"span",
|
|
2979
2979
|
{
|
|
2980
|
-
className:
|
|
2980
|
+
className: cn(
|
|
2981
2981
|
theme.slots.treeNodeIcon,
|
|
2982
2982
|
classNames?.nodeIcon,
|
|
2983
2983
|
classNames?.itemIcon
|
|
@@ -2989,7 +2989,7 @@ function DataExplorerViewTree({
|
|
|
2989
2989
|
group.label ? /* @__PURE__ */ jsx(
|
|
2990
2990
|
"span",
|
|
2991
2991
|
{
|
|
2992
|
-
className:
|
|
2992
|
+
className: cn(
|
|
2993
2993
|
theme.slots.treeNodeLabel,
|
|
2994
2994
|
classNames?.nodeLabel,
|
|
2995
2995
|
classNames?.itemLabel
|
|
@@ -3000,7 +3000,7 @@ function DataExplorerViewTree({
|
|
|
3000
3000
|
group.description ? /* @__PURE__ */ jsx(
|
|
3001
3001
|
"span",
|
|
3002
3002
|
{
|
|
3003
|
-
className:
|
|
3003
|
+
className: cn(
|
|
3004
3004
|
theme.slots.treeNodeDescription,
|
|
3005
3005
|
classNames?.nodeDescription
|
|
3006
3006
|
),
|
|
@@ -3008,8 +3008,8 @@ function DataExplorerViewTree({
|
|
|
3008
3008
|
}
|
|
3009
3009
|
) : null
|
|
3010
3010
|
] }),
|
|
3011
|
-
group.meta ? /* @__PURE__ */ jsx("span", { className:
|
|
3012
|
-
group.badge ? /* @__PURE__ */ jsx("span", { className:
|
|
3011
|
+
group.meta ? /* @__PURE__ */ jsx("span", { className: cn(theme.slots.treeNodeMeta, classNames?.nodeMeta), children: group.meta }) : null,
|
|
3012
|
+
group.badge ? /* @__PURE__ */ jsx("span", { className: cn(theme.slots.treeNodeBadge, classNames?.nodeBadge), children: group.badge }) : null
|
|
3013
3013
|
]
|
|
3014
3014
|
}
|
|
3015
3015
|
),
|
|
@@ -3017,7 +3017,7 @@ function DataExplorerViewTree({
|
|
|
3017
3017
|
"button",
|
|
3018
3018
|
{
|
|
3019
3019
|
type: "button",
|
|
3020
|
-
className:
|
|
3020
|
+
className: cn(theme.slots.treeNodeToggle, classNames?.expander),
|
|
3021
3021
|
"aria-label": groupExpanded ? collapseLabel : expandLabel,
|
|
3022
3022
|
"aria-expanded": groupExpanded,
|
|
3023
3023
|
onClick: () => setGroupExpanded(group.id, !groupExpanded),
|
|
@@ -3031,7 +3031,7 @@ function DataExplorerViewTree({
|
|
|
3031
3031
|
groupExpanded ? /* @__PURE__ */ jsx(
|
|
3032
3032
|
"div",
|
|
3033
3033
|
{
|
|
3034
|
-
className:
|
|
3034
|
+
className: cn(
|
|
3035
3035
|
theme.slots.treeGroupContent,
|
|
3036
3036
|
classNames?.groupContent,
|
|
3037
3037
|
classNames?.list
|