@photoroom/ui 0.1.591 → 0.1.592

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,9 +1,11 @@
1
- import React from "react";
1
+ import { type PropListSize } from "./PropListContext";
2
2
  export type PropListProps = Readonly<{
3
3
  children: React.ReactNode;
4
- }>;
4
+ /** Sets the row gap and the default size of the items. */
5
+ size?: PropListSize;
6
+ }> & Omit<React.ComponentProps<"div">, "children">;
5
7
  export declare const PropList: {
6
- ({ children, ...rest }: PropListProps): React.JSX.Element;
7
- Item: ({ children, icon: Icon, size, variant, footnote, ...rest }: import("./PropListItem").PropListItemProps) => React.JSX.Element;
8
+ ({ children, size, className, ...rest }: PropListProps): import("react").JSX.Element;
9
+ Item: ({ children, icon, size: sizeProp, variant, framed, disabled, className, ...rest }: import("./PropListItem").PropListItemProps) => import("react").JSX.Element;
8
10
  };
9
11
  //# sourceMappingURL=PropList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PropList.d.ts","sourceRoot":"","sources":["../../../../src/components/content/PropList/PropList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAEH,eAAO,MAAM,QAAQ;4BAA2B,aAAa;;CAM5D,CAAC"}
1
+ {"version":3,"file":"PropList.d.ts","sourceRoot":"","sources":["../../../../src/components/content/PropList/PropList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGvE,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,0DAA0D;IAC1D,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB,CAAC,GACA,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEhD,eAAO,MAAM,QAAQ;6CAAsD,aAAa;;CAavF,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type PropListSize = "small" | "large";
2
+ export declare const PropListContext: import("react").Context<{
3
+ size: PropListSize;
4
+ } | null>;
5
+ export declare const usePropListSize: () => PropListSize | undefined;
6
+ //# sourceMappingURL=PropListContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropListContext.d.ts","sourceRoot":"","sources":["../../../../src/components/content/PropList/PropListContext.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;AAE7C,eAAO,MAAM,eAAe;UAAyB,YAAY;SAAgB,CAAC;AAElF,eAAO,MAAM,eAAe,QAAO,YAAY,GAAG,SAA8C,CAAC"}
@@ -1,17 +1,20 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
- declare const propListItemCva: (props?: ({
2
+ import { type PropListSize } from "./PropListContext";
3
+ declare const propListItemLeadingCva: (props?: ({
4
+ variant?: "accent" | "default" | null | undefined;
5
+ framed?: boolean | null | undefined;
6
+ disabled?: boolean | null | undefined;
3
7
  size?: "small" | "large" | null | undefined;
4
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
- declare const propListItemIconWrapperCva: (props?: ({
6
- variant?: "accent" | "default" | "muted" | null | undefined;
7
- withFootnote?: boolean | null | undefined;
8
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
- type PropListItemCvaProps = VariantProps<typeof propListItemCva> & VariantProps<typeof propListItemIconWrapperCva>;
10
9
  export type PropListItemProps = Readonly<{
11
10
  children: React.ReactNode;
12
11
  icon?: React.ComponentType<React.ComponentPropsWithoutRef<"svg">> | null;
13
- footnote?: React.ReactNode;
14
- } & Omit<PropListItemCvaProps, "withFootnote">>;
15
- export declare const PropListItem: ({ children, icon: Icon, size, variant, footnote, ...rest }: PropListItemProps) => import("react").JSX.Element;
12
+ /** Inherited from the parent `PropList` when omitted. */
13
+ size?: PropListSize;
14
+ /** Wraps the leading in a capsule. */
15
+ framed?: boolean;
16
+ disabled?: boolean;
17
+ } & Pick<VariantProps<typeof propListItemLeadingCva>, "variant">> & Omit<React.ComponentProps<"div">, "children">;
18
+ export declare const PropListItem: ({ children, icon, size: sizeProp, variant, framed, disabled, className, ...rest }: PropListItemProps) => import("react").JSX.Element;
16
19
  export {};
17
20
  //# sourceMappingURL=PropListItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PropListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/content/PropList/PropListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,QAAA,MAAM,eAAe;;8EAUnB,CAAC;AAcH,QAAA,MAAM,0BAA0B;;;8EAe9B,CAAC;AAoDH,KAAK,oBAAoB,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,GAC9D,YAAY,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CACtC;IACE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC;IACzE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,IAAI,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAC/C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,4DAO1B,iBAAiB,gCA4BnB,CAAC"}
1
+ {"version":3,"file":"PropListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/content/PropList/PropListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,mBAAmB,CAAC;AAWvE,QAAA,MAAM,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