@inf-monkeys-tech/monkeys-design 2.0.457 → 2.0.458
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/capabilities/index.js +23 -23
- package/dist/components/capabilities/index.js.map +1 -1
- package/dist/components/capabilities/index.mjs +9 -9
- package/dist/components/capabilities/index.mjs.map +1 -1
- package/dist/sources/{2005502aad91a9446339998c976d1b7181f83cca034058b7b109b7417386e58b.tsx → 18b872f903bee9b336a7f58d513065c63691df00c7c3bdef09eefa42782a8f65.tsx} +10 -5
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Play } from 'lucide-react';
|
|
1
|
+
import { MoreHorizontal, Play } from 'lucide-react';
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import type { JsonObject } from "@inf-monkeys-tech/monkeys";
|
|
4
4
|
import {
|
|
@@ -306,6 +306,9 @@ export const DirectoryViewCapabilityRenderer: DesignCapabilityRenderer = ({
|
|
|
306
306
|
};
|
|
307
307
|
const standalone = allowed.filter((action) => action.placement === "icon" && action.icon === "play" && !action.destructive);
|
|
308
308
|
const menuActions = allowed.filter((action) => !standalone.includes(action));
|
|
309
|
+
const menuLabel = translate(
|
|
310
|
+
String(model.actionLabelKey || "common.utils.operate"),
|
|
311
|
+
);
|
|
309
312
|
const inlineAction = (action: typeof actions[number], iconOnly: boolean) => {
|
|
310
313
|
const label = translate(action.labelKey);
|
|
311
314
|
return (
|
|
@@ -340,12 +343,14 @@ export const DirectoryViewCapabilityRenderer: DesignCapabilityRenderer = ({
|
|
|
340
343
|
<DropdownMenuTrigger asChild>
|
|
341
344
|
<BaseButton
|
|
342
345
|
variant="ghost"
|
|
346
|
+
size="sm"
|
|
347
|
+
iconOnly
|
|
348
|
+
icon={<MoreHorizontal aria-hidden="true" />}
|
|
349
|
+
label={menuLabel}
|
|
350
|
+
ariaLabel={menuLabel}
|
|
351
|
+
title={menuLabel}
|
|
343
352
|
loading={pending}
|
|
344
353
|
disabled={pending}
|
|
345
|
-
label="⋯"
|
|
346
|
-
aria-label={translate(
|
|
347
|
-
String(model.actionLabelKey || "common.utils.operate"),
|
|
348
|
-
)}
|
|
349
354
|
onClick={(event) => event.stopPropagation()}
|
|
350
355
|
onPointerDown={(event) => event.stopPropagation()}
|
|
351
356
|
onKeyDown={(event) => event.stopPropagation()}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inf-monkeys-tech/monkeys-design",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.458",
|
|
4
4
|
"description": "Monkeys Design Components Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -382,5 +382,5 @@
|
|
|
382
382
|
],
|
|
383
383
|
"license": "MIT",
|
|
384
384
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
|
|
385
|
-
"monkeysReleaseCommit": "
|
|
385
|
+
"monkeysReleaseCommit": "af474e8806627fee8d3f8d3ff045178e1370c655"
|
|
386
386
|
}
|