@trops/dash-core 0.1.215 → 0.1.216
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 +29 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +29 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5979,13 +5979,13 @@ var WizardDiscoverStep = function WizardDiscoverStep(_ref) {
|
|
|
5979
5979
|
className: "text-sm font-semibold text-gray-300 flex items-center gap-2",
|
|
5980
5980
|
children: ["Dashboards (", filteredDashboards.length, " result", filteredDashboards.length !== 1 ? "s" : "", ")"]
|
|
5981
5981
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
5982
|
-
className: "grid grid-cols-
|
|
5982
|
+
className: "grid grid-cols-3 gap-3",
|
|
5983
5983
|
children: filteredDashboards.map(function (dash) {
|
|
5984
5984
|
var isSelected = state.selectedDashboard && state.selectedDashboard.name === dash.name;
|
|
5985
5985
|
var widgetCount = (dash.widgets || []).length;
|
|
5986
|
-
var
|
|
5986
|
+
var providerTags = (dash.providers || []).map(function (p) {
|
|
5987
5987
|
return p.name || p.type;
|
|
5988
|
-
}).
|
|
5988
|
+
}).filter(Boolean);
|
|
5989
5989
|
return /*#__PURE__*/jsxRuntime.jsxs(DashReact.Card2, {
|
|
5990
5990
|
hover: true,
|
|
5991
5991
|
selected: isSelected,
|
|
@@ -5996,27 +5996,40 @@ var WizardDiscoverStep = function WizardDiscoverStep(_ref) {
|
|
|
5996
5996
|
return handleSelectDashboard(dash);
|
|
5997
5997
|
},
|
|
5998
5998
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
5999
|
-
className: "flex items-center gap-2",
|
|
6000
|
-
children: [/*#__PURE__*/jsxRuntime.
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
5999
|
+
className: "flex flex-col items-center text-center gap-2",
|
|
6000
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
6001
|
+
className: "relative",
|
|
6002
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
6003
|
+
className: "text-2xl",
|
|
6004
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
6005
|
+
icon: resolveIcon(dash.icon || "grid-2"),
|
|
6006
|
+
fixedWidth: true,
|
|
6007
|
+
className: "text-gray-400"
|
|
6008
|
+
})
|
|
6009
|
+
}), isSelected && /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
6010
|
+
icon: "circle-check",
|
|
6011
|
+
className: "absolute -top-1 -right-3 text-blue-400 text-xs"
|
|
6012
|
+
})]
|
|
6004
6013
|
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
6005
|
-
className: "text-sm font-
|
|
6014
|
+
className: "text-sm font-semibold text-gray-200",
|
|
6006
6015
|
children: dash.displayName || dash.name
|
|
6007
|
-
}), isSelected && /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
6008
|
-
icon: "circle-check",
|
|
6009
|
-
className: "ml-auto text-blue-400"
|
|
6010
6016
|
})]
|
|
6011
6017
|
}), dash.description && /*#__PURE__*/jsxRuntime.jsx("p", {
|
|
6012
|
-
className: "text-xs text-gray-400 mt-
|
|
6018
|
+
className: "text-xs text-gray-400 mt-2 line-clamp-2 text-center",
|
|
6013
6019
|
children: dash.description
|
|
6014
6020
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
6015
|
-
className: "flex items-center
|
|
6021
|
+
className: "flex items-center justify-between mt-3 pt-2 border-t border-gray-700/50",
|
|
6016
6022
|
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
6023
|
+
className: "text-xs text-gray-500",
|
|
6017
6024
|
children: [widgetCount, " widget", widgetCount !== 1 ? "s" : ""]
|
|
6018
|
-
}),
|
|
6019
|
-
|
|
6025
|
+
}), providerTags.length > 0 && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
6026
|
+
className: "flex flex-wrap gap-1 justify-end",
|
|
6027
|
+
children: providerTags.slice(0, 3).map(function (tag) {
|
|
6028
|
+
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
6029
|
+
className: "text-xs px-1.5 py-0.5 rounded bg-gray-800 text-gray-400",
|
|
6030
|
+
children: tag
|
|
6031
|
+
}, tag);
|
|
6032
|
+
})
|
|
6020
6033
|
})]
|
|
6021
6034
|
})]
|
|
6022
6035
|
}, dash.name);
|