@acarmisc/backstage-plugin-litellm 0.27.0 → 0.28.0
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
|
@@ -849,9 +849,11 @@ var init_GenerateKeyButton = __esm({
|
|
|
849
849
|
to,
|
|
850
850
|
onClick,
|
|
851
851
|
label = "Generate New Key",
|
|
852
|
-
size
|
|
852
|
+
size,
|
|
853
|
+
fullWidth = false,
|
|
854
|
+
disabled = false
|
|
853
855
|
}) => {
|
|
854
|
-
if (onClick) {
|
|
856
|
+
if (onClick && !disabled) {
|
|
855
857
|
return /* @__PURE__ */ React2.createElement(
|
|
856
858
|
Button,
|
|
857
859
|
{
|
|
@@ -859,13 +861,14 @@ var init_GenerateKeyButton = __esm({
|
|
|
859
861
|
color: "primary",
|
|
860
862
|
disableElevation: true,
|
|
861
863
|
size,
|
|
864
|
+
fullWidth,
|
|
862
865
|
startIcon: /* @__PURE__ */ React2.createElement(Add, null),
|
|
863
866
|
onClick
|
|
864
867
|
},
|
|
865
868
|
label
|
|
866
869
|
);
|
|
867
870
|
}
|
|
868
|
-
if (to) {
|
|
871
|
+
if (to && !disabled) {
|
|
869
872
|
return /* @__PURE__ */ React2.createElement(
|
|
870
873
|
Button,
|
|
871
874
|
{
|
|
@@ -873,6 +876,7 @@ var init_GenerateKeyButton = __esm({
|
|
|
873
876
|
color: "primary",
|
|
874
877
|
disableElevation: true,
|
|
875
878
|
size,
|
|
879
|
+
fullWidth,
|
|
876
880
|
startIcon: /* @__PURE__ */ React2.createElement(Add, null),
|
|
877
881
|
component: Link,
|
|
878
882
|
to
|
|
@@ -887,6 +891,7 @@ var init_GenerateKeyButton = __esm({
|
|
|
887
891
|
color: "primary",
|
|
888
892
|
disableElevation: true,
|
|
889
893
|
size,
|
|
894
|
+
fullWidth,
|
|
890
895
|
startIcon: /* @__PURE__ */ React2.createElement(Add, null),
|
|
891
896
|
disabled: true
|
|
892
897
|
},
|