@photoroom/ui 0.1.575 → 0.1.577
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/editor/FloatingPanel/FloatingPanel.d.ts +16 -2
- package/components/editor/FloatingPanel/FloatingPanel.d.ts.map +1 -1
- package/components/editor/FloatingPanel/FloatingPanelAccessoryBar.d.ts +9 -0
- package/components/editor/FloatingPanel/FloatingPanelAccessoryBar.d.ts.map +1 -0
- package/components/editor/FloatingPanel/FloatingPanelContent.d.ts.map +1 -1
- package/components/editor/FloatingPanel/FloatingPanelContext.d.ts +5 -0
- package/components/editor/FloatingPanel/FloatingPanelContext.d.ts.map +1 -1
- package/components/editor/FloatingPanel/FloatingPanelHeader.d.ts +8 -3
- package/components/editor/FloatingPanel/FloatingPanelHeader.d.ts.map +1 -1
- package/components/editor/FloatingPanel/index.d.ts +3 -1
- package/components/editor/FloatingPanel/index.d.ts.map +1 -1
- package/components/website/HeaderBanner/HeaderBanner.d.ts +4 -2
- package/components/website/HeaderBanner/HeaderBanner.d.ts.map +1 -1
- package/components/website/PromoBannerBlock/PromoBannerBlock.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.mjs +5652 -5585
- package/package.json +1 -1
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
import type { Position } from "./clampPosition";
|
|
2
2
|
export type FloatingPanelPosition = Position;
|
|
3
|
+
export type FloatingPanelVariant = "default" | "inspector";
|
|
3
4
|
export type FloatingPanelProps = {
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* `default` panels have a fixed size (`width` × `height`) and their content fills it.
|
|
9
|
+
* `inspector` panels are the small editor controls: they hug their content up to `maxHeight`.
|
|
10
|
+
*/
|
|
11
|
+
variant?: FloatingPanelVariant;
|
|
6
12
|
width?: number;
|
|
13
|
+
/** `default` variant only. */
|
|
14
|
+
height?: number;
|
|
15
|
+
/** `inspector` variant only. */
|
|
7
16
|
maxHeight?: number;
|
|
17
|
+
draggable?: boolean;
|
|
8
18
|
defaultPosition?: FloatingPanelPosition;
|
|
9
19
|
};
|
|
10
20
|
export declare const FloatingPanel: {
|
|
11
|
-
({ children, className, width, maxHeight, defaultPosition, }: FloatingPanelProps): import("react").JSX.Element;
|
|
21
|
+
({ children, className, variant, width, height, maxHeight, draggable, defaultPosition, }: FloatingPanelProps): import("react").JSX.Element;
|
|
12
22
|
Header: {
|
|
13
|
-
({ title,
|
|
23
|
+
({ title, onClose, closeLabel, closeTestId, onBack, backLabel, action, tabs, children, className, ref, }: import("./FloatingPanelHeader").FloatingPanelHeaderProps): import("react").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
AccessoryBar: {
|
|
27
|
+
({ children, className, }: import("./FloatingPanelAccessoryBar").FloatingPanelAccessoryBarProps): import("react").JSX.Element;
|
|
14
28
|
displayName: string;
|
|
15
29
|
};
|
|
16
30
|
Content: ({ children, className }: import("./FloatingPanelContent").FloatingPanelContentProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/FloatingPanel/FloatingPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"FloatingPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/FloatingPanel/FloatingPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAOhD,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;AAE7C,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,WAAW,CAAC;AAO3D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,qBAAqB,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,aAAa;8FASvB,kBAAkB;;;;;;;;;;CAiDpB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type FloatingPanelAccessoryBarProps = {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const FloatingPanelAccessoryBar: {
|
|
6
|
+
({ children, className, }: FloatingPanelAccessoryBarProps): import("react").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=FloatingPanelAccessoryBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingPanelAccessoryBar.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/FloatingPanel/FloatingPanelAccessoryBar.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,yBAAyB;+BAGnC,8BAA8B;;CAkBhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingPanelContent.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/FloatingPanel/FloatingPanelContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FloatingPanelContent.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/FloatingPanel/FloatingPanelContent.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,yBAAyB,yBAAyB,gCAmBtF,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { FloatingPanelDragHandleProps } from "./useFloatingPanelDrag";
|
|
2
2
|
type FloatingPanelContextValue = {
|
|
3
|
+
draggable: boolean;
|
|
3
4
|
dragHandleProps: FloatingPanelDragHandleProps;
|
|
5
|
+
closeRef: React.RefObject<(() => void) | null>;
|
|
6
|
+
titleId: string;
|
|
7
|
+
isContentScrolled: boolean;
|
|
8
|
+
setContentScrolled: (scrolled: boolean) => void;
|
|
4
9
|
};
|
|
5
10
|
export declare const FloatingPanelContext: import("react").Context<FloatingPanelContextValue | null>;
|
|
6
11
|
export declare const useFloatingPanelContext: () => FloatingPanelContextValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingPanelContext.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/FloatingPanel/FloatingPanelContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAE3E,KAAK,yBAAyB,GAAG;IAC/B,eAAe,EAAE,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"FloatingPanelContext.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/FloatingPanel/FloatingPanelContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAE3E,KAAK,yBAAyB,GAAG;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,4BAA4B,CAAC;IAC9C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,oBAAoB,2DAAwD,CAAC;AAE1F,eAAO,MAAM,uBAAuB,QAAO,yBAM1C,CAAC"}
|
|
@@ -6,15 +6,20 @@ export type FloatingPanelHeaderAction = {
|
|
|
6
6
|
};
|
|
7
7
|
export type FloatingPanelHeaderProps = {
|
|
8
8
|
title: React.ReactNode;
|
|
9
|
-
|
|
10
|
-
onClose?: () => void;
|
|
9
|
+
onClose: () => void;
|
|
11
10
|
closeLabel?: string;
|
|
12
11
|
closeTestId?: string;
|
|
12
|
+
onBack?: () => void;
|
|
13
|
+
backLabel?: string;
|
|
14
|
+
action?: FloatingPanelHeaderAction;
|
|
15
|
+
/** A `TabNavigation` rendered on a second row under the title. */
|
|
16
|
+
tabs?: React.ReactNode;
|
|
17
|
+
/** Extra trailing controls, placed before the action link and the close button. */
|
|
13
18
|
children?: React.ReactNode;
|
|
14
19
|
className?: string;
|
|
15
20
|
} & React.RefAttributes<HTMLDivElement>;
|
|
16
21
|
export declare const FloatingPanelHeader: {
|
|
17
|
-
({ title,
|
|
22
|
+
({ title, onClose, closeLabel, closeTestId, onBack, backLabel, action, tabs, children, className, ref, }: FloatingPanelHeaderProps): import("react").JSX.Element;
|
|
18
23
|
displayName: string;
|
|
19
24
|
};
|
|
20
25
|
//# sourceMappingURL=FloatingPanelHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingPanelHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/FloatingPanel/FloatingPanelHeader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FloatingPanelHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/FloatingPanel/FloatingPanelHeader.tsx"],"names":[],"mappings":"AAWA,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,kEAAkE;IAClE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;AAExC,eAAO,MAAM,mBAAmB;8GAY7B,wBAAwB;;CA0E1B,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { FloatingPanel } from "./FloatingPanel";
|
|
2
|
-
export type { FloatingPanelProps, FloatingPanelPosition } from "./FloatingPanel";
|
|
2
|
+
export type { FloatingPanelProps, FloatingPanelPosition, FloatingPanelVariant, } from "./FloatingPanel";
|
|
3
3
|
export { FloatingPanelHeader } from "./FloatingPanelHeader";
|
|
4
4
|
export type { FloatingPanelHeaderProps, FloatingPanelHeaderAction } from "./FloatingPanelHeader";
|
|
5
|
+
export { FloatingPanelAccessoryBar } from "./FloatingPanelAccessoryBar";
|
|
6
|
+
export type { FloatingPanelAccessoryBarProps } from "./FloatingPanelAccessoryBar";
|
|
5
7
|
export { FloatingPanelContent } from "./FloatingPanelContent";
|
|
6
8
|
export type { FloatingPanelContentProps } from "./FloatingPanelContent";
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/FloatingPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/FloatingPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACjG,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { type CloseButtonProps } from "../../action/CloseButton";
|
|
1
2
|
export type HeaderBannerProps = Readonly<{
|
|
2
|
-
variant: "
|
|
3
|
+
variant: "black" | "neutral";
|
|
3
4
|
className?: string;
|
|
4
5
|
cssBackgroundColor?: string;
|
|
5
6
|
children: React.ReactNode;
|
|
6
7
|
isHiddenSessionKey?: string;
|
|
7
8
|
closeLabel?: string;
|
|
9
|
+
closeButtonVariant?: CloseButtonProps["variant"];
|
|
8
10
|
forceShow?: boolean;
|
|
9
11
|
}>;
|
|
10
|
-
export declare const HeaderBanner: ({ variant, className, cssBackgroundColor, children, isHiddenSessionKey, closeLabel, forceShow, ...rest }: HeaderBannerProps) => import("react").JSX.Element | null;
|
|
12
|
+
export declare const HeaderBanner: ({ variant, className, cssBackgroundColor, children, isHiddenSessionKey, closeLabel, closeButtonVariant, forceShow, ...rest }: HeaderBannerProps) => import("react").JSX.Element | null;
|
|
11
13
|
//# sourceMappingURL=HeaderBanner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/website/HeaderBanner/HeaderBanner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeaderBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/website/HeaderBanner/HeaderBanner.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE9E,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC;IACvC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC,CAAC;AAKH,eAAO,MAAM,YAAY,GAAI,8HAU1B,iBAAiB,uCA0EnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromoBannerBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/website/PromoBannerBlock/PromoBannerBlock.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,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