@photoroom/ui 0.1.843 → 0.1.845

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.
@@ -0,0 +1,28 @@
1
+ import { type TileProps } from "../Tile";
2
+ export type VideoPlayerTileProps = Readonly<{
3
+ src: string;
4
+ posterSrc?: string;
5
+ /** Names the player for assistive technologies; it is not shown. */
6
+ label: string;
7
+ playback?: "clickToPlay" | "autoplay";
8
+ aspectRatio?: TileProps["aspectRatio"];
9
+ /** Revealed on hover or focus, e.g. the selection. */
10
+ leadingTop?: React.ReactNode;
11
+ /** Revealed on hover or focus, e.g. Save and More. */
12
+ trailingTop?: React.ReactNode;
13
+ playLabel: string;
14
+ pauseLabel: string;
15
+ muteLabel: string;
16
+ unmuteLabel: string;
17
+ seekLabel: string;
18
+ /** Shows the expand button. */
19
+ expand?: Readonly<{
20
+ label: string;
21
+ onClick: () => void;
22
+ }>;
23
+ /** Draws the Tile's selection border, e.g. while the selection in `leadingTop` is on. */
24
+ isSelected?: boolean;
25
+ className?: string;
26
+ }>;
27
+ export declare const VideoPlayerTile: (props: VideoPlayerTileProps) => React.JSX.Element;
28
+ //# sourceMappingURL=VideoPlayerTile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoPlayerTile.d.ts","sourceRoot":"","sources":["../../../../src/components/content/VideoPlayer/VideoPlayerTile.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAI/C,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC;IACtC,WAAW,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IACvC,sDAAsD;IACtD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,sDAAsD;IACtD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,QAAQ,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC;IAC1D,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AA4BH,eAAO,MAAM,eAAe,UAAW,oBAAoB,KAAG,KAAK,CAAC,GAAG,CAAC,OAEvE,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from "./VideoPlayer";
2
+ export * from "./VideoPlayerTile";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/content/VideoPlayer/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/content/VideoPlayer/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
@@ -3,7 +3,10 @@ export type VideoExampleTileProps = Readonly<{
3
3
  posterSrc?: string;
4
4
  productImageSrc?: string;
5
5
  productImageAlt?: string;
6
+ href?: string;
7
+ label?: string;
8
+ actionLabel?: string;
6
9
  className?: string;
7
10
  }>;
8
- export declare const VideoExampleTile: ({ videoSrc, posterSrc, productImageSrc, productImageAlt, className, }: VideoExampleTileProps) => import("react").JSX.Element;
11
+ export declare const VideoExampleTile: ({ videoSrc, posterSrc, productImageSrc, productImageAlt, href, label, actionLabel, className, }: VideoExampleTileProps) => import("react").JSX.Element;
9
12
  //# sourceMappingURL=VideoExampleTile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VideoExampleTile.d.ts","sourceRoot":"","sources":["../../../../src/components/website/VideoExamplesBlock/VideoExampleTile.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAIH,eAAO,MAAM,gBAAgB,0EAM1B,qBAAqB,gCA2FvB,CAAC"}
1
+ {"version":3,"file":"VideoExampleTile.d.ts","sourceRoot":"","sources":["../../../../src/components/website/VideoExamplesBlock/VideoExampleTile.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAIH,eAAO,MAAM,gBAAgB,oGAS1B,qBAAqB,gCA4GvB,CAAC"}
@@ -4,6 +4,8 @@ export type VideoExample = Readonly<{
4
4
  posterSrc?: string;
5
5
  productImageSrc?: string;
6
6
  productImageAlt?: string;
7
+ href?: string;
8
+ label?: string;
7
9
  }>;
8
10
  export type VideoExamplesCategory = Readonly<{
9
11
  id: string;
@@ -16,7 +18,8 @@ export type VideoExamplesBlockProps = Readonly<{
16
18
  /** Opens this tab and moves it right after the first tab. Falls back to the first category. */
17
19
  defaultCategoryId?: string;
18
20
  tabListLabel?: string;
21
+ tileActionLabel?: string;
19
22
  footer: React.ReactNode;
20
23
  }> & React.ComponentProps<"section">;
21
- export declare const VideoExamplesBlock: ({ titleBlock, categories, defaultCategoryId, tabListLabel, footer, className, ...rest }: VideoExamplesBlockProps) => import("react").JSX.Element;
24
+ export declare const VideoExamplesBlock: ({ titleBlock, categories, defaultCategoryId, tabListLabel, tileActionLabel, footer, className, ...rest }: VideoExamplesBlockProps) => import("react").JSX.Element;
22
25
  //# sourceMappingURL=VideoExamplesBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VideoExamplesBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/website/VideoExamplesBlock/VideoExamplesBlock.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,UAAU,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAC7C,+FAA+F;IAC/F,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CAAC,GACA,KAAK,CAAC,cAAc,CA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