@trops/dash-core 0.1.228 → 0.1.230
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.esm.js +12 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3877,7 +3877,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
3877
3877
|
className: "space-y-1.5",
|
|
3878
3878
|
children: widgetDeps.map(function (w, idx) {
|
|
3879
3879
|
var _compatibility$widget;
|
|
3880
|
-
var status = (compatibility === null || compatibility === void 0 || (_compatibility$widget = compatibility.widgets) === null || _compatibility$widget === void 0 ? void 0 : _compatibility$widget[w
|
|
3880
|
+
var status = (compatibility === null || compatibility === void 0 || (_compatibility$widget = compatibility.widgets) === null || _compatibility$widget === void 0 ? void 0 : _compatibility$widget[w["package"] || w.name]) || "unknown";
|
|
3881
3881
|
var compat = getCompatIcon(status);
|
|
3882
3882
|
return /*#__PURE__*/jsxs("div", {
|
|
3883
3883
|
className: "p-2 rounded ".concat(currentTheme["bg-primary-medium"], " flex items-center gap-2"),
|
|
@@ -37886,9 +37886,9 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
37886
37886
|
className: "flex flex-col h-full",
|
|
37887
37887
|
children: [/*#__PURE__*/jsxs("div", {
|
|
37888
37888
|
className: "flex-shrink-0 flex flex-col gap-2 px-3 py-2 ".concat(headerStyles.backgroundColor || ""),
|
|
37889
|
-
children: [/*#__PURE__*/
|
|
37889
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
37890
37890
|
className: "flex items-center gap-2",
|
|
37891
|
-
children: /*#__PURE__*/jsx("div", {
|
|
37891
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
37892
37892
|
className: "flex-1",
|
|
37893
37893
|
children: /*#__PURE__*/jsx(SearchInput, {
|
|
37894
37894
|
value: searchQuery,
|
|
@@ -37896,7 +37896,15 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
37896
37896
|
placeholder: "Search dashboards...",
|
|
37897
37897
|
inputClassName: "py-1.5 text-xs"
|
|
37898
37898
|
})
|
|
37899
|
-
})
|
|
37899
|
+
}), onOpenWizard && /*#__PURE__*/jsx("button", {
|
|
37900
|
+
onClick: onOpenWizard,
|
|
37901
|
+
className: "flex-shrink-0 p-1.5 rounded opacity-60 hover:opacity-100 transition-opacity",
|
|
37902
|
+
title: "Dashboard Wizard",
|
|
37903
|
+
children: /*#__PURE__*/jsx(FontAwesomeIcon, {
|
|
37904
|
+
icon: "wand-magic-sparkles",
|
|
37905
|
+
className: "h-3.5 w-3.5"
|
|
37906
|
+
})
|
|
37907
|
+
})]
|
|
37900
37908
|
}), /*#__PURE__*/jsx(Tabs3, {
|
|
37901
37909
|
value: installMode === "marketplace" ? "marketplace" : viewMode,
|
|
37902
37910
|
onValueChange: function onValueChange(val) {
|
|
@@ -37925,14 +37933,6 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
37925
37933
|
value: "marketplace",
|
|
37926
37934
|
className: "flex-1",
|
|
37927
37935
|
children: "Marketplace"
|
|
37928
|
-
}), onOpenWizard && /*#__PURE__*/jsx(Tabs3.Trigger, {
|
|
37929
|
-
value: "wizard",
|
|
37930
|
-
className: "flex-1",
|
|
37931
|
-
onClick: function onClick(e) {
|
|
37932
|
-
e.preventDefault();
|
|
37933
|
-
onOpenWizard();
|
|
37934
|
-
},
|
|
37935
|
-
children: "Wizard"
|
|
37936
37936
|
})]
|
|
37937
37937
|
})
|
|
37938
37938
|
})]
|