@uncinc/uncinc-react-kitchen-sink 2.14.0 → 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.
|
@@ -93,7 +93,7 @@ var SelectInput = function SelectInput(props) {
|
|
|
93
93
|
id: id,
|
|
94
94
|
inputId: fieldName,
|
|
95
95
|
className: c('Select__select', className),
|
|
96
|
-
classNamePrefix:
|
|
96
|
+
classNamePrefix: c('Select__inner', wrapperClassName),
|
|
97
97
|
value: selectedOption,
|
|
98
98
|
defaultValue: defaultValue,
|
|
99
99
|
disabled: disabled,
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
name:
|
|
5
|
-
|
|
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
|
-
|
|
21
|
-
|
|
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
|
|
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;
|