@trops/dash-core 0.1.214 → 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.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-2 gap-3",
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 providerNames = (dash.providers || []).map(function (p) {
5986
+ var providerTags = (dash.providers || []).map(function (p) {
5987
5987
  return p.name || p.type;
5988
- }).join(", ");
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.jsx(DashReact.FontAwesomeIcon, {
6001
- icon: resolveIcon(dash.icon || "grid-2"),
6002
- fixedWidth: true,
6003
- className: "text-gray-400"
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-medium text-gray-200",
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-1 line-clamp-2",
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 gap-3 mt-2 text-xs text-gray-500",
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
- }), providerNames && /*#__PURE__*/jsxRuntime.jsx("span", {
6019
- children: providerNames
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);
@@ -6030,7 +6043,7 @@ var WizardDiscoverStep = function WizardDiscoverStep(_ref) {
6030
6043
  text: "".concat(state.selectedWidgets.length, " selected")
6031
6044
  })]
6032
6045
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
6033
- className: "grid grid-cols-2 gap-3",
6046
+ className: "grid grid-cols-2 lg:grid-cols-3 gap-3",
6034
6047
  children: filteredWidgets.map(function (widget) {
6035
6048
  var checked = isWidgetSelected(widget);
6036
6049
  return /*#__PURE__*/jsxRuntime.jsx(DashReact.Card2, {
@@ -7233,7 +7246,7 @@ var DashboardWizardModal = function DashboardWizardModal(_ref) {
7233
7246
  return /*#__PURE__*/jsxRuntime.jsx(DashReact.Modal, {
7234
7247
  isOpen: open,
7235
7248
  setIsOpen: setIsOpen,
7236
- width: "w-5/6",
7249
+ width: "w-full max-w-5xl",
7237
7250
  height: "h-5/6",
7238
7251
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
7239
7252
  className: "flex flex-col h-full bg-gray-900 rounded-lg overflow-hidden",