@wistia/vhs 2.38.0 → 2.39.0

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,4 +1,5 @@
1
1
  import type { ComponentPropsWithoutRef } from 'react';
2
+ import type { GradientNameType } from '../../helpers/getBackgroundGradient/getBackgroundGradient';
2
3
  import type { IconNameType } from '../Icon/iconMap';
3
4
  type IconThumbnailProps = {
4
5
  /**
@@ -13,6 +14,10 @@ type IconThumbnailProps = {
13
14
  * The type of {@link https://wistia.github.io/vhs/?path=/docs/components-icon--docs Icon} to use in place of a thumbnail image
14
15
  */
15
16
  icon: IconNameType;
17
+ /**
18
+ * The color of the icon
19
+ */
20
+ iconColor?: string;
16
21
  };
17
22
  type ImageThumbnailProps = {
18
23
  /**
@@ -27,6 +32,10 @@ type ImageThumbnailProps = {
27
32
  * The type of {@link https://wistia.github.io/vhs/?path=/docs/components-icon--docs Icon} to use in place of a thumbnail image
28
33
  */
29
34
  icon?: never;
35
+ /**
36
+ * The color of the icon
37
+ */
38
+ iconColor?: never;
30
39
  };
31
40
  export type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
32
41
  /**
@@ -37,6 +46,10 @@ export type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
37
46
  * Icon to display in bottom right corner of the thumbnail
38
47
  */
39
48
  bottomRightIcon?: IconNameType;
49
+ /**
50
+ * The type of gradient to show either behind the icon or when there is no thumbnail image
51
+ */
52
+ gradientBackground?: GradientNameType;
40
53
  /**
41
54
  * Width of the thumbnail. By default, the thumbnail will grow to fit its container.
42
55
  */
@@ -44,7 +57,7 @@ export type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
44
57
  } & (IconThumbnailProps | ImageThumbnailProps);
45
58
  export declare const Collage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
46
59
  export declare const Thumbnail: {
47
- ({ bottomRightText, thumbnailUrl, thumbnailImageType, icon, bottomRightIcon, width, ...otherProps }: ThumbnailProps): JSX.Element;
60
+ ({ bottomRightText, thumbnailUrl, thumbnailImageType, icon, bottomRightIcon, width, gradientBackground, iconColor, ...otherProps }: ThumbnailProps): JSX.Element;
48
61
  displayName: string;
49
62
  };
50
63
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Thumbnail.d.ts","sourceRoot":"","sources":["../../../../src/components/Thumbnail/Thumbnail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAItD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,KAAK,kBAAkB,GAAG;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;CACpB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB;;OAEG;IACH,kBAAkB,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACnD;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAAC;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC7D;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,CAAC,kBAAkB,GAAG,mBAAmB,CAAC,CAAC;AAiF/C,eAAO,MAAM,OAAO,yGAKnB,CAAC;AAwBF,eAAO,MAAM,SAAS;yGAQnB,cAAc,GAAG,WAAW;;CAgD9B,CAAC"}
1
+ {"version":3,"file":"Thumbnail.d.ts","sourceRoot":"","sources":["../../../../src/components/Thumbnail/Thum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@4.0.1",
3
+ "version": "2.39.0",
4
+ "packageManager": "yarn@4.0.2",
5
5
  "description": "Visual Hype System",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.esm.js",
@@ -29,7 +29,7 @@
29
29
  "generate": "node ./scripts/generators/generateComponent.mjs",
30
30
  "link:test": "node ./scripts/watchAndCopyBuild.mjs",
31
31
  "lint": "yarn lint:code && yarn lint:style",
32
- "lint:code": "eslint --ext ts,tsx,mjs,cjs,snap --cache .",
32
+ "lint:code": "eslint --ext ts,tsx,mts,mjs,cjs,snap --cache .",
33
33
  "lint:debug": "eslint --print-config ./src/index.ts",
34
34
  "lint:fix": "yarn run lint:code --fix && yarn run lint:style --fix",
35
35
  "lint:style": "stylelint --cache --cache-location .stylelintcache --report-needless-disables \"**/*.tsx\"",