@photoroom/ui 0.1.248 → 0.1.250
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/components/input/CanvasInput/CanvasInput.d.ts +3 -1
- package/components/input/CanvasInput/CanvasInput.d.ts.map +1 -1
- package/components/input/PromptInput/PromptInput.d.ts +1 -1
- package/components/input/PromptInput/PromptInput.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.mjs +41 -33
- package/package.json +1 -1
|
@@ -7,13 +7,15 @@ export type CanvasInputProps = {
|
|
|
7
7
|
autoFocus?: boolean;
|
|
8
8
|
buttonLabel?: string;
|
|
9
9
|
maxRows?: number;
|
|
10
|
+
/** Optional content rendered between the textarea and the submit button (e.g. a small action button). */
|
|
11
|
+
trailingAction?: React.ReactNode;
|
|
10
12
|
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
11
13
|
onSubmit?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
12
14
|
onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
13
15
|
onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
14
16
|
};
|
|
15
17
|
export declare const CanvasInput: {
|
|
16
|
-
({ value, buttonLabel, disabled, loading, autoFocus, placeholder, className, onChange, onSubmit, onKeyDown, onFocus, ...rest }: CanvasInputProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
({ value, buttonLabel, disabled, loading, autoFocus, placeholder, className, trailingAction, onChange, onSubmit, onKeyDown, onFocus, ...rest }: CanvasInputProps): import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
displayName: string;
|
|
18
20
|
};
|
|
19
21
|
//# sourceMappingURL=CanvasInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/CanvasInput/CanvasInput.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM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jC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACxE,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAClE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;CAC9D,CAAC;AAEF,eAAO,MAAM,WAAW;oJAcrB,gBAAgB;;CAwElB,CAAC"}
|
|
@@ -21,7 +21,7 @@ export type PromptInputProps = {
|
|
|
21
21
|
cancelLabel?: string;
|
|
22
22
|
/** Whether the prompt is being processed */
|
|
23
23
|
pending?: boolean;
|
|
24
|
-
/** Suggestion elements to display in the footer
|
|
24
|
+
/** Suggestion elements to display in the footer; hidden only while pending */
|
|
25
25
|
suggestions?: React.ReactNode;
|
|
26
26
|
/** Whether the textarea should be focused on mount */
|
|
27
27
|
autoFocus?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromptInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/PromptInput/PromptInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMxD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAM3D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"PromptInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/PromptInput/PromptInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMxD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAM3D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,sDAAsD;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC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