@arc-ui/components 8.0.0 → 8.2.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.
@@ -35,6 +35,10 @@ declare const CardImage: FC<{
35
35
  * Height of the Card.Image.
36
36
  */
37
37
  height?: number;
38
+ /**
39
+ * Loading behaviour of the Card.Image.
40
+ */
41
+ loading?: "eager" | "lazy";
38
42
  /**
39
43
  * The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute. Required if srcSet is defined.
40
44
  */
@@ -78,6 +82,10 @@ export interface CardProps extends HTMLAttributes<HTMLElement> {
78
82
  * Height of the Card cover image.
79
83
  */
80
84
  imageHeight?: number;
85
+ /**
86
+ * Loading behaviour of the Card cover image.
87
+ */
88
+ imageLoading?: "eager" | "lazy";
81
89
  /**
82
90
  * HTML src for the Card cover image.
83
91
  */
@@ -5,6 +5,7 @@ import { anchorPoints } from "../../helpers";
5
5
  */
6
6
  declare const Image: FC<ImageProps>;
7
7
  export declare const fitOptions: readonly ["cover"];
8
+ export declare const loadingOptions: readonly ["eager", "lazy"];
8
9
  export declare const overlayOptions: readonly ["scrimBottomDark"];
9
10
  export interface ImageProps extends HTMLAttributes<HTMLElement> {
10
11
  /**
@@ -27,6 +28,10 @@ export interface ImageProps extends HTMLAttributes<HTMLElement> {
27
28
  * Height of the Image, in pixels
28
29
  */
29
30
  height?: number;
31
+ /**
32
+ * Loading behaviour of the Image.
33
+ */
34
+ loading?: typeof loadingOptions[number];
30
35
  /**
31
36
  * Apply an overlay to the Image, e.g. a scrim gradient for text legibility.
32
37
  * Should not be used if the image has a rasterized overlay.
@@ -1,5 +1,6 @@
1
1
  import { FC } from "react";
2
2
  import { anchorPoints } from "../../helpers";
3
+ import { loadingOptions } from "../Image/Image";
3
4
  export declare const PosterImage: FC<PosterImageProps>;
4
5
  export interface PosterImageProps {
5
6
  /**
@@ -10,6 +11,10 @@ export interface PosterImageProps {
10
11
  * Anchor point for the Poster.Image.
11
12
  */
12
13
  anchor?: typeof anchorPoints[number];
14
+ /**
15
+ * Loading behaviour of the Poster.Image.
16
+ */
17
+ loading?: typeof loadingOptions[number];
13
18
  /**
14
19
  * The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute for the Poster.Image. Required if `srcSet` is defined.
15
20
  */
@@ -7,9 +7,9 @@ declare const Context: React.Context<{
7
7
  * Use `Surface` to compose content using the Arc system.
8
8
  */
9
9
  declare const Surface: FC<SurfaceProps>;
10
- export declare const backgrounds: readonly ["black", "brand", "brand-flat", "dark", "darker", "light", "lighter", "white"];
11
- export declare const backgroundsBT: readonly ["black", "brand", "brand-flat", "dark", "darker", "light", "lighter", "white"];
12
- export declare const backgroundsEE: readonly ["black", "brand", "brand-flat", "dark", "darker", "light", "lighter", "white"];
10
+ export declare const backgrounds: readonly ["black", "brand", "brand-flat", "dark", "darker", "coral", "turquoise", "light", "lighter", "white"];
11
+ export declare const backgroundsBT: readonly ["black", "brand", "brand-flat", "dark", "darker", "coral", "turquoise", "light", "lighter", "white"];
12
+ export declare const backgroundsEE: readonly ["black", "brand", "brand-flat", "dark", "darker", "coral", "turquoise", "light", "lighter", "white"];
13
13
  export declare type SurfacePadding = "8" | "12" | "16" | "24" | "32" | "48" | "64";
14
14
  export interface SurfaceProps extends HTMLAttributes<HTMLElement> {
15
15
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arc-ui/components",
3
- "version": "8.0.0",
3
+ "version": "8.2.0",
4
4
  "homepage": "https://ui.digital-ent-int.bt.com",
5
5
  "author": "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
6
6
  "main": "dist/index.js",
@@ -25,8 +25,8 @@
25
25
  "react": "^17.0.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@arc-ui/fonts": "^8.0.0",
29
- "@arc-ui/tokens": "^8.0.0",
28
+ "@arc-ui/fonts": "^8.2.0",
29
+ "@arc-ui/tokens": "^8.2.0",
30
30
  "@babel/core": "^7.14.3",
31
31
  "@babel/helper-define-map": "^7.14.3",
32
32
  "@storybook/addon-essentials": "^6.3.6",