@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.esm.js +15 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -18345,14 +18345,6 @@ var ProviderBadge = function ProviderBadge(_ref) {
|
|
|
18345
18345
|
}), /*#__PURE__*/jsx("span", {
|
|
18346
18346
|
className: "capitalize",
|
|
18347
18347
|
children: providerType
|
|
18348
|
-
}), isConfigured && providerName && /*#__PURE__*/jsxs(Fragment, {
|
|
18349
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
18350
|
-
className: "text-gray-400",
|
|
18351
|
-
children: "\xB7"
|
|
18352
|
-
}), /*#__PURE__*/jsx("span", {
|
|
18353
|
-
className: "max-w-[100px] truncate",
|
|
18354
|
-
children: providerName
|
|
18355
|
-
})]
|
|
18356
18348
|
})]
|
|
18357
18349
|
});
|
|
18358
18350
|
};
|
|
@@ -18595,18 +18587,26 @@ var WidgetCardHeader = function WidgetCardHeader(_ref) {
|
|
|
18595
18587
|
children: [/*#__PURE__*/jsxs(DropdownPanel.Header, {
|
|
18596
18588
|
children: ["Select ", providerType]
|
|
18597
18589
|
}), availableProviders.map(function (provider) {
|
|
18590
|
+
var isSelected = provider.id === selectedProviderId;
|
|
18598
18591
|
return /*#__PURE__*/jsx(MenuItem2, {
|
|
18599
18592
|
onClick: function onClick() {
|
|
18600
18593
|
return handleProviderSelect(providerType, provider.id);
|
|
18601
18594
|
},
|
|
18602
|
-
selected:
|
|
18595
|
+
selected: isSelected,
|
|
18603
18596
|
children: /*#__PURE__*/jsxs("div", {
|
|
18604
|
-
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
|
|
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
|
+
})]
|
|
18610
18610
|
})]
|
|
18611
18611
|
})
|
|
18612
18612
|
}, provider.id);
|