@trops/dash-core 0.1.303 → 0.1.305

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
@@ -18363,14 +18363,6 @@ var ProviderBadge = function ProviderBadge(_ref) {
18363
18363
  }), /*#__PURE__*/jsxRuntime.jsx("span", {
18364
18364
  className: "capitalize",
18365
18365
  children: providerType
18366
- }), isConfigured && providerName && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
18367
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
18368
- className: "text-gray-400",
18369
- children: "\xB7"
18370
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
18371
- className: "max-w-[100px] truncate",
18372
- children: providerName
18373
- })]
18374
18366
  })]
18375
18367
  });
18376
18368
  };
@@ -18613,18 +18605,26 @@ var WidgetCardHeader = function WidgetCardHeader(_ref) {
18613
18605
  children: [/*#__PURE__*/jsxRuntime.jsxs(DashReact.DropdownPanel.Header, {
18614
18606
  children: ["Select ", providerType]
18615
18607
  }), availableProviders.map(function (provider) {
18608
+ var isSelected = provider.id === selectedProviderId;
18616
18609
  return /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, {
18617
18610
  onClick: function onClick() {
18618
18611
  return handleProviderSelect(providerType, provider.id);
18619
18612
  },
18620
- selected: provider.id === selectedProviderId,
18613
+ selected: isSelected,
18621
18614
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
18622
- children: [/*#__PURE__*/jsxRuntime.jsx("div", {
18623
- className: "font-medium",
18624
- children: provider.name
18625
- }), provider.description && /*#__PURE__*/jsxRuntime.jsx("div", {
18626
- className: "text-xs opacity-60 mt-0.5",
18627
- children: provider.description
18615
+ className: "flex items-center gap-2 w-full",
18616
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
18617
+ className: "w-4 text-center text-xs flex-shrink-0 ".concat(isSelected ? "text-green-400" : "opacity-0"),
18618
+ children: "\u2713"
18619
+ }), /*#__PURE__*/jsxRuntime.jsxs("div", {
18620
+ className: "flex-1 min-w-0",
18621
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
18622
+ className: "font-medium",
18623
+ children: provider.name
18624
+ }), provider.description && /*#__PURE__*/jsxRuntime.jsx("div", {
18625
+ className: "text-xs opacity-60 mt-0.5",
18626
+ children: provider.description
18627
+ })]
18628
18628
  })]
18629
18629
  })
18630
18630
  }, provider.id);