@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/avl/index.cjs
CHANGED
|
@@ -22166,10 +22166,7 @@ var init_DataList = __esm({
|
|
|
22166
22166
|
HStack,
|
|
22167
22167
|
{
|
|
22168
22168
|
gap: "xs",
|
|
22169
|
-
className:
|
|
22170
|
-
"flex-shrink-0 transition-opacity duration-200",
|
|
22171
|
-
"opacity-0 group-hover:opacity-100"
|
|
22172
|
-
),
|
|
22169
|
+
className: "flex-shrink-0",
|
|
22173
22170
|
children: itemActions.map((action, idx) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
22174
22171
|
Button,
|
|
22175
22172
|
{
|
|
@@ -22259,33 +22256,23 @@ var init_DataList = __esm({
|
|
|
22259
22256
|
] }, field.name);
|
|
22260
22257
|
})
|
|
22261
22258
|
] }),
|
|
22262
|
-
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
22263
|
-
|
|
22259
|
+
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(HStack, { gap: "xs", className: "flex-shrink-0", children: itemActions.map((action, idx) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
22260
|
+
Button,
|
|
22264
22261
|
{
|
|
22265
|
-
|
|
22262
|
+
variant: action.variant ?? "ghost",
|
|
22263
|
+
size: "sm",
|
|
22264
|
+
onClick: handleActionClick(action, itemData),
|
|
22265
|
+
"data-testid": `action-${action.event}`,
|
|
22266
22266
|
className: cn(
|
|
22267
|
-
"
|
|
22268
|
-
"opacity-0 group-hover:opacity-100"
|
|
22267
|
+
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
22269
22268
|
),
|
|
22270
|
-
children:
|
|
22271
|
-
|
|
22272
|
-
|
|
22273
|
-
|
|
22274
|
-
|
|
22275
|
-
|
|
22276
|
-
|
|
22277
|
-
className: cn(
|
|
22278
|
-
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
22279
|
-
),
|
|
22280
|
-
children: [
|
|
22281
|
-
action.icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
22282
|
-
action.label
|
|
22283
|
-
]
|
|
22284
|
-
},
|
|
22285
|
-
idx
|
|
22286
|
-
))
|
|
22287
|
-
}
|
|
22288
|
-
)
|
|
22269
|
+
children: [
|
|
22270
|
+
action.icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
22271
|
+
action.label
|
|
22272
|
+
]
|
|
22273
|
+
},
|
|
22274
|
+
idx
|
|
22275
|
+
)) })
|
|
22289
22276
|
]
|
|
22290
22277
|
}
|
|
22291
22278
|
),
|
|
@@ -33717,75 +33704,66 @@ var init_List = __esm({
|
|
|
33717
33704
|
hasProgress && /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "ml-auto", children: /* @__PURE__ */ jsxRuntime.jsx(ProgressIndicator, { value: progressValue }) })
|
|
33718
33705
|
] })
|
|
33719
33706
|
] }),
|
|
33720
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
33721
|
-
|
|
33722
|
-
|
|
33723
|
-
|
|
33724
|
-
|
|
33725
|
-
|
|
33726
|
-
|
|
33727
|
-
|
|
33728
|
-
|
|
33729
|
-
|
|
33730
|
-
|
|
33731
|
-
variant: "ghost",
|
|
33732
|
-
action: editAction.event,
|
|
33733
|
-
className: cn(
|
|
33734
|
-
"p-2 rounded-lg transition-all duration-200",
|
|
33735
|
-
"hover:bg-primary/10 hover:text-primary",
|
|
33736
|
-
"text-muted-foreground",
|
|
33737
|
-
"active:scale-95"
|
|
33738
|
-
),
|
|
33739
|
-
title: editAction.label,
|
|
33740
|
-
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
33741
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Pencil, { className: "w-4 h-4" })
|
|
33742
|
-
}
|
|
33707
|
+
/* @__PURE__ */ jsxRuntime.jsxs(HStack, { className: "flex items-center gap-1 flex-shrink-0", children: [
|
|
33708
|
+
editAction && /* @__PURE__ */ jsxRuntime.jsx(
|
|
33709
|
+
Button,
|
|
33710
|
+
{
|
|
33711
|
+
variant: "ghost",
|
|
33712
|
+
action: editAction.event,
|
|
33713
|
+
className: cn(
|
|
33714
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
33715
|
+
"hover:bg-primary/10 hover:text-primary",
|
|
33716
|
+
"text-muted-foreground",
|
|
33717
|
+
"active:scale-95"
|
|
33743
33718
|
),
|
|
33744
|
-
|
|
33745
|
-
|
|
33746
|
-
|
|
33747
|
-
|
|
33748
|
-
|
|
33749
|
-
|
|
33750
|
-
|
|
33751
|
-
|
|
33752
|
-
|
|
33753
|
-
|
|
33754
|
-
|
|
33755
|
-
|
|
33756
|
-
|
|
33757
|
-
|
|
33758
|
-
|
|
33719
|
+
title: editAction.label,
|
|
33720
|
+
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
33721
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Pencil, { className: "w-4 h-4" })
|
|
33722
|
+
}
|
|
33723
|
+
),
|
|
33724
|
+
viewAction && /* @__PURE__ */ jsxRuntime.jsx(
|
|
33725
|
+
Button,
|
|
33726
|
+
{
|
|
33727
|
+
variant: "ghost",
|
|
33728
|
+
action: viewAction.event,
|
|
33729
|
+
className: cn(
|
|
33730
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
33731
|
+
"hover:bg-muted hover:text-foreground",
|
|
33732
|
+
"text-muted-foreground",
|
|
33733
|
+
"active:scale-95"
|
|
33759
33734
|
),
|
|
33760
|
-
|
|
33761
|
-
|
|
33762
|
-
|
|
33763
|
-
|
|
33764
|
-
|
|
33765
|
-
|
|
33735
|
+
title: viewAction.label,
|
|
33736
|
+
"data-testid": viewAction.event ? `action-${viewAction.event}` : void 0,
|
|
33737
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Eye, { className: "w-4 h-4" })
|
|
33738
|
+
}
|
|
33739
|
+
),
|
|
33740
|
+
(() => {
|
|
33741
|
+
const filteredActions = actions.filter(
|
|
33742
|
+
(a) => !a.label.toLowerCase().includes("edit") && !a.label.toLowerCase().includes("view") && !a.label.toLowerCase().includes("open")
|
|
33743
|
+
);
|
|
33744
|
+
return filteredActions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
33745
|
+
Menu,
|
|
33746
|
+
{
|
|
33747
|
+
trigger: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33748
|
+
Button,
|
|
33766
33749
|
{
|
|
33767
|
-
|
|
33768
|
-
|
|
33769
|
-
|
|
33770
|
-
|
|
33771
|
-
|
|
33772
|
-
|
|
33773
|
-
"hover:bg-muted hover:shadow-sm",
|
|
33774
|
-
"text-muted-foreground hover:text-foreground",
|
|
33775
|
-
"active:scale-95"
|
|
33776
|
-
),
|
|
33777
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.MoreHorizontal, { className: "w-4 h-4" })
|
|
33778
|
-
}
|
|
33750
|
+
variant: "ghost",
|
|
33751
|
+
className: cn(
|
|
33752
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
33753
|
+
"hover:bg-muted hover:shadow-sm",
|
|
33754
|
+
"text-muted-foreground hover:text-foreground",
|
|
33755
|
+
"active:scale-95"
|
|
33779
33756
|
),
|
|
33780
|
-
|
|
33781
|
-
position: "bottom-right"
|
|
33757
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.MoreHorizontal, { className: "w-4 h-4" })
|
|
33782
33758
|
}
|
|
33783
|
-
)
|
|
33784
|
-
|
|
33785
|
-
|
|
33786
|
-
|
|
33787
|
-
|
|
33788
|
-
|
|
33759
|
+
),
|
|
33760
|
+
items: filteredActions,
|
|
33761
|
+
position: "bottom-right"
|
|
33762
|
+
}
|
|
33763
|
+
) : null;
|
|
33764
|
+
})(),
|
|
33765
|
+
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" })
|
|
33766
|
+
] })
|
|
33789
33767
|
]
|
|
33790
33768
|
}
|
|
33791
33769
|
),
|
|
@@ -51104,15 +51082,6 @@ function createClientEffectHandlers(options) {
|
|
|
51104
51082
|
slotSetter.clearSlot(slot);
|
|
51105
51083
|
return;
|
|
51106
51084
|
}
|
|
51107
|
-
if (typeof console !== "undefined" && slot === "modal") {
|
|
51108
|
-
try {
|
|
51109
|
-
const str = JSON.stringify(pattern);
|
|
51110
|
-
if (str && str.includes("actionPayload")) {
|
|
51111
|
-
console.warn("[render-ui modal] pattern=", str.slice(0, 800));
|
|
51112
|
-
}
|
|
51113
|
-
} catch {
|
|
51114
|
-
}
|
|
51115
|
-
}
|
|
51116
51085
|
slotSetter.addPattern(slot, pattern, props);
|
|
51117
51086
|
},
|
|
51118
51087
|
navigate: navigate ?? ((path) => {
|
package/dist/avl/index.js
CHANGED
|
@@ -22120,10 +22120,7 @@ var init_DataList = __esm({
|
|
|
22120
22120
|
HStack,
|
|
22121
22121
|
{
|
|
22122
22122
|
gap: "xs",
|
|
22123
|
-
className:
|
|
22124
|
-
"flex-shrink-0 transition-opacity duration-200",
|
|
22125
|
-
"opacity-0 group-hover:opacity-100"
|
|
22126
|
-
),
|
|
22123
|
+
className: "flex-shrink-0",
|
|
22127
22124
|
children: itemActions.map((action, idx) => /* @__PURE__ */ jsxs(
|
|
22128
22125
|
Button,
|
|
22129
22126
|
{
|
|
@@ -22213,33 +22210,23 @@ var init_DataList = __esm({
|
|
|
22213
22210
|
] }, field.name);
|
|
22214
22211
|
})
|
|
22215
22212
|
] }),
|
|
22216
|
-
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsx(
|
|
22217
|
-
|
|
22213
|
+
itemActions && itemActions.length > 0 && /* @__PURE__ */ jsx(HStack, { gap: "xs", className: "flex-shrink-0", children: itemActions.map((action, idx) => /* @__PURE__ */ jsxs(
|
|
22214
|
+
Button,
|
|
22218
22215
|
{
|
|
22219
|
-
|
|
22216
|
+
variant: action.variant ?? "ghost",
|
|
22217
|
+
size: "sm",
|
|
22218
|
+
onClick: handleActionClick(action, itemData),
|
|
22219
|
+
"data-testid": `action-${action.event}`,
|
|
22220
22220
|
className: cn(
|
|
22221
|
-
"
|
|
22222
|
-
"opacity-0 group-hover:opacity-100"
|
|
22221
|
+
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
22223
22222
|
),
|
|
22224
|
-
children:
|
|
22225
|
-
|
|
22226
|
-
|
|
22227
|
-
|
|
22228
|
-
|
|
22229
|
-
|
|
22230
|
-
|
|
22231
|
-
className: cn(
|
|
22232
|
-
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
22233
|
-
),
|
|
22234
|
-
children: [
|
|
22235
|
-
action.icon && /* @__PURE__ */ jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
22236
|
-
action.label
|
|
22237
|
-
]
|
|
22238
|
-
},
|
|
22239
|
-
idx
|
|
22240
|
-
))
|
|
22241
|
-
}
|
|
22242
|
-
)
|
|
22223
|
+
children: [
|
|
22224
|
+
action.icon && /* @__PURE__ */ jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
22225
|
+
action.label
|
|
22226
|
+
]
|
|
22227
|
+
},
|
|
22228
|
+
idx
|
|
22229
|
+
)) })
|
|
22243
22230
|
]
|
|
22244
22231
|
}
|
|
22245
22232
|
),
|
|
@@ -33671,75 +33658,66 @@ var init_List = __esm({
|
|
|
33671
33658
|
hasProgress && /* @__PURE__ */ jsx(Box, { className: "ml-auto", children: /* @__PURE__ */ jsx(ProgressIndicator, { value: progressValue }) })
|
|
33672
33659
|
] })
|
|
33673
33660
|
] }),
|
|
33674
|
-
/* @__PURE__ */ jsxs(
|
|
33675
|
-
|
|
33676
|
-
|
|
33677
|
-
|
|
33678
|
-
|
|
33679
|
-
|
|
33680
|
-
|
|
33681
|
-
|
|
33682
|
-
|
|
33683
|
-
|
|
33684
|
-
|
|
33685
|
-
variant: "ghost",
|
|
33686
|
-
action: editAction.event,
|
|
33687
|
-
className: cn(
|
|
33688
|
-
"p-2 rounded-lg transition-all duration-200",
|
|
33689
|
-
"hover:bg-primary/10 hover:text-primary",
|
|
33690
|
-
"text-muted-foreground",
|
|
33691
|
-
"active:scale-95"
|
|
33692
|
-
),
|
|
33693
|
-
title: editAction.label,
|
|
33694
|
-
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
33695
|
-
children: /* @__PURE__ */ jsx(Pencil, { className: "w-4 h-4" })
|
|
33696
|
-
}
|
|
33661
|
+
/* @__PURE__ */ jsxs(HStack, { className: "flex items-center gap-1 flex-shrink-0", children: [
|
|
33662
|
+
editAction && /* @__PURE__ */ jsx(
|
|
33663
|
+
Button,
|
|
33664
|
+
{
|
|
33665
|
+
variant: "ghost",
|
|
33666
|
+
action: editAction.event,
|
|
33667
|
+
className: cn(
|
|
33668
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
33669
|
+
"hover:bg-primary/10 hover:text-primary",
|
|
33670
|
+
"text-muted-foreground",
|
|
33671
|
+
"active:scale-95"
|
|
33697
33672
|
),
|
|
33698
|
-
|
|
33699
|
-
|
|
33700
|
-
|
|
33701
|
-
|
|
33702
|
-
|
|
33703
|
-
|
|
33704
|
-
|
|
33705
|
-
|
|
33706
|
-
|
|
33707
|
-
|
|
33708
|
-
|
|
33709
|
-
|
|
33710
|
-
|
|
33711
|
-
|
|
33712
|
-
|
|
33673
|
+
title: editAction.label,
|
|
33674
|
+
"data-testid": editAction.event ? `action-${editAction.event}` : void 0,
|
|
33675
|
+
children: /* @__PURE__ */ jsx(Pencil, { className: "w-4 h-4" })
|
|
33676
|
+
}
|
|
33677
|
+
),
|
|
33678
|
+
viewAction && /* @__PURE__ */ jsx(
|
|
33679
|
+
Button,
|
|
33680
|
+
{
|
|
33681
|
+
variant: "ghost",
|
|
33682
|
+
action: viewAction.event,
|
|
33683
|
+
className: cn(
|
|
33684
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
33685
|
+
"hover:bg-muted hover:text-foreground",
|
|
33686
|
+
"text-muted-foreground",
|
|
33687
|
+
"active:scale-95"
|
|
33713
33688
|
),
|
|
33714
|
-
|
|
33715
|
-
|
|
33716
|
-
|
|
33717
|
-
|
|
33718
|
-
|
|
33719
|
-
|
|
33689
|
+
title: viewAction.label,
|
|
33690
|
+
"data-testid": viewAction.event ? `action-${viewAction.event}` : void 0,
|
|
33691
|
+
children: /* @__PURE__ */ jsx(Eye, { className: "w-4 h-4" })
|
|
33692
|
+
}
|
|
33693
|
+
),
|
|
33694
|
+
(() => {
|
|
33695
|
+
const filteredActions = actions.filter(
|
|
33696
|
+
(a) => !a.label.toLowerCase().includes("edit") && !a.label.toLowerCase().includes("view") && !a.label.toLowerCase().includes("open")
|
|
33697
|
+
);
|
|
33698
|
+
return filteredActions.length > 0 ? /* @__PURE__ */ jsx(
|
|
33699
|
+
Menu,
|
|
33700
|
+
{
|
|
33701
|
+
trigger: /* @__PURE__ */ jsx(
|
|
33702
|
+
Button,
|
|
33720
33703
|
{
|
|
33721
|
-
|
|
33722
|
-
|
|
33723
|
-
|
|
33724
|
-
|
|
33725
|
-
|
|
33726
|
-
|
|
33727
|
-
"hover:bg-muted hover:shadow-sm",
|
|
33728
|
-
"text-muted-foreground hover:text-foreground",
|
|
33729
|
-
"active:scale-95"
|
|
33730
|
-
),
|
|
33731
|
-
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "w-4 h-4" })
|
|
33732
|
-
}
|
|
33704
|
+
variant: "ghost",
|
|
33705
|
+
className: cn(
|
|
33706
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
33707
|
+
"hover:bg-muted hover:shadow-sm",
|
|
33708
|
+
"text-muted-foreground hover:text-foreground",
|
|
33709
|
+
"active:scale-95"
|
|
33733
33710
|
),
|
|
33734
|
-
|
|
33735
|
-
position: "bottom-right"
|
|
33711
|
+
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "w-4 h-4" })
|
|
33736
33712
|
}
|
|
33737
|
-
)
|
|
33738
|
-
|
|
33739
|
-
|
|
33740
|
-
|
|
33741
|
-
|
|
33742
|
-
|
|
33713
|
+
),
|
|
33714
|
+
items: filteredActions,
|
|
33715
|
+
position: "bottom-right"
|
|
33716
|
+
}
|
|
33717
|
+
) : null;
|
|
33718
|
+
})(),
|
|
33719
|
+
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" })
|
|
33720
|
+
] })
|
|
33743
33721
|
]
|
|
33744
33722
|
}
|
|
33745
33723
|
),
|
|
@@ -51058,15 +51036,6 @@ function createClientEffectHandlers(options) {
|
|
|
51058
51036
|
slotSetter.clearSlot(slot);
|
|
51059
51037
|
return;
|
|
51060
51038
|
}
|
|
51061
|
-
if (typeof console !== "undefined" && slot === "modal") {
|
|
51062
|
-
try {
|
|
51063
|
-
const str = JSON.stringify(pattern);
|
|
51064
|
-
if (str && str.includes("actionPayload")) {
|
|
51065
|
-
console.warn("[render-ui modal] pattern=", str.slice(0, 800));
|
|
51066
|
-
}
|
|
51067
|
-
} catch {
|
|
51068
|
-
}
|
|
51069
|
-
}
|
|
51070
51039
|
slotSetter.addPattern(slot, pattern, props);
|
|
51071
51040
|
},
|
|
51072
51041
|
navigate: navigate ?? ((path) => {
|
|
@@ -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
|
),
|