From ff75b40bbd4059cdc89c73726b0f7c28f0b75963 Mon Sep 17 00:00:00 2001 From: Orr Gottlieb <60314759+orrgottlieb@users.noreply.github.com> Date: Tue, 25 May 2021 10:40:56 +0300 Subject: [PATCH] Fix/orr/icon ref (#131) * update button group and icons * fix icon ref * remove redundent useButton Props * remove console.log * some lint fixes --- package.json | 4 +- scripts/add-forward-ref-icons.js | 44 +++++++++++++++ src/components/ButtonGroup/ButtonGroup.jsx | 53 ++++++++++++++++--- src/components/ButtonGroup/ButtonGroup.scss | 28 +++++----- .../__stories__/buttonGroup.stories.js | 3 ++ src/components/Chips/Chips.jsx | 19 +++---- src/components/Icon/Icon.jsx | 3 +- src/components/Icon/Icons/components/API.js | 6 +-- .../Icon/Icons/components/Activity.js | 6 +-- src/components/Icon/Icons/components/Add.js | 6 +-- .../Icon/Icons/components/AddSmall.js | 6 +-- .../Icon/Icons/components/AddUpdate.js | 6 +-- src/components/Icon/Icons/components/Alert.js | 6 +-- .../Icon/Icons/components/Announcement.js | 6 +-- .../Icon/Icons/components/Archive.js | 6 +-- .../Icon/Icons/components/Attach.js | 6 +-- .../Icon/Icons/components/BlockQuote.js | 6 +-- src/components/Icon/Icons/components/Board.js | 6 +-- src/components/Icon/Icons/components/Bold.js | 6 +-- src/components/Icon/Icons/components/Bolt.js | 6 +-- .../Icon/Icons/components/Bookmark.js | 6 +-- .../Icon/Icons/components/Broadcast.js | 6 +-- src/components/Icon/Icons/components/Broom.js | 6 +-- .../Icon/Icons/components/Bullet.js | 6 +-- .../Icon/Icons/components/Bullets.js | 6 +-- .../Icon/Icons/components/Bulllet.js | 6 +-- .../Icon/Icons/components/Calendar.js | 6 +-- src/components/Icon/Icons/components/Chart.js | 6 +-- src/components/Icon/Icons/components/Check.js | 6 +-- .../Icon/Icons/components/CheckList.js | 6 +-- .../Icon/Icons/components/Checkbox.js | 6 +-- src/components/Icon/Icons/components/Close.js | 6 +-- .../Icon/Icons/components/CloseRound.js | 6 +-- .../Icon/Icons/components/CloseSmall.js | 6 +-- src/components/Icon/Icons/components/Code.js | 6 +-- .../Icon/Icons/components/Collapse.js | 6 +-- .../Icon/Icons/components/CollapseRound.js | 6 +-- .../Icon/Icons/components/Column.js | 6 +-- .../Icon/Icons/components/Comment.js | 6 +-- .../Icon/Icons/components/CreditCard.js | 6 +-- src/components/Icon/Icons/components/Cut.js | 6 +-- .../Icon/Icons/components/Dashboard.js | 6 +-- .../Icon/Icons/components/Delete.js | 6 +-- .../Icon/Icons/components/Divider.js | 6 +-- src/components/Icon/Icons/components/Doc.js | 6 +-- .../Icon/Icons/components/DoubleCheck.js | 6 +-- .../Icon/Icons/components/Download.js | 6 +-- src/components/Icon/Icons/components/Drag.js | 6 +-- .../Icons/components/DropdownChevronDown.js | 6 +-- .../Icons/components/DropdownChevronLeft.js | 6 +-- .../Icons/components/DropdownChevronRight.js | 6 +-- .../Icons/components/DropdownChevronUp.js | 6 +-- .../Icon/Icons/components/Duplicate.js | 6 +-- src/components/Icon/Icons/components/Edit.js | 6 +-- src/components/Icon/Icons/components/Email.js | 6 +-- src/components/Icon/Icons/components/Embed.js | 6 +-- src/components/Icon/Icons/components/Emoji.js | 6 +-- src/components/Icon/Icons/components/Enter.js | 6 +-- src/components/Icon/Icons/components/Event.js | 6 +-- .../Icon/Icons/components/ExternalPage.js | 6 +-- .../Icon/Icons/components/Favorite.js | 6 +-- .../Icon/Icons/components/Feedback.js | 6 +-- src/components/Icon/Icons/components/File.js | 6 +-- .../Icon/Icons/components/Filter.js | 6 +-- .../Icon/Icons/components/Fullscreen.js | 6 +-- .../Icon/Icons/components/FullscreenClose.js | 6 +-- src/components/Icon/Icons/components/Gif.js | 6 +-- src/components/Icon/Icons/components/Graph.js | 6 +-- src/components/Icon/Icons/components/Group.js | 6 +-- src/components/Icon/Icons/components/Guest.js | 6 +-- .../Icon/Icons/components/Health.js | 6 +-- src/components/Icon/Icons/components/Help.js | 6 +-- src/components/Icon/Icons/components/Hide.js | 6 +-- .../Icon/Icons/components/Highlight.js | 6 +-- .../Icons/components/HighlightColorBucket.js | 6 +-- src/components/Icon/Icons/components/Home.js | 6 +-- .../Icon/Icons/components/IPRestrictions.js | 6 +-- src/components/Icon/Icons/components/Image.js | 6 +-- src/components/Icon/Icons/components/Inbox.js | 6 +-- src/components/Icon/Icons/components/Info.js | 6 +-- .../Icon/Icons/components/Integrations.js | 6 +-- .../Icon/Icons/components/Invite.js | 6 +-- .../Icon/Icons/components/Italic.js | 6 +-- src/components/Icon/Icons/components/Item.js | 6 +-- .../Icon/Icons/components/Keyboard.js | 6 +-- src/components/Icon/Icons/components/Labs.js | 6 +-- src/components/Icon/Icons/components/Link.js | 6 +-- .../Icon/Icons/components/Location.js | 6 +-- .../Icon/Icons/components/Locked.js | 6 +-- .../Icon/Icons/components/Mention.js | 6 +-- src/components/Icon/Icons/components/Menu.js | 6 +-- .../Icon/Icons/components/Microphone.js | 6 +-- .../Icon/Icons/components/Mobile.js | 6 +-- .../Icons/components/MondayLogoOutline.js | 6 +-- src/components/Icon/Icons/components/Moon.js | 6 +-- .../Icon/Icons/components/MoreBelow.js | 6 +-- .../Icon/Icons/components/MoreBelowFilled.js | 6 +-- .../Icon/Icons/components/MoveArrowDown.js | 6 +-- .../Icon/Icons/components/MoveArrowLeft.js | 6 +-- .../Icon/Icons/components/MoveArrowRight.js | 6 +-- .../Icon/Icons/components/MoveArrowUp.js | 6 +-- .../Icon/Icons/components/MyWeek.js | 6 +-- .../Icons/components/NavigationChevronDown.js | 6 +-- .../Icons/components/NavigationChevronLeft.js | 6 +-- .../components/NavigationChevronRight.js | 6 +-- .../Icons/components/NavigationChevronUp.js | 6 +-- .../Icon/Icons/components/NewTab.js | 6 +-- .../Icon/Icons/components/NoColor.js | 6 +-- src/components/Icon/Icons/components/Note.js | 6 +-- .../Icon/Icons/components/Notifications.js | 6 +-- .../Icon/Icons/components/Numbers.js | 6 +-- src/components/Icon/Icons/components/Page.js | 6 +-- src/components/Icon/Icons/components/Paste.js | 6 +-- .../Icon/Icons/components/Person.js | 6 +-- src/components/Icon/Icons/components/Pin.js | 6 +-- src/components/Icon/Icons/components/Print.js | 6 +-- .../Icon/Icons/components/PushNotification.js | 6 +-- src/components/Icon/Icons/components/Quote.js | 6 +-- src/components/Icon/Icons/components/Redo.js | 6 +-- .../Icon/Icons/components/Remove.js | 6 +-- .../Icon/Icons/components/Replay.js | 6 +-- src/components/Icon/Icons/components/Retry.js | 6 +-- src/components/Icon/Icons/components/Robot.js | 6 +-- .../Icon/Icons/components/Search.js | 6 +-- .../Icon/Icons/components/Security.js | 6 +-- src/components/Icon/Icons/components/Send.js | 6 +-- .../Icon/Icons/components/Settings.js | 6 +-- .../Icon/Icons/components/SettingsKnobs.js | 6 +-- src/components/Icon/Icons/components/Share.js | 6 +-- src/components/Icon/Icons/components/Show.js | 6 +-- .../Icon/Icons/components/Shredder.js | 6 +-- src/components/Icon/Icons/components/Sort.js | 6 +-- .../Icon/Icons/components/StrikethroughS.js | 6 +-- .../Icon/Icons/components/StrikethroughT.js | 6 +-- src/components/Icon/Icons/components/Sun.js | 6 +-- .../Icon/Icons/components/Switch.js | 6 +-- src/components/Icon/Icons/components/Table.js | 6 +-- src/components/Icon/Icons/components/Team.js | 6 +-- src/components/Icon/Icons/components/Text.js | 6 +-- .../Icon/Icons/components/TextBig.js | 6 +-- .../Icon/Icons/components/TextHuge.js | 6 +-- .../Icon/Icons/components/TextSmall.js | 6 +-- .../Icon/Icons/components/Textcolor.js | 6 +-- .../Icon/Icons/components/ThumbsUp.js | 6 +-- src/components/Icon/Icons/components/Time.js | 6 +-- .../Icon/Icons/components/TurnInto.js | 6 +-- .../Icon/Icons/components/Underline.js | 6 +-- src/components/Icon/Icons/components/Undo.js | 6 +-- .../Icon/Icons/components/Unlocked.js | 6 +-- .../Icon/Icons/components/Update.js | 6 +-- .../Icon/Icons/components/Upgrade.js | 6 +-- .../Icon/Icons/components/Upload.js | 6 +-- .../Icon/Icons/components/Versioning.js | 6 +-- src/components/Icon/Icons/components/Video.js | 6 +-- src/components/Icon/Icons/components/Wand.js | 6 +-- src/components/Icon/Icons/components/Work.js | 6 +-- .../Icon/Icons/components/Workspace.js | 6 +-- src/components/MenuButton/MenuButton.jsx | 4 -- .../StepIndicator/StepIndicator.jsx | 6 +-- src/components/index.js | 2 +- src/general-stories/colors/colors-helper.js | 1 - src/published-components.js | 2 +- 162 files changed, 574 insertions(+), 495 deletions(-) create mode 100644 scripts/add-forward-ref-icons.js diff --git a/package.json b/package.json index 89c85179a0..93bc33b78f 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,9 @@ "deploy-storybook": "storybook-to-ghpages", "link-local": "npm link && npm start", "plop": "plop", - "build-react-icons": "svg2react-icon --keep-colors node_modules/monday-ui-style/src/Icons src/components/Icon/Icons", + "build-react-icons-base": "svg2react-icon --keep-colors node_modules/monday-ui-style/src/Icons src/components/Icon/Icons", + "build-react-icons": "npm run build-react-icons-base && npm run add-ref-to-icons", + "add-ref-to-icons": "node ./scripts/add-forward-ref-icons.js", "fix-lint": "prettier --write \"{,!(node_modules)/**/}*.{js,jsx}\"", "eslint": "eslint ./src", "eslint-fix": "eslint ./src --fix" diff --git a/scripts/add-forward-ref-icons.js b/scripts/add-forward-ref-icons.js new file mode 100644 index 0000000000..75d5f32e57 --- /dev/null +++ b/scripts/add-forward-ref-icons.js @@ -0,0 +1,44 @@ +var fs = require("fs"); + +const startReplaceOrigin = "({size, ...props}) => ("; +const startReplaceReplaced = " React.forwardRef(({size, ...props}, ref) => ("; +const replaceRefOrigin = "{...props}>"; +const replaceRefReplaced = "{...props} ref={ref}>"; +const endReplaceOrigin = ");"; +const endReplaceReplaced = "));"; + +function readFiles(dirname, onFileContent, onError) { + fs.readdir(dirname, function(err, filenames) { + if (err) { + onError(err); + return; + } + filenames.forEach(function(filename) { + fs.readFile(dirname + filename, "utf-8", function(err, content) { + if (err) { + onError(err); + return; + } + onFileContent(filename, content); + }); + }); + }); +} +const dirName = "src/components/Icon/Icons/components/"; +readFiles( + dirName, + function(filename, content) { + console.log("optimizing:: ", filename); + const newContent = content + .replace(replaceRefOrigin, replaceRefReplaced) + .replace(startReplaceOrigin, startReplaceReplaced) + .replace(endReplaceOrigin, endReplaceReplaced); + + fs.writeFile(`${dirName}/${filename}`, newContent, "utf8", function(err) { + if (err) return console.log(err); + }); + }, + function(err) { + throw err; + } +); diff --git a/src/components/ButtonGroup/ButtonGroup.jsx b/src/components/ButtonGroup/ButtonGroup.jsx index 08654601ea..3796877fae 100644 --- a/src/components/ButtonGroup/ButtonGroup.jsx +++ b/src/components/ButtonGroup/ButtonGroup.jsx @@ -9,7 +9,25 @@ import { ButtonWrapper } from "./ButtonWrapper"; import "./ButtonGroup.scss"; const ButtonGroup = forwardRef( - ({ componentClassName, options, name, disabled, value, onSelect, size, kind, groupAriaLabel, tooltipPosition, tooltipHideDelay, tooltipShowDelay, tooltipContainerSelector, tooltipMoveBy}, ref) => { + ( + { + componentClassName, + options, + name, + disabled, + value, + onSelect, + size, + kind, + groupAriaLabel, + tooltipPosition, + tooltipHideDelay, + tooltipShowDelay, + tooltipContainerSelector, + tooltipMoveBy + }, + ref + ) => { const inputRef = useRef(); const [valueState, setValueState] = useState(value); const prevValue = usePrevious(value); @@ -33,7 +51,7 @@ const ButtonGroup = forwardRef( }, [options, valueState]); const Buttons = useMemo(() => { - return options.map(option => { + return options.map((option, index) => { const isSelected = option.value === valueState; return ( onClick(option)} rightIcon={option.icon} leftIcon={option.leftIcon} - disabled={disabled || option.disabled} active={isSelected} + rightFlat={index !== options.length - 1} + leftFlat={index !== 0} kind={Button.kinds.TERTIARY} preventClickAnimation ariaLabel={option.ariaLabel} @@ -53,13 +72,28 @@ const ButtonGroup = forwardRef( tooltipShowDelay={tooltipShowDelay} tooltipContainerSelector={tooltipContainerSelector} tooltipMoveBy={tooltipMoveBy} - className={cx(`${baseClassName}__option-text`, { selected: isSelected, disabled })} + className={cx(`${baseClassName}__option-text`, { + selected: isSelected, + disabled, + "button-disabled": option.disabled + })} > {option.text} ); }); - }, [options, disabled, onClick, size, valueState, tooltipPosition, tooltipHideDelay, tooltipShowDelay, tooltipContainerSelector, tooltipMoveBy]); + }, [ + options, + disabled, + onClick, + size, + valueState, + tooltipPosition, + tooltipHideDelay, + tooltipShowDelay, + tooltipContainerSelector, + tooltipMoveBy + ]); // Effects useEffect(() => { @@ -74,7 +108,12 @@ const ButtonGroup = forwardRef( className={cx(baseClassName, componentClassName, `${baseClassName}--kind-${kind}`, { disabled })} ref={mergedRef} > -
+
{Buttons}
{selectedOption && selectedOption.subText && ( @@ -118,4 +157,4 @@ ButtonGroup.propTypes = { tooltipMoveBy: PropTypes.object }; -export default ButtonGroup; \ No newline at end of file +export default ButtonGroup; diff --git a/src/components/ButtonGroup/ButtonGroup.scss b/src/components/ButtonGroup/ButtonGroup.scss index 6447ac3fd8..0a65a85406 100644 --- a/src/components/ButtonGroup/ButtonGroup.scss +++ b/src/components/ButtonGroup/ButtonGroup.scss @@ -2,7 +2,6 @@ @import "../../styles/themes.scss"; @import "../../styles/typography.scss"; - .monday-style-button-group-component { display: flex; flex-direction: column; @@ -17,29 +16,17 @@ justify-content: center; .monday-style-button { - border: 1px solid; - border-radius: 0; @include theme-prop(background-color, primary-background-color); @include theme-prop(border-color, ui-border-color); - margin-left: -1px; - - &:first-child { - border-radius: $border-radius-small 0 0 $border-radius-small; - margin-left: 0; - } - &:last-child { - border-radius: 0 $border-radius-small $border-radius-small 0; - } - &--color { &-primary { &-active { + z-index: 20; &:hover { @include theme-prop(background-color, primary-selected-color); } @include theme-prop(background-color, primary-selected-color); @include theme-prop(border-color, primary-color); - z-index: 10; } } } @@ -49,6 +36,7 @@ &:not(.disabled) { @include theme-prop(color, primary-text-color); &.selected { + z-index: 10; @include theme-prop(color, primary-text-color); } } @@ -69,4 +57,16 @@ &.disabled { cursor: not-allowed; } + + .disabled { + cursor: not-allowed; + background-color: var(--disabled-background-color); + opacity: 0.5; + } + + .button-disabled { + background-color: var(--disabled-background-color); + opacity: 0.5; + cursor: not-allowed; + } } diff --git a/src/components/ButtonGroup/__stories__/buttonGroup.stories.js b/src/components/ButtonGroup/__stories__/buttonGroup.stories.js index beb1d9d528..d260b14648 100644 --- a/src/components/ButtonGroup/__stories__/buttonGroup.stories.js +++ b/src/components/ButtonGroup/__stories__/buttonGroup.stories.js @@ -4,6 +4,9 @@ import ButtonGroup from "../ButtonGroup"; import { StoryStateColumn, StoryStateRow } from "../../storybook-helpers"; import { FakeXMLHttpRequest } from "sinon"; import DescriptionLabel from "../../storybook-helpers/description-label/description-label"; +import TextSmall from "../../Icon/Icons/components/TextSmall"; +import Doc from "../../Icon/Icons/components/Doc"; +import { Bolt } from "../../Icon/Icons"; export const Sandbox = () => (
) : null} {!readOnly && !disabled && ( - - - + iconType={Icon.type.SVG} + clickable + icon={CloseSmall} + iconSize={iconSize} + onClick={onDeleteCallback} + /> )}
); diff --git a/src/components/Icon/Icon.jsx b/src/components/Icon/Icon.jsx index 340bec1f84..9798c16632 100644 --- a/src/components/Icon/Icon.jsx +++ b/src/components/Icon/Icon.jsx @@ -38,10 +38,11 @@ const Icon = forwardRef( return null; } - if (iconType === ICON_TYPES.SVG || typeof icon === "function") { + if (iconType === ICON_TYPES.SVG || typeof icon === "function" || typeof icon === "object") { const IconComponent = icon; return ( ( - +const API = React.forwardRef(({size, ...props}, ref) => ( + -); +)); API.displayName = 'API'; API.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Activity.js b/src/components/Icon/Icons/components/Activity.js index bf00113bcc..d440e829b2 100644 --- a/src/components/Icon/Icons/components/Activity.js +++ b/src/components/Icon/Icons/components/Activity.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Activity = ({size, ...props}) => ( - +const Activity = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Activity.displayName = 'Activity'; Activity.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Add.js b/src/components/Icon/Icons/components/Add.js index 45143b1591..1b5ea77cfb 100644 --- a/src/components/Icon/Icons/components/Add.js +++ b/src/components/Icon/Icons/components/Add.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Add = ({size, ...props}) => ( - +const Add = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Add.displayName = 'Add'; Add.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/AddSmall.js b/src/components/Icon/Icons/components/AddSmall.js index b659993166..83a97a1326 100644 --- a/src/components/Icon/Icons/components/AddSmall.js +++ b/src/components/Icon/Icons/components/AddSmall.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const AddSmall = ({size, ...props}) => ( - +const AddSmall = React.forwardRef(({size, ...props}, ref) => ( + -); +)); AddSmall.displayName = 'AddSmall'; AddSmall.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/AddUpdate.js b/src/components/Icon/Icons/components/AddUpdate.js index e2ddffafad..90f103e1a4 100644 --- a/src/components/Icon/Icons/components/AddUpdate.js +++ b/src/components/Icon/Icons/components/AddUpdate.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const AddUpdate = ({size, ...props}) => ( - +const AddUpdate = React.forwardRef(({size, ...props}, ref) => ( + -); +)); AddUpdate.displayName = 'AddUpdate'; AddUpdate.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Alert.js b/src/components/Icon/Icons/components/Alert.js index b518649fda..055209134e 100644 --- a/src/components/Icon/Icons/components/Alert.js +++ b/src/components/Icon/Icons/components/Alert.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Alert = ({size, ...props}) => ( - +const Alert = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Alert.displayName = 'Alert'; Alert.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Announcement.js b/src/components/Icon/Icons/components/Announcement.js index 64999b611e..4dd72e57ec 100644 --- a/src/components/Icon/Icons/components/Announcement.js +++ b/src/components/Icon/Icons/components/Announcement.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Announcement = ({size, ...props}) => ( - +const Announcement = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Announcement.displayName = 'Announcement'; Announcement.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Archive.js b/src/components/Icon/Icons/components/Archive.js index ebcaeee6e7..a8c12544cb 100644 --- a/src/components/Icon/Icons/components/Archive.js +++ b/src/components/Icon/Icons/components/Archive.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Archive = ({size, ...props}) => ( - +const Archive = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Archive.displayName = 'Archive'; Archive.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Attach.js b/src/components/Icon/Icons/components/Attach.js index 15844df909..d55b8086d1 100644 --- a/src/components/Icon/Icons/components/Attach.js +++ b/src/components/Icon/Icons/components/Attach.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Attach = ({size, ...props}) => ( - +const Attach = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Attach.displayName = 'Attach'; Attach.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/BlockQuote.js b/src/components/Icon/Icons/components/BlockQuote.js index eacdb01caf..8911c6a727 100644 --- a/src/components/Icon/Icons/components/BlockQuote.js +++ b/src/components/Icon/Icons/components/BlockQuote.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const BlockQuote = ({size, ...props}) => ( - +const BlockQuote = React.forwardRef(({size, ...props}, ref) => ( + -); +)); BlockQuote.displayName = 'BlockQuote'; BlockQuote.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Board.js b/src/components/Icon/Icons/components/Board.js index 252baf5fa7..8dab800676 100644 --- a/src/components/Icon/Icons/components/Board.js +++ b/src/components/Icon/Icons/components/Board.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Board = ({size, ...props}) => ( - +const Board = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Board.displayName = 'Board'; Board.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Bold.js b/src/components/Icon/Icons/components/Bold.js index 3e9e2abf7a..b1f7d25afc 100644 --- a/src/components/Icon/Icons/components/Bold.js +++ b/src/components/Icon/Icons/components/Bold.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Bold = ({size, ...props}) => ( - +const Bold = React.forwardRef(({size, ...props}, ref) => ( + @@ -16,7 +16,7 @@ const Bold = ({size, ...props}) => ( -); +)); Bold.displayName = 'Bold'; Bold.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Bolt.js b/src/components/Icon/Icons/components/Bolt.js index 1c17753e0e..fb13595e3e 100644 --- a/src/components/Icon/Icons/components/Bolt.js +++ b/src/components/Icon/Icons/components/Bolt.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Bolt = ({size, ...props}) => ( - +const Bolt = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Bolt.displayName = 'Bolt'; Bolt.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Bookmark.js b/src/components/Icon/Icons/components/Bookmark.js index 7496719719..ad1a5a23f4 100644 --- a/src/components/Icon/Icons/components/Bookmark.js +++ b/src/components/Icon/Icons/components/Bookmark.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Bookmark = ({size, ...props}) => ( - +const Bookmark = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Bookmark.displayName = 'Bookmark'; Bookmark.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Broadcast.js b/src/components/Icon/Icons/components/Broadcast.js index 158e7ff6f3..09aefee928 100644 --- a/src/components/Icon/Icons/components/Broadcast.js +++ b/src/components/Icon/Icons/components/Broadcast.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Broadcast = ({size, ...props}) => ( - +const Broadcast = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Broadcast.displayName = 'Broadcast'; Broadcast.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Broom.js b/src/components/Icon/Icons/components/Broom.js index e94b2421a3..96ac5eb8a0 100644 --- a/src/components/Icon/Icons/components/Broom.js +++ b/src/components/Icon/Icons/components/Broom.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Broom = ({size, ...props}) => ( - +const Broom = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Broom.displayName = 'Broom'; Broom.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Bullet.js b/src/components/Icon/Icons/components/Bullet.js index b16f3d57d8..1dc7c2f710 100644 --- a/src/components/Icon/Icons/components/Bullet.js +++ b/src/components/Icon/Icons/components/Bullet.js @@ -2,11 +2,11 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Bullet = ({size, ...props}) => ( - +const Bullet = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Bullet.displayName = 'Bullet'; Bullet.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Bullets.js b/src/components/Icon/Icons/components/Bullets.js index fc029b1bad..dc1dd8790c 100644 --- a/src/components/Icon/Icons/components/Bullets.js +++ b/src/components/Icon/Icons/components/Bullets.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Bullets = ({size, ...props}) => ( - +const Bullets = React.forwardRef(({size, ...props}, ref) => ( + @@ -19,7 +19,7 @@ const Bullets = ({size, ...props}) => ( fillRule="evenodd" clipRule="evenodd" /> -); +)); Bullets.displayName = 'Bullets'; Bullets.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Bulllet.js b/src/components/Icon/Icons/components/Bulllet.js index 90af9a856e..53a0d563c4 100644 --- a/src/components/Icon/Icons/components/Bulllet.js +++ b/src/components/Icon/Icons/components/Bulllet.js @@ -2,11 +2,11 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Bulllet = ({size, ...props}) => ( - +const Bulllet = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Bulllet.displayName = 'Bulllet'; Bulllet.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Calendar.js b/src/components/Icon/Icons/components/Calendar.js index d8c97bdc25..e63dcddb25 100644 --- a/src/components/Icon/Icons/components/Calendar.js +++ b/src/components/Icon/Icons/components/Calendar.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Calendar = ({size, ...props}) => ( - +const Calendar = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Calendar.displayName = 'Calendar'; Calendar.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Chart.js b/src/components/Icon/Icons/components/Chart.js index 35096a1cdb..8c312b822f 100644 --- a/src/components/Icon/Icons/components/Chart.js +++ b/src/components/Icon/Icons/components/Chart.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Chart = ({size, ...props}) => ( - +const Chart = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Chart.displayName = 'Chart'; Chart.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Check.js b/src/components/Icon/Icons/components/Check.js index d361212332..6b8d83e334 100644 --- a/src/components/Icon/Icons/components/Check.js +++ b/src/components/Icon/Icons/components/Check.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Check = ({size, ...props}) => ( - +const Check = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Check.displayName = 'Check'; Check.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/CheckList.js b/src/components/Icon/Icons/components/CheckList.js index cfcefb0b49..c52def3412 100644 --- a/src/components/Icon/Icons/components/CheckList.js +++ b/src/components/Icon/Icons/components/CheckList.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const CheckList = ({size, ...props}) => ( - +const CheckList = React.forwardRef(({size, ...props}, ref) => ( + -); +)); CheckList.displayName = 'CheckList'; CheckList.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Checkbox.js b/src/components/Icon/Icons/components/Checkbox.js index a936a84f82..f8c0d28e11 100644 --- a/src/components/Icon/Icons/components/Checkbox.js +++ b/src/components/Icon/Icons/components/Checkbox.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Checkbox = ({size, ...props}) => ( - +const Checkbox = React.forwardRef(({size, ...props}, ref) => ( + @@ -11,7 +11,7 @@ const Checkbox = ({size, ...props}) => ( /> -); +)); Checkbox.displayName = 'Checkbox'; Checkbox.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Close.js b/src/components/Icon/Icons/components/Close.js index 56f52d9ea4..97c8a5b19c 100644 --- a/src/components/Icon/Icons/components/Close.js +++ b/src/components/Icon/Icons/components/Close.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Close = ({size, ...props}) => ( - +const Close = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Close.displayName = 'Close'; Close.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/CloseRound.js b/src/components/Icon/Icons/components/CloseRound.js index 9f311ca5e9..524e71d2f9 100644 --- a/src/components/Icon/Icons/components/CloseRound.js +++ b/src/components/Icon/Icons/components/CloseRound.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const CloseRound = ({size, ...props}) => ( - +const CloseRound = React.forwardRef(({size, ...props}, ref) => ( + -); +)); CloseRound.displayName = 'CloseRound'; CloseRound.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/CloseSmall.js b/src/components/Icon/Icons/components/CloseSmall.js index f74112863d..40723e4886 100644 --- a/src/components/Icon/Icons/components/CloseSmall.js +++ b/src/components/Icon/Icons/components/CloseSmall.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const CloseSmall = ({size, ...props}) => ( - +const CloseSmall = React.forwardRef(({size, ...props}, ref) => ( + -); +)); CloseSmall.displayName = 'CloseSmall'; CloseSmall.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Code.js b/src/components/Icon/Icons/components/Code.js index d72870038f..25f4c64b95 100644 --- a/src/components/Icon/Icons/components/Code.js +++ b/src/components/Icon/Icons/components/Code.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Code = ({size, ...props}) => ( - +const Code = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Code.displayName = 'Code'; Code.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Collapse.js b/src/components/Icon/Icons/components/Collapse.js index 3b94732bde..bafef0bde2 100644 --- a/src/components/Icon/Icons/components/Collapse.js +++ b/src/components/Icon/Icons/components/Collapse.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Collapse = ({size, ...props}) => ( - +const Collapse = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Collapse.displayName = 'Collapse'; Collapse.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/CollapseRound.js b/src/components/Icon/Icons/components/CollapseRound.js index f284a65d11..865a6e7a29 100644 --- a/src/components/Icon/Icons/components/CollapseRound.js +++ b/src/components/Icon/Icons/components/CollapseRound.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const CollapseRound = ({size, ...props}) => ( - +const CollapseRound = React.forwardRef(({size, ...props}, ref) => ( + -); +)); CollapseRound.displayName = 'CollapseRound'; CollapseRound.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Column.js b/src/components/Icon/Icons/components/Column.js index 0edd698e41..f54d8640b7 100644 --- a/src/components/Icon/Icons/components/Column.js +++ b/src/components/Icon/Icons/components/Column.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Column = ({size, ...props}) => ( - +const Column = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Column.displayName = 'Column'; Column.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Comment.js b/src/components/Icon/Icons/components/Comment.js index 3ffb163d62..591c8a1fe1 100644 --- a/src/components/Icon/Icons/components/Comment.js +++ b/src/components/Icon/Icons/components/Comment.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Comment = ({size, ...props}) => ( - +const Comment = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Comment.displayName = 'Comment'; Comment.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/CreditCard.js b/src/components/Icon/Icons/components/CreditCard.js index 9b460abbe6..97b6c6af75 100644 --- a/src/components/Icon/Icons/components/CreditCard.js +++ b/src/components/Icon/Icons/components/CreditCard.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const CreditCard = ({size, ...props}) => ( - +const CreditCard = React.forwardRef(({size, ...props}, ref) => ( + -); +)); CreditCard.displayName = 'CreditCard'; CreditCard.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Cut.js b/src/components/Icon/Icons/components/Cut.js index 37d42a9827..52d15c654e 100644 --- a/src/components/Icon/Icons/components/Cut.js +++ b/src/components/Icon/Icons/components/Cut.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Cut = ({size, ...props}) => ( - +const Cut = React.forwardRef(({size, ...props}, ref) => ( + ( -); +)); Cut.displayName = 'Cut'; Cut.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Dashboard.js b/src/components/Icon/Icons/components/Dashboard.js index a3245364ad..b634c215ce 100644 --- a/src/components/Icon/Icons/components/Dashboard.js +++ b/src/components/Icon/Icons/components/Dashboard.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Dashboard = ({size, ...props}) => ( - +const Dashboard = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Dashboard.displayName = 'Dashboard'; Dashboard.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Delete.js b/src/components/Icon/Icons/components/Delete.js index 4c3a36e01e..a72572709f 100644 --- a/src/components/Icon/Icons/components/Delete.js +++ b/src/components/Icon/Icons/components/Delete.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Delete = ({size, ...props}) => ( - +const Delete = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Delete.displayName = 'Delete'; Delete.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Divider.js b/src/components/Icon/Icons/components/Divider.js index 0faa207ba2..f4bcaf9bec 100644 --- a/src/components/Icon/Icons/components/Divider.js +++ b/src/components/Icon/Icons/components/Divider.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Divider = ({size, ...props}) => ( - +const Divider = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Divider.displayName = 'Divider'; Divider.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Doc.js b/src/components/Icon/Icons/components/Doc.js index f5078731fe..cccbcbd35f 100644 --- a/src/components/Icon/Icons/components/Doc.js +++ b/src/components/Icon/Icons/components/Doc.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Doc = ({size, ...props}) => ( - +const Doc = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Doc.displayName = 'Doc'; Doc.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/DoubleCheck.js b/src/components/Icon/Icons/components/DoubleCheck.js index 5de2ff2674..804e5f5112 100644 --- a/src/components/Icon/Icons/components/DoubleCheck.js +++ b/src/components/Icon/Icons/components/DoubleCheck.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const DoubleCheck = ({size, ...props}) => ( - +const DoubleCheck = React.forwardRef(({size, ...props}, ref) => ( + -); +)); DoubleCheck.displayName = 'DoubleCheck'; DoubleCheck.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Download.js b/src/components/Icon/Icons/components/Download.js index 1ed0a29912..16aaf45f5b 100644 --- a/src/components/Icon/Icons/components/Download.js +++ b/src/components/Icon/Icons/components/Download.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Download = ({size, ...props}) => ( - +const Download = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Download.displayName = 'Download'; Download.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Drag.js b/src/components/Icon/Icons/components/Drag.js index 774a0c3467..3eee770102 100644 --- a/src/components/Icon/Icons/components/Drag.js +++ b/src/components/Icon/Icons/components/Drag.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Drag = ({size, ...props}) => ( - +const Drag = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Drag.displayName = 'Drag'; Drag.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/DropdownChevronDown.js b/src/components/Icon/Icons/components/DropdownChevronDown.js index b75a9f62bf..13210ba40e 100644 --- a/src/components/Icon/Icons/components/DropdownChevronDown.js +++ b/src/components/Icon/Icons/components/DropdownChevronDown.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const DropdownChevronDown = ({size, ...props}) => ( - +const DropdownChevronDown = React.forwardRef(({size, ...props}, ref) => ( + -); +)); DropdownChevronDown.displayName = 'DropdownChevronDown'; DropdownChevronDown.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/DropdownChevronLeft.js b/src/components/Icon/Icons/components/DropdownChevronLeft.js index b17df228ff..136f0302e8 100644 --- a/src/components/Icon/Icons/components/DropdownChevronLeft.js +++ b/src/components/Icon/Icons/components/DropdownChevronLeft.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const DropdownChevronLeft = ({size, ...props}) => ( - +const DropdownChevronLeft = React.forwardRef(({size, ...props}, ref) => ( + -); +)); DropdownChevronLeft.displayName = 'DropdownChevronLeft'; DropdownChevronLeft.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/DropdownChevronRight.js b/src/components/Icon/Icons/components/DropdownChevronRight.js index 3f42e93763..1504de33dd 100644 --- a/src/components/Icon/Icons/components/DropdownChevronRight.js +++ b/src/components/Icon/Icons/components/DropdownChevronRight.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const DropdownChevronRight = ({size, ...props}) => ( - +const DropdownChevronRight = React.forwardRef(({size, ...props}, ref) => ( + -); +)); DropdownChevronRight.displayName = 'DropdownChevronRight'; DropdownChevronRight.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/DropdownChevronUp.js b/src/components/Icon/Icons/components/DropdownChevronUp.js index d9f5911577..c5b9587586 100644 --- a/src/components/Icon/Icons/components/DropdownChevronUp.js +++ b/src/components/Icon/Icons/components/DropdownChevronUp.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const DropdownChevronUp = ({size, ...props}) => ( - +const DropdownChevronUp = React.forwardRef(({size, ...props}, ref) => ( + -); +)); DropdownChevronUp.displayName = 'DropdownChevronUp'; DropdownChevronUp.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Duplicate.js b/src/components/Icon/Icons/components/Duplicate.js index 5b0a44ca5f..b517bf9f0d 100644 --- a/src/components/Icon/Icons/components/Duplicate.js +++ b/src/components/Icon/Icons/components/Duplicate.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Duplicate = ({size, ...props}) => ( - +const Duplicate = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Duplicate.displayName = 'Duplicate'; Duplicate.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Edit.js b/src/components/Icon/Icons/components/Edit.js index 57799c0087..354e6cb61d 100644 --- a/src/components/Icon/Icons/components/Edit.js +++ b/src/components/Icon/Icons/components/Edit.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Edit = ({size, ...props}) => ( - +const Edit = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Edit.displayName = 'Edit'; Edit.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Email.js b/src/components/Icon/Icons/components/Email.js index 4df58f84ad..145662f13a 100644 --- a/src/components/Icon/Icons/components/Email.js +++ b/src/components/Icon/Icons/components/Email.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Email = ({size, ...props}) => ( - +const Email = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Email.displayName = 'Email'; Email.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Embed.js b/src/components/Icon/Icons/components/Embed.js index b0b0d9aa8d..0b0fc7794b 100644 --- a/src/components/Icon/Icons/components/Embed.js +++ b/src/components/Icon/Icons/components/Embed.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Embed = ({size, ...props}) => ( - +const Embed = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Embed.displayName = 'Embed'; Embed.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Emoji.js b/src/components/Icon/Icons/components/Emoji.js index 8cfb1f23f3..117e9e8972 100644 --- a/src/components/Icon/Icons/components/Emoji.js +++ b/src/components/Icon/Icons/components/Emoji.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Emoji = ({size, ...props}) => ( - +const Emoji = React.forwardRef(({size, ...props}, ref) => ( + ( -); +)); Emoji.displayName = 'Emoji'; Emoji.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Enter.js b/src/components/Icon/Icons/components/Enter.js index 2c5a6f285c..19f771ae57 100644 --- a/src/components/Icon/Icons/components/Enter.js +++ b/src/components/Icon/Icons/components/Enter.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Enter = ({size, ...props}) => ( - +const Enter = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Enter.displayName = 'Enter'; Enter.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Event.js b/src/components/Icon/Icons/components/Event.js index 72ba4781e1..dcaf47f824 100644 --- a/src/components/Icon/Icons/components/Event.js +++ b/src/components/Icon/Icons/components/Event.js @@ -2,13 +2,13 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Event = ({size, ...props}) => ( - +const Event = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Event.displayName = 'Event'; Event.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/ExternalPage.js b/src/components/Icon/Icons/components/ExternalPage.js index 36c1c6bf34..270d3cf89c 100644 --- a/src/components/Icon/Icons/components/ExternalPage.js +++ b/src/components/Icon/Icons/components/ExternalPage.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const ExternalPage = ({size, ...props}) => ( - +const ExternalPage = React.forwardRef(({size, ...props}, ref) => ( + -); +)); ExternalPage.displayName = 'ExternalPage'; ExternalPage.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Favorite.js b/src/components/Icon/Icons/components/Favorite.js index c90855fb4d..43cd350956 100644 --- a/src/components/Icon/Icons/components/Favorite.js +++ b/src/components/Icon/Icons/components/Favorite.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Favorite = ({size, ...props}) => ( - +const Favorite = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Favorite.displayName = 'Favorite'; Favorite.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Feedback.js b/src/components/Icon/Icons/components/Feedback.js index 2cd5747282..71091959d9 100644 --- a/src/components/Icon/Icons/components/Feedback.js +++ b/src/components/Icon/Icons/components/Feedback.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Feedback = ({size, ...props}) => ( - +const Feedback = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Feedback.displayName = 'Feedback'; Feedback.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/File.js b/src/components/Icon/Icons/components/File.js index 7b8cd8bbc4..9a2865f723 100644 --- a/src/components/Icon/Icons/components/File.js +++ b/src/components/Icon/Icons/components/File.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const File = ({size, ...props}) => ( - +const File = React.forwardRef(({size, ...props}, ref) => ( + -); +)); File.displayName = 'File'; File.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Filter.js b/src/components/Icon/Icons/components/Filter.js index 08f941f80a..84a66a264c 100644 --- a/src/components/Icon/Icons/components/Filter.js +++ b/src/components/Icon/Icons/components/Filter.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Filter = ({size, ...props}) => ( - +const Filter = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Filter.displayName = 'Filter'; Filter.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Fullscreen.js b/src/components/Icon/Icons/components/Fullscreen.js index 8ab30b1fdf..25723e2ff7 100644 --- a/src/components/Icon/Icons/components/Fullscreen.js +++ b/src/components/Icon/Icons/components/Fullscreen.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Fullscreen = ({size, ...props}) => ( - +const Fullscreen = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Fullscreen.displayName = 'Fullscreen'; Fullscreen.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/FullscreenClose.js b/src/components/Icon/Icons/components/FullscreenClose.js index 1b0882ed48..36993df45f 100644 --- a/src/components/Icon/Icons/components/FullscreenClose.js +++ b/src/components/Icon/Icons/components/FullscreenClose.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const FullscreenClose = ({size, ...props}) => ( - +const FullscreenClose = React.forwardRef(({size, ...props}, ref) => ( + -); +)); FullscreenClose.displayName = 'FullscreenClose'; FullscreenClose.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Gif.js b/src/components/Icon/Icons/components/Gif.js index fd25b86289..015d5a3a0b 100644 --- a/src/components/Icon/Icons/components/Gif.js +++ b/src/components/Icon/Icons/components/Gif.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Gif = ({size, ...props}) => ( - +const Gif = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Gif.displayName = 'Gif'; Gif.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Graph.js b/src/components/Icon/Icons/components/Graph.js index defad16b88..8a540605d0 100644 --- a/src/components/Icon/Icons/components/Graph.js +++ b/src/components/Icon/Icons/components/Graph.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Graph = ({size, ...props}) => ( - +const Graph = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Graph.displayName = 'Graph'; Graph.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Group.js b/src/components/Icon/Icons/components/Group.js index ead268eeaf..dcafc16365 100644 --- a/src/components/Icon/Icons/components/Group.js +++ b/src/components/Icon/Icons/components/Group.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Group = ({size, ...props}) => ( - +const Group = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Group.displayName = 'Group'; Group.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Guest.js b/src/components/Icon/Icons/components/Guest.js index 611c7009b0..03f6290ba7 100644 --- a/src/components/Icon/Icons/components/Guest.js +++ b/src/components/Icon/Icons/components/Guest.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Guest = ({size, ...props}) => ( - +const Guest = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Guest.displayName = 'Guest'; Guest.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Health.js b/src/components/Icon/Icons/components/Health.js index fedcdfe9b6..ccc381cec0 100644 --- a/src/components/Icon/Icons/components/Health.js +++ b/src/components/Icon/Icons/components/Health.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Health = ({size, ...props}) => ( - +const Health = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Health.displayName = 'Health'; Health.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Help.js b/src/components/Icon/Icons/components/Help.js index 0d9fa1991f..4df8f5012a 100644 --- a/src/components/Icon/Icons/components/Help.js +++ b/src/components/Icon/Icons/components/Help.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Help = ({size, ...props}) => ( - +const Help = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Help.displayName = 'Help'; Help.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Hide.js b/src/components/Icon/Icons/components/Hide.js index 18361f448f..f7564a16c3 100644 --- a/src/components/Icon/Icons/components/Hide.js +++ b/src/components/Icon/Icons/components/Hide.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Hide = ({size, ...props}) => ( - +const Hide = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Hide.displayName = 'Hide'; Hide.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Highlight.js b/src/components/Icon/Icons/components/Highlight.js index 52325ffd8f..3b73a92160 100644 --- a/src/components/Icon/Icons/components/Highlight.js +++ b/src/components/Icon/Icons/components/Highlight.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Highlight = ({size, ...props}) => ( - +const Highlight = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Highlight.displayName = 'Highlight'; Highlight.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/HighlightColorBucket.js b/src/components/Icon/Icons/components/HighlightColorBucket.js index 6f1fd6d5dd..0b9a9f3421 100644 --- a/src/components/Icon/Icons/components/HighlightColorBucket.js +++ b/src/components/Icon/Icons/components/HighlightColorBucket.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const HighlightColorBucket = ({size, ...props}) => ( - +const HighlightColorBucket = React.forwardRef(({size, ...props}, ref) => ( + -); +)); HighlightColorBucket.displayName = 'HighlightColorBucket'; HighlightColorBucket.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Home.js b/src/components/Icon/Icons/components/Home.js index 04ed13b4f4..2ea078779f 100644 --- a/src/components/Icon/Icons/components/Home.js +++ b/src/components/Icon/Icons/components/Home.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Home = ({size, ...props}) => ( - +const Home = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Home.displayName = 'Home'; Home.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/IPRestrictions.js b/src/components/Icon/Icons/components/IPRestrictions.js index 3a9f02552a..6371befef0 100644 --- a/src/components/Icon/Icons/components/IPRestrictions.js +++ b/src/components/Icon/Icons/components/IPRestrictions.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const IPRestrictions = ({size, ...props}) => ( - +const IPRestrictions = React.forwardRef(({size, ...props}, ref) => ( + -); +)); IPRestrictions.displayName = 'IPRestrictions'; IPRestrictions.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Image.js b/src/components/Icon/Icons/components/Image.js index a73f926683..891938d1e2 100644 --- a/src/components/Icon/Icons/components/Image.js +++ b/src/components/Icon/Icons/components/Image.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Image = ({size, ...props}) => ( - +const Image = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Image.displayName = 'Image'; Image.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Inbox.js b/src/components/Icon/Icons/components/Inbox.js index 9f1a54fad0..32d4675823 100644 --- a/src/components/Icon/Icons/components/Inbox.js +++ b/src/components/Icon/Icons/components/Inbox.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Inbox = ({size, ...props}) => ( - +const Inbox = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Inbox.displayName = 'Inbox'; Inbox.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Info.js b/src/components/Icon/Icons/components/Info.js index f1de81e507..39e98fe088 100644 --- a/src/components/Icon/Icons/components/Info.js +++ b/src/components/Icon/Icons/components/Info.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Info = ({size, ...props}) => ( - +const Info = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Info.displayName = 'Info'; Info.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Integrations.js b/src/components/Icon/Icons/components/Integrations.js index dfeefe46d7..470c238eff 100644 --- a/src/components/Icon/Icons/components/Integrations.js +++ b/src/components/Icon/Icons/components/Integrations.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Integrations = ({size, ...props}) => ( - +const Integrations = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Integrations.displayName = 'Integrations'; Integrations.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Invite.js b/src/components/Icon/Icons/components/Invite.js index 244cd6ee02..06c8a4e586 100644 --- a/src/components/Icon/Icons/components/Invite.js +++ b/src/components/Icon/Icons/components/Invite.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Invite = ({size, ...props}) => ( - +const Invite = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Invite.displayName = 'Invite'; Invite.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Italic.js b/src/components/Icon/Icons/components/Italic.js index a1eacd837b..33393a5cdb 100644 --- a/src/components/Icon/Icons/components/Italic.js +++ b/src/components/Icon/Icons/components/Italic.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Italic = ({size, ...props}) => ( - +const Italic = React.forwardRef(({size, ...props}, ref) => ( + @@ -11,7 +11,7 @@ const Italic = ({size, ...props}) => ( /> -); +)); Italic.displayName = 'Italic'; Italic.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Item.js b/src/components/Icon/Icons/components/Item.js index c3370cd650..f688a2400b 100644 --- a/src/components/Icon/Icons/components/Item.js +++ b/src/components/Icon/Icons/components/Item.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Item = ({size, ...props}) => ( - +const Item = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Item.displayName = 'Item'; Item.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Keyboard.js b/src/components/Icon/Icons/components/Keyboard.js index 5835917a2c..c4ea0b1047 100644 --- a/src/components/Icon/Icons/components/Keyboard.js +++ b/src/components/Icon/Icons/components/Keyboard.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Keyboard = ({size, ...props}) => ( - +const Keyboard = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Keyboard.displayName = 'Keyboard'; Keyboard.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Labs.js b/src/components/Icon/Icons/components/Labs.js index 7f98c19629..3ea0603014 100644 --- a/src/components/Icon/Icons/components/Labs.js +++ b/src/components/Icon/Icons/components/Labs.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Labs = ({size, ...props}) => ( - +const Labs = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Labs.displayName = 'Labs'; Labs.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Link.js b/src/components/Icon/Icons/components/Link.js index b0b16961e2..4063b67c80 100644 --- a/src/components/Icon/Icons/components/Link.js +++ b/src/components/Icon/Icons/components/Link.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Link = ({size, ...props}) => ( - +const Link = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Link.displayName = 'Link'; Link.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Location.js b/src/components/Icon/Icons/components/Location.js index db72abc3da..cc2ccef624 100644 --- a/src/components/Icon/Icons/components/Location.js +++ b/src/components/Icon/Icons/components/Location.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Location = ({size, ...props}) => ( - +const Location = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Location.displayName = 'Location'; Location.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Locked.js b/src/components/Icon/Icons/components/Locked.js index 350ca56039..882a0829e9 100644 --- a/src/components/Icon/Icons/components/Locked.js +++ b/src/components/Icon/Icons/components/Locked.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Locked = ({size, ...props}) => ( - +const Locked = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Locked.displayName = 'Locked'; Locked.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Mention.js b/src/components/Icon/Icons/components/Mention.js index e4632ec583..29dad87a6b 100644 --- a/src/components/Icon/Icons/components/Mention.js +++ b/src/components/Icon/Icons/components/Mention.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Mention = ({size, ...props}) => ( - +const Mention = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Mention.displayName = 'Mention'; Mention.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Menu.js b/src/components/Icon/Icons/components/Menu.js index bd657e5782..7c6af7eec6 100644 --- a/src/components/Icon/Icons/components/Menu.js +++ b/src/components/Icon/Icons/components/Menu.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Menu = ({size, ...props}) => ( - +const Menu = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Menu.displayName = 'Menu'; Menu.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Microphone.js b/src/components/Icon/Icons/components/Microphone.js index 6c3cceba79..a10d833e1a 100644 --- a/src/components/Icon/Icons/components/Microphone.js +++ b/src/components/Icon/Icons/components/Microphone.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Microphone = ({size, ...props}) => ( - +const Microphone = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Microphone.displayName = 'Microphone'; Microphone.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Mobile.js b/src/components/Icon/Icons/components/Mobile.js index 4d9648e0d6..6495ee1442 100644 --- a/src/components/Icon/Icons/components/Mobile.js +++ b/src/components/Icon/Icons/components/Mobile.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Mobile = ({size, ...props}) => ( - +const Mobile = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Mobile.displayName = 'Mobile'; Mobile.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/MondayLogoOutline.js b/src/components/Icon/Icons/components/MondayLogoOutline.js index 9a7d14bd47..b6cbfeb794 100644 --- a/src/components/Icon/Icons/components/MondayLogoOutline.js +++ b/src/components/Icon/Icons/components/MondayLogoOutline.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const MondayLogoOutline = ({size, ...props}) => ( - +const MondayLogoOutline = React.forwardRef(({size, ...props}, ref) => ( + -); +)); MondayLogoOutline.displayName = 'MondayLogoOutline'; MondayLogoOutline.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Moon.js b/src/components/Icon/Icons/components/Moon.js index 4eb373e3ed..77d8073a56 100644 --- a/src/components/Icon/Icons/components/Moon.js +++ b/src/components/Icon/Icons/components/Moon.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Moon = ({size, ...props}) => ( - +const Moon = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Moon.displayName = 'Moon'; Moon.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/MoreBelow.js b/src/components/Icon/Icons/components/MoreBelow.js index 7710adef17..4f631aa46d 100644 --- a/src/components/Icon/Icons/components/MoreBelow.js +++ b/src/components/Icon/Icons/components/MoreBelow.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const MoreBelow = ({size, ...props}) => ( - +const MoreBelow = React.forwardRef(({size, ...props}, ref) => ( + ( -); +)); MoreBelow.displayName = 'MoreBelow'; MoreBelow.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/MoreBelowFilled.js b/src/components/Icon/Icons/components/MoreBelowFilled.js index 30c40a1047..05d8dea9ae 100644 --- a/src/components/Icon/Icons/components/MoreBelowFilled.js +++ b/src/components/Icon/Icons/components/MoreBelowFilled.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const MoreBelowFilled = ({size, ...props}) => ( - +const MoreBelowFilled = React.forwardRef(({size, ...props}, ref) => ( + -); +)); MoreBelowFilled.displayName = 'MoreBelowFilled'; MoreBelowFilled.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/MoveArrowDown.js b/src/components/Icon/Icons/components/MoveArrowDown.js index 4f526d2ca6..ee56c8fb63 100644 --- a/src/components/Icon/Icons/components/MoveArrowDown.js +++ b/src/components/Icon/Icons/components/MoveArrowDown.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const MoveArrowDown = ({size, ...props}) => ( - +const MoveArrowDown = React.forwardRef(({size, ...props}, ref) => ( + -); +)); MoveArrowDown.displayName = 'MoveArrowDown'; MoveArrowDown.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/MoveArrowLeft.js b/src/components/Icon/Icons/components/MoveArrowLeft.js index 9bfcdb0f2c..0117545d21 100644 --- a/src/components/Icon/Icons/components/MoveArrowLeft.js +++ b/src/components/Icon/Icons/components/MoveArrowLeft.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const MoveArrowLeft = ({size, ...props}) => ( - +const MoveArrowLeft = React.forwardRef(({size, ...props}, ref) => ( + -); +)); MoveArrowLeft.displayName = 'MoveArrowLeft'; MoveArrowLeft.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/MoveArrowRight.js b/src/components/Icon/Icons/components/MoveArrowRight.js index 0b466ba2d2..b4d7651cb3 100644 --- a/src/components/Icon/Icons/components/MoveArrowRight.js +++ b/src/components/Icon/Icons/components/MoveArrowRight.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const MoveArrowRight = ({size, ...props}) => ( - +const MoveArrowRight = React.forwardRef(({size, ...props}, ref) => ( + -); +)); MoveArrowRight.displayName = 'MoveArrowRight'; MoveArrowRight.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/MoveArrowUp.js b/src/components/Icon/Icons/components/MoveArrowUp.js index 048958e334..0503bc9d40 100644 --- a/src/components/Icon/Icons/components/MoveArrowUp.js +++ b/src/components/Icon/Icons/components/MoveArrowUp.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const MoveArrowUp = ({size, ...props}) => ( - +const MoveArrowUp = React.forwardRef(({size, ...props}, ref) => ( + -); +)); MoveArrowUp.displayName = 'MoveArrowUp'; MoveArrowUp.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/MyWeek.js b/src/components/Icon/Icons/components/MyWeek.js index 074ca42d14..ffb7c52dfe 100644 --- a/src/components/Icon/Icons/components/MyWeek.js +++ b/src/components/Icon/Icons/components/MyWeek.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const MyWeek = ({size, ...props}) => ( - +const MyWeek = React.forwardRef(({size, ...props}, ref) => ( + -); +)); MyWeek.displayName = 'MyWeek'; MyWeek.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/NavigationChevronDown.js b/src/components/Icon/Icons/components/NavigationChevronDown.js index eb1583a229..369027826e 100644 --- a/src/components/Icon/Icons/components/NavigationChevronDown.js +++ b/src/components/Icon/Icons/components/NavigationChevronDown.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const NavigationChevronDown = ({size, ...props}) => ( - +const NavigationChevronDown = React.forwardRef(({size, ...props}, ref) => ( + -); +)); NavigationChevronDown.displayName = 'NavigationChevronDown'; NavigationChevronDown.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/NavigationChevronLeft.js b/src/components/Icon/Icons/components/NavigationChevronLeft.js index c475920743..2159ab593b 100644 --- a/src/components/Icon/Icons/components/NavigationChevronLeft.js +++ b/src/components/Icon/Icons/components/NavigationChevronLeft.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const NavigationChevronLeft = ({size, ...props}) => ( - +const NavigationChevronLeft = React.forwardRef(({size, ...props}, ref) => ( + -); +)); NavigationChevronLeft.displayName = 'NavigationChevronLeft'; NavigationChevronLeft.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/NavigationChevronRight.js b/src/components/Icon/Icons/components/NavigationChevronRight.js index 97bc904ab2..840c05751d 100644 --- a/src/components/Icon/Icons/components/NavigationChevronRight.js +++ b/src/components/Icon/Icons/components/NavigationChevronRight.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const NavigationChevronRight = ({size, ...props}) => ( - +const NavigationChevronRight = React.forwardRef(({size, ...props}, ref) => ( + -); +)); NavigationChevronRight.displayName = 'NavigationChevronRight'; NavigationChevronRight.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/NavigationChevronUp.js b/src/components/Icon/Icons/components/NavigationChevronUp.js index 87d4239c1b..331c4eeaba 100644 --- a/src/components/Icon/Icons/components/NavigationChevronUp.js +++ b/src/components/Icon/Icons/components/NavigationChevronUp.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const NavigationChevronUp = ({size, ...props}) => ( - +const NavigationChevronUp = React.forwardRef(({size, ...props}, ref) => ( + -); +)); NavigationChevronUp.displayName = 'NavigationChevronUp'; NavigationChevronUp.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/NewTab.js b/src/components/Icon/Icons/components/NewTab.js index 384d8b8d6c..f4232fc4f1 100644 --- a/src/components/Icon/Icons/components/NewTab.js +++ b/src/components/Icon/Icons/components/NewTab.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const NewTab = ({size, ...props}) => ( - +const NewTab = React.forwardRef(({size, ...props}, ref) => ( + -); +)); NewTab.displayName = 'NewTab'; NewTab.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/NoColor.js b/src/components/Icon/Icons/components/NoColor.js index c0853ed42e..64b86268b3 100644 --- a/src/components/Icon/Icons/components/NoColor.js +++ b/src/components/Icon/Icons/components/NoColor.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const NoColor = ({size, ...props}) => ( - +const NoColor = React.forwardRef(({size, ...props}, ref) => ( + -); +)); NoColor.displayName = 'NoColor'; NoColor.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Note.js b/src/components/Icon/Icons/components/Note.js index 96b25c4212..ae12fbad75 100644 --- a/src/components/Icon/Icons/components/Note.js +++ b/src/components/Icon/Icons/components/Note.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Note = ({size, ...props}) => ( - +const Note = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Note.displayName = 'Note'; Note.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Notifications.js b/src/components/Icon/Icons/components/Notifications.js index fe993f143d..bce849b820 100644 --- a/src/components/Icon/Icons/components/Notifications.js +++ b/src/components/Icon/Icons/components/Notifications.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Notifications = ({size, ...props}) => ( - +const Notifications = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Notifications.displayName = 'Notifications'; Notifications.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Numbers.js b/src/components/Icon/Icons/components/Numbers.js index 9cd90838d5..83812761b5 100644 --- a/src/components/Icon/Icons/components/Numbers.js +++ b/src/components/Icon/Icons/components/Numbers.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Numbers = ({size, ...props}) => ( - +const Numbers = React.forwardRef(({size, ...props}, ref) => ( + ( -); +)); Numbers.displayName = 'Numbers'; Numbers.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Page.js b/src/components/Icon/Icons/components/Page.js index 6d8360eaed..1076ffc713 100644 --- a/src/components/Icon/Icons/components/Page.js +++ b/src/components/Icon/Icons/components/Page.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Page = ({size, ...props}) => ( - +const Page = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Page.displayName = 'Page'; Page.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Paste.js b/src/components/Icon/Icons/components/Paste.js index 787c775668..73fb9f5fd6 100644 --- a/src/components/Icon/Icons/components/Paste.js +++ b/src/components/Icon/Icons/components/Paste.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Paste = ({size, ...props}) => ( - +const Paste = React.forwardRef(({size, ...props}, ref) => ( + ( -); +)); Paste.displayName = 'Paste'; Paste.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Person.js b/src/components/Icon/Icons/components/Person.js index f17177229c..7c0df72725 100644 --- a/src/components/Icon/Icons/components/Person.js +++ b/src/components/Icon/Icons/components/Person.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Person = ({size, ...props}) => ( - +const Person = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Person.displayName = 'Person'; Person.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Pin.js b/src/components/Icon/Icons/components/Pin.js index 88e68f4da5..916783ad47 100644 --- a/src/components/Icon/Icons/components/Pin.js +++ b/src/components/Icon/Icons/components/Pin.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Pin = ({size, ...props}) => ( - +const Pin = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Pin.displayName = 'Pin'; Pin.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Print.js b/src/components/Icon/Icons/components/Print.js index c42873cfb9..21ced5f36f 100644 --- a/src/components/Icon/Icons/components/Print.js +++ b/src/components/Icon/Icons/components/Print.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Print = ({size, ...props}) => ( - +const Print = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Print.displayName = 'Print'; Print.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/PushNotification.js b/src/components/Icon/Icons/components/PushNotification.js index 873287ea69..de46f83455 100644 --- a/src/components/Icon/Icons/components/PushNotification.js +++ b/src/components/Icon/Icons/components/PushNotification.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const PushNotification = ({size, ...props}) => ( - +const PushNotification = React.forwardRef(({size, ...props}, ref) => ( + -); +)); PushNotification.displayName = 'PushNotification'; PushNotification.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Quote.js b/src/components/Icon/Icons/components/Quote.js index 236b19eeb5..f7095bfb32 100644 --- a/src/components/Icon/Icons/components/Quote.js +++ b/src/components/Icon/Icons/components/Quote.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Quote = ({size, ...props}) => ( - +const Quote = React.forwardRef(({size, ...props}, ref) => ( + ( -); +)); Quote.displayName = 'Quote'; Quote.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Redo.js b/src/components/Icon/Icons/components/Redo.js index 23f6202def..ed6b3c76d8 100644 --- a/src/components/Icon/Icons/components/Redo.js +++ b/src/components/Icon/Icons/components/Redo.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Redo = ({size, ...props}) => ( - +const Redo = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Redo.displayName = 'Redo'; Redo.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Remove.js b/src/components/Icon/Icons/components/Remove.js index 54a82a9169..1fa261214a 100644 --- a/src/components/Icon/Icons/components/Remove.js +++ b/src/components/Icon/Icons/components/Remove.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Remove = ({size, ...props}) => ( - +const Remove = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Remove.displayName = 'Remove'; Remove.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Replay.js b/src/components/Icon/Icons/components/Replay.js index 8399d7c9f5..ccb040e873 100644 --- a/src/components/Icon/Icons/components/Replay.js +++ b/src/components/Icon/Icons/components/Replay.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Replay = ({size, ...props}) => ( - +const Replay = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Replay.displayName = 'Replay'; Replay.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Retry.js b/src/components/Icon/Icons/components/Retry.js index b71eea90b0..40998c88be 100644 --- a/src/components/Icon/Icons/components/Retry.js +++ b/src/components/Icon/Icons/components/Retry.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Retry = ({size, ...props}) => ( - +const Retry = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Retry.displayName = 'Retry'; Retry.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Robot.js b/src/components/Icon/Icons/components/Robot.js index b6c227158c..7744b33812 100644 --- a/src/components/Icon/Icons/components/Robot.js +++ b/src/components/Icon/Icons/components/Robot.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Robot = ({size, ...props}) => ( - +const Robot = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Robot.displayName = 'Robot'; Robot.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Search.js b/src/components/Icon/Icons/components/Search.js index fa4f743982..e9bd0e54d9 100644 --- a/src/components/Icon/Icons/components/Search.js +++ b/src/components/Icon/Icons/components/Search.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Search = ({size, ...props}) => ( - +const Search = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Search.displayName = 'Search'; Search.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Security.js b/src/components/Icon/Icons/components/Security.js index 940ce12b38..7441d50979 100644 --- a/src/components/Icon/Icons/components/Security.js +++ b/src/components/Icon/Icons/components/Security.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Security = ({size, ...props}) => ( - +const Security = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Security.displayName = 'Security'; Security.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Send.js b/src/components/Icon/Icons/components/Send.js index d0baedf077..84076296b3 100644 --- a/src/components/Icon/Icons/components/Send.js +++ b/src/components/Icon/Icons/components/Send.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Send = ({size, ...props}) => ( - +const Send = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Send.displayName = 'Send'; Send.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Settings.js b/src/components/Icon/Icons/components/Settings.js index 5936ef5916..aa408720f9 100644 --- a/src/components/Icon/Icons/components/Settings.js +++ b/src/components/Icon/Icons/components/Settings.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Settings = ({size, ...props}) => ( - +const Settings = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Settings.displayName = 'Settings'; Settings.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/SettingsKnobs.js b/src/components/Icon/Icons/components/SettingsKnobs.js index 77d88d5e6a..641251794b 100644 --- a/src/components/Icon/Icons/components/SettingsKnobs.js +++ b/src/components/Icon/Icons/components/SettingsKnobs.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const SettingsKnobs = ({size, ...props}) => ( - +const SettingsKnobs = React.forwardRef(({size, ...props}, ref) => ( + -); +)); SettingsKnobs.displayName = 'SettingsKnobs'; SettingsKnobs.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Share.js b/src/components/Icon/Icons/components/Share.js index d2336b48cb..5bc7277b86 100644 --- a/src/components/Icon/Icons/components/Share.js +++ b/src/components/Icon/Icons/components/Share.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Share = ({size, ...props}) => ( - +const Share = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Share.displayName = 'Share'; Share.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Show.js b/src/components/Icon/Icons/components/Show.js index b88e2cf36d..4c8aeb257d 100644 --- a/src/components/Icon/Icons/components/Show.js +++ b/src/components/Icon/Icons/components/Show.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Show = ({size, ...props}) => ( - +const Show = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Show.displayName = 'Show'; Show.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Shredder.js b/src/components/Icon/Icons/components/Shredder.js index 6eccd6992c..cf7d4ea82e 100644 --- a/src/components/Icon/Icons/components/Shredder.js +++ b/src/components/Icon/Icons/components/Shredder.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Shredder = ({size, ...props}) => ( - +const Shredder = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Shredder.displayName = 'Shredder'; Shredder.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Sort.js b/src/components/Icon/Icons/components/Sort.js index fea5a2877b..c5ac3959d9 100644 --- a/src/components/Icon/Icons/components/Sort.js +++ b/src/components/Icon/Icons/components/Sort.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Sort = ({size, ...props}) => ( - +const Sort = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Sort.displayName = 'Sort'; Sort.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/StrikethroughS.js b/src/components/Icon/Icons/components/StrikethroughS.js index 8828bdad1a..2fb0b873e9 100644 --- a/src/components/Icon/Icons/components/StrikethroughS.js +++ b/src/components/Icon/Icons/components/StrikethroughS.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const StrikethroughS = ({size, ...props}) => ( - +const StrikethroughS = React.forwardRef(({size, ...props}, ref) => ( + @@ -16,7 +16,7 @@ const StrikethroughS = ({size, ...props}) => ( -); +)); StrikethroughS.displayName = 'StrikethroughS'; StrikethroughS.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/StrikethroughT.js b/src/components/Icon/Icons/components/StrikethroughT.js index 33aa7703ca..a5b2fb9212 100644 --- a/src/components/Icon/Icons/components/StrikethroughT.js +++ b/src/components/Icon/Icons/components/StrikethroughT.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const StrikethroughT = ({size, ...props}) => ( - +const StrikethroughT = React.forwardRef(({size, ...props}, ref) => ( + @@ -11,7 +11,7 @@ const StrikethroughT = ({size, ...props}) => ( /> -); +)); StrikethroughT.displayName = 'StrikethroughT'; StrikethroughT.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Sun.js b/src/components/Icon/Icons/components/Sun.js index b3d1af3995..ba75bc8355 100644 --- a/src/components/Icon/Icons/components/Sun.js +++ b/src/components/Icon/Icons/components/Sun.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Sun = ({size, ...props}) => ( - +const Sun = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Sun.displayName = 'Sun'; Sun.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Switch.js b/src/components/Icon/Icons/components/Switch.js index 0b2e03b1a4..6ad7f1f9bb 100644 --- a/src/components/Icon/Icons/components/Switch.js +++ b/src/components/Icon/Icons/components/Switch.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Switch = ({size, ...props}) => ( - +const Switch = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Switch.displayName = 'Switch'; Switch.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Table.js b/src/components/Icon/Icons/components/Table.js index 9ebfc0ebdc..57c7162e63 100644 --- a/src/components/Icon/Icons/components/Table.js +++ b/src/components/Icon/Icons/components/Table.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Table = ({size, ...props}) => ( - +const Table = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Table.displayName = 'Table'; Table.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Team.js b/src/components/Icon/Icons/components/Team.js index 4fac0d3d58..0b3c1236e7 100644 --- a/src/components/Icon/Icons/components/Team.js +++ b/src/components/Icon/Icons/components/Team.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Team = ({size, ...props}) => ( - +const Team = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Team.displayName = 'Team'; Team.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Text.js b/src/components/Icon/Icons/components/Text.js index ecceea3f8a..3c75713858 100644 --- a/src/components/Icon/Icons/components/Text.js +++ b/src/components/Icon/Icons/components/Text.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Text = ({size, ...props}) => ( - +const Text = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Text.displayName = 'Text'; Text.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/TextBig.js b/src/components/Icon/Icons/components/TextBig.js index b3da376a18..d009c7e59c 100644 --- a/src/components/Icon/Icons/components/TextBig.js +++ b/src/components/Icon/Icons/components/TextBig.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const TextBig = ({size, ...props}) => ( - +const TextBig = React.forwardRef(({size, ...props}, ref) => ( + -); +)); TextBig.displayName = 'TextBig'; TextBig.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/TextHuge.js b/src/components/Icon/Icons/components/TextHuge.js index 5c46395333..c26c49625a 100644 --- a/src/components/Icon/Icons/components/TextHuge.js +++ b/src/components/Icon/Icons/components/TextHuge.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const TextHuge = ({size, ...props}) => ( - +const TextHuge = React.forwardRef(({size, ...props}, ref) => ( + -); +)); TextHuge.displayName = 'TextHuge'; TextHuge.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/TextSmall.js b/src/components/Icon/Icons/components/TextSmall.js index 980548f8f3..5a611d418d 100644 --- a/src/components/Icon/Icons/components/TextSmall.js +++ b/src/components/Icon/Icons/components/TextSmall.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const TextSmall = ({size, ...props}) => ( - +const TextSmall = React.forwardRef(({size, ...props}, ref) => ( + -); +)); TextSmall.displayName = 'TextSmall'; TextSmall.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Textcolor.js b/src/components/Icon/Icons/components/Textcolor.js index 9dece9280f..03faf9dd81 100644 --- a/src/components/Icon/Icons/components/Textcolor.js +++ b/src/components/Icon/Icons/components/Textcolor.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Textcolor = ({size, ...props}) => ( - +const Textcolor = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Textcolor.displayName = 'Textcolor'; Textcolor.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/ThumbsUp.js b/src/components/Icon/Icons/components/ThumbsUp.js index 5026bedc9d..e3adaa4f1d 100644 --- a/src/components/Icon/Icons/components/ThumbsUp.js +++ b/src/components/Icon/Icons/components/ThumbsUp.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const ThumbsUp = ({size, ...props}) => ( - +const ThumbsUp = React.forwardRef(({size, ...props}, ref) => ( + -); +)); ThumbsUp.displayName = 'ThumbsUp'; ThumbsUp.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Time.js b/src/components/Icon/Icons/components/Time.js index 5c6ca02430..2492380aea 100644 --- a/src/components/Icon/Icons/components/Time.js +++ b/src/components/Icon/Icons/components/Time.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Time = ({size, ...props}) => ( - +const Time = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Time.displayName = 'Time'; Time.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/TurnInto.js b/src/components/Icon/Icons/components/TurnInto.js index 1a391fcd38..e2174b5974 100644 --- a/src/components/Icon/Icons/components/TurnInto.js +++ b/src/components/Icon/Icons/components/TurnInto.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const TurnInto = ({size, ...props}) => ( - +const TurnInto = React.forwardRef(({size, ...props}, ref) => ( + -); +)); TurnInto.displayName = 'TurnInto'; TurnInto.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Underline.js b/src/components/Icon/Icons/components/Underline.js index 7a84836113..c9ce2cdc44 100644 --- a/src/components/Icon/Icons/components/Underline.js +++ b/src/components/Icon/Icons/components/Underline.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Underline = ({size, ...props}) => ( - +const Underline = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Underline.displayName = 'Underline'; Underline.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Undo.js b/src/components/Icon/Icons/components/Undo.js index 538d4b1054..55c052857e 100644 --- a/src/components/Icon/Icons/components/Undo.js +++ b/src/components/Icon/Icons/components/Undo.js @@ -2,14 +2,14 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Undo = ({size, ...props}) => ( - +const Undo = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Undo.displayName = 'Undo'; Undo.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Unlocked.js b/src/components/Icon/Icons/components/Unlocked.js index 1b4e23ea5a..293421a0f4 100644 --- a/src/components/Icon/Icons/components/Unlocked.js +++ b/src/components/Icon/Icons/components/Unlocked.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Unlocked = ({size, ...props}) => ( - +const Unlocked = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Unlocked.displayName = 'Unlocked'; Unlocked.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Update.js b/src/components/Icon/Icons/components/Update.js index c55c259b79..6c96f9ac9d 100644 --- a/src/components/Icon/Icons/components/Update.js +++ b/src/components/Icon/Icons/components/Update.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Update = ({size, ...props}) => ( - +const Update = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Update.displayName = 'Update'; Update.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Upgrade.js b/src/components/Icon/Icons/components/Upgrade.js index 4079fb6482..75b8c13fe8 100644 --- a/src/components/Icon/Icons/components/Upgrade.js +++ b/src/components/Icon/Icons/components/Upgrade.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Upgrade = ({size, ...props}) => ( - +const Upgrade = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Upgrade.displayName = 'Upgrade'; Upgrade.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Upload.js b/src/components/Icon/Icons/components/Upload.js index dbe82392a7..adea543a19 100644 --- a/src/components/Icon/Icons/components/Upload.js +++ b/src/components/Icon/Icons/components/Upload.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Upload = ({size, ...props}) => ( - +const Upload = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Upload.displayName = 'Upload'; Upload.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Versioning.js b/src/components/Icon/Icons/components/Versioning.js index bb5e340c89..f1ad53cfed 100644 --- a/src/components/Icon/Icons/components/Versioning.js +++ b/src/components/Icon/Icons/components/Versioning.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Versioning = ({size, ...props}) => ( - +const Versioning = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Versioning.displayName = 'Versioning'; Versioning.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Video.js b/src/components/Icon/Icons/components/Video.js index e9d8f12825..c9971de2ed 100644 --- a/src/components/Icon/Icons/components/Video.js +++ b/src/components/Icon/Icons/components/Video.js @@ -2,8 +2,8 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Video = ({size, ...props}) => ( - +const Video = React.forwardRef(({size, ...props}, ref) => ( + @@ -11,7 +11,7 @@ const Video = ({size, ...props}) => ( /> -); +)); Video.displayName = 'Video'; Video.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Wand.js b/src/components/Icon/Icons/components/Wand.js index f46caed8a2..6e7557a1ea 100644 --- a/src/components/Icon/Icons/components/Wand.js +++ b/src/components/Icon/Icons/components/Wand.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Wand = ({size, ...props}) => ( - +const Wand = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Wand.displayName = 'Wand'; Wand.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Work.js b/src/components/Icon/Icons/components/Work.js index 11406c38f0..4ff6b1c741 100644 --- a/src/components/Icon/Icons/components/Work.js +++ b/src/components/Icon/Icons/components/Work.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Work = ({size, ...props}) => ( - +const Work = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Work.displayName = 'Work'; Work.propTypes = { size: PropTypes.string diff --git a/src/components/Icon/Icons/components/Workspace.js b/src/components/Icon/Icons/components/Workspace.js index c5aaa13d74..8c10b624c2 100644 --- a/src/components/Icon/Icons/components/Workspace.js +++ b/src/components/Icon/Icons/components/Workspace.js @@ -2,12 +2,12 @@ /* tslint:disable */ import PropTypes from 'prop-types'; import React from 'react'; -const Workspace = ({size, ...props}) => ( - +const Workspace = React.forwardRef(({size, ...props}, ref) => ( + -); +)); Workspace.displayName = 'Workspace'; Workspace.propTypes = { size: PropTypes.string diff --git a/src/components/MenuButton/MenuButton.jsx b/src/components/MenuButton/MenuButton.jsx index 940172063e..24e98c5d16 100644 --- a/src/components/MenuButton/MenuButton.jsx +++ b/src/components/MenuButton/MenuButton.jsx @@ -46,7 +46,6 @@ const MenuButton = ({ const [isOpen, setIsOpen] = useState(open); // const onClick = useCallback( // event => { - // console.log("on click"); // if (disabled) { // return; // } @@ -63,7 +62,6 @@ const MenuButton = ({ const onMenuDidClose = useCallback( event => { - console.log("on menu did close"); if (event && event.key === "Escape") { setIsOpen(false); const button = buttonRef.current; @@ -77,7 +75,6 @@ const MenuButton = ({ const onDialogDidHide = useCallback( (event, hideEvent) => { - console.log("on dialog did hide"); setIsOpen(false); onMenuHide(); const button = buttonRef.current; @@ -91,7 +88,6 @@ const MenuButton = ({ ); const onDialogDidShow = useCallback(() => { - console.log("on dialog did show"); setIsOpen(true); onMenuShow(); }, [setIsOpen, onMenuShow]); diff --git a/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.jsx b/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.jsx index d085da7004..ba1146678a 100644 --- a/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.jsx +++ b/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.jsx @@ -38,7 +38,7 @@ const StepIndicator = ({ setStatusChangeAnimationState(false); }, [setStatusChangeAnimationState]); - const isStatusTransition = useCallback(() => prevStatusRef.current !== status, [prevStatusRef]); + const isStatusTransition = useCallback(() => prevStatusRef.current !== status, [prevStatusRef, status]); // Event listeners for removing animation. useEventListener({ @@ -52,7 +52,7 @@ const StepIndicator = ({ if (isStatusTransition()) { enableStatusChangeAnimation(); } - }, [status]); + }, [status, isStatusTransition, enableStatusChangeAnimation]); // Effect - updating previous status ref value (for animation) after component update. useEffect(() => { @@ -61,7 +61,7 @@ const StepIndicator = ({ const ariaLabel = useMemo(() => { return `Step ${stepNumber}: ${titleText} - ${subtitleText}, status: ${status}`; - }, [status]); + }, [status, titleText, stepNumber, subtitleText]); const baseClassNameWithType = `${baseClassName}--type-${type}`; const baseClassNameWithStatus = `${baseClassName}--status-${status}`; diff --git a/src/components/index.js b/src/components/index.js index 141f260aed..795f9f44e5 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -42,4 +42,4 @@ export { default as ResponsiveList } from "./ResponsiveList/ResponsiveList"; export { default as BreadcrumbsBar } from "./BreadcrumbsBar/BreadcrumbsBar"; export { default as BreadcrumbItem } from "./BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem"; -export { default as Chips } from "./Chips/Chips"; \ No newline at end of file +export { default as Chips } from "./Chips/Chips"; diff --git a/src/general-stories/colors/colors-helper.js b/src/general-stories/colors/colors-helper.js index ece05a57ee..1555637a09 100644 --- a/src/general-stories/colors/colors-helper.js +++ b/src/general-stories/colors/colors-helper.js @@ -40,7 +40,6 @@ const mainColors2 = { share: { value: "var(--shareable-color)", name: "Shareable", themeColor: "shareable-color" } }; - const greyColors = { mud_black: { value: Colors.mud_black, name: "Mud" }, wolf_gray: { value: Colors.wolf_gray, name: "Wolf" }, diff --git a/src/published-components.js b/src/published-components.js index 7d5401ab37..381ec1cd7b 100644 --- a/src/published-components.js +++ b/src/published-components.js @@ -4,7 +4,7 @@ const fs = require("fs"); const publishedComponents = { // Don't remove next line // plop_marker:published-components - Chips: "/src/components/Chips/Chips.jsx", + Chips: "/src/components/Chips/Chips.jsx", BreadcrumbItem: "/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.jsx", BreadcrumbsBar: "/src/components/BreadcrumbsBar/BreadcrumbsBar.jsx", ResponsiveList: "/src/components/ResponsiveList/ResponsiveList.jsx",