-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into e.muhamethanov/cell-subhead-to-overtitle
- Loading branch information
Showing
33 changed files
with
67 additions
and
664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { API, FileInfo } from 'jscodeshift'; | ||
import { getImportInfo } from '../../codemod-helpers'; | ||
import { report } from '../../report'; | ||
import { JSCodeShiftOptions } from '../../types'; | ||
|
||
export const parser = 'tsx'; | ||
|
||
export default function transformer(file: FileInfo, api: API, options: JSCodeShiftOptions) { | ||
const { alias } = options; | ||
const j = api.jscodeshift; | ||
const source = j(file.source); | ||
const { localName } = getImportInfo(j, file, 'DatePicker', alias); | ||
|
||
if (!localName) { | ||
return source.toSource(); | ||
} | ||
source | ||
.find(j.JSXElement, { | ||
openingElement: { | ||
name: { name: localName }, | ||
}, | ||
}) | ||
.forEach(() => { | ||
report( | ||
api, | ||
`Manual changes required for ${localName}. component DatePicker was removed in v7.0.0, please use Input, Select or DateInput component`, | ||
); | ||
}); | ||
|
||
return source.toSource(); | ||
} |
30 changes: 0 additions & 30 deletions
30
packages/vkui/src/components/DatePicker/DatePicker.e2e-playground.tsx
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/vkui/src/components/DatePicker/DatePicker.e2e.tsx
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
packages/vkui/src/components/DatePicker/DatePicker.module.css
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
packages/vkui/src/components/DatePicker/DatePicker.stories.tsx
This file was deleted.
Oops, something went wrong.
216 changes: 0 additions & 216 deletions
216
packages/vkui/src/components/DatePicker/DatePicker.test.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.