@trops/dash-core 0.1.304 → 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.esm.js CHANGED
@@ -18587,18 +18587,26 @@ var WidgetCardHeader = function WidgetCardHeader(_ref) {
18587
18587
  children: [/*#__PURE__*/jsxs(DropdownPanel.Header, {
18588
18588
  children: ["Select ", providerType]
18589
18589
  }), availableProviders.map(function (provider) {
18590
+ var isSelected = provider.id === selectedProviderId;
18590
18591
  return /*#__PURE__*/jsx(MenuItem2, {
18591
18592
  onClick: function onClick() {
18592
18593
  return handleProviderSelect(providerType, provider.id);
18593
18594
  },
18594
- selected: provider.id === selectedProviderId,
18595
+ selected: isSelected,
18595
18596
  children: /*#__PURE__*/jsxs("div", {
18596
- children: [/*#__PURE__*/jsx("div", {
18597
- className: "font-medium",
18598
- children: provider.name
18599
- }), provider.description && /*#__PURE__*/jsx("div", {
18600
- className: "text-xs opacity-60 mt-0.5",
18601
- children: provider.description
18597
+ className: "flex items-center gap-2 w-full",
18598
+ children: [/*#__PURE__*/jsx("span", {
18599
+ className: "w-4 text-center text-xs flex-shrink-0 ".concat(isSelected ? "text-green-400" : "opacity-0"),
18600
+ children: "\u2713"
18601
+ }), /*#__PURE__*/jsxs("div", {
18602
+ className: "flex-1 min-w-0",
18603
+ children: [/*#__PURE__*/jsx("div", {
18604
+ className: "font-medium",
18605
+ children: provider.name
18606
+ }), provider.description && /*#__PURE__*/jsx("div", {
18607
+ className: "text-xs opacity-60 mt-0.5",
18608
+ children: provider.description
18609
+ })]
18602
18610
  })]
18603
18611
  })
18604
18612
  }, provider.id);