@almadar/ui 3.8.2 → 3.9.0
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/avl/index.cjs +122 -98
- package/dist/avl/index.js +123 -99
- package/dist/components/index.cjs +70 -92
- package/dist/components/index.js +70 -92
- package/dist/providers/index.cjs +70 -92
- package/dist/providers/index.js +70 -92
- package/dist/runtime/index.cjs +122 -98
- package/dist/runtime/index.js +123 -99
- package/dist/runtime/useTraitStateMachine.d.ts +11 -0
- package/package.json +2 -2
|
@@ -17798,10 +17798,7 @@ var init_DataList = __esm({
|
|
|
17798
17798
|
exports.HStack,
|
|
17799
17799
|
{
|
|
17800
17800
|
gap: "xs",
|
|
17801
|
-
className:
|
|
17802
|
-
"flex-shrink-0 transition-opacity duration-200",
|
|
17803
|
-
"opacity-0 group-hover:opacity-100"
|
|
17804
|
-
),
|
|
17801
|
+
className: "flex-shrink-0",
|
|
17805
17802
|
children: itemActions.map((action, idx) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
17806
17803
|
exports.Button,
|
|
17807
17804
|
{
|
|
@@ -17891,33 +17888,23 @@ var init_DataList = __esm({
|
|
|
17891
17888
|
] }, field.name);
|
|
17892
17889
|
})
|
|
17893
17890
|
] }),
|
|
17894
|
-
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
17895
|
-
exports.
|
|
17891
|
+
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(exports.HStack, { gap: "xs", className: "flex-shrink-0", children: itemActions.map((action, idx) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
17892
|
+
exports.Button,
|
|
17896
17893
|
{
|
|
17897
|
-
|
|
17894
|
+
variant: action.variant ?? "ghost",
|
|
17895
|
+
size: "sm",
|
|
17896
|
+
onClick: handleActionClick(action, itemData),
|
|
17897
|
+
"data-testid": `action-${action.event}`,
|
|
17898
17898
|
className: cn(
|
|
17899
|
-
"
|
|
17900
|
-
"opacity-0 group-hover:opacity-100"
|
|
17899
|
+
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
17901
17900
|
),
|
|
17902
|
-
children:
|
|
17903
|
-
exports.
|
|
17904
|
-
|
|
17905
|
-
|
|
17906
|
-
|
|
17907
|
-
|
|
17908
|
-
|
|
17909
|
-
className: cn(
|
|
17910
|
-
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
17911
|
-
),
|
|
17912
|
-
children: [
|
|
17913
|
-
action.icon && /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
17914
|
-
action.label
|
|
17915
|
-
]
|
|
17916
|
-
},
|
|
17917
|
-
idx
|
|
17918
|
-
))
|
|
17919
|
-
}
|
|
17920
|
-
)
|
|
17901
|
+
children: [
|
|
17902
|
+
action.icon && /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
17903
|
+
action.label
|
|
17904
|
+
]
|
|
17905
|
+
},
|
|
17906
|
+
idx
|
|
17907
|
+
)) })
|
|
17921
17908
|
]
|
|
17922
17909
|
}
|
|
17923
17910
|
),
|
|
@@ -29714,75 +29701,66 @@ var init_List = __esm({
|
|
|
29714
29701
|
hasProgress && /* @__PURE__ */ jsxRuntime.jsx(exports.Box, { className: "ml-auto", children: /* @__PURE__ */ jsxRuntime.jsx(ProgressIndicator, { value: progressValue }) })
|
|
29715
29702
|
] })
|
|
29716
29703
|
] }),
|
|
29717
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
29718
|
-
|
|
29719
|
-
|
|
29720
|
-
|
|
29721
|
-
|
|
29722
|
-
|
|
29723
|
-
|
|
29724
|
-
|
|
29725
|
-
|
|
29726
|
-
|
|
29727
|
-
|
|
29728
|
-
variant: "ghost",
|
|
29729
|
-
action: editAction.event,
|
|
29730
|
-
className: cn(
|
|
29731
|
-
"p-2 rounded-lg transition-all duration-200",
|
|
29732
|
-
"hover:bg-primary/10 hover:text-primary",
|
|
29733
|
-
"text-muted-foreground",
|
|
29734
|
-
"active:scale-95"
|
|
29735
|
-
),
|
|
29736
|
-
title: editAction.label,
|
|
29737
|
-
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
29738
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Pencil, { className: "w-4 h-4" })
|
|
29739
|
-
}
|
|
29704
|
+
/* @__PURE__ */ jsxRuntime.jsxs(exports.HStack, { className: "flex items-center gap-1 flex-shrink-0", children: [
|
|
29705
|
+
editAction && /* @__PURE__ */ jsxRuntime.jsx(
|
|
29706
|
+
exports.Button,
|
|
29707
|
+
{
|
|
29708
|
+
variant: "ghost",
|
|
29709
|
+
action: editAction.event,
|
|
29710
|
+
className: cn(
|
|
29711
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
29712
|
+
"hover:bg-primary/10 hover:text-primary",
|
|
29713
|
+
"text-muted-foreground",
|
|
29714
|
+
"active:scale-95"
|
|
29740
29715
|
),
|
|
29741
|
-
|
|
29742
|
-
|
|
29743
|
-
|
|
29744
|
-
|
|
29745
|
-
|
|
29746
|
-
|
|
29747
|
-
|
|
29748
|
-
|
|
29749
|
-
|
|
29750
|
-
|
|
29751
|
-
|
|
29752
|
-
|
|
29753
|
-
|
|
29754
|
-
|
|
29755
|
-
|
|
29716
|
+
title: editAction.label,
|
|
29717
|
+
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
29718
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Pencil, { className: "w-4 h-4" })
|
|
29719
|
+
}
|
|
29720
|
+
),
|
|
29721
|
+
viewAction && /* @__PURE__ */ jsxRuntime.jsx(
|
|
29722
|
+
exports.Button,
|
|
29723
|
+
{
|
|
29724
|
+
variant: "ghost",
|
|
29725
|
+
action: viewAction.event,
|
|
29726
|
+
className: cn(
|
|
29727
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
29728
|
+
"hover:bg-muted hover:text-foreground",
|
|
29729
|
+
"text-muted-foreground",
|
|
29730
|
+
"active:scale-95"
|
|
29756
29731
|
),
|
|
29757
|
-
|
|
29758
|
-
|
|
29759
|
-
|
|
29760
|
-
|
|
29761
|
-
|
|
29762
|
-
|
|
29732
|
+
title: viewAction.label,
|
|
29733
|
+
"data-testid": viewAction.event ? `action-${viewAction.event}` : void 0,
|
|
29734
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Eye, { className: "w-4 h-4" })
|
|
29735
|
+
}
|
|
29736
|
+
),
|
|
29737
|
+
(() => {
|
|
29738
|
+
const filteredActions = actions.filter(
|
|
29739
|
+
(a) => !a.label.toLowerCase().includes("edit") && !a.label.toLowerCase().includes("view") && !a.label.toLowerCase().includes("open")
|
|
29740
|
+
);
|
|
29741
|
+
return filteredActions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
29742
|
+
exports.Menu,
|
|
29743
|
+
{
|
|
29744
|
+
trigger: /* @__PURE__ */ jsxRuntime.jsx(
|
|
29745
|
+
exports.Button,
|
|
29763
29746
|
{
|
|
29764
|
-
|
|
29765
|
-
|
|
29766
|
-
|
|
29767
|
-
|
|
29768
|
-
|
|
29769
|
-
|
|
29770
|
-
"hover:bg-muted hover:shadow-sm",
|
|
29771
|
-
"text-muted-foreground hover:text-foreground",
|
|
29772
|
-
"active:scale-95"
|
|
29773
|
-
),
|
|
29774
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.MoreHorizontal, { className: "w-4 h-4" })
|
|
29775
|
-
}
|
|
29747
|
+
variant: "ghost",
|
|
29748
|
+
className: cn(
|
|
29749
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
29750
|
+
"hover:bg-muted hover:shadow-sm",
|
|
29751
|
+
"text-muted-foreground hover:text-foreground",
|
|
29752
|
+
"active:scale-95"
|
|
29776
29753
|
),
|
|
29777
|
-
|
|
29778
|
-
position: "bottom-right"
|
|
29754
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.MoreHorizontal, { className: "w-4 h-4" })
|
|
29779
29755
|
}
|
|
29780
|
-
)
|
|
29781
|
-
|
|
29782
|
-
|
|
29783
|
-
|
|
29784
|
-
|
|
29785
|
-
|
|
29756
|
+
),
|
|
29757
|
+
items: filteredActions,
|
|
29758
|
+
position: "bottom-right"
|
|
29759
|
+
}
|
|
29760
|
+
) : null;
|
|
29761
|
+
})(),
|
|
29762
|
+
hasExplicitClick && /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronRight, { className: "w-4 h-4 text-muted-foreground/50 group-hover:text-muted-foreground group-hover:translate-x-0.5 transition-all" })
|
|
29763
|
+
] })
|
|
29786
29764
|
]
|
|
29787
29765
|
}
|
|
29788
29766
|
),
|
package/dist/components/index.js
CHANGED
|
@@ -17753,10 +17753,7 @@ var init_DataList = __esm({
|
|
|
17753
17753
|
HStack,
|
|
17754
17754
|
{
|
|
17755
17755
|
gap: "xs",
|
|
17756
|
-
className:
|
|
17757
|
-
"flex-shrink-0 transition-opacity duration-200",
|
|
17758
|
-
"opacity-0 group-hover:opacity-100"
|
|
17759
|
-
),
|
|
17756
|
+
className: "flex-shrink-0",
|
|
17760
17757
|
children: itemActions.map((action, idx) => /* @__PURE__ */ jsxs(
|
|
17761
17758
|
Button,
|
|
17762
17759
|
{
|
|
@@ -17846,33 +17843,23 @@ var init_DataList = __esm({
|
|
|
17846
17843
|
] }, field.name);
|
|
17847
17844
|
})
|
|
17848
17845
|
] }),
|
|
17849
|
-
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsx(
|
|
17850
|
-
|
|
17846
|
+
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsx(HStack, { gap: "xs", className: "flex-shrink-0", children: itemActions.map((action, idx) => /* @__PURE__ */ jsxs(
|
|
17847
|
+
Button,
|
|
17851
17848
|
{
|
|
17852
|
-
|
|
17849
|
+
variant: action.variant ?? "ghost",
|
|
17850
|
+
size: "sm",
|
|
17851
|
+
onClick: handleActionClick(action, itemData),
|
|
17852
|
+
"data-testid": `action-${action.event}`,
|
|
17853
17853
|
className: cn(
|
|
17854
|
-
"
|
|
17855
|
-
"opacity-0 group-hover:opacity-100"
|
|
17854
|
+
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
17856
17855
|
),
|
|
17857
|
-
children:
|
|
17858
|
-
|
|
17859
|
-
|
|
17860
|
-
|
|
17861
|
-
|
|
17862
|
-
|
|
17863
|
-
|
|
17864
|
-
className: cn(
|
|
17865
|
-
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
17866
|
-
),
|
|
17867
|
-
children: [
|
|
17868
|
-
action.icon && /* @__PURE__ */ jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
17869
|
-
action.label
|
|
17870
|
-
]
|
|
17871
|
-
},
|
|
17872
|
-
idx
|
|
17873
|
-
))
|
|
17874
|
-
}
|
|
17875
|
-
)
|
|
17856
|
+
children: [
|
|
17857
|
+
action.icon && /* @__PURE__ */ jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
17858
|
+
action.label
|
|
17859
|
+
]
|
|
17860
|
+
},
|
|
17861
|
+
idx
|
|
17862
|
+
)) })
|
|
17876
17863
|
]
|
|
17877
17864
|
}
|
|
17878
17865
|
),
|
|
@@ -29669,75 +29656,66 @@ var init_List = __esm({
|
|
|
29669
29656
|
hasProgress && /* @__PURE__ */ jsx(Box, { className: "ml-auto", children: /* @__PURE__ */ jsx(ProgressIndicator, { value: progressValue }) })
|
|
29670
29657
|
] })
|
|
29671
29658
|
] }),
|
|
29672
|
-
/* @__PURE__ */ jsxs(
|
|
29673
|
-
|
|
29674
|
-
|
|
29675
|
-
|
|
29676
|
-
|
|
29677
|
-
|
|
29678
|
-
|
|
29679
|
-
|
|
29680
|
-
|
|
29681
|
-
|
|
29682
|
-
|
|
29683
|
-
variant: "ghost",
|
|
29684
|
-
action: editAction.event,
|
|
29685
|
-
className: cn(
|
|
29686
|
-
"p-2 rounded-lg transition-all duration-200",
|
|
29687
|
-
"hover:bg-primary/10 hover:text-primary",
|
|
29688
|
-
"text-muted-foreground",
|
|
29689
|
-
"active:scale-95"
|
|
29690
|
-
),
|
|
29691
|
-
title: editAction.label,
|
|
29692
|
-
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
29693
|
-
children: /* @__PURE__ */ jsx(Pencil, { className: "w-4 h-4" })
|
|
29694
|
-
}
|
|
29659
|
+
/* @__PURE__ */ jsxs(HStack, { className: "flex items-center gap-1 flex-shrink-0", children: [
|
|
29660
|
+
editAction && /* @__PURE__ */ jsx(
|
|
29661
|
+
Button,
|
|
29662
|
+
{
|
|
29663
|
+
variant: "ghost",
|
|
29664
|
+
action: editAction.event,
|
|
29665
|
+
className: cn(
|
|
29666
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
29667
|
+
"hover:bg-primary/10 hover:text-primary",
|
|
29668
|
+
"text-muted-foreground",
|
|
29669
|
+
"active:scale-95"
|
|
29695
29670
|
),
|
|
29696
|
-
|
|
29697
|
-
|
|
29698
|
-
|
|
29699
|
-
|
|
29700
|
-
|
|
29701
|
-
|
|
29702
|
-
|
|
29703
|
-
|
|
29704
|
-
|
|
29705
|
-
|
|
29706
|
-
|
|
29707
|
-
|
|
29708
|
-
|
|
29709
|
-
|
|
29710
|
-
|
|
29671
|
+
title: editAction.label,
|
|
29672
|
+
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
29673
|
+
children: /* @__PURE__ */ jsx(Pencil, { className: "w-4 h-4" })
|
|
29674
|
+
}
|
|
29675
|
+
),
|
|
29676
|
+
viewAction && /* @__PURE__ */ jsx(
|
|
29677
|
+
Button,
|
|
29678
|
+
{
|
|
29679
|
+
variant: "ghost",
|
|
29680
|
+
action: viewAction.event,
|
|
29681
|
+
className: cn(
|
|
29682
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
29683
|
+
"hover:bg-muted hover:text-foreground",
|
|
29684
|
+
"text-muted-foreground",
|
|
29685
|
+
"active:scale-95"
|
|
29711
29686
|
),
|
|
29712
|
-
|
|
29713
|
-
|
|
29714
|
-
|
|
29715
|
-
|
|
29716
|
-
|
|
29717
|
-
|
|
29687
|
+
title: viewAction.label,
|
|
29688
|
+
"data-testid": viewAction.event ? `action-${viewAction.event}` : void 0,
|
|
29689
|
+
children: /* @__PURE__ */ jsx(Eye, { className: "w-4 h-4" })
|
|
29690
|
+
}
|
|
29691
|
+
),
|
|
29692
|
+
(() => {
|
|
29693
|
+
const filteredActions = actions.filter(
|
|
29694
|
+
(a) => !a.label.toLowerCase().includes("edit") && !a.label.toLowerCase().includes("view") && !a.label.toLowerCase().includes("open")
|
|
29695
|
+
);
|
|
29696
|
+
return filteredActions.length > 0 ? /* @__PURE__ */ jsx(
|
|
29697
|
+
Menu,
|
|
29698
|
+
{
|
|
29699
|
+
trigger: /* @__PURE__ */ jsx(
|
|
29700
|
+
Button,
|
|
29718
29701
|
{
|
|
29719
|
-
|
|
29720
|
-
|
|
29721
|
-
|
|
29722
|
-
|
|
29723
|
-
|
|
29724
|
-
|
|
29725
|
-
"hover:bg-muted hover:shadow-sm",
|
|
29726
|
-
"text-muted-foreground hover:text-foreground",
|
|
29727
|
-
"active:scale-95"
|
|
29728
|
-
),
|
|
29729
|
-
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "w-4 h-4" })
|
|
29730
|
-
}
|
|
29702
|
+
variant: "ghost",
|
|
29703
|
+
className: cn(
|
|
29704
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
29705
|
+
"hover:bg-muted hover:shadow-sm",
|
|
29706
|
+
"text-muted-foreground hover:text-foreground",
|
|
29707
|
+
"active:scale-95"
|
|
29731
29708
|
),
|
|
29732
|
-
|
|
29733
|
-
position: "bottom-right"
|
|
29709
|
+
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "w-4 h-4" })
|
|
29734
29710
|
}
|
|
29735
|
-
)
|
|
29736
|
-
|
|
29737
|
-
|
|
29738
|
-
|
|
29739
|
-
|
|
29740
|
-
|
|
29711
|
+
),
|
|
29712
|
+
items: filteredActions,
|
|
29713
|
+
position: "bottom-right"
|
|
29714
|
+
}
|
|
29715
|
+
) : null;
|
|
29716
|
+
})(),
|
|
29717
|
+
hasExplicitClick && /* @__PURE__ */ jsx(ChevronRight, { className: "w-4 h-4 text-muted-foreground/50 group-hover:text-muted-foreground group-hover:translate-x-0.5 transition-all" })
|
|
29718
|
+
] })
|
|
29741
29719
|
]
|
|
29742
29720
|
}
|
|
29743
29721
|
),
|
package/dist/providers/index.cjs
CHANGED
|
@@ -19110,10 +19110,7 @@ var init_DataList = __esm({
|
|
|
19110
19110
|
HStack,
|
|
19111
19111
|
{
|
|
19112
19112
|
gap: "xs",
|
|
19113
|
-
className:
|
|
19114
|
-
"flex-shrink-0 transition-opacity duration-200",
|
|
19115
|
-
"opacity-0 group-hover:opacity-100"
|
|
19116
|
-
),
|
|
19113
|
+
className: "flex-shrink-0",
|
|
19117
19114
|
children: itemActions.map((action, idx) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19118
19115
|
Button,
|
|
19119
19116
|
{
|
|
@@ -19203,33 +19200,23 @@ var init_DataList = __esm({
|
|
|
19203
19200
|
] }, field.name);
|
|
19204
19201
|
})
|
|
19205
19202
|
] }),
|
|
19206
|
-
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
19207
|
-
|
|
19203
|
+
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(HStack, { gap: "xs", className: "flex-shrink-0", children: itemActions.map((action, idx) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19204
|
+
Button,
|
|
19208
19205
|
{
|
|
19209
|
-
|
|
19206
|
+
variant: action.variant ?? "ghost",
|
|
19207
|
+
size: "sm",
|
|
19208
|
+
onClick: handleActionClick(action, itemData),
|
|
19209
|
+
"data-testid": `action-${action.event}`,
|
|
19210
19210
|
className: cn(
|
|
19211
|
-
"
|
|
19212
|
-
"opacity-0 group-hover:opacity-100"
|
|
19211
|
+
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
19213
19212
|
),
|
|
19214
|
-
children:
|
|
19215
|
-
|
|
19216
|
-
|
|
19217
|
-
|
|
19218
|
-
|
|
19219
|
-
|
|
19220
|
-
|
|
19221
|
-
className: cn(
|
|
19222
|
-
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
19223
|
-
),
|
|
19224
|
-
children: [
|
|
19225
|
-
action.icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
19226
|
-
action.label
|
|
19227
|
-
]
|
|
19228
|
-
},
|
|
19229
|
-
idx
|
|
19230
|
-
))
|
|
19231
|
-
}
|
|
19232
|
-
)
|
|
19213
|
+
children: [
|
|
19214
|
+
action.icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
19215
|
+
action.label
|
|
19216
|
+
]
|
|
19217
|
+
},
|
|
19218
|
+
idx
|
|
19219
|
+
)) })
|
|
19233
19220
|
]
|
|
19234
19221
|
}
|
|
19235
19222
|
),
|
|
@@ -30661,75 +30648,66 @@ var init_List = __esm({
|
|
|
30661
30648
|
hasProgress && /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "ml-auto", children: /* @__PURE__ */ jsxRuntime.jsx(ProgressIndicator, { value: progressValue }) })
|
|
30662
30649
|
] })
|
|
30663
30650
|
] }),
|
|
30664
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
30665
|
-
|
|
30666
|
-
|
|
30667
|
-
|
|
30668
|
-
|
|
30669
|
-
|
|
30670
|
-
|
|
30671
|
-
|
|
30672
|
-
|
|
30673
|
-
|
|
30674
|
-
|
|
30675
|
-
variant: "ghost",
|
|
30676
|
-
action: editAction.event,
|
|
30677
|
-
className: cn(
|
|
30678
|
-
"p-2 rounded-lg transition-all duration-200",
|
|
30679
|
-
"hover:bg-primary/10 hover:text-primary",
|
|
30680
|
-
"text-muted-foreground",
|
|
30681
|
-
"active:scale-95"
|
|
30682
|
-
),
|
|
30683
|
-
title: editAction.label,
|
|
30684
|
-
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
30685
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Pencil, { className: "w-4 h-4" })
|
|
30686
|
-
}
|
|
30651
|
+
/* @__PURE__ */ jsxRuntime.jsxs(HStack, { className: "flex items-center gap-1 flex-shrink-0", children: [
|
|
30652
|
+
editAction && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30653
|
+
Button,
|
|
30654
|
+
{
|
|
30655
|
+
variant: "ghost",
|
|
30656
|
+
action: editAction.event,
|
|
30657
|
+
className: cn(
|
|
30658
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
30659
|
+
"hover:bg-primary/10 hover:text-primary",
|
|
30660
|
+
"text-muted-foreground",
|
|
30661
|
+
"active:scale-95"
|
|
30687
30662
|
),
|
|
30688
|
-
|
|
30689
|
-
|
|
30690
|
-
|
|
30691
|
-
|
|
30692
|
-
|
|
30693
|
-
|
|
30694
|
-
|
|
30695
|
-
|
|
30696
|
-
|
|
30697
|
-
|
|
30698
|
-
|
|
30699
|
-
|
|
30700
|
-
|
|
30701
|
-
|
|
30702
|
-
|
|
30663
|
+
title: editAction.label,
|
|
30664
|
+
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
30665
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Pencil, { className: "w-4 h-4" })
|
|
30666
|
+
}
|
|
30667
|
+
),
|
|
30668
|
+
viewAction && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30669
|
+
Button,
|
|
30670
|
+
{
|
|
30671
|
+
variant: "ghost",
|
|
30672
|
+
action: viewAction.event,
|
|
30673
|
+
className: cn(
|
|
30674
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
30675
|
+
"hover:bg-muted hover:text-foreground",
|
|
30676
|
+
"text-muted-foreground",
|
|
30677
|
+
"active:scale-95"
|
|
30703
30678
|
),
|
|
30704
|
-
|
|
30705
|
-
|
|
30706
|
-
|
|
30707
|
-
|
|
30708
|
-
|
|
30709
|
-
|
|
30679
|
+
title: viewAction.label,
|
|
30680
|
+
"data-testid": viewAction.event ? `action-${viewAction.event}` : void 0,
|
|
30681
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Eye, { className: "w-4 h-4" })
|
|
30682
|
+
}
|
|
30683
|
+
),
|
|
30684
|
+
(() => {
|
|
30685
|
+
const filteredActions = actions.filter(
|
|
30686
|
+
(a) => !a.label.toLowerCase().includes("edit") && !a.label.toLowerCase().includes("view") && !a.label.toLowerCase().includes("open")
|
|
30687
|
+
);
|
|
30688
|
+
return filteredActions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
30689
|
+
Menu,
|
|
30690
|
+
{
|
|
30691
|
+
trigger: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30692
|
+
Button,
|
|
30710
30693
|
{
|
|
30711
|
-
|
|
30712
|
-
|
|
30713
|
-
|
|
30714
|
-
|
|
30715
|
-
|
|
30716
|
-
|
|
30717
|
-
"hover:bg-muted hover:shadow-sm",
|
|
30718
|
-
"text-muted-foreground hover:text-foreground",
|
|
30719
|
-
"active:scale-95"
|
|
30720
|
-
),
|
|
30721
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.MoreHorizontal, { className: "w-4 h-4" })
|
|
30722
|
-
}
|
|
30694
|
+
variant: "ghost",
|
|
30695
|
+
className: cn(
|
|
30696
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
30697
|
+
"hover:bg-muted hover:shadow-sm",
|
|
30698
|
+
"text-muted-foreground hover:text-foreground",
|
|
30699
|
+
"active:scale-95"
|
|
30723
30700
|
),
|
|
30724
|
-
|
|
30725
|
-
position: "bottom-right"
|
|
30701
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.MoreHorizontal, { className: "w-4 h-4" })
|
|
30726
30702
|
}
|
|
30727
|
-
)
|
|
30728
|
-
|
|
30729
|
-
|
|
30730
|
-
|
|
30731
|
-
|
|
30732
|
-
|
|
30703
|
+
),
|
|
30704
|
+
items: filteredActions,
|
|
30705
|
+
position: "bottom-right"
|
|
30706
|
+
}
|
|
30707
|
+
) : null;
|
|
30708
|
+
})(),
|
|
30709
|
+
hasExplicitClick && /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronRight, { className: "w-4 h-4 text-muted-foreground/50 group-hover:text-muted-foreground group-hover:translate-x-0.5 transition-all" })
|
|
30710
|
+
] })
|
|
30733
30711
|
]
|
|
30734
30712
|
}
|
|
30735
30713
|
),
|