@almadar/ui 3.8.1 → 3.8.3
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 +70 -101
- package/dist/avl/index.js +70 -101
- 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 +70 -101
- package/dist/runtime/index.js +70 -101
- package/package.json +1 -1
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
|
),
|
package/dist/providers/index.js
CHANGED
|
@@ -19065,10 +19065,7 @@ var init_DataList = __esm({
|
|
|
19065
19065
|
HStack,
|
|
19066
19066
|
{
|
|
19067
19067
|
gap: "xs",
|
|
19068
|
-
className:
|
|
19069
|
-
"flex-shrink-0 transition-opacity duration-200",
|
|
19070
|
-
"opacity-0 group-hover:opacity-100"
|
|
19071
|
-
),
|
|
19068
|
+
className: "flex-shrink-0",
|
|
19072
19069
|
children: itemActions.map((action, idx) => /* @__PURE__ */ jsxs(
|
|
19073
19070
|
Button,
|
|
19074
19071
|
{
|
|
@@ -19158,33 +19155,23 @@ var init_DataList = __esm({
|
|
|
19158
19155
|
] }, field.name);
|
|
19159
19156
|
})
|
|
19160
19157
|
] }),
|
|
19161
|
-
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsx(
|
|
19162
|
-
|
|
19158
|
+
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsx(HStack, { gap: "xs", className: "flex-shrink-0", children: itemActions.map((action, idx) => /* @__PURE__ */ jsxs(
|
|
19159
|
+
Button,
|
|
19163
19160
|
{
|
|
19164
|
-
|
|
19161
|
+
variant: action.variant ?? "ghost",
|
|
19162
|
+
size: "sm",
|
|
19163
|
+
onClick: handleActionClick(action, itemData),
|
|
19164
|
+
"data-testid": `action-${action.event}`,
|
|
19165
19165
|
className: cn(
|
|
19166
|
-
"
|
|
19167
|
-
"opacity-0 group-hover:opacity-100"
|
|
19166
|
+
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
19168
19167
|
),
|
|
19169
|
-
children:
|
|
19170
|
-
|
|
19171
|
-
|
|
19172
|
-
|
|
19173
|
-
|
|
19174
|
-
|
|
19175
|
-
|
|
19176
|
-
className: cn(
|
|
19177
|
-
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
19178
|
-
),
|
|
19179
|
-
children: [
|
|
19180
|
-
action.icon && /* @__PURE__ */ jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
19181
|
-
action.label
|
|
19182
|
-
]
|
|
19183
|
-
},
|
|
19184
|
-
idx
|
|
19185
|
-
))
|
|
19186
|
-
}
|
|
19187
|
-
)
|
|
19168
|
+
children: [
|
|
19169
|
+
action.icon && /* @__PURE__ */ jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
19170
|
+
action.label
|
|
19171
|
+
]
|
|
19172
|
+
},
|
|
19173
|
+
idx
|
|
19174
|
+
)) })
|
|
19188
19175
|
]
|
|
19189
19176
|
}
|
|
19190
19177
|
),
|
|
@@ -30616,75 +30603,66 @@ var init_List = __esm({
|
|
|
30616
30603
|
hasProgress && /* @__PURE__ */ jsx(Box, { className: "ml-auto", children: /* @__PURE__ */ jsx(ProgressIndicator, { value: progressValue }) })
|
|
30617
30604
|
] })
|
|
30618
30605
|
] }),
|
|
30619
|
-
/* @__PURE__ */ jsxs(
|
|
30620
|
-
|
|
30621
|
-
|
|
30622
|
-
|
|
30623
|
-
|
|
30624
|
-
|
|
30625
|
-
|
|
30626
|
-
|
|
30627
|
-
|
|
30628
|
-
|
|
30629
|
-
|
|
30630
|
-
variant: "ghost",
|
|
30631
|
-
action: editAction.event,
|
|
30632
|
-
className: cn(
|
|
30633
|
-
"p-2 rounded-lg transition-all duration-200",
|
|
30634
|
-
"hover:bg-primary/10 hover:text-primary",
|
|
30635
|
-
"text-muted-foreground",
|
|
30636
|
-
"active:scale-95"
|
|
30637
|
-
),
|
|
30638
|
-
title: editAction.label,
|
|
30639
|
-
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
30640
|
-
children: /* @__PURE__ */ jsx(Pencil, { className: "w-4 h-4" })
|
|
30641
|
-
}
|
|
30606
|
+
/* @__PURE__ */ jsxs(HStack, { className: "flex items-center gap-1 flex-shrink-0", children: [
|
|
30607
|
+
editAction && /* @__PURE__ */ jsx(
|
|
30608
|
+
Button,
|
|
30609
|
+
{
|
|
30610
|
+
variant: "ghost",
|
|
30611
|
+
action: editAction.event,
|
|
30612
|
+
className: cn(
|
|
30613
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
30614
|
+
"hover:bg-primary/10 hover:text-primary",
|
|
30615
|
+
"text-muted-foreground",
|
|
30616
|
+
"active:scale-95"
|
|
30642
30617
|
),
|
|
30643
|
-
|
|
30644
|
-
|
|
30645
|
-
|
|
30646
|
-
|
|
30647
|
-
|
|
30648
|
-
|
|
30649
|
-
|
|
30650
|
-
|
|
30651
|
-
|
|
30652
|
-
|
|
30653
|
-
|
|
30654
|
-
|
|
30655
|
-
|
|
30656
|
-
|
|
30657
|
-
|
|
30618
|
+
title: editAction.label,
|
|
30619
|
+
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
30620
|
+
children: /* @__PURE__ */ jsx(Pencil, { className: "w-4 h-4" })
|
|
30621
|
+
}
|
|
30622
|
+
),
|
|
30623
|
+
viewAction && /* @__PURE__ */ jsx(
|
|
30624
|
+
Button,
|
|
30625
|
+
{
|
|
30626
|
+
variant: "ghost",
|
|
30627
|
+
action: viewAction.event,
|
|
30628
|
+
className: cn(
|
|
30629
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
30630
|
+
"hover:bg-muted hover:text-foreground",
|
|
30631
|
+
"text-muted-foreground",
|
|
30632
|
+
"active:scale-95"
|
|
30658
30633
|
),
|
|
30659
|
-
|
|
30660
|
-
|
|
30661
|
-
|
|
30662
|
-
|
|
30663
|
-
|
|
30664
|
-
|
|
30634
|
+
title: viewAction.label,
|
|
30635
|
+
"data-testid": viewAction.event ? `action-${viewAction.event}` : void 0,
|
|
30636
|
+
children: /* @__PURE__ */ jsx(Eye, { className: "w-4 h-4" })
|
|
30637
|
+
}
|
|
30638
|
+
),
|
|
30639
|
+
(() => {
|
|
30640
|
+
const filteredActions = actions.filter(
|
|
30641
|
+
(a) => !a.label.toLowerCase().includes("edit") && !a.label.toLowerCase().includes("view") && !a.label.toLowerCase().includes("open")
|
|
30642
|
+
);
|
|
30643
|
+
return filteredActions.length > 0 ? /* @__PURE__ */ jsx(
|
|
30644
|
+
Menu,
|
|
30645
|
+
{
|
|
30646
|
+
trigger: /* @__PURE__ */ jsx(
|
|
30647
|
+
Button,
|
|
30665
30648
|
{
|
|
30666
|
-
|
|
30667
|
-
|
|
30668
|
-
|
|
30669
|
-
|
|
30670
|
-
|
|
30671
|
-
|
|
30672
|
-
"hover:bg-muted hover:shadow-sm",
|
|
30673
|
-
"text-muted-foreground hover:text-foreground",
|
|
30674
|
-
"active:scale-95"
|
|
30675
|
-
),
|
|
30676
|
-
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "w-4 h-4" })
|
|
30677
|
-
}
|
|
30649
|
+
variant: "ghost",
|
|
30650
|
+
className: cn(
|
|
30651
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
30652
|
+
"hover:bg-muted hover:shadow-sm",
|
|
30653
|
+
"text-muted-foreground hover:text-foreground",
|
|
30654
|
+
"active:scale-95"
|
|
30678
30655
|
),
|
|
30679
|
-
|
|
30680
|
-
position: "bottom-right"
|
|
30656
|
+
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "w-4 h-4" })
|
|
30681
30657
|
}
|
|
30682
|
-
)
|
|
30683
|
-
|
|
30684
|
-
|
|
30685
|
-
|
|
30686
|
-
|
|
30687
|
-
|
|
30658
|
+
),
|
|
30659
|
+
items: filteredActions,
|
|
30660
|
+
position: "bottom-right"
|
|
30661
|
+
}
|
|
30662
|
+
) : null;
|
|
30663
|
+
})(),
|
|
30664
|
+
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" })
|
|
30665
|
+
] })
|
|
30688
30666
|
]
|
|
30689
30667
|
}
|
|
30690
30668
|
),
|