@sb1/ffe-cards-react 12.0.0 → 12.0.2

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.
@@ -4,7 +4,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
5
  import React from 'react';
6
6
  import classNames from 'classnames';
7
- import { bool, elementType, func, node, oneOfType, string, shape, oneOf } from 'prop-types';
7
+ import { bool, elementType, element, func, node, oneOfType, string, shape, oneOf } from 'prop-types';
8
8
  import { Text, Title, Subtext, CardName } from '../components';
9
9
  var StippledCard = function StippledCard(_ref) {
10
10
  var className = _ref.className,
@@ -40,7 +40,7 @@ StippledCard.propTypes = {
40
40
  children: oneOfType([func, node]).isRequired,
41
41
  /** Image to be rendered*/
42
42
  img: shape({
43
- element: elementType.isRequired,
43
+ element: element.isRequired,
44
44
  type: oneOf(['icon', 'custom']).isRequired
45
45
  }),
46
46
  /** Smaller icon and less space */
@@ -47,7 +47,7 @@ StippledCard.propTypes = {
47
47
  children: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.node]).isRequired,
48
48
  /** Image to be rendered*/
49
49
  img: (0, _propTypes.shape)({
50
- element: _propTypes.elementType.isRequired,
50
+ element: _propTypes.element.isRequired,
51
51
  type: (0, _propTypes.oneOf)(['icon', 'custom']).isRequired
52
52
  }),
53
53
  /** Smaller icon and less space */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-cards-react",
3
- "version": "12.0.0",
3
+ "version": "12.0.2",
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": "10adc7c7a295275039de6714a63c7d4fa8ec0232"
43
+ "gitHead": "16d63d321b51be8c0a648edf879296f42cb05710"
44
44
  }
package/types/index.d.ts CHANGED
@@ -35,7 +35,7 @@ export interface IconCardProps<T = {}>
35
35
  children?: React.ReactNode | ((props: CardRenderProps) => React.ReactNode);
36
36
  }
37
37
 
38
- export interface StrippledCardProps<T = {}>
38
+ export interface StippledCardProps<T = {}>
39
39
  extends Omit<ComponentBaseProps, 'children'> {
40
40
  img?: {
41
41
  element: React.ReactNode;
@@ -59,8 +59,8 @@ declare class IconCard<T = {}> extends React.Component<
59
59
  any
60
60
  > {}
61
61
 
62
- declare class StrippledCard<T = {}> extends React.Component<
63
- NoInfer<T> & StrippledCardProps,
62
+ declare class StippledCard<T = {}> extends React.Component<
63
+ NoInfer<T> & StippledCardProps,
64
64
  any
65
65
  > {}
66
66