@photoroom/ui 0.1.535 → 0.1.536

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.
@@ -1,12 +1,16 @@
1
1
  export type ZoomPillProps = React.ComponentProps<"div">;
2
2
  export declare const ZoomPill: {
3
3
  ({ className, ...props }: ZoomPillProps): import("react").JSX.Element;
4
+ Button: {
5
+ (props: import("./ZoomPillButton").ZoomPillButtonProps): import("react").JSX.Element;
6
+ displayName: string;
7
+ };
4
8
  MinusButton: {
5
- ({ className, ref, ...props }: import("./ZoomPillButton").ZoomPillButtonProps): import("react").JSX.Element;
9
+ (props: Omit<import("./ZoomPillButton").ZoomPillButtonProps, "icon">): import("react").JSX.Element;
6
10
  displayName: string;
7
11
  };
8
12
  PlusButton: {
9
- ({ className, ref, ...props }: import("./ZoomPillButton").ZoomPillButtonProps): import("react").JSX.Element;
13
+ (props: Omit<import("./ZoomPillButton").ZoomPillButtonProps, "icon">): import("react").JSX.Element;
10
14
  displayName: string;
11
15
  };
12
16
  Divider: {
@@ -1 +1 @@
1
- {"version":3,"file":"ZoomPill.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/ZoomPill/ZoomPill.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,eAAO,MAAM,QAAQ;8BAA6B,aAAa;;;;;;;;;;;;;CAa9D,CAAC"}
1
+ {"version":3,"file":"ZoomPill.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/ZoomPill/ZoomPill.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,eAAO,MAAM,QAAQ;8BAA6B,aAAa;;;;;;;;;;;;;;;;;CAa9D,CAAC"}
@@ -1,10 +1,21 @@
1
- export type ZoomPillButtonProps = Omit<React.ComponentProps<"button">, "children">;
1
+ type ZoomPillButtonBaseProps = Omit<React.ComponentProps<"button">, "children"> & {
2
+ icon: React.ReactNode;
3
+ side?: "leading" | "middle" | "trailing";
4
+ };
5
+ export type ZoomPillButtonProps = ZoomPillButtonBaseProps & {
6
+ "aria-label": string;
7
+ };
8
+ export declare const ZoomPillButton: {
9
+ (props: ZoomPillButtonProps): import("react").JSX.Element;
10
+ displayName: string;
11
+ };
2
12
  export declare const ZoomPillMinusButton: {
3
- ({ className, ref, ...props }: ZoomPillButtonProps): import("react").JSX.Element;
13
+ (props: Omit<ZoomPillButtonProps, "icon">): import("react").JSX.Element;
4
14
  displayName: string;
5
15
  };
6
16
  export declare const ZoomPillPlusButton: {
7
- ({ className, ref, ...props }: ZoomPillButtonProps): import("react").JSX.Element;
17
+ (props: Omit<ZoomPillButtonProps, "icon">): import("react").JSX.Element;
8
18
  displayName: string;
9
19
  };
20
+ export {};
10
21
  //# sourceMappingURL=ZoomPillButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ZoomPillButton.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/ZoomPill/ZoomPillButton.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;AAwCnF,eAAO,MAAM,mBAAmB;mCAjCmB,mBAAmB;;CAqCrE,CAAC;AACF,eAAO,MAAM,kBAAkB;mCAtCoB,mBAAmB;;CA0CrE,CAAC"}
1
+ {"version":3,"file":"ZoomPillButton.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/ZoomPill/ZoomPillButton.tsx"],"names":[],"mappings":"AAIA,KAAK,uBAAuB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,GAAG;IAChF,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,GAAG;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAqCrF,eAAO,MAAM,cAAc;YAAW,mBAAmB;;CAAsC,CAAC;AAgBhG,eAAO,MAAM,mBAAmB;YARJ,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC;;CAY5D,CAAC;AACF,eAAO,MAAM,kBAAkB;YAbH,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC;;CAiB5D,CAAC"}