@photoroom/ui 0.1.632 → 0.1.633
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/status/ListingGauge/ListingGauge.d.ts +13 -1
- package/components/status/ListingGauge/ListingGauge.d.ts.map +1 -1
- package/components/website/DimensionCardsBlock/DimensionCardsBlock.d.ts +3 -1
- package/components/website/DimensionCardsBlock/DimensionCardsBlock.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.mjs +9730 -9633
- package/package.json +1 -1
- package/theme.css +4 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
1
2
|
export type ListingGaugeTone = "negative" | "warning" | "progress" | "positive";
|
|
2
3
|
/**
|
|
3
4
|
* Maps a listing score percentage to the arc and label colors from the Prism listing gauge spec
|
|
@@ -7,11 +8,22 @@ export declare const getListingGaugeTone: (percent: number) => ListingGaugeTone;
|
|
|
7
8
|
export declare const listingGaugeToneVariants: (props?: ({
|
|
8
9
|
tone?: "negative" | "positive" | "progress" | "warning" | null | undefined;
|
|
9
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
export type ListingGaugeShape = "ring" | "gauge";
|
|
10
12
|
export type ListingGaugeProps = Readonly<{
|
|
11
13
|
value: number;
|
|
12
14
|
max?: number;
|
|
13
15
|
label?: string;
|
|
16
|
+
/** `ring` closes the circle; `gauge` leaves a gap at the bottom. */
|
|
17
|
+
shape?: ListingGaugeShape;
|
|
18
|
+
/** Overrides the arc colour; by default it follows the Prism listing score thresholds. */
|
|
19
|
+
tone?: ListingGaugeTone;
|
|
20
|
+
/** Box size in px; the stroke stays 6px so a smaller gauge keeps the design weight. */
|
|
21
|
+
size?: number;
|
|
22
|
+
/** Shows the celebration sparkles; by default they follow the `positive` tone. */
|
|
23
|
+
sparkles?: boolean;
|
|
14
24
|
className?: string;
|
|
25
|
+
/** Replaces the percentage and label in the centre of the ring. */
|
|
26
|
+
children?: ReactNode;
|
|
15
27
|
}>;
|
|
16
|
-
export declare const ListingGauge: ({ value, max, label, className, }: ListingGaugeProps) => import("react").JSX.Element;
|
|
28
|
+
export declare const ListingGauge: ({ value, max, label, shape, tone: toneOverride, size: sizeOverride, sparkles, className, children, }: ListingGaugeProps) => import("react").JSX.Element;
|
|
17
29
|
//# sourceMappingURL=ListingGauge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListingGauge.d.ts","sourceRoot":"","sources":["../../../../src/components/status/ListingGauge/ListingGauge.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListingGauge.d.ts","sourceRoot":"","sources":["../../../../src/components/status/ListingGauge/ListingGauge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAEhF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,YAAa,MAAM,KAAG,gBAWrD,CAAC;AAEF,eAAO,MAAM,wBAAwB;;8EAYnC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,OAAO,CAAC;AA8DjD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,0FAA0F;IAC1F,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kFAAkF;IAClF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC,CAAC;AAEH,eAAO,MAAM,YAAY,yGAUtB,iBAAiB,gCA0HnB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type DimensionCardsBlockProps = Readonly<{
|
|
2
2
|
titleBlock?: React.ReactNode;
|
|
3
3
|
footnote?: React.ReactNode;
|
|
4
|
+
/** Cards per row from `lg`: three wraps six cards into two rows, four keeps a set of four on one. */
|
|
5
|
+
columns?: 3 | 4;
|
|
4
6
|
}> & React.ComponentProps<"section">;
|
|
5
|
-
export declare const DimensionCardsBlock: ({ titleBlock, footnote, children, className, ...rest }: DimensionCardsBlockProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const DimensionCardsBlock: ({ titleBlock, footnote, columns, children, className, ...rest }: DimensionCardsBlockProps) => import("react").JSX.Element;
|
|
6
8
|
//# sourceMappingURL=DimensionCardsBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DimensionCardsBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/website/DimensionCardsBlock/DimensionCardsBlock.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DimensionCardsBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/website/DimensionCardsBlock/DimensionCardsBlock.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC;IAC9C,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qGAAqG;IACrG,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACjB,CAAC,GACA,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;AAElC,eAAO,MAAM,mBAAmB,oEAO7B,wBAAwB,gCA0B1B,CAAC"}
|