@trops/dash-core 0.1.342 → 0.1.343

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
@@ -18656,6 +18656,8 @@ var WidgetCardHeader = function WidgetCardHeader(_ref) {
18656
18656
  var handleProviderSelect = function handleProviderSelect(providerType, providerId) {
18657
18657
  if (providerId === "_new") {
18658
18658
  onProviderChange(providerType, null, true); // true = create new
18659
+ } else if (providerId === "_unset") {
18660
+ onProviderChange(providerType, null, false); // unset — no provider
18659
18661
  } else {
18660
18662
  onProviderChange(providerType, providerId);
18661
18663
  }
@@ -18811,6 +18813,14 @@ var WidgetCardHeader = function WidgetCardHeader(_ref) {
18811
18813
  }) : /*#__PURE__*/jsxRuntime.jsxs("div", {
18812
18814
  className: "px-3 py-2 text-xs opacity-50 italic",
18813
18815
  children: ["No ", providerType, " providers configured"]
18816
+ }), !providerReq.required && selectedProviderId && /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, {
18817
+ onClick: function onClick() {
18818
+ handleProviderSelect(providerType, "_unset");
18819
+ },
18820
+ children: /*#__PURE__*/jsxRuntime.jsxs("span", {
18821
+ className: "text-gray-400",
18822
+ children: ["\xD7 Unset ", providerType]
18823
+ })
18814
18824
  }), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, {
18815
18825
  onClick: function onClick() {
18816
18826
  handleProviderSelect(providerType, "_new");