@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.
|
@@ -14,5 +14,9 @@ export interface GenerateKeyButtonProps {
|
|
|
14
14
|
label?: string;
|
|
15
15
|
/** Button size — card footers use `small`, page headers the default. */
|
|
16
16
|
size?: 'small' | 'medium' | 'large';
|
|
17
|
+
/** Stretch to the container width (card-footers). Defaults to false. */
|
|
18
|
+
fullWidth?: boolean;
|
|
19
|
+
/** Disabled state (e.g. until the account data loads). A disabled `to` renders inert. */
|
|
20
|
+
disabled?: boolean;
|
|
17
21
|
}
|
|
18
22
|
export declare const GenerateKeyButton: React.FC<GenerateKeyButtonProps>;
|
package/dist/index.cjs.js
CHANGED
|
@@ -871,9 +871,11 @@ var init_GenerateKeyButton = __esm({
|
|
|
871
871
|
to,
|
|
872
872
|
onClick,
|
|
873
873
|
label = "Generate New Key",
|
|
874
|
-
size
|
|
874
|
+
size,
|
|
875
|
+
fullWidth = false,
|
|
876
|
+
disabled = false
|
|
875
877
|
}) => {
|
|
876
|
-
if (onClick) {
|
|
878
|
+
if (onClick && !disabled) {
|
|
877
879
|
return /* @__PURE__ */ import_react2.default.createElement(
|
|
878
880
|
import_Button.default,
|
|
879
881
|
{
|
|
@@ -881,13 +883,14 @@ var init_GenerateKeyButton = __esm({
|
|
|
881
883
|
color: "primary",
|
|
882
884
|
disableElevation: true,
|
|
883
885
|
size,
|
|
886
|
+
fullWidth,
|
|
884
887
|
startIcon: /* @__PURE__ */ import_react2.default.createElement(import_icons_material.Add, null),
|
|
885
888
|
onClick
|
|
886
889
|
},
|
|
887
890
|
label
|
|
888
891
|
);
|
|
889
892
|
}
|
|
890
|
-
if (to) {
|
|
893
|
+
if (to && !disabled) {
|
|
891
894
|
return /* @__PURE__ */ import_react2.default.createElement(
|
|
892
895
|
import_Button.default,
|
|
893
896
|
{
|
|
@@ -895,6 +898,7 @@ var init_GenerateKeyButton = __esm({
|
|
|
895
898
|
color: "primary",
|
|
896
899
|
disableElevation: true,
|
|
897
900
|
size,
|
|
901
|
+
fullWidth,
|
|
898
902
|
startIcon: /* @__PURE__ */ import_react2.default.createElement(import_icons_material.Add, null),
|
|
899
903
|
component: import_core_components.Link,
|
|
900
904
|
to
|
|
@@ -909,6 +913,7 @@ var init_GenerateKeyButton = __esm({
|
|
|
909
913
|
color: "primary",
|
|
910
914
|
disableElevation: true,
|
|
911
915
|
size,
|
|
916
|
+
fullWidth,
|
|
912
917
|
startIcon: /* @__PURE__ */ import_react2.default.createElement(import_icons_material.Add, null),
|
|
913
918
|
disabled: true
|
|
914
919
|
},
|