ant-design/components/button/__tests__/__snapshots__/demo.test.js.snap

1038 lines
27 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/button/demo/basic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Primary
</span>
</button>
<button
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Default
</span>
</button>
<button
class="ant-btn ant-btn-dashed"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Dashed
2016-11-22 14:28:05 +08:00
</span>
</button>
<button
class="ant-btn ant-btn-danger"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Danger
2016-11-22 14:28:05 +08:00
</span>
</button>
</div>
`;
2018-07-30 19:10:30 +08:00
exports[`renders ./components/button/demo/block.md correctly 1`] = `
<div>
<button
class="ant-btn ant-btn-primary ant-btn-block"
type="button"
>
<span>
Primary
</span>
</button>
<button
class="ant-btn ant-btn-block"
type="button"
>
<span>
Default
</span>
</button>
<button
class="ant-btn ant-btn-dashed ant-btn-block"
type="button"
>
<span>
Dashed
</span>
</button>
<button
class="ant-btn ant-btn-danger ant-btn-block"
type="button"
>
<span>
danger
</span>
</button>
</div>
`;
exports[`renders ./components/button/demo/button-group.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<h4>
Basic
</h4>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Cancel
</span>
</button>
<button
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
OK
</span>
</button>
</div>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
L
</span>
</button>
<button
class="ant-btn"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
M
</span>
</button>
<button
class="ant-btn"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
R
</span>
</button>
</div>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
L
</span>
</button>
<button
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
M
</span>
</button>
<button
2017-02-04 22:35:33 +08:00
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
R
</span>
</button>
</div>
<h4>
With Icon
</h4>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: left"
2018-08-13 20:51:01 +08:00
class="anticon anticon-left"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
<span>
Go back
</span>
</button>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Go forward
</span>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: right"
2018-08-13 20:51:01 +08:00
class="anticon anticon-right"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
</div>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: cloud"
2018-08-13 20:51:01 +08:00
class="anticon anticon-cloud"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="cloud"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 0 1-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 0 1 140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0 1 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
<button
class="ant-btn ant-btn-primary ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: cloud-download"
2018-08-13 20:51:01 +08:00
class="anticon anticon-cloud-download"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="cloud-download"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"
2018-09-02 19:53:29 +08:00
/>
<path
2018-09-06 20:55:23 +08:00
d="M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
</div>
</div>
`;
exports[`renders ./components/button/demo/disabled.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Primary
</span>
</button>
<button
class="ant-btn ant-btn-primary"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Primary(disabled)
</span>
</button>
<br />
<button
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Default
</span>
</button>
<button
class="ant-btn"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Default(disabled)
</span>
</button>
<br />
<button
class="ant-btn ant-btn-dashed"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Dashed
</span>
</button>
<button
class="ant-btn ant-btn-dashed"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Dashed(disabled)
</span>
</button>
2018-05-17 21:23:36 +08:00
<div
style="padding:8px 8px 0 8px;background:rgb(190, 200, 200)"
>
<button
class="ant-btn ant-btn-background-ghost"
type="button"
>
<span>
Ghost
</span>
</button>
<button
class="ant-btn ant-btn-background-ghost"
disabled=""
type="button"
>
<span>
Ghost(disabled)
</span>
</button>
</div>
2016-11-22 14:28:05 +08:00
</div>
`;
exports[`renders ./components/button/demo/ghost.md correctly 1`] = `
<div
2017-09-20 16:26:18 +08:00
style="background:rgb(190, 200, 200);padding:26px 16px 16px"
>
<button
class="ant-btn ant-btn-primary ant-btn-background-ghost"
type="button"
>
<span>
2017-03-18 16:33:55 +08:00
Primary
</span>
</button>
<button
class="ant-btn ant-btn-background-ghost"
type="button"
>
<span>
2017-03-18 16:33:55 +08:00
Default
</span>
</button>
<button
class="ant-btn ant-btn-dashed ant-btn-background-ghost"
type="button"
>
<span>
2017-03-18 16:33:55 +08:00
Dashed
</span>
</button>
<button
class="ant-btn ant-btn-danger ant-btn-background-ghost"
type="button"
>
<span>
danger
</span>
</button>
</div>
`;
exports[`renders ./components/button/demo/icon.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<button
class="ant-btn ant-btn-primary ant-btn-circle ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: search"
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-10-01 23:57:45 +08:00
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: search"
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-10-01 23:57:45 +08:00
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
<span>
Search
</span>
</button>
<button
class="ant-btn ant-btn-circle ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: search"
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-10-01 23:57:45 +08:00
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
</button>
<button
class="ant-btn"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: search"
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-10-01 23:57:45 +08:00
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
<span>
Search
</span>
</button>
2016-11-22 14:28:05 +08:00
<br />
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-btn-circle ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: search"
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-10-01 23:57:45 +08:00
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
<button
2017-02-04 22:35:33 +08:00
class="ant-btn"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: search"
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-10-01 23:57:45 +08:00
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
<span>
Search
</span>
</button>
<button
class="ant-btn ant-btn-dashed ant-btn-circle ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: search"
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-10-01 23:57:45 +08:00
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
</button>
<button
class="ant-btn ant-btn-dashed"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: search"
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-10-01 23:57:45 +08:00
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
<span>
Search
</span>
</button>
2016-11-22 14:28:05 +08:00
</div>
`;
exports[`renders ./components/button/demo/loading.md correctly 1`] = `
2017-04-15 14:52:58 +08:00
<span>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary ant-btn-loading"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: loading"
2018-08-14 15:32:29 +08:00
class="anticon anticon-loading"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class="anticon-spin"
data-icon="loading"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
<span>
Loading
</span>
</button>
<button
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-loading"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: loading"
2018-08-14 15:32:29 +08:00
class="anticon anticon-loading"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class="anticon-spin"
data-icon="loading"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
<span>
Loading
</span>
</button>
<br />
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Click me!
</span>
</button>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: poweroff"
2018-08-13 20:51:01 +08:00
class="anticon anticon-poweroff"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="poweroff"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M705.6 124.9a8 8 0 0 0-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0 1 62.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0 1 27.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 0 1-76.3 113.3 353.06 353.06 0 0 1-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 0 1-113.2-76.4A355.92 355.92 0 0 1 184 650.4a355 355 0 0 1-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
<span>
Click me!
</span>
</button>
<br />
<button
class="ant-btn ant-btn-circle ant-btn-loading"
type="button"
2018-07-19 20:37:47 +08:00
>
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: loading"
2018-08-14 15:32:29 +08:00
class="anticon anticon-loading"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class="anticon-spin"
data-icon="loading"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2018-07-19 20:37:47 +08:00
</button>
<button
class="ant-btn ant-btn-primary ant-btn-circle ant-btn-loading"
type="button"
2018-07-19 20:37:47 +08:00
>
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: loading"
2018-08-14 15:32:29 +08:00
class="anticon anticon-loading"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class="anticon-spin"
data-icon="loading"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2018-07-19 20:37:47 +08:00
</button>
2017-04-15 14:52:58 +08:00
</span>
2016-11-22 14:28:05 +08:00
`;
exports[`renders ./components/button/demo/multiple.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
primary
</span>
</button>
<button
2017-02-04 22:35:33 +08:00
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
secondary
</span>
</button>
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-dropdown-trigger"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Actions
2016-11-22 14:28:05 +08:00
</span>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: down"
2018-08-13 20:51:01 +08:00
class="anticon anticon-down"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="down"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
</div>
`;
exports[`renders ./components/button/demo/size.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
2018-06-28 17:12:16 +08:00
class="ant-radio-group ant-radio-group-outline"
>
<label
2017-09-11 15:17:48 +08:00
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked"
>
<span
2017-09-11 15:17:48 +08:00
class="ant-radio-button ant-radio-button-checked"
>
<input
2017-09-11 15:17:48 +08:00
checked=""
class="ant-radio-button-input"
type="radio"
2018-01-25 18:24:59 +08:00
value="large"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner"
/>
</span>
<span>
Large
</span>
</label>
<label
2017-09-11 15:17:48 +08:00
class="ant-radio-button-wrapper"
>
<span
2017-09-11 15:17:48 +08:00
class="ant-radio-button"
>
<input
class="ant-radio-button-input"
type="radio"
2018-01-25 18:24:59 +08:00
value="default"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner"
/>
</span>
<span>
Default
</span>
</label>
<label
class="ant-radio-button-wrapper"
>
<span
class="ant-radio-button"
>
<input
class="ant-radio-button-input"
type="radio"
2018-01-25 18:24:59 +08:00
value="small"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner"
/>
</span>
<span>
Small
</span>
</label>
</div>
<br />
<br />
2016-11-22 14:28:05 +08:00
<button
2017-09-11 15:17:48 +08:00
class="ant-btn ant-btn-primary ant-btn-lg"
type="button"
>
2017-09-11 15:17:48 +08:00
<span>
Primary
</span>
2016-11-22 14:28:05 +08:00
</button>
<button
2017-09-11 15:17:48 +08:00
class="ant-btn ant-btn-lg"
type="button"
>
<span>
Normal
</span>
</button>
<button
class="ant-btn ant-btn-dashed ant-btn-lg"
type="button"
>
<span>
Dashed
</span>
</button>
<button
class="ant-btn ant-btn-danger ant-btn-lg"
type="button"
>
<span>
Danger
</span>
</button>
<br />
<button
class="ant-btn ant-btn-primary ant-btn-circle ant-btn-lg ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: download"
2018-08-13 20:51:01 +08:00
class="anticon anticon-download"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="download"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
<button
class="ant-btn ant-btn-primary ant-btn-round ant-btn-lg"
type="button"
>
<i
2019-01-10 18:50:45 +08:00
aria-label="icon: download"
class="anticon anticon-download"
>
<svg
aria-hidden="true"
class=""
data-icon="download"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
/>
</svg>
</i>
<span>
Download
</span>
</button>
2016-11-22 14:28:05 +08:00
<button
2017-09-11 15:17:48 +08:00
class="ant-btn ant-btn-primary ant-btn-lg"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: download"
2018-08-13 20:51:01 +08:00
class="anticon anticon-download"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="download"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
<span>
2017-09-11 15:17:48 +08:00
Download
2016-11-22 14:28:05 +08:00
</span>
</button>
<br />
<div
2017-09-11 15:17:48 +08:00
class="ant-btn-group ant-btn-group-lg"
>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: left"
2018-08-13 20:51:01 +08:00
class="anticon anticon-left"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
<span>
Backward
</span>
</button>
<button
class="ant-btn ant-btn-primary"
type="button"
>
<span>
Forward
</span>
2018-07-19 20:37:47 +08:00
<i
2019-01-10 18:46:57 +08:00
aria-label="icon: right"
2018-08-13 20:51:01 +08:00
class="anticon anticon-right"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
</button>
</div>
2016-11-22 14:28:05 +08:00
</div>
`;