@trops/dash-core 0.1.270 → 0.1.271

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/index.js CHANGED
@@ -23933,20 +23933,21 @@ var ExternalWidget = function ExternalWidget(_ref) {
23933
23933
  description = _ref.description,
23934
23934
  icon = _ref.icon;
23935
23935
  _objectWithoutProperties(_ref, _excluded$3);
23936
- return /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel, {
23937
- children: /*#__PURE__*/jsxRuntime.jsxs("div", {
23938
- className: "flex flex-col items-center justify-center gap-2 py-6 text-center opacity-70",
23939
- children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
23940
- icon: icon || "puzzle-piece",
23941
- className: "h-6 w-6 opacity-50"
23942
- }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, {
23943
- title: title || "External Widget",
23944
- padding: false
23945
- }), description && /*#__PURE__*/jsxRuntime.jsx("p", {
23946
- className: "text-sm text-gray-400 max-w-xs",
23947
- children: description
23948
- })]
23949
- })
23936
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
23937
+ className: "flex flex-col h-full justify-center items-center w-full gap-2 p-4 text-center",
23938
+ children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
23939
+ icon: icon || "triangle-exclamation",
23940
+ className: "h-5 w-5 text-amber-500"
23941
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
23942
+ className: "text-sm font-semibold text-gray-300",
23943
+ children: "Widget Unavailable"
23944
+ }), title && /*#__PURE__*/jsxRuntime.jsx("div", {
23945
+ className: "text-xs text-gray-500 font-mono",
23946
+ children: title
23947
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
23948
+ className: "text-xs text-gray-600 mt-1",
23949
+ children: description || "Check widget configuration or reinstall from the registry."
23950
+ })]
23950
23951
  });
23951
23952
  };
23952
23953