@trops/dash-core 0.1.317 → 0.1.319
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/electron/index.js +7 -3
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +24 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +24 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25099,21 +25099,33 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref3) {
|
|
|
25099
25099
|
// Render empty cell body content (used inside WidgetCard.Body in edit mode)
|
|
25100
25100
|
function renderEmptyCellContent(cellNumber) {
|
|
25101
25101
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
25102
|
-
className: "w-full h-full min-h-16 flex flex-col items-center justify-center
|
|
25103
|
-
onClick: function onClick() {
|
|
25104
|
-
return handleClickAdd(cellNumber);
|
|
25105
|
-
},
|
|
25102
|
+
className: "w-full h-full min-h-16 flex flex-col items-center justify-center gap-2",
|
|
25106
25103
|
onContextMenu: function onContextMenu(e) {
|
|
25107
25104
|
return handleCellRightClick(e, cellNumber);
|
|
25108
25105
|
},
|
|
25109
|
-
children: [/*#__PURE__*/jsxRuntime.
|
|
25110
|
-
|
|
25111
|
-
|
|
25112
|
-
|
|
25113
|
-
|
|
25114
|
-
|
|
25115
|
-
|
|
25116
|
-
|
|
25106
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
25107
|
+
className: "flex flex-col items-center cursor-pointer hover:bg-gray-800/50 rounded-lg px-4 py-2 transition-colors",
|
|
25108
|
+
onClick: function onClick() {
|
|
25109
|
+
return handleClickAdd(cellNumber);
|
|
25110
|
+
},
|
|
25111
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, {
|
|
25112
|
+
icon: "plus",
|
|
25113
|
+
textColor: "text-gray-600",
|
|
25114
|
+
hoverTextColor: "hover:text-blue-400",
|
|
25115
|
+
backgroundColor: "bg-transparent"
|
|
25116
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
25117
|
+
className: "text-xs text-gray-600 mt-1",
|
|
25118
|
+
children: "Add widget"
|
|
25119
|
+
})]
|
|
25120
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
25121
|
+
onClick: function onClick() {
|
|
25122
|
+
return window.dispatchEvent(new Event("dash:open-widget-builder"));
|
|
25123
|
+
},
|
|
25124
|
+
className: "flex items-center gap-1.5 px-3 py-1 rounded-md text-xs text-indigo-400/70 hover:text-indigo-300 hover:bg-indigo-900/20 transition-colors",
|
|
25125
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
25126
|
+
icon: "wand-magic-sparkles",
|
|
25127
|
+
className: "h-2.5 w-2.5"
|
|
25128
|
+
}), "Build with AI"]
|
|
25117
25129
|
})]
|
|
25118
25130
|
});
|
|
25119
25131
|
}
|