chore: fix ci (#37899)

* chore: fix ci

* ci: remove check-ts-demo

* ci: preview build

* test: ignore demo.tsx

* chore: update script

* test: update snapshot

* test: update node and image test

* chore: add .surgeignore
This commit is contained in:
MadCcc 2022-10-09 16:59:11 +08:00 committed by GitHub
parent 4c37c04fcc
commit 6f18ef7a31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
184 changed files with 1414 additions and 1641 deletions

View File

@ -2,7 +2,8 @@ components/**/*.js
components/**/*.jsx
components/version/token.tsx
!components/*/__tests__/**/*.js
!components/*/demo/*
!components/*/demo/*.md
components/*/demo/*.tsx
!.*.js
~*
# Docs templates
@ -19,6 +20,8 @@ site/theme/template/Content/EditButton.jsx
site/theme/template/Resources/*.jsx
site/theme/template/Resources/**/*.jsx
site/theme/template/NotFound.jsx
site/theme/template/Content/ComponentDoc.jsx
site/**/*.tsx
typings
es/**/*
lib/**/*

View File

@ -67,28 +67,6 @@ jobs:
run: npm run lint
needs: setup
tsx-demo:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: restore cache from package-lock.json
uses: actions/cache@v3
with:
path: package-temp-dir
key: lock-${{ github.sha }}
- name: restore cache from node_modules
uses: actions/cache@v3
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
- name: tsx-demo
run: npm run check-ts-demo
needs: setup
check_metadata:
runs-on: ubuntu-latest
steps:

View File

@ -27,6 +27,8 @@ module.exports = {
'/^react-dnd-test-backend$/': 'react-dnd-test-backend/dist/cjs',
'/^react-dnd-test-utils$/': 'react-dnd-test-utils/dist/cjs',
'/\\.(css|less)$/': 'identity-obj-proxy',
'^antd$': '<rootDir>/components/index',
'^antd/es/(.*)$': '<rootDir>/components/$1',
},
testPathIgnorePatterns: ['/node_modules/', 'dekko', 'node', 'image.test.js', 'image.test.ts'],
transform: {

1
.surgeignore Normal file
View File

@ -0,0 +1 @@
!.dumi*

View File

@ -4,6 +4,7 @@ import rehypeAntd from './.dumi/rehypeAntd';
import { version } from './package.json';
export default defineConfig({
outputPath: '_site',
resolve: {
// FIXME: disable docs in temporary
docDirs: [],

View File

@ -26,7 +26,7 @@ describe('node', () => {
// Test for ssr
describe(componentName, () => {
const demoList = glob.sync(`./components/${componentName}/demo/*.md`);
const demoList = glob.sync(`./components/${componentName}/demo/*.tsx`);
// Use mock to get config
require(`../../${componentTestFile}`); // eslint-disable-line global-require, import/no-dynamic-require

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/affix/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/affix/demo/basic.tsx extend context correctly 1`] = `
Array [
<div>
<div
@ -34,7 +34,7 @@ Array [
]
`;
exports[`renders ./components/affix/demo/debug.md extend context correctly 1`] = `
exports[`renders ./components/affix/demo/debug.tsx extend context correctly 1`] = `
<div
style="height: 10000px;"
>
@ -65,7 +65,7 @@ exports[`renders ./components/affix/demo/debug.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/affix/demo/on-change.md extend context correctly 1`] = `
exports[`renders ./components/affix/demo/on-change.tsx extend context correctly 1`] = `
<div>
<div
class=""
@ -82,7 +82,7 @@ exports[`renders ./components/affix/demo/on-change.md extend context correctly 1
</div>
`;
exports[`renders ./components/affix/demo/target.md extend context correctly 1`] = `
exports[`renders ./components/affix/demo/target.tsx extend context correctly 1`] = `
<div
class="scrollable-container"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/affix/demo/basic.md correctly 1`] = `
exports[`renders ./components/affix/demo/basic.tsx correctly 1`] = `
Array [
<div>
<div
@ -34,7 +34,7 @@ Array [
]
`;
exports[`renders ./components/affix/demo/debug.md correctly 1`] = `
exports[`renders ./components/affix/demo/debug.tsx correctly 1`] = `
<div
style="height: 10000px;"
>
@ -65,7 +65,7 @@ exports[`renders ./components/affix/demo/debug.md correctly 1`] = `
</div>
`;
exports[`renders ./components/affix/demo/on-change.md correctly 1`] = `
exports[`renders ./components/affix/demo/on-change.tsx correctly 1`] = `
<div>
<div
class=""
@ -82,7 +82,7 @@ exports[`renders ./components/affix/demo/on-change.md correctly 1`] = `
</div>
`;
exports[`renders ./components/affix/demo/target.md correctly 1`] = `
exports[`renders ./components/affix/demo/target.tsx correctly 1`] = `
<div
class="scrollable-container"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/alert/demo/action.md extend context correctly 1`] = `
exports[`renders ./components/alert/demo/action.tsx extend context correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-success"
@ -265,7 +265,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/banner.md extend context correctly 1`] = `
exports[`renders ./components/alert/demo/banner.tsx extend context correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-warning ant-alert-banner"
@ -415,7 +415,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/alert/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-alert ant-alert-success ant-alert-no-icon"
data-show="true"
@ -433,7 +433,7 @@ exports[`renders ./components/alert/demo/basic.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/alert/demo/closable.md extend context correctly 1`] = `
exports[`renders ./components/alert/demo/closable.tsx extend context correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-warning ant-alert-no-icon"
@ -523,7 +523,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/close-text.md extend context correctly 1`] = `
exports[`renders ./components/alert/demo/close-text.tsx extend context correctly 1`] = `
<div
class="ant-alert ant-alert-info ant-alert-no-icon"
data-show="true"
@ -552,7 +552,7 @@ exports[`renders ./components/alert/demo/close-text.md extend context correctly
</div>
`;
exports[`renders ./components/alert/demo/custom-icon.md extend context correctly 1`] = `
exports[`renders ./components/alert/demo/custom-icon.tsx extend context correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-success ant-alert-no-icon"
@ -864,7 +864,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/description.md extend context correctly 1`] = `
exports[`renders ./components/alert/demo/description.tsx extend context correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-success ant-alert-with-description ant-alert-no-icon"
@ -949,7 +949,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/error-boundary.md extend context correctly 1`] = `
exports[`renders ./components/alert/demo/error-boundary.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-default ant-btn-dangerous"
type="button"
@ -960,7 +960,7 @@ exports[`renders ./components/alert/demo/error-boundary.md extend context correc
</button>
`;
exports[`renders ./components/alert/demo/icon.md extend context correctly 1`] = `
exports[`renders ./components/alert/demo/icon.tsx extend context correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-success"
@ -1307,60 +1307,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/loop-banner.md extend context correctly 1`] = `
<div
class="ant-alert ant-alert-warning ant-alert-banner"
data-show="true"
role="alert"
>
<span
aria-label="exclamation-circle"
class="anticon anticon-exclamation-circle ant-alert-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="exclamation-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
/>
</svg>
</span>
<div
class="ant-alert-content"
>
<div
class="ant-alert-message"
>
<div
class=" marquee-container"
style="--pause-on-hover: paused; --pause-on-click: running;"
>
<div
class="marquee"
style="--play: running; --direction: normal; --duration: 0s; --delay: 0s; --iteration-count: infinite;"
>
I can be a React component, multiple React components, or just some text.
</div>
<div
class="marquee"
style="--play: running; --direction: normal; --duration: 0s; --delay: 0s; --iteration-count: infinite;"
>
I can be a React component, multiple React components, or just some text.
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders ./components/alert/demo/smooth-closed.md extend context correctly 1`] = `
exports[`renders ./components/alert/demo/smooth-closed.tsx extend context correctly 1`] = `
<div>
<div
class="ant-alert ant-alert-success ant-alert-no-icon"
@ -1408,7 +1355,7 @@ exports[`renders ./components/alert/demo/smooth-closed.md extend context correct
</div>
`;
exports[`renders ./components/alert/demo/style.md extend context correctly 1`] = `
exports[`renders ./components/alert/demo/style.tsx extend context correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-success ant-alert-no-icon"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/alert/demo/action.md correctly 1`] = `
exports[`renders ./components/alert/demo/action.tsx correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-success"
@ -265,7 +265,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/banner.md correctly 1`] = `
exports[`renders ./components/alert/demo/banner.tsx correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-warning ant-alert-banner"
@ -415,7 +415,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/basic.md correctly 1`] = `
exports[`renders ./components/alert/demo/basic.tsx correctly 1`] = `
<div
class="ant-alert ant-alert-success ant-alert-no-icon"
data-show="true"
@ -433,7 +433,7 @@ exports[`renders ./components/alert/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/alert/demo/closable.md correctly 1`] = `
exports[`renders ./components/alert/demo/closable.tsx correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-warning ant-alert-no-icon"
@ -523,7 +523,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/close-text.md correctly 1`] = `
exports[`renders ./components/alert/demo/close-text.tsx correctly 1`] = `
<div
class="ant-alert ant-alert-info ant-alert-no-icon"
data-show="true"
@ -552,7 +552,7 @@ exports[`renders ./components/alert/demo/close-text.md correctly 1`] = `
</div>
`;
exports[`renders ./components/alert/demo/custom-icon.md correctly 1`] = `
exports[`renders ./components/alert/demo/custom-icon.tsx correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-success ant-alert-no-icon"
@ -864,7 +864,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/description.md correctly 1`] = `
exports[`renders ./components/alert/demo/description.tsx correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-success ant-alert-with-description ant-alert-no-icon"
@ -949,7 +949,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/error-boundary.md correctly 1`] = `
exports[`renders ./components/alert/demo/error-boundary.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-default ant-btn-dangerous"
type="button"
@ -960,7 +960,7 @@ exports[`renders ./components/alert/demo/error-boundary.md correctly 1`] = `
</button>
`;
exports[`renders ./components/alert/demo/icon.md correctly 1`] = `
exports[`renders ./components/alert/demo/icon.tsx correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-success"
@ -1307,60 +1307,7 @@ Array [
]
`;
exports[`renders ./components/alert/demo/loop-banner.md correctly 1`] = `
<div
class="ant-alert ant-alert-warning ant-alert-banner"
data-show="true"
role="alert"
>
<span
aria-label="exclamation-circle"
class="anticon anticon-exclamation-circle ant-alert-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="exclamation-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
/>
</svg>
</span>
<div
class="ant-alert-content"
>
<div
class="ant-alert-message"
>
<div
class=" marquee-container"
style="--pause-on-hover: paused; --pause-on-click: running;"
>
<div
class="marquee"
style="--play: running; --direction: normal; --duration: 0s; --delay: 0s; --iteration-count: infinite;"
>
I can be a React component, multiple React components, or just some text.
</div>
<div
class="marquee"
style="--play: running; --direction: normal; --duration: 0s; --delay: 0s; --iteration-count: infinite;"
>
I can be a React component, multiple React components, or just some text.
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders ./components/alert/demo/smooth-closed.md correctly 1`] = `
exports[`renders ./components/alert/demo/smooth-closed.tsx correctly 1`] = `
<div>
<div
class="ant-alert ant-alert-success ant-alert-no-icon"
@ -1408,7 +1355,7 @@ exports[`renders ./components/alert/demo/smooth-closed.md correctly 1`] = `
</div>
`;
exports[`renders ./components/alert/demo/style.md correctly 1`] = `
exports[`renders ./components/alert/demo/style.tsx correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-success ant-alert-no-icon"

View File

@ -1,3 +1,3 @@
import { extendTest } from '../../../tests/shared/demoTest';
extendTest('alert', { skip: ['loop-banner.md'] });
extendTest('alert', { skip: ['loop-banner.tsx'] });

View File

@ -1,3 +1,3 @@
import demoTest from '../../../tests/shared/demoTest';
demoTest('alert', { skip: ['loop-banner.md'] });
demoTest('alert', { skip: ['loop-banner.tsx'] });

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/anchor/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/anchor/demo/basic.tsx extend context correctly 1`] = `
<div>
<div
class=""
@ -80,7 +80,7 @@ exports[`renders ./components/anchor/demo/basic.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/anchor/demo/customizeHighlight.md extend context correctly 1`] = `
exports[`renders ./components/anchor/demo/customizeHighlight.tsx extend context correctly 1`] = `
<div
class="ant-anchor-wrapper"
style="max-height: 100vh;"
@ -155,7 +155,7 @@ exports[`renders ./components/anchor/demo/customizeHighlight.md extend context c
</div>
`;
exports[`renders ./components/anchor/demo/onChange.md extend context correctly 1`] = `
exports[`renders ./components/anchor/demo/onChange.tsx extend context correctly 1`] = `
<div
class="ant-anchor-wrapper"
style="max-height: 100vh;"
@ -229,7 +229,7 @@ exports[`renders ./components/anchor/demo/onChange.md extend context correctly 1
</div>
`;
exports[`renders ./components/anchor/demo/onClick.md extend context correctly 1`] = `
exports[`renders ./components/anchor/demo/onClick.tsx extend context correctly 1`] = `
<div
class="ant-anchor-wrapper"
style="max-height: 100vh;"
@ -303,7 +303,7 @@ exports[`renders ./components/anchor/demo/onClick.md extend context correctly 1`
</div>
`;
exports[`renders ./components/anchor/demo/static.md extend context correctly 1`] = `
exports[`renders ./components/anchor/demo/static.tsx extend context correctly 1`] = `
<div
class="ant-anchor-wrapper"
style="max-height: 100vh;"
@ -377,7 +377,7 @@ exports[`renders ./components/anchor/demo/static.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/anchor/demo/targetOffset.md extend context correctly 1`] = `
exports[`renders ./components/anchor/demo/targetOffset.tsx extend context correctly 1`] = `
<div>
<div
class=""

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/anchor/demo/basic.md correctly 1`] = `
exports[`renders ./components/anchor/demo/basic.tsx correctly 1`] = `
<div>
<div
class=""
@ -80,7 +80,7 @@ exports[`renders ./components/anchor/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/anchor/demo/customizeHighlight.md correctly 1`] = `
exports[`renders ./components/anchor/demo/customizeHighlight.tsx correctly 1`] = `
<div
class="ant-anchor-wrapper"
style="max-height: 100vh;"
@ -155,7 +155,7 @@ exports[`renders ./components/anchor/demo/customizeHighlight.md correctly 1`] =
</div>
`;
exports[`renders ./components/anchor/demo/onChange.md correctly 1`] = `
exports[`renders ./components/anchor/demo/onChange.tsx correctly 1`] = `
<div
class="ant-anchor-wrapper"
style="max-height: 100vh;"
@ -229,7 +229,7 @@ exports[`renders ./components/anchor/demo/onChange.md correctly 1`] = `
</div>
`;
exports[`renders ./components/anchor/demo/onClick.md correctly 1`] = `
exports[`renders ./components/anchor/demo/onClick.tsx correctly 1`] = `
<div
class="ant-anchor-wrapper"
style="max-height: 100vh;"
@ -303,7 +303,7 @@ exports[`renders ./components/anchor/demo/onClick.md correctly 1`] = `
</div>
`;
exports[`renders ./components/anchor/demo/static.md correctly 1`] = `
exports[`renders ./components/anchor/demo/static.tsx correctly 1`] = `
<div
class="ant-anchor-wrapper"
style="max-height: 100vh;"
@ -377,7 +377,7 @@ exports[`renders ./components/anchor/demo/static.md correctly 1`] = `
</div>
`;
exports[`renders ./components/anchor/demo/targetOffset.md correctly 1`] = `
exports[`renders ./components/anchor/demo/targetOffset.tsx correctly 1`] = `
<div>
<div
class=""

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/auto-complete/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/auto-complete/demo/basic.tsx extend context correctly 1`] = `
Array [
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
@ -97,7 +97,7 @@ Array [
]
`;
exports[`renders ./components/auto-complete/demo/certain-category.md extend context correctly 1`] = `
exports[`renders ./components/auto-complete/demo/certain-category.tsx extend context correctly 1`] = `
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
style="width: 250px;"
@ -458,7 +458,7 @@ exports[`renders ./components/auto-complete/demo/certain-category.md extend cont
</div>
`;
exports[`renders ./components/auto-complete/demo/custom.md extend context correctly 1`] = `
exports[`renders ./components/auto-complete/demo/custom.tsx extend context correctly 1`] = `
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
style="width: 200px;"
@ -505,7 +505,7 @@ exports[`renders ./components/auto-complete/demo/custom.md extend context correc
</div>
`;
exports[`renders ./components/auto-complete/demo/form-debug.md extend context correctly 1`] = `
exports[`renders ./components/auto-complete/demo/form-debug.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
style="margin: 0px auto;"
@ -1723,7 +1723,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md extend context co
</form>
`;
exports[`renders ./components/auto-complete/demo/non-case-sensitive.md extend context correctly 1`] = `
exports[`renders ./components/auto-complete/demo/non-case-sensitive.tsx extend context correctly 1`] = `
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
style="width: 200px;"
@ -1847,7 +1847,7 @@ exports[`renders ./components/auto-complete/demo/non-case-sensitive.md extend co
</div>
`;
exports[`renders ./components/auto-complete/demo/options.md extend context correctly 1`] = `
exports[`renders ./components/auto-complete/demo/options.tsx extend context correctly 1`] = `
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
style="width: 200px;"
@ -1895,7 +1895,7 @@ exports[`renders ./components/auto-complete/demo/options.md extend context corre
</div>
`;
exports[`renders ./components/auto-complete/demo/render-panel.md extend context correctly 1`] = `
exports[`renders ./components/auto-complete/demo/render-panel.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="display: flex;"
@ -2074,7 +2074,7 @@ exports[`renders ./components/auto-complete/demo/render-panel.md extend context
</div>
`;
exports[`renders ./components/auto-complete/demo/status.md extend context correctly 1`] = `
exports[`renders ./components/auto-complete/demo/status.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"
@ -2177,7 +2177,7 @@ exports[`renders ./components/auto-complete/demo/status.md extend context correc
</div>
`;
exports[`renders ./components/auto-complete/demo/uncertain-category.md extend context correctly 1`] = `
exports[`renders ./components/auto-complete/demo/uncertain-category.tsx extend context correctly 1`] = `
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
style="width: 300px;"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/auto-complete/demo/basic.md correctly 1`] = `
exports[`renders ./components/auto-complete/demo/basic.tsx correctly 1`] = `
Array [
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
@ -69,7 +69,7 @@ Array [
]
`;
exports[`renders ./components/auto-complete/demo/certain-category.md correctly 1`] = `
exports[`renders ./components/auto-complete/demo/certain-category.tsx correctly 1`] = `
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
style="width: 250px;"
@ -138,7 +138,7 @@ exports[`renders ./components/auto-complete/demo/certain-category.md correctly 1
</div>
`;
exports[`renders ./components/auto-complete/demo/custom.md correctly 1`] = `
exports[`renders ./components/auto-complete/demo/custom.tsx correctly 1`] = `
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
style="width: 200px;"
@ -171,7 +171,7 @@ exports[`renders ./components/auto-complete/demo/custom.md correctly 1`] = `
</div>
`;
exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
exports[`renders ./components/auto-complete/demo/form-debug.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
style="margin: 0px auto;"
@ -1010,7 +1010,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
</form>
`;
exports[`renders ./components/auto-complete/demo/non-case-sensitive.md correctly 1`] = `
exports[`renders ./components/auto-complete/demo/non-case-sensitive.tsx correctly 1`] = `
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
style="width: 200px;"
@ -1044,7 +1044,7 @@ exports[`renders ./components/auto-complete/demo/non-case-sensitive.md correctly
</div>
`;
exports[`renders ./components/auto-complete/demo/options.md correctly 1`] = `
exports[`renders ./components/auto-complete/demo/options.tsx correctly 1`] = `
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
style="width: 200px;"
@ -1078,7 +1078,7 @@ exports[`renders ./components/auto-complete/demo/options.md correctly 1`] = `
</div>
`;
exports[`renders ./components/auto-complete/demo/render-panel.md correctly 1`] = `
exports[`renders ./components/auto-complete/demo/render-panel.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="display: flex;"
@ -1146,7 +1146,7 @@ exports[`renders ./components/auto-complete/demo/render-panel.md correctly 1`] =
</div>
`;
exports[`renders ./components/auto-complete/demo/status.md correctly 1`] = `
exports[`renders ./components/auto-complete/demo/status.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"
@ -1221,7 +1221,7 @@ exports[`renders ./components/auto-complete/demo/status.md correctly 1`] = `
</div>
`;
exports[`renders ./components/auto-complete/demo/uncertain-category.md correctly 1`] = `
exports[`renders ./components/auto-complete/demo/uncertain-category.tsx correctly 1`] = `
<div
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
style="width: 300px;"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/avatar/demo/badge.md extend context correctly 1`] = `
exports[`renders ./components/avatar/demo/badge.tsx extend context correctly 1`] = `
Array [
<span
class="avatar-item"
@ -85,7 +85,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/avatar/demo/basic.tsx extend context correctly 1`] = `
Array [
<div>
<span
@ -280,7 +280,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/dynamic.md extend context correctly 1`] = `
exports[`renders ./components/avatar/demo/dynamic.tsx extend context correctly 1`] = `
Array [
<span
class="ant-avatar ant-avatar-lg ant-avatar-circle"
@ -314,7 +314,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/fallback.md extend context correctly 1`] = `
exports[`renders ./components/avatar/demo/fallback.tsx extend context correctly 1`] = `
Array [
<span
class="ant-avatar ant-avatar-circle ant-avatar-image"
@ -333,7 +333,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/group.md extend context correctly 1`] = `
exports[`renders ./components/avatar/demo/group.tsx extend context correctly 1`] = `
Array [
<div
class="ant-avatar-group"
@ -840,7 +840,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/responsive.md extend context correctly 1`] = `
exports[`renders ./components/avatar/demo/responsive.tsx extend context correctly 1`] = `
<span
class="ant-avatar ant-avatar-circle ant-avatar-icon"
style="width: 24px; height: 24px; line-height: 24px; font-size: 12px;"
@ -867,7 +867,7 @@ exports[`renders ./components/avatar/demo/responsive.md extend context correctly
</span>
`;
exports[`renders ./components/avatar/demo/toggle-debug.md extend context correctly 1`] = `
exports[`renders ./components/avatar/demo/toggle-debug.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-default"
@ -944,7 +944,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/type.md extend context correctly 1`] = `
exports[`renders ./components/avatar/demo/type.tsx extend context correctly 1`] = `
Array [
<span
class="ant-avatar ant-avatar-circle ant-avatar-icon"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/avatar/demo/badge.md correctly 1`] = `
exports[`renders ./components/avatar/demo/badge.tsx correctly 1`] = `
Array [
<span
class="avatar-item"
@ -85,7 +85,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/basic.md correctly 1`] = `
exports[`renders ./components/avatar/demo/basic.tsx correctly 1`] = `
Array [
<div>
<span
@ -280,7 +280,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/dynamic.md correctly 1`] = `
exports[`renders ./components/avatar/demo/dynamic.tsx correctly 1`] = `
Array [
<span
class="ant-avatar ant-avatar-lg ant-avatar-circle"
@ -314,7 +314,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/fallback.md correctly 1`] = `
exports[`renders ./components/avatar/demo/fallback.tsx correctly 1`] = `
Array [
<span
class="ant-avatar ant-avatar-circle ant-avatar-image"
@ -333,7 +333,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/group.md correctly 1`] = `
exports[`renders ./components/avatar/demo/group.tsx correctly 1`] = `
Array [
<div
class="ant-avatar-group"
@ -519,7 +519,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/responsive.md correctly 1`] = `
exports[`renders ./components/avatar/demo/responsive.tsx correctly 1`] = `
<span
class="ant-avatar ant-avatar-circle ant-avatar-icon"
style="width: 24px; height: 24px; line-height: 24px; font-size: 12px;"
@ -546,7 +546,7 @@ exports[`renders ./components/avatar/demo/responsive.md correctly 1`] = `
</span>
`;
exports[`renders ./components/avatar/demo/toggle-debug.md correctly 1`] = `
exports[`renders ./components/avatar/demo/toggle-debug.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-default"
@ -623,7 +623,7 @@ Array [
]
`;
exports[`renders ./components/avatar/demo/type.md correctly 1`] = `
exports[`renders ./components/avatar/demo/type.tsx correctly 1`] = `
Array [
<span
class="ant-avatar ant-avatar-circle ant-avatar-icon"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/back-top/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/back-top/demo/basic.tsx extend context correctly 1`] = `
Array [
<div
class="ant-back-top"
@ -13,7 +13,7 @@ Array [
]
`;
exports[`renders ./components/back-top/demo/custom.md extend context correctly 1`] = `
exports[`renders ./components/back-top/demo/custom.tsx extend context correctly 1`] = `
<div
style="height: 600vh; padding: 8px;"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/back-top/demo/basic.md correctly 1`] = `
exports[`renders ./components/back-top/demo/basic.tsx correctly 1`] = `
Array [
<div
class="ant-back-top"
@ -13,7 +13,7 @@ Array [
]
`;
exports[`renders ./components/back-top/demo/custom.md correctly 1`] = `
exports[`renders ./components/back-top/demo/custom.tsx correctly 1`] = `
<div
style="height: 600vh; padding: 8px;"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/badge/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/basic.tsx extend context correctly 1`] = `
Array [
<span
class="ant-badge"
@ -87,7 +87,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/change.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/change.tsx extend context correctly 1`] = `
Array [
<span
class="ant-badge"
@ -242,7 +242,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/colorful.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/colorful.tsx extend context correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -565,7 +565,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/dot.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/dot.tsx extend context correctly 1`] = `
Array [
<span
class="ant-badge"
@ -611,7 +611,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/link.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/link.tsx extend context correctly 1`] = `
<a
href="#"
>
@ -646,7 +646,7 @@ exports[`renders ./components/badge/demo/link.md extend context correctly 1`] =
</a>
`;
exports[`renders ./components/badge/demo/mix.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/mix.tsx extend context correctly 1`] = `
Array [
<span
class="ant-badge ant-badge-status"
@ -829,7 +829,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/no-wrapper.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/no-wrapper.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -944,7 +944,7 @@ exports[`renders ./components/badge/demo/no-wrapper.md extend context correctly
</div>
`;
exports[`renders ./components/badge/demo/offset.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/offset.tsx extend context correctly 1`] = `
<span
class="ant-badge"
>
@ -976,7 +976,7 @@ exports[`renders ./components/badge/demo/offset.md extend context correctly 1`]
</span>
`;
exports[`renders ./components/badge/demo/overflow.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/overflow.tsx extend context correctly 1`] = `
Array [
<span
class="ant-badge"
@ -1076,7 +1076,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/ribbbon.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/ribbbon.tsx extend context correctly 1`] = `
Array [
<div
class="ant-ribbon-wrapper"
@ -1385,7 +1385,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/ribbon-debug.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/ribbon-debug.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"
@ -1548,7 +1548,7 @@ exports[`renders ./components/badge/demo/ribbon-debug.md extend context correctl
</div>
`;
exports[`renders ./components/badge/demo/size.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/size.tsx extend context correctly 1`] = `
Array [
<span
class="ant-badge"
@ -1609,7 +1609,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/status.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/status.tsx extend context correctly 1`] = `
Array [
<div
class="ant-space ant-space-horizontal ant-space-align-center"
@ -1766,7 +1766,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/title.md extend context correctly 1`] = `
exports[`renders ./components/badge/demo/title.tsx extend context correctly 1`] = `
Array [
<span
class="ant-badge"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/badge/demo/basic.md correctly 1`] = `
exports[`renders ./components/badge/demo/basic.tsx correctly 1`] = `
Array [
<span
class="ant-badge"
@ -87,7 +87,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/change.md correctly 1`] = `
exports[`renders ./components/badge/demo/change.tsx correctly 1`] = `
Array [
<span
class="ant-badge"
@ -242,7 +242,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/colorful.md correctly 1`] = `
exports[`renders ./components/badge/demo/colorful.tsx correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -565,7 +565,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/dot.md correctly 1`] = `
exports[`renders ./components/badge/demo/dot.tsx correctly 1`] = `
Array [
<span
class="ant-badge"
@ -611,7 +611,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/link.md correctly 1`] = `
exports[`renders ./components/badge/demo/link.tsx correctly 1`] = `
<a
href="#"
>
@ -646,7 +646,7 @@ exports[`renders ./components/badge/demo/link.md correctly 1`] = `
</a>
`;
exports[`renders ./components/badge/demo/mix.md correctly 1`] = `
exports[`renders ./components/badge/demo/mix.tsx correctly 1`] = `
Array [
<span
class="ant-badge ant-badge-status"
@ -829,7 +829,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/no-wrapper.md correctly 1`] = `
exports[`renders ./components/badge/demo/no-wrapper.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -944,7 +944,7 @@ exports[`renders ./components/badge/demo/no-wrapper.md correctly 1`] = `
</div>
`;
exports[`renders ./components/badge/demo/offset.md correctly 1`] = `
exports[`renders ./components/badge/demo/offset.tsx correctly 1`] = `
<span
class="ant-badge"
>
@ -976,7 +976,7 @@ exports[`renders ./components/badge/demo/offset.md correctly 1`] = `
</span>
`;
exports[`renders ./components/badge/demo/overflow.md correctly 1`] = `
exports[`renders ./components/badge/demo/overflow.tsx correctly 1`] = `
Array [
<span
class="ant-badge"
@ -1076,7 +1076,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/ribbbon.md correctly 1`] = `
exports[`renders ./components/badge/demo/ribbbon.tsx correctly 1`] = `
Array [
<div
class="ant-ribbon-wrapper"
@ -1385,7 +1385,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/ribbon-debug.md correctly 1`] = `
exports[`renders ./components/badge/demo/ribbon-debug.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"
@ -1548,7 +1548,7 @@ exports[`renders ./components/badge/demo/ribbon-debug.md correctly 1`] = `
</div>
`;
exports[`renders ./components/badge/demo/size.md correctly 1`] = `
exports[`renders ./components/badge/demo/size.tsx correctly 1`] = `
Array [
<span
class="ant-badge"
@ -1609,7 +1609,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/status.md correctly 1`] = `
exports[`renders ./components/badge/demo/status.tsx correctly 1`] = `
Array [
<div
class="ant-space ant-space-horizontal ant-space-align-center"
@ -1766,7 +1766,7 @@ Array [
]
`;
exports[`renders ./components/badge/demo/title.md correctly 1`] = `
exports[`renders ./components/badge/demo/title.tsx correctly 1`] = `
Array [
<span
class="ant-badge"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/breadcrumb/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/breadcrumb/demo/basic.tsx extend context correctly 1`] = `
<nav
class="ant-breadcrumb"
>
@ -65,7 +65,7 @@ exports[`renders ./components/breadcrumb/demo/basic.md extend context correctly
</nav>
`;
exports[`renders ./components/breadcrumb/demo/overlay.md extend context correctly 1`] = `
exports[`renders ./components/breadcrumb/demo/overlay.tsx extend context correctly 1`] = `
<nav
class="ant-breadcrumb"
>
@ -358,7 +358,7 @@ exports[`renders ./components/breadcrumb/demo/overlay.md extend context correctl
</nav>
`;
exports[`renders ./components/breadcrumb/demo/separator.md extend context correctly 1`] = `
exports[`renders ./components/breadcrumb/demo/separator.tsx extend context correctly 1`] = `
<nav
class="ant-breadcrumb"
>
@ -417,7 +417,7 @@ exports[`renders ./components/breadcrumb/demo/separator.md extend context correc
</nav>
`;
exports[`renders ./components/breadcrumb/demo/separator-component.md extend context correctly 1`] = `
exports[`renders ./components/breadcrumb/demo/separator-component.tsx extend context correctly 1`] = `
<nav
class="ant-breadcrumb"
>
@ -471,7 +471,7 @@ exports[`renders ./components/breadcrumb/demo/separator-component.md extend cont
</nav>
`;
exports[`renders ./components/breadcrumb/demo/withIcon.md extend context correctly 1`] = `
exports[`renders ./components/breadcrumb/demo/withIcon.tsx extend context correctly 1`] = `
<nav
class="ant-breadcrumb"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/breadcrumb/demo/basic.md correctly 1`] = `
exports[`renders ./components/breadcrumb/demo/basic.tsx correctly 1`] = `
<nav
class="ant-breadcrumb"
>
@ -65,7 +65,7 @@ exports[`renders ./components/breadcrumb/demo/basic.md correctly 1`] = `
</nav>
`;
exports[`renders ./components/breadcrumb/demo/overlay.md correctly 1`] = `
exports[`renders ./components/breadcrumb/demo/overlay.tsx correctly 1`] = `
<nav
class="ant-breadcrumb"
>
@ -153,7 +153,7 @@ exports[`renders ./components/breadcrumb/demo/overlay.md correctly 1`] = `
</nav>
`;
exports[`renders ./components/breadcrumb/demo/separator.md correctly 1`] = `
exports[`renders ./components/breadcrumb/demo/separator.tsx correctly 1`] = `
<nav
class="ant-breadcrumb"
>
@ -212,7 +212,7 @@ exports[`renders ./components/breadcrumb/demo/separator.md correctly 1`] = `
</nav>
`;
exports[`renders ./components/breadcrumb/demo/separator-component.md correctly 1`] = `
exports[`renders ./components/breadcrumb/demo/separator-component.tsx correctly 1`] = `
<nav
class="ant-breadcrumb"
>
@ -266,7 +266,7 @@ exports[`renders ./components/breadcrumb/demo/separator-component.md correctly 1
</nav>
`;
exports[`renders ./components/breadcrumb/demo/withIcon.md correctly 1`] = `
exports[`renders ./components/breadcrumb/demo/withIcon.tsx correctly 1`] = `
<nav
class="ant-breadcrumb"
>

View File

@ -1,3 +1,3 @@
import { extendTest } from '../../../tests/shared/demoTest';
extendTest('breadcrumb', { skip: ['react-router.md'] });
extendTest('breadcrumb', { skip: ['react-router.tsx'] });

View File

@ -1,3 +1,3 @@
import demoTest from '../../../tests/shared/demoTest';
demoTest('breadcrumb', { skip: ['react-router.md'] });
demoTest('breadcrumb', { skip: ['react-router.tsx'] });

View File

@ -1,5 +1,5 @@
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('Breadcrumb image', () => {
imageDemoTest('breadcrumb', { skip: ['react-router.md'] });
imageDemoTest('breadcrumb', { skip: ['react-router.tsx'] });
});

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/button/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/button/demo/basic.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -46,7 +46,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/block.md extend context correctly 1`] = `
exports[`renders ./components/button/demo/block.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary ant-btn-block"
@ -83,7 +83,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/chinese-chars-loading.md extend context correctly 1`] = `
exports[`renders ./components/button/demo/chinese-chars-loading.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-default ant-btn-loading"
@ -273,7 +273,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/danger.md extend context correctly 1`] = `
exports[`renders ./components/button/demo/danger.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary ant-btn-dangerous"
@ -318,7 +318,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/disabled.md extend context correctly 1`] = `
exports[`renders ./components/button/demo/disabled.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -487,7 +487,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/ghost.md extend context correctly 1`] = `
exports[`renders ./components/button/demo/ghost.tsx extend context correctly 1`] = `
<div
class="site-button-ghost-wrapper"
>
@ -526,7 +526,7 @@ exports[`renders ./components/button/demo/ghost.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/button/demo/icon.md extend context correctly 1`] = `
exports[`renders ./components/button/demo/icon.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-circle ant-btn-primary ant-btn-icon-only"
@ -1199,7 +1199,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/legacy-group.md extend context correctly 1`] = `
exports[`renders ./components/button/demo/legacy-group.tsx extend context correctly 1`] = `
Array [
<div>
<div
@ -1581,7 +1581,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/loading.md extend context correctly 1`] = `
exports[`renders ./components/button/demo/loading.tsx extend context correctly 1`] = `
Array [
<div
class="ant-space ant-space-horizontal ant-space-align-center"
@ -1775,7 +1775,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/multiple.md extend context correctly 1`] = `
exports[`renders ./components/button/demo/multiple.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -2019,7 +2019,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/size.md extend context correctly 1`] = `
exports[`renders ./components/button/demo/size.tsx extend context correctly 1`] = `
Array [
<div
class="ant-radio-group ant-radio-group-outline"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/button/demo/basic.md correctly 1`] = `
exports[`renders ./components/button/demo/basic.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -46,7 +46,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/block.md correctly 1`] = `
exports[`renders ./components/button/demo/block.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary ant-btn-block"
@ -83,7 +83,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/chinese-chars-loading.md correctly 1`] = `
exports[`renders ./components/button/demo/chinese-chars-loading.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-default ant-btn-loading"
@ -273,7 +273,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/danger.md correctly 1`] = `
exports[`renders ./components/button/demo/danger.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary ant-btn-dangerous"
@ -318,7 +318,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/disabled.md correctly 1`] = `
exports[`renders ./components/button/demo/disabled.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -487,7 +487,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/ghost.md correctly 1`] = `
exports[`renders ./components/button/demo/ghost.tsx correctly 1`] = `
<div
class="site-button-ghost-wrapper"
>
@ -526,7 +526,7 @@ exports[`renders ./components/button/demo/ghost.md correctly 1`] = `
</div>
`;
exports[`renders ./components/button/demo/icon.md correctly 1`] = `
exports[`renders ./components/button/demo/icon.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-circle ant-btn-primary ant-btn-icon-only"
@ -1007,7 +1007,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/legacy-group.md correctly 1`] = `
exports[`renders ./components/button/demo/legacy-group.tsx correctly 1`] = `
Array [
<div>
<div
@ -1245,7 +1245,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/loading.md correctly 1`] = `
exports[`renders ./components/button/demo/loading.tsx correctly 1`] = `
Array [
<div
class="ant-space ant-space-horizontal ant-space-align-center"
@ -1439,7 +1439,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/multiple.md correctly 1`] = `
exports[`renders ./components/button/demo/multiple.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -1496,7 +1496,7 @@ Array [
]
`;
exports[`renders ./components/button/demo/size.md correctly 1`] = `
exports[`renders ./components/button/demo/size.tsx correctly 1`] = `
Array [
<div
class="ant-radio-group ant-radio-group-outline"

View File

@ -1,5 +1,5 @@
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('Button image', () => {
imageDemoTest('button', { skip: ['loading.md'] });
imageDemoTest('button', { skip: ['loading.tsx'] });
});

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/calendar/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/calendar/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-picker-calendar ant-picker-calendar-full"
>
@ -1590,7 +1590,7 @@ exports[`renders ./components/calendar/demo/basic.md extend context correctly 1`
</div>
`;
exports[`renders ./components/calendar/demo/card.md extend context correctly 1`] = `
exports[`renders ./components/calendar/demo/card.tsx extend context correctly 1`] = `
<div
class="site-calendar-demo-card"
>
@ -3184,7 +3184,7 @@ exports[`renders ./components/calendar/demo/card.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/calendar/demo/customize-header.md extend context correctly 1`] = `
exports[`renders ./components/calendar/demo/customize-header.tsx extend context correctly 1`] = `
<div
class="site-calendar-customize-header-wrapper"
>
@ -4795,7 +4795,7 @@ exports[`renders ./components/calendar/demo/customize-header.md extend context c
</div>
`;
exports[`renders ./components/calendar/demo/notice-calendar.md extend context correctly 1`] = `
exports[`renders ./components/calendar/demo/notice-calendar.tsx extend context correctly 1`] = `
<div
class="ant-picker-calendar ant-picker-calendar-full"
>
@ -6782,7 +6782,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md extend context co
</div>
`;
exports[`renders ./components/calendar/demo/select.md extend context correctly 1`] = `
exports[`renders ./components/calendar/demo/select.tsx extend context correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-info ant-alert-no-icon"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
exports[`renders ./components/calendar/demo/basic.tsx correctly 1`] = `
<div
class="ant-picker-calendar ant-picker-calendar-full"
>
@ -944,7 +944,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
exports[`renders ./components/calendar/demo/card.tsx correctly 1`] = `
<div
class="site-calendar-demo-card"
>
@ -1892,7 +1892,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
</div>
`;
exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] = `
exports[`renders ./components/calendar/demo/customize-header.tsx correctly 1`] = `
<div
class="site-calendar-customize-header-wrapper"
>
@ -2865,7 +2865,7 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
</div>
`;
exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
exports[`renders ./components/calendar/demo/notice-calendar.tsx correctly 1`] = `
<div
class="ant-picker-calendar ant-picker-calendar-full"
>
@ -4206,7 +4206,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
</div>
`;
exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
exports[`renders ./components/calendar/demo/select.tsx correctly 1`] = `
Array [
<div
class="ant-alert ant-alert-info ant-alert-no-icon"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/card/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/card/demo/basic.tsx extend context correctly 1`] = `
Array [
<div
class="ant-card ant-card-bordered"
@ -85,7 +85,7 @@ Array [
]
`;
exports[`renders ./components/card/demo/border-less.md extend context correctly 1`] = `
exports[`renders ./components/card/demo/border-less.tsx extend context correctly 1`] = `
<div
class="site-card-border-less-wrapper"
>
@ -123,7 +123,7 @@ exports[`renders ./components/card/demo/border-less.md extend context correctly
</div>
`;
exports[`renders ./components/card/demo/flexible-content.md extend context correctly 1`] = `
exports[`renders ./components/card/demo/flexible-content.tsx extend context correctly 1`] = `
<div
class="ant-card ant-card-bordered ant-card-hoverable"
style="width: 240px;"
@ -161,7 +161,7 @@ exports[`renders ./components/card/demo/flexible-content.md extend context corre
</div>
`;
exports[`renders ./components/card/demo/grid-card.md extend context correctly 1`] = `
exports[`renders ./components/card/demo/grid-card.tsx extend context correctly 1`] = `
<div
class="ant-card ant-card-bordered ant-card-contain-grid"
>
@ -227,7 +227,7 @@ exports[`renders ./components/card/demo/grid-card.md extend context correctly 1`
</div>
`;
exports[`renders ./components/card/demo/in-column.md extend context correctly 1`] = `
exports[`renders ./components/card/demo/in-column.tsx extend context correctly 1`] = `
<div
class="site-card-wrapper"
>
@ -320,7 +320,7 @@ exports[`renders ./components/card/demo/in-column.md extend context correctly 1`
</div>
`;
exports[`renders ./components/card/demo/inner.md extend context correctly 1`] = `
exports[`renders ./components/card/demo/inner.tsx extend context correctly 1`] = `
<div
class="ant-card ant-card-bordered"
>
@ -407,7 +407,7 @@ exports[`renders ./components/card/demo/inner.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/card/demo/loading.md extend context correctly 1`] = `
exports[`renders ./components/card/demo/loading.tsx extend context correctly 1`] = `
Array [
<button
aria-checked="false"
@ -572,7 +572,7 @@ Array [
]
`;
exports[`renders ./components/card/demo/meta.md extend context correctly 1`] = `
exports[`renders ./components/card/demo/meta.tsx extend context correctly 1`] = `
<div
class="ant-card ant-card-bordered"
style="width: 300px;"
@ -700,7 +700,7 @@ exports[`renders ./components/card/demo/meta.md extend context correctly 1`] = `
</div>
`;
exports[`renders ./components/card/demo/simple.md extend context correctly 1`] = `
exports[`renders ./components/card/demo/simple.tsx extend context correctly 1`] = `
<div
class="ant-card ant-card-bordered"
style="width: 300px;"
@ -721,7 +721,7 @@ exports[`renders ./components/card/demo/simple.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/card/demo/tabs.md extend context correctly 1`] = `
exports[`renders ./components/card/demo/tabs.tsx extend context correctly 1`] = `
Array [
<div
class="ant-card ant-card-bordered ant-card-contain-tabs"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/card/demo/basic.md correctly 1`] = `
exports[`renders ./components/card/demo/basic.tsx correctly 1`] = `
Array [
<div
class="ant-card ant-card-bordered"
@ -85,7 +85,7 @@ Array [
]
`;
exports[`renders ./components/card/demo/border-less.md correctly 1`] = `
exports[`renders ./components/card/demo/border-less.tsx correctly 1`] = `
<div
class="site-card-border-less-wrapper"
>
@ -123,7 +123,7 @@ exports[`renders ./components/card/demo/border-less.md correctly 1`] = `
</div>
`;
exports[`renders ./components/card/demo/flexible-content.md correctly 1`] = `
exports[`renders ./components/card/demo/flexible-content.tsx correctly 1`] = `
<div
class="ant-card ant-card-bordered ant-card-hoverable"
style="width: 240px;"
@ -161,7 +161,7 @@ exports[`renders ./components/card/demo/flexible-content.md correctly 1`] = `
</div>
`;
exports[`renders ./components/card/demo/grid-card.md correctly 1`] = `
exports[`renders ./components/card/demo/grid-card.tsx correctly 1`] = `
<div
class="ant-card ant-card-bordered ant-card-contain-grid"
>
@ -227,7 +227,7 @@ exports[`renders ./components/card/demo/grid-card.md correctly 1`] = `
</div>
`;
exports[`renders ./components/card/demo/in-column.md correctly 1`] = `
exports[`renders ./components/card/demo/in-column.tsx correctly 1`] = `
<div
class="site-card-wrapper"
>
@ -320,7 +320,7 @@ exports[`renders ./components/card/demo/in-column.md correctly 1`] = `
</div>
`;
exports[`renders ./components/card/demo/inner.md correctly 1`] = `
exports[`renders ./components/card/demo/inner.tsx correctly 1`] = `
<div
class="ant-card ant-card-bordered"
>
@ -407,7 +407,7 @@ exports[`renders ./components/card/demo/inner.md correctly 1`] = `
</div>
`;
exports[`renders ./components/card/demo/loading.md correctly 1`] = `
exports[`renders ./components/card/demo/loading.tsx correctly 1`] = `
Array [
<button
aria-checked="false"
@ -572,7 +572,7 @@ Array [
]
`;
exports[`renders ./components/card/demo/meta.md correctly 1`] = `
exports[`renders ./components/card/demo/meta.tsx correctly 1`] = `
<div
class="ant-card ant-card-bordered"
style="width: 300px;"
@ -700,7 +700,7 @@ exports[`renders ./components/card/demo/meta.md correctly 1`] = `
</div>
`;
exports[`renders ./components/card/demo/simple.md correctly 1`] = `
exports[`renders ./components/card/demo/simple.tsx correctly 1`] = `
<div
class="ant-card ant-card-bordered"
style="width: 300px;"
@ -721,7 +721,7 @@ exports[`renders ./components/card/demo/simple.md correctly 1`] = `
</div>
`;
exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
exports[`renders ./components/card/demo/tabs.tsx correctly 1`] = `
Array [
<div
class="ant-card ant-card-bordered ant-card-contain-tabs"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/carousel/demo/autoplay.md extend context correctly 1`] = `
exports[`renders ./components/carousel/demo/autoplay.tsx extend context correctly 1`] = `
<div
class="ant-carousel"
>
@ -234,7 +234,7 @@ exports[`renders ./components/carousel/demo/autoplay.md extend context correctly
</div>
`;
exports[`renders ./components/carousel/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/carousel/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-carousel"
>
@ -468,7 +468,7 @@ exports[`renders ./components/carousel/demo/basic.md extend context correctly 1`
</div>
`;
exports[`renders ./components/carousel/demo/fade.md extend context correctly 1`] = `
exports[`renders ./components/carousel/demo/fade.tsx extend context correctly 1`] = `
<div
class="ant-carousel"
>
@ -602,7 +602,7 @@ exports[`renders ./components/carousel/demo/fade.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/carousel/demo/position.md extend context correctly 1`] = `
exports[`renders ./components/carousel/demo/position.tsx extend context correctly 1`] = `
Array [
<div
class="ant-radio-group ant-radio-group-outline"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/carousel/demo/autoplay.md correctly 1`] = `
exports[`renders ./components/carousel/demo/autoplay.tsx correctly 1`] = `
<div
class="ant-carousel"
>
@ -234,7 +234,7 @@ exports[`renders ./components/carousel/demo/autoplay.md correctly 1`] = `
</div>
`;
exports[`renders ./components/carousel/demo/basic.md correctly 1`] = `
exports[`renders ./components/carousel/demo/basic.tsx correctly 1`] = `
<div
class="ant-carousel"
>
@ -468,7 +468,7 @@ exports[`renders ./components/carousel/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/carousel/demo/fade.md correctly 1`] = `
exports[`renders ./components/carousel/demo/fade.tsx correctly 1`] = `
<div
class="ant-carousel"
>
@ -602,7 +602,7 @@ exports[`renders ./components/carousel/demo/fade.md correctly 1`] = `
</div>
`;
exports[`renders ./components/carousel/demo/position.md correctly 1`] = `
exports[`renders ./components/carousel/demo/position.tsx correctly 1`] = `
Array [
<div
class="ant-radio-group ant-radio-group-outline"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/cascader/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -151,7 +151,7 @@ exports[`renders ./components/cascader/demo/basic.md extend context correctly 1`
</div>
`;
exports[`renders ./components/cascader/demo/change-on-select.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/change-on-select.tsx extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -300,7 +300,7 @@ exports[`renders ./components/cascader/demo/change-on-select.md extend context c
</div>
`;
exports[`renders ./components/cascader/demo/custom-dropdown.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/custom-dropdown.tsx extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -463,7 +463,7 @@ exports[`renders ./components/cascader/demo/custom-dropdown.md extend context co
</div>
`;
exports[`renders ./components/cascader/demo/custom-render.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/custom-render.tsx extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
style="width: 100%;"
@ -656,7 +656,7 @@ exports[`renders ./components/cascader/demo/custom-render.md extend context corr
</div>
`;
exports[`renders ./components/cascader/demo/custom-trigger.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/custom-trigger.tsx extend context correctly 1`] = `
<span>
Unselect
<a
@ -757,7 +757,7 @@ exports[`renders ./components/cascader/demo/custom-trigger.md extend context cor
</span>
`;
exports[`renders ./components/cascader/demo/default-value.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/default-value.tsx extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -935,7 +935,7 @@ exports[`renders ./components/cascader/demo/default-value.md extend context corr
</div>
`;
exports[`renders ./components/cascader/demo/disabled-option.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/disabled-option.tsx extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -1084,7 +1084,7 @@ exports[`renders ./components/cascader/demo/disabled-option.md extend context co
</div>
`;
exports[`renders ./components/cascader/demo/fields-name.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/fields-name.tsx extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -1235,7 +1235,7 @@ exports[`renders ./components/cascader/demo/fields-name.md extend context correc
</div>
`;
exports[`renders ./components/cascader/demo/hover.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/hover.tsx extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -1384,7 +1384,7 @@ exports[`renders ./components/cascader/demo/hover.md extend context correctly 1`
</div>
`;
exports[`renders ./components/cascader/demo/lazy.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/lazy.tsx extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -1533,7 +1533,7 @@ exports[`renders ./components/cascader/demo/lazy.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/cascader/demo/multiple.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/multiple.tsx extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-multiple ant-select-allow-clear"
style="width: 100%;"
@ -1686,7 +1686,7 @@ exports[`renders ./components/cascader/demo/multiple.md extend context correctly
</div>
`;
exports[`renders ./components/cascader/demo/placement.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/placement.tsx extend context correctly 1`] = `
Array [
<div
class="ant-radio-group ant-radio-group-outline"
@ -1922,7 +1922,7 @@ Array [
]
`;
exports[`renders ./components/cascader/demo/render-panel.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/render-panel.tsx extend context correctly 1`] = `
<div
style="padding-bottom: 0px; position: relative; min-width: 0;"
>
@ -2082,7 +2082,7 @@ exports[`renders ./components/cascader/demo/render-panel.md extend context corre
</div>
`;
exports[`renders ./components/cascader/demo/search.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/search.tsx extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-show-search"
>
@ -2230,7 +2230,7 @@ exports[`renders ./components/cascader/demo/search.md extend context correctly 1
</div>
`;
exports[`renders ./components/cascader/demo/showCheckedStrategy.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/showCheckedStrategy.tsx extend context correctly 1`] = `
Array [
<div
class="ant-select ant-cascader ant-select-multiple ant-select-allow-clear"
@ -2615,7 +2615,7 @@ Array [
]
`;
exports[`renders ./components/cascader/demo/size.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/size.tsx extend context correctly 1`] = `
Array [
<div
class="ant-select ant-cascader ant-select-lg ant-select-single ant-select-allow-clear ant-select-show-arrow"
@ -3064,7 +3064,7 @@ Array [
]
`;
exports[`renders ./components/cascader/demo/status.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/status.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -3333,7 +3333,7 @@ exports[`renders ./components/cascader/demo/status.md extend context correctly 1
</div>
`;
exports[`renders ./components/cascader/demo/suffix.md extend context correctly 1`] = `
exports[`renders ./components/cascader/demo/suffix.tsx extend context correctly 1`] = `
Array [
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/cascader/demo/basic.md correctly 1`] = `
exports[`renders ./components/cascader/demo/basic.tsx correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -61,7 +61,7 @@ exports[`renders ./components/cascader/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/change-on-select.md correctly 1`] = `
exports[`renders ./components/cascader/demo/change-on-select.tsx correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -120,7 +120,7 @@ exports[`renders ./components/cascader/demo/change-on-select.md correctly 1`] =
</div>
`;
exports[`renders ./components/cascader/demo/custom-dropdown.md correctly 1`] = `
exports[`renders ./components/cascader/demo/custom-dropdown.tsx correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -181,7 +181,7 @@ exports[`renders ./components/cascader/demo/custom-dropdown.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/custom-render.md correctly 1`] = `
exports[`renders ./components/cascader/demo/custom-render.tsx correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
style="width: 100%;"
@ -284,7 +284,7 @@ exports[`renders ./components/cascader/demo/custom-render.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/custom-trigger.md correctly 1`] = `
exports[`renders ./components/cascader/demo/custom-trigger.tsx correctly 1`] = `
<span>
Unselect
<a
@ -295,7 +295,7 @@ exports[`renders ./components/cascader/demo/custom-trigger.md correctly 1`] = `
</span>
`;
exports[`renders ./components/cascader/demo/default-value.md correctly 1`] = `
exports[`renders ./components/cascader/demo/default-value.tsx correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -383,7 +383,7 @@ exports[`renders ./components/cascader/demo/default-value.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/disabled-option.md correctly 1`] = `
exports[`renders ./components/cascader/demo/disabled-option.tsx correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -442,7 +442,7 @@ exports[`renders ./components/cascader/demo/disabled-option.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/fields-name.md correctly 1`] = `
exports[`renders ./components/cascader/demo/fields-name.tsx correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -503,7 +503,7 @@ exports[`renders ./components/cascader/demo/fields-name.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/hover.md correctly 1`] = `
exports[`renders ./components/cascader/demo/hover.tsx correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -562,7 +562,7 @@ exports[`renders ./components/cascader/demo/hover.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/lazy.md correctly 1`] = `
exports[`renders ./components/cascader/demo/lazy.tsx correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"
>
@ -621,7 +621,7 @@ exports[`renders ./components/cascader/demo/lazy.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/multiple.md correctly 1`] = `
exports[`renders ./components/cascader/demo/multiple.tsx correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-multiple ant-select-allow-clear"
style="width: 100%;"
@ -670,7 +670,7 @@ exports[`renders ./components/cascader/demo/multiple.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/placement.md correctly 1`] = `
exports[`renders ./components/cascader/demo/placement.tsx correctly 1`] = `
Array [
<div
class="ant-radio-group ant-radio-group-outline"
@ -816,7 +816,7 @@ Array [
]
`;
exports[`renders ./components/cascader/demo/render-panel.md correctly 1`] = `
exports[`renders ./components/cascader/demo/render-panel.tsx correctly 1`] = `
<div
style="padding-bottom: 0px; position: relative; min-width: 0;"
>
@ -976,7 +976,7 @@ exports[`renders ./components/cascader/demo/render-panel.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/search.md correctly 1`] = `
exports[`renders ./components/cascader/demo/search.tsx correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-show-search"
>
@ -1034,7 +1034,7 @@ exports[`renders ./components/cascader/demo/search.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/showCheckedStrategy.md correctly 1`] = `
exports[`renders ./components/cascader/demo/showCheckedStrategy.tsx correctly 1`] = `
Array [
<div
class="ant-select ant-cascader ant-select-multiple ant-select-allow-clear"
@ -1211,7 +1211,7 @@ Array [
]
`;
exports[`renders ./components/cascader/demo/size.md correctly 1`] = `
exports[`renders ./components/cascader/demo/size.tsx correctly 1`] = `
Array [
<div
class="ant-select ant-cascader ant-select-lg ant-select-single ant-select-allow-clear ant-select-show-arrow"
@ -1390,7 +1390,7 @@ Array [
]
`;
exports[`renders ./components/cascader/demo/status.md correctly 1`] = `
exports[`renders ./components/cascader/demo/status.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -1511,7 +1511,7 @@ exports[`renders ./components/cascader/demo/status.md correctly 1`] = `
</div>
`;
exports[`renders ./components/cascader/demo/suffix.md correctly 1`] = `
exports[`renders ./components/cascader/demo/suffix.tsx correctly 1`] = `
Array [
<div
class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow"

View File

@ -1,5 +1,7 @@
/*
* version: 4.20.0 */import { Cascader } from 'antd';
* version: 4.20.0 */
import React from 'react';
import { Cascader } from 'antd';
const { SHOW_CHILD } = Cascader;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/checkbox/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/checkbox/demo/basic.tsx extend context correctly 1`] = `
<label
class="ant-checkbox-wrapper"
>
@ -22,7 +22,7 @@ exports[`renders ./components/checkbox/demo/basic.md extend context correctly 1`
</label>
`;
exports[`renders ./components/checkbox/demo/check-all.md extend context correctly 1`] = `
exports[`renders ./components/checkbox/demo/check-all.tsx extend context correctly 1`] = `
Array [
<label
class="ant-checkbox-wrapper"
@ -114,7 +114,7 @@ Array [
]
`;
exports[`renders ./components/checkbox/demo/controller.md extend context correctly 1`] = `
exports[`renders ./components/checkbox/demo/controller.tsx extend context correctly 1`] = `
Array [
<p
style="margin-bottom: 20px;"
@ -162,7 +162,7 @@ Array [
]
`;
exports[`renders ./components/checkbox/demo/debug-line.md extend context correctly 1`] = `
exports[`renders ./components/checkbox/demo/debug-line.tsx extend context correctly 1`] = `
<div>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
@ -365,7 +365,7 @@ exports[`renders ./components/checkbox/demo/debug-line.md extend context correct
</div>
`;
exports[`renders ./components/checkbox/demo/disabled.md extend context correctly 1`] = `
exports[`renders ./components/checkbox/demo/disabled.tsx extend context correctly 1`] = `
Array [
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
@ -406,7 +406,7 @@ Array [
]
`;
exports[`renders ./components/checkbox/demo/group.md extend context correctly 1`] = `
exports[`renders ./components/checkbox/demo/group.tsx extend context correctly 1`] = `
Array [
<div
class="ant-checkbox-group"
@ -604,7 +604,7 @@ Array [
]
`;
exports[`renders ./components/checkbox/demo/layout.md extend context correctly 1`] = `
exports[`renders ./components/checkbox/demo/layout.tsx extend context correctly 1`] = `
<div
class="ant-checkbox-group"
style="width: 100%;"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/checkbox/demo/basic.md correctly 1`] = `
exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
<label
class="ant-checkbox-wrapper"
>
@ -22,7 +22,7 @@ exports[`renders ./components/checkbox/demo/basic.md correctly 1`] = `
</label>
`;
exports[`renders ./components/checkbox/demo/check-all.md correctly 1`] = `
exports[`renders ./components/checkbox/demo/check-all.tsx correctly 1`] = `
Array [
<label
class="ant-checkbox-wrapper"
@ -114,7 +114,7 @@ Array [
]
`;
exports[`renders ./components/checkbox/demo/controller.md correctly 1`] = `
exports[`renders ./components/checkbox/demo/controller.tsx correctly 1`] = `
Array [
<p
style="margin-bottom: 20px;"
@ -162,7 +162,7 @@ Array [
]
`;
exports[`renders ./components/checkbox/demo/debug-line.md correctly 1`] = `
exports[`renders ./components/checkbox/demo/debug-line.tsx correctly 1`] = `
<div>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
@ -365,7 +365,7 @@ exports[`renders ./components/checkbox/demo/debug-line.md correctly 1`] = `
</div>
`;
exports[`renders ./components/checkbox/demo/disabled.md correctly 1`] = `
exports[`renders ./components/checkbox/demo/disabled.tsx correctly 1`] = `
Array [
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
@ -406,7 +406,7 @@ Array [
]
`;
exports[`renders ./components/checkbox/demo/group.md correctly 1`] = `
exports[`renders ./components/checkbox/demo/group.tsx correctly 1`] = `
Array [
<div
class="ant-checkbox-group"
@ -604,7 +604,7 @@ Array [
]
`;
exports[`renders ./components/checkbox/demo/layout.md correctly 1`] = `
exports[`renders ./components/checkbox/demo/layout.tsx correctly 1`] = `
<div
class="ant-checkbox-group"
style="width: 100%;"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/collapse/demo/accordion.md extend context correctly 1`] = `
exports[`renders ./components/collapse/demo/accordion.tsx extend context correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start"
role="tablist"
@ -128,7 +128,7 @@ exports[`renders ./components/collapse/demo/accordion.md extend context correctl
</div>
`;
exports[`renders ./components/collapse/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/collapse/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start"
>
@ -269,7 +269,7 @@ exports[`renders ./components/collapse/demo/basic.md extend context correctly 1`
</div>
`;
exports[`renders ./components/collapse/demo/borderless.md extend context correctly 1`] = `
exports[`renders ./components/collapse/demo/borderless.tsx extend context correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless"
>
@ -410,7 +410,7 @@ exports[`renders ./components/collapse/demo/borderless.md extend context correct
</div>
`;
exports[`renders ./components/collapse/demo/collapsible.md extend context correctly 1`] = `
exports[`renders ./components/collapse/demo/collapsible.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -526,7 +526,7 @@ exports[`renders ./components/collapse/demo/collapsible.md extend context correc
</div>
`;
exports[`renders ./components/collapse/demo/custom.md extend context correctly 1`] = `
exports[`renders ./components/collapse/demo/custom.tsx extend context correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless site-collapse-custom-collapse"
>
@ -667,7 +667,7 @@ exports[`renders ./components/collapse/demo/custom.md extend context correctly 1
</div>
`;
exports[`renders ./components/collapse/demo/extra.md extend context correctly 1`] = `
exports[`renders ./components/collapse/demo/extra.tsx extend context correctly 1`] = `
Array [
<div
class="ant-collapse ant-collapse-icon-position-start"
@ -1029,7 +1029,7 @@ Array [
]
`;
exports[`renders ./components/collapse/demo/ghost.md extend context correctly 1`] = `
exports[`renders ./components/collapse/demo/ghost.tsx extend context correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start ant-collapse-ghost"
>
@ -1170,7 +1170,7 @@ exports[`renders ./components/collapse/demo/ghost.md extend context correctly 1`
</div>
`;
exports[`renders ./components/collapse/demo/mix.md extend context correctly 1`] = `
exports[`renders ./components/collapse/demo/mix.tsx extend context correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start"
>
@ -1297,7 +1297,7 @@ exports[`renders ./components/collapse/demo/mix.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/collapse/demo/noarrow.md extend context correctly 1`] = `
exports[`renders ./components/collapse/demo/noarrow.tsx extend context correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/collapse/demo/accordion.md correctly 1`] = `
exports[`renders ./components/collapse/demo/accordion.tsx correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start"
role="tablist"
@ -128,7 +128,7 @@ exports[`renders ./components/collapse/demo/accordion.md correctly 1`] = `
</div>
`;
exports[`renders ./components/collapse/demo/basic.md correctly 1`] = `
exports[`renders ./components/collapse/demo/basic.tsx correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start"
>
@ -269,7 +269,7 @@ exports[`renders ./components/collapse/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/collapse/demo/borderless.md correctly 1`] = `
exports[`renders ./components/collapse/demo/borderless.tsx correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless"
>
@ -410,7 +410,7 @@ exports[`renders ./components/collapse/demo/borderless.md correctly 1`] = `
</div>
`;
exports[`renders ./components/collapse/demo/collapsible.md correctly 1`] = `
exports[`renders ./components/collapse/demo/collapsible.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -526,7 +526,7 @@ exports[`renders ./components/collapse/demo/collapsible.md correctly 1`] = `
</div>
`;
exports[`renders ./components/collapse/demo/custom.md correctly 1`] = `
exports[`renders ./components/collapse/demo/custom.tsx correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless site-collapse-custom-collapse"
>
@ -667,7 +667,7 @@ exports[`renders ./components/collapse/demo/custom.md correctly 1`] = `
</div>
`;
exports[`renders ./components/collapse/demo/extra.md correctly 1`] = `
exports[`renders ./components/collapse/demo/extra.tsx correctly 1`] = `
Array [
<div
class="ant-collapse ant-collapse-icon-position-start"
@ -947,7 +947,7 @@ Array [
]
`;
exports[`renders ./components/collapse/demo/ghost.md correctly 1`] = `
exports[`renders ./components/collapse/demo/ghost.tsx correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start ant-collapse-ghost"
>
@ -1088,7 +1088,7 @@ exports[`renders ./components/collapse/demo/ghost.md correctly 1`] = `
</div>
`;
exports[`renders ./components/collapse/demo/mix.md correctly 1`] = `
exports[`renders ./components/collapse/demo/mix.tsx correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start"
>
@ -1215,7 +1215,7 @@ exports[`renders ./components/collapse/demo/mix.md correctly 1`] = `
</div>
`;
exports[`renders ./components/collapse/demo/noarrow.md correctly 1`] = `
exports[`renders ./components/collapse/demo/noarrow.tsx correctly 1`] = `
<div
class="ant-collapse ant-collapse-icon-position-start"
>

View File

@ -1,5 +1,5 @@
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('ConfigProvider image', () => {
imageDemoTest('config-provider', { skip: ['direction.md'] });
imageDemoTest('config-provider', { skip: ['direction.tsx'] });
});

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/date-picker/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -1856,7 +1856,7 @@ exports[`renders ./components/date-picker/demo/basic.md extend context correctly
</div>
`;
exports[`renders ./components/date-picker/demo/bordered.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/bordered.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -6966,7 +6966,7 @@ exports[`renders ./components/date-picker/demo/bordered.md extend context correc
</div>
`;
exports[`renders ./components/date-picker/demo/date-render.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/date-render.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -8759,7 +8759,7 @@ exports[`renders ./components/date-picker/demo/date-render.md extend context cor
</div>
`;
exports[`renders ./components/date-picker/demo/disabled.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/disabled.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -11991,7 +11991,7 @@ exports[`renders ./components/date-picker/demo/disabled.md extend context correc
</div>
`;
exports[`renders ./components/date-picker/demo/disabled-date.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/disabled-date.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -16893,7 +16893,7 @@ exports[`renders ./components/date-picker/demo/disabled-date.md extend context c
</div>
`;
exports[`renders ./components/date-picker/demo/extra-footer.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/extra-footer.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -22894,7 +22894,7 @@ exports[`renders ./components/date-picker/demo/extra-footer.md extend context co
</div>
`;
exports[`renders ./components/date-picker/demo/format.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/format.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -26888,7 +26888,7 @@ exports[`renders ./components/date-picker/demo/format.md extend context correctl
</div>
`;
exports[`renders ./components/date-picker/demo/mode.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/mode.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -28601,7 +28601,7 @@ exports[`renders ./components/date-picker/demo/mode.md extend context correctly
</div>
`;
exports[`renders ./components/date-picker/demo/placement.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/placement.tsx extend context correctly 1`] = `
Array [
<div
class="ant-radio-group ant-radio-group-outline"
@ -30462,7 +30462,7 @@ Array [
]
`;
exports[`renders ./components/date-picker/demo/presetted-ranges.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/presetted-ranges.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -33692,7 +33692,7 @@ exports[`renders ./components/date-picker/demo/presetted-ranges.md extend contex
</div>
`;
exports[`renders ./components/date-picker/demo/range-picker.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/range-picker.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -39396,7 +39396,7 @@ exports[`renders ./components/date-picker/demo/range-picker.md extend context co
</div>
`;
exports[`renders ./components/date-picker/demo/render-panel.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/render-panel.tsx extend context correctly 1`] = `
<div
style="padding-bottom: 0px; position: relative; min-width: 0;"
>
@ -40000,7 +40000,7 @@ exports[`renders ./components/date-picker/demo/render-panel.md extend context co
</div>
`;
exports[`renders ./components/date-picker/demo/select-in-range.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/select-in-range.tsx extend context correctly 1`] = `
Array [
<div
class="ant-picker ant-picker-range"
@ -41183,7 +41183,7 @@ Array [
]
`;
exports[`renders ./components/date-picker/demo/size.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/size.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -43905,7 +43905,7 @@ exports[`renders ./components/date-picker/demo/size.md extend context correctly
</div>
`;
exports[`renders ./components/date-picker/demo/start-end.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/start-end.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -47811,7 +47811,7 @@ exports[`renders ./components/date-picker/demo/start-end.md extend context corre
</div>
`;
exports[`renders ./components/date-picker/demo/status.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/status.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"
@ -51384,7 +51384,7 @@ exports[`renders ./components/date-picker/demo/status.md extend context correctl
</div>
`;
exports[`renders ./components/date-picker/demo/suffix.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/suffix.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -56616,7 +56616,7 @@ exports[`renders ./components/date-picker/demo/suffix.md extend context correctl
</div>
`;
exports[`renders ./components/date-picker/demo/switchable.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/switchable.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -58249,7 +58249,7 @@ exports[`renders ./components/date-picker/demo/switchable.md extend context corr
</div>
`;
exports[`renders ./components/date-picker/demo/time.md extend context correctly 1`] = `
exports[`renders ./components/date-picker/demo/time.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/date-picker/demo/basic.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/basic.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -226,7 +226,7 @@ exports[`renders ./components/date-picker/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/bordered.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/bordered.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -752,7 +752,7 @@ exports[`renders ./components/date-picker/demo/bordered.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/date-render.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/date-render.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -888,7 +888,7 @@ exports[`renders ./components/date-picker/demo/date-render.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/disabled.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/disabled.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -1182,7 +1182,7 @@ exports[`renders ./components/date-picker/demo/disabled.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/disabled-date.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/disabled-date.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -1448,7 +1448,7 @@ exports[`renders ./components/date-picker/demo/disabled-date.md correctly 1`] =
</div>
`;
exports[`renders ./components/date-picker/demo/extra-footer.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/extra-footer.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -1758,7 +1758,7 @@ exports[`renders ./components/date-picker/demo/extra-footer.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/format.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/format.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -2213,7 +2213,7 @@ exports[`renders ./components/date-picker/demo/format.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/mode.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/mode.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -2349,7 +2349,7 @@ exports[`renders ./components/date-picker/demo/mode.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/placement.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/placement.tsx correctly 1`] = `
Array [
<div
class="ant-radio-group ant-radio-group-outline"
@ -2559,7 +2559,7 @@ Array [
]
`;
exports[`renders ./components/date-picker/demo/presetted-ranges.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/presetted-ranges.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -2737,7 +2737,7 @@ exports[`renders ./components/date-picker/demo/presetted-ranges.md correctly 1`]
</div>
`;
exports[`renders ./components/date-picker/demo/range-picker.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/range-picker.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -3259,7 +3259,7 @@ exports[`renders ./components/date-picker/demo/range-picker.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/render-panel.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/render-panel.tsx correctly 1`] = `
<div
style="padding-bottom: 0px; position: relative; min-width: 0;"
>
@ -3863,7 +3863,7 @@ exports[`renders ./components/date-picker/demo/render-panel.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/select-in-range.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/select-in-range.tsx correctly 1`] = `
<div
class="ant-picker ant-picker-range"
>
@ -3947,7 +3947,7 @@ exports[`renders ./components/date-picker/demo/select-in-range.md correctly 1`]
</div>
`;
exports[`renders ./components/date-picker/demo/size.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/size.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -4238,7 +4238,7 @@ exports[`renders ./components/date-picker/demo/size.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/start-end.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/start-end.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -4332,7 +4332,7 @@ exports[`renders ./components/date-picker/demo/start-end.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/status.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/status.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"
@ -4603,7 +4603,7 @@ exports[`renders ./components/date-picker/demo/status.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/suffix.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/suffix.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -4973,7 +4973,7 @@ exports[`renders ./components/date-picker/demo/suffix.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/switchable.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/switchable.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -5091,7 +5091,7 @@ exports[`renders ./components/date-picker/demo/switchable.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/time.md correctly 1`] = `
exports[`renders ./components/date-picker/demo/time.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>

View File

@ -1,3 +1,3 @@
import { extendTest } from '../../../tests/shared/demoTest';
extendTest('date-picker', { skip: ['locale.md'] });
extendTest('date-picker', { skip: ['locale.tsx'] });

View File

@ -1,3 +1,3 @@
import demoTest from '../../../tests/shared/demoTest';
demoTest('date-picker', { skip: ['locale.md'] });
demoTest('date-picker', { skip: ['locale.tsx'] });

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/descriptions/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/descriptions/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-descriptions"
>
@ -139,7 +139,7 @@ exports[`renders ./components/descriptions/demo/basic.md extend context correctl
</div>
`;
exports[`renders ./components/descriptions/demo/border.md extend context correctly 1`] = `
exports[`renders ./components/descriptions/demo/border.tsx extend context correctly 1`] = `
<div
class="ant-descriptions ant-descriptions-bordered"
>
@ -385,7 +385,7 @@ exports[`renders ./components/descriptions/demo/border.md extend context correct
</div>
`;
exports[`renders ./components/descriptions/demo/responsive.md extend context correctly 1`] = `
exports[`renders ./components/descriptions/demo/responsive.tsx extend context correctly 1`] = `
<div>
<div
class="ant-descriptions ant-descriptions-bordered"
@ -561,7 +561,7 @@ exports[`renders ./components/descriptions/demo/responsive.md extend context cor
</div>
`;
exports[`renders ./components/descriptions/demo/size.md extend context correctly 1`] = `
exports[`renders ./components/descriptions/demo/size.tsx extend context correctly 1`] = `
<div>
<div
class="ant-radio-group ant-radio-group-outline"
@ -987,7 +987,7 @@ exports[`renders ./components/descriptions/demo/size.md extend context correctly
</div>
`;
exports[`renders ./components/descriptions/demo/style.md extend context correctly 1`] = `
exports[`renders ./components/descriptions/demo/style.tsx extend context correctly 1`] = `
Array [
<button
aria-checked="true"
@ -1241,7 +1241,7 @@ Array [
]
`;
exports[`renders ./components/descriptions/demo/text.md extend context correctly 1`] = `
exports[`renders ./components/descriptions/demo/text.tsx extend context correctly 1`] = `
<div
class="ant-descriptions"
>
@ -1640,7 +1640,7 @@ exports[`renders ./components/descriptions/demo/text.md extend context correctly
</div>
`;
exports[`renders ./components/descriptions/demo/vertical.md extend context correctly 1`] = `
exports[`renders ./components/descriptions/demo/vertical.tsx extend context correctly 1`] = `
<div
class="ant-descriptions"
>
@ -1844,7 +1844,7 @@ exports[`renders ./components/descriptions/demo/vertical.md extend context corre
</div>
`;
exports[`renders ./components/descriptions/demo/vertical-border.md extend context correctly 1`] = `
exports[`renders ./components/descriptions/demo/vertical-border.tsx extend context correctly 1`] = `
<div
class="ant-descriptions ant-descriptions-bordered"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/descriptions/demo/basic.md correctly 1`] = `
exports[`renders ./components/descriptions/demo/basic.tsx correctly 1`] = `
<div
class="ant-descriptions"
>
@ -139,7 +139,7 @@ exports[`renders ./components/descriptions/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
exports[`renders ./components/descriptions/demo/border.tsx correctly 1`] = `
<div
class="ant-descriptions ant-descriptions-bordered"
>
@ -385,7 +385,7 @@ exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
</div>
`;
exports[`renders ./components/descriptions/demo/responsive.md correctly 1`] = `
exports[`renders ./components/descriptions/demo/responsive.tsx correctly 1`] = `
<div>
<div
class="ant-descriptions ant-descriptions-bordered"
@ -561,7 +561,7 @@ exports[`renders ./components/descriptions/demo/responsive.md correctly 1`] = `
</div>
`;
exports[`renders ./components/descriptions/demo/size.md correctly 1`] = `
exports[`renders ./components/descriptions/demo/size.tsx correctly 1`] = `
<div>
<div
class="ant-radio-group ant-radio-group-outline"
@ -987,7 +987,7 @@ exports[`renders ./components/descriptions/demo/size.md correctly 1`] = `
</div>
`;
exports[`renders ./components/descriptions/demo/style.md correctly 1`] = `
exports[`renders ./components/descriptions/demo/style.tsx correctly 1`] = `
Array [
<button
aria-checked="true"
@ -1241,7 +1241,7 @@ Array [
]
`;
exports[`renders ./components/descriptions/demo/text.md correctly 1`] = `
exports[`renders ./components/descriptions/demo/text.tsx correctly 1`] = `
<div
class="ant-descriptions"
>
@ -1640,7 +1640,7 @@ exports[`renders ./components/descriptions/demo/text.md correctly 1`] = `
</div>
`;
exports[`renders ./components/descriptions/demo/vertical.md correctly 1`] = `
exports[`renders ./components/descriptions/demo/vertical.tsx correctly 1`] = `
<div
class="ant-descriptions"
>
@ -1844,7 +1844,7 @@ exports[`renders ./components/descriptions/demo/vertical.md correctly 1`] = `
</div>
`;
exports[`renders ./components/descriptions/demo/vertical-border.md correctly 1`] = `
exports[`renders ./components/descriptions/demo/vertical-border.tsx correctly 1`] = `
<div
class="ant-descriptions ant-descriptions-bordered"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/divider/demo/customize-style.md extend context correctly 1`] = `
exports[`renders ./components/divider/demo/customize-style.tsx extend context correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal"
@ -36,7 +36,7 @@ Array [
]
`;
exports[`renders ./components/divider/demo/horizontal.md extend context correctly 1`] = `
exports[`renders ./components/divider/demo/horizontal.tsx extend context correctly 1`] = `
Array [
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
@ -58,7 +58,7 @@ Array [
]
`;
exports[`renders ./components/divider/demo/plain.md extend context correctly 1`] = `
exports[`renders ./components/divider/demo/plain.tsx extend context correctly 1`] = `
Array [
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
@ -105,7 +105,7 @@ Array [
]
`;
exports[`renders ./components/divider/demo/vertical.md extend context correctly 1`] = `
exports[`renders ./components/divider/demo/vertical.tsx extend context correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-vertical"
@ -128,7 +128,7 @@ Array [
]
`;
exports[`renders ./components/divider/demo/with-text.md extend context correctly 1`] = `
exports[`renders ./components/divider/demo/with-text.tsx extend context correctly 1`] = `
Array [
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/divider/demo/customize-style.md correctly 1`] = `
exports[`renders ./components/divider/demo/customize-style.tsx correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal"
@ -36,7 +36,7 @@ Array [
]
`;
exports[`renders ./components/divider/demo/horizontal.md correctly 1`] = `
exports[`renders ./components/divider/demo/horizontal.tsx correctly 1`] = `
Array [
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
@ -58,7 +58,7 @@ Array [
]
`;
exports[`renders ./components/divider/demo/plain.md correctly 1`] = `
exports[`renders ./components/divider/demo/plain.tsx correctly 1`] = `
Array [
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
@ -105,7 +105,7 @@ Array [
]
`;
exports[`renders ./components/divider/demo/vertical.md correctly 1`] = `
exports[`renders ./components/divider/demo/vertical.tsx correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-vertical"
@ -128,7 +128,7 @@ Array [
]
`;
exports[`renders ./components/divider/demo/with-text.md correctly 1`] = `
exports[`renders ./components/divider/demo/with-text.tsx correctly 1`] = `
Array [
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/drawer/demo/basic-right.md extend context correctly 1`] = `
exports[`renders ./components/drawer/demo/basic-right.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -99,7 +99,7 @@ Array [
]
`;
exports[`renders ./components/drawer/demo/config-provider.md extend context correctly 1`] = `
exports[`renders ./components/drawer/demo/config-provider.tsx extend context correctly 1`] = `
<div
class="site-drawer-render-in-current-wrapper"
>
@ -201,7 +201,7 @@ exports[`renders ./components/drawer/demo/config-provider.md extend context corr
</div>
`;
exports[`renders ./components/drawer/demo/extra.md extend context correctly 1`] = `
exports[`renders ./components/drawer/demo/extra.tsx extend context correctly 1`] = `
Array [
<div
class="ant-space ant-space-horizontal ant-space-align-center"
@ -427,7 +427,7 @@ Array [
]
`;
exports[`renders ./components/drawer/demo/form-in-drawer.md extend context correctly 1`] = `
exports[`renders ./components/drawer/demo/form-in-drawer.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -2507,7 +2507,7 @@ Array [
]
`;
exports[`renders ./components/drawer/demo/multi-level-drawer.md extend context correctly 1`] = `
exports[`renders ./components/drawer/demo/multi-level-drawer.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -2633,7 +2633,7 @@ Array [
]
`;
exports[`renders ./components/drawer/demo/no-mask.md extend context correctly 1`] = `
exports[`renders ./components/drawer/demo/no-mask.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -2729,7 +2729,7 @@ Array [
]
`;
exports[`renders ./components/drawer/demo/placement.md extend context correctly 1`] = `
exports[`renders ./components/drawer/demo/placement.tsx extend context correctly 1`] = `
Array [
<div
class="ant-space ant-space-horizontal ant-space-align-center"
@ -2897,7 +2897,7 @@ Array [
]
`;
exports[`renders ./components/drawer/demo/render-in-current.md extend context correctly 1`] = `
exports[`renders ./components/drawer/demo/render-in-current.tsx extend context correctly 1`] = `
<div
class="site-drawer-render-in-current-wrapper"
>
@ -2972,7 +2972,7 @@ exports[`renders ./components/drawer/demo/render-in-current.md extend context co
</div>
`;
exports[`renders ./components/drawer/demo/render-panel.md extend context correctly 1`] = `
exports[`renders ./components/drawer/demo/render-panel.tsx extend context correctly 1`] = `
<div
class="ant-drawer ant-drawer-pure"
style="height: 300px; box-shadow: 0 0 5px red;"
@ -3032,7 +3032,7 @@ exports[`renders ./components/drawer/demo/render-panel.md extend context correct
</div>
`;
exports[`renders ./components/drawer/demo/size.md extend context correctly 1`] = `
exports[`renders ./components/drawer/demo/size.tsx extend context correctly 1`] = `
Array [
<div
class="ant-space ant-space-horizontal ant-space-align-center"
@ -3185,7 +3185,7 @@ Array [
]
`;
exports[`renders ./components/drawer/demo/user-profile.md extend context correctly 1`] = `
exports[`renders ./components/drawer/demo/user-profile.tsx extend context correctly 1`] = `
Array [
<div
class="ant-list ant-list-split ant-list-bordered"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/drawer/demo/basic-right.md correctly 1`] = `
exports[`renders ./components/drawer/demo/basic-right.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -11,7 +11,7 @@ exports[`renders ./components/drawer/demo/basic-right.md correctly 1`] = `
</button>
`;
exports[`renders ./components/drawer/demo/config-provider.md correctly 1`] = `
exports[`renders ./components/drawer/demo/config-provider.tsx correctly 1`] = `
<div
class="site-drawer-render-in-current-wrapper"
>
@ -26,7 +26,7 @@ exports[`renders ./components/drawer/demo/config-provider.md correctly 1`] = `
</div>
`;
exports[`renders ./components/drawer/demo/extra.md correctly 1`] = `
exports[`renders ./components/drawer/demo/extra.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -131,7 +131,7 @@ exports[`renders ./components/drawer/demo/extra.md correctly 1`] = `
</div>
`;
exports[`renders ./components/drawer/demo/form-in-drawer.md correctly 1`] = `
exports[`renders ./components/drawer/demo/form-in-drawer.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -167,7 +167,7 @@ exports[`renders ./components/drawer/demo/form-in-drawer.md correctly 1`] = `
</button>
`;
exports[`renders ./components/drawer/demo/multi-level-drawer.md correctly 1`] = `
exports[`renders ./components/drawer/demo/multi-level-drawer.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -178,7 +178,7 @@ exports[`renders ./components/drawer/demo/multi-level-drawer.md correctly 1`] =
</button>
`;
exports[`renders ./components/drawer/demo/no-mask.md correctly 1`] = `
exports[`renders ./components/drawer/demo/no-mask.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -189,7 +189,7 @@ exports[`renders ./components/drawer/demo/no-mask.md correctly 1`] = `
</button>
`;
exports[`renders ./components/drawer/demo/placement.md correctly 1`] = `
exports[`renders ./components/drawer/demo/placement.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -294,7 +294,7 @@ exports[`renders ./components/drawer/demo/placement.md correctly 1`] = `
</div>
`;
exports[`renders ./components/drawer/demo/render-in-current.md correctly 1`] = `
exports[`renders ./components/drawer/demo/render-in-current.tsx correctly 1`] = `
<div
class="site-drawer-render-in-current-wrapper"
>
@ -331,7 +331,7 @@ exports[`renders ./components/drawer/demo/render-in-current.md correctly 1`] = `
</div>
`;
exports[`renders ./components/drawer/demo/render-panel.md correctly 1`] = `
exports[`renders ./components/drawer/demo/render-panel.tsx correctly 1`] = `
<div
class="ant-drawer ant-drawer-pure"
style="height: 300px; box-shadow: 0 0 5px red;"
@ -391,7 +391,7 @@ exports[`renders ./components/drawer/demo/render-panel.md correctly 1`] = `
</div>
`;
exports[`renders ./components/drawer/demo/size.md correctly 1`] = `
exports[`renders ./components/drawer/demo/size.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -423,7 +423,7 @@ exports[`renders ./components/drawer/demo/size.md correctly 1`] = `
</div>
`;
exports[`renders ./components/drawer/demo/user-profile.md correctly 1`] = `
exports[`renders ./components/drawer/demo/user-profile.tsx correctly 1`] = `
<div
class="ant-list ant-list-split ant-list-bordered"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/dropdown/demo/arrow.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/arrow.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-default ant-dropdown-trigger"
@ -1302,7 +1302,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/arrow-center.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/arrow-center.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-default ant-dropdown-trigger"
@ -2604,7 +2604,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/basic.tsx extend context correctly 1`] = `
Array [
<a
class="ant-dropdown-trigger"
@ -2926,7 +2926,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/context-menu.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/context-menu.tsx extend context correctly 1`] = `
Array [
<div
class="ant-dropdown-trigger site-dropdown-context-menu"
@ -3124,7 +3124,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/dropdown-button.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/dropdown-button.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
style="flex-wrap: wrap; margin-bottom: -8px;"
@ -4874,7 +4874,7 @@ exports[`renders ./components/dropdown/demo/dropdown-button.md extend context co
</div>
`;
exports[`renders ./components/dropdown/demo/event.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/event.tsx extend context correctly 1`] = `
Array [
<a
class="ant-dropdown-trigger"
@ -5103,7 +5103,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/item.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/item.tsx extend context correctly 1`] = `
Array [
<a
class="ant-dropdown-trigger"
@ -5347,7 +5347,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/loading.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/loading.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -5865,7 +5865,7 @@ exports[`renders ./components/dropdown/demo/loading.md extend context correctly
</div>
`;
exports[`renders ./components/dropdown/demo/menu-full.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/menu-full.tsx extend context correctly 1`] = `
Array [
<a
class="ant-dropdown-trigger"
@ -7033,7 +7033,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/overlay-open.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/overlay-open.tsx extend context correctly 1`] = `
Array [
<a
class="ant-dropdown-trigger"
@ -7262,7 +7262,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/placement.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/placement.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -8596,7 +8596,7 @@ exports[`renders ./components/dropdown/demo/placement.md extend context correctl
</div>
`;
exports[`renders ./components/dropdown/demo/render-panel.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/render-panel.tsx extend context correctly 1`] = `
<div
style="padding-bottom: 0px; position: relative; min-width: 0;"
>
@ -8889,7 +8889,7 @@ exports[`renders ./components/dropdown/demo/render-panel.md extend context corre
</div>
`;
exports[`renders ./components/dropdown/demo/selectable.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/selectable.tsx extend context correctly 1`] = `
Array [
<a
class="ant-typography ant-dropdown-trigger"
@ -9118,7 +9118,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/sub-menu.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/sub-menu.tsx extend context correctly 1`] = `
Array [
<a
class="ant-dropdown-trigger"
@ -9641,7 +9641,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/trigger.md extend context correctly 1`] = `
exports[`renders ./components/dropdown/demo/trigger.tsx extend context correctly 1`] = `
Array [
<a
class="ant-dropdown-trigger"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/dropdown/demo/arrow.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/arrow.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-default ant-dropdown-trigger"
@ -54,7 +54,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/arrow-center.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/arrow-center.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-default ant-dropdown-trigger"
@ -108,7 +108,7 @@ Array [
]
`;
exports[`renders ./components/dropdown/demo/basic.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/basic.tsx correctly 1`] = `
<a
class="ant-dropdown-trigger"
>
@ -148,7 +148,7 @@ exports[`renders ./components/dropdown/demo/basic.md correctly 1`] = `
</a>
`;
exports[`renders ./components/dropdown/demo/context-menu.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/context-menu.tsx correctly 1`] = `
<div
class="ant-dropdown-trigger site-dropdown-context-menu"
style="text-align: center; height: 200px; line-height: 200px;"
@ -157,7 +157,7 @@ exports[`renders ./components/dropdown/demo/context-menu.md correctly 1`] = `
</div>
`;
exports[`renders ./components/dropdown/demo/dropdown-button.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/dropdown-button.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
style="flex-wrap: wrap; margin-bottom: -8px;"
@ -419,7 +419,7 @@ exports[`renders ./components/dropdown/demo/dropdown-button.md correctly 1`] = `
</div>
`;
exports[`renders ./components/dropdown/demo/event.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/event.tsx correctly 1`] = `
<a
class="ant-dropdown-trigger"
>
@ -459,7 +459,7 @@ exports[`renders ./components/dropdown/demo/event.md correctly 1`] = `
</a>
`;
exports[`renders ./components/dropdown/demo/item.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/item.tsx correctly 1`] = `
<a
class="ant-dropdown-trigger"
>
@ -499,7 +499,7 @@ exports[`renders ./components/dropdown/demo/item.md correctly 1`] = `
</a>
`;
exports[`renders ./components/dropdown/demo/loading.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/loading.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -717,7 +717,7 @@ exports[`renders ./components/dropdown/demo/loading.md correctly 1`] = `
</div>
`;
exports[`renders ./components/dropdown/demo/menu-full.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/menu-full.tsx correctly 1`] = `
<a
class="ant-dropdown-trigger"
>
@ -757,7 +757,7 @@ exports[`renders ./components/dropdown/demo/menu-full.md correctly 1`] = `
</a>
`;
exports[`renders ./components/dropdown/demo/overlay-open.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/overlay-open.tsx correctly 1`] = `
<a
class="ant-dropdown-trigger"
>
@ -797,7 +797,7 @@ exports[`renders ./components/dropdown/demo/overlay-open.md correctly 1`] = `
</a>
`;
exports[`renders ./components/dropdown/demo/placement.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/placement.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -901,7 +901,7 @@ exports[`renders ./components/dropdown/demo/placement.md correctly 1`] = `
</div>
`;
exports[`renders ./components/dropdown/demo/render-panel.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/render-panel.tsx correctly 1`] = `
<div
style="padding-bottom: 0px; position: relative; min-width: 0;"
>
@ -1017,7 +1017,7 @@ exports[`renders ./components/dropdown/demo/render-panel.md correctly 1`] = `
</div>
`;
exports[`renders ./components/dropdown/demo/selectable.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/selectable.tsx correctly 1`] = `
<a
class="ant-typography ant-dropdown-trigger"
>
@ -1057,7 +1057,7 @@ exports[`renders ./components/dropdown/demo/selectable.md correctly 1`] = `
</a>
`;
exports[`renders ./components/dropdown/demo/sub-menu.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/sub-menu.tsx correctly 1`] = `
<a
class="ant-dropdown-trigger"
>
@ -1097,7 +1097,7 @@ exports[`renders ./components/dropdown/demo/sub-menu.md correctly 1`] = `
</a>
`;
exports[`renders ./components/dropdown/demo/trigger.md correctly 1`] = `
exports[`renders ./components/dropdown/demo/trigger.tsx correctly 1`] = `
<a
class="ant-dropdown-trigger"
>

View File

@ -1,5 +1,5 @@
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('Dropdown image', () => {
imageDemoTest('dropdown', { skip: ['dropdown-button.md'] });
imageDemoTest('dropdown', { skip: ['dropdown-button.tsx'] });
});

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/empty/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/empty/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-empty"
>
@ -75,7 +75,7 @@ exports[`renders ./components/empty/demo/basic.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/empty/demo/config-provider.md extend context correctly 1`] = `
exports[`renders ./components/empty/demo/config-provider.tsx extend context correctly 1`] = `
<div>
<button
aria-checked="false"
@ -1187,7 +1187,7 @@ exports[`renders ./components/empty/demo/config-provider.md extend context corre
</div>
`;
exports[`renders ./components/empty/demo/customize.md extend context correctly 1`] = `
exports[`renders ./components/empty/demo/customize.tsx extend context correctly 1`] = `
<div
class="ant-empty"
>
@ -1227,7 +1227,7 @@ exports[`renders ./components/empty/demo/customize.md extend context correctly 1
</div>
`;
exports[`renders ./components/empty/demo/description.md extend context correctly 1`] = `
exports[`renders ./components/empty/demo/description.tsx extend context correctly 1`] = `
<div
class="ant-empty"
>
@ -1297,7 +1297,7 @@ exports[`renders ./components/empty/demo/description.md extend context correctly
</div>
`;
exports[`renders ./components/empty/demo/simple.md extend context correctly 1`] = `
exports[`renders ./components/empty/demo/simple.tsx extend context correctly 1`] = `
<div
class="ant-empty ant-empty-normal"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/empty/demo/basic.md correctly 1`] = `
exports[`renders ./components/empty/demo/basic.tsx correctly 1`] = `
<div
class="ant-empty"
>
@ -75,7 +75,7 @@ exports[`renders ./components/empty/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/empty/demo/config-provider.md correctly 1`] = `
exports[`renders ./components/empty/demo/config-provider.tsx correctly 1`] = `
<div>
<button
aria-checked="false"
@ -732,7 +732,7 @@ exports[`renders ./components/empty/demo/config-provider.md correctly 1`] = `
</div>
`;
exports[`renders ./components/empty/demo/customize.md correctly 1`] = `
exports[`renders ./components/empty/demo/customize.tsx correctly 1`] = `
<div
class="ant-empty"
>
@ -772,7 +772,7 @@ exports[`renders ./components/empty/demo/customize.md correctly 1`] = `
</div>
`;
exports[`renders ./components/empty/demo/description.md correctly 1`] = `
exports[`renders ./components/empty/demo/description.tsx correctly 1`] = `
<div
class="ant-empty"
>
@ -842,7 +842,7 @@ exports[`renders ./components/empty/demo/description.md correctly 1`] = `
</div>
`;
exports[`renders ./components/empty/demo/simple.md correctly 1`] = `
exports[`renders ./components/empty/demo/simple.tsx correctly 1`] = `
<div
class="ant-empty ant-empty-normal"
>

View File

@ -1,3 +1,4 @@
import React from 'react';
import { Empty } from 'antd';
const App: React.FC = () => <Empty />;

View File

@ -1,3 +1,4 @@
import React from 'react';
import { Empty } from 'antd';
const App: React.FC = () => <Empty description={false} />;

View File

@ -1,3 +1,4 @@
import React from 'react';
import { Empty } from 'antd';
const App: React.FC = () => <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/float-button/demo/back-top.md extend context correctly 1`] = `
exports[`renders ./components/float-button/demo/back-top.tsx extend context correctly 1`] = `
<div
style="height: 500vh; padding: 10px;"
>
@ -28,7 +28,7 @@ exports[`renders ./components/float-button/demo/back-top.md extend context corre
</div>
`;
exports[`renders ./components/float-button/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/float-button/demo/basic.tsx extend context correctly 1`] = `
<button
class="ant-float-btn ant-float-btn-default ant-float-btn-circle"
type="button"
@ -67,7 +67,7 @@ exports[`renders ./components/float-button/demo/basic.md extend context correctl
</button>
`;
exports[`renders ./components/float-button/demo/description.md extend context correctly 1`] = `
exports[`renders ./components/float-button/demo/description.tsx extend context correctly 1`] = `
Array [
<button
class="ant-float-btn ant-float-btn-default ant-float-btn-square"
@ -175,7 +175,7 @@ Array [
]
`;
exports[`renders ./components/float-button/demo/group.md extend context correctly 1`] = `
exports[`renders ./components/float-button/demo/group.tsx extend context correctly 1`] = `
Array [
<div
class="ant-float-btn-group ant-float-btn-group-circle ant-float-btn-group-circle-shadow"
@ -376,7 +376,7 @@ Array [
]
`;
exports[`renders ./components/float-button/demo/group-menu.md extend context correctly 1`] = `
exports[`renders ./components/float-button/demo/group-menu.tsx extend context correctly 1`] = `
<div
class="ant-float-btn-group ant-float-btn-group-circle"
>
@ -419,7 +419,7 @@ exports[`renders ./components/float-button/demo/group-menu.md extend context cor
</div>
`;
exports[`renders ./components/float-button/demo/shape.md extend context correctly 1`] = `
exports[`renders ./components/float-button/demo/shape.tsx extend context correctly 1`] = `
Array [
<div
class="ant-radio-group ant-radio-group-outline"
@ -504,7 +504,7 @@ Array [
]
`;
exports[`renders ./components/float-button/demo/tooltip.md extend context correctly 1`] = `
exports[`renders ./components/float-button/demo/tooltip.tsx extend context correctly 1`] = `
<div>
<span>
查看右下角的 FloatButton
@ -574,7 +574,7 @@ exports[`renders ./components/float-button/demo/tooltip.md extend context correc
</div>
`;
exports[`renders ./components/float-button/demo/type.md extend context correctly 1`] = `
exports[`renders ./components/float-button/demo/type.tsx extend context correctly 1`] = `
Array [
<button
class="ant-float-btn ant-float-btn-primary ant-float-btn-circle"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/float-button/demo/back-top.md correctly 1`] = `
exports[`renders ./components/float-button/demo/back-top.tsx correctly 1`] = `
<div
style="height: 500vh; padding: 10px;"
>
@ -28,7 +28,7 @@ exports[`renders ./components/float-button/demo/back-top.md correctly 1`] = `
</div>
`;
exports[`renders ./components/float-button/demo/basic.md correctly 1`] = `
exports[`renders ./components/float-button/demo/basic.tsx correctly 1`] = `
<button
class="ant-float-btn ant-float-btn-default ant-float-btn-circle"
type="button"
@ -67,7 +67,7 @@ exports[`renders ./components/float-button/demo/basic.md correctly 1`] = `
</button>
`;
exports[`renders ./components/float-button/demo/description.md correctly 1`] = `
exports[`renders ./components/float-button/demo/description.tsx correctly 1`] = `
Array [
<button
class="ant-float-btn ant-float-btn-default ant-float-btn-square"
@ -175,7 +175,7 @@ Array [
]
`;
exports[`renders ./components/float-button/demo/group.md correctly 1`] = `
exports[`renders ./components/float-button/demo/group.tsx correctly 1`] = `
Array [
<div
class="ant-float-btn-group ant-float-btn-group-circle ant-float-btn-group-circle-shadow"
@ -376,7 +376,7 @@ Array [
]
`;
exports[`renders ./components/float-button/demo/group-menu.md correctly 1`] = `
exports[`renders ./components/float-button/demo/group-menu.tsx correctly 1`] = `
<div
class="ant-float-btn-group ant-float-btn-group-circle"
>
@ -419,7 +419,7 @@ exports[`renders ./components/float-button/demo/group-menu.md correctly 1`] = `
</div>
`;
exports[`renders ./components/float-button/demo/shape.md correctly 1`] = `
exports[`renders ./components/float-button/demo/shape.tsx correctly 1`] = `
Array [
<div
class="ant-radio-group ant-radio-group-outline"
@ -504,7 +504,7 @@ Array [
]
`;
exports[`renders ./components/float-button/demo/tooltip.md correctly 1`] = `
exports[`renders ./components/float-button/demo/tooltip.tsx correctly 1`] = `
<div>
<span>
查看右下角的 FloatButton
@ -548,7 +548,7 @@ exports[`renders ./components/float-button/demo/tooltip.md correctly 1`] = `
</div>
`;
exports[`renders ./components/float-button/demo/type.md correctly 1`] = `
exports[`renders ./components/float-button/demo/type.tsx correctly 1`] = `
Array [
<button
class="ant-float-btn ant-float-btn-primary ant-float-btn-circle"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/form/demo/advanced-search.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/advanced-search.tsx extend context correctly 1`] = `
<div>
<form
class="ant-form ant-form-horizontal ant-advanced-search-form"
@ -606,7 +606,7 @@ exports[`renders ./components/form/demo/advanced-search.md extend context correc
</div>
`;
exports[`renders ./components/form/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/basic.tsx extend context correctly 1`] = `
<form
autocomplete="off"
class="ant-form ant-form-horizontal"
@ -792,7 +792,7 @@ exports[`renders ./components/form/demo/basic.md extend context correctly 1`] =
</form>
`;
exports[`renders ./components/form/demo/col-24-debug.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/col-24-debug.tsx extend context correctly 1`] = `
Array [
<form
autocomplete="off"
@ -1582,7 +1582,7 @@ Array [
]
`;
exports[`renders ./components/form/demo/control-hooks.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/control-hooks.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="control-hooks"
@ -1863,7 +1863,7 @@ exports[`renders ./components/form/demo/control-hooks.md extend context correctl
</form>
`;
exports[`renders ./components/form/demo/control-ref.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/control-ref.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="control-ref"
@ -2144,7 +2144,7 @@ exports[`renders ./components/form/demo/control-ref.md extend context correctly
</form>
`;
exports[`renders ./components/form/demo/customized-form-controls.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/customized-form-controls.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-inline"
id="customized_form_controls"
@ -2362,7 +2362,7 @@ exports[`renders ./components/form/demo/customized-form-controls.md extend conte
</form>
`;
exports[`renders ./components/form/demo/disabled.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/disabled.tsx extend context correctly 1`] = `
Array [
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked"
@ -5173,7 +5173,7 @@ Array [
]
`;
exports[`renders ./components/form/demo/disabled-input-debug.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/disabled-input-debug.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>
@ -5866,7 +5866,7 @@ exports[`renders ./components/form/demo/disabled-input-debug.md extend context c
</form>
`;
exports[`renders ./components/form/demo/dynamic-form-item.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/dynamic-form-item.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="dynamic_form_item"
@ -5990,7 +5990,7 @@ exports[`renders ./components/form/demo/dynamic-form-item.md extend context corr
</form>
`;
exports[`renders ./components/form/demo/dynamic-form-items.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/dynamic-form-items.tsx extend context correctly 1`] = `
<form
autocomplete="off"
class="ant-form ant-form-horizontal"
@ -6080,7 +6080,7 @@ exports[`renders ./components/form/demo/dynamic-form-items.md extend context cor
</form>
`;
exports[`renders ./components/form/demo/dynamic-form-items-complex.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/dynamic-form-items-complex.tsx extend context correctly 1`] = `
<form
autocomplete="off"
class="ant-form ant-form-horizontal"
@ -6342,7 +6342,7 @@ exports[`renders ./components/form/demo/dynamic-form-items-complex.md extend con
</form>
`;
exports[`renders ./components/form/demo/dynamic-form-items-no-style.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/dynamic-form-items-no-style.tsx extend context correctly 1`] = `
<form
autocomplete="off"
class="ant-form ant-form-horizontal"
@ -6462,7 +6462,7 @@ exports[`renders ./components/form/demo/dynamic-form-items-no-style.md extend co
</form>
`;
exports[`renders ./components/form/demo/dynamic-rule.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/dynamic-rule.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="dynamic_rule"
@ -6614,7 +6614,7 @@ exports[`renders ./components/form/demo/dynamic-rule.md extend context correctly
</form>
`;
exports[`renders ./components/form/demo/form-context.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/form-context.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="basicForm"
@ -6752,7 +6752,7 @@ exports[`renders ./components/form/demo/form-context.md extend context correctly
</form>
`;
exports[`renders ./components/form/demo/form-in-modal.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/form-in-modal.tsx extend context correctly 1`] = `
<div>
<button
class="ant-btn ant-btn-primary"
@ -6765,7 +6765,7 @@ exports[`renders ./components/form/demo/form-in-modal.md extend context correctl
</div>
`;
exports[`renders ./components/form/demo/global-state.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/global-state.tsx extend context correctly 1`] = `
Array [
<form
class="ant-form ant-form-inline"
@ -6825,7 +6825,7 @@ Array [
]
`;
exports[`renders ./components/form/demo/inline-login.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/inline-login.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-inline"
id="horizontal_login"
@ -6972,7 +6972,7 @@ exports[`renders ./components/form/demo/inline-login.md extend context correctly
</form>
`;
exports[`renders ./components/form/demo/label-debug.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/label-debug.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="label-ellipsis"
@ -7094,7 +7094,7 @@ exports[`renders ./components/form/demo/label-debug.md extend context correctly
</form>
`;
exports[`renders ./components/form/demo/layout.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/layout.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>
@ -7295,7 +7295,7 @@ exports[`renders ./components/form/demo/layout.md extend context correctly 1`] =
</form>
`;
exports[`renders ./components/form/demo/layout-can-wrap.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/layout-can-wrap.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="wrap"
@ -7422,7 +7422,7 @@ exports[`renders ./components/form/demo/layout-can-wrap.md extend context correc
</form>
`;
exports[`renders ./components/form/demo/nest-messages.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/nest-messages.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="nest-messages"
@ -7710,7 +7710,7 @@ exports[`renders ./components/form/demo/nest-messages.md extend context correctl
</form>
`;
exports[`renders ./components/form/demo/normal-login.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/normal-login.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal login-form"
id="normal_login"
@ -7909,7 +7909,7 @@ exports[`renders ./components/form/demo/normal-login.md extend context correctly
</form>
`;
exports[`renders ./components/form/demo/ref-item.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/ref-item.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>
@ -7995,7 +7995,7 @@ exports[`renders ./components/form/demo/ref-item.md extend context correctly 1`]
</form>
`;
exports[`renders ./components/form/demo/register.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/register.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="register"
@ -9374,7 +9374,7 @@ exports[`renders ./components/form/demo/register.md extend context correctly 1`]
</form>
`;
exports[`renders ./components/form/demo/required-mark.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/required-mark.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-vertical"
>
@ -9681,7 +9681,7 @@ exports[`renders ./components/form/demo/required-mark.md extend context correctl
</form>
`;
exports[`renders ./components/form/demo/size.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/size.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal ant-form-default"
>
@ -11098,7 +11098,7 @@ exports[`renders ./components/form/demo/size.md extend context correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/time-related-controls.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/time-related-controls.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="time_related_controls"
@ -18676,7 +18676,7 @@ exports[`renders ./components/form/demo/time-related-controls.md extend context
</form>
`;
exports[`renders ./components/form/demo/useWatch.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/useWatch.tsx extend context correctly 1`] = `
Array [
<form
autocomplete="off"
@ -18835,7 +18835,7 @@ Array [
]
`;
exports[`renders ./components/form/demo/validate-other.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/validate-other.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="validate_other"
@ -20430,7 +20430,7 @@ exports[`renders ./components/form/demo/validate-other.md extend context correct
</form>
`;
exports[`renders ./components/form/demo/validate-static.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/validate-static.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>
@ -26708,7 +26708,7 @@ exports[`renders ./components/form/demo/validate-static.md extend context correc
</form>
`;
exports[`renders ./components/form/demo/warning-only.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/warning-only.tsx extend context correctly 1`] = `
<form
autocomplete="off"
class="ant-form ant-form-vertical"
@ -26804,7 +26804,7 @@ exports[`renders ./components/form/demo/warning-only.md extend context correctly
</form>
`;
exports[`renders ./components/form/demo/without-form-create.md extend context correctly 1`] = `
exports[`renders ./components/form/demo/without-form-create.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/form/demo/advanced-search.md correctly 1`] = `
exports[`renders ./components/form/demo/advanced-search.tsx correctly 1`] = `
<div>
<form
class="ant-form ant-form-horizontal ant-advanced-search-form"
@ -442,7 +442,7 @@ exports[`renders ./components/form/demo/advanced-search.md correctly 1`] = `
</div>
`;
exports[`renders ./components/form/demo/basic.md correctly 1`] = `
exports[`renders ./components/form/demo/basic.tsx correctly 1`] = `
<form
autocomplete="off"
class="ant-form ant-form-horizontal"
@ -628,7 +628,7 @@ exports[`renders ./components/form/demo/basic.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/col-24-debug.md correctly 1`] = `
exports[`renders ./components/form/demo/col-24-debug.tsx correctly 1`] = `
Array [
<form
autocomplete="off"
@ -1204,7 +1204,7 @@ Array [
]
`;
exports[`renders ./components/form/demo/control-hooks.md correctly 1`] = `
exports[`renders ./components/form/demo/control-hooks.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="control-hooks"
@ -1386,7 +1386,7 @@ exports[`renders ./components/form/demo/control-hooks.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/control-ref.md correctly 1`] = `
exports[`renders ./components/form/demo/control-ref.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="control-ref"
@ -1568,7 +1568,7 @@ exports[`renders ./components/form/demo/control-ref.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/customized-form-controls.md correctly 1`] = `
exports[`renders ./components/form/demo/customized-form-controls.tsx correctly 1`] = `
<form
class="ant-form ant-form-inline"
id="customized_form_controls"
@ -1704,90 +1704,7 @@ exports[`renders ./components/form/demo/customized-form-controls.md correctly 1`
</form>
`;
exports[`renders ./components/form/demo/dep-debug.md correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="debug"
>
1
<div
class="ant-form-item"
>
<div
class="ant-row ant-form-item-row"
>
<div
class="ant-col ant-form-item-label"
>
<label
class=""
for="debug_debug1"
title="debug1"
>
debug1
</label>
</div>
<div
class="ant-col ant-form-item-control"
>
<div
class="ant-form-item-control-input"
>
<div
class="ant-form-item-control-input-content"
>
<input
class="ant-input"
id="debug_debug1"
type="text"
value="debug1"
/>
</div>
</div>
</div>
</div>
</div>
<div
class="ant-form-item"
>
<div
class="ant-row ant-form-item-row"
>
<div
class="ant-col ant-form-item-label"
>
<label
class=""
for="debug_debug2"
title="debug2"
>
debug2
</label>
</div>
<div
class="ant-col ant-form-item-control"
>
<div
class="ant-form-item-control-input"
>
<div
class="ant-form-item-control-input-content"
>
<input
class="ant-input"
id="debug_debug2"
type="text"
value="debug2"
/>
</div>
</div>
</div>
</div>
</div>
</form>
`;
exports[`renders ./components/form/demo/disabled.md correctly 1`] = `
exports[`renders ./components/form/demo/disabled.tsx correctly 1`] = `
Array [
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked"
@ -2739,7 +2656,7 @@ Array [
]
`;
exports[`renders ./components/form/demo/disabled-input-debug.md correctly 1`] = `
exports[`renders ./components/form/demo/disabled-input-debug.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>
@ -3432,7 +3349,7 @@ exports[`renders ./components/form/demo/disabled-input-debug.md correctly 1`] =
</form>
`;
exports[`renders ./components/form/demo/dynamic-form-item.md correctly 1`] = `
exports[`renders ./components/form/demo/dynamic-form-item.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="dynamic_form_item"
@ -3556,7 +3473,7 @@ exports[`renders ./components/form/demo/dynamic-form-item.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/dynamic-form-items.md correctly 1`] = `
exports[`renders ./components/form/demo/dynamic-form-items.tsx correctly 1`] = `
<form
autocomplete="off"
class="ant-form ant-form-horizontal"
@ -3646,7 +3563,7 @@ exports[`renders ./components/form/demo/dynamic-form-items.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/dynamic-form-items-complex.md correctly 1`] = `
exports[`renders ./components/form/demo/dynamic-form-items-complex.tsx correctly 1`] = `
<form
autocomplete="off"
class="ant-form ant-form-horizontal"
@ -3826,7 +3743,7 @@ exports[`renders ./components/form/demo/dynamic-form-items-complex.md correctly
</form>
`;
exports[`renders ./components/form/demo/dynamic-form-items-no-style.md correctly 1`] = `
exports[`renders ./components/form/demo/dynamic-form-items-no-style.tsx correctly 1`] = `
<form
autocomplete="off"
class="ant-form ant-form-horizontal"
@ -3946,7 +3863,7 @@ exports[`renders ./components/form/demo/dynamic-form-items-no-style.md correctly
</form>
`;
exports[`renders ./components/form/demo/dynamic-rule.md correctly 1`] = `
exports[`renders ./components/form/demo/dynamic-rule.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="dynamic_rule"
@ -4098,7 +4015,7 @@ exports[`renders ./components/form/demo/dynamic-rule.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/form-context.md correctly 1`] = `
exports[`renders ./components/form/demo/form-context.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="basicForm"
@ -4236,7 +4153,7 @@ exports[`renders ./components/form/demo/form-context.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/form-in-modal.md correctly 1`] = `
exports[`renders ./components/form/demo/form-in-modal.tsx correctly 1`] = `
<div>
<button
class="ant-btn ant-btn-primary"
@ -4249,7 +4166,7 @@ exports[`renders ./components/form/demo/form-in-modal.md correctly 1`] = `
</div>
`;
exports[`renders ./components/form/demo/global-state.md correctly 1`] = `
exports[`renders ./components/form/demo/global-state.tsx correctly 1`] = `
Array [
<form
class="ant-form ant-form-inline"
@ -4309,7 +4226,7 @@ Array [
]
`;
exports[`renders ./components/form/demo/inline-login.md correctly 1`] = `
exports[`renders ./components/form/demo/inline-login.tsx correctly 1`] = `
<form
class="ant-form ant-form-inline"
id="horizontal_login"
@ -4456,7 +4373,7 @@ exports[`renders ./components/form/demo/inline-login.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/label-debug.md correctly 1`] = `
exports[`renders ./components/form/demo/label-debug.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="label-ellipsis"
@ -4578,7 +4495,7 @@ exports[`renders ./components/form/demo/label-debug.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/layout.md correctly 1`] = `
exports[`renders ./components/form/demo/layout.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>
@ -4779,7 +4696,7 @@ exports[`renders ./components/form/demo/layout.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/layout-can-wrap.md correctly 1`] = `
exports[`renders ./components/form/demo/layout-can-wrap.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="wrap"
@ -4906,7 +4823,7 @@ exports[`renders ./components/form/demo/layout-can-wrap.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/nest-messages.md correctly 1`] = `
exports[`renders ./components/form/demo/nest-messages.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="nest-messages"
@ -5194,7 +5111,7 @@ exports[`renders ./components/form/demo/nest-messages.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/normal-login.md correctly 1`] = `
exports[`renders ./components/form/demo/normal-login.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal login-form"
id="normal_login"
@ -5393,7 +5310,7 @@ exports[`renders ./components/form/demo/normal-login.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/ref-item.md correctly 1`] = `
exports[`renders ./components/form/demo/ref-item.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>
@ -5479,7 +5396,7 @@ exports[`renders ./components/form/demo/ref-item.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/register.md correctly 1`] = `
exports[`renders ./components/form/demo/register.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="register"
@ -6467,7 +6384,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/required-mark.md correctly 1`] = `
exports[`renders ./components/form/demo/required-mark.tsx correctly 1`] = `
<form
class="ant-form ant-form-vertical"
>
@ -6726,7 +6643,7 @@ exports[`renders ./components/form/demo/required-mark.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/size.md correctly 1`] = `
exports[`renders ./components/form/demo/size.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal ant-form-default"
>
@ -7381,7 +7298,7 @@ exports[`renders ./components/form/demo/size.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/time-related-controls.md correctly 1`] = `
exports[`renders ./components/form/demo/time-related-controls.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="time_related_controls"
@ -7936,7 +7853,7 @@ exports[`renders ./components/form/demo/time-related-controls.md correctly 1`] =
</form>
`;
exports[`renders ./components/form/demo/useWatch.md correctly 1`] = `
exports[`renders ./components/form/demo/useWatch.tsx correctly 1`] = `
Array [
<form
autocomplete="off"
@ -8095,7 +8012,7 @@ Array [
]
`;
exports[`renders ./components/form/demo/validate-other.md correctly 1`] = `
exports[`renders ./components/form/demo/validate-other.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
id="validate_other"
@ -9503,7 +9420,7 @@ exports[`renders ./components/form/demo/validate-other.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/validate-static.md correctly 1`] = `
exports[`renders ./components/form/demo/validate-static.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>
@ -11450,7 +11367,7 @@ exports[`renders ./components/form/demo/validate-static.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/warning-only.md correctly 1`] = `
exports[`renders ./components/form/demo/warning-only.tsx correctly 1`] = `
<form
autocomplete="off"
class="ant-form ant-form-vertical"
@ -11546,7 +11463,7 @@ exports[`renders ./components/form/demo/warning-only.md correctly 1`] = `
</form>
`;
exports[`renders ./components/form/demo/without-form-create.md correctly 1`] = `
exports[`renders ./components/form/demo/without-form-create.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>

View File

@ -1,3 +1,3 @@
import { extendTest } from '../../../tests/shared/demoTest';
extendTest('form', { skip: ['complex-form-control.md', 'dep-debug.md'] });
extendTest('form', { skip: ['complex-form-control.tsx', 'dep-debug.tsx'] });

View File

@ -1,3 +1,3 @@
import demoTest from '../../../tests/shared/demoTest';
demoTest('form', { skip: ['complex-form-control.md', 'dep-debug.md'] });
demoTest('form', { skip: ['complex-form-control.tsx', 'dep-debug.tsx'] });

View File

@ -1,5 +1,5 @@
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('Form image', () => {
imageDemoTest('form', { skip: ['complex-form-control.md'] });
imageDemoTest('form', { skip: ['complex-form-control.tsx'] });
});

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/grid/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/basic.tsx extend context correctly 1`] = `
Array [
<div
class="ant-row"
@ -71,7 +71,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/flex.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/flex.tsx extend context correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -280,7 +280,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/flex-align.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/flex-align.tsx extend context correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -435,7 +435,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/flex-order.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/flex-order.tsx extend context correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -508,7 +508,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/flex-stretch.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/flex-stretch.tsx extend context correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -611,7 +611,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/gutter.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/gutter.tsx extend context correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -821,7 +821,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/offset.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/offset.tsx extend context correctly 1`] = `
Array [
<div
class="ant-row"
@ -863,7 +863,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/playground.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/playground.tsx extend context correctly 1`] = `
Array [
<span>
Horizontal Gutter (px):
@ -1358,7 +1358,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/responsive.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/responsive.tsx extend context correctly 1`] = `
<div
class="ant-row"
>
@ -1380,7 +1380,7 @@ exports[`renders ./components/grid/demo/responsive.md extend context correctly 1
</div>
`;
exports[`renders ./components/grid/demo/responsive-more.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/responsive-more.tsx extend context correctly 1`] = `
<div
class="ant-row"
>
@ -1402,7 +1402,7 @@ exports[`renders ./components/grid/demo/responsive-more.md extend context correc
</div>
`;
exports[`renders ./components/grid/demo/sort.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/sort.tsx extend context correctly 1`] = `
<div
class="ant-row"
>
@ -1419,7 +1419,7 @@ exports[`renders ./components/grid/demo/sort.md extend context correctly 1`] = `
</div>
`;
exports[`renders ./components/grid/demo/useBreakpoint.md extend context correctly 1`] = `
exports[`renders ./components/grid/demo/useBreakpoint.tsx extend context correctly 1`] = `
<span
class="ant-tag ant-tag-blue"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/grid/demo/basic.md correctly 1`] = `
exports[`renders ./components/grid/demo/basic.tsx correctly 1`] = `
Array [
<div
class="ant-row"
@ -71,7 +71,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/flex.md correctly 1`] = `
exports[`renders ./components/grid/demo/flex.tsx correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -280,7 +280,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/flex-align.md correctly 1`] = `
exports[`renders ./components/grid/demo/flex-align.tsx correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -435,7 +435,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/flex-order.md correctly 1`] = `
exports[`renders ./components/grid/demo/flex-order.tsx correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -508,7 +508,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/flex-stretch.md correctly 1`] = `
exports[`renders ./components/grid/demo/flex-stretch.tsx correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -611,7 +611,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/gutter.md correctly 1`] = `
exports[`renders ./components/grid/demo/gutter.tsx correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -821,7 +821,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/offset.md correctly 1`] = `
exports[`renders ./components/grid/demo/offset.tsx correctly 1`] = `
Array [
<div
class="ant-row"
@ -863,7 +863,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/playground.md correctly 1`] = `
exports[`renders ./components/grid/demo/playground.tsx correctly 1`] = `
Array [
<span>
Horizontal Gutter (px):
@ -1286,7 +1286,7 @@ Array [
]
`;
exports[`renders ./components/grid/demo/responsive.md correctly 1`] = `
exports[`renders ./components/grid/demo/responsive.tsx correctly 1`] = `
<div
class="ant-row"
>
@ -1308,7 +1308,7 @@ exports[`renders ./components/grid/demo/responsive.md correctly 1`] = `
</div>
`;
exports[`renders ./components/grid/demo/responsive-more.md correctly 1`] = `
exports[`renders ./components/grid/demo/responsive-more.tsx correctly 1`] = `
<div
class="ant-row"
>
@ -1330,7 +1330,7 @@ exports[`renders ./components/grid/demo/responsive-more.md correctly 1`] = `
</div>
`;
exports[`renders ./components/grid/demo/sort.md correctly 1`] = `
exports[`renders ./components/grid/demo/sort.tsx correctly 1`] = `
<div
class="ant-row"
>
@ -1347,7 +1347,7 @@ exports[`renders ./components/grid/demo/sort.md correctly 1`] = `
</div>
`;
exports[`renders ./components/grid/demo/useBreakpoint.md correctly 1`] = `
exports[`renders ./components/grid/demo/useBreakpoint.tsx correctly 1`] = `
<span
class="ant-tag ant-tag-blue"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/icon/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/icon/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -151,7 +151,7 @@ exports[`renders ./components/icon/demo/basic.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/icon/demo/custom.md extend context correctly 1`] = `
exports[`renders ./components/icon/demo/custom.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -294,7 +294,7 @@ exports[`renders ./components/icon/demo/custom.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/icon/demo/iconfont.md extend context correctly 1`] = `
exports[`renders ./components/icon/demo/iconfont.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -366,7 +366,7 @@ exports[`renders ./components/icon/demo/iconfont.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/icon/demo/scriptUrl.md extend context correctly 1`] = `
exports[`renders ./components/icon/demo/scriptUrl.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -460,7 +460,7 @@ exports[`renders ./components/icon/demo/scriptUrl.md extend context correctly 1`
</div>
`;
exports[`renders ./components/icon/demo/two-tone.md extend context correctly 1`] = `
exports[`renders ./components/icon/demo/two-tone.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/icon/demo/basic.md correctly 1`] = `
exports[`renders ./components/icon/demo/basic.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -151,7 +151,7 @@ exports[`renders ./components/icon/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/icon/demo/custom.md correctly 1`] = `
exports[`renders ./components/icon/demo/custom.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -294,7 +294,7 @@ exports[`renders ./components/icon/demo/custom.md correctly 1`] = `
</div>
`;
exports[`renders ./components/icon/demo/iconfont.md correctly 1`] = `
exports[`renders ./components/icon/demo/iconfont.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -366,7 +366,7 @@ exports[`renders ./components/icon/demo/iconfont.md correctly 1`] = `
</div>
`;
exports[`renders ./components/icon/demo/scriptUrl.md correctly 1`] = `
exports[`renders ./components/icon/demo/scriptUrl.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -460,7 +460,7 @@ exports[`renders ./components/icon/demo/scriptUrl.md correctly 1`] = `
</div>
`;
exports[`renders ./components/icon/demo/two-tone.md correctly 1`] = `
exports[`renders ./components/icon/demo/two-tone.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>

View File

@ -1,5 +1,5 @@
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('Icon image', () => {
imageDemoTest('icon', { skip: ['basic.md'] });
imageDemoTest('icon', { skip: ['basic.tsx'] });
});

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/image/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/image/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-image"
style="width: 200px;"
@ -41,7 +41,7 @@ exports[`renders ./components/image/demo/basic.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/image/demo/controlled-preview.md extend context correctly 1`] = `
exports[`renders ./components/image/demo/controlled-preview.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -94,7 +94,7 @@ Array [
]
`;
exports[`renders ./components/image/demo/fallback.md extend context correctly 1`] = `
exports[`renders ./components/image/demo/fallback.tsx extend context correctly 1`] = `
<div
class="ant-image"
style="width: 200px; height: 200px;"
@ -137,7 +137,7 @@ exports[`renders ./components/image/demo/fallback.md extend context correctly 1`
</div>
`;
exports[`renders ./components/image/demo/placeholder.md extend context correctly 1`] = `
exports[`renders ./components/image/demo/placeholder.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -214,7 +214,7 @@ exports[`renders ./components/image/demo/placeholder.md extend context correctly
</div>
`;
exports[`renders ./components/image/demo/preview-group.md extend context correctly 1`] = `
exports[`renders ./components/image/demo/preview-group.tsx extend context correctly 1`] = `
Array [
<div
class="ant-image"
@ -295,7 +295,7 @@ Array [
]
`;
exports[`renders ./components/image/demo/preview-group-top-progress.md extend context correctly 1`] = `
exports[`renders ./components/image/demo/preview-group-top-progress.tsx extend context correctly 1`] = `
Array [
<div
class="ant-image"
@ -414,7 +414,7 @@ Array [
]
`;
exports[`renders ./components/image/demo/preview-group-visible.md extend context correctly 1`] = `
exports[`renders ./components/image/demo/preview-group-visible.tsx extend context correctly 1`] = `
Array [
<div
class="ant-image"
@ -569,7 +569,7 @@ Array [
]
`;
exports[`renders ./components/image/demo/preview-mask.md extend context correctly 1`] = `
exports[`renders ./components/image/demo/preview-mask.tsx extend context correctly 1`] = `
<div
class="ant-image"
style="width: 96px;"
@ -619,7 +619,7 @@ exports[`renders ./components/image/demo/preview-mask.md extend context correctl
</div>
`;
exports[`renders ./components/image/demo/previewSrc.md extend context correctly 1`] = `
exports[`renders ./components/image/demo/previewSrc.tsx extend context correctly 1`] = `
<div
class="ant-image"
style="width: 200px;"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/image/demo/basic.md correctly 1`] = `
exports[`renders ./components/image/demo/basic.tsx correctly 1`] = `
<div
class="ant-image"
style="width: 200px;"
@ -41,7 +41,7 @@ exports[`renders ./components/image/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/image/demo/controlled-preview.md correctly 1`] = `
exports[`renders ./components/image/demo/controlled-preview.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -94,7 +94,7 @@ Array [
]
`;
exports[`renders ./components/image/demo/fallback.md correctly 1`] = `
exports[`renders ./components/image/demo/fallback.tsx correctly 1`] = `
<div
class="ant-image"
style="width: 200px; height: 200px;"
@ -137,7 +137,7 @@ exports[`renders ./components/image/demo/fallback.md correctly 1`] = `
</div>
`;
exports[`renders ./components/image/demo/placeholder.md correctly 1`] = `
exports[`renders ./components/image/demo/placeholder.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -214,7 +214,7 @@ exports[`renders ./components/image/demo/placeholder.md correctly 1`] = `
</div>
`;
exports[`renders ./components/image/demo/preview-group.md correctly 1`] = `
exports[`renders ./components/image/demo/preview-group.tsx correctly 1`] = `
Array [
<div
class="ant-image"
@ -295,7 +295,7 @@ Array [
]
`;
exports[`renders ./components/image/demo/preview-group-top-progress.md correctly 1`] = `
exports[`renders ./components/image/demo/preview-group-top-progress.tsx correctly 1`] = `
Array [
<div
class="ant-image"
@ -414,7 +414,7 @@ Array [
]
`;
exports[`renders ./components/image/demo/preview-group-visible.md correctly 1`] = `
exports[`renders ./components/image/demo/preview-group-visible.tsx correctly 1`] = `
Array [
<div
class="ant-image"
@ -569,7 +569,7 @@ Array [
]
`;
exports[`renders ./components/image/demo/preview-mask.md correctly 1`] = `
exports[`renders ./components/image/demo/preview-mask.tsx correctly 1`] = `
<div
class="ant-image"
style="width: 96px;"
@ -619,7 +619,7 @@ exports[`renders ./components/image/demo/preview-mask.md correctly 1`] = `
</div>
`;
exports[`renders ./components/image/demo/previewSrc.md correctly 1`] = `
exports[`renders ./components/image/demo/previewSrc.tsx correctly 1`] = `
<div
class="ant-image"
style="width: 200px;"

View File

@ -1,5 +1,7 @@
/*
* debug: true */import { Image } from 'antd';
* debug: true */
import React from 'react';
import { Image } from 'antd';
const App = () => (
<Image.PreviewGroup

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/input-number/demo/addon.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/addon.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -852,7 +852,7 @@ exports[`renders ./components/input-number/demo/addon.md extend context correctl
</div>
`;
exports[`renders ./components/input-number/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-input-number"
>
@ -931,7 +931,7 @@ exports[`renders ./components/input-number/demo/basic.md extend context correctl
</div>
`;
exports[`renders ./components/input-number/demo/borderless.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/borderless.tsx extend context correctly 1`] = `
<div
class="ant-input-number ant-input-number-borderless"
>
@ -1010,7 +1010,7 @@ exports[`renders ./components/input-number/demo/borderless.md extend context cor
</div>
`;
exports[`renders ./components/input-number/demo/controls.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/controls.tsx extend context correctly 1`] = `
<div
class="ant-input-number"
>
@ -1094,7 +1094,7 @@ exports[`renders ./components/input-number/demo/controls.md extend context corre
</div>
`;
exports[`renders ./components/input-number/demo/debug-token.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/debug-token.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -1256,7 +1256,7 @@ exports[`renders ./components/input-number/demo/debug-token.md extend context co
</div>
`;
exports[`renders ./components/input-number/demo/digit.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/digit.tsx extend context correctly 1`] = `
<div
class="ant-input-number"
style="width: 200px;"
@ -1336,7 +1336,7 @@ exports[`renders ./components/input-number/demo/digit.md extend context correctl
</div>
`;
exports[`renders ./components/input-number/demo/disabled.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/disabled.tsx extend context correctly 1`] = `
Array [
<div
class="ant-input-number ant-input-number-disabled"
@ -1430,7 +1430,7 @@ Array [
]
`;
exports[`renders ./components/input-number/demo/formatter.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/formatter.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -1596,7 +1596,7 @@ exports[`renders ./components/input-number/demo/formatter.md extend context corr
</div>
`;
exports[`renders ./components/input-number/demo/keyboard.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/keyboard.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -1708,7 +1708,7 @@ exports[`renders ./components/input-number/demo/keyboard.md extend context corre
</div>
`;
exports[`renders ./components/input-number/demo/out-of-range.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/out-of-range.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -1808,7 +1808,7 @@ exports[`renders ./components/input-number/demo/out-of-range.md extend context c
</div>
`;
exports[`renders ./components/input-number/demo/prefix.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/prefix.tsx extend context correctly 1`] = `
Array [
<div
class="ant-input-number-affix-wrapper"
@ -2098,7 +2098,7 @@ Array [
]
`;
exports[`renders ./components/input-number/demo/render-panel.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/render-panel.tsx extend context correctly 1`] = `
<div
style="display: flex; flex-direction: column; row-gap: 16px;"
>
@ -2179,7 +2179,7 @@ exports[`renders ./components/input-number/demo/render-panel.md extend context c
</div>
`;
exports[`renders ./components/input-number/demo/size.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/size.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -2428,7 +2428,7 @@ exports[`renders ./components/input-number/demo/size.md extend context correctly
</div>
`;
exports[`renders ./components/input-number/demo/status.md extend context correctly 1`] = `
exports[`renders ./components/input-number/demo/status.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/input-number/demo/addon.md correctly 1`] = `
exports[`renders ./components/input-number/demo/addon.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -580,7 +580,7 @@ exports[`renders ./components/input-number/demo/addon.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input-number/demo/basic.md correctly 1`] = `
exports[`renders ./components/input-number/demo/basic.tsx correctly 1`] = `
<div
class="ant-input-number"
>
@ -659,7 +659,7 @@ exports[`renders ./components/input-number/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input-number/demo/borderless.md correctly 1`] = `
exports[`renders ./components/input-number/demo/borderless.tsx correctly 1`] = `
<div
class="ant-input-number ant-input-number-borderless"
>
@ -738,7 +738,7 @@ exports[`renders ./components/input-number/demo/borderless.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input-number/demo/controls.md correctly 1`] = `
exports[`renders ./components/input-number/demo/controls.tsx correctly 1`] = `
<div
class="ant-input-number"
>
@ -822,7 +822,7 @@ exports[`renders ./components/input-number/demo/controls.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input-number/demo/debug-token.md correctly 1`] = `
exports[`renders ./components/input-number/demo/debug-token.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -984,7 +984,7 @@ exports[`renders ./components/input-number/demo/debug-token.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input-number/demo/digit.md correctly 1`] = `
exports[`renders ./components/input-number/demo/digit.tsx correctly 1`] = `
<div
class="ant-input-number"
style="width: 200px;"
@ -1064,7 +1064,7 @@ exports[`renders ./components/input-number/demo/digit.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input-number/demo/disabled.md correctly 1`] = `
exports[`renders ./components/input-number/demo/disabled.tsx correctly 1`] = `
Array [
<div
class="ant-input-number ant-input-number-disabled"
@ -1158,7 +1158,7 @@ Array [
]
`;
exports[`renders ./components/input-number/demo/formatter.md correctly 1`] = `
exports[`renders ./components/input-number/demo/formatter.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -1324,7 +1324,7 @@ exports[`renders ./components/input-number/demo/formatter.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input-number/demo/keyboard.md correctly 1`] = `
exports[`renders ./components/input-number/demo/keyboard.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -1436,7 +1436,7 @@ exports[`renders ./components/input-number/demo/keyboard.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input-number/demo/out-of-range.md correctly 1`] = `
exports[`renders ./components/input-number/demo/out-of-range.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -1536,7 +1536,7 @@ exports[`renders ./components/input-number/demo/out-of-range.md correctly 1`] =
</div>
`;
exports[`renders ./components/input-number/demo/prefix.md correctly 1`] = `
exports[`renders ./components/input-number/demo/prefix.tsx correctly 1`] = `
Array [
<div
class="ant-input-number-affix-wrapper"
@ -1826,7 +1826,7 @@ Array [
]
`;
exports[`renders ./components/input-number/demo/render-panel.md correctly 1`] = `
exports[`renders ./components/input-number/demo/render-panel.tsx correctly 1`] = `
<div
style="display: flex; flex-direction: column; row-gap: 16px;"
>
@ -1907,7 +1907,7 @@ exports[`renders ./components/input-number/demo/render-panel.md correctly 1`] =
</div>
`;
exports[`renders ./components/input-number/demo/size.md correctly 1`] = `
exports[`renders ./components/input-number/demo/size.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -2156,7 +2156,7 @@ exports[`renders ./components/input-number/demo/size.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input-number/demo/status.md correctly 1`] = `
exports[`renders ./components/input-number/demo/status.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"

View File

@ -1,5 +1,7 @@
/*
* debug: true */import { ConfigProvider, InputNumber, Space } from 'antd';
* debug: true */
import React from 'react';
import { ConfigProvider, InputNumber, Space } from 'antd';
export default () => (
<ConfigProvider

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/input/demo/addon.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/addon.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -606,7 +606,7 @@ exports[`renders ./components/input/demo/addon.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/input/demo/align.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/align.tsx extend context correctly 1`] = `
Array [
<div
class="ant-mentions"
@ -4847,7 +4847,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/allowClear.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/allowClear.tsx extend context correctly 1`] = `
Array [
<span
class="ant-input-affix-wrapper"
@ -4921,7 +4921,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/autosize-textarea.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/autosize-textarea.tsx extend context correctly 1`] = `
Array [
<textarea
class="ant-input"
@ -4944,7 +4944,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/basic.tsx extend context correctly 1`] = `
<input
class="ant-input"
placeholder="Basic usage"
@ -4953,7 +4953,7 @@ exports[`renders ./components/input/demo/basic.md extend context correctly 1`] =
/>
`;
exports[`renders ./components/input/demo/borderless.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/borderless.tsx extend context correctly 1`] = `
<input
class="ant-input ant-input-borderless"
placeholder="Borderless"
@ -4962,7 +4962,7 @@ exports[`renders ./components/input/demo/borderless.md extend context correctly
/>
`;
exports[`renders ./components/input/demo/borderless-debug.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/borderless-debug.tsx extend context correctly 1`] = `
<div
style="background-color: rgba(0, 0, 128, 0.2);"
>
@ -5091,7 +5091,7 @@ exports[`renders ./components/input/demo/borderless-debug.md extend context corr
</div>
`;
exports[`renders ./components/input/demo/focus.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/focus.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"
@ -5206,7 +5206,7 @@ exports[`renders ./components/input/demo/focus.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/input/demo/group.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/group.tsx extend context correctly 1`] = `
<div
class="site-input-group-wrapper"
>
@ -8673,7 +8673,7 @@ exports[`renders ./components/input/demo/group.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/input/demo/password-input.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/password-input.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -8765,7 +8765,7 @@ exports[`renders ./components/input/demo/password-input.md extend context correc
</div>
`;
exports[`renders ./components/input/demo/presuffix.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/presuffix.tsx extend context correctly 1`] = `
Array [
<span
class="ant-input-affix-wrapper"
@ -8897,7 +8897,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/search-input.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/search-input.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -9288,7 +9288,7 @@ exports[`renders ./components/input/demo/search-input.md extend context correctl
</div>
`;
exports[`renders ./components/input/demo/search-input-loading.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/search-input-loading.tsx extend context correctly 1`] = `
Array [
<span
class="ant-input-group-wrapper ant-input-search"
@ -9439,7 +9439,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/show-count.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/show-count.tsx extend context correctly 1`] = `
Array [
<span
class="ant-input-affix-wrapper"
@ -9473,7 +9473,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/size.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/size.tsx extend context correctly 1`] = `
Array [
<span
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg"
@ -9581,7 +9581,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/status.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/status.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"
@ -9692,7 +9692,7 @@ exports[`renders ./components/input/demo/status.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/input/demo/textarea.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/textarea.tsx extend context correctly 1`] = `
Array [
<textarea
class="ant-input"
@ -9708,7 +9708,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/textarea-resize.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/textarea-resize.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-default"
@ -9756,7 +9756,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/textarea-show-count.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/textarea-show-count.tsx extend context correctly 1`] = `
<div
class="ant-input-textarea ant-input-textarea-show-count"
data-count="0 / 100"
@ -9768,7 +9768,7 @@ exports[`renders ./components/input/demo/textarea-show-count.md extend context c
</div>
`;
exports[`renders ./components/input/demo/tooltip.md extend context correctly 1`] = `
exports[`renders ./components/input/demo/tooltip.tsx extend context correctly 1`] = `
Array [
<input
class="ant-input"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/input/demo/addon.md correctly 1`] = `
exports[`renders ./components/input/demo/addon.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -334,7 +334,7 @@ exports[`renders ./components/input/demo/addon.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input/demo/align.md correctly 1`] = `
exports[`renders ./components/input/demo/align.tsx correctly 1`] = `
Array [
<div
class="ant-mentions"
@ -1066,7 +1066,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/allowClear.md correctly 1`] = `
exports[`renders ./components/input/demo/allowClear.tsx correctly 1`] = `
Array [
<span
class="ant-input-affix-wrapper"
@ -1140,7 +1140,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/autosize-textarea.md correctly 1`] = `
exports[`renders ./components/input/demo/autosize-textarea.tsx correctly 1`] = `
Array [
<textarea
class="ant-input"
@ -1163,7 +1163,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/basic.md correctly 1`] = `
exports[`renders ./components/input/demo/basic.tsx correctly 1`] = `
<input
class="ant-input"
placeholder="Basic usage"
@ -1172,7 +1172,7 @@ exports[`renders ./components/input/demo/basic.md correctly 1`] = `
/>
`;
exports[`renders ./components/input/demo/borderless.md correctly 1`] = `
exports[`renders ./components/input/demo/borderless.tsx correctly 1`] = `
<input
class="ant-input ant-input-borderless"
placeholder="Borderless"
@ -1181,7 +1181,7 @@ exports[`renders ./components/input/demo/borderless.md correctly 1`] = `
/>
`;
exports[`renders ./components/input/demo/borderless-debug.md correctly 1`] = `
exports[`renders ./components/input/demo/borderless-debug.tsx correctly 1`] = `
<div
style="background-color: rgba(0, 0, 128, 0.2);"
>
@ -1310,7 +1310,7 @@ exports[`renders ./components/input/demo/borderless-debug.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input/demo/focus.md correctly 1`] = `
exports[`renders ./components/input/demo/focus.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"
@ -1425,7 +1425,7 @@ exports[`renders ./components/input/demo/focus.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input/demo/group.md correctly 1`] = `
exports[`renders ./components/input/demo/group.tsx correctly 1`] = `
<div
class="site-input-group-wrapper"
>
@ -2480,7 +2480,7 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input/demo/password-input.md correctly 1`] = `
exports[`renders ./components/input/demo/password-input.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -2572,7 +2572,7 @@ exports[`renders ./components/input/demo/password-input.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input/demo/presuffix.md correctly 1`] = `
exports[`renders ./components/input/demo/presuffix.tsx correctly 1`] = `
Array [
<span
class="ant-input-affix-wrapper"
@ -2680,7 +2680,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/search-input.md correctly 1`] = `
exports[`renders ./components/input/demo/search-input.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>
@ -3071,7 +3071,7 @@ exports[`renders ./components/input/demo/search-input.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input/demo/search-input-loading.md correctly 1`] = `
exports[`renders ./components/input/demo/search-input-loading.tsx correctly 1`] = `
Array [
<span
class="ant-input-group-wrapper ant-input-search"
@ -3222,7 +3222,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/show-count.md correctly 1`] = `
exports[`renders ./components/input/demo/show-count.tsx correctly 1`] = `
Array [
<span
class="ant-input-affix-wrapper"
@ -3256,7 +3256,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/size.md correctly 1`] = `
exports[`renders ./components/input/demo/size.tsx correctly 1`] = `
Array [
<span
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg"
@ -3364,7 +3364,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/status.md correctly 1`] = `
exports[`renders ./components/input/demo/status.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="width: 100%;"
@ -3475,7 +3475,7 @@ exports[`renders ./components/input/demo/status.md correctly 1`] = `
</div>
`;
exports[`renders ./components/input/demo/textarea.md correctly 1`] = `
exports[`renders ./components/input/demo/textarea.tsx correctly 1`] = `
Array [
<textarea
class="ant-input"
@ -3491,7 +3491,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/textarea-resize.md correctly 1`] = `
exports[`renders ./components/input/demo/textarea-resize.tsx correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-default"
@ -3539,7 +3539,7 @@ Array [
]
`;
exports[`renders ./components/input/demo/textarea-show-count.md correctly 1`] = `
exports[`renders ./components/input/demo/textarea-show-count.tsx correctly 1`] = `
<div
class="ant-input-textarea ant-input-textarea-show-count"
data-count="0 / 100"
@ -3551,7 +3551,7 @@ exports[`renders ./components/input/demo/textarea-show-count.md correctly 1`] =
</div>
`;
exports[`renders ./components/input/demo/tooltip.md correctly 1`] = `
exports[`renders ./components/input/demo/tooltip.tsx correctly 1`] = `
<input
class="ant-input"
maxlength="16"

View File

@ -1,5 +1,5 @@
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('Input image', () => {
imageDemoTest('input', { skip: ['search-input-loading.md'] });
imageDemoTest('input', { skip: ['search-input-loading.tsx'] });
});

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/layout/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/layout/demo/basic.tsx extend context correctly 1`] = `
Array [
<section
class="ant-layout"
@ -123,7 +123,7 @@ Array [
]
`;
exports[`renders ./components/layout/demo/custom-trigger.md extend context correctly 1`] = `
exports[`renders ./components/layout/demo/custom-trigger.tsx extend context correctly 1`] = `
<section
class="ant-layout ant-layout-has-sider"
>
@ -417,7 +417,7 @@ exports[`renders ./components/layout/demo/custom-trigger.md extend context corre
</section>
`;
exports[`renders ./components/layout/demo/fixed.md extend context correctly 1`] = `
exports[`renders ./components/layout/demo/fixed.tsx extend context correctly 1`] = `
<section
class="ant-layout"
>
@ -724,7 +724,7 @@ exports[`renders ./components/layout/demo/fixed.md extend context correctly 1`]
</section>
`;
exports[`renders ./components/layout/demo/fixed-sider.md extend context correctly 1`] = `
exports[`renders ./components/layout/demo/fixed-sider.tsx extend context correctly 1`] = `
<section
class="ant-layout ant-layout-has-sider"
>
@ -1591,7 +1591,7 @@ exports[`renders ./components/layout/demo/fixed-sider.md extend context correctl
</section>
`;
exports[`renders ./components/layout/demo/responsive.md extend context correctly 1`] = `
exports[`renders ./components/layout/demo/responsive.tsx extend context correctly 1`] = `
<section
class="ant-layout ant-layout-has-sider"
>
@ -1990,7 +1990,7 @@ exports[`renders ./components/layout/demo/responsive.md extend context correctly
</section>
`;
exports[`renders ./components/layout/demo/side.md extend context correctly 1`] = `
exports[`renders ./components/layout/demo/side.tsx extend context correctly 1`] = `
<section
class="ant-layout ant-layout-has-sider"
style="min-height: 100vh;"
@ -2727,7 +2727,7 @@ exports[`renders ./components/layout/demo/side.md extend context correctly 1`] =
</section>
`;
exports[`renders ./components/layout/demo/top.md extend context correctly 1`] = `
exports[`renders ./components/layout/demo/top.tsx extend context correctly 1`] = `
<section
class="ant-layout layout"
>
@ -3704,7 +3704,7 @@ exports[`renders ./components/layout/demo/top.md extend context correctly 1`] =
</section>
`;
exports[`renders ./components/layout/demo/top-side.md extend context correctly 1`] = `
exports[`renders ./components/layout/demo/top-side.tsx extend context correctly 1`] = `
<section
class="ant-layout"
>
@ -5035,7 +5035,7 @@ exports[`renders ./components/layout/demo/top-side.md extend context correctly 1
</section>
`;
exports[`renders ./components/layout/demo/top-side-2.md extend context correctly 1`] = `
exports[`renders ./components/layout/demo/top-side-2.tsx extend context correctly 1`] = `
<section
class="ant-layout"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/layout/demo/basic.md correctly 1`] = `
exports[`renders ./components/layout/demo/basic.tsx correctly 1`] = `
Array [
<section
class="ant-layout"
@ -123,7 +123,7 @@ Array [
]
`;
exports[`renders ./components/layout/demo/custom-trigger.md correctly 1`] = `
exports[`renders ./components/layout/demo/custom-trigger.tsx correctly 1`] = `
<section
class="ant-layout ant-layout-has-sider"
>
@ -284,7 +284,7 @@ exports[`renders ./components/layout/demo/custom-trigger.md correctly 1`] = `
</section>
`;
exports[`renders ./components/layout/demo/fixed.md correctly 1`] = `
exports[`renders ./components/layout/demo/fixed.tsx correctly 1`] = `
<section
class="ant-layout"
>
@ -446,7 +446,7 @@ exports[`renders ./components/layout/demo/fixed.md correctly 1`] = `
</section>
`;
exports[`renders ./components/layout/demo/fixed-sider.md correctly 1`] = `
exports[`renders ./components/layout/demo/fixed-sider.tsx correctly 1`] = `
<section
class="ant-layout ant-layout-has-sider"
>
@ -960,7 +960,7 @@ exports[`renders ./components/layout/demo/fixed-sider.md correctly 1`] = `
</section>
`;
exports[`renders ./components/layout/demo/responsive.md correctly 1`] = `
exports[`renders ./components/layout/demo/responsive.tsx correctly 1`] = `
<section
class="ant-layout ant-layout-has-sider"
>
@ -1166,7 +1166,7 @@ exports[`renders ./components/layout/demo/responsive.md correctly 1`] = `
</section>
`;
exports[`renders ./components/layout/demo/side.md correctly 1`] = `
exports[`renders ./components/layout/demo/side.tsx correctly 1`] = `
<section
class="ant-layout ant-layout-has-sider"
style="min-height: 100vh;"
@ -1459,7 +1459,7 @@ exports[`renders ./components/layout/demo/side.md correctly 1`] = `
</section>
`;
exports[`renders ./components/layout/demo/top.md correctly 1`] = `
exports[`renders ./components/layout/demo/top.tsx correctly 1`] = `
<section
class="ant-layout layout"
>
@ -1763,7 +1763,7 @@ exports[`renders ./components/layout/demo/top.md correctly 1`] = `
</section>
`;
exports[`renders ./components/layout/demo/top-side.md correctly 1`] = `
exports[`renders ./components/layout/demo/top-side.tsx correctly 1`] = `
<section
class="ant-layout"
>
@ -2137,7 +2137,7 @@ exports[`renders ./components/layout/demo/top-side.md correctly 1`] = `
</section>
`;
exports[`renders ./components/layout/demo/top-side-2.md correctly 1`] = `
exports[`renders ./components/layout/demo/top-side-2.tsx correctly 1`] = `
<section
class="ant-layout"
>

View File

@ -1,3 +1,3 @@
import { extendTest } from '../../../tests/shared/demoTest';
extendTest('layout', { skip: ['custom-trigger-debug.md'] });
extendTest('layout', { skip: ['custom-trigger-debug.tsx'] });

View File

@ -1,3 +1,3 @@
import demoTest from '../../../tests/shared/demoTest';
demoTest('layout', { skip: ['custom-trigger-debug.md'] });
demoTest('layout', { skip: ['custom-trigger-debug.tsx'] });

View File

@ -1,5 +1,5 @@
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('Layout image', () => {
imageDemoTest('layout', { skip: ['fixed-sider.md'] });
imageDemoTest('layout', { skip: ['fixed-sider.tsx'] });
});

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/list/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/list/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-list ant-list-split"
>
@ -167,7 +167,7 @@ exports[`renders ./components/list/demo/basic.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/list/demo/grid.md extend context correctly 1`] = `
exports[`renders ./components/list/demo/grid.tsx extend context correctly 1`] = `
<div
class="ant-list ant-list-split ant-list-grid"
>
@ -327,7 +327,7 @@ exports[`renders ./components/list/demo/grid.md extend context correctly 1`] = `
</div>
`;
exports[`renders ./components/list/demo/grid-test.md extend context correctly 1`] = `
exports[`renders ./components/list/demo/grid-test.tsx extend context correctly 1`] = `
Array [
<div
class="ant-list ant-list-split ant-list-grid"
@ -1019,7 +1019,7 @@ Array [
]
`;
exports[`renders ./components/list/demo/infinite-load.md extend context correctly 1`] = `
exports[`renders ./components/list/demo/infinite-load.tsx extend context correctly 1`] = `
<div
id="scrollableDiv"
style="height: 400px; overflow: auto; padding: 0px 16px; border: 1px solid rgba(140, 140, 140, 0.35);"
@ -1121,7 +1121,7 @@ exports[`renders ./components/list/demo/infinite-load.md extend context correctl
</div>
`;
exports[`renders ./components/list/demo/loadmore.md extend context correctly 1`] = `
exports[`renders ./components/list/demo/loadmore.tsx extend context correctly 1`] = `
<div
class="ant-list ant-list-split ant-list-loading demo-loadmore-list"
>
@ -1163,7 +1163,7 @@ exports[`renders ./components/list/demo/loadmore.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/list/demo/responsive.md extend context correctly 1`] = `
exports[`renders ./components/list/demo/responsive.tsx extend context correctly 1`] = `
<div
class="ant-list ant-list-split ant-list-grid"
>
@ -1393,7 +1393,7 @@ exports[`renders ./components/list/demo/responsive.md extend context correctly 1
</div>
`;
exports[`renders ./components/list/demo/simple.md extend context correctly 1`] = `
exports[`renders ./components/list/demo/simple.tsx extend context correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -1628,7 +1628,7 @@ Array [
]
`;
exports[`renders ./components/list/demo/vertical.md extend context correctly 1`] = `
exports[`renders ./components/list/demo/vertical.tsx extend context correctly 1`] = `
<div
class="ant-list ant-list-vertical ant-list-lg ant-list-split ant-list-something-after-last-item"
>
@ -2332,7 +2332,7 @@ exports[`renders ./components/list/demo/vertical.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/list/demo/virtual-list.md extend context correctly 1`] = `
exports[`renders ./components/list/demo/virtual-list.tsx extend context correctly 1`] = `
<div
class="ant-list ant-list-split"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/list/demo/basic.md correctly 1`] = `
exports[`renders ./components/list/demo/basic.tsx correctly 1`] = `
<div
class="ant-list ant-list-split"
>
@ -167,7 +167,7 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/list/demo/grid.md correctly 1`] = `
exports[`renders ./components/list/demo/grid.tsx correctly 1`] = `
<div
class="ant-list ant-list-split ant-list-grid"
>
@ -327,7 +327,7 @@ exports[`renders ./components/list/demo/grid.md correctly 1`] = `
</div>
`;
exports[`renders ./components/list/demo/grid-test.md correctly 1`] = `
exports[`renders ./components/list/demo/grid-test.tsx correctly 1`] = `
Array [
<div
class="ant-list ant-list-split ant-list-grid"
@ -1019,7 +1019,7 @@ Array [
]
`;
exports[`renders ./components/list/demo/infinite-load.md correctly 1`] = `
exports[`renders ./components/list/demo/infinite-load.tsx correctly 1`] = `
<div
id="scrollableDiv"
style="height: 400px; overflow: auto; padding: 0px 16px; border: 1px solid rgba(140, 140, 140, 0.35);"
@ -1121,7 +1121,7 @@ exports[`renders ./components/list/demo/infinite-load.md correctly 1`] = `
</div>
`;
exports[`renders ./components/list/demo/loadmore.md correctly 1`] = `
exports[`renders ./components/list/demo/loadmore.tsx correctly 1`] = `
<div
class="ant-list ant-list-split ant-list-loading demo-loadmore-list"
>
@ -1163,7 +1163,7 @@ exports[`renders ./components/list/demo/loadmore.md correctly 1`] = `
</div>
`;
exports[`renders ./components/list/demo/responsive.md correctly 1`] = `
exports[`renders ./components/list/demo/responsive.tsx correctly 1`] = `
<div
class="ant-list ant-list-split ant-list-grid"
>
@ -1393,7 +1393,7 @@ exports[`renders ./components/list/demo/responsive.md correctly 1`] = `
</div>
`;
exports[`renders ./components/list/demo/simple.md correctly 1`] = `
exports[`renders ./components/list/demo/simple.tsx correctly 1`] = `
Array [
<div
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
@ -1628,7 +1628,7 @@ Array [
]
`;
exports[`renders ./components/list/demo/vertical.md correctly 1`] = `
exports[`renders ./components/list/demo/vertical.tsx correctly 1`] = `
<div
class="ant-list ant-list-vertical ant-list-lg ant-list-split ant-list-something-after-last-item"
>
@ -2332,7 +2332,7 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = `
</div>
`;
exports[`renders ./components/list/demo/virtual-list.md correctly 1`] = `
exports[`renders ./components/list/demo/virtual-list.tsx correctly 1`] = `
<div
class="ant-list ant-list-split"
>

View File

@ -1,5 +1,5 @@
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('List image', () => {
imageDemoTest('list', { skip: ['loadmore.md'] });
imageDemoTest('list', { skip: ['loadmore.tsx'] });
});

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/mentions/demo/async.md extend context correctly 1`] = `
exports[`renders ./components/mentions/demo/async.tsx extend context correctly 1`] = `
<div
class="ant-mentions"
style="width: 100%;"
@ -12,7 +12,7 @@ exports[`renders ./components/mentions/demo/async.md extend context correctly 1`
</div>
`;
exports[`renders ./components/mentions/demo/autoSize.md extend context correctly 1`] = `
exports[`renders ./components/mentions/demo/autoSize.tsx extend context correctly 1`] = `
<div
class="ant-mentions"
style="width: 100%;"
@ -24,7 +24,7 @@ exports[`renders ./components/mentions/demo/autoSize.md extend context correctly
</div>
`;
exports[`renders ./components/mentions/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/mentions/demo/basic.tsx extend context correctly 1`] = `
<div
class="ant-mentions"
style="width: 100%;"
@ -38,7 +38,7 @@ exports[`renders ./components/mentions/demo/basic.md extend context correctly 1`
</div>
`;
exports[`renders ./components/mentions/demo/form.md extend context correctly 1`] = `
exports[`renders ./components/mentions/demo/form.tsx extend context correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>
@ -163,7 +163,7 @@ exports[`renders ./components/mentions/demo/form.md extend context correctly 1`]
</form>
`;
exports[`renders ./components/mentions/demo/placement.md extend context correctly 1`] = `
exports[`renders ./components/mentions/demo/placement.tsx extend context correctly 1`] = `
<div
class="ant-mentions"
style="width: 100%;"
@ -175,7 +175,7 @@ exports[`renders ./components/mentions/demo/placement.md extend context correctl
</div>
`;
exports[`renders ./components/mentions/demo/prefix.md extend context correctly 1`] = `
exports[`renders ./components/mentions/demo/prefix.tsx extend context correctly 1`] = `
<div
class="ant-mentions"
style="width: 100%;"
@ -188,7 +188,7 @@ exports[`renders ./components/mentions/demo/prefix.md extend context correctly 1
</div>
`;
exports[`renders ./components/mentions/demo/readonly.md extend context correctly 1`] = `
exports[`renders ./components/mentions/demo/readonly.tsx extend context correctly 1`] = `
Array [
<div
style="margin-bottom: 10px;"
@ -219,7 +219,7 @@ Array [
]
`;
exports[`renders ./components/mentions/demo/render-panel.md extend context correctly 1`] = `
exports[`renders ./components/mentions/demo/render-panel.tsx extend context correctly 1`] = `
<div
style="padding-bottom: 0px; position: relative; min-width: 0;"
>
@ -281,7 +281,7 @@ exports[`renders ./components/mentions/demo/render-panel.md extend context corre
</div>
`;
exports[`renders ./components/mentions/demo/status.md extend context correctly 1`] = `
exports[`renders ./components/mentions/demo/status.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/mentions/demo/async.md correctly 1`] = `
exports[`renders ./components/mentions/demo/async.tsx correctly 1`] = `
<div
class="ant-mentions"
style="width: 100%;"
@ -12,7 +12,7 @@ exports[`renders ./components/mentions/demo/async.md correctly 1`] = `
</div>
`;
exports[`renders ./components/mentions/demo/autoSize.md correctly 1`] = `
exports[`renders ./components/mentions/demo/autoSize.tsx correctly 1`] = `
<div
class="ant-mentions"
style="width: 100%;"
@ -24,7 +24,7 @@ exports[`renders ./components/mentions/demo/autoSize.md correctly 1`] = `
</div>
`;
exports[`renders ./components/mentions/demo/basic.md correctly 1`] = `
exports[`renders ./components/mentions/demo/basic.tsx correctly 1`] = `
<div
class="ant-mentions"
style="width: 100%;"
@ -38,7 +38,7 @@ exports[`renders ./components/mentions/demo/basic.md correctly 1`] = `
</div>
`;
exports[`renders ./components/mentions/demo/form.md correctly 1`] = `
exports[`renders ./components/mentions/demo/form.tsx correctly 1`] = `
<form
class="ant-form ant-form-horizontal"
>
@ -163,7 +163,7 @@ exports[`renders ./components/mentions/demo/form.md correctly 1`] = `
</form>
`;
exports[`renders ./components/mentions/demo/placement.md correctly 1`] = `
exports[`renders ./components/mentions/demo/placement.tsx correctly 1`] = `
<div
class="ant-mentions"
style="width: 100%;"
@ -175,7 +175,7 @@ exports[`renders ./components/mentions/demo/placement.md correctly 1`] = `
</div>
`;
exports[`renders ./components/mentions/demo/prefix.md correctly 1`] = `
exports[`renders ./components/mentions/demo/prefix.tsx correctly 1`] = `
<div
class="ant-mentions"
style="width: 100%;"
@ -188,7 +188,7 @@ exports[`renders ./components/mentions/demo/prefix.md correctly 1`] = `
</div>
`;
exports[`renders ./components/mentions/demo/readonly.md correctly 1`] = `
exports[`renders ./components/mentions/demo/readonly.tsx correctly 1`] = `
Array [
<div
style="margin-bottom: 10px;"
@ -219,7 +219,7 @@ Array [
]
`;
exports[`renders ./components/mentions/demo/render-panel.md correctly 1`] = `
exports[`renders ./components/mentions/demo/render-panel.tsx correctly 1`] = `
<div
style="padding-bottom: 0px; position: relative; min-width: 0;"
>
@ -281,7 +281,7 @@ exports[`renders ./components/mentions/demo/render-panel.md correctly 1`] = `
</div>
`;
exports[`renders ./components/mentions/demo/status.md correctly 1`] = `
exports[`renders ./components/mentions/demo/status.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/menu/demo/deprecated.md extend context correctly 1`] = `
exports[`renders ./components/menu/demo/deprecated.tsx extend context correctly 1`] = `
Array [
<ul
class="ant-menu-overflow ant-menu ant-menu-root ant-menu-horizontal ant-menu-light"
@ -274,7 +274,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/horizontal.md extend context correctly 1`] = `
exports[`renders ./components/menu/demo/horizontal.tsx extend context correctly 1`] = `
Array [
<ul
class="ant-menu-overflow ant-menu ant-menu-root ant-menu-horizontal ant-menu-light"
@ -685,7 +685,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/inline.md extend context correctly 1`] = `
exports[`renders ./components/menu/demo/inline.tsx extend context correctly 1`] = `
Array [
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-light"
@ -1794,7 +1794,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/inline-collapsed.md extend context correctly 1`] = `
exports[`renders ./components/menu/demo/inline-collapsed.tsx extend context correctly 1`] = `
<div
style="width: 256px;"
>
@ -2817,7 +2817,7 @@ exports[`renders ./components/menu/demo/inline-collapsed.md extend context corre
</div>
`;
exports[`renders ./components/menu/demo/sider-current.md extend context correctly 1`] = `
exports[`renders ./components/menu/demo/sider-current.tsx extend context correctly 1`] = `
Array [
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-light"
@ -3870,7 +3870,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/style-debug.md extend context correctly 1`] = `
exports[`renders ./components/menu/demo/style-debug.tsx extend context correctly 1`] = `
Array [
<button
aria-checked="true"
@ -4191,7 +4191,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/submenu-theme.md extend context correctly 1`] = `
exports[`renders ./components/menu/demo/submenu-theme.tsx extend context correctly 1`] = `
Array [
<button
aria-checked="false"
@ -4571,7 +4571,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/switch-mode.md extend context correctly 1`] = `
exports[`renders ./components/menu/demo/switch-mode.tsx extend context correctly 1`] = `
Array [
<button
aria-checked="false"
@ -5657,7 +5657,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/theme.md extend context correctly 1`] = `
exports[`renders ./components/menu/demo/theme.tsx extend context correctly 1`] = `
Array [
<button
aria-checked="true"
@ -6736,7 +6736,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/vertical.md extend context correctly 1`] = `
exports[`renders ./components/menu/demo/vertical.tsx extend context correctly 1`] = `
Array [
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/menu/demo/deprecated.md correctly 1`] = `
exports[`renders ./components/menu/demo/deprecated.tsx correctly 1`] = `
Array [
<ul
class="ant-menu-overflow ant-menu ant-menu-root ant-menu-horizontal ant-menu-light"
@ -129,7 +129,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/horizontal.md correctly 1`] = `
exports[`renders ./components/menu/demo/horizontal.tsx correctly 1`] = `
Array [
<ul
class="ant-menu-overflow ant-menu ant-menu-root ant-menu-horizontal ant-menu-light"
@ -307,7 +307,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/inline.md correctly 1`] = `
exports[`renders ./components/menu/demo/inline.tsx correctly 1`] = `
Array [
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-light"
@ -539,7 +539,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/inline-collapsed.md correctly 1`] = `
exports[`renders ./components/menu/demo/inline-collapsed.tsx correctly 1`] = `
<div
style="width: 256px;"
>
@ -822,7 +822,7 @@ exports[`renders ./components/menu/demo/inline-collapsed.md correctly 1`] = `
</div>
`;
exports[`renders ./components/menu/demo/sider-current.md correctly 1`] = `
exports[`renders ./components/menu/demo/sider-current.tsx correctly 1`] = `
Array [
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-light"
@ -1026,7 +1026,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/style-debug.md correctly 1`] = `
exports[`renders ./components/menu/demo/style-debug.tsx correctly 1`] = `
Array [
<button
aria-checked="true"
@ -1180,7 +1180,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/submenu-theme.md correctly 1`] = `
exports[`renders ./components/menu/demo/submenu-theme.tsx correctly 1`] = `
Array [
<button
aria-checked="false"
@ -1290,7 +1290,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/switch-mode.md correctly 1`] = `
exports[`renders ./components/menu/demo/switch-mode.tsx correctly 1`] = `
Array [
<button
aria-checked="false"
@ -1597,7 +1597,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/theme.md correctly 1`] = `
exports[`renders ./components/menu/demo/theme.tsx correctly 1`] = `
Array [
<button
aria-checked="true"
@ -1827,7 +1827,7 @@ Array [
]
`;
exports[`renders ./components/menu/demo/vertical.md correctly 1`] = `
exports[`renders ./components/menu/demo/vertical.tsx correctly 1`] = `
Array [
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light"

View File

@ -1,5 +1,7 @@
/*
* version: < 4.20.0 */import { Menu } from 'antd';
* version: < 4.20.0 */
import React from 'react';
import { Menu } from 'antd';
import { MailOutlined, AppstoreOutlined, SettingOutlined } from '@ant-design/icons';
const App = () => (

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/message/demo/custom-style.md extend context correctly 1`] = `
exports[`renders ./components/message/demo/custom-style.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
@ -11,7 +11,7 @@ exports[`renders ./components/message/demo/custom-style.md extend context correc
</button>
`;
exports[`renders ./components/message/demo/duration.md extend context correctly 1`] = `
exports[`renders ./components/message/demo/duration.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
@ -22,7 +22,7 @@ exports[`renders ./components/message/demo/duration.md extend context correctly
</button>
`;
exports[`renders ./components/message/demo/hooks.md extend context correctly 1`] = `
exports[`renders ./components/message/demo/hooks.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -33,7 +33,7 @@ exports[`renders ./components/message/demo/hooks.md extend context correctly 1`]
</button>
`;
exports[`renders ./components/message/demo/info.md extend context correctly 1`] = `
exports[`renders ./components/message/demo/info.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -44,7 +44,7 @@ exports[`renders ./components/message/demo/info.md extend context correctly 1`]
</button>
`;
exports[`renders ./components/message/demo/loading.md extend context correctly 1`] = `
exports[`renders ./components/message/demo/loading.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
@ -55,7 +55,7 @@ exports[`renders ./components/message/demo/loading.md extend context correctly 1
</button>
`;
exports[`renders ./components/message/demo/other.md extend context correctly 1`] = `
exports[`renders ./components/message/demo/other.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -100,7 +100,7 @@ exports[`renders ./components/message/demo/other.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/message/demo/render-panel.md extend context correctly 1`] = `
exports[`renders ./components/message/demo/render-panel.tsx extend context correctly 1`] = `
<div
class="ant-message-notice ant-message-notice-pure-panel"
>
@ -137,7 +137,7 @@ exports[`renders ./components/message/demo/render-panel.md extend context correc
</div>
`;
exports[`renders ./components/message/demo/thenable.md extend context correctly 1`] = `
exports[`renders ./components/message/demo/thenable.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
@ -148,7 +148,7 @@ exports[`renders ./components/message/demo/thenable.md extend context correctly
</button>
`;
exports[`renders ./components/message/demo/update.md extend context correctly 1`] = `
exports[`renders ./components/message/demo/update.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/message/demo/custom-style.md correctly 1`] = `
exports[`renders ./components/message/demo/custom-style.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
@ -11,7 +11,7 @@ exports[`renders ./components/message/demo/custom-style.md correctly 1`] = `
</button>
`;
exports[`renders ./components/message/demo/duration.md correctly 1`] = `
exports[`renders ./components/message/demo/duration.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
@ -22,7 +22,7 @@ exports[`renders ./components/message/demo/duration.md correctly 1`] = `
</button>
`;
exports[`renders ./components/message/demo/hooks.md correctly 1`] = `
exports[`renders ./components/message/demo/hooks.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -33,7 +33,7 @@ exports[`renders ./components/message/demo/hooks.md correctly 1`] = `
</button>
`;
exports[`renders ./components/message/demo/info.md correctly 1`] = `
exports[`renders ./components/message/demo/info.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -44,7 +44,7 @@ exports[`renders ./components/message/demo/info.md correctly 1`] = `
</button>
`;
exports[`renders ./components/message/demo/loading.md correctly 1`] = `
exports[`renders ./components/message/demo/loading.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
@ -55,7 +55,7 @@ exports[`renders ./components/message/demo/loading.md correctly 1`] = `
</button>
`;
exports[`renders ./components/message/demo/other.md correctly 1`] = `
exports[`renders ./components/message/demo/other.tsx correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -100,7 +100,7 @@ exports[`renders ./components/message/demo/other.md correctly 1`] = `
</div>
`;
exports[`renders ./components/message/demo/render-panel.md correctly 1`] = `
exports[`renders ./components/message/demo/render-panel.tsx correctly 1`] = `
<div
class="ant-message-notice ant-message-notice-pure-panel"
>
@ -137,7 +137,7 @@ exports[`renders ./components/message/demo/render-panel.md correctly 1`] = `
</div>
`;
exports[`renders ./components/message/demo/thenable.md correctly 1`] = `
exports[`renders ./components/message/demo/thenable.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
@ -148,7 +148,7 @@ exports[`renders ./components/message/demo/thenable.md correctly 1`] = `
</button>
`;
exports[`renders ./components/message/demo/update.md correctly 1`] = `
exports[`renders ./components/message/demo/update.tsx correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"

View File

@ -1,5 +1,7 @@
/*
* debug: true */import { message } from 'antd';
* debug: true */
import React from 'react';
import { message } from 'antd';
/** Test usage. Do not use in your production. */
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPanel } = message;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/modal/demo/async.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/async.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -11,7 +11,7 @@ exports[`renders ./components/modal/demo/async.md extend context correctly 1`] =
</button>
`;
exports[`renders ./components/modal/demo/basic.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/basic.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -22,7 +22,7 @@ exports[`renders ./components/modal/demo/basic.md extend context correctly 1`] =
</button>
`;
exports[`renders ./components/modal/demo/button-props.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/button-props.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -33,7 +33,7 @@ exports[`renders ./components/modal/demo/button-props.md extend context correctl
</button>
`;
exports[`renders ./components/modal/demo/confirm.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/confirm.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
style="flex-wrap: wrap; margin-bottom: -8px;"
@ -93,7 +93,7 @@ exports[`renders ./components/modal/demo/confirm.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/modal/demo/confirm-router.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/confirm-router.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
@ -104,7 +104,7 @@ exports[`renders ./components/modal/demo/confirm-router.md extend context correc
</button>
`;
exports[`renders ./components/modal/demo/dark.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/dark.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -115,7 +115,7 @@ exports[`renders ./components/modal/demo/dark.md extend context correctly 1`] =
</button>
`;
exports[`renders ./components/modal/demo/footer.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/footer.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
@ -126,7 +126,7 @@ exports[`renders ./components/modal/demo/footer.md extend context correctly 1`]
</button>
`;
exports[`renders ./components/modal/demo/hooks.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/hooks.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -184,7 +184,7 @@ exports[`renders ./components/modal/demo/hooks.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/modal/demo/info.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/info.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
style="flex-wrap: wrap; margin-bottom: -8px;"
@ -244,7 +244,7 @@ exports[`renders ./components/modal/demo/info.md extend context correctly 1`] =
</div>
`;
exports[`renders ./components/modal/demo/locale.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/locale.tsx extend context correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
@ -276,7 +276,7 @@ exports[`renders ./components/modal/demo/locale.md extend context correctly 1`]
</div>
`;
exports[`renders ./components/modal/demo/manual.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/manual.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
@ -287,7 +287,7 @@ exports[`renders ./components/modal/demo/manual.md extend context correctly 1`]
</button>
`;
exports[`renders ./components/modal/demo/modal-render.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/modal-render.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
@ -298,7 +298,7 @@ exports[`renders ./components/modal/demo/modal-render.md extend context correctl
</button>
`;
exports[`renders ./components/modal/demo/position.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/position.tsx extend context correctly 1`] = `
Array [
<button
class="ant-btn ant-btn-primary"
@ -321,7 +321,7 @@ Array [
]
`;
exports[`renders ./components/modal/demo/render-panel.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/render-panel.tsx extend context correctly 1`] = `
<div
style="display: flex; flex-direction: column; row-gap: 16px;"
>
@ -563,7 +563,7 @@ exports[`renders ./components/modal/demo/render-panel.md extend context correctl
</div>
`;
exports[`renders ./components/modal/demo/width.md extend context correctly 1`] = `
exports[`renders ./components/modal/demo/width.tsx extend context correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"

Some files were not shown because too many files have changed in this diff Show More