diff --git a/docs/migrating.storybook.mdx b/docs/migrating.storybook.mdx index ced28dba1..092cd5e17 100644 --- a/docs/migrating.storybook.mdx +++ b/docs/migrating.storybook.mdx @@ -18,7 +18,7 @@ allow jscodeshift to parse your typescript/jsx files. ## From v1 to v2 -Two codemods exist to upgrade your components for version 2. In order to apply the transformations in your project you simply need to run the +The following codemods exist to upgrade your components for version 2. In order to apply the transformations in your project you simply need to run the command for your desired codemod pointing to your project's source path. ### Button and TextButton block property @@ -41,3 +41,12 @@ npx jscodeshift -t node_modules/@freenow/wave/lib/cjs/codemods/colors-to-css-var Disclaimer: This codemod transforms usages of `Colors` to our bare colors CSS variables to ensure we don't introduce breaking changes, that being said, we recommend using semantic tokens instead as a best practice and offer a `getSemanticValue` API for just that. + +### Deprecated icons + +We had some deprecated icons that have been deleted in this major, in case you used any of them you need to use their valid (non-deprecated) counterpart from now on. +This won't change how your icons look in any way since we already exported the deprecated icons as wrappers of valid ones. + +```bash +npx jscodeshift -t node_modules/@freenow/wave/lib/cjs/codemods/deprecated-icons.js path/to/src +``` diff --git a/src/codemods/__testfixtures__/deprecated-icons/constant-usage.input.tsx b/src/codemods/__testfixtures__/deprecated-icons/constant-usage.input.tsx new file mode 100644 index 000000000..b67e82c1f --- /dev/null +++ b/src/codemods/__testfixtures__/deprecated-icons/constant-usage.input.tsx @@ -0,0 +1,11 @@ +import { IconProps, ForwardSmallIcon, SearchSmallIcon } from '@freenow/wave'; + +export enum CampaignType { + REGULAR = 'REGULAR', + AUTOMATION = 'AUTOMATION' +} + +export const CampaignTypeOptions: { icon: React.FC; type: CampaignType }[] = [ + { icon: ForwardSmallIcon, type: CampaignType.REGULAR }, + { icon: SearchSmallIcon, type: CampaignType.AUTOMATION } +]; diff --git a/src/codemods/__testfixtures__/deprecated-icons/constant-usage.output.tsx b/src/codemods/__testfixtures__/deprecated-icons/constant-usage.output.tsx new file mode 100644 index 000000000..14dd4500b --- /dev/null +++ b/src/codemods/__testfixtures__/deprecated-icons/constant-usage.output.tsx @@ -0,0 +1,11 @@ +import { IconProps, ForwardLastIcon, MagnifyingGlassIcon } from '@freenow/wave'; + +export enum CampaignType { + REGULAR = 'REGULAR', + AUTOMATION = 'AUTOMATION' +} + +export const CampaignTypeOptions: { icon: React.FC; type: CampaignType }[] = [ + { icon: ForwardLastIcon, type: CampaignType.REGULAR }, + { icon: MagnifyingGlassIcon, type: CampaignType.AUTOMATION } +]; diff --git a/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-multi-import.input.tsx b/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-multi-import.input.tsx new file mode 100644 index 000000000..a7954de8b --- /dev/null +++ b/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-multi-import.input.tsx @@ -0,0 +1,15 @@ +import { Box, BackwardSmallIcon, ChevronDownSmallIcon, Text } from '@freenow/wave'; + +interface Props { + name: string; +} + +const AutomationIcon = () => ; + +export const Automation = ({ name }: Props) => ( + + + + {name} + +); diff --git a/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-multi-import.output.tsx b/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-multi-import.output.tsx new file mode 100644 index 000000000..cbac79a62 --- /dev/null +++ b/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-multi-import.output.tsx @@ -0,0 +1,15 @@ +import { Box, BackwardLastIcon, ChevronDownIcon, Text } from '@freenow/wave'; + +interface Props { + name: string; +} + +const AutomationIcon = () => ; + +export const Automation = ({ name }: Props) => ( + + + + {name} + +); diff --git a/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-single-import.input.tsx b/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-single-import.input.tsx new file mode 100644 index 000000000..8cc80fe73 --- /dev/null +++ b/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-single-import.input.tsx @@ -0,0 +1,14 @@ +import { Box, BackwardSmallIcon, Text } from '@freenow/wave'; + +interface Props { + name: string; +} + +const AutomationIcon = () => ; + +export const Automation = ({ name }: Props) => ( + + + {name} + +); diff --git a/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-single-import.output.tsx b/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-single-import.output.tsx new file mode 100644 index 000000000..63a0c1413 --- /dev/null +++ b/src/codemods/__testfixtures__/deprecated-icons/jsx-usage-single-import.output.tsx @@ -0,0 +1,14 @@ +import { Box, BackwardLastIcon, Text } from '@freenow/wave'; + +interface Props { + name: string; +} + +const AutomationIcon = () => ; + +export const Automation = ({ name }: Props) => ( + + + {name} + +); diff --git a/src/codemods/__testfixtures__/deprecated-icons/styled-usage.input.tsx b/src/codemods/__testfixtures__/deprecated-icons/styled-usage.input.tsx new file mode 100644 index 000000000..5a7cf782e --- /dev/null +++ b/src/codemods/__testfixtures__/deprecated-icons/styled-usage.input.tsx @@ -0,0 +1,7 @@ +import { ChevronLeftSmallIcon, themeGet } from '@freenow/wave'; +import styled from 'styled-components'; + +export const StyledIcon = styled(ChevronLeftSmallIcon).attrs({ size: 16 })` + fill: ${themeGet('semanticColors.icon.tertiary')}; + margin-left: auto; +`; diff --git a/src/codemods/__testfixtures__/deprecated-icons/styled-usage.output.tsx b/src/codemods/__testfixtures__/deprecated-icons/styled-usage.output.tsx new file mode 100644 index 000000000..633d90302 --- /dev/null +++ b/src/codemods/__testfixtures__/deprecated-icons/styled-usage.output.tsx @@ -0,0 +1,7 @@ +import { ChevronLeftIcon, themeGet } from '@freenow/wave'; +import styled from 'styled-components'; + +export const StyledIcon = styled(ChevronLeftIcon).attrs({ size: 16 })` + fill: ${themeGet('semanticColors.icon.tertiary')}; + margin-left: auto; +`; diff --git a/src/codemods/__tests__/block-to-width-100-test.ts b/src/codemods/__tests__/block-to-width-100-test.ts index e4aefa652..340e6446b 100644 --- a/src/codemods/__tests__/block-to-width-100-test.ts +++ b/src/codemods/__tests__/block-to-width-100-test.ts @@ -1,5 +1,3 @@ -// import { defineTest } from 'jscodeshift/dist/testUtils' - jest.autoMockOff(); const { defineTest } = require('jscodeshift/dist/testUtils'); diff --git a/src/codemods/__tests__/deprecated-icons-test.ts b/src/codemods/__tests__/deprecated-icons-test.ts new file mode 100644 index 000000000..a3d2a4ae0 --- /dev/null +++ b/src/codemods/__tests__/deprecated-icons-test.ts @@ -0,0 +1,12 @@ +jest.autoMockOff(); +const { defineTest } = require('jscodeshift/dist/testUtils'); + +const tests = ['jsx-usage-single-import', 'jsx-usage-multi-import', 'styled-usage', 'constant-usage']; + +describe('deprecated-icons', () => { + tests.forEach(test => + defineTest(__dirname, 'deprecated-icons', { quote: 'single' }, `deprecated-icons/${test}`, { + parser: 'tsx' + }) + ); +}); diff --git a/src/codemods/deprecated-icons.ts b/src/codemods/deprecated-icons.ts new file mode 100644 index 000000000..d9d2af3d6 --- /dev/null +++ b/src/codemods/deprecated-icons.ts @@ -0,0 +1,66 @@ +import { API, FileInfo } from 'jscodeshift'; +import { Options } from 'recast'; + +const DeprecatedToValidIconsMap = { + BackwardSmallIcon: 'BackwardLastIcon', + ChevronDownSmallIcon: 'ChevronDownIcon', + ChevronLeftSmallIcon: 'ChevronLeftIcon', + ChevronRightSmallIcon: 'ChevronRightIcon', + ChevronUpSmallIcon: 'ChevronUpIcon', + DownloadSmallIcon: 'DownloadIcon', + ForwardSmallIcon: 'ForwardLastIcon', + SearchSmallIcon: 'MagnifyingGlassIcon', + XSmallIcon: 'CloseIcon', + AirportIcon: 'PlaneIcon', + EcoIcon: 'LeafSolidIcon', + GearIcon: 'CogIcon', + HeartIcon: 'HeartSolidIcon', + HomeIcon: 'HouseIcon', + InfoCircleIcon: 'InfoCircleOutlineIcon', + ListUnorderedIcon: 'ListIcon', + PrebookingIcon: 'CalendarCheckedIcon', + SearchIcon: 'MagnifyingGlassIcon', + XIcon: 'CloseIcon' +}; + +const DeprecatedIconsNames = Array.from(Object.keys(DeprecatedToValidIconsMap)); + +export default (file: FileInfo, api: API, options: Options) => { + const j = api.jscodeshift; + const ast = j(file.source); + const printOptions = options ?? { quote: 'single' }; + + const localIconsNames: string[] = []; + + // Find @freenow/wave imports + const waveImports = ast.find(j.ImportDeclaration, { + source: { + value: '@freenow/wave' + } + }); + + // Find deprecated icons named imports in @freenow/wave imports + const deprecatedIconsImports = waveImports + .find(j.ImportSpecifier) + .filter(path => DeprecatedIconsNames.includes(path.node.imported.name)); + + // Get the local icons import names + deprecatedIconsImports.forEach(spec => { + if (spec.node.local?.name) localIconsNames.push(spec.node.local.name); + }); + + // Find usages of the deprecated icons + const iconsIdentifiers = ast.find(j.Identifier, { + name: (name: string) => localIconsNames.includes(name) + }); + + // Iterate over deprecated usages and replace for valid ones, this includes imports + iconsIdentifiers.forEach(id => { + const validIconName: string = DeprecatedToValidIconsMap[id.node.name]; + if (!validIconName) return; + + id.node.name = validIconName; + }); + + return ast.toSource(printOptions); +}; diff --git a/src/icons/deprecated/AirportIcon.tsx b/src/icons/deprecated/AirportIcon.tsx deleted file mode 100644 index c686d53d4..000000000 --- a/src/icons/deprecated/AirportIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import PlaneIcon from '../navigation/PlaneIcon'; -type Props = IconProps; - -const AirportIcon: React.FC = withDeprecatedMessage('AirportIcon', PlaneIcon); - -export default AirportIcon; diff --git a/src/icons/deprecated/BackwardSmallIcon.tsx b/src/icons/deprecated/BackwardSmallIcon.tsx deleted file mode 100644 index b3d2a530a..000000000 --- a/src/icons/deprecated/BackwardSmallIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import BackwardLastIcon from '../arrows/BackwardLastIcon'; -type Props = IconProps; - -const BackwardSmallIcon: React.FC = withDeprecatedMessage('BackwardSmallIcon', BackwardLastIcon, { size: 20 }); - -export default BackwardSmallIcon; diff --git a/src/icons/deprecated/ChevronDownSmallIcon.tsx b/src/icons/deprecated/ChevronDownSmallIcon.tsx deleted file mode 100644 index 554796877..000000000 --- a/src/icons/deprecated/ChevronDownSmallIcon.tsx +++ /dev/null @@ -1,13 +0,0 @@ -// @deprecated -import React from 'react'; -import { IconProps } from '../IconProps'; -import ChevronDownIcon from '../arrows/ChevronDownIcon'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; - -type Props = IconProps; - -const ChevronDownSmallIcon: React.FC = withDeprecatedMessage('ChevronDownSmallIcon', ChevronDownIcon, { - size: 20 -}); - -export default ChevronDownSmallIcon; diff --git a/src/icons/deprecated/ChevronLeftSmallIcon.tsx b/src/icons/deprecated/ChevronLeftSmallIcon.tsx deleted file mode 100644 index ea4155158..000000000 --- a/src/icons/deprecated/ChevronLeftSmallIcon.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import ChevronLeftIcon from '../arrows/ChevronLeftIcon'; -type Props = IconProps; - -const ChevronLeftSmallIcon: React.FC = withDeprecatedMessage('ChevronLeftSmallIcon', ChevronLeftIcon, { - size: 20 -}); - -export default ChevronLeftSmallIcon; diff --git a/src/icons/deprecated/ChevronRightSmallIcon.tsx b/src/icons/deprecated/ChevronRightSmallIcon.tsx deleted file mode 100644 index f54a524b8..000000000 --- a/src/icons/deprecated/ChevronRightSmallIcon.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import ChevronRightIcon from '../arrows/ChevronRightIcon'; -type Props = IconProps; - -const ChevronRightSmallIcon: React.FC = withDeprecatedMessage('ChevronRightSmallIcon', ChevronRightIcon, { - size: 20 -}); - -export default ChevronRightSmallIcon; diff --git a/src/icons/deprecated/ChevronUpSmallIcon.tsx b/src/icons/deprecated/ChevronUpSmallIcon.tsx deleted file mode 100644 index d3af0fb6a..000000000 --- a/src/icons/deprecated/ChevronUpSmallIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import ChevronUpIcon from '../arrows/ChevronUpIcon'; -type Props = IconProps; - -const ChevronUpSmallIcon: React.FC = withDeprecatedMessage('ChevronUpSmallIcon', ChevronUpIcon, { size: 20 }); - -export default ChevronUpSmallIcon; diff --git a/src/icons/deprecated/DownloadSmallIcon.tsx b/src/icons/deprecated/DownloadSmallIcon.tsx deleted file mode 100644 index 468ad619c..000000000 --- a/src/icons/deprecated/DownloadSmallIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import DownloadIcon from '../actions/DownloadIcon'; -type Props = IconProps; - -const DownloadSmallIcon: React.FC = withDeprecatedMessage('DownloadSmallIcon', DownloadIcon, { size: 20 }); - -export default DownloadSmallIcon; diff --git a/src/icons/deprecated/EcoIcon.tsx b/src/icons/deprecated/EcoIcon.tsx deleted file mode 100644 index ee164a367..000000000 --- a/src/icons/deprecated/EcoIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import LeafSolidIcon from '../service-type/LeafSolidIcon'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -type Props = IconProps; - -const EcoIcon: React.FC = withDeprecatedMessage('EcoIcon', LeafSolidIcon); - -export default EcoIcon; diff --git a/src/icons/deprecated/ForwardSmallIcon.tsx b/src/icons/deprecated/ForwardSmallIcon.tsx deleted file mode 100644 index e3d9b9651..000000000 --- a/src/icons/deprecated/ForwardSmallIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import ForwardLastIcon from '../arrows/ForwardLastIcon'; -type Props = IconProps; - -const ForwardSmallIcon: React.FC = withDeprecatedMessage('ForwardSmallIcon', ForwardLastIcon, { size: 20 }); - -export default ForwardSmallIcon; diff --git a/src/icons/deprecated/GearIcon.tsx b/src/icons/deprecated/GearIcon.tsx deleted file mode 100644 index 8801a68d2..000000000 --- a/src/icons/deprecated/GearIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import CogIcon from '../options/CogIcon'; -type Props = IconProps; - -const GearIcon: React.FC = withDeprecatedMessage('GearIcon', CogIcon); - -export default GearIcon; diff --git a/src/icons/deprecated/HeartIcon.tsx b/src/icons/deprecated/HeartIcon.tsx deleted file mode 100644 index 642fe194a..000000000 --- a/src/icons/deprecated/HeartIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import HeartSolidIcon from '../options/HeartSolidIcon'; -type Props = IconProps; - -const HeartIcon: React.FC = withDeprecatedMessage('HeartIcon', HeartSolidIcon); - -export default HeartIcon; diff --git a/src/icons/deprecated/HomeIcon.tsx b/src/icons/deprecated/HomeIcon.tsx deleted file mode 100644 index 9846af9bd..000000000 --- a/src/icons/deprecated/HomeIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import HouseIcon from '../navigation/HouseIcon'; -type Props = IconProps; - -const HomeIcon: React.FC = withDeprecatedMessage('HomeIcon', HouseIcon); - -export default HomeIcon; diff --git a/src/icons/deprecated/InfoCircleIcon.tsx b/src/icons/deprecated/InfoCircleIcon.tsx deleted file mode 100644 index 990526f4f..000000000 --- a/src/icons/deprecated/InfoCircleIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import InfoCircleOutlineIcon from '../options/InfoCircleOutlineIcon'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -type Props = IconProps; - -const InfoCircleIcon: React.FC = withDeprecatedMessage('InfoCircleIcon', InfoCircleOutlineIcon); - -export default InfoCircleIcon; diff --git a/src/icons/deprecated/ListUnorderedIcon.tsx b/src/icons/deprecated/ListUnorderedIcon.tsx deleted file mode 100644 index c6a2b6ace..000000000 --- a/src/icons/deprecated/ListUnorderedIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import ListIcon from '../options/ListIcon'; -type Props = IconProps; - -const ListUnorderedIcon: React.FC = withDeprecatedMessage('ListUnorderedIcon', ListIcon); - -export default ListUnorderedIcon; diff --git a/src/icons/deprecated/PrebookingIcon.tsx b/src/icons/deprecated/PrebookingIcon.tsx deleted file mode 100644 index 623923e87..000000000 --- a/src/icons/deprecated/PrebookingIcon.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import CalendarCheckedIcon from '../options/CalendarCheckedIcon'; - -type Props = IconProps; - -const PrebookingIcon: React.FC = withDeprecatedMessage('PrebookingIcon', CalendarCheckedIcon); - -export default PrebookingIcon; diff --git a/src/icons/deprecated/SearchIcon.tsx b/src/icons/deprecated/SearchIcon.tsx deleted file mode 100644 index 6fdec4572..000000000 --- a/src/icons/deprecated/SearchIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import MagnifyingGlassIcon from '../actions/MagnifyingGlassIcon'; -type Props = IconProps; - -const SearchIcon: React.FC = withDeprecatedMessage('SearchIcon', MagnifyingGlassIcon); - -export default SearchIcon; diff --git a/src/icons/deprecated/SearchSmallIcon.tsx b/src/icons/deprecated/SearchSmallIcon.tsx deleted file mode 100644 index 1e9102b6a..000000000 --- a/src/icons/deprecated/SearchSmallIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import MagnifyingGlassIcon from '../actions/MagnifyingGlassIcon'; -type Props = IconProps; - -const SearchSmallIcon: React.FC = withDeprecatedMessage('SearchSmallIcon', MagnifyingGlassIcon, { size: 20 }); - -export default SearchSmallIcon; diff --git a/src/icons/deprecated/XIcon.tsx b/src/icons/deprecated/XIcon.tsx deleted file mode 100644 index df369b65d..000000000 --- a/src/icons/deprecated/XIcon.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; -import CloseIcon from '../actions/CloseIcon'; -type Props = IconProps; - -const XIcon: React.FC = withDeprecatedMessage('XIcon', CloseIcon); - -export default XIcon; diff --git a/src/icons/deprecated/XSmallIcon.tsx b/src/icons/deprecated/XSmallIcon.tsx deleted file mode 100644 index 5a0e3c87a..000000000 --- a/src/icons/deprecated/XSmallIcon.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import CloseIcon from '../actions/CloseIcon'; -import { IconProps } from '../IconProps'; -import { withDeprecatedMessage } from '../../utils/withDeprecatedMessage'; - -type Props = IconProps; - -const XSmallIcon: React.FC = withDeprecatedMessage('XSmallIcon', CloseIcon, { size: 20 }); - -export default XSmallIcon; diff --git a/src/icons/deprecated/index.ts b/src/icons/deprecated/index.ts deleted file mode 100644 index d6934d26d..000000000 --- a/src/icons/deprecated/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -export { default as BackwardSmallIcon } from './BackwardSmallIcon'; -export { default as ChevronDownSmallIcon } from './ChevronDownSmallIcon'; -export { default as ChevronLeftSmallIcon } from './ChevronLeftSmallIcon'; -export { default as ChevronRightSmallIcon } from './ChevronRightSmallIcon'; -export { default as ChevronUpSmallIcon } from './ChevronUpSmallIcon'; -export { default as DownloadSmallIcon } from './DownloadSmallIcon'; -export { default as ForwardSmallIcon } from './ForwardSmallIcon'; -export { default as SearchSmallIcon } from './SearchSmallIcon'; -export { default as XSmallIcon } from './XSmallIcon'; -export { default as AirportIcon } from './AirportIcon'; -export { default as EcoIcon } from './EcoIcon'; -export { default as GearIcon } from './GearIcon'; -export { default as HeartIcon } from './HeartIcon'; -export { default as HomeIcon } from './HomeIcon'; -export { default as InfoCircleIcon } from './InfoCircleIcon'; -export { default as ListUnorderedIcon } from './ListUnorderedIcon'; -export { default as PrebookingIcon } from './PrebookingIcon'; -export { default as SearchIcon } from './SearchIcon'; -export { default as XIcon } from './XIcon'; diff --git a/src/icons/index.ts b/src/icons/index.ts index 2995b02ac..552b5ffc9 100644 --- a/src/icons/index.ts +++ b/src/icons/index.ts @@ -4,7 +4,6 @@ export * from './basic'; export * from './battery'; export * from './brands'; export * from './cities'; -export * from './deprecated'; export * from './mobility'; export * from './navigation'; export * from './options';