@trops/dash-core 0.1.216 → 0.1.218

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
@@ -6043,45 +6043,42 @@ var WizardDiscoverStep = function WizardDiscoverStep(_ref) {
6043
6043
  text: "".concat(state.selectedWidgets.length, " selected")
6044
6044
  })]
6045
6045
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
6046
- className: "grid grid-cols-2 lg:grid-cols-3 gap-3",
6046
+ className: "grid grid-cols-3 gap-3",
6047
6047
  children: filteredWidgets.map(function (widget) {
6048
6048
  var checked = isWidgetSelected(widget);
6049
- return /*#__PURE__*/jsxRuntime.jsx(DashReact.Card2, {
6049
+ return /*#__PURE__*/jsxRuntime.jsxs(DashReact.Card2, {
6050
6050
  hover: true,
6051
6051
  selected: checked,
6052
- padding: "p-5",
6052
+ padding: "p-4",
6053
6053
  rounded: "rounded-lg",
6054
- className: "hover:shadow-lg",
6054
+ className: "hover:shadow-lg flex flex-col",
6055
6055
  onClick: function onClick() {
6056
6056
  return handleToggleWidget(widget);
6057
6057
  },
6058
- children: /*#__PURE__*/jsxRuntime.jsxs("div", {
6059
- className: "flex items-start gap-2",
6060
- children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
6058
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
6059
+ className: "flex items-start justify-between gap-2",
6060
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
6061
+ className: "flex items-center gap-1.5",
6062
+ children: [widget.icon && /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
6063
+ icon: resolveIcon(widget.icon),
6064
+ fixedWidth: true,
6065
+ className: "text-gray-400 text-sm"
6066
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
6067
+ className: "text-sm font-medium text-gray-200 truncate",
6068
+ children: widget.name
6069
+ })]
6070
+ }), /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
6061
6071
  icon: checked ? "square-check" : "square",
6062
6072
  fixedWidth: true,
6063
- className: checked ? "text-blue-400 mt-0.5" : "text-gray-500 mt-0.5"
6064
- }), /*#__PURE__*/jsxRuntime.jsxs("div", {
6065
- className: "flex flex-col gap-0.5 min-w-0",
6066
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
6067
- className: "flex items-center gap-1.5",
6068
- children: [widget.icon && /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
6069
- icon: resolveIcon(widget.icon),
6070
- fixedWidth: true,
6071
- className: "text-gray-400 text-xs"
6072
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
6073
- className: "text-sm font-medium text-gray-200 truncate",
6074
- children: widget.name
6075
- })]
6076
- }), widget.description && /*#__PURE__*/jsxRuntime.jsx("p", {
6077
- className: "text-xs text-gray-400 line-clamp-2",
6078
- children: widget.description
6079
- }), widget.packageDisplayName && /*#__PURE__*/jsxRuntime.jsx("span", {
6080
- className: "text-xs text-gray-500",
6081
- children: widget.packageDisplayName
6082
- })]
6073
+ className: checked ? "text-blue-400 flex-shrink-0" : "text-gray-500 flex-shrink-0"
6083
6074
  })]
6084
- })
6075
+ }), widget.description && /*#__PURE__*/jsxRuntime.jsx("p", {
6076
+ className: "text-xs text-gray-400 line-clamp-2 mt-1.5 flex-1",
6077
+ children: widget.description
6078
+ }), widget.packageDisplayName && /*#__PURE__*/jsxRuntime.jsx("span", {
6079
+ className: "text-xs text-gray-500 mt-2 pt-1.5 border-t border-gray-700/50 truncate",
6080
+ children: widget.packageDisplayName
6081
+ })]
6085
6082
  }, widget.key);
6086
6083
  })
6087
6084
  })]