@uncinc/uncinc-react-kitchen-sink 2.14.1 → 2.14.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.
@@ -1,21 +1,8 @@
1
- export default Icon;
2
- declare function Icon({ flair, name, className }: {
3
- flair?: string | undefined;
4
- name: any;
5
- className: any;
6
- }): React.JSX.Element;
7
- declare namespace Icon {
8
- namespace defaultProps {
9
- let flair: string;
10
- let className: string;
11
- }
12
- namespace propTypes {
13
- export let name: PropTypes.Validator<string>;
14
- let flair_1: PropTypes.Requireable<string>;
15
- export { flair_1 as flair };
16
- let className_1: PropTypes.Requireable<string>;
17
- export { className_1 as className };
18
- }
1
+ import React, { type HTMLAttributes } from 'react';
2
+ import './style.scss';
3
+ interface IconProps extends React.HTMLProps<HTMLAttributes<HTMLDivElement>> {
4
+ name: string;
5
+ flair?: string;
19
6
  }
20
- import React from 'react';
21
- import PropTypes from 'prop-types';
7
+ declare const Icon: React.FC<IconProps>;
8
+ export default Icon;
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import c from 'classnames';
4
3
  import './style.scss';
5
4
  var Icon = function Icon(_ref) {
6
- var _ref$flair = _ref.flair,
5
+ var name = _ref.name,
6
+ _ref$flair = _ref.flair,
7
7
  flair = _ref$flair === void 0 ? '' : _ref$flair,
8
- name = _ref.name,
9
8
  className = _ref.className;
10
9
  var flairPostFix = flair && flair.length > 0 ? '-' : '';
11
10
  var classNames = c('Icon', "Icon-".concat(flair).concat(flairPostFix).concat(name), className);
@@ -13,13 +12,4 @@ var Icon = function Icon(_ref) {
13
12
  className: classNames
14
13
  });
15
14
  };
16
- Icon.defaultProps = {
17
- flair: '',
18
- className: ''
19
- };
20
- Icon.propTypes = {
21
- name: PropTypes.string.isRequired,
22
- flair: PropTypes.string,
23
- className: PropTypes.string
24
- };
25
15
  export default Icon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinc/uncinc-react-kitchen-sink",
3
- "version": "2.14.1",
3
+ "version": "2.14.2",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",