@contentful/f36-card 4.52.2 → 4.53.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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AssetStatus, AssetType } from '@contentful/f36-asset';
2
- import React$1, { ReactElement, ReactNode, MouseEventHandler } from 'react';
2
+ import React$1, { ReactNode, ReactElement, MouseEventHandler } from 'react';
3
3
  import { ButtonProps } from '@contentful/f36-button';
4
4
  import { CommonProps, MarginProps, PolymorphicProps, PolymorphicComponent, ExpandProps, EntityStatus } from '@contentful/f36-core';
5
5
  import { HeadingElement } from '@contentful/f36-typography';
@@ -38,7 +38,7 @@ declare type BaseCardInternalProps = CommonProps & MarginProps & BaseCardDragHan
38
38
  /**
39
39
  * Badge component to show in Card header
40
40
  */
41
- badge?: ReactElement | boolean | null | undefined | (ReactElement | boolean | null | undefined)[];
41
+ badge?: ReactNode;
42
42
  /**
43
43
  * Passing href into the Card. You need to also add property as="a" to make it rendered as <a />
44
44
  */
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AssetStatus, AssetType } from '@contentful/f36-asset';
2
- import React$1, { ReactElement, ReactNode, MouseEventHandler } from 'react';
2
+ import React$1, { ReactNode, ReactElement, MouseEventHandler } from 'react';
3
3
  import { ButtonProps } from '@contentful/f36-button';
4
4
  import { CommonProps, MarginProps, PolymorphicProps, PolymorphicComponent, ExpandProps, EntityStatus } from '@contentful/f36-core';
5
5
  import { HeadingElement } from '@contentful/f36-typography';
@@ -38,7 +38,7 @@ declare type BaseCardInternalProps = CommonProps & MarginProps & BaseCardDragHan
38
38
  /**
39
39
  * Badge component to show in Card header
40
40
  */
41
- badge?: ReactElement | boolean | null | undefined | (ReactElement | boolean | null | undefined)[];
41
+ badge?: ReactNode;
42
42
  /**
43
43
  * Passing href into the Card. You need to also add property as="a" to make it rendered as <a />
44
44
  */
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@contentful/f36-card",
3
- "version": "4.52.2",
3
+ "version": "4.53.0",
4
4
  "description": "Forma 36: Card components",
5
5
  "scripts": {
6
6
  "build": "tsup"
7
7
  },
8
8
  "dependencies": {
9
- "@contentful/f36-asset": "^4.52.2",
10
- "@contentful/f36-badge": "^4.52.2",
11
- "@contentful/f36-button": "^4.52.2",
12
- "@contentful/f36-core": "^4.52.2",
13
- "@contentful/f36-drag-handle": "^4.52.2",
14
- "@contentful/f36-icon": "^4.52.2",
9
+ "@contentful/f36-asset": "^4.53.0",
10
+ "@contentful/f36-badge": "^4.53.0",
11
+ "@contentful/f36-button": "^4.53.0",
12
+ "@contentful/f36-core": "^4.53.0",
13
+ "@contentful/f36-drag-handle": "^4.53.0",
14
+ "@contentful/f36-icon": "^4.53.0",
15
15
  "@contentful/f36-icons": "^4.27.0",
16
- "@contentful/f36-menu": "^4.52.2",
17
- "@contentful/f36-skeleton": "^4.52.2",
16
+ "@contentful/f36-menu": "^4.53.0",
17
+ "@contentful/f36-skeleton": "^4.53.0",
18
18
  "@contentful/f36-tokens": "^4.0.2",
19
- "@contentful/f36-tooltip": "^4.52.2",
20
- "@contentful/f36-typography": "^4.52.2",
19
+ "@contentful/f36-tooltip": "^4.53.0",
20
+ "@contentful/f36-typography": "^4.53.0",
21
21
  "emotion": "^10.0.17",
22
22
  "truncate": "^3.0.0"
23
23
  },