@photoroom/ui 0.1.463 → 0.1.465
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.
|
@@ -11,10 +11,27 @@ export type ValidationBannerProps = Readonly<{
|
|
|
11
11
|
previewLabel?: string;
|
|
12
12
|
icon?: ButtonProps["icon"];
|
|
13
13
|
variant?: ButtonProps["variant"];
|
|
14
|
+
/**
|
|
15
|
+
* Optional secondary action rendered alongside the primary button — e.g. an
|
|
16
|
+
* "Edit with AI" affordance or a "Looks good" skip. Shown only when set.
|
|
17
|
+
*/
|
|
18
|
+
secondaryTitle?: string;
|
|
19
|
+
onSecondaryClick?: React.MouseEventHandler;
|
|
20
|
+
secondaryVariant?: ButtonProps["variant"];
|
|
21
|
+
secondaryDisabled?: boolean;
|
|
22
|
+
/** Position of the secondary button relative to the primary one. */
|
|
23
|
+
secondaryPlacement?: "above" | "below";
|
|
24
|
+
/**
|
|
25
|
+
* Controlled value of the edit input. When defined (even as an empty string),
|
|
26
|
+
* a text input is rendered below the preview so the user can describe an edit.
|
|
27
|
+
*/
|
|
28
|
+
inputValue?: string;
|
|
29
|
+
onInputChange?: (value: string) => void;
|
|
30
|
+
inputPlaceholder?: string;
|
|
14
31
|
"data-testid"?: string;
|
|
15
32
|
}> & React.RefAttributes<HTMLButtonElement>;
|
|
16
33
|
export declare const ValidationBanner: {
|
|
17
|
-
({ title, description, loading, disabled, onClick, onClose, preview, previewLabel, icon, variant, "data-testid": dataTestId, ref, }: ValidationBannerProps): React.JSX.Element;
|
|
34
|
+
({ title, description, loading, disabled, onClick, onClose, preview, previewLabel, icon, variant, secondaryTitle, onSecondaryClick, secondaryVariant, secondaryDisabled, secondaryPlacement, inputValue, onInputChange, inputPlaceholder, "data-testid": dataTestId, ref, }: ValidationBannerProps): React.JSX.Element;
|
|
18
35
|
displayName: string;
|
|
19
36
|
};
|
|
20
37
|
//# sourceMappingURL=ValidationBanner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/action/ValidationBanner/ValidationBanner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ValidationBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/action/ValidationBanner/ValidationBanner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAU,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAC3C,gBAAgB,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACvC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC,GACA,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;AAEzC,eAAO,MAAM,gBAAgB;iRAqB1B,qBAAqB;;CAgFvB,CAAC"}
|