diff --git a/package.json b/package.json index 3094c2d901..1a73f23c74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "monday-ui-react-core", - "version": "0.0.109", + "version": "0.0.110", "description": "Official monday.com UI resources for application development in React.js", "main": "dist/main.js", "scripts": { diff --git a/src/components/Icon/Icon.jsx b/src/components/Icon/Icon.jsx index f81accbb16..9241172b60 100644 --- a/src/components/Icon/Icon.jsx +++ b/src/components/Icon/Icon.jsx @@ -38,7 +38,7 @@ const Icon = forwardRef( return null; } - if (iconType === ICON_TYPES.SVG) { + if (iconType === ICON_TYPES.SVG || typeof icon === "function") { const IconComponent = icon; return ( { return ( @@ -43,8 +45,8 @@ export const Sizes = () => { { { { { { { {
@@ -213,8 +215,8 @@ TextField.propTypes = { disabled: PropTypes.bool, readonly: PropTypes.bool, setRef: PropTypes.func, - iconName: PropTypes.string, - secondaryIconName: PropTypes.string, + iconName: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), + secondaryIconName: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), id: PropTypes.string, title: PropTypes.string, /** SIZES is exposed on the component itself */ @@ -228,7 +230,7 @@ TextField.propTypes = { wrapperClassName: PropTypes.string, onIconClick: PropTypes.func, clearOnIconClick: PropTypes.bool, - labelIconName: PropTypes.string, + labelIconName: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), showCharCount: PropTypes.bool, inputAriaLabel: PropTypes.string, /** Icon names labels for a11y */