@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.esm.js
CHANGED
|
@@ -25081,21 +25081,33 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
25081
25081
|
// Render empty cell body content (used inside WidgetCard.Body in edit mode)
|
|
25082
25082
|
function renderEmptyCellContent(cellNumber) {
|
|
25083
25083
|
return /*#__PURE__*/jsxs("div", {
|
|
25084
|
-
className: "w-full h-full min-h-16 flex flex-col items-center justify-center
|
|
25085
|
-
onClick: function onClick() {
|
|
25086
|
-
return handleClickAdd(cellNumber);
|
|
25087
|
-
},
|
|
25084
|
+
className: "w-full h-full min-h-16 flex flex-col items-center justify-center gap-2",
|
|
25088
25085
|
onContextMenu: function onContextMenu(e) {
|
|
25089
25086
|
return handleCellRightClick(e, cellNumber);
|
|
25090
25087
|
},
|
|
25091
|
-
children: [/*#__PURE__*/
|
|
25092
|
-
|
|
25093
|
-
|
|
25094
|
-
|
|
25095
|
-
|
|
25096
|
-
|
|
25097
|
-
|
|
25098
|
-
|
|
25088
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
25089
|
+
className: "flex flex-col items-center cursor-pointer hover:bg-gray-800/50 rounded-lg px-4 py-2 transition-colors",
|
|
25090
|
+
onClick: function onClick() {
|
|
25091
|
+
return handleClickAdd(cellNumber);
|
|
25092
|
+
},
|
|
25093
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, {
|
|
25094
|
+
icon: "plus",
|
|
25095
|
+
textColor: "text-gray-600",
|
|
25096
|
+
hoverTextColor: "hover:text-blue-400",
|
|
25097
|
+
backgroundColor: "bg-transparent"
|
|
25098
|
+
}), /*#__PURE__*/jsx("span", {
|
|
25099
|
+
className: "text-xs text-gray-600 mt-1",
|
|
25100
|
+
children: "Add widget"
|
|
25101
|
+
})]
|
|
25102
|
+
}), /*#__PURE__*/jsxs("button", {
|
|
25103
|
+
onClick: function onClick() {
|
|
25104
|
+
return window.dispatchEvent(new Event("dash:open-widget-builder"));
|
|
25105
|
+
},
|
|
25106
|
+
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",
|
|
25107
|
+
children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
|
|
25108
|
+
icon: "wand-magic-sparkles",
|
|
25109
|
+
className: "h-2.5 w-2.5"
|
|
25110
|
+
}), "Build with AI"]
|
|
25099
25111
|
})]
|
|
25100
25112
|
});
|
|
25101
25113
|
}
|