diff --git a/libraries/core-react/package.json b/libraries/core-react/package.json index 4b7da95833..031418102f 100644 --- a/libraries/core-react/package.json +++ b/libraries/core-react/package.json @@ -48,6 +48,8 @@ "@testing-library/jest-dom": "^5.9.0", "@testing-library/react": "^10.2.1", "@testing-library/user-event": "^10.3.2", + "@types/react": "^16.9.47", + "@types/react-dom": "^16.9.8", "babel-plugin-react-docgen": "^4.1.0", "babel-plugin-styled-components": "^1.10.7", "jest": "^26.0.1", @@ -58,7 +60,10 @@ "react-dom": "^16.13.1", "rollup": "^2.15.0", "rollup-plugin-polyfill": "^3.0.0", - "styled-components": "4.4.1" + "rollup-plugin-typescript2": "^0.27.2", + "styled-components": "4.4.1", + "tslib": "^2.0.1", + "typescript": "^4.0.2" }, "peerDependencies": { "prop-types": "^15.7.2", diff --git a/libraries/core-react/pnpm-lock.yaml b/libraries/core-react/pnpm-lock.yaml index 27090c31c2..a500ceb7bb 100644 --- a/libraries/core-react/pnpm-lock.yaml +++ b/libraries/core-react/pnpm-lock.yaml @@ -16,6 +16,8 @@ devDependencies: '@testing-library/jest-dom': 5.9.0 '@testing-library/react': 10.2.1_react-dom@16.13.1+react@16.13.1 '@testing-library/user-event': 10.4.1 + '@types/react': 16.9.47 + '@types/react-dom': 16.9.8 babel-plugin-react-docgen: 4.1.0 babel-plugin-styled-components: 1.10.7_styled-components@4.4.1 jest: 26.0.1 @@ -26,7 +28,10 @@ devDependencies: react-dom: 16.13.1_react@16.13.1 rollup: 2.15.0 rollup-plugin-polyfill: 3.0.0 + rollup-plugin-typescript2: 0.27.2_rollup@2.15.0+typescript@4.0.2 styled-components: 4.4.1_4f54128445bc6f13bd713dcb3d91e98e + tslib: 2.0.1 + typescript: 4.0.2 lockfileVersion: 5.1 packages: /@babel/cli/7.10.1_@babel+core@7.10.2: @@ -1518,9 +1523,14 @@ packages: resolution: integrity: sha512-boy4xPNEtiw6N3abRhBi/e7hNvy3Tt8E9ZRAQrwAGzoCGZS/1wjo9KY7JHhnfnEsG5wSjDbymCozUM9a3ea7OQ== /@types/prop-types/15.7.3: - dev: false resolution: integrity: sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw== + /@types/react-dom/16.9.8: + dependencies: + '@types/react': 16.9.47 + dev: true + resolution: + integrity: sha512-ykkPQ+5nFknnlU6lDd947WbQ6TE3NNzbQAkInC2EKY1qeYdTKp7onFusmYZb+ityzx2YviqT6BXSu+LyWWJwcA== /@types/react-test-renderer/16.9.2: dependencies: '@types/react': 16.9.35 @@ -1534,6 +1544,13 @@ packages: dev: false resolution: integrity: sha512-q0n0SsWcGc8nDqH2GJfWQWUOmZSJhXV64CjVN5SvcNti3TdEaA3AH0D8DwNmMdzjMAC/78tB8nAZIlV8yTz+zQ== + /@types/react/16.9.47: + dependencies: + '@types/prop-types': 15.7.3 + csstype: 3.0.3 + dev: true + resolution: + integrity: sha512-dAJO4VbrjYqTUwFiQqAKjLyHHl4RSTNnRyPdX3p16MPbDKvow51wxATUPxoe2QsiXNMEYrOjc2S6s92VjG+1VQ== /@types/resolve/0.0.8: dependencies: '@types/node': 14.0.11 @@ -2240,6 +2257,10 @@ packages: dev: false resolution: integrity: sha512-D34BqZU4cIlMCY93rZHbrq9pjTAQJ3U8S8rfBqjwHxkGPThWFjzZDQpgMJY0QViLxth6ZKYiwFBo14RdN44U/w== + /csstype/3.0.3: + dev: true + resolution: + integrity: sha512-jPl+wbWPOWJ7SXsWyqGRk3lGecbar0Cb0OvZF/r/ZU011R4YqiRehgkQ9p4eQfo9DSDLqLL3wHwfxeJiuIsNag== /dashdash/1.14.1: dependencies: assert-plus: 1.0.0 @@ -2604,6 +2625,16 @@ packages: node: '>=8' resolution: integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + /find-cache-dir/3.3.1: + dependencies: + commondir: 1.0.1 + make-dir: 3.1.0 + pkg-dir: 4.2.0 + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ== /find-up/2.1.0: dependencies: locate-path: 2.0.0 @@ -2653,6 +2684,16 @@ packages: node: '>=0.10.0' resolution: integrity: sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= + /fs-extra/8.1.0: + dependencies: + graceful-fs: 4.2.4 + jsonfile: 4.0.0 + universalify: 0.1.2 + dev: true + engines: + node: '>=6 <7 || >=8' + resolution: + integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== /fs-readdir-recursive/1.1.0: dev: true resolution: @@ -3637,6 +3678,7 @@ packages: resolution: integrity: sha512-29Q54kn5Bm7ZGKIuH2JRmnKl85YRigp0o0asTc6Sb6l2ch1DCXIeZTLLFy9ultJvhkTqbswF5DEx4+RlkmCxWg== /js-tokens/4.0.0: + dev: true resolution: integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== /js-yaml/3.14.0: @@ -3726,6 +3768,12 @@ packages: hasBin: true resolution: integrity: sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA== + /jsonfile/4.0.0: + dev: true + optionalDependencies: + graceful-fs: 4.2.4 + resolution: + integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss= /jsprim/1.4.1: dependencies: assert-plus: 1.0.0 @@ -3830,6 +3878,7 @@ packages: /loose-envify/1.4.0: dependencies: js-tokens: 4.0.0 + dev: true hasBin: true resolution: integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== @@ -4089,6 +4138,7 @@ packages: resolution: integrity: sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== /object-assign/4.1.1: + dev: true engines: node: '>=0.10.0' resolution: @@ -4389,6 +4439,7 @@ packages: loose-envify: 1.4.0 object-assign: 4.1.1 react-is: 16.13.1 + dev: true resolution: integrity: sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== /psl/1.8.0: @@ -4443,6 +4494,7 @@ packages: resolution: integrity: sha512-81PIMmVLnCNLO/fFOQxdQkvEq/+Hfpv24XNJfpyZhTRfO0QcmQIF/PgCa1zCOj2w1hrn12MFLyaJ/G0+Mxtfag== /react-is/16.13.1: + dev: true resolution: integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== /react/16.13.1: @@ -4450,6 +4502,7 @@ packages: loose-envify: 1.4.0 object-assign: 4.1.1 prop-types: 15.7.2 + dev: true engines: node: '>=0.10.0' resolution: @@ -4696,6 +4749,21 @@ packages: dev: true resolution: integrity: sha512-LfJ1OR/wJrJdNDVNrdhVm7CgENfaNoQlFYMaQ0vlQH3zO+BMVrBMWDX9k6HVcr9gHsKbthrkiBzWRfFU9fr0hQ== + /rollup-plugin-typescript2/0.27.2_rollup@2.15.0+typescript@4.0.2: + dependencies: + '@rollup/pluginutils': 3.1.0_rollup@2.15.0 + find-cache-dir: 3.3.1 + fs-extra: 8.1.0 + resolve: 1.17.0 + rollup: 2.15.0 + tslib: 2.0.1 + typescript: 4.0.2 + dev: true + peerDependencies: + rollup: '>=1.26.3' + typescript: '>=2.4.0' + resolution: + integrity: sha512-zarMH2F8oT/NO6p20gl/jkts+WxyzOlhOIUwUU/EDx5e6ewdDPS/flwLj5XFuijUCr64bZwqKuRVwCPdXXYefQ== /rollup/2.15.0: dev: true engines: @@ -5223,6 +5291,10 @@ packages: node: '>=8' resolution: integrity: sha512-3n1qG+/5kg+jrbTzwAykB5yRYtQCTqOGKq5U5PE3b0a1/mzo6snDhjGS0zJVJunO0NrT3Dg1MLy5TjWP/UJppg== + /tslib/2.0.1: + dev: true + resolution: + integrity: sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ== /tunnel-agent/0.6.0: dependencies: safe-buffer: 5.2.1 @@ -5271,6 +5343,13 @@ packages: dev: true resolution: integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== + /typescript/4.0.2: + dev: true + engines: + node: '>=4.2.0' + hasBin: true + resolution: + integrity: sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ== /unicode-canonical-property-names-ecmascript/1.0.4: dev: true engines: @@ -5309,6 +5388,12 @@ packages: node: '>=0.10.0' resolution: integrity: sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== + /universalify/0.1.2: + dev: true + engines: + node: '>= 4.0.0' + resolution: + integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== /unset-value/1.0.0: dependencies: has-value: 0.3.1 @@ -5554,6 +5639,8 @@ specifiers: '@testing-library/react': ^10.2.1 '@testing-library/react-hooks': ^3.3.0 '@testing-library/user-event': ^10.3.2 + '@types/react': ^16.9.47 + '@types/react-dom': ^16.9.8 babel-plugin-react-docgen: ^4.1.0 babel-plugin-styled-components: ^1.10.7 focus-visible: ^5.1.0 @@ -5566,4 +5653,7 @@ specifiers: react-dom: ^16.13.1 rollup: ^2.15.0 rollup-plugin-polyfill: ^3.0.0 + rollup-plugin-typescript2: ^0.27.2 styled-components: 4.4.1 + tslib: ^2.0.1 + typescript: ^4.0.2 diff --git a/libraries/core-react/rollup.config.js b/libraries/core-react/rollup.config.js index 50ba27da18..97aa80e3b2 100644 --- a/libraries/core-react/rollup.config.js +++ b/libraries/core-react/rollup.config.js @@ -4,6 +4,7 @@ import commonjs from '@rollup/plugin-commonjs' import json from '@rollup/plugin-json' import babel from '@rollup/plugin-babel' import polyfill from 'rollup-plugin-polyfill' +import typescript from 'rollup-plugin-typescript2' import pkg from './package.json' const peerDeps = Object.keys(pkg.peerDependencies || {}) @@ -28,6 +29,12 @@ export default [ plugins: [ json(), resolve({ extensions: ['.jsx', '.js'] }), + typescript({ + tsconfig: 'tsconfig.json', + typescript: require('typescript'), + include: ['*.ts+(|x)', '**/*.ts+(|x)', '*.js+(|x)', '**/*.js+(|x)'], + exclude: ['node_modules/**'], + }), babel({ exclude: 'node_modules/**', presets: ['@babel/env', '@babel/preset-react'], diff --git a/libraries/core-react/src/Accordion/Accordion.jsx b/libraries/core-react/src/Accordion/Accordion.jsx index 54298d6db5..6bd0d82844 100644 --- a/libraries/core-react/src/Accordion/Accordion.jsx +++ b/libraries/core-react/src/Accordion/Accordion.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, useMemo } from 'react' import createId from 'lodash/uniqueId' import PropTypes from 'prop-types' diff --git a/libraries/core-react/src/Accordion/Accordion.test.jsx b/libraries/core-react/src/Accordion/Accordion.test.jsx index c2ce284c3f..77cdb1290b 100644 --- a/libraries/core-react/src/Accordion/Accordion.test.jsx +++ b/libraries/core-react/src/Accordion/Accordion.test.jsx @@ -1,4 +1,5 @@ /* eslint-disable no-undef */ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import { render, cleanup, screen, fireEvent } from '@testing-library/react' diff --git a/libraries/core-react/src/Accordion/Accordion.tokens.js b/libraries/core-react/src/Accordion/Accordion.tokens.js index f59a16ffb4..4cbe4aa2ad 100644 --- a/libraries/core-react/src/Accordion/Accordion.tokens.js +++ b/libraries/core-react/src/Accordion/Accordion.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Accordion/AccordionHeader.jsx b/libraries/core-react/src/Accordion/AccordionHeader.jsx index b90b80c905..20050b4fc9 100644 --- a/libraries/core-react/src/Accordion/AccordionHeader.jsx +++ b/libraries/core-react/src/Accordion/AccordionHeader.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Accordion/AccordionItem.jsx b/libraries/core-react/src/Accordion/AccordionItem.jsx index b528c16552..994965863a 100644 --- a/libraries/core-react/src/Accordion/AccordionItem.jsx +++ b/libraries/core-react/src/Accordion/AccordionItem.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, useState } from 'react' import PropTypes from 'prop-types' import { commonPropTypes, commonDefaultProps } from './Accordion.propTypes' diff --git a/libraries/core-react/src/Accordion/AccordionPanel.jsx b/libraries/core-react/src/Accordion/AccordionPanel.jsx index b72adbf6b1..f31236546d 100644 --- a/libraries/core-react/src/Accordion/AccordionPanel.jsx +++ b/libraries/core-react/src/Accordion/AccordionPanel.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Accordion/index.js b/libraries/core-react/src/Accordion/index.js index de8207eea1..51439497c3 100644 --- a/libraries/core-react/src/Accordion/index.js +++ b/libraries/core-react/src/Accordion/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { Accordion } from './Accordion' import { AccordionItem } from './AccordionItem' import { AccordionHeaderTitle, AccordionHeader } from './AccordionHeader' diff --git a/libraries/core-react/src/Avatar/Avatar.jsx b/libraries/core-react/src/Avatar/Avatar.jsx index 857ef7f4b5..ba9dde9866 100644 --- a/libraries/core-react/src/Avatar/Avatar.jsx +++ b/libraries/core-react/src/Avatar/Avatar.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Avatar/Avatar.tokens.js b/libraries/core-react/src/Avatar/Avatar.tokens.js index c08df4c484..4c9f59ae0e 100644 --- a/libraries/core-react/src/Avatar/Avatar.tokens.js +++ b/libraries/core-react/src/Avatar/Avatar.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck export const avatar = { enabled: { border: { diff --git a/libraries/core-react/src/Avatar/index.js b/libraries/core-react/src/Avatar/index.js index 2591a10ea5..04353fa36b 100644 --- a/libraries/core-react/src/Avatar/index.js +++ b/libraries/core-react/src/Avatar/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { Avatar } from './Avatar' diff --git a/libraries/core-react/src/Banner/Banner.jsx b/libraries/core-react/src/Banner/Banner.jsx index 9dd09e5055..e80f9152c5 100644 --- a/libraries/core-react/src/Banner/Banner.jsx +++ b/libraries/core-react/src/Banner/Banner.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Banner/Banner.tokens.js b/libraries/core-react/src/Banner/Banner.tokens.js index 88bc266c7e..2a56bd3085 100644 --- a/libraries/core-react/src/Banner/Banner.tokens.js +++ b/libraries/core-react/src/Banner/Banner.tokens.js @@ -1,4 +1,5 @@ /* eslint-disable camelcase */ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Banner/BannerActions.jsx b/libraries/core-react/src/Banner/BannerActions.jsx index 32999b3239..0f0bb90d8c 100644 --- a/libraries/core-react/src/Banner/BannerActions.jsx +++ b/libraries/core-react/src/Banner/BannerActions.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Banner/BannerIcon.jsx b/libraries/core-react/src/Banner/BannerIcon.jsx index f2160df0fb..df5238a381 100644 --- a/libraries/core-react/src/Banner/BannerIcon.jsx +++ b/libraries/core-react/src/Banner/BannerIcon.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Banner/BannerMessage.jsx b/libraries/core-react/src/Banner/BannerMessage.jsx index 160050b4c9..1efd631d71 100644 --- a/libraries/core-react/src/Banner/BannerMessage.jsx +++ b/libraries/core-react/src/Banner/BannerMessage.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Banner/index.js b/libraries/core-react/src/Banner/index.js index 953f2f2c55..94c7dece6a 100644 --- a/libraries/core-react/src/Banner/index.js +++ b/libraries/core-react/src/Banner/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { Banner } from './Banner' import { BannerIcon } from './BannerIcon' import { BannerMessage } from './BannerMessage' diff --git a/libraries/core-react/src/Breadcrumbs/Breadcrumb.jsx b/libraries/core-react/src/Breadcrumbs/Breadcrumb.jsx index ee0bd5e09f..18285399fc 100644 --- a/libraries/core-react/src/Breadcrumbs/Breadcrumb.jsx +++ b/libraries/core-react/src/Breadcrumbs/Breadcrumb.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Breadcrumbs/Breadcrumbs.jsx b/libraries/core-react/src/Breadcrumbs/Breadcrumbs.jsx index ae678aed06..cdc48af26c 100644 --- a/libraries/core-react/src/Breadcrumbs/Breadcrumbs.jsx +++ b/libraries/core-react/src/Breadcrumbs/Breadcrumbs.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, useState, Fragment } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Breadcrumbs/Breadcrumbs.tokens.js b/libraries/core-react/src/Breadcrumbs/Breadcrumbs.tokens.js index 91750be171..30a439b369 100644 --- a/libraries/core-react/src/Breadcrumbs/Breadcrumbs.tokens.js +++ b/libraries/core-react/src/Breadcrumbs/Breadcrumbs.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Breadcrumbs/index.js b/libraries/core-react/src/Breadcrumbs/index.js index 4b2b6b99c1..915914c6f7 100644 --- a/libraries/core-react/src/Breadcrumbs/index.js +++ b/libraries/core-react/src/Breadcrumbs/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { Breadcrumbs } from './Breadcrumbs' import { Breadcrumb } from './Breadcrumb' diff --git a/libraries/core-react/src/Button/Button.jsx b/libraries/core-react/src/Button/Button.jsx index baa975e260..7b84577a7b 100644 --- a/libraries/core-react/src/Button/Button.jsx +++ b/libraries/core-react/src/Button/Button.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Button/Button.tokens.js b/libraries/core-react/src/Button/Button.tokens.js index 49080ca45e..53fb65b5f8 100644 --- a/libraries/core-react/src/Button/Button.tokens.js +++ b/libraries/core-react/src/Button/Button.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import primary from '@equinor/eds-tokens/components/button/buttons-primary.json' import secondary from '@equinor/eds-tokens/components/button/buttons-secondary.json' import danger from '@equinor/eds-tokens/components/button/buttons-danger.json' diff --git a/libraries/core-react/src/Button/index.js b/libraries/core-react/src/Button/index.js index 4d0a670f4a..92d23cb3e8 100644 --- a/libraries/core-react/src/Button/index.js +++ b/libraries/core-react/src/Button/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { Button } from './Button' diff --git a/libraries/core-react/src/Card/Card.jsx b/libraries/core-react/src/Card/Card.jsx index a2673022de..7277175fdd 100644 --- a/libraries/core-react/src/Card/Card.jsx +++ b/libraries/core-react/src/Card/Card.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Card/Card.tokens.js b/libraries/core-react/src/Card/Card.tokens.js index 7fef60f005..9e0a465c02 100644 --- a/libraries/core-react/src/Card/Card.tokens.js +++ b/libraries/core-react/src/Card/Card.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Card/CardActions.jsx b/libraries/core-react/src/Card/CardActions.jsx index 51ac3ed5a4..7aa5ff7dc3 100644 --- a/libraries/core-react/src/Card/CardActions.jsx +++ b/libraries/core-react/src/Card/CardActions.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Card/CardHeader.jsx b/libraries/core-react/src/Card/CardHeader.jsx index 56e6c6d3c3..13561d13a6 100644 --- a/libraries/core-react/src/Card/CardHeader.jsx +++ b/libraries/core-react/src/Card/CardHeader.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Card/CardHeaderTitle.jsx b/libraries/core-react/src/Card/CardHeaderTitle.jsx index 838243b525..51bd1fdf8d 100644 --- a/libraries/core-react/src/Card/CardHeaderTitle.jsx +++ b/libraries/core-react/src/Card/CardHeaderTitle.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Card/CardMedia.jsx b/libraries/core-react/src/Card/CardMedia.jsx index cf2b9f7124..9f83d95bfb 100644 --- a/libraries/core-react/src/Card/CardMedia.jsx +++ b/libraries/core-react/src/Card/CardMedia.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Card/index.js b/libraries/core-react/src/Card/index.js index 284baedcee..31a25be8e6 100644 --- a/libraries/core-react/src/Card/index.js +++ b/libraries/core-react/src/Card/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { Card } from './Card' import { CardActions } from './CardActions' import { CardMedia } from './CardMedia' diff --git a/libraries/core-react/src/Chip/Chip.jsx b/libraries/core-react/src/Chip/Chip.jsx index a68375d85c..732ac46409 100644 --- a/libraries/core-react/src/Chip/Chip.jsx +++ b/libraries/core-react/src/Chip/Chip.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Chip/Icon.jsx b/libraries/core-react/src/Chip/Icon.jsx index e13139b40d..0098dde4c6 100644 --- a/libraries/core-react/src/Chip/Icon.jsx +++ b/libraries/core-react/src/Chip/Icon.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import styled, { css } from 'styled-components' import { close } from '@equinor/eds-icons' import { Icon as Icon_ } from '..' diff --git a/libraries/core-react/src/Dialog/Actions.jsx b/libraries/core-react/src/Dialog/Actions.jsx index ab4c9506b9..53e3dfdb6c 100644 --- a/libraries/core-react/src/Dialog/Actions.jsx +++ b/libraries/core-react/src/Dialog/Actions.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Dialog/CustomContent.jsx b/libraries/core-react/src/Dialog/CustomContent.jsx index 667ced2f31..605967fd31 100644 --- a/libraries/core-react/src/Dialog/CustomContent.jsx +++ b/libraries/core-react/src/Dialog/CustomContent.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, Fragment } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Dialog/Dialog.jsx b/libraries/core-react/src/Dialog/Dialog.jsx index 21797c74bb..5975f2101d 100644 --- a/libraries/core-react/src/Dialog/Dialog.jsx +++ b/libraries/core-react/src/Dialog/Dialog.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Dialog/Title.jsx b/libraries/core-react/src/Dialog/Title.jsx index 2bda965b0a..f19f9510ad 100644 --- a/libraries/core-react/src/Dialog/Title.jsx +++ b/libraries/core-react/src/Dialog/Title.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, Fragment } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Dialog/index.js b/libraries/core-react/src/Dialog/index.js index 9cded9dccc..b089a23050 100644 --- a/libraries/core-react/src/Dialog/index.js +++ b/libraries/core-react/src/Dialog/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { Dialog } from './Dialog' import { Actions } from './Actions' import { Title } from './Title' diff --git a/libraries/core-react/src/Divider/Divider.jsx b/libraries/core-react/src/Divider/Divider.jsx index 2a0add2ed1..ca90b60a49 100644 --- a/libraries/core-react/src/Divider/Divider.jsx +++ b/libraries/core-react/src/Divider/Divider.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Divider/Divider.tokens.js b/libraries/core-react/src/Divider/Divider.tokens.js index 4fbcfd5c25..23e2649f85 100644 --- a/libraries/core-react/src/Divider/Divider.tokens.js +++ b/libraries/core-react/src/Divider/Divider.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Divider/index.js b/libraries/core-react/src/Divider/index.js index 465ccc7fdb..271b490a2a 100644 --- a/libraries/core-react/src/Divider/index.js +++ b/libraries/core-react/src/Divider/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { Divider } from './Divider' diff --git a/libraries/core-react/src/Icon/Icon.jsx b/libraries/core-react/src/Icon/Icon.jsx index f37a5add13..3ac7b783d7 100644 --- a/libraries/core-react/src/Icon/Icon.jsx +++ b/libraries/core-react/src/Icon/Icon.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Icon/index.js b/libraries/core-react/src/Icon/index.js index 25b18c2fd4..db5d6c685f 100644 --- a/libraries/core-react/src/Icon/index.js +++ b/libraries/core-react/src/Icon/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { Icon } from './Icon' import { add } from './library' diff --git a/libraries/core-react/src/Icon/library.js b/libraries/core-react/src/Icon/library.js index d6d803a961..c8a99fc8fd 100644 --- a/libraries/core-react/src/Icon/library.js +++ b/libraries/core-react/src/Icon/library.js @@ -1,3 +1,4 @@ +// @ts-nocheck let _icons = {} let count = 0 export const add = (icons) => { diff --git a/libraries/core-react/src/List/List.jsx b/libraries/core-react/src/List/List.jsx index 972ad3a25f..fbb72a7143 100644 --- a/libraries/core-react/src/List/List.jsx +++ b/libraries/core-react/src/List/List.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/List/ListItem.jsx b/libraries/core-react/src/List/ListItem.jsx index cd3cd15daa..485e28068d 100644 --- a/libraries/core-react/src/List/ListItem.jsx +++ b/libraries/core-react/src/List/ListItem.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' diff --git a/libraries/core-react/src/List/index.js b/libraries/core-react/src/List/index.js index 0a8de4ab21..8a7be3ddbc 100644 --- a/libraries/core-react/src/List/index.js +++ b/libraries/core-react/src/List/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { List } from './List' import { ListItem } from './ListItem' diff --git a/libraries/core-react/src/Pagination/Pagination.jsx b/libraries/core-react/src/Pagination/Pagination.jsx index 32948d6703..72e6dfc3cb 100644 --- a/libraries/core-react/src/Pagination/Pagination.jsx +++ b/libraries/core-react/src/Pagination/Pagination.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, useState } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Pagination/Pagination.tokens.js b/libraries/core-react/src/Pagination/Pagination.tokens.js index dec7dbdfeb..7db94ad900 100644 --- a/libraries/core-react/src/Pagination/Pagination.tokens.js +++ b/libraries/core-react/src/Pagination/Pagination.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Pagination/PaginationItem.jsx b/libraries/core-react/src/Pagination/PaginationItem.jsx index 60ae3cea79..c2e3019cd9 100644 --- a/libraries/core-react/src/Pagination/PaginationItem.jsx +++ b/libraries/core-react/src/Pagination/PaginationItem.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import { Button } from '../Button' diff --git a/libraries/core-react/src/Pagination/index.js b/libraries/core-react/src/Pagination/index.js index 31a39c6224..a01f3db9aa 100644 --- a/libraries/core-react/src/Pagination/index.js +++ b/libraries/core-react/src/Pagination/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { Pagination } from './Pagination' diff --git a/libraries/core-react/src/Pagination/paginationControl.js b/libraries/core-react/src/Pagination/paginationControl.js index 2285c9de37..b66fe7f639 100644 --- a/libraries/core-react/src/Pagination/paginationControl.js +++ b/libraries/core-react/src/Pagination/paginationControl.js @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' export function PaginationControl(pages, activePage) { diff --git a/libraries/core-react/src/Popover/Popover.jsx b/libraries/core-react/src/Popover/Popover.jsx index 541d53c45f..50fa2c2133 100644 --- a/libraries/core-react/src/Popover/Popover.jsx +++ b/libraries/core-react/src/Popover/Popover.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, useRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Popover/Popover.tokens.js b/libraries/core-react/src/Popover/Popover.tokens.js index b1c221badb..2c20bcf064 100644 --- a/libraries/core-react/src/Popover/Popover.tokens.js +++ b/libraries/core-react/src/Popover/Popover.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Popover/PopoverAnchor.jsx b/libraries/core-react/src/Popover/PopoverAnchor.jsx index 4549672af5..376bc0f13b 100644 --- a/libraries/core-react/src/Popover/PopoverAnchor.jsx +++ b/libraries/core-react/src/Popover/PopoverAnchor.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' diff --git a/libraries/core-react/src/Popover/PopoverContent.jsx b/libraries/core-react/src/Popover/PopoverContent.jsx index 2da94b092c..268e320ad2 100644 --- a/libraries/core-react/src/Popover/PopoverContent.jsx +++ b/libraries/core-react/src/Popover/PopoverContent.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Popover/PopoverItem.jsx b/libraries/core-react/src/Popover/PopoverItem.jsx index 7c0712cb3a..f1b81c2456 100644 --- a/libraries/core-react/src/Popover/PopoverItem.jsx +++ b/libraries/core-react/src/Popover/PopoverItem.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { useEffect, useRef, forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Popover/PopoverTitle.jsx b/libraries/core-react/src/Popover/PopoverTitle.jsx index 1d0b9208c6..86f14cc64f 100644 --- a/libraries/core-react/src/Popover/PopoverTitle.jsx +++ b/libraries/core-react/src/Popover/PopoverTitle.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Popover/index.js b/libraries/core-react/src/Popover/index.js index 43df064e09..b7b7a6f11c 100644 --- a/libraries/core-react/src/Popover/index.js +++ b/libraries/core-react/src/Popover/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { Popover } from './Popover' import { PopoverTitle } from './PopoverTitle' import { PopoverAnchor } from './PopoverAnchor' diff --git a/libraries/core-react/src/Progress/Circular/CircularProgress.jsx b/libraries/core-react/src/Progress/Circular/CircularProgress.jsx index c987c37e4b..b0d01f33e0 100644 --- a/libraries/core-react/src/Progress/Circular/CircularProgress.jsx +++ b/libraries/core-react/src/Progress/Circular/CircularProgress.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css, keyframes } from 'styled-components' diff --git a/libraries/core-react/src/Progress/Dots/DotProgress.jsx b/libraries/core-react/src/Progress/Dots/DotProgress.jsx index de7b84a7af..0cae6605c8 100644 --- a/libraries/core-react/src/Progress/Dots/DotProgress.jsx +++ b/libraries/core-react/src/Progress/Dots/DotProgress.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { keyframes } from 'styled-components' diff --git a/libraries/core-react/src/Progress/Linear/LinearProgress.jsx b/libraries/core-react/src/Progress/Linear/LinearProgress.jsx index d02883f6b2..c6b9bad349 100644 --- a/libraries/core-react/src/Progress/Linear/LinearProgress.jsx +++ b/libraries/core-react/src/Progress/Linear/LinearProgress.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css, keyframes } from 'styled-components' diff --git a/libraries/core-react/src/Progress/Progress.tokens.js b/libraries/core-react/src/Progress/Progress.tokens.js index e42a49ae35..bf60b06f3f 100644 --- a/libraries/core-react/src/Progress/Progress.tokens.js +++ b/libraries/core-react/src/Progress/Progress.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Progress/Star/StarProgress.jsx b/libraries/core-react/src/Progress/Star/StarProgress.jsx index 3ebf393073..e6edb7a869 100644 --- a/libraries/core-react/src/Progress/Star/StarProgress.jsx +++ b/libraries/core-react/src/Progress/Star/StarProgress.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { keyframes, css } from 'styled-components' diff --git a/libraries/core-react/src/Progress/index.js b/libraries/core-react/src/Progress/index.js index 9fb8e5bc8e..ab8fb2d5e2 100644 --- a/libraries/core-react/src/Progress/index.js +++ b/libraries/core-react/src/Progress/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck export { LinearProgress } from './Linear/LinearProgress' export { CircularProgress } from './Circular/CircularProgress' export { StarProgress } from './Star/StarProgress' diff --git a/libraries/core-react/src/Scrim/Scrim.jsx b/libraries/core-react/src/Scrim/Scrim.jsx index 195e6fe9e6..b0eb1ea55f 100644 --- a/libraries/core-react/src/Scrim/Scrim.jsx +++ b/libraries/core-react/src/Scrim/Scrim.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, useEffect } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Scrim/Scrim.tokens.js b/libraries/core-react/src/Scrim/Scrim.tokens.js index ea9c26ed9f..7892caee09 100644 --- a/libraries/core-react/src/Scrim/Scrim.tokens.js +++ b/libraries/core-react/src/Scrim/Scrim.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Scrim/index.jsx b/libraries/core-react/src/Scrim/index.jsx index 71f1baff8d..2b07f1b424 100644 --- a/libraries/core-react/src/Scrim/index.jsx +++ b/libraries/core-react/src/Scrim/index.jsx @@ -1 +1,2 @@ +// @ts-nocheck export { Scrim } from './Scrim' diff --git a/libraries/core-react/src/Search/Search.jsx b/libraries/core-react/src/Search/Search.jsx index f01704e235..e91c3dcfcd 100644 --- a/libraries/core-react/src/Search/Search.jsx +++ b/libraries/core-react/src/Search/Search.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { useState, useRef, useEffect } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Search/index.js b/libraries/core-react/src/Search/index.js index beb1384d91..2c96d80a38 100644 --- a/libraries/core-react/src/Search/index.js +++ b/libraries/core-react/src/Search/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { Search } from './Search' diff --git a/libraries/core-react/src/SelectionControls/Checkbox/Checkbox.jsx b/libraries/core-react/src/SelectionControls/Checkbox/Checkbox.jsx index a4d9571172..d4530691bb 100644 --- a/libraries/core-react/src/SelectionControls/Checkbox/Checkbox.jsx +++ b/libraries/core-react/src/SelectionControls/Checkbox/Checkbox.jsx @@ -1,4 +1,5 @@ /* eslint camelcase: "off" */ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/SelectionControls/Checkbox/Checkbox.tokens.js b/libraries/core-react/src/SelectionControls/Checkbox/Checkbox.tokens.js index c9f2e9a49b..7e0446a006 100644 --- a/libraries/core-react/src/SelectionControls/Checkbox/Checkbox.tokens.js +++ b/libraries/core-react/src/SelectionControls/Checkbox/Checkbox.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/SelectionControls/Radio/Radio.jsx b/libraries/core-react/src/SelectionControls/Radio/Radio.jsx index d4e285093e..d060cbdc8d 100644 --- a/libraries/core-react/src/SelectionControls/Radio/Radio.jsx +++ b/libraries/core-react/src/SelectionControls/Radio/Radio.jsx @@ -1,4 +1,5 @@ /* eslint camelcase: "off" */ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/SelectionControls/Radio/Radio.tokens.js b/libraries/core-react/src/SelectionControls/Radio/Radio.tokens.js index da45e52101..c1b27502de 100644 --- a/libraries/core-react/src/SelectionControls/Radio/Radio.tokens.js +++ b/libraries/core-react/src/SelectionControls/Radio/Radio.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/SelectionControls/Switch/Input.jsx b/libraries/core-react/src/SelectionControls/Switch/Input.jsx index 0f60e6d441..29e7f1dfc3 100644 --- a/libraries/core-react/src/SelectionControls/Switch/Input.jsx +++ b/libraries/core-react/src/SelectionControls/Switch/Input.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/SelectionControls/Switch/InputWrapper.jsx b/libraries/core-react/src/SelectionControls/Switch/InputWrapper.jsx index b92dcdd152..270cedb485 100644 --- a/libraries/core-react/src/SelectionControls/Switch/InputWrapper.jsx +++ b/libraries/core-react/src/SelectionControls/Switch/InputWrapper.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/SelectionControls/Switch/Switch.jsx b/libraries/core-react/src/SelectionControls/Switch/Switch.jsx index 92631918a9..44f6d4637f 100644 --- a/libraries/core-react/src/SelectionControls/Switch/Switch.jsx +++ b/libraries/core-react/src/SelectionControls/Switch/Switch.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/SelectionControls/Switch/Switch.tokens.js b/libraries/core-react/src/SelectionControls/Switch/Switch.tokens.js index 64b9627527..fe921a7c1d 100644 --- a/libraries/core-react/src/SelectionControls/Switch/Switch.tokens.js +++ b/libraries/core-react/src/SelectionControls/Switch/Switch.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/SelectionControls/Switch/SwitchDefault.jsx b/libraries/core-react/src/SelectionControls/Switch/SwitchDefault.jsx index a0bc490356..1ee87c6c4d 100644 --- a/libraries/core-react/src/SelectionControls/Switch/SwitchDefault.jsx +++ b/libraries/core-react/src/SelectionControls/Switch/SwitchDefault.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/SelectionControls/Switch/SwitchSmall.jsx b/libraries/core-react/src/SelectionControls/Switch/SwitchSmall.jsx index 919e440a86..9ba08c91b5 100644 --- a/libraries/core-react/src/SelectionControls/Switch/SwitchSmall.jsx +++ b/libraries/core-react/src/SelectionControls/Switch/SwitchSmall.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/SelectionControls/index.js b/libraries/core-react/src/SelectionControls/index.js index 04eb3a38b0..ed50d472f5 100644 --- a/libraries/core-react/src/SelectionControls/index.js +++ b/libraries/core-react/src/SelectionControls/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck export { Radio } from './Radio/Radio' export { Checkbox } from './Checkbox/Checkbox' export { Switch } from './Switch/Switch' diff --git a/libraries/core-react/src/SideSheet/SideSheet.jsx b/libraries/core-react/src/SideSheet/SideSheet.jsx index 973332c180..abd595cc69 100644 --- a/libraries/core-react/src/SideSheet/SideSheet.jsx +++ b/libraries/core-react/src/SideSheet/SideSheet.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/SideSheet/SideSheet.tokens.js b/libraries/core-react/src/SideSheet/SideSheet.tokens.js index 30f26c42c3..af45492457 100644 --- a/libraries/core-react/src/SideSheet/SideSheet.tokens.js +++ b/libraries/core-react/src/SideSheet/SideSheet.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/SideSheet/index.js b/libraries/core-react/src/SideSheet/index.js index b2b4911a1d..0d69a724ea 100644 --- a/libraries/core-react/src/SideSheet/index.js +++ b/libraries/core-react/src/SideSheet/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { SideSheet } from './SideSheet' diff --git a/libraries/core-react/src/Slider/MinMax.jsx b/libraries/core-react/src/Slider/MinMax.jsx index 14f302ef66..202df99d06 100644 --- a/libraries/core-react/src/Slider/MinMax.jsx +++ b/libraries/core-react/src/Slider/MinMax.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Slider/Output.jsx b/libraries/core-react/src/Slider/Output.jsx index c61494a8b3..641b78551b 100644 --- a/libraries/core-react/src/Slider/Output.jsx +++ b/libraries/core-react/src/Slider/Output.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Slider/Slider.jsx b/libraries/core-react/src/Slider/Slider.jsx index 72df8fb29f..422bbe0c98 100644 --- a/libraries/core-react/src/Slider/Slider.jsx +++ b/libraries/core-react/src/Slider/Slider.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, useState, useRef /* , useMemo */ } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Slider/Slider.tokens.js b/libraries/core-react/src/Slider/Slider.tokens.js index f895548053..b424677561 100644 --- a/libraries/core-react/src/Slider/Slider.tokens.js +++ b/libraries/core-react/src/Slider/Slider.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Slider/SliderInput.jsx b/libraries/core-react/src/Slider/SliderInput.jsx index 4849875aff..c1c297783b 100644 --- a/libraries/core-react/src/Slider/SliderInput.jsx +++ b/libraries/core-react/src/Slider/SliderInput.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Slider/index.jsx b/libraries/core-react/src/Slider/index.jsx index 6d43da3c01..8861d33d2e 100644 --- a/libraries/core-react/src/Slider/index.jsx +++ b/libraries/core-react/src/Slider/index.jsx @@ -1 +1,2 @@ +// @ts-nocheck export { Slider } from './Slider' diff --git a/libraries/core-react/src/Snackbar/Snackbar.jsx b/libraries/core-react/src/Snackbar/Snackbar.jsx index be68336a55..ef87f45263 100644 --- a/libraries/core-react/src/Snackbar/Snackbar.jsx +++ b/libraries/core-react/src/Snackbar/Snackbar.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { useState, useEffect } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Snackbar/Snackbar.tokens.js b/libraries/core-react/src/Snackbar/Snackbar.tokens.js index 8e08abe7ca..b4a84e93a0 100644 --- a/libraries/core-react/src/Snackbar/Snackbar.tokens.js +++ b/libraries/core-react/src/Snackbar/Snackbar.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Snackbar/SnackbarAction.jsx b/libraries/core-react/src/Snackbar/SnackbarAction.jsx index be86023892..60e992b1cc 100644 --- a/libraries/core-react/src/Snackbar/SnackbarAction.jsx +++ b/libraries/core-react/src/Snackbar/SnackbarAction.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { Children } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Snackbar/index.js b/libraries/core-react/src/Snackbar/index.js index 09eda23dfb..918f3db52c 100644 --- a/libraries/core-react/src/Snackbar/index.js +++ b/libraries/core-react/src/Snackbar/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { SnackbarAction } from './SnackbarAction' import { Snackbar } from './Snackbar' diff --git a/libraries/core-react/src/Table/Body.jsx b/libraries/core-react/src/Table/Body.jsx index 9561018ad9..14a9f071ad 100644 --- a/libraries/core-react/src/Table/Body.jsx +++ b/libraries/core-react/src/Table/Body.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Table/Cell.jsx b/libraries/core-react/src/Table/Cell.jsx index bb1ea5042f..32542266f3 100644 --- a/libraries/core-react/src/Table/Cell.jsx +++ b/libraries/core-react/src/Table/Cell.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Table/Head.jsx b/libraries/core-react/src/Table/Head.jsx index a68cc4aff9..436c6f7e4b 100644 --- a/libraries/core-react/src/Table/Head.jsx +++ b/libraries/core-react/src/Table/Head.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Table/Row.jsx b/libraries/core-react/src/Table/Row.jsx index f9bc552ac0..ff82a8ac83 100644 --- a/libraries/core-react/src/Table/Row.jsx +++ b/libraries/core-react/src/Table/Row.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Table/Table.jsx b/libraries/core-react/src/Table/Table.jsx index ec8447d0b7..d66b40a828 100644 --- a/libraries/core-react/src/Table/Table.jsx +++ b/libraries/core-react/src/Table/Table.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Table/index.js b/libraries/core-react/src/Table/index.js index ca6c6e552b..22d93aa2d3 100644 --- a/libraries/core-react/src/Table/index.js +++ b/libraries/core-react/src/Table/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { Table } from './Table' import { Caption } from './Caption' import { Body } from './Body' diff --git a/libraries/core-react/src/TableOfContents/LinkItem.jsx b/libraries/core-react/src/TableOfContents/LinkItem.jsx index f48b3aca00..97605c01ad 100644 --- a/libraries/core-react/src/TableOfContents/LinkItem.jsx +++ b/libraries/core-react/src/TableOfContents/LinkItem.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/TableOfContents/TableOfContents.jsx b/libraries/core-react/src/TableOfContents/TableOfContents.jsx index f6fd839a59..fa6a7ec95b 100644 --- a/libraries/core-react/src/TableOfContents/TableOfContents.jsx +++ b/libraries/core-react/src/TableOfContents/TableOfContents.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/TableOfContents/TableOfContents.tokens.js b/libraries/core-react/src/TableOfContents/TableOfContents.tokens.js index 4d5f7673e7..6bddbba687 100644 --- a/libraries/core-react/src/TableOfContents/TableOfContents.tokens.js +++ b/libraries/core-react/src/TableOfContents/TableOfContents.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/TableOfContents/index.js b/libraries/core-react/src/TableOfContents/index.js index c40a110705..a3e17b844c 100644 --- a/libraries/core-react/src/TableOfContents/index.js +++ b/libraries/core-react/src/TableOfContents/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { TableOfContents } from './TableOfContents' import { LinkItem } from './LinkItem' diff --git a/libraries/core-react/src/Tabs/Tab.jsx b/libraries/core-react/src/Tabs/Tab.jsx index 97913d2d85..edd0f03b22 100644 --- a/libraries/core-react/src/Tabs/Tab.jsx +++ b/libraries/core-react/src/Tabs/Tab.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Tabs/TabList.jsx b/libraries/core-react/src/Tabs/TabList.jsx index 42936e5892..ee339feccd 100644 --- a/libraries/core-react/src/Tabs/TabList.jsx +++ b/libraries/core-react/src/Tabs/TabList.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, useContext, diff --git a/libraries/core-react/src/Tabs/TabPanel.jsx b/libraries/core-react/src/Tabs/TabPanel.jsx index 908afdb3a5..230c00e00e 100644 --- a/libraries/core-react/src/Tabs/TabPanel.jsx +++ b/libraries/core-react/src/Tabs/TabPanel.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/Tabs/TabPanels.jsx b/libraries/core-react/src/Tabs/TabPanels.jsx index 2431bc506c..423f706a13 100644 --- a/libraries/core-react/src/Tabs/TabPanels.jsx +++ b/libraries/core-react/src/Tabs/TabPanels.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, useContext } from 'react' import PropTypes from 'prop-types' import { TabsContext } from './Tabs.context' diff --git a/libraries/core-react/src/Tabs/Tabs.context.js b/libraries/core-react/src/Tabs/Tabs.context.js index ce8274459b..2066edafce 100644 --- a/libraries/core-react/src/Tabs/Tabs.context.js +++ b/libraries/core-react/src/Tabs/Tabs.context.js @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { createContext } from 'react' const TabsContext = createContext({ diff --git a/libraries/core-react/src/Tabs/Tabs.jsx b/libraries/core-react/src/Tabs/Tabs.jsx index f6f3475c00..f7b7c50b39 100644 --- a/libraries/core-react/src/Tabs/Tabs.jsx +++ b/libraries/core-react/src/Tabs/Tabs.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, useMemo, useState } from 'react' import PropTypes from 'prop-types' import createId from 'lodash/uniqueId' diff --git a/libraries/core-react/src/Tabs/Tabs.tokens.js b/libraries/core-react/src/Tabs/Tabs.tokens.js index a878e02d2b..51b0918581 100644 --- a/libraries/core-react/src/Tabs/Tabs.tokens.js +++ b/libraries/core-react/src/Tabs/Tabs.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Tabs/index.js b/libraries/core-react/src/Tabs/index.js index c748528b24..c3fb4df50e 100644 --- a/libraries/core-react/src/Tabs/index.js +++ b/libraries/core-react/src/Tabs/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { Tabs } from './Tabs' import { TabList } from './TabList' import { Tab } from './Tab' diff --git a/libraries/core-react/src/TextField/HelperText/HelperText.jsx b/libraries/core-react/src/TextField/HelperText/HelperText.jsx index 66ee674e5b..594986a4d6 100644 --- a/libraries/core-react/src/TextField/HelperText/HelperText.jsx +++ b/libraries/core-react/src/TextField/HelperText/HelperText.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/TextField/HelperText/HelperText.token.js b/libraries/core-react/src/TextField/HelperText/HelperText.token.js index 60fd0cb094..3fec527bf8 100644 --- a/libraries/core-react/src/TextField/HelperText/HelperText.token.js +++ b/libraries/core-react/src/TextField/HelperText/HelperText.token.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/TextField/HelperText/index.js b/libraries/core-react/src/TextField/HelperText/index.js index 23c77d008a..72c8468832 100644 --- a/libraries/core-react/src/TextField/HelperText/index.js +++ b/libraries/core-react/src/TextField/HelperText/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { HelperText } from './HelperText' diff --git a/libraries/core-react/src/TextField/Icon/Icon.jsx b/libraries/core-react/src/TextField/Icon/Icon.jsx index df3d38930d..ce164fabed 100644 --- a/libraries/core-react/src/TextField/Icon/Icon.jsx +++ b/libraries/core-react/src/TextField/Icon/Icon.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/TextField/Icon/index.js b/libraries/core-react/src/TextField/Icon/index.js index d78603a27e..d7cac994d4 100644 --- a/libraries/core-react/src/TextField/Icon/index.js +++ b/libraries/core-react/src/TextField/Icon/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { Icon } from './Icon' diff --git a/libraries/core-react/src/TextField/Input/Input.jsx b/libraries/core-react/src/TextField/Input/Input.jsx index 4b7b72de1c..781d29a60c 100644 --- a/libraries/core-react/src/TextField/Input/Input.jsx +++ b/libraries/core-react/src/TextField/Input/Input.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/TextField/Input/Input.tokens.js b/libraries/core-react/src/TextField/Input/Input.tokens.js index 47b05dda89..f69058cfd7 100644 --- a/libraries/core-react/src/TextField/Input/Input.tokens.js +++ b/libraries/core-react/src/TextField/Input/Input.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/TextField/Input/index.js b/libraries/core-react/src/TextField/Input/index.js index 3188ccc6a9..0f4d41c96d 100644 --- a/libraries/core-react/src/TextField/Input/index.js +++ b/libraries/core-react/src/TextField/Input/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { Input } from './Input' diff --git a/libraries/core-react/src/TextField/Label/Label.jsx b/libraries/core-react/src/TextField/Label/Label.jsx index d13cb0c121..59731f8dc3 100644 --- a/libraries/core-react/src/TextField/Label/Label.jsx +++ b/libraries/core-react/src/TextField/Label/Label.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/TextField/Label/Label.tokens.js b/libraries/core-react/src/TextField/Label/Label.tokens.js index 9856dd6b03..b048bc987b 100644 --- a/libraries/core-react/src/TextField/Label/Label.tokens.js +++ b/libraries/core-react/src/TextField/Label/Label.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/TextField/Label/index.js b/libraries/core-react/src/TextField/Label/index.js index 717144f332..74d1321401 100644 --- a/libraries/core-react/src/TextField/Label/index.js +++ b/libraries/core-react/src/TextField/Label/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { Label } from './Label' diff --git a/libraries/core-react/src/TextField/TextField.jsx b/libraries/core-react/src/TextField/TextField.jsx index 77ca7c2a1b..926571b1b0 100644 --- a/libraries/core-react/src/TextField/TextField.jsx +++ b/libraries/core-react/src/TextField/TextField.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/TextField/context.jsx b/libraries/core-react/src/TextField/context.jsx index fb2aad4713..efde976c84 100644 --- a/libraries/core-react/src/TextField/context.jsx +++ b/libraries/core-react/src/TextField/context.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { useState, useContext } from 'react' import PropTypes from 'prop-types' diff --git a/libraries/core-react/src/TextField/index.js b/libraries/core-react/src/TextField/index.js index dea5f2d477..12fd880a53 100644 --- a/libraries/core-react/src/TextField/index.js +++ b/libraries/core-react/src/TextField/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { TextField } from './TextField' diff --git a/libraries/core-react/src/Tooltip/Tooltip.jsx b/libraries/core-react/src/Tooltip/Tooltip.jsx index 09690aaff6..430155e39b 100644 --- a/libraries/core-react/src/Tooltip/Tooltip.jsx +++ b/libraries/core-react/src/Tooltip/Tooltip.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef, useState } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Tooltip/Tooltip.tokens.js b/libraries/core-react/src/Tooltip/Tooltip.tokens.js index a622f55d48..14c5375061 100644 --- a/libraries/core-react/src/Tooltip/Tooltip.tokens.js +++ b/libraries/core-react/src/Tooltip/Tooltip.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/Tooltip/index.js b/libraries/core-react/src/Tooltip/index.js index 1a0b4fb06d..729bdc42b4 100644 --- a/libraries/core-react/src/Tooltip/index.js +++ b/libraries/core-react/src/Tooltip/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { Tooltip } from './Tooltip' diff --git a/libraries/core-react/src/TopBar/Actions.jsx b/libraries/core-react/src/TopBar/Actions.jsx index 55b855029d..ca5ea379b7 100644 --- a/libraries/core-react/src/TopBar/Actions.jsx +++ b/libraries/core-react/src/TopBar/Actions.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/TopBar/CustomContent.jsx b/libraries/core-react/src/TopBar/CustomContent.jsx index d932bad1ba..85328e1962 100644 --- a/libraries/core-react/src/TopBar/CustomContent.jsx +++ b/libraries/core-react/src/TopBar/CustomContent.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/TopBar/Header.jsx b/libraries/core-react/src/TopBar/Header.jsx index 69245032d5..f0cbb0fbc9 100644 --- a/libraries/core-react/src/TopBar/Header.jsx +++ b/libraries/core-react/src/TopBar/Header.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/TopBar/TopBar.jsx b/libraries/core-react/src/TopBar/TopBar.jsx index 98de13e3b0..3e91fb969a 100644 --- a/libraries/core-react/src/TopBar/TopBar.jsx +++ b/libraries/core-react/src/TopBar/TopBar.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' diff --git a/libraries/core-react/src/TopBar/TopBar.tokens.js b/libraries/core-react/src/TopBar/TopBar.tokens.js index cea3dfad8e..ef9d451af7 100644 --- a/libraries/core-react/src/TopBar/TopBar.tokens.js +++ b/libraries/core-react/src/TopBar/TopBar.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { diff --git a/libraries/core-react/src/TopBar/index.js b/libraries/core-react/src/TopBar/index.js index f822bdc163..4f6ecbdaec 100644 --- a/libraries/core-react/src/TopBar/index.js +++ b/libraries/core-react/src/TopBar/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { TopBar } from './TopBar' import { Actions } from './Actions' import { Header } from './Header' diff --git a/libraries/core-react/src/Typography/Typography.jsx b/libraries/core-react/src/Typography/Typography.jsx index 1c72ea5dfc..68e7f2ce80 100644 --- a/libraries/core-react/src/Typography/Typography.jsx +++ b/libraries/core-react/src/Typography/Typography.jsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, { forwardRef } from 'react' import PropTypes from 'prop-types' import styled, { css } from 'styled-components' diff --git a/libraries/core-react/src/Typography/Typography.tokens.js b/libraries/core-react/src/Typography/Typography.tokens.js index 1f5d52dc38..304cc9c3a9 100644 --- a/libraries/core-react/src/Typography/Typography.tokens.js +++ b/libraries/core-react/src/Typography/Typography.tokens.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { tokens } from '@equinor/eds-tokens' const { typography, colors: colorsToken } = tokens diff --git a/libraries/core-react/src/Typography/index.js b/libraries/core-react/src/Typography/index.js index 3ec44f36f0..eab8a710ad 100644 --- a/libraries/core-react/src/Typography/index.js +++ b/libraries/core-react/src/Typography/index.js @@ -1 +1,2 @@ +// @ts-nocheck export { Typography } from './Typography' diff --git a/libraries/core-react/src/_common/index.js b/libraries/core-react/src/_common/index.js index 3d194dca29..4533fa18a6 100644 --- a/libraries/core-react/src/_common/index.js +++ b/libraries/core-react/src/_common/index.js @@ -1,3 +1,4 @@ +// @ts-nocheck import * as templates from './templates' export { setReactInputValue } from './setReactInputValue' diff --git a/libraries/core-react/src/_common/setReactInputValue.js b/libraries/core-react/src/_common/setReactInputValue.js index af7f1acfea..671eb99a94 100644 --- a/libraries/core-react/src/_common/setReactInputValue.js +++ b/libraries/core-react/src/_common/setReactInputValue.js @@ -1,3 +1,4 @@ +// @ts-nocheck // Workaround // React ignores 'dispathEvent' on input/textarea, see https://github.com/facebook/react/issues/10135 export const setReactInputValue = (input, value) => { diff --git a/libraries/core-react/src/_common/templates.js b/libraries/core-react/src/_common/templates.js index 383d29a9e2..6205cd71e1 100644 --- a/libraries/core-react/src/_common/templates.js +++ b/libraries/core-react/src/_common/templates.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { css } from 'styled-components' export const typographyTemplate = (typography, link) => { diff --git a/libraries/core-react/src/_common/useCombinedRefs.js b/libraries/core-react/src/_common/useCombinedRefs.js index b9e40aa632..226158e26c 100644 --- a/libraries/core-react/src/_common/useCombinedRefs.js +++ b/libraries/core-react/src/_common/useCombinedRefs.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { useRef, useEffect } from 'react' export const useCombinedRefs = (...refs) => { diff --git a/libraries/core-react/src/_common/useKeyPress.js b/libraries/core-react/src/_common/useKeyPress.js index 17a3e767eb..7a5ae48dce 100644 --- a/libraries/core-react/src/_common/useKeyPress.js +++ b/libraries/core-react/src/_common/useKeyPress.js @@ -1,3 +1,4 @@ +// @ts-nocheck import { useEffect, useState } from 'react' export function useKeyPress(targetKey, onPressDown = () => {}) { diff --git a/libraries/core-react/src/index.js b/libraries/core-react/src/index.js index 91eb5b5af3..37255627e3 100644 --- a/libraries/core-react/src/index.js +++ b/libraries/core-react/src/index.js @@ -1,4 +1,5 @@ /* eslint-disable import/prefer-default-export */ +// @ts-nocheck export { Button } from './Button' export { Typography } from './Typography' export { Table } from './Table' diff --git a/libraries/core-react/tsconfig.json b/libraries/core-react/tsconfig.json new file mode 100644 index 0000000000..dc84a49336 --- /dev/null +++ b/libraries/core-react/tsconfig.json @@ -0,0 +1,18 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "esnext", + "lib": ["dom", "es2015"], + "moduleResolution": "node", + "resolveJsonModule": true, + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "sourceMap": false, + "allowJs": true, + "checkJs": true, + "noEmit": true, + "jsx": "react" + }, + "include": ["src"], + "exclude": ["node_modules", "**/*.test.jsx"] +}