@sb1/ffe-cards-react 15.0.0 → 15.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-cards-react",
3
- "version": "15.0.0",
3
+ "version": "15.0.1",
4
4
  "description": "React implementation of ffe-react",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "9ad9c4e14ec0db89189e0daaebace3028bf667d9"
43
+ "gitHead": "909644afebda3bd814212f8fd91405d25f259ac8"
44
44
  }
@@ -1,11 +1,11 @@
1
- import React, { ElementType, ReactElement } from 'react';
1
+ import React, { ElementType, ReactNode } from 'react';
2
2
  import { ComponentAsPropParams, CardRenderProps } from '../types';
3
3
  export type StippledCardProps<As extends ElementType = 'a'> = Omit<ComponentAsPropParams<As>, 'children'> & {
4
4
  /** Smaller icon and less space */
5
5
  condensed?: boolean;
6
6
  /** Image to be rendered*/
7
7
  img: {
8
- element: ReactElement;
8
+ element: ReactNode;
9
9
  type: 'icon' | 'custom';
10
10
  };
11
11
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
@@ -15,7 +15,7 @@ export declare const StippledCard: <As extends React.ElementType>(props: Omit<Co
15
15
  condensed?: boolean | undefined;
16
16
  /** Image to be rendered*/
17
17
  img: {
18
- element: ReactElement;
18
+ element: ReactNode;
19
19
  type: 'icon' | 'custom';
20
20
  };
21
21
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
@@ -3,4 +3,4 @@ import { DistributiveOmit } from '../types';
3
3
  export type ComponentBaseProps<As extends ElementType = 'p'> = {
4
4
  as?: As;
5
5
  } & DistributiveOmit<ComponentPropsWithRef<ElementType extends As ? 'p' : As>, 'as'>;
6
- export declare function ComponentBase<As extends ElementType = 'p'>(props: ComponentBaseProps<As>): React.JSX.Element;
6
+ export declare function ComponentBase<As extends ElementType>(props: ComponentBaseProps<As>): React.JSX.Element;
@@ -2,6 +2,6 @@ import React, { ElementType } from 'react';
2
2
  import { ComponentBaseProps } from './ComponentBase';
3
3
  export type TitleProps<As extends ElementType = 'p'> = ComponentBaseProps<As> & {
4
4
  /** Disable wrapping and hide overflow with ellipsis */
5
- overflowEllipsis: boolean;
5
+ overflowEllipsis?: boolean;
6
6
  };
7
7
  export declare function Title<As extends ElementType>(props: TitleProps<As>): React.JSX.Element;