@photoroom/ui 0.1.591 → 0.1.593
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/content/PropList/PropList.d.ts +6 -4
- package/components/content/PropList/PropList.d.ts.map +1 -1
- package/components/content/PropList/PropListContext.d.ts +6 -0
- package/components/content/PropList/PropListContext.d.ts.map +1 -0
- package/components/content/PropList/PropListItem.d.ts +12 -9
- package/components/content/PropList/PropListItem.d.ts.map +1 -1
- package/index.mjs +4310 -4240
- package/package.json +2 -2
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
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):
|
|
7
|
-
Item: ({ children, icon
|
|
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":"
|
|
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 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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,
|
|
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,sBAAsB;;;;;8EA8B1B,CAAC;AAkCH,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,yDAAyD;IACzD,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,sCAAsC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,sBAAsB,CAAC,EAAE,SAAS,CAAC,CACjE,GACC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY,GAAI,mFAS1B,iBAAiB,gCAiBnB,CAAC"}
|