level_0
int64
0
10k
index
int64
0
0
repo_id
stringlengths
22
152
file_path
stringlengths
41
203
content
stringlengths
11
11.5M
5,734
0
petrpan-code/ant-design/ant-design/components/rate
petrpan-code/ant-design/ant-design/components/rate/__tests__/demo.test.ts
import demoTest from '../../../tests/shared/demoTest'; demoTest('rate');
5,735
0
petrpan-code/ant-design/ant-design/components/rate
petrpan-code/ant-design/ant-design/components/rate/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Rate image', () => { imageDemoTest('rate'); });
5,736
0
petrpan-code/ant-design/ant-design/components/rate
petrpan-code/ant-design/ant-design/components/rate/__tests__/index.test.ts
import Rate from '..'; import focusTest from '../../../tests/shared/focusTest'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; describe('Rate', () => { focusTest(Rate, { refFocus: true }); mountTest(Rate); rtlTest(Rate); });
5,737
0
petrpan-code/ant-design/ant-design/components/rate/__tests__
petrpan-code/ant-design/ant-design/components/rate/__tests__/__snapshots__/demo-extend.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/rate/demo/basic.tsx extend context correctly 1`] = ` <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> `; exports[`renders components/rate/demo/basic.tsx extend context correctly 2`] = `[]`; exports[`renders components/rate/demo/character.tsx extend context correctly 1`] = ` Array [ <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> </div> </li> </ul>, <br />, <ul class="ant-rate" role="radiogroup" style="font-size: 36px;" tabindex="0" > <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > A </div> <div class="ant-rate-star-second" > A </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > A </div> <div class="ant-rate-star-second" > A </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > A </div> <div class="ant-rate-star-second" > A </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > A </div> <div class="ant-rate-star-second" > A </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > A </div> <div class="ant-rate-star-second" > A </div> </div> </li> </ul>, <br />, <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 好 </div> <div class="ant-rate-star-second" > 好 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 好 </div> <div class="ant-rate-star-second" > 好 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 好 </div> <div class="ant-rate-star-second" > 好 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 好 </div> <div class="ant-rate-star-second" > 好 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 好 </div> <div class="ant-rate-star-second" > 好 </div> </div> </li> </ul>, ] `; exports[`renders components/rate/demo/character.tsx extend context correctly 2`] = `[]`; exports[`renders components/rate/demo/character-function.tsx extend context correctly 1`] = ` Array [ <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 1 </div> <div class="ant-rate-star-second" > 1 </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 2 </div> <div class="ant-rate-star-second" > 2 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 3 </div> <div class="ant-rate-star-second" > 3 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 4 </div> <div class="ant-rate-star-second" > 4 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 5 </div> <div class="ant-rate-star-second" > 5 </div> </div> </li> </ul>, <br />, <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="frown" class="anticon anticon-frown" role="img" > <svg aria-hidden="true" data-icon="frown" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="frown" class="anticon anticon-frown" role="img" > <svg aria-hidden="true" data-icon="frown" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="frown" class="anticon anticon-frown" role="img" > <svg aria-hidden="true" data-icon="frown" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="frown" class="anticon anticon-frown" role="img" > <svg aria-hidden="true" data-icon="frown" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="meh" class="anticon anticon-meh" role="img" > <svg aria-hidden="true" data-icon="meh" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="meh" class="anticon anticon-meh" role="img" > <svg aria-hidden="true" data-icon="meh" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> </div> </li> </ul>, ] `; exports[`renders components/rate/demo/character-function.tsx extend context correctly 2`] = `[]`; exports[`renders components/rate/demo/clear.tsx extend context correctly 1`] = ` Array [ <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> </div> <div class="ant-space-item" > <span> allowClear: true </span> </div> </div>, <br />, <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> </div> <div class="ant-space-item" > <span> allowClear: false </span> </div> </div>, ] `; exports[`renders components/rate/demo/clear.tsx extend context correctly 2`] = `[]`; exports[`renders components/rate/demo/component-token.tsx extend context correctly 1`] = ` <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> `; exports[`renders components/rate/demo/component-token.tsx extend context correctly 2`] = `[]`; exports[`renders components/rate/demo/disabled.tsx extend context correctly 1`] = ` <ul class="ant-rate ant-rate-disabled" role="radiogroup" tabindex="-1" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> `; exports[`renders components/rate/demo/disabled.tsx extend context correctly 2`] = `[]`; exports[`renders components/rate/demo/half.tsx extend context correctly 1`] = ` <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-half ant-rate-star-active" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> `; exports[`renders components/rate/demo/half.tsx extend context correctly 2`] = `[]`; exports[`renders components/rate/demo/text.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > terrible </div> </div> </div> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > bad </div> </div> </div> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > normal </div> </div> </div> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > good </div> </div> </div> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > wonderful </div> </div> </div> </ul> </div> <div class="ant-space-item" > <span> normal </span> </div> </div> `; exports[`renders components/rate/demo/text.tsx extend context correctly 2`] = `[]`;
5,738
0
petrpan-code/ant-design/ant-design/components/rate/__tests__
petrpan-code/ant-design/ant-design/components/rate/__tests__/__snapshots__/demo.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/rate/demo/basic.tsx correctly 1`] = ` <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> `; exports[`renders components/rate/demo/character.tsx correctly 1`] = ` Array [ <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </div> </div> </li> </ul>, <br />, <ul class="ant-rate" role="radiogroup" style="font-size:36px" tabindex="0" > <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > A </div> <div class="ant-rate-star-second" > A </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > A </div> <div class="ant-rate-star-second" > A </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > A </div> <div class="ant-rate-star-second" > A </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > A </div> <div class="ant-rate-star-second" > A </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > A </div> <div class="ant-rate-star-second" > A </div> </div> </li> </ul>, <br />, <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 好 </div> <div class="ant-rate-star-second" > 好 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 好 </div> <div class="ant-rate-star-second" > 好 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 好 </div> <div class="ant-rate-star-second" > 好 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 好 </div> <div class="ant-rate-star-second" > 好 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 好 </div> <div class="ant-rate-star-second" > 好 </div> </div> </li> </ul>, ] `; exports[`renders components/rate/demo/character-function.tsx correctly 1`] = ` Array [ <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 1 </div> <div class="ant-rate-star-second" > 1 </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 2 </div> <div class="ant-rate-star-second" > 2 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 3 </div> <div class="ant-rate-star-second" > 3 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 4 </div> <div class="ant-rate-star-second" > 4 </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > 5 </div> <div class="ant-rate-star-second" > 5 </div> </div> </li> </ul>, <br />, <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="frown" class="anticon anticon-frown" role="img" > <svg aria-hidden="true" data-icon="frown" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="frown" class="anticon anticon-frown" role="img" > <svg aria-hidden="true" data-icon="frown" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="frown" class="anticon anticon-frown" role="img" > <svg aria-hidden="true" data-icon="frown" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="frown" class="anticon anticon-frown" role="img" > <svg aria-hidden="true" data-icon="frown" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="meh" class="anticon anticon-meh" role="img" > <svg aria-hidden="true" data-icon="meh" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="meh" class="anticon anticon-meh" role="img" > <svg aria-hidden="true" data-icon="meh" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> </div> </li> </ul>, ] `; exports[`renders components/rate/demo/clear.tsx correctly 1`] = ` Array [ <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> </div> <div class="ant-space-item" > <span> allowClear: true </span> </div> </div>, <br />, <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> </div> <div class="ant-space-item" > <span> allowClear: false </span> </div> </div>, ] `; exports[`renders components/rate/demo/component-token.tsx correctly 1`] = ` <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> `; exports[`renders components/rate/demo/disabled.tsx correctly 1`] = ` <ul class="ant-rate ant-rate-disabled" role="radiogroup" tabindex="-1" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> `; exports[`renders components/rate/demo/half.tsx correctly 1`] = ` <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-half ant-rate-star-active" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> `; exports[`renders components/rate/demo/text.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> </div> <div class="ant-space-item" > <span> normal </span> </div> </div> `;
5,739
0
petrpan-code/ant-design/ant-design/components/rate/__tests__
petrpan-code/ant-design/ant-design/components/rate/__tests__/__snapshots__/index.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Rate rtl render component should be rendered correctly in RTL direction 1`] = ` <ul class="ant-rate ant-rate-rtl" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> `;
5,763
0
petrpan-code/ant-design/ant-design/components/result
petrpan-code/ant-design/ant-design/components/result/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('result');
5,764
0
petrpan-code/ant-design/ant-design/components/result
petrpan-code/ant-design/ant-design/components/result/__tests__/demo.test.ts
import demoTest from '../../../tests/shared/demoTest'; demoTest('result');
5,765
0
petrpan-code/ant-design/ant-design/components/result
petrpan-code/ant-design/ant-design/components/result/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Result image', () => { imageDemoTest('result'); });
5,766
0
petrpan-code/ant-design/ant-design/components/result
petrpan-code/ant-design/ant-design/components/result/__tests__/index.test.tsx
import React from 'react'; import Result from '..'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { render } from '../../../tests/utils'; import Button from '../../button'; describe('Result', () => { mountTest(Result); rtlTest(Result); it('🙂 successPercent should decide the progress status when it exists', () => { const { container } = render( <Result status="success" title="Successfully Purchased Cloud Server ECS!" subTitle="Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait." extra={[ <Button type="primary" key="console"> Go Console </Button>, <Button key="buy">Buy Again</Button>, ]} />, ); expect(container.querySelectorAll('.anticon-check-circle')).toHaveLength(1); }); it('🙂 different status, different class', () => { const { container, rerender } = render(<Result status="warning" />); expect(container.querySelectorAll('.ant-result-warning')).toHaveLength(1); rerender(<Result status="error" />); expect(container.querySelectorAll('.ant-result-error')).toHaveLength(1); rerender(<Result status="500" />); expect(container.querySelectorAll('.ant-result-500')).toHaveLength(1); }); it('🙂 When status = 404, the icon is an image', () => { const { container } = render(<Result status="404" />); expect(container.querySelectorAll('.ant-result-404 .ant-result-image')).toHaveLength(1); }); it('🙂 When extra is undefined, the extra dom is undefined', () => { const { container } = render(<Result status="404" />); expect(container.querySelectorAll('.ant-result-extra')).toHaveLength(0); }); it('🙂 result should support className', () => { const { container } = render(<Result status="404" title="404" className="my-result" />); expect(container.querySelectorAll('.ant-result.my-result')).toHaveLength(1); }); it('should warning when pass a string as icon props', () => { const warnSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); render(<Result title="404" icon="ab" />); expect(warnSpy).not.toHaveBeenCalled(); render(<Result title="404" icon="smile" />); expect(warnSpy).toHaveBeenCalledWith( `Warning: [antd: Result] \`icon\` is using ReactNode instead of string naming in v4. Please check \`smile\` at https://ant.design/components/icon`, ); warnSpy.mockRestore(); }); it('should hide icon by setting icon to false or null', () => { const { container } = render(<Result title="404" icon={null} />); expect(container.querySelectorAll('.ant-result-icon')).toHaveLength(0); const { container: container2 } = render(<Result title="404" icon={false} />); expect(container2.querySelectorAll('.ant-result-icon')).toHaveLength(0); }); });
5,767
0
petrpan-code/ant-design/ant-design/components/result
petrpan-code/ant-design/ant-design/components/result/__tests__/type.test.tsx
import * as React from 'react'; import Result from '..'; describe('Result.typescript', () => { it('status', () => { const result = ( <> <Result status="404" title="404" subTitle="Sorry, the page you visited does not exist." /> <Result status={404} title="404" subTitle="Sorry, the page you visited does not exist." /> </> ); expect(result).toBeTruthy(); }); });
5,768
0
petrpan-code/ant-design/ant-design/components/result/__tests__
petrpan-code/ant-design/ant-design/components/result/__tests__/__snapshots__/demo-extend.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/result/demo/403.tsx extend context correctly 1`] = ` <div class="ant-result ant-result-403" > <div class="ant-result-icon ant-result-image" > <svg height="294" width="251" > <g fill="none" fill-rule="evenodd" > <path d="M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023" fill="#E4EBF7" /> <path d="M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65" fill="#FFF" /> <path d="M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73" stroke="#FFF" stroke-width="2" /> <path d="M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126" fill="#FFF" /> <path d="M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873" fill="#FFF" /> <path d="M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36" stroke="#FFF" stroke-width="2" /> <path d="M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375" fill="#FFF" /> <path d="M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z" stroke="#FFF" stroke-width="2" /> <path d="M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668" stroke="#FFF" stroke-width="2" /> <path d="M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321" fill="#A26EF4" /> <path d="M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734" fill="#FFF" /> <path d="M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717" fill="#FFF" /> <path d="M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61" fill="#5BA02E" /> <path d="M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611" fill="#92C110" /> <path d="M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17" fill="#F2D7AD" /> <path d="M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085" fill="#FFF" /> <path d="M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233" fill="#FFC6A0" /> <path d="M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367" fill="#FFB594" /> <path d="M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95" fill="#FFC6A0" /> <path d="M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929" fill="#FFF" /> <path d="M78.18 94.656s.911 7.41-4.914 13.078" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width=".932" /> <path d="M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z" fill="#FFC6A0" /> <path d="M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91" fill="#FFB594" /> <path d="M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103" fill="#5C2552" /> <path d="M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145" fill="#FFC6A0" /> <path d="M100.843 77.099l1.701-.928-1.015-4.324.674-1.406" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.145" /> <path d="M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32" fill="#552950" /> <path d="M91.132 86.786s5.269 4.957 12.679 2.327" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.145" /> <path d="M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25" fill="#DB836E" /> <path d="M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.526" /> <path d="M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.145" /> <path d="M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M66.508 86.763s-1.598 8.83-6.697 14.078" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.114" /> <path d="M128.31 87.934s3.013 4.121 4.06 11.785" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M64.09 84.816s-6.03 9.912-13.607 9.903" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width=".795" /> <path d="M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73" fill="#FFC6A0" /> <path d="M130.532 85.488s4.588 5.757 11.619 6.214" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75" /> <path d="M121.708 105.73s-.393 8.564-1.34 13.612" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M115.784 161.512s-3.57-1.488-2.678-7.14" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68" fill="#CBD1D1" /> <path d="M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z" fill="#2B0849" /> <path d="M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62" fill="#A4AABA" /> <path d="M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z" fill="#CBD1D1" /> <path d="M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078" fill="#2B0849" /> <path d="M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15" fill="#A4AABA" /> <path d="M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954" fill="#7BB2F9" /> <path d="M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M108.459 220.905s2.759-1.104 6.07-3.863" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" /> <path d="M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017" fill="#192064" /> <path d="M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806" fill="#FFF" /> <path d="M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64" fill="#192064" /> <path d="M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> </g> </svg> </div> <div class="ant-result-title" > 403 </div> <div class="ant-result-subtitle" > Sorry, you are not authorized to access this page. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Back Home </span> </button> </div> </div> `; exports[`renders components/result/demo/403.tsx extend context correctly 2`] = `[]`; exports[`renders components/result/demo/404.tsx extend context correctly 1`] = ` <div class="ant-result ant-result-404" > <div class="ant-result-icon ant-result-image" > <svg height="294" width="252" > <defs> <path d="M0 .387h251.772v251.772H0z" /> </defs> <g fill="none" fill-rule="evenodd" > <g transform="translate(0 .012)" > <mask fill="#fff" /> <path d="M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321" fill="#E4EBF7" mask="url(#b)" /> </g> <path d="M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66" fill="#FFF" /> <path d="M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788" stroke="#FFF" stroke-width="2" /> <path d="M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175" fill="#FFF" /> <path d="M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932" fill="#FFF" /> <path d="M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011" stroke="#FFF" stroke-width="2" /> <path d="M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382" fill="#FFF" /> <path d="M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z" stroke="#FFF" stroke-width="2" /> <path d="M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39" stroke="#FFF" stroke-width="2" /> <path d="M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742" fill="#FFF" /> <path d="M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48" fill="#1677ff" /> <path d="M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894" fill="#FFF" /> <path d="M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88" fill="#FFB594" /> <path d="M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624" fill="#FFC6A0" /> <path d="M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682" fill="#FFF" /> <path d="M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573" fill="#CBD1D1" /> <path d="M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z" fill="#2B0849" /> <path d="M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558" fill="#A4AABA" /> <path d="M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z" fill="#CBD1D1" /> <path d="M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062" fill="#2B0849" /> <path d="M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15" fill="#A4AABA" /> <path d="M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165" fill="#7BB2F9" /> <path d="M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M107.275 222.1s2.773-1.11 6.102-3.884" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" /> <path d="M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038" fill="#192064" /> <path d="M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81" fill="#FFF" /> <path d="M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642" fill="#192064" /> <path d="M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268" fill="#FFC6A0" /> <path d="M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456" fill="#FFC6A0" /> <path d="M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z" fill="#520038" /> <path d="M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254" fill="#552950" /> <path d="M110.13 74.84l-.896 1.61-.298 4.357h-2.228" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M110.846 74.481s1.79-.716 2.506.537" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.287 72.93s1.83 1.113 4.137.954" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M129.405 122.865s-5.272 7.403-9.422 10.768" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M119.306 107.329s.452 4.366-2.127 32.062" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01" fill="#F2D7AD" /> <path d="M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92" fill="#F4D19D" /> <path d="M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z" fill="#F2D7AD" /> <path d="M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z" fill="#CC9B6E" /> <path d="M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83" fill="#F4D19D" /> <path d="M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z" fill="#CC9B6E" /> <path d="M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z" fill="#CC9B6E" /> <path d="M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238" fill="#FFC6A0" /> <path d="M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647" fill="#5BA02E" /> <path d="M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647" fill="#92C110" /> <path d="M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187" fill="#F2D7AD" /> <path d="M88.979 89.48s7.776 5.384 16.6 2.842" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> </g> </svg> </div> <div class="ant-result-title" > 404 </div> <div class="ant-result-subtitle" > Sorry, the page you visited does not exist. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Back Home </span> </button> </div> </div> `; exports[`renders components/result/demo/404.tsx extend context correctly 2`] = `[]`; exports[`renders components/result/demo/500.tsx extend context correctly 1`] = ` <div class="ant-result ant-result-500" > <div class="ant-result-icon ant-result-image" > <svg height="294" width="254" > <defs> <path d="M0 .335h253.49v253.49H0z" /> <path d="M0 293.665h253.49V.401H0z" /> </defs> <g fill="none" fill-rule="evenodd" > <g transform="translate(0 .067)" > <mask fill="#fff" /> <path d="M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134" fill="#E4EBF7" mask="url(#b)" /> </g> <path d="M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671" fill="#FFF" /> <path d="M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861" stroke="#FFF" stroke-width="2" /> <path d="M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238" fill="#FFF" /> <path d="M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775" fill="#FFF" /> <path d="M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68" fill="#FF603B" /> <path d="M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733" fill="#FFF" /> <path d="M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487" fill="#FFB594" /> <path d="M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235" fill="#FFF" /> <path d="M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246" fill="#FFB594" /> <path d="M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508" fill="#FFC6A0" /> <path d="M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z" fill="#520038" /> <path d="M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26" fill="#552950" /> <path d="M99.206 73.644l-.9 1.62-.3 4.38h-2.24" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.063" /> <path d="M99.926 73.284s1.8-.72 2.52.54" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.117" /> <path d="M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.117" /> <path d="M92.326 71.724s1.84 1.12 4.16.96" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.117" /> <path d="M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.063" /> <path d="M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.136" /> <path d="M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583" fill="#FFF" /> <path d="M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75" fill="#FFC6A0" /> <path d="M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713" fill="#FFC6A0" /> <path d="M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16" fill="#FFC6A0" /> <path d="M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575" fill="#FFF" /> <path d="M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47" fill="#CBD1D1" /> <path d="M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z" fill="#2B0849" /> <path d="M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671" fill="#A4AABA" /> <path d="M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z" fill="#CBD1D1" /> <path d="M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162" fill="#2B0849" /> <path d="M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156" fill="#A4AABA" /> <path d="M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69" fill="#7BB2F9" /> <path d="M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M96.973 219.373s2.882-1.153 6.34-4.034" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.032" /> <path d="M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62" fill="#192064" /> <path d="M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843" fill="#FFF" /> <path d="M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668" fill="#192064" /> <path d="M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69" fill="#FFC6A0" /> <path d="M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width=".774" /> <path d="M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762" stroke="#E59788" stroke-linecap="round" stroke-linejoin="round" stroke-width=".774" /> <path d="M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594" fill="#FFC6A0" /> <path d="M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12" stroke="#E59788" stroke-linecap="round" stroke-linejoin="round" stroke-width=".774" /> <path d="M109.278 112.533s3.38-3.613 7.575-4.662" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M107.375 123.006s9.697-2.745 11.445-.88" stroke="#E59788" stroke-linecap="round" stroke-linejoin="round" stroke-width=".774" /> <path d="M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955" stroke="#BFCDDD" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" /> <path d="M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01" fill="#A3B4C6" /> <path d="M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813" fill="#A3B4C6" /> <mask fill="#fff" /> <path d="M154.098 190.096h70.513v-84.617h-70.513z" fill="#A3B4C6" mask="url(#d)" /> <path d="M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208" fill="#BFCDDD" mask="url(#d)" /> <path d="M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802" fill="#FFF" mask="url(#d)" /> <path d="M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209" fill="#BFCDDD" mask="url(#d)" /> <path d="M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751" mask="url(#d)" stroke="#7C90A5" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.124" /> <path d="M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802" fill="#FFF" mask="url(#d)" /> <path d="M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407" fill="#BFCDDD" mask="url(#d)" /> <path d="M177.259 207.217v11.52M201.05 207.217v11.52" mask="url(#d)" stroke="#A3B4C6" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.124" /> <path d="M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422" fill="#5BA02E" mask="url(#d)" /> <path d="M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423" fill="#92C110" mask="url(#d)" /> <path d="M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209" fill="#F2D7AD" mask="url(#d)" /> </g> </svg> </div> <div class="ant-result-title" > 500 </div> <div class="ant-result-subtitle" > Sorry, something went wrong. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Back Home </span> </button> </div> </div> `; exports[`renders components/result/demo/500.tsx extend context correctly 2`] = `[]`; exports[`renders components/result/demo/component-token.tsx extend context correctly 1`] = ` <div class="ant-result ant-result-success" > <div class="ant-result-icon" > <span aria-label="check-circle" class="anticon anticon-check-circle" role="img" > <svg aria-hidden="true" data-icon="check-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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" /> </svg> </span> </div> <div class="ant-result-title" > Successfully Purchased Cloud Server ECS! </div> <div class="ant-result-subtitle" > Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Go Console </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> Buy Again </span> </button> </div> </div> `; exports[`renders components/result/demo/component-token.tsx extend context correctly 2`] = `[]`; exports[`renders components/result/demo/customIcon.tsx extend context correctly 1`] = ` <div class="ant-result ant-result-info" > <div class="ant-result-icon" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> <div class="ant-result-title" > Great, we have done all the operations! </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Next </span> </button> </div> </div> `; exports[`renders components/result/demo/customIcon.tsx extend context correctly 2`] = `[]`; exports[`renders components/result/demo/error.tsx extend context correctly 1`] = ` <div class="ant-result ant-result-error" > <div class="ant-result-icon" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </div> <div class="ant-result-title" > Submission Failed </div> <div class="ant-result-subtitle" > Please check and modify the following information before resubmitting. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Go Console </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> Buy Again </span> </button> </div> <div class="ant-result-content" > <div class="desc" > <div class="ant-typography" > <span class="ant-typography" style="font-size: 16px;" > <strong> The content you submitted has the following error: </strong> </span> </div> <div class="ant-typography" > <span aria-label="close-circle" class="anticon anticon-close-circle site-result-demo-error-icon" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" /> </svg> </span> Your account has been frozen. <a> Thaw immediately &gt; </a> </div> <div class="ant-typography" > <span aria-label="close-circle" class="anticon anticon-close-circle site-result-demo-error-icon" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" /> </svg> </span> Your account is not yet eligible to apply. <a> Apply Unlock &gt; </a> </div> </div> </div> </div> `; exports[`renders components/result/demo/error.tsx extend context correctly 2`] = `[]`; exports[`renders components/result/demo/info.tsx extend context correctly 1`] = ` <div class="ant-result ant-result-info" > <div class="ant-result-icon" > <span aria-label="exclamation-circle" class="anticon anticon-exclamation-circle" 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> <div class="ant-result-title" > Your operation has been executed </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Go Console </span> </button> </div> </div> `; exports[`renders components/result/demo/info.tsx extend context correctly 2`] = `[]`; exports[`renders components/result/demo/success.tsx extend context correctly 1`] = ` <div class="ant-result ant-result-success" > <div class="ant-result-icon" > <span aria-label="check-circle" class="anticon anticon-check-circle" role="img" > <svg aria-hidden="true" data-icon="check-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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" /> </svg> </span> </div> <div class="ant-result-title" > Successfully Purchased Cloud Server ECS! </div> <div class="ant-result-subtitle" > Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Go Console </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> Buy Again </span> </button> </div> </div> `; exports[`renders components/result/demo/success.tsx extend context correctly 2`] = `[]`; exports[`renders components/result/demo/warning.tsx extend context correctly 1`] = ` <div class="ant-result ant-result-warning" > <div class="ant-result-icon" > <span aria-label="warning" class="anticon anticon-warning" role="img" > <svg aria-hidden="true" data-icon="warning" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" /> </svg> </span> </div> <div class="ant-result-title" > There are some problems with your operation. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Go Console </span> </button> </div> </div> `; exports[`renders components/result/demo/warning.tsx extend context correctly 2`] = `[]`;
5,769
0
petrpan-code/ant-design/ant-design/components/result/__tests__
petrpan-code/ant-design/ant-design/components/result/__tests__/__snapshots__/demo.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/result/demo/403.tsx correctly 1`] = ` <div class="ant-result ant-result-403" > <div class="ant-result-icon ant-result-image" > <svg height="294" width="251" > <g fill="none" fill-rule="evenodd" > <path d="M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023" fill="#E4EBF7" /> <path d="M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65" fill="#FFF" /> <path d="M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73" stroke="#FFF" stroke-width="2" /> <path d="M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126" fill="#FFF" /> <path d="M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873" fill="#FFF" /> <path d="M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36" stroke="#FFF" stroke-width="2" /> <path d="M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375" fill="#FFF" /> <path d="M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z" stroke="#FFF" stroke-width="2" /> <path d="M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668" stroke="#FFF" stroke-width="2" /> <path d="M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321" fill="#A26EF4" /> <path d="M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734" fill="#FFF" /> <path d="M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717" fill="#FFF" /> <path d="M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61" fill="#5BA02E" /> <path d="M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611" fill="#92C110" /> <path d="M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17" fill="#F2D7AD" /> <path d="M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085" fill="#FFF" /> <path d="M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233" fill="#FFC6A0" /> <path d="M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367" fill="#FFB594" /> <path d="M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95" fill="#FFC6A0" /> <path d="M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929" fill="#FFF" /> <path d="M78.18 94.656s.911 7.41-4.914 13.078" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width=".932" /> <path d="M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z" fill="#FFC6A0" /> <path d="M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91" fill="#FFB594" /> <path d="M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103" fill="#5C2552" /> <path d="M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145" fill="#FFC6A0" /> <path d="M100.843 77.099l1.701-.928-1.015-4.324.674-1.406" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.145" /> <path d="M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32" fill="#552950" /> <path d="M91.132 86.786s5.269 4.957 12.679 2.327" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.145" /> <path d="M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25" fill="#DB836E" /> <path d="M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.526" /> <path d="M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.145" /> <path d="M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M66.508 86.763s-1.598 8.83-6.697 14.078" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.114" /> <path d="M128.31 87.934s3.013 4.121 4.06 11.785" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M64.09 84.816s-6.03 9.912-13.607 9.903" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width=".795" /> <path d="M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73" fill="#FFC6A0" /> <path d="M130.532 85.488s4.588 5.757 11.619 6.214" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75" /> <path d="M121.708 105.73s-.393 8.564-1.34 13.612" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M115.784 161.512s-3.57-1.488-2.678-7.14" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68" fill="#CBD1D1" /> <path d="M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z" fill="#2B0849" /> <path d="M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62" fill="#A4AABA" /> <path d="M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z" fill="#CBD1D1" /> <path d="M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078" fill="#2B0849" /> <path d="M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15" fill="#A4AABA" /> <path d="M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954" fill="#7BB2F9" /> <path d="M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M108.459 220.905s2.759-1.104 6.07-3.863" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" /> <path d="M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017" fill="#192064" /> <path d="M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806" fill="#FFF" /> <path d="M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64" fill="#192064" /> <path d="M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> </g> </svg> </div> <div class="ant-result-title" > 403 </div> <div class="ant-result-subtitle" > Sorry, you are not authorized to access this page. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Back Home </span> </button> </div> </div> `; exports[`renders components/result/demo/404.tsx correctly 1`] = ` <div class="ant-result ant-result-404" > <div class="ant-result-icon ant-result-image" > <svg height="294" width="252" > <defs> <path d="M0 .387h251.772v251.772H0z" /> </defs> <g fill="none" fill-rule="evenodd" > <g transform="translate(0 .012)" > <mask fill="#fff" /> <path d="M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321" fill="#E4EBF7" mask="url(#b)" /> </g> <path d="M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66" fill="#FFF" /> <path d="M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788" stroke="#FFF" stroke-width="2" /> <path d="M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175" fill="#FFF" /> <path d="M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932" fill="#FFF" /> <path d="M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011" stroke="#FFF" stroke-width="2" /> <path d="M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382" fill="#FFF" /> <path d="M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z" stroke="#FFF" stroke-width="2" /> <path d="M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39" stroke="#FFF" stroke-width="2" /> <path d="M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742" fill="#FFF" /> <path d="M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48" fill="#1677ff" /> <path d="M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894" fill="#FFF" /> <path d="M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88" fill="#FFB594" /> <path d="M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624" fill="#FFC6A0" /> <path d="M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682" fill="#FFF" /> <path d="M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573" fill="#CBD1D1" /> <path d="M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z" fill="#2B0849" /> <path d="M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558" fill="#A4AABA" /> <path d="M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z" fill="#CBD1D1" /> <path d="M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062" fill="#2B0849" /> <path d="M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15" fill="#A4AABA" /> <path d="M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165" fill="#7BB2F9" /> <path d="M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M107.275 222.1s2.773-1.11 6.102-3.884" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" /> <path d="M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038" fill="#192064" /> <path d="M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81" fill="#FFF" /> <path d="M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642" fill="#192064" /> <path d="M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268" fill="#FFC6A0" /> <path d="M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456" fill="#FFC6A0" /> <path d="M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z" fill="#520038" /> <path d="M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254" fill="#552950" /> <path d="M110.13 74.84l-.896 1.61-.298 4.357h-2.228" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M110.846 74.481s1.79-.716 2.506.537" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.287 72.93s1.83 1.113 4.137.954" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M129.405 122.865s-5.272 7.403-9.422 10.768" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M119.306 107.329s.452 4.366-2.127 32.062" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01" fill="#F2D7AD" /> <path d="M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92" fill="#F4D19D" /> <path d="M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z" fill="#F2D7AD" /> <path d="M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z" fill="#CC9B6E" /> <path d="M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83" fill="#F4D19D" /> <path d="M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z" fill="#CC9B6E" /> <path d="M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z" fill="#CC9B6E" /> <path d="M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238" fill="#FFC6A0" /> <path d="M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647" fill="#5BA02E" /> <path d="M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647" fill="#92C110" /> <path d="M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187" fill="#F2D7AD" /> <path d="M88.979 89.48s7.776 5.384 16.6 2.842" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> </g> </svg> </div> <div class="ant-result-title" > 404 </div> <div class="ant-result-subtitle" > Sorry, the page you visited does not exist. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Back Home </span> </button> </div> </div> `; exports[`renders components/result/demo/500.tsx correctly 1`] = ` <div class="ant-result ant-result-500" > <div class="ant-result-icon ant-result-image" > <svg height="294" width="254" > <defs> <path d="M0 .335h253.49v253.49H0z" /> <path d="M0 293.665h253.49V.401H0z" /> </defs> <g fill="none" fill-rule="evenodd" > <g transform="translate(0 .067)" > <mask fill="#fff" /> <path d="M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134" fill="#E4EBF7" mask="url(#b)" /> </g> <path d="M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671" fill="#FFF" /> <path d="M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861" stroke="#FFF" stroke-width="2" /> <path d="M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238" fill="#FFF" /> <path d="M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775" fill="#FFF" /> <path d="M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68" fill="#FF603B" /> <path d="M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733" fill="#FFF" /> <path d="M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487" fill="#FFB594" /> <path d="M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235" fill="#FFF" /> <path d="M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246" fill="#FFB594" /> <path d="M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508" fill="#FFC6A0" /> <path d="M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z" fill="#520038" /> <path d="M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26" fill="#552950" /> <path d="M99.206 73.644l-.9 1.62-.3 4.38h-2.24" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.063" /> <path d="M99.926 73.284s1.8-.72 2.52.54" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.117" /> <path d="M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.117" /> <path d="M92.326 71.724s1.84 1.12 4.16.96" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.117" /> <path d="M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.063" /> <path d="M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.136" /> <path d="M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583" fill="#FFF" /> <path d="M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75" fill="#FFC6A0" /> <path d="M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713" fill="#FFC6A0" /> <path d="M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16" fill="#FFC6A0" /> <path d="M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575" fill="#FFF" /> <path d="M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47" fill="#CBD1D1" /> <path d="M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z" fill="#2B0849" /> <path d="M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671" fill="#A4AABA" /> <path d="M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z" fill="#CBD1D1" /> <path d="M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162" fill="#2B0849" /> <path d="M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156" fill="#A4AABA" /> <path d="M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69" fill="#7BB2F9" /> <path d="M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M96.973 219.373s2.882-1.153 6.34-4.034" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.032" /> <path d="M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62" fill="#192064" /> <path d="M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843" fill="#FFF" /> <path d="M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668" fill="#192064" /> <path d="M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69" fill="#FFC6A0" /> <path d="M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width=".774" /> <path d="M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762" stroke="#E59788" stroke-linecap="round" stroke-linejoin="round" stroke-width=".774" /> <path d="M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594" fill="#FFC6A0" /> <path d="M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12" stroke="#E59788" stroke-linecap="round" stroke-linejoin="round" stroke-width=".774" /> <path d="M109.278 112.533s3.38-3.613 7.575-4.662" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.085" /> <path d="M107.375 123.006s9.697-2.745 11.445-.88" stroke="#E59788" stroke-linecap="round" stroke-linejoin="round" stroke-width=".774" /> <path d="M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955" stroke="#BFCDDD" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" /> <path d="M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01" fill="#A3B4C6" /> <path d="M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813" fill="#A3B4C6" /> <mask fill="#fff" /> <path d="M154.098 190.096h70.513v-84.617h-70.513z" fill="#A3B4C6" mask="url(#d)" /> <path d="M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208" fill="#BFCDDD" mask="url(#d)" /> <path d="M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802" fill="#FFF" mask="url(#d)" /> <path d="M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209" fill="#BFCDDD" mask="url(#d)" /> <path d="M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751" mask="url(#d)" stroke="#7C90A5" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.124" /> <path d="M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802" fill="#FFF" mask="url(#d)" /> <path d="M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407" fill="#BFCDDD" mask="url(#d)" /> <path d="M177.259 207.217v11.52M201.05 207.217v11.52" mask="url(#d)" stroke="#A3B4C6" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.124" /> <path d="M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422" fill="#5BA02E" mask="url(#d)" /> <path d="M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423" fill="#92C110" mask="url(#d)" /> <path d="M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209" fill="#F2D7AD" mask="url(#d)" /> </g> </svg> </div> <div class="ant-result-title" > 500 </div> <div class="ant-result-subtitle" > Sorry, something went wrong. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Back Home </span> </button> </div> </div> `; exports[`renders components/result/demo/component-token.tsx correctly 1`] = ` <div class="ant-result ant-result-success" > <div class="ant-result-icon" > <span aria-label="check-circle" class="anticon anticon-check-circle" role="img" > <svg aria-hidden="true" data-icon="check-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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" /> </svg> </span> </div> <div class="ant-result-title" > Successfully Purchased Cloud Server ECS! </div> <div class="ant-result-subtitle" > Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Go Console </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> Buy Again </span> </button> </div> </div> `; exports[`renders components/result/demo/customIcon.tsx correctly 1`] = ` <div class="ant-result ant-result-info" > <div class="ant-result-icon" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> <div class="ant-result-title" > Great, we have done all the operations! </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Next </span> </button> </div> </div> `; exports[`renders components/result/demo/error.tsx correctly 1`] = ` <div class="ant-result ant-result-error" > <div class="ant-result-icon" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </div> <div class="ant-result-title" > Submission Failed </div> <div class="ant-result-subtitle" > Please check and modify the following information before resubmitting. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Go Console </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> Buy Again </span> </button> </div> <div class="ant-result-content" > <div class="desc" > <div class="ant-typography" > <span class="ant-typography" style="font-size:16px" > <strong> The content you submitted has the following error: </strong> </span> </div> <div class="ant-typography" > <span aria-label="close-circle" class="anticon anticon-close-circle site-result-demo-error-icon" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" /> </svg> </span> Your account has been frozen. <a> Thaw immediately &gt; </a> </div> <div class="ant-typography" > <span aria-label="close-circle" class="anticon anticon-close-circle site-result-demo-error-icon" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" /> </svg> </span> Your account is not yet eligible to apply. <a> Apply Unlock &gt; </a> </div> </div> </div> </div> `; exports[`renders components/result/demo/info.tsx correctly 1`] = ` <div class="ant-result ant-result-info" > <div class="ant-result-icon" > <span aria-label="exclamation-circle" class="anticon anticon-exclamation-circle" 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> <div class="ant-result-title" > Your operation has been executed </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Go Console </span> </button> </div> </div> `; exports[`renders components/result/demo/success.tsx correctly 1`] = ` <div class="ant-result ant-result-success" > <div class="ant-result-icon" > <span aria-label="check-circle" class="anticon anticon-check-circle" role="img" > <svg aria-hidden="true" data-icon="check-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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" /> </svg> </span> </div> <div class="ant-result-title" > Successfully Purchased Cloud Server ECS! </div> <div class="ant-result-subtitle" > Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Go Console </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> Buy Again </span> </button> </div> </div> `; exports[`renders components/result/demo/warning.tsx correctly 1`] = ` <div class="ant-result ant-result-warning" > <div class="ant-result-icon" > <span aria-label="warning" class="anticon anticon-warning" role="img" > <svg aria-hidden="true" data-icon="warning" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" /> </svg> </span> </div> <div class="ant-result-title" > There are some problems with your operation. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Go Console </span> </button> </div> </div> `;
5,770
0
petrpan-code/ant-design/ant-design/components/result/__tests__
petrpan-code/ant-design/ant-design/components/result/__tests__/__snapshots__/index.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Result rtl render component should be rendered correctly in RTL direction 1`] = ` <div class="ant-result ant-result-info ant-result-rtl" > <div class="ant-result-icon" > <span aria-label="exclamation-circle" class="anticon anticon-exclamation-circle" 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> <div class="ant-result-title" /> </div> `;
5,795
0
petrpan-code/ant-design/ant-design/components/segmented
petrpan-code/ant-design/ant-design/components/segmented/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('segmented');
5,796
0
petrpan-code/ant-design/ant-design/components/segmented
petrpan-code/ant-design/ant-design/components/segmented/__tests__/demo.test.ts
import demoTest from '../../../tests/shared/demoTest'; demoTest('segmented');
5,797
0
petrpan-code/ant-design/ant-design/components/segmented
petrpan-code/ant-design/ant-design/components/segmented/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Segmented image', () => { imageDemoTest('segmented'); });
5,798
0
petrpan-code/ant-design/ant-design/components/segmented
petrpan-code/ant-design/ant-design/components/segmented/__tests__/index.test.tsx
import { AppstoreOutlined, BarsOutlined } from '@ant-design/icons'; import React, { useState } from 'react'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { fireEvent, render } from '../../../tests/utils'; import type { SegmentedValue } from '../index'; import Segmented from '../index'; // Make CSSMotion working without transition jest.mock('rc-motion/lib/util/motion', () => ({ ...jest.requireActual('rc-motion/lib/util/motion'), supportTransition: false, })); const prefixCls = 'ant-segmented'; function expectMatchChecked(container: HTMLElement, checkedList: boolean[]) { const inputList = Array.from( container.querySelectorAll<HTMLInputElement>(`.${prefixCls}-item-input`), ); expect(inputList).toHaveLength(checkedList.length); inputList.forEach((input, i) => { const checked = checkedList[i]; expect(input.checked).toBe(checked); }); } describe('Segmented', () => { mountTest(Segmented); rtlTest(Segmented); beforeAll(() => { jest.useFakeTimers(); }); afterAll(() => { jest.useRealTimers(); }); it('render empty segmented', () => { const { asFragment } = render(<Segmented options={[]} />); expect(asFragment().firstChild).toMatchSnapshot(); }); it('render segmented ok', () => { const { asFragment, container } = render( <Segmented options={[{ label: 'Daily', value: 'Daily' }, 'Weekly', 'Monthly']} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expectMatchChecked(container, [true, false, false]); }); it('render label with ReactNode', () => { const { asFragment, container } = render( <Segmented options={[ { label: 'Daily', value: 'Daily' }, { label: <div id="weekly">Weekly</div>, value: 'Weekly' }, { label: <h2>Monthly</h2>, value: 'Monthly' }, ]} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expectMatchChecked(container, [true, false, false]); expect(container.querySelector('#weekly')?.textContent).toContain('Weekly'); expect(container.querySelectorAll('h2')[0].textContent).toContain('Monthly'); }); it('render segmented with defaultValue', () => { const { container } = render( <Segmented options={['Daily', 'Weekly', 'Monthly', 'Quarterly', 'Yearly']} defaultValue="Quarterly" />, ); expectMatchChecked(container, [false, false, false, true, false]); }); it('render segmented with string options', () => { const handleValueChange = jest.fn(); const { asFragment, container } = render( <Segmented options={['Daily', 'Weekly', 'Monthly']} onChange={handleValueChange} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expectMatchChecked(container, [true, false, false]); expect( container .querySelectorAll(`label.${prefixCls}-item`)[0] .classList.contains(`${prefixCls}-item-selected`), ).toBeTruthy(); fireEvent.click(container.querySelectorAll(`.${prefixCls}-item-input`)[2]); expect(handleValueChange).toHaveBeenCalledWith('Monthly'); expectMatchChecked(container, [false, false, true]); }); it('render segmented with numeric options', () => { const handleValueChange = jest.fn(); const { asFragment, container } = render( <Segmented options={[1, 2, 3, 4, 5]} onChange={(value) => handleValueChange(value)} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expectMatchChecked(container, [true, false, false, false, false]); fireEvent.click(container.querySelectorAll(`.${prefixCls}-item-input`)[4]); expect(handleValueChange).toHaveBeenCalledWith(5); expectMatchChecked(container, [false, false, false, false, true]); }); it('render segmented with mixed options', () => { const handleValueChange = jest.fn(); const { asFragment, container } = render( <Segmented options={['Daily', { label: 'Weekly', value: 'Weekly' }, 'Monthly']} onChange={(value) => handleValueChange(value)} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expectMatchChecked(container, [true, false, false]); fireEvent.click(container.querySelectorAll(`.${prefixCls}-item-input`)[1]); expect(handleValueChange).toHaveBeenCalledWith('Weekly'); expectMatchChecked(container, [false, true, false]); }); it('render segmented with options: disabled', () => { const handleValueChange = jest.fn(); const { asFragment, container } = render( <Segmented options={['Daily', { label: 'Weekly', value: 'Weekly', disabled: true }, 'Monthly']} onChange={(value) => handleValueChange(value)} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expect( container .querySelectorAll(`label.${prefixCls}-item`)[1] .classList.contains(`${prefixCls}-item-disabled`), ).toBeTruthy(); expect(container.querySelectorAll(`.${prefixCls}-item-input`)[1]).toHaveAttribute('disabled'); fireEvent.click(container.querySelectorAll(`.${prefixCls}-item-input`)[1]); expect(handleValueChange).not.toHaveBeenCalled(); expectMatchChecked(container, [true, false, false]); fireEvent.click(container.querySelectorAll(`.${prefixCls}-item-input`)[2]); expect(handleValueChange).toHaveBeenCalledWith('Monthly'); expect(handleValueChange).toHaveBeenCalledTimes(1); expectMatchChecked(container, [false, false, true]); }); it('render segmented: disabled', () => { const handleValueChange = jest.fn(); const { asFragment, container } = render( <Segmented disabled options={['Daily', 'Weekly', 'Monthly']} onChange={(value) => handleValueChange(value)} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expect( container.querySelectorAll(`.${prefixCls}`)[0].classList.contains(`${prefixCls}-disabled`), ).toBeTruthy(); fireEvent.click(container.querySelectorAll(`.${prefixCls}-item-input`)[1]); expect(handleValueChange).not.toHaveBeenCalled(); expectMatchChecked(container, [true, false, false]); fireEvent.click(container.querySelectorAll(`.${prefixCls}-item-input`)[2]); expect(handleValueChange).not.toHaveBeenCalled(); expectMatchChecked(container, [true, false, false]); }); it('render segmented with className and other html attributes', () => { const { container } = render( <Segmented options={['Daily', 'Monthly', 'Weekly']} defaultValue="Weekly" className="mock-cls" data-test-id="hello" />, ); expect(container.querySelector('.mock-cls')).toBeTruthy(); expect(container.querySelector('[data-test-id]')).toHaveAttribute('data-test-id', 'hello'); }); it('render segmented with ref', () => { const ref = React.createRef<HTMLDivElement>(); const { container } = render( <Segmented options={['Daily', 'Monthly', 'Weekly']} defaultValue="Weekly" ref={ref} />, ); expect(ref.current).toBe(container.querySelector(`.${prefixCls}`)); }); it('render segmented with controlled mode', async () => { const Demo: React.FC = () => { const [value, setValue] = useState<SegmentedValue>('Map'); return ( <> <Segmented options={['Map', 'Transit', 'Satellite']} value={value} onChange={setValue} /> <div className="value">{value}</div> <input className="control" onChange={(e) => { setValue(e.target.value); }} /> </> ); }; const { container } = render(<Demo />); fireEvent.click(container.querySelectorAll(`.${prefixCls}-item-input`)[0]); expect(container.querySelector('.value')?.textContent).toBe('Map'); fireEvent.click(container.querySelectorAll(`.${prefixCls}-item-input`)[1]); expect(container.querySelector('.value')?.textContent).toBe('Transit'); }); it('render segmented with options null/undefined', () => { const handleValueChange = jest.fn(); const { asFragment, container } = render( <Segmented options={[null, undefined, ''] as any} disabled onChange={(value) => handleValueChange(value)} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expect( Array.from(container.querySelectorAll(`.${prefixCls}-item-label`)).map((n) => n.textContent), ).toEqual(['', '', '']); }); it('render segmented with thumb', () => { const handleValueChange = jest.fn(); const { asFragment, container } = render( <Segmented options={['Map', 'Transit', 'Satellite']} onChange={(value) => handleValueChange(value)} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expectMatchChecked(container, [true, false, false]); expect( container .querySelectorAll(`label.${prefixCls}-item`)[0] .classList.contains(`${prefixCls}-item-selected`), ).toBeTruthy(); fireEvent.click(container.querySelectorAll(`.${prefixCls}-item-input`)[2]); expect(handleValueChange).toHaveBeenCalledWith('Satellite'); expectMatchChecked(container, [false, false, true]); // thumb appeared // expect(container.querySelectorAll(`.${prefixCls}-thumb`).length).toBe(1); // change selection again fireEvent.click(container.querySelectorAll(`.${prefixCls}-item-input`)[1]); expect(handleValueChange).toHaveBeenCalledWith('Transit'); expectMatchChecked(container, [false, true, false]); // thumb appeared // expect(container.querySelectorAll(`.${prefixCls}-thumb`).length).toBe(1); }); it('render segmented with `block`', () => { const { asFragment, container } = render( <Segmented block options={['Daily', 'Weekly', 'Monthly']} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expect( container.querySelectorAll(`.${prefixCls}`)[0].classList.contains(`${prefixCls}-block`), ).toBeTruthy(); }); it('render segmented with `size#small`', () => { const { asFragment, container } = render( <Segmented size="small" options={['Daily', 'Weekly', 'Monthly']} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expect( container.querySelectorAll(`.${prefixCls}`)[0].classList.contains(`${prefixCls}-sm`), ).toBeTruthy(); }); it('render segmented with `size#large`', () => { const { asFragment, container } = render( <Segmented size="large" options={['Daily', 'Weekly', 'Monthly']} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expect( container.querySelectorAll(`.${prefixCls}`)[0].classList.contains(`${prefixCls}-lg`), ).toBeTruthy(); }); it('render with icons', () => { const { asFragment, container } = render( <Segmented options={[ { value: 'List', icon: <BarsOutlined />, }, { value: 'Kanban', label: 'KanbanYes', icon: <AppstoreOutlined />, }, ]} />, ); expect(asFragment().firstChild).toMatchSnapshot(); expect(container.querySelectorAll(`span.${prefixCls}-item-icon`).length).toBe(2); expect( container .querySelectorAll(`div.${prefixCls}-item-label`)[1] .textContent?.includes('KanbanYes'), ).toBeTruthy(); }); });
5,799
0
petrpan-code/ant-design/ant-design/components/segmented/__tests__
petrpan-code/ant-design/ant-design/components/segmented/__tests__/__snapshots__/demo-extend.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/segmented/demo/basic.tsx extend context correctly 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> `; exports[`renders components/segmented/demo/basic.tsx extend context correctly 2`] = `[]`; exports[`renders components/segmented/demo/block.tsx extend context correctly 1`] = ` <div class="ant-segmented ant-segmented-block" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="123" > 123 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="456" > 456 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="longtext-longtext-longtext-longtext" > longtext-longtext-longtext-longtext </div> </label> </div> </div> `; exports[`renders components/segmented/demo/block.tsx extend context correctly 2`] = `[]`; exports[`renders components/segmented/demo/componentToken.tsx extend context correctly 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> `; exports[`renders components/segmented/demo/componentToken.tsx extend context correctly 2`] = `[]`; exports[`renders components/segmented/demo/controlled.tsx extend context correctly 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Map" > Map </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Transit" > Transit </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Satellite" > Satellite </div> </label> </div> </div> `; exports[`renders components/segmented/demo/controlled.tsx extend context correctly 2`] = `[]`; exports[`renders components/segmented/demo/controlled-two.tsx extend context correctly 1`] = ` Array [ <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="AND" > AND </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="OR" > OR </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="NOT" > NOT </div> </label> </div> </div>,   , <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="AND" > AND </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="OR" > OR </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="NOT" > NOT </div> </label> </div> </div>, ] `; exports[`renders components/segmented/demo/controlled-two.tsx extend context correctly 2`] = `[]`; exports[`renders components/segmented/demo/custom.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding: 4px;" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" > <img src="https://xsgames.co/randomusers/avatar.php?g=pixel" /> </span> <div> User 1 </div> </div> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding: 4px;" > <span class="ant-avatar ant-avatar-circle" style="background-color: rgb(245, 106, 0);" > <span class="ant-avatar-string" style="transform: scale(1) translateX(-50%);" > K </span> </span> <div> User 2 </div> </div> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding: 4px;" > <span class="ant-avatar ant-avatar-circle ant-avatar-icon" style="background-color: rgb(135, 208, 104);" > <span aria-label="user" class="anticon anticon-user" role="img" > <svg aria-hidden="true" data-icon="user" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" /> </svg> </span> </span> <div> User 3 </div> </div> </div> </label> </div> </div> </div> <div class="ant-space-item" > <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding: 4px;" > <div> Spring </div> <div> Jan-Mar </div> </div> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding: 4px;" > <div> Summer </div> <div> Apr-Jun </div> </div> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding: 4px;" > <div> Autumn </div> <div> Jul-Sept </div> </div> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding: 4px;" > <div> Winter </div> <div> Oct-Dec </div> </div> </div> </label> </div> </div> </div> </div> `; exports[`renders components/segmented/demo/custom.tsx extend context correctly 2`] = `[]`; exports[`renders components/segmented/demo/disabled.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-segmented ant-segmented-disabled" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected ant-segmented-item-disabled" > <input checked="" class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Map" > Map </div> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Transit" > Transit </div> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Satellite" > Satellite </div> </label> </div> </div> </div> <div class="ant-space-item" > <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> </div> </div> `; exports[`renders components/segmented/demo/disabled.tsx extend context correctly 2`] = `[]`; exports[`renders components/segmented/demo/dynamic.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Load more options </span> </button> </div> </div> `; exports[`renders components/segmented/demo/dynamic.tsx extend context correctly 2`] = `[]`; exports[`renders components/segmented/demo/icon-only.tsx extend context correctly 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <span class="ant-segmented-item-icon" > <span aria-label="bars" class="anticon anticon-bars" role="img" > <svg aria-hidden="true" data-icon="bars" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </span> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <span class="ant-segmented-item-icon" > <span aria-label="appstore" class="anticon anticon-appstore" role="img" > <svg aria-hidden="true" data-icon="appstore" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z" /> </svg> </span> </span> </div> </label> </div> </div> `; exports[`renders components/segmented/demo/icon-only.tsx extend context correctly 2`] = `[]`; exports[`renders components/segmented/demo/size.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-segmented ant-segmented-lg" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> </div> <div class="ant-space-item" > <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> </div> <div class="ant-space-item" > <div class="ant-segmented ant-segmented-sm" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> </div> </div> `; exports[`renders components/segmented/demo/size.tsx extend context correctly 2`] = `[]`; exports[`renders components/segmented/demo/size-consistent.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div> <div class="ant-segmented ant-segmented-lg" style="margin-right: 6px;" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> <button class="ant-btn ant-btn-primary ant-btn-lg" type="button" > <span> Button </span> </button> </div> </div> <div class="ant-space-item" > <div> <div class="ant-segmented" style="margin-right: 6px;" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> <input class="ant-input" placeholder="default size" style="width: 150px;" type="text" value="" /> </div> </div> <div class="ant-space-item" > <div> <div class="ant-segmented ant-segmented-sm" style="margin-right: 6px;" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> <div class="ant-select ant-select-sm ant-select-single ant-select-show-arrow" style="width: 150px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Lucy" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> </div> `; exports[`renders components/segmented/demo/size-consistent.tsx extend context correctly 2`] = `[]`; exports[`renders components/segmented/demo/with-icon.tsx extend context correctly 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <span class="ant-segmented-item-icon" > <span aria-label="bars" class="anticon anticon-bars" role="img" > <svg aria-hidden="true" data-icon="bars" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </span> <span> List </span> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <span class="ant-segmented-item-icon" > <span aria-label="appstore" class="anticon anticon-appstore" role="img" > <svg aria-hidden="true" data-icon="appstore" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z" /> </svg> </span> </span> <span> Kanban </span> </div> </label> </div> </div> `; exports[`renders components/segmented/demo/with-icon.tsx extend context correctly 2`] = `[]`;
5,800
0
petrpan-code/ant-design/ant-design/components/segmented/__tests__
petrpan-code/ant-design/ant-design/components/segmented/__tests__/__snapshots__/demo.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/segmented/demo/basic.tsx correctly 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> `; exports[`renders components/segmented/demo/block.tsx correctly 1`] = ` <div class="ant-segmented ant-segmented-block" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="123" > 123 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="456" > 456 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="longtext-longtext-longtext-longtext" > longtext-longtext-longtext-longtext </div> </label> </div> </div> `; exports[`renders components/segmented/demo/componentToken.tsx correctly 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> `; exports[`renders components/segmented/demo/controlled.tsx correctly 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Map" > Map </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Transit" > Transit </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Satellite" > Satellite </div> </label> </div> </div> `; exports[`renders components/segmented/demo/controlled-two.tsx correctly 1`] = ` Array [ <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="AND" > AND </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="OR" > OR </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="NOT" > NOT </div> </label> </div> </div>,   , <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="AND" > AND </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="OR" > OR </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="NOT" > NOT </div> </label> </div> </div>, ] `; exports[`renders components/segmented/demo/custom.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding:4px" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" > <img src="https://xsgames.co/randomusers/avatar.php?g=pixel" /> </span> <div> User 1 </div> </div> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding:4px" > <span class="ant-avatar ant-avatar-circle" style="background-color:#f56a00" > <span class="ant-avatar-string" style="opacity:0" > K </span> </span> <div> User 2 </div> </div> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding:4px" > <span class="ant-avatar ant-avatar-circle ant-avatar-icon" style="background-color:#87d068" > <span aria-label="user" class="anticon anticon-user" role="img" > <svg aria-hidden="true" data-icon="user" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" /> </svg> </span> </span> <div> User 3 </div> </div> </div> </label> </div> </div> </div> <div class="ant-space-item" > <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding:4px" > <div> Spring </div> <div> Jan-Mar </div> </div> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding:4px" > <div> Summer </div> <div> Apr-Jun </div> </div> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding:4px" > <div> Autumn </div> <div> Jul-Sept </div> </div> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div style="padding:4px" > <div> Winter </div> <div> Oct-Dec </div> </div> </div> </label> </div> </div> </div> </div> `; exports[`renders components/segmented/demo/disabled.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-segmented ant-segmented-disabled" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected ant-segmented-item-disabled" > <input checked="" class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Map" > Map </div> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Transit" > Transit </div> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Satellite" > Satellite </div> </label> </div> </div> </div> <div class="ant-space-item" > <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> </div> </div> `; exports[`renders components/segmented/demo/dynamic.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Load more options </span> </button> </div> </div> `; exports[`renders components/segmented/demo/icon-only.tsx correctly 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <span class="ant-segmented-item-icon" > <span aria-label="bars" class="anticon anticon-bars" role="img" > <svg aria-hidden="true" data-icon="bars" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </span> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <span class="ant-segmented-item-icon" > <span aria-label="appstore" class="anticon anticon-appstore" role="img" > <svg aria-hidden="true" data-icon="appstore" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z" /> </svg> </span> </span> </div> </label> </div> </div> `; exports[`renders components/segmented/demo/size.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-segmented ant-segmented-lg" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> </div> <div class="ant-space-item" > <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> </div> <div class="ant-space-item" > <div class="ant-segmented ant-segmented-sm" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Quarterly" > Quarterly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Yearly" > Yearly </div> </label> </div> </div> </div> </div> `; exports[`renders components/segmented/demo/size-consistent.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div> <div class="ant-segmented ant-segmented-lg" style="margin-right:6px" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> <button class="ant-btn ant-btn-primary ant-btn-lg" type="button" > <span> Button </span> </button> </div> </div> <div class="ant-space-item" > <div> <div class="ant-segmented" style="margin-right:6px" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> <input class="ant-input" placeholder="default size" style="width:150px" type="text" value="" /> </div> </div> <div class="ant-space-item" > <div> <div class="ant-segmented ant-segmented-sm" style="margin-right:6px" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> <div class="ant-select ant-select-sm ant-select-single ant-select-show-arrow" style="width:150px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> </div> `; exports[`renders components/segmented/demo/with-icon.tsx correctly 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <span class="ant-segmented-item-icon" > <span aria-label="bars" class="anticon anticon-bars" role="img" > <svg aria-hidden="true" data-icon="bars" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </span> <span> List </span> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <span class="ant-segmented-item-icon" > <span aria-label="appstore" class="anticon anticon-appstore" role="img" > <svg aria-hidden="true" data-icon="appstore" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z" /> </svg> </span> </span> <span> Kanban </span> </div> </label> </div> </div> `;
5,801
0
petrpan-code/ant-design/ant-design/components/segmented/__tests__
petrpan-code/ant-design/ant-design/components/segmented/__tests__/__snapshots__/index.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Segmented render empty segmented 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" /> </div> `; exports[`Segmented render label with ReactNode 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <div id="weekly" > Weekly </div> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <h2> Monthly </h2> </div> </label> </div> </div> `; exports[`Segmented render segmented ok 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> `; exports[`Segmented render segmented with \`block\` 1`] = ` <div class="ant-segmented ant-segmented-block" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> `; exports[`Segmented render segmented with \`size#large\` 1`] = ` <div class="ant-segmented ant-segmented-lg" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> `; exports[`Segmented render segmented with \`size#small\` 1`] = ` <div class="ant-segmented ant-segmented-sm" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> `; exports[`Segmented render segmented with mixed options 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> `; exports[`Segmented render segmented with numeric options 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="1" > 1 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="2" > 2 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="3" > 3 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="4" > 4 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="5" > 5 </div> </label> </div> </div> `; exports[`Segmented render segmented with options null/undefined 1`] = ` <div class="ant-segmented ant-segmented-disabled" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected ant-segmented-item-disabled" > <input checked="" class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" /> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" /> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="" /> </label> </div> </div> `; exports[`Segmented render segmented with options: disabled 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> `; exports[`Segmented render segmented with string options 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> `; exports[`Segmented render segmented with thumb 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Map" > Map </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Transit" > Transit </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="Satellite" > Satellite </div> </label> </div> </div> `; exports[`Segmented render segmented: disabled 1`] = ` <div class="ant-segmented ant-segmented-disabled" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected ant-segmented-item-disabled" > <input checked="" class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Daily" > Daily </div> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Weekly" > Weekly </div> </label> <label class="ant-segmented-item ant-segmented-item-disabled" > <input class="ant-segmented-item-input" disabled="" type="radio" /> <div class="ant-segmented-item-label" title="Monthly" > Monthly </div> </label> </div> </div> `; exports[`Segmented render with icons 1`] = ` <div class="ant-segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <span class="ant-segmented-item-icon" > <span aria-label="bars" class="anticon anticon-bars" role="img" > <svg aria-hidden="true" data-icon="bars" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </span> </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" > <span class="ant-segmented-item-icon" > <span aria-label="appstore" class="anticon anticon-appstore" role="img" > <svg aria-hidden="true" data-icon="appstore" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z" /> </svg> </span> </span> <span> KanbanYes </span> </div> </label> </div> </div> `; exports[`Segmented rtl render component should be rendered correctly in RTL direction 1`] = ` <div class="ant-segmented ant-segmented-rtl" > <div class="ant-segmented-group" /> </div> `;
5,833
0
petrpan-code/ant-design/ant-design/components/select
petrpan-code/ant-design/ant-design/components/select/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('select', { skip: ['render-panel.tsx', 'big-data.tsx', 'component-token.tsx'] });
5,834
0
petrpan-code/ant-design/ant-design/components/select
petrpan-code/ant-design/ant-design/components/select/__tests__/demo.test.tsx
import * as React from 'react'; import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest'; demoTest('select', { skip: ['render-panel.tsx', 'component-token.tsx'], testRootProps: false, }); rootPropsTest('select', (Select, props) => <Select {...props} />, { findRootElements: () => document.querySelectorAll('.ant-select, .ant-select-dropdown'), expectCount: 2, });
5,835
0
petrpan-code/ant-design/ant-design/components/select
petrpan-code/ant-design/ant-design/components/select/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Select image', () => { imageDemoTest('select', { splitTheme: ['debug-flip-shift.tsx'], }); });
5,836
0
petrpan-code/ant-design/ant-design/components/select
petrpan-code/ant-design/ant-design/components/select/__tests__/index.test.tsx
import { CloseOutlined } from '@ant-design/icons'; import React from 'react'; import type { SelectProps } from '..'; import Select from '..'; import focusTest from '../../../tests/shared/focusTest'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { act, fireEvent, render } from '../../../tests/utils'; import { resetWarned } from '../../_util/warning'; const { Option } = Select; describe('Select', () => { focusTest(Select, { refFocus: true }); mountTest(Select); rtlTest(Select); function toggleOpen(container: ReturnType<typeof render>['container']): void { fireEvent.mouseDown(container.querySelector('.ant-select-selector')!); act(() => { jest.runAllTimers(); }); } beforeEach(() => { jest.useFakeTimers(); }); afterEach(() => { jest.useRealTimers(); }); it('should have default notFoundContent', () => { const { container } = render(<Select mode="multiple" />); toggleOpen(container); expect(container.querySelectorAll('.ant-select-item-option').length).toBe(0); expect(container.querySelectorAll('.ant-empty').length).toBeTruthy(); }); it('should support set notFoundContent to null', () => { const { container } = render(<Select mode="multiple" notFoundContent={null} />); toggleOpen(container); expect(container.querySelectorAll('.ant-empty').length).toBe(0); }); it('should not have default notFoundContent when mode is combobox', () => { const { container } = render( <Select mode={Select.SECRET_COMBOBOX_MODE_DO_NOT_USE as SelectProps['mode']} />, ); toggleOpen(container); expect(container.querySelector('.ant-empty')).toBeFalsy(); }); it('should not have notFoundContent when mode is combobox and notFoundContent is set', () => { const { container } = render( <Select mode={Select.SECRET_COMBOBOX_MODE_DO_NOT_USE as SelectProps['mode']} notFoundContent="not at all" />, ); toggleOpen(container); expect(container.querySelector('.ant-select-item-option')).toBeFalsy(); expect(container.querySelector('.ant-select-item-empty')).toHaveTextContent('not at all'); }); it('should be controlled by open prop', () => { const onDropdownVisibleChange = jest.fn(); const TestComponent: React.FC = () => { const [open, setOpen] = React.useState(false); const handleChange: SelectProps['onDropdownVisibleChange'] = (value) => { onDropdownVisibleChange(value); setOpen(value); }; return ( <Select open={open} onDropdownVisibleChange={handleChange}> <Option value="1">1</Option> </Select> ); }; const { container } = render(<TestComponent />); expect(container.querySelector('.ant-select-dropdown')).toBeFalsy(); toggleOpen(container); expect(container.querySelectorAll('.ant-select-dropdown').length).toBe(1); expect(onDropdownVisibleChange).toHaveBeenLastCalledWith(true); }); it('should show search icon when showSearch and open', () => { jest.useFakeTimers(); const { container } = render( <Select showSearch> <Option value="1">1</Option> </Select>, ); expect(container.querySelectorAll('.anticon-down').length).toBe(1); expect(container.querySelectorAll('.anticon-search').length).toBe(0); toggleOpen(container); expect(container.querySelectorAll('.anticon-down').length).toBe(0); expect(container.querySelectorAll('.anticon-search').length).toBe(1); }); describe('Select Custom Icons', () => { it('should support customized icons', () => { const { rerender, asFragment } = render( <Select removeIcon={<CloseOutlined />} clearIcon={<CloseOutlined />} menuItemSelectedIcon={<CloseOutlined />} > <Option value="1">1</Option> </Select>, ); rerender( <Select removeIcon={<CloseOutlined />} clearIcon={<CloseOutlined />} menuItemSelectedIcon={<CloseOutlined />} > <Option value="1">1</Option> </Select>, ); act(() => { jest.runAllTimers(); }); expect(asFragment().firstChild).toMatchSnapshot(); }); }); describe('Deprecated', () => { it('should ignore mode="combobox"', () => { const { asFragment } = render( <Select mode={'combobox' as SelectProps['mode']}> <Option value="1">1</Option> </Select>, ); expect(asFragment().firstChild).toMatchSnapshot(); }); it('dropdownClassName', () => { resetWarned(); const errSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); const { container } = render(<Select dropdownClassName="legacy" open />); expect(errSpy).toHaveBeenCalledWith( 'Warning: [antd: Select] `dropdownClassName` is deprecated. Please use `popupClassName` instead.', ); expect(container.querySelector('.legacy')).toBeTruthy(); errSpy.mockRestore(); }); it('warning for legacy dropdownMatchSelectWidth', () => { resetWarned(); const errSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); render(<Select dropdownMatchSelectWidth open />); expect(errSpy).toHaveBeenCalledWith( 'Warning: [antd: Select] `dropdownMatchSelectWidth` is deprecated. Please use `popupMatchSelectWidth` instead.', ); errSpy.mockRestore(); }); it('deprecate showArrow', () => { resetWarned(); const errSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); const { container } = render(<Select showArrow />); expect(errSpy).toHaveBeenCalledWith( 'Warning: [antd: Select] `showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null.', ); expect(container.querySelector('.ant-select-show-arrow')).toBeTruthy(); errSpy.mockRestore(); }); }); });
5,837
0
petrpan-code/ant-design/ant-design/components/select/__tests__
petrpan-code/ant-design/ant-design/components/select/__tests__/__snapshots__/demo-extend.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/select/demo/automatic-tokenization.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> <span class="ant-select-selection-placeholder" /> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="a10" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > a10 </div> <div aria-label="b11" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > b11 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="a10" > <div class="ant-select-item-option-content" > a10 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="b11" > <div class="ant-select-item-option-content" > b11 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="c12" > <div class="ant-select-item-option-content" > c12 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="d13" > <div class="ant-select-item-option-content" > d13 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="e14" > <div class="ant-select-item-option-content" > e14 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="f15" > <div class="ant-select-item-option-content" > f15 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="g16" > <div class="ant-select-item-option-content" > g16 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="h17" > <div class="ant-select-item-option-content" > h17 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="i18" > <div class="ant-select-item-option-content" > i18 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="j19" > <div class="ant-select-item-option-content" > j19 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="k20" > <div class="ant-select-item-option-content" > k20 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="l21" > <div class="ant-select-item-option-content" > l21 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="m22" > <div class="ant-select-item-option-content" > m22 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="n23" > <div class="ant-select-item-option-content" > n23 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="o24" > <div class="ant-select-item-option-content" > o24 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="p25" > <div class="ant-select-item-option-content" > p25 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="q26" > <div class="ant-select-item-option-content" > q26 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="r27" > <div class="ant-select-item-option-content" > r27 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="s28" > <div class="ant-select-item-option-content" > s28 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="t29" > <div class="ant-select-item-option-content" > t29 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="u30" > <div class="ant-select-item-option-content" > u30 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="v31" > <div class="ant-select-item-option-content" > v31 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="w32" > <div class="ant-select-item-option-content" > w32 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="x33" > <div class="ant-select-item-option-content" > x33 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="y34" > <div class="ant-select-item-option-content" > y34 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="z35" > <div class="ant-select-item-option-content" > z35 </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/automatic-tokenization.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/basic.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Jack" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > jack </div> <div aria-label="Lucy" aria-selected="true" id="rc_select_TEST_OR_SSR_list_1" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="Jack" > <div class="ant-select-item-option-content" > Jack </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="yiminghe" > <div class="ant-select-item-option-content" > yiminghe </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-disabled" title="Disabled" > <div class="ant-select-item-option-content" > Disabled </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow ant-select-disabled" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" disabled="" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Lucy" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow ant-select-loading" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Lucy" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow ant-select-arrow-loading" style="user-select: none;" unselectable="on" > <span aria-label="loading" class="anticon anticon-loading anticon-spin" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Lucy" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/basic.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/bordered.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > <div class="ant-select ant-select-borderless ant-select-single ant-select-show-arrow" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Jack" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > jack </div> <div aria-label="Lucy" aria-selected="true" id="rc_select_TEST_OR_SSR_list_1" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="Jack" > <div class="ant-select-item-option-content" > Jack </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="yiminghe" > <div class="ant-select-item-option-content" > yiminghe </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-borderless ant-select-single ant-select-show-arrow ant-select-disabled" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" disabled="" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Lucy" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/bordered.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/coordinate.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Zhejiang" > Zhejiang </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Zhejiang" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > Zhejiang </div> <div aria-label="Jiangsu" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > Jiangsu </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Zhejiang" > <div class="ant-select-item-option-content" > Zhejiang </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Jiangsu" > <div class="ant-select-item-option-content" > Jiangsu </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Hangzhou" > Hangzhou </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Hangzhou" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > Hangzhou </div> <div aria-label="Ningbo" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > Ningbo </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Hangzhou" > <div class="ant-select-item-option-content" > Hangzhou </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Ningbo" > <div class="ant-select-item-option-content" > Ningbo </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Wenzhou" > <div class="ant-select-item-option-content" > Wenzhou </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/coordinate.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/custom-dropdown-menu.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow" style="width: 300px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > custom dropdown render </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="jack" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > jack </div> <div aria-label="lucy" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="jack" > <div class="ant-select-item-option-content" > jack </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="lucy" > <div class="ant-select-item-option-content" > lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 8px 0px;" /> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="padding: 0px 8px 4px;" > <div class="ant-space-item" > <input class="ant-input" placeholder="Please enter item" type="text" value="" /> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-text" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> Add item </span> </button> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/custom-dropdown-menu.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/custom-tag-render.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span> <span class="ant-tag ant-tag-gold" style="margin-right: 3px;" > gold <span aria-label="close" class="anticon anticon-close ant-tag-close-icon" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span> <span class="ant-tag ant-tag-cyan" style="margin-right: 3px;" > cyan <span aria-label="close" class="anticon anticon-close ant-tag-close-icon" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > gold </div> <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > lime </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="gold" > <div class="ant-select-item-option-content" > gold </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="lime" > <div class="ant-select-item-option-content" > lime </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="green" > <div class="ant-select-item-option-content" > green </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="cyan" > <div class="ant-select-item-option-content" > cyan </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/custom-tag-render.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/debug.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap; width: 500px; position: relative; z-index: 1; border: 1px solid red; background-color: rgb(255, 255, 255);" > <div class="ant-space-item" > <input class="ant-input" style="width: 100px;" type="text" value="222" /> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow ant-select-show-search" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > 233 </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Jack" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > jack </div> <div aria-label="Lucy" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="Jack" > <div class="ant-select-item-option-content" > Jack </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-disabled" title="Disabled" > <div class="ant-select-item-option-content" > Disabled </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="yiminghe" > <div class="ant-select-item-option-content" > yiminghe </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="I am super super long!" > <div class="ant-select-item-option-content" > I am super super long! </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width: 120px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="Lucy" > <span class="ant-select-selection-item-content" > Lucy </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Jack" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > jack </div> <div aria-label="Lucy" aria-selected="true" id="rc_select_TEST_OR_SSR_list_1" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="Jack" > <div class="ant-select-item-option-content" > Jack </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-disabled" title="Disabled" > <div class="ant-select-item-option-content" > Disabled </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="yiminghe" > <div class="ant-select-item-option-content" > yiminghe </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="I am super super long!" > <div class="ant-select-item-option-content" > I am super super long! </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <span class="debug-align" > AntDesign </span> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 222 </span> </button> </div> </div> `; exports[`renders components/select/demo/debug.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/debug-flip-shift.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow ant-select-open" style="width: 120px; margin-top: 50vh;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-activedescendant="rc_select_TEST_OR_SSR_list_0" aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="true" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > 0 </div> <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > 1 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="0" > <div class="ant-select-item-option-content" > 0 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="1" > <div class="ant-select-item-option-content" > 1 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="2" > <div class="ant-select-item-option-content" > 2 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="3" > <div class="ant-select-item-option-content" > 3 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="4" > <div class="ant-select-item-option-content" > 4 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="5" > <div class="ant-select-item-option-content" > 5 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="6" > <div class="ant-select-item-option-content" > 6 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="7" > <div class="ant-select-item-option-content" > 7 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="8" > <div class="ant-select-item-option-content" > 8 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="9" > <div class="ant-select-item-option-content" > 9 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="10" > <div class="ant-select-item-option-content" > 10 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="11" > <div class="ant-select-item-option-content" > 11 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="12" > <div class="ant-select-item-option-content" > 12 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="13" > <div class="ant-select-item-option-content" > 13 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="14" > <div class="ant-select-item-option-content" > 14 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="15" > <div class="ant-select-item-option-content" > 15 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="16" > <div class="ant-select-item-option-content" > 16 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="17" > <div class="ant-select-item-option-content" > 17 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="18" > <div class="ant-select-item-option-content" > 18 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="19" > <div class="ant-select-item-option-content" > 19 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="20" > <div class="ant-select-item-option-content" > 20 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="21" > <div class="ant-select-item-option-content" > 21 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="22" > <div class="ant-select-item-option-content" > 22 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="23" > <div class="ant-select-item-option-content" > 23 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="24" > <div class="ant-select-item-option-content" > 24 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="25" > <div class="ant-select-item-option-content" > 25 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="26" > <div class="ant-select-item-option-content" > 26 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="27" > <div class="ant-select-item-option-content" > 27 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="28" > <div class="ant-select-item-option-content" > 28 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="29" > <div class="ant-select-item-option-content" > 29 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="30" > <div class="ant-select-item-option-content" > 30 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="31" > <div class="ant-select-item-option-content" > 31 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="32" > <div class="ant-select-item-option-content" > 32 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="33" > <div class="ant-select-item-option-content" > 33 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="34" > <div class="ant-select-item-option-content" > 34 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="35" > <div class="ant-select-item-option-content" > 35 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="36" > <div class="ant-select-item-option-content" > 36 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="37" > <div class="ant-select-item-option-content" > 37 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="38" > <div class="ant-select-item-option-content" > 38 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="39" > <div class="ant-select-item-option-content" > 39 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="40" > <div class="ant-select-item-option-content" > 40 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="41" > <div class="ant-select-item-option-content" > 41 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="42" > <div class="ant-select-item-option-content" > 42 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="43" > <div class="ant-select-item-option-content" > 43 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="44" > <div class="ant-select-item-option-content" > 44 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="45" > <div class="ant-select-item-option-content" > 45 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="46" > <div class="ant-select-item-option-content" > 46 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="47" > <div class="ant-select-item-option-content" > 47 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="48" > <div class="ant-select-item-option-content" > 48 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="49" > <div class="ant-select-item-option-content" > 49 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="50" > <div class="ant-select-item-option-content" > 50 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="51" > <div class="ant-select-item-option-content" > 51 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="52" > <div class="ant-select-item-option-content" > 52 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="53" > <div class="ant-select-item-option-content" > 53 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="54" > <div class="ant-select-item-option-content" > 54 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="55" > <div class="ant-select-item-option-content" > 55 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="56" > <div class="ant-select-item-option-content" > 56 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="57" > <div class="ant-select-item-option-content" > 57 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="58" > <div class="ant-select-item-option-content" > 58 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="59" > <div class="ant-select-item-option-content" > 59 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="60" > <div class="ant-select-item-option-content" > 60 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="61" > <div class="ant-select-item-option-content" > 61 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="62" > <div class="ant-select-item-option-content" > 62 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="63" > <div class="ant-select-item-option-content" > 63 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="64" > <div class="ant-select-item-option-content" > 64 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="65" > <div class="ant-select-item-option-content" > 65 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="66" > <div class="ant-select-item-option-content" > 66 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="67" > <div class="ant-select-item-option-content" > 67 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="68" > <div class="ant-select-item-option-content" > 68 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="69" > <div class="ant-select-item-option-content" > 69 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="70" > <div class="ant-select-item-option-content" > 70 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="71" > <div class="ant-select-item-option-content" > 71 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="72" > <div class="ant-select-item-option-content" > 72 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="73" > <div class="ant-select-item-option-content" > 73 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="74" > <div class="ant-select-item-option-content" > 74 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="75" > <div class="ant-select-item-option-content" > 75 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="76" > <div class="ant-select-item-option-content" > 76 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="77" > <div class="ant-select-item-option-content" > 77 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="78" > <div class="ant-select-item-option-content" > 78 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="79" > <div class="ant-select-item-option-content" > 79 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="80" > <div class="ant-select-item-option-content" > 80 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="81" > <div class="ant-select-item-option-content" > 81 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="82" > <div class="ant-select-item-option-content" > 82 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="83" > <div class="ant-select-item-option-content" > 83 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="84" > <div class="ant-select-item-option-content" > 84 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="85" > <div class="ant-select-item-option-content" > 85 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="86" > <div class="ant-select-item-option-content" > 86 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="87" > <div class="ant-select-item-option-content" > 87 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="88" > <div class="ant-select-item-option-content" > 88 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="89" > <div class="ant-select-item-option-content" > 89 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="90" > <div class="ant-select-item-option-content" > 90 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="91" > <div class="ant-select-item-option-content" > 91 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="92" > <div class="ant-select-item-option-content" > 92 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="93" > <div class="ant-select-item-option-content" > 93 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="94" > <div class="ant-select-item-option-content" > 94 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="95" > <div class="ant-select-item-option-content" > 95 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="96" > <div class="ant-select-item-option-content" > 96 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="97" > <div class="ant-select-item-option-content" > 97 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="98" > <div class="ant-select-item-option-content" > 98 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="99" > <div class="ant-select-item-option-content" > 99 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/debug-flip-shift.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/hide-selected.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > Inserted are removed </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Apples" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > Apples </div> <div aria-label="Nails" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > Nails </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="Apples" > <div class="ant-select-item-option-content" > Apples </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Nails" > <div class="ant-select-item-option-content" > Nails </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Bananas" > <div class="ant-select-item-option-content" > Bananas </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Helicopters" > <div class="ant-select-item-option-content" > Helicopters </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/hide-selected.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/label-in-value.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy (101)" > Lucy (101) </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Jack (100)" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > jack </div> <div aria-label="Lucy (101)" aria-selected="true" id="rc_select_TEST_OR_SSR_list_1" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="Jack (100)" > <div class="ant-select-item-option-content" > Jack (100) </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Lucy (101)" > <div class="ant-select-item-option-content" > Lucy (101) </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/label-in-value.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/multiple.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width: 100%;" > <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="a10" > <span class="ant-select-selection-item-content" > a10 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="c12" > <span class="ant-select-selection-item-content" > c12 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="a10" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > a10 </div> <div aria-label="b11" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > b11 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="a10" > <div class="ant-select-item-option-content" > a10 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="b11" > <div class="ant-select-item-option-content" > b11 </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="c12" > <div class="ant-select-item-option-content" > c12 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="d13" > <div class="ant-select-item-option-content" > d13 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="e14" > <div class="ant-select-item-option-content" > e14 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="f15" > <div class="ant-select-item-option-content" > f15 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="g16" > <div class="ant-select-item-option-content" > g16 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="h17" > <div class="ant-select-item-option-content" > h17 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="i18" > <div class="ant-select-item-option-content" > i18 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="j19" > <div class="ant-select-item-option-content" > j19 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="k20" > <div class="ant-select-item-option-content" > k20 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="l21" > <div class="ant-select-item-option-content" > l21 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="m22" > <div class="ant-select-item-option-content" > m22 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="n23" > <div class="ant-select-item-option-content" > n23 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="o24" > <div class="ant-select-item-option-content" > o24 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="p25" > <div class="ant-select-item-option-content" > p25 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="q26" > <div class="ant-select-item-option-content" > q26 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="r27" > <div class="ant-select-item-option-content" > r27 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="s28" > <div class="ant-select-item-option-content" > s28 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="t29" > <div class="ant-select-item-option-content" > t29 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="u30" > <div class="ant-select-item-option-content" > u30 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="v31" > <div class="ant-select-item-option-content" > v31 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="w32" > <div class="ant-select-item-option-content" > w32 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="x33" > <div class="ant-select-item-option-content" > x33 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="y34" > <div class="ant-select-item-option-content" > y34 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="z35" > <div class="ant-select-item-option-content" > z35 </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-disabled ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="a10" > <span class="ant-select-selection-item-content" > a10 </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="c12" > <span class="ant-select-selection-item-content" > c12 </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" disabled="" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="a10" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > a10 </div> <div aria-label="b11" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > b11 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="a10" > <div class="ant-select-item-option-content" > a10 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="b11" > <div class="ant-select-item-option-content" > b11 </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="c12" > <div class="ant-select-item-option-content" > c12 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="d13" > <div class="ant-select-item-option-content" > d13 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="e14" > <div class="ant-select-item-option-content" > e14 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="f15" > <div class="ant-select-item-option-content" > f15 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="g16" > <div class="ant-select-item-option-content" > g16 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="h17" > <div class="ant-select-item-option-content" > h17 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="i18" > <div class="ant-select-item-option-content" > i18 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="j19" > <div class="ant-select-item-option-content" > j19 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="k20" > <div class="ant-select-item-option-content" > k20 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="l21" > <div class="ant-select-item-option-content" > l21 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="m22" > <div class="ant-select-item-option-content" > m22 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="n23" > <div class="ant-select-item-option-content" > n23 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="o24" > <div class="ant-select-item-option-content" > o24 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="p25" > <div class="ant-select-item-option-content" > p25 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="q26" > <div class="ant-select-item-option-content" > q26 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="r27" > <div class="ant-select-item-option-content" > r27 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="s28" > <div class="ant-select-item-option-content" > s28 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="t29" > <div class="ant-select-item-option-content" > t29 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="u30" > <div class="ant-select-item-option-content" > u30 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="v31" > <div class="ant-select-item-option-content" > v31 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="w32" > <div class="ant-select-item-option-content" > w32 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="x33" > <div class="ant-select-item-option-content" > x33 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="y34" > <div class="ant-select-item-option-content" > y34 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="z35" > <div class="ant-select-item-option-content" > z35 </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/multiple.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/optgroup.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow" style="width: 200px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="presentation" /> <div aria-label="Jack" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > jack </div> <div aria-label="Lucy" aria-selected="true" id="rc_select_TEST_OR_SSR_list_2" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div class="ant-select-item ant-select-item-group" title="Manager" > Manager </div> <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-grouped ant-select-item-option-active" title="Jack" > <div class="ant-select-item-option-content" > Jack </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-grouped ant-select-item-option-selected" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div class="ant-select-item ant-select-item-group" title="Engineer" > Engineer </div> <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-grouped" title="yiminghe" > <div class="ant-select-item-option-content" > yiminghe </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/optgroup.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/option-label-center.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="long, long, long piece of text" > long, long, long piece of text </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > long </div> <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > short </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" > <div class="ant-select-item-option-content" > <article class="ant-typography" > long, long, long piece of text </article> </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" > <div class="ant-select-item-option-content" > <article class="ant-typography" > short </article> </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" > <div class="ant-select-item-option-content" > <div> normal </div> </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 120px; height: 60px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > Select a option </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > long </div> <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > short </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" > <div class="ant-select-item-option-content" > <article class="ant-typography" > long, long, long piece of text </article> </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" > <div class="ant-select-item-option-content" > <article class="ant-typography" > short </article> </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" > <div class="ant-select-item-option-content" > <div> normal </div> </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" > <div> normal </div> </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > long </div> <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > short </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" > <div class="ant-select-item-option-content" > <article class="ant-typography" > long, long, long piece of text </article> </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" > <div class="ant-select-item-option-content" > <article class="ant-typography" > short </article> </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" > <div class="ant-select-item-option-content" > <div> normal </div> </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width: 120px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" > <span class="ant-select-selection-item-content" > <div> normal </div> </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > long </div> <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > short </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" > <div class="ant-select-item-option-content" > <article class="ant-typography" > long, long, long piece of text </article> </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" > <div class="ant-select-item-option-content" > <article class="ant-typography" > short </article> </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" > <div class="ant-select-item-option-content" > <div> normal </div> </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width: 120px; height: 60px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > Select a option </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > long </div> <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > short </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" > <div class="ant-select-item-option-content" > <article class="ant-typography" > long, long, long piece of text </article> </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" > <div class="ant-select-item-option-content" > <article class="ant-typography" > short </article> </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" > <div class="ant-select-item-option-content" > <div> normal </div> </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 120px; height: 60px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > Select a option </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-cascader-dropdown ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: auto;" > <div> <div class="ant-cascader-menus" > <ul class="ant-cascader-menu" role="menu" > <li aria-checked="false" class="ant-cascader-menu-item" data-path-key="long" role="menuitemcheckbox" > <div class="ant-cascader-menu-item-content" > <article class="ant-typography" > long, long, long piece of text </article> </div> </li> <li aria-checked="false" class="ant-cascader-menu-item" data-path-key="short" role="menuitemcheckbox" > <div class="ant-cascader-menu-item-content" > <article class="ant-typography" > short </article> </div> </li> <li aria-checked="false" class="ant-cascader-menu-item" data-path-key="normal" role="menuitemcheckbox" > <div class="ant-cascader-menu-item-content" > <div> normal </div> </div> </li> </ul> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-tree-select ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width: 120px; height: 60px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > Please select </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-tree-select-dropdown ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div> <div class="ant-select-tree" role="tree" > <div> <input aria-label="for screen reader" disabled="" style="width: 0px; height: 0px; display: flex; overflow: hidden; opacity: 0; border: 0px; padding: 0px; margin: 0px;" value="" /> </div> <div aria-hidden="true" class="ant-select-tree-treenode" style="position: absolute; pointer-events: none; visibility: hidden; height: 0px; overflow: hidden; border: 0px; padding: 0px;" > <div class="ant-select-tree-indent" > <div class="ant-select-tree-indent-unit" /> </div> </div> <div class="ant-select-tree-list" style="position: relative;" > <div class="ant-select-tree-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="ant-select-tree-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-grabbed="false" class="ant-select-tree-treenode ant-select-tree-treenode-switcher-open ant-select-tree-treenode-leaf-last" draggable="false" > <span aria-hidden="true" class="ant-select-tree-indent" /> <span class="ant-select-tree-switcher ant-select-tree-switcher_open" > <span aria-label="caret-down" class="anticon anticon-caret-down ant-select-tree-switcher-icon" role="img" > <svg aria-hidden="true" data-icon="caret-down" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" /> </svg> </span> </span> <span class="ant-select-tree-node-content-wrapper ant-select-tree-node-content-wrapper-open" title="parent 1" > <span class="ant-select-tree-title" > parent 1 </span> </span> </div> <div aria-grabbed="false" class="ant-select-tree-treenode ant-select-tree-treenode-switcher-open" draggable="false" > <span aria-hidden="true" class="ant-select-tree-indent" > <span class="ant-select-tree-indent-unit ant-select-tree-indent-unit-start ant-select-tree-indent-unit-end" /> </span> <span class="ant-select-tree-switcher ant-select-tree-switcher-noop" /> <span class="ant-select-tree-node-content-wrapper ant-select-tree-node-content-wrapper-normal" title="" > <span class="ant-select-tree-title" > <article class="ant-typography" > long, long, long piece of text </article> </span> </span> </div> <div aria-grabbed="false" class="ant-select-tree-treenode ant-select-tree-treenode-switcher-open" draggable="false" > <span aria-hidden="true" class="ant-select-tree-indent" > <span class="ant-select-tree-indent-unit ant-select-tree-indent-unit-start ant-select-tree-indent-unit-end" /> </span> <span class="ant-select-tree-switcher ant-select-tree-switcher-noop" /> <span class="ant-select-tree-node-content-wrapper ant-select-tree-node-content-wrapper-normal" title="" > <span class="ant-select-tree-title" > <article class="ant-typography" > short </article> </span> </span> </div> <div aria-grabbed="false" class="ant-select-tree-treenode ant-select-tree-treenode-switcher-open ant-select-tree-treenode-leaf-last" draggable="false" > <span aria-hidden="true" class="ant-select-tree-indent" > <span class="ant-select-tree-indent-unit ant-select-tree-indent-unit-start ant-select-tree-indent-unit-end" /> </span> <span class="ant-select-tree-switcher ant-select-tree-switcher-noop" /> <span class="ant-select-tree-node-content-wrapper ant-select-tree-node-content-wrapper-normal" title="" > <span class="ant-select-tree-title" > <div> normal </div> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/option-label-center.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/option-label-prop.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="China" > <span class="ant-select-selection-item-content" > China </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="China" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > china </div> <div aria-label="USA" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > usa </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="China" > <div class="ant-select-item-option-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span aria-label="China" role="img" > 🇨🇳 </span> </div> <div class="ant-space-item" > China (中国) </div> </div> </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="USA" > <div class="ant-select-item-option-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span aria-label="USA" role="img" > 🇺🇸 </span> </div> <div class="ant-space-item" > USA (美国) </div> </div> </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Japan" > <div class="ant-select-item-option-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span aria-label="Japan" role="img" > 🇯🇵 </span> </div> <div class="ant-space-item" > Japan (日本) </div> </div> </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Korea" > <div class="ant-select-item-option-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span aria-label="Korea" role="img" > 🇰🇷 </span> </div> <div class="ant-space-item" > Korea (韩国) </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/option-label-prop.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/placement.tsx extend context correctly 1`] = ` Array [ <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="topLeft" /> <span class="ant-radio-button-inner" /> </span> <span> topLeft </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="topRight" /> <span class="ant-radio-button-inner" /> </span> <span> topRight </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="bottomLeft" /> <span class="ant-radio-button-inner" /> </span> <span> bottomLeft </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="bottomRight" /> <span class="ant-radio-button-inner" /> </span> <span> bottomRight </span> </label> </div>, <br />, <br />, <div class="ant-select ant-select-single ant-select-show-arrow" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="HangZhou #310000" > HangZhou #310000 </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-topLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" id="rc_select_TEST_OR_SSR_list" role="listbox" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" id="rc_select_TEST_OR_SSR_list_0" role="option" title="HangZhou #310000" > <div class="ant-select-item-option-content" > HangZhou #310000 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" id="rc_select_TEST_OR_SSR_list_1" role="option" title="NingBo #315000" > <div class="ant-select-item-option-content" > NingBo #315000 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" id="rc_select_TEST_OR_SSR_list_2" role="option" title="WenZhou #325000" > <div class="ant-select-item-option-content" > WenZhou #325000 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div>, ] `; exports[`renders components/select/demo/placement.tsx extend context correctly 2`] = ` [ "Warning: [antd: Select] \`dropdownMatchSelectWidth\` is deprecated. Please use \`popupMatchSelectWidth\` instead.", ] `; exports[`renders components/select/demo/placement-debug.tsx extend context correctly 1`] = ` <div style="height: 100%; min-height: 500px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="position: absolute; top: 0px; left: 50%; transform: translateX(-50%);" > <div class="ant-space-item" > <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="topLeft" /> <span class="ant-radio-button-inner" /> </span> <span> TL </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="topRight" /> <span class="ant-radio-button-inner" /> </span> <span> TR </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="bottomLeft" /> <span class="ant-radio-button-inner" /> </span> <span> BL </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="bottomRight" /> <span class="ant-radio-button-inner" /> </span> <span> BR </span> </label> </div> </div> <div class="ant-space-item" > <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Random </span> </button> </div> </div> <div class="ant-select ant-select-single ant-select-show-arrow" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-topLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; width: 200px;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Option 0" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > 0 </div> <div aria-label="Option 1" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > 1 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="Option 0" > <div class="ant-select-item-option-content" > Option 0 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Option 1" > <div class="ant-select-item-option-content" > Option 1 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Option 2" > <div class="ant-select-item-option-content" > Option 2 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> `; exports[`renders components/select/demo/placement-debug.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/responsive.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width: 100%;" > <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div aria-hidden="true" class="ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" style="opacity: 0; height: 0px; overflow-y: hidden; order: 9007199254740991; pointer-events: none; position: absolute;" > <span class="ant-select-selection-item" title="+ 4 ..." > <span class="ant-select-selection-item-content" > + 4 ... </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1; order: 0;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Long Label: a10" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > a10 </div> <div aria-label="Long Label: b11" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > b11 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Long Label: a10" > <div class="ant-select-item-option-content" > Long Label: a10 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: b11" > <div class="ant-select-item-option-content" > Long Label: b11 </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Long Label: c12" > <div class="ant-select-item-option-content" > Long Label: c12 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: d13" > <div class="ant-select-item-option-content" > Long Label: d13 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: e14" > <div class="ant-select-item-option-content" > Long Label: e14 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: f15" > <div class="ant-select-item-option-content" > Long Label: f15 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: g16" > <div class="ant-select-item-option-content" > Long Label: g16 </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Long Label: h17" > <div class="ant-select-item-option-content" > Long Label: h17 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: i18" > <div class="ant-select-item-option-content" > Long Label: i18 </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Long Label: j19" > <div class="ant-select-item-option-content" > Long Label: j19 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Long Label: k20" > <div class="ant-select-item-option-content" > Long Label: k20 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: l21" > <div class="ant-select-item-option-content" > Long Label: l21 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: m22" > <div class="ant-select-item-option-content" > Long Label: m22 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: n23" > <div class="ant-select-item-option-content" > Long Label: n23 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: o24" > <div class="ant-select-item-option-content" > Long Label: o24 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: p25" > <div class="ant-select-item-option-content" > Long Label: p25 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: q26" > <div class="ant-select-item-option-content" > Long Label: q26 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: r27" > <div class="ant-select-item-option-content" > Long Label: r27 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: s28" > <div class="ant-select-item-option-content" > Long Label: s28 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: t29" > <div class="ant-select-item-option-content" > Long Label: t29 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: u30" > <div class="ant-select-item-option-content" > Long Label: u30 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: v31" > <div class="ant-select-item-option-content" > Long Label: v31 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: w32" > <div class="ant-select-item-option-content" > Long Label: w32 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: x33" > <div class="ant-select-item-option-content" > Long Label: x33 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: y34" > <div class="ant-select-item-option-content" > Long Label: y34 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: z35" > <div class="ant-select-item-option-content" > Long Label: z35 </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-disabled ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div aria-hidden="true" class="ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" style="opacity: 0; height: 0px; overflow-y: hidden; order: 9007199254740991; pointer-events: none; position: absolute;" > <span class="ant-select-selection-item" title="+ 4 ..." > <span class="ant-select-selection-item-content" > + 4 ... </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1; order: 0;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" disabled="" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Long Label: a10" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > a10 </div> <div aria-label="Long Label: b11" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > b11 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Long Label: a10" > <div class="ant-select-item-option-content" > Long Label: a10 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: b11" > <div class="ant-select-item-option-content" > Long Label: b11 </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Long Label: c12" > <div class="ant-select-item-option-content" > Long Label: c12 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: d13" > <div class="ant-select-item-option-content" > Long Label: d13 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: e14" > <div class="ant-select-item-option-content" > Long Label: e14 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: f15" > <div class="ant-select-item-option-content" > Long Label: f15 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: g16" > <div class="ant-select-item-option-content" > Long Label: g16 </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Long Label: h17" > <div class="ant-select-item-option-content" > Long Label: h17 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: i18" > <div class="ant-select-item-option-content" > Long Label: i18 </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Long Label: j19" > <div class="ant-select-item-option-content" > Long Label: j19 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Long Label: k20" > <div class="ant-select-item-option-content" > Long Label: k20 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: l21" > <div class="ant-select-item-option-content" > Long Label: l21 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: m22" > <div class="ant-select-item-option-content" > Long Label: m22 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: n23" > <div class="ant-select-item-option-content" > Long Label: n23 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: o24" > <div class="ant-select-item-option-content" > Long Label: o24 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: p25" > <div class="ant-select-item-option-content" > Long Label: p25 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: q26" > <div class="ant-select-item-option-content" > Long Label: q26 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: r27" > <div class="ant-select-item-option-content" > Long Label: r27 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: s28" > <div class="ant-select-item-option-content" > Long Label: s28 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: t29" > <div class="ant-select-item-option-content" > Long Label: t29 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: u30" > <div class="ant-select-item-option-content" > Long Label: u30 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: v31" > <div class="ant-select-item-option-content" > Long Label: v31 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: w32" > <div class="ant-select-item-option-content" > Long Label: w32 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: x33" > <div class="ant-select-item-option-content" > Long Label: x33 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: y34" > <div class="ant-select-item-option-content" > Long Label: y34 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Long Label: z35" > <div class="ant-select-item-option-content" > Long Label: z35 </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/responsive.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/search.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow ant-select-show-search" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > Select a person </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Jack" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > jack </div> <div aria-label="Lucy" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="Jack" > <div class="ant-select-item-option-content" > Jack </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Tom" > <div class="ant-select-item-option-content" > Tom </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/search.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/search-box.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-search" style="width: 200px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > input search text </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-empty ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div class="ant-select-item-empty" id="rc_select_TEST_OR_SSR_list" role="listbox" /> </div> </div> </div> `; exports[`renders components/select/demo/search-box.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/search-sort.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow ant-select-show-search" style="width: 200px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > Search to Select </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Cancelled" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > 6 </div> <div aria-label="Closed" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > 2 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="Cancelled" > <div class="ant-select-item-option-content" > Cancelled </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Closed" > <div class="ant-select-item-option-content" > Closed </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Communicated" > <div class="ant-select-item-option-content" > Communicated </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Identified" > <div class="ant-select-item-option-content" > Identified </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Not Identified" > <div class="ant-select-item-option-content" > Not Identified </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Resolved" > <div class="ant-select-item-option-content" > Resolved </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/search-sort.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/select-users.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > Select users </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-empty ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div class="ant-select-item-empty" id="rc_select_TEST_OR_SSR_list" role="listbox" /> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/select-users.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/size.tsx extend context correctly 1`] = ` Array [ <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="large" /> <span class="ant-radio-button-inner" /> </span> <span> Large </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="middle" /> <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" value="small" /> <span class="ant-radio-button-inner" /> </span> <span> Small </span> </label> </div>, <br />, <br />, <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width: 100%;" > <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow" style="width: 200px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="a1" > a1 </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="a10" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > a10 </div> <div aria-label="b11" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > b11 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="a10" > <div class="ant-select-item-option-content" > a10 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="b11" > <div class="ant-select-item-option-content" > b11 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="c12" > <div class="ant-select-item-option-content" > c12 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="d13" > <div class="ant-select-item-option-content" > d13 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="e14" > <div class="ant-select-item-option-content" > e14 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="f15" > <div class="ant-select-item-option-content" > f15 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="g16" > <div class="ant-select-item-option-content" > g16 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="h17" > <div class="ant-select-item-option-content" > h17 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="i18" > <div class="ant-select-item-option-content" > i18 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="j19" > <div class="ant-select-item-option-content" > j19 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="k20" > <div class="ant-select-item-option-content" > k20 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="l21" > <div class="ant-select-item-option-content" > l21 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="m22" > <div class="ant-select-item-option-content" > m22 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="n23" > <div class="ant-select-item-option-content" > n23 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="o24" > <div class="ant-select-item-option-content" > o24 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="p25" > <div class="ant-select-item-option-content" > p25 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="q26" > <div class="ant-select-item-option-content" > q26 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="r27" > <div class="ant-select-item-option-content" > r27 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="s28" > <div class="ant-select-item-option-content" > s28 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="t29" > <div class="ant-select-item-option-content" > t29 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="u30" > <div class="ant-select-item-option-content" > u30 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="v31" > <div class="ant-select-item-option-content" > v31 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="w32" > <div class="ant-select-item-option-content" > w32 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="x33" > <div class="ant-select-item-option-content" > x33 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="y34" > <div class="ant-select-item-option-content" > y34 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="z35" > <div class="ant-select-item-option-content" > z35 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="a10" > <span class="ant-select-selection-item-content" > a10 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="c12" > <span class="ant-select-selection-item-content" > c12 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="a10" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > a10 </div> <div aria-label="b11" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > b11 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="a10" > <div class="ant-select-item-option-content" > a10 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="b11" > <div class="ant-select-item-option-content" > b11 </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="c12" > <div class="ant-select-item-option-content" > c12 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="d13" > <div class="ant-select-item-option-content" > d13 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="e14" > <div class="ant-select-item-option-content" > e14 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="f15" > <div class="ant-select-item-option-content" > f15 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="g16" > <div class="ant-select-item-option-content" > g16 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="h17" > <div class="ant-select-item-option-content" > h17 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="i18" > <div class="ant-select-item-option-content" > i18 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="j19" > <div class="ant-select-item-option-content" > j19 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="k20" > <div class="ant-select-item-option-content" > k20 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="l21" > <div class="ant-select-item-option-content" > l21 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="m22" > <div class="ant-select-item-option-content" > m22 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="n23" > <div class="ant-select-item-option-content" > n23 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="o24" > <div class="ant-select-item-option-content" > o24 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="p25" > <div class="ant-select-item-option-content" > p25 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="q26" > <div class="ant-select-item-option-content" > q26 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="r27" > <div class="ant-select-item-option-content" > r27 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="s28" > <div class="ant-select-item-option-content" > s28 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="t29" > <div class="ant-select-item-option-content" > t29 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="u30" > <div class="ant-select-item-option-content" > u30 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="v31" > <div class="ant-select-item-option-content" > v31 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="w32" > <div class="ant-select-item-option-content" > w32 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="x33" > <div class="ant-select-item-option-content" > x33 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="y34" > <div class="ant-select-item-option-content" > y34 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="z35" > <div class="ant-select-item-option-content" > z35 </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="a10" > <span class="ant-select-selection-item-content" > a10 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="c12" > <span class="ant-select-selection-item-content" > c12 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="a10" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > a10 </div> <div aria-label="b11" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > b11 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="a10" > <div class="ant-select-item-option-content" > a10 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="b11" > <div class="ant-select-item-option-content" > b11 </div> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="c12" > <div class="ant-select-item-option-content" > c12 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="d13" > <div class="ant-select-item-option-content" > d13 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="e14" > <div class="ant-select-item-option-content" > e14 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="f15" > <div class="ant-select-item-option-content" > f15 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="g16" > <div class="ant-select-item-option-content" > g16 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="h17" > <div class="ant-select-item-option-content" > h17 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="i18" > <div class="ant-select-item-option-content" > i18 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="j19" > <div class="ant-select-item-option-content" > j19 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="k20" > <div class="ant-select-item-option-content" > k20 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="l21" > <div class="ant-select-item-option-content" > l21 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="m22" > <div class="ant-select-item-option-content" > m22 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="n23" > <div class="ant-select-item-option-content" > n23 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="o24" > <div class="ant-select-item-option-content" > o24 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="p25" > <div class="ant-select-item-option-content" > p25 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="q26" > <div class="ant-select-item-option-content" > q26 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="r27" > <div class="ant-select-item-option-content" > r27 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="s28" > <div class="ant-select-item-option-content" > s28 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="t29" > <div class="ant-select-item-option-content" > t29 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="u30" > <div class="ant-select-item-option-content" > u30 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="v31" > <div class="ant-select-item-option-content" > v31 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="w32" > <div class="ant-select-item-option-content" > w32 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="x33" > <div class="ant-select-item-option-content" > x33 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="y34" > <div class="ant-select-item-option-content" > y34 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="z35" > <div class="ant-select-item-option-content" > z35 </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div>, ] `; exports[`renders components/select/demo/size.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/status.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width: 100%;" > <div class="ant-space-item" > <div class="ant-select ant-select-status-error ant-select-single ant-select-show-arrow" style="width: 100%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-empty ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div class="ant-select-item-empty" id="rc_select_TEST_OR_SSR_list" role="listbox" > <div class="ant-empty ant-empty-normal ant-empty-small" > <div class="ant-empty-image" > <svg height="41" viewBox="0 0 64 41" width="64" xmlns="http://www.w3.org/2000/svg" > <g fill="none" fill-rule="evenodd" transform="translate(0 1)" > <ellipse cx="32" cy="33" fill="#f5f5f5" rx="32" ry="7" /> <g fill-rule="nonzero" stroke="#d9d9d9" > <path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" /> <path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#fafafa" /> </g> </g> </svg> </div> <div class="ant-empty-description" > No data </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-status-warning ant-select-single ant-select-show-arrow" style="width: 100%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-empty ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div class="ant-select-item-empty" id="rc_select_TEST_OR_SSR_list" role="listbox" > <div class="ant-empty ant-empty-normal ant-empty-small" > <div class="ant-empty-image" > <svg height="41" viewBox="0 0 64 41" width="64" xmlns="http://www.w3.org/2000/svg" > <g fill="none" fill-rule="evenodd" transform="translate(0 1)" > <ellipse cx="32" cy="33" fill="#f5f5f5" rx="32" ry="7" /> <g fill-rule="nonzero" stroke="#d9d9d9" > <path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" /> <path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#fafafa" /> </g> </g> </svg> </div> <div class="ant-empty-description" > No data </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/status.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/suffix.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Jack" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > jack </div> <div aria-label="Lucy" aria-selected="true" id="rc_select_TEST_OR_SSR_list_1" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="Jack" > <div class="ant-select-item-option-content" > Jack </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="yiminghe" > <div class="ant-select-item-option-content" > yiminghe </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-disabled" title="Disabled" > <div class="ant-select-item-option-content" > Disabled </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow ant-select-disabled" style="width: 120px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" disabled="" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Lucy" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > lucy </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Lucy" > <div class="ant-select-item-option-content" > Lucy </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="meh" class="anticon anticon-meh" role="img" > <svg aria-hidden="true" data-icon="meh" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/suffix.tsx extend context correctly 2`] = `[]`; exports[`renders components/select/demo/tags.tsx extend context correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width: 100%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > Tags Mode </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="a10" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > a10 </div> <div aria-label="b11" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > b11 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="a10" > <div class="ant-select-item-option-content" > a10 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="b11" > <div class="ant-select-item-option-content" > b11 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="c12" > <div class="ant-select-item-option-content" > c12 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="d13" > <div class="ant-select-item-option-content" > d13 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="e14" > <div class="ant-select-item-option-content" > e14 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="f15" > <div class="ant-select-item-option-content" > f15 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="g16" > <div class="ant-select-item-option-content" > g16 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="h17" > <div class="ant-select-item-option-content" > h17 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="i18" > <div class="ant-select-item-option-content" > i18 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="j19" > <div class="ant-select-item-option-content" > j19 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="k20" > <div class="ant-select-item-option-content" > k20 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="l21" > <div class="ant-select-item-option-content" > l21 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="m22" > <div class="ant-select-item-option-content" > m22 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="n23" > <div class="ant-select-item-option-content" > n23 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="o24" > <div class="ant-select-item-option-content" > o24 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="p25" > <div class="ant-select-item-option-content" > p25 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="q26" > <div class="ant-select-item-option-content" > q26 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="r27" > <div class="ant-select-item-option-content" > r27 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="s28" > <div class="ant-select-item-option-content" > s28 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="t29" > <div class="ant-select-item-option-content" > t29 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="u30" > <div class="ant-select-item-option-content" > u30 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="v31" > <div class="ant-select-item-option-content" > v31 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="w32" > <div class="ant-select-item-option-content" > w32 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="x33" > <div class="ant-select-item-option-content" > x33 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="y34" > <div class="ant-select-item-option-content" > y34 </div> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="z35" > <div class="ant-select-item-option-content" > z35 </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/tags.tsx extend context correctly 2`] = `[]`;
5,838
0
petrpan-code/ant-design/ant-design/components/select/__tests__
petrpan-code/ant-design/ant-design/components/select/__tests__/__snapshots__/demo.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/select/demo/automatic-tokenization.tsx correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" role="combobox" type="search" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> <span class="ant-select-selection-placeholder" /> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/basic.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap:wrap" > <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow ant-select-disabled" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" disabled="" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow ant-select-loading" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <span aria-hidden="true" class="ant-select-arrow ant-select-arrow-loading" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="loading" class="anticon anticon-loading anticon-spin" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/big-data.tsx correctly 1`] = ` Array [ <h4 class="ant-typography" > 100000 <!-- --> Items </h4>, <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item ant-select-selection-item-disabled" title="a10" > <span class="ant-select-selection-item-content" > a10 </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="c12" > <span class="ant-select-selection-item-content" > c12 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div>, ] `; exports[`renders components/select/demo/bordered.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap:wrap" > <div class="ant-space-item" > <div class="ant-select ant-select-borderless ant-select-single ant-select-show-arrow" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-borderless ant-select-single ant-select-show-arrow ant-select-disabled" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" disabled="" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/coordinate.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap:wrap" > <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Zhejiang" > Zhejiang </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Hangzhou" > Hangzhou </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/custom-dropdown-menu.tsx correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow" style="width:300px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > custom dropdown render </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/custom-tag-render.tsx correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity:1" > <span> <span class="ant-tag ant-tag-gold" style="margin-right:3px" > gold <span aria-label="close" class="anticon anticon-close ant-tag-close-icon" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity:1" > <span> <span class="ant-tag ant-tag-cyan" style="margin-right:3px" > cyan <span aria-label="close" class="anticon anticon-close ant-tag-close-icon" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/debug.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap:wrap;width:500px;position:relative;z-index:1;border:1px solid red;background-color:#fff" > <div class="ant-space-item" > <input class="ant-input" style="width:100px" type="text" value="222" /> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow ant-select-show-search" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > 233 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width:120px" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="Lucy" > <span class="ant-select-selection-item-content" > Lucy </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <span class="debug-align" > AntDesign </span> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 222 </span> </button> </div> </div> `; exports[`renders components/select/demo/debug-flip-shift.tsx correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow" style="width:120px;margin-top:50vh" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/hide-selected.tsx correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > Inserted are removed </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/label-in-value.tsx correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy (101)" > Lucy (101) </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/multiple.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width:100%" > <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="a10" > <span class="ant-select-selection-item-content" > a10 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="c12" > <span class="ant-select-selection-item-content" > c12 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-disabled ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="a10" > <span class="ant-select-selection-item-content" > a10 </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="c12" > <span class="ant-select-selection-item-content" > c12 </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" disabled="" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/optgroup.tsx correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow" style="width:200px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/option-label-center.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap:wrap" > <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="long, long, long piece of text" > long, long, long piece of text </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width:120px;height:60px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > Select a option </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" > <div> normal </div> </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width:120px" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" > <span class="ant-select-selection-item-content" > <div> normal </div> </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width:120px;height:60px" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > Select a option </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width:120px;height:60px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > Select a option </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-tree-select ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width:120px;height:60px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > Please select </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/option-label-prop.tsx correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="China" > <span class="ant-select-selection-item-content" > China </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/placement.tsx correctly 1`] = ` Array [ <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="topLeft" /> <span class="ant-radio-button-inner" /> </span> <span> topLeft </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="topRight" /> <span class="ant-radio-button-inner" /> </span> <span> topRight </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="bottomLeft" /> <span class="ant-radio-button-inner" /> </span> <span> bottomLeft </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="bottomRight" /> <span class="ant-radio-button-inner" /> </span> <span> bottomRight </span> </label> </div>, <br />, <br />, <div class="ant-select ant-select-single ant-select-show-arrow" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="HangZhou #310000" > HangZhou #310000 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div>, ] `; exports[`renders components/select/demo/placement-debug.tsx correctly 1`] = ` <div style="height:100%;min-height:500px;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="position:absolute;top:0;left:50%;transform:translateX(-50%)" > <div class="ant-space-item" > <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="topLeft" /> <span class="ant-radio-button-inner" /> </span> <span> TL </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="topRight" /> <span class="ant-radio-button-inner" /> </span> <span> TR </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="bottomLeft" /> <span class="ant-radio-button-inner" /> </span> <span> BL </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="bottomRight" /> <span class="ant-radio-button-inner" /> </span> <span> BR </span> </label> </div> </div> <div class="ant-space-item" > <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Random </span> </button> </div> </div> <div class="ant-select ant-select-single ant-select-show-arrow" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> `; exports[`renders components/select/demo/responsive.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width:100%" > <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div aria-hidden="true" class="ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" style="opacity:0;height:0;overflow-y:hidden;order:9007199254740991;pointer-events:none;position:absolute" > <span class="ant-select-selection-item" title="+ 4 ..." > <span class="ant-select-selection-item-content" > + 4 ... </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1;order:0" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-disabled ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div aria-hidden="true" class="ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" style="opacity:0;height:0;overflow-y:hidden;order:9007199254740991;pointer-events:none;position:absolute" > <span class="ant-select-selection-item" title="+ 4 ..." > <span class="ant-select-selection-item-content" > + 4 ... </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1;order:0" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" disabled="" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/search.tsx correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow ant-select-show-search" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > Select a person </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/search-box.tsx correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-search" style="width:200px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > input search text </span> </div> </div> `; exports[`renders components/select/demo/search-sort.tsx correctly 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow ant-select-show-search" style="width:200px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > Search to Select </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/select-users.tsx correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > Select users </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`renders components/select/demo/size.tsx correctly 1`] = ` Array [ <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="large" /> <span class="ant-radio-button-inner" /> </span> <span> Large </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="middle" /> <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" value="small" /> <span class="ant-radio-button-inner" /> </span> <span> Small </span> </label> </div>, <br />, <br />, <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width:100%" > <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow" style="width:200px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="a1" > a1 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="a10" > <span class="ant-select-selection-item-content" > a10 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="c12" > <span class="ant-select-selection-item-content" > c12 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="a10" > <span class="ant-select-selection-item-content" > a10 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="c12" > <span class="ant-select-selection-item-content" > c12 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" role="combobox" type="search" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div>, ] `; exports[`renders components/select/demo/status.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width:100%" > <div class="ant-space-item" > <div class="ant-select ant-select-status-error ant-select-single ant-select-show-arrow" style="width:100%" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-status-warning ant-select-single ant-select-show-arrow" style="width:100%" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/suffix.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap:wrap" > <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow ant-select-disabled" style="width:120px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" disabled="" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Lucy" > Lucy </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="meh" class="anticon anticon-meh" role="img" > <svg aria-hidden="true" data-icon="meh" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> </div> `; exports[`renders components/select/demo/tags.tsx correctly 1`] = ` <div class="ant-select ant-select-multiple ant-select-show-arrow ant-select-show-search" style="width:100%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" role="combobox" type="search" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > Tags Mode </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `;
5,839
0
petrpan-code/ant-design/ant-design/components/select/__tests__
petrpan-code/ant-design/ant-design/components/select/__tests__/__snapshots__/index.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Select Deprecated should ignore mode="combobox" 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`Select Select Custom Icons should support customized icons 1`] = ` <div class="ant-select ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `; exports[`Select rtl render component should be rendered correctly in RTL direction 1`] = ` <div class="ant-select ant-select-rtl ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> `;
5,912
0
petrpan-code/ant-design/ant-design/components/skeleton
petrpan-code/ant-design/ant-design/components/skeleton/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('skeleton');
5,913
0
petrpan-code/ant-design/ant-design/components/skeleton
petrpan-code/ant-design/ant-design/components/skeleton/__tests__/demo.test.tsx
import * as React from 'react'; import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest'; demoTest('skeleton'); rootPropsTest('skeleton', (Skeleton, props) => <Skeleton.Avatar {...props} />, { name: 'Skeleton.Avatar', }); rootPropsTest('skeleton', (Skeleton, props) => <Skeleton.Button {...props} />, { name: 'Skeleton.Button', }); rootPropsTest('skeleton', (Skeleton, props) => <Skeleton.Image {...props} />, { name: 'Skeleton.Image', }); rootPropsTest('skeleton', (Skeleton, props) => <Skeleton.Input {...props} />, { name: 'Skeleton.Input', }); rootPropsTest('skeleton', (Skeleton, props) => <Skeleton.Node {...props} />, { name: 'Skeleton.Node', });
5,914
0
petrpan-code/ant-design/ant-design/components/skeleton
petrpan-code/ant-design/ant-design/components/skeleton/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Skeleton image', () => { imageDemoTest('skeleton'); });
5,915
0
petrpan-code/ant-design/ant-design/components/skeleton
petrpan-code/ant-design/ant-design/components/skeleton/__tests__/index.test.tsx
import React from 'react'; import Skeleton from '..'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { render } from '../../../tests/utils'; import type { SkeletonProps } from '../Skeleton'; import type { AvatarProps } from '../Avatar'; import type { SkeletonButtonProps } from '../Button'; import type { SkeletonImageProps } from '../Image'; import type { SkeletonInputProps } from '../Input'; import type { SkeletonNodeProps } from '../Node'; describe('Skeleton', () => { const genSkeleton = (props: SkeletonProps) => render( <Skeleton loading {...props}> Bamboo </Skeleton>, ); const genSkeletonButton = (props: SkeletonButtonProps) => render(<Skeleton.Button {...props} />); const genSkeletonAvatar = (props: AvatarProps) => render(<Skeleton.Avatar {...props} />); const genSkeletonInput = (props: SkeletonInputProps) => render(<Skeleton.Input {...props} />); const genSkeletonImage = (props: SkeletonImageProps) => render(<Skeleton.Image {...props} />); const genSkeletonNode = (props: SkeletonNodeProps) => render(<Skeleton.Node {...props} />); mountTest(Skeleton); rtlTest(Skeleton); it('should without avatar and paragraph', () => { const { asFragment } = genSkeleton({ avatar: false, paragraph: false }); expect(asFragment().firstChild).toMatchSnapshot(); }); it('should square avatar', () => { const { asFragment } = genSkeleton({ avatar: true, paragraph: false }); expect(asFragment().firstChild).toMatchSnapshot(); }); it('should round title and paragraph', () => { const { asFragment } = genSkeleton({ round: true, title: true, paragraph: true }); expect(asFragment().firstChild).toMatchSnapshot(); }); it('should display without children and falsy loading props', () => { const { asFragment } = render(<Skeleton loading={false} />); expect(asFragment().firstChild).toMatchSnapshot(); }); it('should display with empty children and falsy loading props', () => { const { container } = render(<Skeleton loading={false}>{0}</Skeleton>); expect(container.textContent).toBe('0'); }); it('should display children', () => { const { container } = render(<Skeleton loading={false}>{[1, 2, 3]}</Skeleton>); expect(container.textContent).toBe('123'); }); describe('avatar', () => { it('size', () => { const { asFragment } = genSkeleton({ avatar: { size: 'small' } }); expect(asFragment().firstChild).toMatchSnapshot(); const { asFragment: wrapperDefault } = genSkeleton({ avatar: { size: 'default' } }); expect(wrapperDefault().firstChild).toMatchSnapshot(); const { asFragment: wrapperLarge } = genSkeleton({ avatar: { size: 'large' } }); expect(wrapperLarge().firstChild).toMatchSnapshot(); const { asFragment: wrapperNumber } = genSkeleton({ avatar: { size: 20 } }); expect(wrapperNumber().firstChild).toMatchSnapshot(); }); it('shape', () => { const { asFragment: wrapperCircle } = genSkeleton({ avatar: { shape: 'circle' } }); expect(wrapperCircle().firstChild).toMatchSnapshot(); const { asFragment: wrapperSquare } = genSkeleton({ avatar: { shape: 'square' } }); expect(wrapperSquare().firstChild).toMatchSnapshot(); }); }); describe('title', () => { it('width', () => { const { asFragment } = genSkeleton({ title: { width: '93%' } }); expect(asFragment().firstChild).toMatchSnapshot(); }); }); describe('paragraph', () => { it('rows', () => { const { asFragment } = genSkeleton({ paragraph: { rows: 5 } }); expect(asFragment().firstChild).toMatchSnapshot(); }); it('width', () => { const { asFragment: wrapperPure } = genSkeleton({ paragraph: { width: '93%' } }); expect(wrapperPure().firstChild).toMatchSnapshot(); const { asFragment: wrapperList } = genSkeleton({ paragraph: { width: ['28%', '93%'] } }); expect(wrapperList().firstChild).toMatchSnapshot(); }); }); describe('button element', () => { it('active', () => { const { asFragment } = genSkeletonButton({ active: true }); expect(asFragment().firstChild).toMatchSnapshot(); }); it('block', () => { const { asFragment } = genSkeletonButton({ block: true }); expect(asFragment().firstChild).toMatchSnapshot(); }); it('size', () => { const { asFragment: wrapperDefault } = genSkeletonButton({ size: 'default' }); expect(wrapperDefault().firstChild).toMatchSnapshot(); const { asFragment: wrapperLarge } = genSkeletonButton({ size: 'large' }); expect(wrapperLarge().firstChild).toMatchSnapshot(); const { asFragment } = genSkeletonButton({ size: 'small' }); expect(asFragment().firstChild).toMatchSnapshot(); }); it('shape', () => { const { asFragment: wrapperDefault } = genSkeletonButton({ shape: 'default' }); expect(wrapperDefault().firstChild).toMatchSnapshot(); const { asFragment: wrapperRound } = genSkeletonButton({ shape: 'round' }); expect(wrapperRound().firstChild).toMatchSnapshot(); const { asFragment: wrapperCircle } = genSkeletonButton({ shape: 'circle' }); expect(wrapperCircle().firstChild).toMatchSnapshot(); }); }); describe('avatar element', () => { it('active', () => { const { asFragment } = genSkeletonAvatar({ active: true }); expect(asFragment().firstChild).toMatchSnapshot(); }); it('size', () => { const { asFragment } = genSkeletonAvatar({ size: 'small' }); expect(asFragment().firstChild).toMatchSnapshot(); const { asFragment: wrapperDefault } = genSkeletonAvatar({ size: 'default' }); expect(wrapperDefault().firstChild).toMatchSnapshot(); const { asFragment: wrapperLarge } = genSkeletonAvatar({ size: 'large' }); expect(wrapperLarge().firstChild).toMatchSnapshot(); const { asFragment: wrapperNumber } = genSkeletonAvatar({ size: 20 }); expect(wrapperNumber().firstChild).toMatchSnapshot(); }); it('shape', () => { const { asFragment: wrapperCircle } = genSkeletonAvatar({ shape: 'circle' }); expect(wrapperCircle().firstChild).toMatchSnapshot(); const { asFragment: wrapperSquare } = genSkeletonAvatar({ shape: 'square' }); expect(wrapperSquare().firstChild).toMatchSnapshot(); }); }); describe('input element', () => { it('active', () => { const { asFragment } = genSkeletonInput({ active: true }); expect(asFragment().firstChild).toMatchSnapshot(); }); it('size', () => { const { asFragment } = genSkeletonInput({ size: 'small' }); expect(asFragment().firstChild).toMatchSnapshot(); const { asFragment: wrapperDefault } = genSkeletonInput({ size: 'default' }); expect(wrapperDefault().firstChild).toMatchSnapshot(); const { asFragment: wrapperLarge } = genSkeletonInput({ size: 'large' }); expect(wrapperLarge().firstChild).toMatchSnapshot(); }); }); describe('image element', () => { it('should render normal', () => { const { asFragment } = genSkeletonImage({}); expect(asFragment().firstChild).toMatchSnapshot(); }); }); describe('custom node element', () => { it('should render normal', () => { const { asFragment } = genSkeletonNode({}); expect(asFragment().firstChild).toMatchSnapshot(); const { asFragment: asFragmentNode } = genSkeletonNode({ children: <span>Custom Content Node</span>, }); expect(asFragmentNode().firstChild).toMatchSnapshot(); }); }); it('should support style', () => { const { asFragment } = genSkeleton({ style: { background: 'blue' } }); expect(asFragment().firstChild).toMatchSnapshot(); }); });
5,916
0
petrpan-code/ant-design/ant-design/components/skeleton/__tests__
petrpan-code/ant-design/ant-design/components/skeleton/__tests__/__snapshots__/demo-extend.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/skeleton/demo/active.tsx extend context correctly 1`] = ` <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 38%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> `; exports[`renders components/skeleton/demo/active.tsx extend context correctly 2`] = `[]`; exports[`renders components/skeleton/demo/basic.tsx extend context correctly 1`] = ` <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 38%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> `; exports[`renders components/skeleton/demo/basic.tsx extend context correctly 2`] = `[]`; exports[`renders components/skeleton/demo/children.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical" style="column-gap: 16px; row-gap: 16px; width: 100%;" > <div class="ant-space-item" > <h4 style="margin-bottom: 16px;" > Ant Design, a design language </h4> <p> We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently. </p> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Show Skeleton </span> </button> </div> </div> `; exports[`renders components/skeleton/demo/children.tsx extend context correctly 2`] = `[]`; exports[`renders components/skeleton/demo/complex.tsx extend context correctly 1`] = ` <div class="ant-skeleton ant-skeleton-with-avatar" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 50%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> </ul> </div> </div> `; exports[`renders components/skeleton/demo/complex.tsx extend context correctly 2`] = `[]`; exports[`renders components/skeleton/demo/componentToken.tsx extend context correctly 1`] = ` <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 38%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> `; exports[`renders components/skeleton/demo/componentToken.tsx extend context correctly 2`] = `[]`; exports[`renders components/skeleton/demo/element.tsx extend context correctly 1`] = ` Array [ <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-button" /> </div> </div> <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-avatar ant-skeleton-avatar-circle" /> </div> </div> <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-input" /> </div> </div> </div>, <br />, <br />, <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-button" /> </div>, <br />, <br />, <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-input" /> </div>, <br />, <br />, <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element" > <div class="ant-skeleton-image" > <svg class="ant-skeleton-image-svg" viewBox="0 0 1098 1024" xmlns="http://www.w3.org/2000/svg" > <path class="ant-skeleton-image-path" d="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z" /> </svg> </div> </div> </div> <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element" > <div class="ant-skeleton-image" > <span aria-label="dot-chart" class="anticon anticon-dot-chart" role="img" style="font-size: 40px; color: rgb(191, 191, 191);" > <svg aria-hidden="true" data-icon="dot-chart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </div> </div> </div> </div>, <div class="ant-divider ant-divider-horizontal" role="separator" />, <form class="ant-form ant-form-inline" style="margin: 16px 0px;" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap: wrap; column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="Active" > Active </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" > <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="Button and Input Block" > Button and Input Block </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" > <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="Size" > Size </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" > <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="default" /> <span class="ant-radio-button-inner" /> </span> <span> Default </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="large" /> <span class="ant-radio-button-inner" /> </span> <span> Large </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="small" /> <span class="ant-radio-button-inner" /> </span> <span> Small </span> </label> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="Button Shape" > Button Shape </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" > <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="default" /> <span class="ant-radio-button-inner" /> </span> <span> Default </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="square" /> <span class="ant-radio-button-inner" /> </span> <span> Square </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="round" /> <span class="ant-radio-button-inner" /> </span> <span> Round </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="circle" /> <span class="ant-radio-button-inner" /> </span> <span> Circle </span> </label> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="Avatar Shape" > Avatar Shape </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" > <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="square" /> <span class="ant-radio-button-inner" /> </span> <span> Square </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="circle" /> <span class="ant-radio-button-inner" /> </span> <span> Circle </span> </label> </div> </div> </div> </div> </div> </div> </div> </div> </form>, ] `; exports[`renders components/skeleton/demo/element.tsx extend context correctly 2`] = `[]`; exports[`renders components/skeleton/demo/list.tsx extend context correctly 1`] = ` Array [ <button aria-checked="false" class="ant-switch" role="switch" style="margin-bottom: 16px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, <div class="ant-list ant-list-vertical ant-list-lg ant-list-split" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-list-item-no-flex" > <div class="ant-skeleton ant-skeleton-with-avatar ant-skeleton-active" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 50%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> </li> <li class="ant-list-item ant-list-item-no-flex" > <div class="ant-skeleton ant-skeleton-with-avatar ant-skeleton-active" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 50%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> </li> <li class="ant-list-item ant-list-item-no-flex" > <div class="ant-skeleton ant-skeleton-with-avatar ant-skeleton-active" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 50%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> </li> </ul> </div> </div> </div>, ] `; exports[`renders components/skeleton/demo/list.tsx extend context correctly 2`] = `[]`;
5,917
0
petrpan-code/ant-design/ant-design/components/skeleton/__tests__
petrpan-code/ant-design/ant-design/components/skeleton/__tests__/__snapshots__/demo.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/skeleton/demo/active.tsx correctly 1`] = ` <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width:38%" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li style="width:61%" /> </ul> </div> </div> `; exports[`renders components/skeleton/demo/basic.tsx correctly 1`] = ` <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width:38%" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li style="width:61%" /> </ul> </div> </div> `; exports[`renders components/skeleton/demo/children.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical" style="column-gap:16px;row-gap:16px;width:100%" > <div class="ant-space-item" > <h4 style="margin-bottom:16px" > Ant Design, a design language </h4> <p> We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently. </p> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Show Skeleton </span> </button> </div> </div> `; exports[`renders components/skeleton/demo/complex.tsx correctly 1`] = ` <div class="ant-skeleton ant-skeleton-with-avatar" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width:50%" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> </ul> </div> </div> `; exports[`renders components/skeleton/demo/componentToken.tsx correctly 1`] = ` <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width:38%" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li style="width:61%" /> </ul> </div> </div> `; exports[`renders components/skeleton/demo/element.tsx correctly 1`] = ` Array [ <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-button" /> </div> </div> <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-avatar ant-skeleton-avatar-circle" /> </div> </div> <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-input" /> </div> </div> </div>, <br />, <br />, <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-button" /> </div>, <br />, <br />, <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-input" /> </div>, <br />, <br />, <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element" > <div class="ant-skeleton-image" > <svg class="ant-skeleton-image-svg" viewBox="0 0 1098 1024" xmlns="http://www.w3.org/2000/svg" > <path class="ant-skeleton-image-path" d="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z" /> </svg> </div> </div> </div> <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element" > <div class="ant-skeleton-image" > <span aria-label="dot-chart" class="anticon anticon-dot-chart" role="img" style="font-size:40px;color:#bfbfbf" > <svg aria-hidden="true" data-icon="dot-chart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </div> </div> </div> </div>, <div class="ant-divider ant-divider-horizontal" role="separator" />, <form class="ant-form ant-form-inline" style="margin:16px 0" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap:wrap;column-gap:16px;row-gap:16px" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="Active" > Active </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" > <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="Button and Input Block" > Button and Input Block </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" > <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="Size" > Size </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" > <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="default" /> <span class="ant-radio-button-inner" /> </span> <span> Default </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="large" /> <span class="ant-radio-button-inner" /> </span> <span> Large </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="small" /> <span class="ant-radio-button-inner" /> </span> <span> Small </span> </label> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="Button Shape" > Button Shape </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" > <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="default" /> <span class="ant-radio-button-inner" /> </span> <span> Default </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="square" /> <span class="ant-radio-button-inner" /> </span> <span> Square </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="round" /> <span class="ant-radio-button-inner" /> </span> <span> Round </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="circle" /> <span class="ant-radio-button-inner" /> </span> <span> Circle </span> </label> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="Avatar Shape" > Avatar Shape </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" > <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="square" /> <span class="ant-radio-button-inner" /> </span> <span> Square </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="circle" /> <span class="ant-radio-button-inner" /> </span> <span> Circle </span> </label> </div> </div> </div> </div> </div> </div> </div> </div> </form>, ] `; exports[`renders components/skeleton/demo/list.tsx correctly 1`] = ` Array [ <button aria-checked="false" class="ant-switch" role="switch" style="margin-bottom:16px" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, <div class="ant-list ant-list-vertical ant-list-lg ant-list-split" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-list-item-no-flex" > <div class="ant-skeleton ant-skeleton-with-avatar ant-skeleton-active" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width:50%" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> </li> <li class="ant-list-item ant-list-item-no-flex" > <div class="ant-skeleton ant-skeleton-with-avatar ant-skeleton-active" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width:50%" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> </li> <li class="ant-list-item ant-list-item-no-flex" > <div class="ant-skeleton ant-skeleton-with-avatar ant-skeleton-active" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width:50%" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> </li> </ul> </div> </div> </div>, ] `;
5,918
0
petrpan-code/ant-design/ant-design/components/skeleton/__tests__
petrpan-code/ant-design/ant-design/components/skeleton/__tests__/__snapshots__/index.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Skeleton avatar element active 1`] = ` <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-avatar ant-skeleton-avatar-circle" /> </div> `; exports[`Skeleton avatar element shape 1`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-avatar ant-skeleton-avatar-circle" /> </div> `; exports[`Skeleton avatar element shape 2`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-avatar ant-skeleton-avatar-square" /> </div> `; exports[`Skeleton avatar element size 1`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-avatar ant-skeleton-avatar-sm ant-skeleton-avatar-circle" /> </div> `; exports[`Skeleton avatar element size 2`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-avatar ant-skeleton-avatar-circle" /> </div> `; exports[`Skeleton avatar element size 3`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-circle" /> </div> `; exports[`Skeleton avatar element size 4`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-avatar ant-skeleton-avatar-circle" style="width: 20px; height: 20px; line-height: 20px;" /> </div> `; exports[`Skeleton avatar shape 1`] = ` <div class="ant-skeleton ant-skeleton-with-avatar" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 50%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> `; exports[`Skeleton avatar shape 2`] = ` <div class="ant-skeleton ant-skeleton-with-avatar" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-square" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 50%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> `; exports[`Skeleton avatar size 1`] = ` <div class="ant-skeleton ant-skeleton-with-avatar" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-sm ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 50%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> `; exports[`Skeleton avatar size 2`] = ` <div class="ant-skeleton ant-skeleton-with-avatar" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 50%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> `; exports[`Skeleton avatar size 3`] = ` <div class="ant-skeleton ant-skeleton-with-avatar" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-circle" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 50%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> `; exports[`Skeleton avatar size 4`] = ` <div class="ant-skeleton ant-skeleton-with-avatar" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-circle" style="width: 20px; height: 20px; line-height: 20px;" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 50%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> </ul> </div> </div> `; exports[`Skeleton button element active 1`] = ` <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" /> </div> `; exports[`Skeleton button element block 1`] = ` <div class="ant-skeleton ant-skeleton-element ant-skeleton-block" > <span class="ant-skeleton-button" /> </div> `; exports[`Skeleton button element shape 1`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-button" /> </div> `; exports[`Skeleton button element shape 2`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-button ant-skeleton-button-round" /> </div> `; exports[`Skeleton button element shape 3`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-button ant-skeleton-button-circle" /> </div> `; exports[`Skeleton button element size 1`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-button" /> </div> `; exports[`Skeleton button element size 2`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-button ant-skeleton-button-lg" /> </div> `; exports[`Skeleton button element size 3`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-button ant-skeleton-button-sm" /> </div> `; exports[`Skeleton custom node element should render normal 1`] = ` <div class="ant-skeleton ant-skeleton-element" > <div class="ant-skeleton-image" > <span aria-label="dot-chart" class="anticon anticon-dot-chart" role="img" > <svg aria-hidden="true" data-icon="dot-chart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </div> </div> `; exports[`Skeleton custom node element should render normal 2`] = ` <div class="ant-skeleton ant-skeleton-element" > <div class="ant-skeleton-image" > <span> Custom Content Node </span> </div> </div> `; exports[`Skeleton image element should render normal 1`] = ` <div class="ant-skeleton ant-skeleton-element" > <div class="ant-skeleton-image" > <svg class="ant-skeleton-image-svg" viewBox="0 0 1098 1024" xmlns="http://www.w3.org/2000/svg" > <path class="ant-skeleton-image-path" d="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z" /> </svg> </div> </div> `; exports[`Skeleton input element active 1`] = ` <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-input" /> </div> `; exports[`Skeleton input element size 1`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-input ant-skeleton-input-sm" /> </div> `; exports[`Skeleton input element size 2`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-input" /> </div> `; exports[`Skeleton input element size 3`] = ` <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-input ant-skeleton-input-lg" /> </div> `; exports[`Skeleton paragraph rows 1`] = ` <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 38%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> `; exports[`Skeleton paragraph width 1`] = ` <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 38%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li style="width: 93%;" /> </ul> </div> </div> `; exports[`Skeleton paragraph width 2`] = ` <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 38%;" /> <ul class="ant-skeleton-paragraph" > <li style="width: 28%;" /> <li style="width: 93%;" /> <li /> </ul> </div> </div> `; exports[`Skeleton rtl render component should be rendered correctly in RTL direction 1`] = ` <div class="ant-skeleton ant-skeleton-rtl" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 38%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> `; exports[`Skeleton should display without children and falsy loading props 1`] = `null`; exports[`Skeleton should round title and paragraph 1`] = ` <div class="ant-skeleton ant-skeleton-round" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 38%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> `; exports[`Skeleton should square avatar 1`] = ` <div class="ant-skeleton ant-skeleton-with-avatar" > <div class="ant-skeleton-header" > <span class="ant-skeleton-avatar ant-skeleton-avatar-lg ant-skeleton-avatar-square" /> </div> <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" /> </div> </div> `; exports[`Skeleton should support style 1`] = ` <div class="ant-skeleton" style="background: blue;" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 38%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> `; exports[`Skeleton should without avatar and paragraph 1`] = ` <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" /> </div> </div> `; exports[`Skeleton title width 1`] = ` <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 93%;" /> <ul class="ant-skeleton-paragraph" > <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> `;
5,938
0
petrpan-code/ant-design/ant-design/components/slider
petrpan-code/ant-design/ant-design/components/slider/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('slider');
5,939
0
petrpan-code/ant-design/ant-design/components/slider
petrpan-code/ant-design/ant-design/components/slider/__tests__/demo.test.ts
import demoTest from '../../../tests/shared/demoTest'; demoTest('slider', { skip: ['show-tooltip.tsx'] });
5,940
0
petrpan-code/ant-design/ant-design/components/slider
petrpan-code/ant-design/ant-design/components/slider/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Slider image', () => { imageDemoTest('slider'); });
5,941
0
petrpan-code/ant-design/ant-design/components/slider
petrpan-code/ant-design/ant-design/components/slider/__tests__/index.test.tsx
import React from 'react'; import Slider from '..'; import focusTest from '../../../tests/shared/focusTest'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { act, fireEvent, render, waitFakeTimer } from '../../../tests/utils'; import { resetWarned } from '../../_util/warning'; import ConfigProvider from '../../config-provider'; import type { TooltipProps, TooltipRef } from '../../tooltip'; import SliderTooltip from '../SliderTooltip'; function tooltipProps(): TooltipProps { return (global as any).tooltipProps; } jest.mock('../../tooltip', () => { const ReactReal: typeof React = jest.requireActual('react'); const Tooltip = jest.requireActual('../../tooltip'); const TooltipComponent = Tooltip.default; return ReactReal.forwardRef<TooltipRef, TooltipProps>((props, ref) => { (global as any).tooltipProps = props; return <TooltipComponent {...props} ref={ref} />; }); }); describe('Slider', () => { mountTest(Slider); rtlTest(Slider); focusTest(Slider); beforeEach(() => { jest.useFakeTimers(); }); afterEach(() => { jest.clearAllTimers(); jest.useRealTimers(); }); it('should show tooltip when hovering slider handler', async () => { const { container } = render(<Slider defaultValue={30} />); fireEvent.mouseEnter(container.querySelector('.ant-slider-handle')!); await waitFakeTimer(); expect(document.querySelector('.ant-tooltip')).toMatchSnapshot(); fireEvent.mouseLeave(container.querySelector('.ant-slider-handle')!); await waitFakeTimer(); expect(document.querySelector('.ant-tooltip')).toMatchSnapshot(); }); it('should show correct placement tooltip when set tooltipPlacement', () => { const { container } = render( <Slider vertical defaultValue={30} tooltip={{ placement: 'left' }} />, ); fireEvent.mouseEnter(container.querySelector('.ant-slider-handle')!); expect(tooltipProps().placement).toEqual('left'); }); it('support autoAdjustOverflow', () => { const { container } = render( <Slider vertical defaultValue={30} tooltip={{ autoAdjustOverflow: false }} />, ); fireEvent.mouseEnter(container.querySelector('.ant-slider-handle')!); expect(tooltipProps().autoAdjustOverflow).toBe(false); }); it('when tooltip.open is true, tooltip should show always, or should never show', () => { const { container: container1 } = render(<Slider defaultValue={30} tooltip={{ open: true }} />); expect( container1.querySelector('.ant-tooltip-content')!.className.includes('ant-tooltip-hidden'), ).toBeFalsy(); fireEvent.mouseEnter(container1.querySelector('.ant-slider-handle')!); expect( container1.querySelector('.ant-tooltip-content')!.className.includes('ant-tooltip-hidden'), ).toBeFalsy(); fireEvent.click(container1.querySelector('.ant-slider-handle')!); expect( container1.querySelector('.ant-tooltip-content')!.className.includes('ant-tooltip-hidden'), ).toBeFalsy(); const { container: container2 } = render( <Slider defaultValue={30} tooltip={{ open: false }} />, ); expect(container2.querySelector('.ant-tooltip-content')!).toBeNull(); }); it('when step is null, thumb can only be slid to the specific mark', () => { const intentionallyWrongValue = 40; const marks = { 0: '0', 48: '48', 100: '100', }; const { container } = render( <Slider marks={marks} defaultValue={intentionallyWrongValue} step={null} tooltip={{ open: true }} />, ); expect(container.querySelector('.ant-slider-handle')!.getAttribute('aria-valuenow')).toBe('48'); }); it('when step is not null, thumb can be slid to the multiples of step', () => { const marks = { 0: '0', 48: '48', 100: '100', }; const { container } = render( <Slider marks={marks} defaultValue={49} step={1} tooltip={{ open: true }} />, ); expect(container.querySelector('.ant-slider-handle')!.getAttribute('aria-valuenow')).toBe('49'); }); it('when step is undefined, thumb can be slid to the multiples of step', () => { const marks = { 0: '0', 48: '48', 100: '100', }; const { container } = render( <Slider marks={marks} defaultValue={49} step={undefined} tooltip={{ open: true }} />, ); expect(container.querySelector('.ant-slider-handle')!.getAttribute('aria-valuenow')).toBe('49'); }); it('should render in RTL direction', () => { const { container } = render( <ConfigProvider direction="rtl"> <Slider defaultValue={30} tooltip={{ open: true }} /> </ConfigProvider>, ); expect(container).toMatchSnapshot(); }); it('should keepAlign by calling forceAlign', async () => { const ref = React.createRef<any>(); render(<SliderTooltip title="30" open ref={ref} />); ref.current.forceAlign = jest.fn(); act(() => { jest.runAllTimers(); }); expect(ref.current.forceAlign).toHaveBeenCalled(); }); it('tipFormatter should not crash with undefined value', () => { [undefined, null].forEach((value) => { render(<Slider value={value as any} tooltip={{ open: true }} />); }); }); it('step should not crash with undefined value', () => { [undefined, null].forEach((value) => { render(<Slider step={value} tooltip={{ open: true }} />); }); }); it('deprecated warning', () => { resetWarned(); const TSSlider = Slider as any; const errSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); const { container, rerender } = render(<TSSlider tooltipPrefixCls="xxx" />); expect(errSpy).toHaveBeenCalledWith( 'Warning: [antd: Slider] `tooltipPrefixCls` is deprecated. Please use `tooltip.prefixCls` instead.', ); rerender(<TSSlider getTooltipPopupContainer={() => document.body} />); expect(errSpy).toHaveBeenCalledWith( 'Warning: [antd: Slider] `getTooltipPopupContainer` is deprecated. Please use `tooltip.getPopupContainer` instead.', ); rerender(<TSSlider tipFormatter={(v: any) => v} />); expect(errSpy).toHaveBeenCalledWith( 'Warning: [antd: Slider] `tipFormatter` is deprecated. Please use `tooltip.formatter` instead.', ); rerender(<TSSlider tooltipVisible />); expect(errSpy).toHaveBeenCalledWith( 'Warning: [antd: Slider] `tooltipVisible` is deprecated. Please use `tooltip.open` instead.', ); rerender(<TSSlider tooltipPlacement="left" />); expect(errSpy).toHaveBeenCalledWith( 'Warning: [antd: Slider] `tooltipPlacement` is deprecated. Please use `tooltip.placement` instead.', ); // All should work const holder = document.createElement('div'); holder.id = 'holder'; document.body.appendChild(holder); const getTooltipPopupContainer = jest.fn(() => container); rerender( <TSSlider tooltipPrefixCls="bamboo" getTooltipPopupContainer={getTooltipPopupContainer} tipFormatter={() => 'little'} tooltipPlacement="bottom" tooltipVisible />, ); act(() => { jest.runAllTimers(); }); expect(getTooltipPopupContainer).toHaveBeenCalled(); expect(container.querySelector('.bamboo')).toBeTruthy(); expect(container.querySelector('.bamboo-inner')!.textContent).toEqual('little'); holder.parentNode?.removeChild(holder); errSpy.mockRestore(); }); });
5,942
0
petrpan-code/ant-design/ant-design/components/slider
petrpan-code/ant-design/ant-design/components/slider/__tests__/type.test.tsx
import * as React from 'react'; import Slider from '..'; describe('Slider.typescript', () => { it('single value', () => { const value = 0; const onChange = (v: number) => v; const result = ( <Slider defaultValue={value} value={value} onChange={onChange} onAfterChange={onChange} /> ); expect(result).toBeTruthy(); }); it('range value', () => { const value: [number, number] = [0, 1]; const onChange = (v: [number, number]) => v; const result = ( <Slider range defaultValue={value} value={value} onChange={onChange} onAfterChange={onChange} /> ); expect(result).toBeTruthy(); }); it('step can be null value', () => { const value = 0; const onChange = (v: number) => v; const result = ( <Slider defaultValue={value} value={value} onChange={onChange} onAfterChange={onChange} step={null} /> ); expect(result).toBeTruthy(); }); });
5,943
0
petrpan-code/ant-design/ant-design/components/slider/__tests__
petrpan-code/ant-design/ant-design/components/slider/__tests__/__snapshots__/demo-extend.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/slider/demo/basic.tsx extend context correctly 1`] = ` Array [ <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="left: 30%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 30 </div> </div> </div> </div>, <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="left: 20%; width: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left: 20%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 20 </div> </div> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left: 50%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 50 </div> </div> </div> </div>, Disabled: , <button aria-checked="false" class="ant-switch ant-switch-small" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, ] `; exports[`renders components/slider/demo/basic.tsx extend context correctly 2`] = `[]`; exports[`renders components/slider/demo/component-token.tsx extend context correctly 1`] = ` Array [ <div class="ant-slider ant-slider-disabled ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="true" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="left: 30%; transform: translateX(-50%);" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 30 </div> </div> </div> </div>, <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1 ant-slider-track-draggable" style="left: 20%; width: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left: 20%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 20 </div> </div> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left: 50%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 50 </div> </div> </div> </div>, <div style="display: inline-block; height: 300px; margin-left: 70px;" > <div class="ant-slider ant-slider-vertical" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="bottom: 0%; height: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="bottom: 30%; transform: translateY(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 30 </div> </div> </div> </div> </div>, <div style="display: inline-block; height: 300px; margin-left: 70px;" > <div class="ant-slider ant-slider-vertical" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="bottom: 20%; height: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="bottom: 20%; transform: translateY(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 20 </div> </div> </div> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="bottom: 50%; transform: translateY(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 50 </div> </div> </div> </div> </div>, <div style="display: inline-block; height: 300px; margin-left: 70px;" > <div class="ant-slider ant-slider-vertical ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="bottom: 26%; height: 11%;" /> <div class="ant-slider-step" > <span class="ant-slider-dot" style="bottom: 0%; transform: translateY(50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="bottom: 26%; transform: translateY(50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="bottom: 37%; transform: translateY(50%);" /> <span class="ant-slider-dot" style="bottom: 100%; transform: translateY(50%);" /> </div> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="26" class="ant-slider-handle ant-slider-handle-1" role="slider" style="bottom: 26%; transform: translateY(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 26 </div> </div> </div> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle ant-slider-handle-2" role="slider" style="bottom: 37%; transform: translateY(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 37 </div> </div> </div> <div class="ant-slider-mark" > <span class="ant-slider-mark-text" style="bottom: 0%; transform: translateY(50%);" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="bottom: 26%; transform: translateY(50%);" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="bottom: 37%; transform: translateY(50%);" > 37°C </span> <span class="ant-slider-mark-text" style="bottom: 100%; transform: translateY(50%); color: rgb(255, 85, 0);" > <strong> 100°C </strong> </span> </div> </div> </div>, ] `; exports[`renders components/slider/demo/component-token.tsx extend context correctly 2`] = `[]`; exports[`renders components/slider/demo/draggableTrack.tsx extend context correctly 1`] = ` <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1 ant-slider-track-draggable" style="left: 20%; width: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left: 20%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 20 </div> </div> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left: 50%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 50 </div> </div> </div> </div> `; exports[`renders components/slider/demo/draggableTrack.tsx extend context correctly 2`] = `[]`; exports[`renders components/slider/demo/event.tsx extend context correctly 1`] = ` Array [ <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="left: 30%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 30 </div> </div> </div> </div>, <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="left: 20%; width: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left: 20%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 20 </div> </div> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left: 50%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 50 </div> </div> </div> </div>, ] `; exports[`renders components/slider/demo/event.tsx extend context correctly 2`] = `[]`; exports[`renders components/slider/demo/icon-slider.tsx extend context correctly 1`] = ` <div class="icon-wrapper" > <span aria-label="frown" class="anticon anticon-frown icon-wrapper-active" role="img" > <svg aria-hidden="true" data-icon="frown" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z" /> </svg> </span> <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 0%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="20" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle" role="slider" style="left: 0%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 0 </div> </div> </div> </div> <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> `; exports[`renders components/slider/demo/icon-slider.tsx extend context correctly 2`] = `[]`; exports[`renders components/slider/demo/input-number.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width: 100%;" > <div class="ant-space-item" > <div class="ant-row" > <div class="ant-col ant-col-12" > <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 0%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="20" aria-valuemin="1" aria-valuenow="1" class="ant-slider-handle" role="slider" style="left: 0%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 1 </div> </div> </div> </div> </div> <div class="ant-col ant-col-4" > <div class="ant-input-number" style="margin: 0px 16px;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="true" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down ant-input-number-handler-down-disabled" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemax="20" aria-valuemin="1" aria-valuenow="1" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="1" value="1" /> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-row" > <div class="ant-col ant-col-12" > <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 0%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="1" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle" role="slider" style="left: 0%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 0 </div> </div> </div> </div> </div> <div class="ant-col ant-col-4" > <div class="ant-input-number" style="margin: 0px 16px;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="true" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down ant-input-number-handler-down-disabled" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemax="1" aria-valuemin="0" aria-valuenow="0" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="0.01" value="0.00" /> </div> </div> </div> </div> </div> </div> `; exports[`renders components/slider/demo/input-number.tsx extend context correctly 2`] = `[]`; exports[`renders components/slider/demo/mark.tsx extend context correctly 1`] = ` Array [ <h4> included=true </h4>, <div class="ant-slider ant-slider-horizontal ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 37%;" /> <div class="ant-slider-step" > <span class="ant-slider-dot ant-slider-dot-active" style="left: 0%; transform: translateX(-50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="left: 26%; transform: translateX(-50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="left: 37%; transform: translateX(-50%);" /> <span class="ant-slider-dot" style="left: 100%; transform: translateX(-50%);" /> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle" role="slider" style="left: 37%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 37 </div> </div> </div> <div class="ant-slider-mark" > <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 0%; transform: translateX(-50%);" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 26%; transform: translateX(-50%);" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 37%; transform: translateX(-50%);" > 37°C </span> <span class="ant-slider-mark-text" style="left: 100%; transform: translateX(-50%); color: rgb(255, 85, 0);" > <strong> 100°C </strong> </span> </div> </div>, <div class="ant-slider ant-slider-horizontal ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="left: 26%; width: 11%;" /> <div class="ant-slider-step" > <span class="ant-slider-dot" style="left: 0%; transform: translateX(-50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="left: 26%; transform: translateX(-50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="left: 37%; transform: translateX(-50%);" /> <span class="ant-slider-dot" style="left: 100%; transform: translateX(-50%);" /> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="26" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left: 26%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 26 </div> </div> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left: 37%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 37 </div> </div> </div> <div class="ant-slider-mark" > <span class="ant-slider-mark-text" style="left: 0%; transform: translateX(-50%);" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 26%; transform: translateX(-50%);" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 37%; transform: translateX(-50%);" > 37°C </span> <span class="ant-slider-mark-text" style="left: 100%; transform: translateX(-50%); color: rgb(255, 85, 0);" > <strong> 100°C </strong> </span> </div> </div>, <h4> included=false </h4>, <div class="ant-slider ant-slider-horizontal ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-step" > <span class="ant-slider-dot" style="left: 0%; transform: translateX(-50%);" /> <span class="ant-slider-dot" style="left: 26%; transform: translateX(-50%);" /> <span class="ant-slider-dot" style="left: 37%; transform: translateX(-50%);" /> <span class="ant-slider-dot" style="left: 100%; transform: translateX(-50%);" /> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle" role="slider" style="left: 37%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 37 </div> </div> </div> <div class="ant-slider-mark" > <span class="ant-slider-mark-text" style="left: 0%; transform: translateX(-50%);" > 0°C </span> <span class="ant-slider-mark-text" style="left: 26%; transform: translateX(-50%);" > 26°C </span> <span class="ant-slider-mark-text" style="left: 37%; transform: translateX(-50%);" > 37°C </span> <span class="ant-slider-mark-text" style="left: 100%; transform: translateX(-50%); color: rgb(255, 85, 0);" > <strong> 100°C </strong> </span> </div> </div>, <h4> marks & step </h4>, <div class="ant-slider ant-slider-horizontal ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 37%;" /> <div class="ant-slider-step" > <span class="ant-slider-dot ant-slider-dot-active" style="left: 0%; transform: translateX(-50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="left: 26%; transform: translateX(-50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="left: 37%; transform: translateX(-50%);" /> <span class="ant-slider-dot" style="left: 100%; transform: translateX(-50%);" /> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle" role="slider" style="left: 37%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 37 </div> </div> </div> <div class="ant-slider-mark" > <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 0%; transform: translateX(-50%);" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 26%; transform: translateX(-50%);" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 37%; transform: translateX(-50%);" > 37°C </span> <span class="ant-slider-mark-text" style="left: 100%; transform: translateX(-50%); color: rgb(255, 85, 0);" > <strong> 100°C </strong> </span> </div> </div>, <h4> step=null </h4>, <div class="ant-slider ant-slider-horizontal ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 37%;" /> <div class="ant-slider-step" > <span class="ant-slider-dot ant-slider-dot-active" style="left: 0%; transform: translateX(-50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="left: 26%; transform: translateX(-50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="left: 37%; transform: translateX(-50%);" /> <span class="ant-slider-dot" style="left: 100%; transform: translateX(-50%);" /> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle" role="slider" style="left: 37%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 37 </div> </div> </div> <div class="ant-slider-mark" > <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 0%; transform: translateX(-50%);" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 26%; transform: translateX(-50%);" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 37%; transform: translateX(-50%);" > 37°C </span> <span class="ant-slider-mark-text" style="left: 100%; transform: translateX(-50%); color: rgb(255, 85, 0);" > <strong> 100°C </strong> </span> </div> </div>, ] `; exports[`renders components/slider/demo/mark.tsx extend context correctly 2`] = `[]`; exports[`renders components/slider/demo/multiple.tsx extend context correctly 1`] = ` <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-tracks" style="left: 0%; width: 20%;" /> <div class="ant-slider-track ant-slider-track-1" style="left: 0%; width: 10%; background: transparent;" /> <div class="ant-slider-track ant-slider-track-2" style="left: 10%; width: 10%; background: transparent;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left: 0%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 0 </div> </div> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="10" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left: 10%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 10 </div> </div> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-3" role="slider" style="left: 20%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 20 </div> </div> </div> </div> `; exports[`renders components/slider/demo/multiple.tsx extend context correctly 2`] = `[]`; exports[`renders components/slider/demo/reverse.tsx extend context correctly 1`] = ` Array [ <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="right: 0%; width: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="right: 30%; transform: translateX(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 30 </div> </div> </div> </div>, <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="right: 20%; width: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="right: 20%; transform: translateX(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 20 </div> </div> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="right: 50%; transform: translateX(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 50 </div> </div> </div> </div>, Reversed: , <button aria-checked="true" class="ant-switch ant-switch-small ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, ] `; exports[`renders components/slider/demo/reverse.tsx extend context correctly 2`] = `[]`; exports[`renders components/slider/demo/show-tooltip.tsx extend context correctly 1`] = ` <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle ant-tooltip-open" role="slider" style="left: 30%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 30 </div> </div> </div> </div> `; exports[`renders components/slider/demo/show-tooltip.tsx extend context correctly 2`] = `[]`; exports[`renders components/slider/demo/tip-formatter.tsx extend context correctly 1`] = ` Array [ <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 0%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle" role="slider" style="left: 0%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 0% </div> </div> </div> </div>, <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 0%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle" role="slider" style="left: 0%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> </div>, ] `; exports[`renders components/slider/demo/tip-formatter.tsx extend context correctly 2`] = `[]`; exports[`renders components/slider/demo/vertical.tsx extend context correctly 1`] = ` Array [ <div style="display: inline-block; height: 300px; margin-left: 70px;" > <div class="ant-slider ant-slider-vertical" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="bottom: 0%; height: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="bottom: 30%; transform: translateY(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 30 </div> </div> </div> </div> </div>, <div style="display: inline-block; height: 300px; margin-left: 70px;" > <div class="ant-slider ant-slider-vertical" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="bottom: 20%; height: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="bottom: 20%; transform: translateY(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 20 </div> </div> </div> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="bottom: 50%; transform: translateY(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 50 </div> </div> </div> </div> </div>, <div style="display: inline-block; height: 300px; margin-left: 70px;" > <div class="ant-slider ant-slider-vertical ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="bottom: 26%; height: 11%;" /> <div class="ant-slider-step" > <span class="ant-slider-dot" style="bottom: 0%; transform: translateY(50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="bottom: 26%; transform: translateY(50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="bottom: 37%; transform: translateY(50%);" /> <span class="ant-slider-dot" style="bottom: 100%; transform: translateY(50%);" /> </div> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="26" class="ant-slider-handle ant-slider-handle-1" role="slider" style="bottom: 26%; transform: translateY(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 26 </div> </div> </div> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle ant-slider-handle-2" role="slider" style="bottom: 37%; transform: translateY(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 37 </div> </div> </div> <div class="ant-slider-mark" > <span class="ant-slider-mark-text" style="bottom: 0%; transform: translateY(50%);" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="bottom: 26%; transform: translateY(50%);" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="bottom: 37%; transform: translateY(50%);" > 37°C </span> <span class="ant-slider-mark-text" style="bottom: 100%; transform: translateY(50%); color: rgb(255, 85, 0);" > <strong> 100°C </strong> </span> </div> </div> </div>, ] `; exports[`renders components/slider/demo/vertical.tsx extend context correctly 2`] = `[]`;
5,944
0
petrpan-code/ant-design/ant-design/components/slider/__tests__
petrpan-code/ant-design/ant-design/components/slider/__tests__/__snapshots__/demo.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/slider/demo/basic.tsx correctly 1`] = ` Array [ <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left:0%;width:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="left:30%;transform:translateX(-50%)" tabindex="0" /> </div>, <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="left:20%;width:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left:20%;transform:translateX(-50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left:50%;transform:translateX(-50%)" tabindex="0" /> </div>, Disabled: , <button aria-checked="false" class="ant-switch ant-switch-small" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, ] `; exports[`renders components/slider/demo/component-token.tsx correctly 1`] = ` Array [ <div class="ant-slider ant-slider-disabled ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left:0%;width:30%" /> <div class="ant-slider-step" /> <div aria-disabled="true" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="left:30%;transform:translateX(-50%)" /> </div>, <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1 ant-slider-track-draggable" style="left:20%;width:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left:20%;transform:translateX(-50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left:50%;transform:translateX(-50%)" tabindex="0" /> </div>, <div style="display:inline-block;height:300px;margin-left:70px" > <div class="ant-slider ant-slider-vertical" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="bottom:0%;height:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="bottom:30%;transform:translateY(50%)" tabindex="0" /> </div> </div>, <div style="display:inline-block;height:300px;margin-left:70px" > <div class="ant-slider ant-slider-vertical" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="bottom:20%;height:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="bottom:20%;transform:translateY(50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="bottom:50%;transform:translateY(50%)" tabindex="0" /> </div> </div>, <div style="display:inline-block;height:300px;margin-left:70px" > <div class="ant-slider ant-slider-vertical ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="bottom:26%;height:11%" /> <div class="ant-slider-step" > <span class="ant-slider-dot" style="bottom:0%;transform:translateY(50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="bottom:26%;transform:translateY(50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="bottom:37%;transform:translateY(50%)" /> <span class="ant-slider-dot" style="bottom:100%;transform:translateY(50%)" /> </div> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="26" class="ant-slider-handle ant-slider-handle-1" role="slider" style="bottom:26%;transform:translateY(50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle ant-slider-handle-2" role="slider" style="bottom:37%;transform:translateY(50%)" tabindex="0" /> <div class="ant-slider-mark" > <span class="ant-slider-mark-text" style="bottom:0%;transform:translateY(50%)" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="bottom:26%;transform:translateY(50%)" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="bottom:37%;transform:translateY(50%)" > 37°C </span> <span class="ant-slider-mark-text" style="bottom:100%;transform:translateY(50%);color:#f50" > <strong> 100°C </strong> </span> </div> </div> </div>, ] `; exports[`renders components/slider/demo/draggableTrack.tsx correctly 1`] = ` <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1 ant-slider-track-draggable" style="left:20%;width:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left:20%;transform:translateX(-50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left:50%;transform:translateX(-50%)" tabindex="0" /> </div> `; exports[`renders components/slider/demo/event.tsx correctly 1`] = ` Array [ <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left:0%;width:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="left:30%;transform:translateX(-50%)" tabindex="0" /> </div>, <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="left:20%;width:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left:20%;transform:translateX(-50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left:50%;transform:translateX(-50%)" tabindex="0" /> </div>, ] `; exports[`renders components/slider/demo/icon-slider.tsx correctly 1`] = ` <div class="icon-wrapper" > <span aria-label="frown" class="anticon anticon-frown icon-wrapper-active" role="img" > <svg aria-hidden="true" data-icon="frown" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z" /> </svg> </span> <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left:0%;width:0%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="20" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle" role="slider" style="left:0%;transform:translateX(-50%)" tabindex="0" /> </div> <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> `; exports[`renders components/slider/demo/input-number.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width:100%" > <div class="ant-space-item" > <div class="ant-row" > <div class="ant-col ant-col-12" > <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left:0%;width:0%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="20" aria-valuemin="1" aria-valuenow="1" class="ant-slider-handle" role="slider" style="left:0%;transform:translateX(-50%)" tabindex="0" /> </div> </div> <div class="ant-col ant-col-4" > <div class="ant-input-number" style="margin:0 16px" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="true" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down ant-input-number-handler-down-disabled" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemax="20" aria-valuemin="1" aria-valuenow="1" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="1" value="1" /> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-row" > <div class="ant-col ant-col-12" > <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left:0%;width:0%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="1" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle" role="slider" style="left:0%;transform:translateX(-50%)" tabindex="0" /> </div> </div> <div class="ant-col ant-col-4" > <div class="ant-input-number" style="margin:0 16px" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="true" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down ant-input-number-handler-down-disabled" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemax="1" aria-valuemin="0" aria-valuenow="0" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="0.01" value="0.00" /> </div> </div> </div> </div> </div> </div> `; exports[`renders components/slider/demo/mark.tsx correctly 1`] = ` Array [ <h4> included=true </h4>, <div class="ant-slider ant-slider-horizontal ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left:0%;width:37%" /> <div class="ant-slider-step" > <span class="ant-slider-dot ant-slider-dot-active" style="left:0%;transform:translateX(-50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="left:26%;transform:translateX(-50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="left:37%;transform:translateX(-50%)" /> <span class="ant-slider-dot" style="left:100%;transform:translateX(-50%)" /> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle" role="slider" style="left:37%;transform:translateX(-50%)" tabindex="0" /> <div class="ant-slider-mark" > <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left:0%;transform:translateX(-50%)" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left:26%;transform:translateX(-50%)" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left:37%;transform:translateX(-50%)" > 37°C </span> <span class="ant-slider-mark-text" style="left:100%;transform:translateX(-50%);color:#f50" > <strong> 100°C </strong> </span> </div> </div>, <div class="ant-slider ant-slider-horizontal ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="left:26%;width:11%" /> <div class="ant-slider-step" > <span class="ant-slider-dot" style="left:0%;transform:translateX(-50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="left:26%;transform:translateX(-50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="left:37%;transform:translateX(-50%)" /> <span class="ant-slider-dot" style="left:100%;transform:translateX(-50%)" /> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="26" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left:26%;transform:translateX(-50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left:37%;transform:translateX(-50%)" tabindex="0" /> <div class="ant-slider-mark" > <span class="ant-slider-mark-text" style="left:0%;transform:translateX(-50%)" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left:26%;transform:translateX(-50%)" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left:37%;transform:translateX(-50%)" > 37°C </span> <span class="ant-slider-mark-text" style="left:100%;transform:translateX(-50%);color:#f50" > <strong> 100°C </strong> </span> </div> </div>, <h4> included=false </h4>, <div class="ant-slider ant-slider-horizontal ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-step" > <span class="ant-slider-dot" style="left:0%;transform:translateX(-50%)" /> <span class="ant-slider-dot" style="left:26%;transform:translateX(-50%)" /> <span class="ant-slider-dot" style="left:37%;transform:translateX(-50%)" /> <span class="ant-slider-dot" style="left:100%;transform:translateX(-50%)" /> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle" role="slider" style="left:37%;transform:translateX(-50%)" tabindex="0" /> <div class="ant-slider-mark" > <span class="ant-slider-mark-text" style="left:0%;transform:translateX(-50%)" > 0°C </span> <span class="ant-slider-mark-text" style="left:26%;transform:translateX(-50%)" > 26°C </span> <span class="ant-slider-mark-text" style="left:37%;transform:translateX(-50%)" > 37°C </span> <span class="ant-slider-mark-text" style="left:100%;transform:translateX(-50%);color:#f50" > <strong> 100°C </strong> </span> </div> </div>, <h4> marks & step </h4>, <div class="ant-slider ant-slider-horizontal ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left:0%;width:37%" /> <div class="ant-slider-step" > <span class="ant-slider-dot ant-slider-dot-active" style="left:0%;transform:translateX(-50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="left:26%;transform:translateX(-50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="left:37%;transform:translateX(-50%)" /> <span class="ant-slider-dot" style="left:100%;transform:translateX(-50%)" /> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle" role="slider" style="left:37%;transform:translateX(-50%)" tabindex="0" /> <div class="ant-slider-mark" > <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left:0%;transform:translateX(-50%)" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left:26%;transform:translateX(-50%)" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left:37%;transform:translateX(-50%)" > 37°C </span> <span class="ant-slider-mark-text" style="left:100%;transform:translateX(-50%);color:#f50" > <strong> 100°C </strong> </span> </div> </div>, <h4> step=null </h4>, <div class="ant-slider ant-slider-horizontal ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left:0%;width:37%" /> <div class="ant-slider-step" > <span class="ant-slider-dot ant-slider-dot-active" style="left:0%;transform:translateX(-50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="left:26%;transform:translateX(-50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="left:37%;transform:translateX(-50%)" /> <span class="ant-slider-dot" style="left:100%;transform:translateX(-50%)" /> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle" role="slider" style="left:37%;transform:translateX(-50%)" tabindex="0" /> <div class="ant-slider-mark" > <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left:0%;transform:translateX(-50%)" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left:26%;transform:translateX(-50%)" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left:37%;transform:translateX(-50%)" > 37°C </span> <span class="ant-slider-mark-text" style="left:100%;transform:translateX(-50%);color:#f50" > <strong> 100°C </strong> </span> </div> </div>, ] `; exports[`renders components/slider/demo/multiple.tsx correctly 1`] = ` <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-tracks" style="left:0%;width:20%;background:linear-gradient(to right, rgb(135,208,104) 0%, rgb(159,207,123) 100%)" /> <div class="ant-slider-track ant-slider-track-1" style="left:0%;width:10%;background:transparent" /> <div class="ant-slider-track ant-slider-track-2" style="left:10%;width:10%;background:transparent" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle ant-slider-handle-1" role="slider" style="left:0%;transform:translateX(-50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="10" class="ant-slider-handle ant-slider-handle-2" role="slider" style="left:10%;transform:translateX(-50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-3" role="slider" style="left:20%;transform:translateX(-50%)" tabindex="0" /> </div> `; exports[`renders components/slider/demo/reverse.tsx correctly 1`] = ` Array [ <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="right:0%;width:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="right:30%;transform:translateX(50%)" tabindex="0" /> </div>, <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="right:20%;width:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="right:20%;transform:translateX(50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="right:50%;transform:translateX(50%)" tabindex="0" /> </div>, Reversed: , <button aria-checked="true" class="ant-switch ant-switch-small ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, ] `; exports[`renders components/slider/demo/tip-formatter.tsx correctly 1`] = ` Array [ <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left:0%;width:0%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle" role="slider" style="left:0%;transform:translateX(-50%)" tabindex="0" /> </div>, <div class="ant-slider ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left:0%;width:0%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle" role="slider" style="left:0%;transform:translateX(-50%)" tabindex="0" /> </div>, ] `; exports[`renders components/slider/demo/vertical.tsx correctly 1`] = ` Array [ <div style="display:inline-block;height:300px;margin-left:70px" > <div class="ant-slider ant-slider-vertical" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="bottom:0%;height:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle" role="slider" style="bottom:30%;transform:translateY(50%)" tabindex="0" /> </div> </div>, <div style="display:inline-block;height:300px;margin-left:70px" > <div class="ant-slider ant-slider-vertical" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="bottom:20%;height:30%" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" class="ant-slider-handle ant-slider-handle-1" role="slider" style="bottom:20%;transform:translateY(50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" class="ant-slider-handle ant-slider-handle-2" role="slider" style="bottom:50%;transform:translateY(50%)" tabindex="0" /> </div> </div>, <div style="display:inline-block;height:300px;margin-left:70px" > <div class="ant-slider ant-slider-vertical ant-slider-with-marks" > <div class="ant-slider-rail" /> <div class="ant-slider-track ant-slider-track-1" style="bottom:26%;height:11%" /> <div class="ant-slider-step" > <span class="ant-slider-dot" style="bottom:0%;transform:translateY(50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="bottom:26%;transform:translateY(50%)" /> <span class="ant-slider-dot ant-slider-dot-active" style="bottom:37%;transform:translateY(50%)" /> <span class="ant-slider-dot" style="bottom:100%;transform:translateY(50%)" /> </div> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="26" class="ant-slider-handle ant-slider-handle-1" role="slider" style="bottom:26%;transform:translateY(50%)" tabindex="0" /> <div aria-disabled="false" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="37" class="ant-slider-handle ant-slider-handle-2" role="slider" style="bottom:37%;transform:translateY(50%)" tabindex="0" /> <div class="ant-slider-mark" > <span class="ant-slider-mark-text" style="bottom:0%;transform:translateY(50%)" > 0°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="bottom:26%;transform:translateY(50%)" > 26°C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="bottom:37%;transform:translateY(50%)" > 37°C </span> <span class="ant-slider-mark-text" style="bottom:100%;transform:translateY(50%);color:#f50" > <strong> 100°C </strong> </span> </div> </div> </div>, ] `;
5,945
0
petrpan-code/ant-design/ant-design/components/slider/__tests__
petrpan-code/ant-design/ant-design/components/slider/__tests__/__snapshots__/index.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Slider rtl render component should be rendered correctly in RTL direction 1`] = ` <div class="ant-slider ant-slider-rtl ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="right: 0%; width: 0%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle" role="slider" style="right: 0%; transform: translateX(50%);" tabindex="0" /> </div> `; exports[`Slider should render in RTL direction 1`] = ` <div> <div class="ant-slider ant-slider-rtl ant-slider-horizontal" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="right: 0%; width: 30%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="30" class="ant-slider-handle ant-tooltip-open" role="slider" style="right: 30%; transform: translateX(50%);" tabindex="0" /> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-rtl ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 30 </div> </div> </div> </div> </div> `; exports[`Slider should show tooltip when hovering slider handler 1`] = ` <div class="ant-tooltip ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 30 </div> </div> </div> `; exports[`Slider should show tooltip when hovering slider handler 2`] = ` <div class="ant-tooltip ant-tooltip-hidden ant-slider-tooltip ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: 0px; top: -1000vh; box-sizing: border-box; bottom: 0px; pointer-events: none;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > 30 </div> </div> </div> `;
5,977
0
petrpan-code/ant-design/ant-design/components/space
petrpan-code/ant-design/ant-design/components/space/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('space');
5,978
0
petrpan-code/ant-design/ant-design/components/space
petrpan-code/ant-design/ant-design/components/space/__tests__/demo.test.tsx
import * as React from 'react'; import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest'; demoTest('space', { testRootProps: false, }); rootPropsTest('space', (Space, props) => ( <Space {...props}> <input /> <input /> </Space> )); rootPropsTest( 'space', (Space, props) => ( <Space.Compact {...props}> <input /> <input /> </Space.Compact> ), { name: 'Space.Compact', }, );
5,979
0
petrpan-code/ant-design/ant-design/components/space
petrpan-code/ant-design/ant-design/components/space/__tests__/gap.test.tsx
import React from 'react'; import Space from '..'; import { render } from '../../../tests/utils'; jest.mock('../../_util/styleChecker', () => ({ canUseDocElement: () => true, isStyleSupport: () => true, })); describe('flex gap', () => { it('should render width empty children', () => { const { container } = render( <Space> <span /> <span /> </Space>, ); expect(container.querySelector<HTMLDivElement>('div.ant-space')).toHaveClass( 'ant-space-gap-row-small', ); expect(container.querySelector<HTMLDivElement>('div.ant-space')).toHaveClass( 'ant-space-gap-col-small', ); }); it('should size work', () => { const { container } = render( <Space size={10}> <span>test</span> </Space>, ); const element = container.querySelector<HTMLDivElement>('div.ant-space'); expect(element).toHaveStyle({ rowGap: '10px', columnGap: '10px' }); }); it('should NaN work', () => { expect(() => { render( <Space size={[NaN, NaN]}> <span>test</span> </Space>, ); }).not.toThrow(); }); });
5,980
0
petrpan-code/ant-design/ant-design/components/space
petrpan-code/ant-design/ant-design/components/space/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Space image', () => { imageDemoTest('space'); });
5,981
0
petrpan-code/ant-design/ant-design/components/space
petrpan-code/ant-design/ant-design/components/space/__tests__/index.test.tsx
/* eslint-disable no-console */ import React, { useState } from 'react'; import Space from '..'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { fireEvent, render } from '../../../tests/utils'; import ConfigProvider from '../../config-provider'; describe('Space', () => { mountTest(Space); rtlTest(Space); it('should render width empty children', () => { const { container } = render(<Space />); expect(container.children.length).toBe(0); }); it('should render width ConfigProvider', () => { const { container } = render( <ConfigProvider space={{ size: 'large' }}> <Space> <span>1</span> <span>2</span> </Space> <Space size="middle"> <span>1</span> <span>2</span> </Space> <Space size="large"> <span>1</span> <span>2</span> </Space> </ConfigProvider>, ); expect(container.children).toMatchSnapshot(); }); it('should render width rtl', () => { const { container } = render( <ConfigProvider direction="rtl"> <Space> <span>1</span> <span>2</span> </Space> <Space size="middle"> <span>1</span> <span>2</span> </Space> <Space size="large"> <span>1</span> <span>2</span> </Space> </ConfigProvider>, ); expect(container.children).toMatchSnapshot(); }); it('should render width customize size', () => { const { container } = render( <Space size={10}> <span>1</span> <span>2</span> </Space>, ); const items = container.querySelectorAll<HTMLDivElement>('div.ant-space-item'); expect(items[0]?.style.marginRight).toBe(''); expect(items[1]?.style.marginRight).toBe(''); }); it('should render vertical space width customize size', () => { const { container } = render( <Space size={10} direction="vertical"> <span>1</span> <span>2</span> </Space>, ); const items = container.querySelectorAll<HTMLDivElement>('div.ant-space-item'); expect(items[0]?.style.marginBottom).toBe(''); expect(items[1]?.style.marginBottom).toBe(''); }); it('should render correct with children', () => { const { container } = render( <Space> text1<span>text1</span> {/* eslint-disable-next-line react/jsx-no-useless-fragment */} <>text3</> </Space>, ); expect(container.children[0]).toMatchSnapshot(); }); it('should render with invalidElement', () => { const { container } = render( <Space> text1<span>text1</span> text1 </Space>, ); expect(container.querySelectorAll('div.ant-space-item').length).toBe(3); }); it('should be keep store', () => { function Demo() { const [state, setState] = React.useState(1); return ( <div id="demo" onClick={() => { setState((value) => value + 1); }} > {state} </div> ); } function SpaceDemo() { const [visible, setVisible] = useState(true); function onChange() { setVisible(!visible); } return ( <Space> {visible && <div>space</div>} <Demo /> <p onClick={onChange}>Three</p> </Space> ); } const { container } = render(<SpaceDemo />); expect(container.querySelector('#demo')).toHaveTextContent('1'); fireEvent.click(container.querySelector('#demo')!); expect(container.querySelector('#demo')).toHaveTextContent('2'); fireEvent.click(container.querySelector('p')!); expect(container.querySelector('#demo')).toHaveTextContent('2'); }); it('split', () => { const { container } = render( <Space split="-"> text1<span>text1</span> {/* eslint-disable-next-line react/jsx-no-useless-fragment */} <>text3</> </Space>, ); expect(container.children[0]).toMatchSnapshot(); }); // https://github.com/ant-design/ant-design/issues/35305 it('should not throw duplicated key warning', () => { const spy = jest.spyOn(console, 'error').mockImplementation(() => {}); render( <Space> <div key="1" /> <div /> <div key="3" /> <div /> </Space>, ); expect(spy).not.toHaveBeenCalledWith( expect.stringContaining('Encountered two children with the same key'), expect.anything(), expect.anything(), ); spy.mockRestore(); }); it('should render the hidden empty item wrapper', () => { const Null: React.FC = () => null; const { container } = render( <Space> <Null /> </Space>, ); const element = container.querySelector<HTMLDivElement>('div.ant-space-item')!; expect(element).toBeEmptyDOMElement(); expect(getComputedStyle(element).display).toBe('none'); }); it('should ref work', () => { const ref = React.createRef<HTMLDivElement>(); const { container } = render( <Space ref={ref}> <span>Text1</span> <span>Text2</span> </Space>, ); expect(ref.current).toBe(container.firstChild); }); it('should classNames work', () => { const { container } = render( <Space classNames={{ item: 'test-classNames' }}> <span>Text1</span> <span>Text2</span> </Space>, ); expect(container.querySelector<HTMLDivElement>('.ant-space-item.test-classNames')).toBeTruthy(); }); it('should styles work', () => { const { container } = render( <Space styles={{ item: { color: 'red' } }}> <span>Text1</span> <span>Text2</span> </Space>, ); expect( container.querySelector<HTMLDivElement>('.ant-space-item')?.getAttribute('style'), ).toEqual('color: red;'); }); });
5,982
0
petrpan-code/ant-design/ant-design/components/space
petrpan-code/ant-design/ant-design/components/space/__tests__/space-compact.test.tsx
/* eslint-disable no-console */ import React from 'react'; import Space from '..'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { render } from '../../../tests/utils'; import AutoComplete from '../../auto-complete'; import Button from '../../button'; import Cascader from '../../cascader'; import ConfigProvider from '../../config-provider'; import DatePicker from '../../date-picker'; import Drawer from '../../drawer'; import Dropdown from '../../dropdown'; import Input from '../../input'; import InputNumber from '../../input-number'; import Modal from '../../modal'; import Select from '../../select'; import TimePicker from '../../time-picker'; import Tooltip from '../../tooltip'; import TreeSelect from '../../tree-select'; describe('Space.Compact', () => { mountTest(Space.Compact); mountTest(() => ( <Space.Compact> <Button type="primary">Submit</Button> </Space.Compact> )); rtlTest(Space.Compact); rtlTest(() => ( <Space.Compact> <Button type="primary">Submit</Button> </Space.Compact> )); it('should render width empty children', () => { const { container } = render(<Space.Compact />); expect(container.children.length).toBe(0); }); it('block className', () => { const { container } = render( <Space.Compact block> <Input defaultValue="https://ant.design" /> <Button type="primary">Submit</Button> </Space.Compact>, ); expect( container.querySelector('.ant-space-compact')?.classList.contains('ant-space-compact-block'), ).toBe(true); }); it('compact-item className', () => { const { container } = render( <Space.Compact> <Input defaultValue="https://ant.design" /> <Input.Search /> <Button type="primary">Submit</Button> </Space.Compact>, ); expect( container.querySelector('.ant-input')?.classList.contains('ant-input-compact-item'), ).toBe(true); expect( container.querySelector('.ant-input-search')?.classList.contains('ant-input-compact-item'), ).toBe(true); expect( container.querySelector('.ant-input')?.classList.contains('ant-input-compact-first-item'), ).toBe(true); expect( container .querySelector('.ant-btn-compact-item') ?.classList.contains('ant-btn-compact-last-item'), ).toBe(true); }); [ { name: 'Button', component: Button, targetCls: 'ant-btn', expectClsPrefix: 'ant-btn', }, { name: 'AutoComplete', component: AutoComplete, targetCls: 'ant-select', expectClsPrefix: 'ant-select', }, { name: 'Cascader', component: Cascader, targetCls: 'ant-cascader', expectClsPrefix: 'ant-select', }, { name: 'DatePicker', component: DatePicker, targetCls: 'ant-picker', expectClsPrefix: 'ant-picker', }, { name: 'Input', component: Input, targetCls: 'ant-input', expectClsPrefix: 'ant-input', }, { name: 'Input.Search', component: Input.Search, targetCls: 'ant-input-search', expectClsPrefix: 'ant-input', }, { name: 'Select', component: Select, targetCls: 'ant-select', expectClsPrefix: 'ant-select', }, { name: 'TimePicker', component: TimePicker, targetCls: 'ant-picker', expectClsPrefix: 'ant-picker', }, { name: 'TreeSelect', component: TreeSelect, targetCls: 'ant-select', expectClsPrefix: 'ant-select', }, ].forEach(({ component, name, targetCls, expectClsPrefix }) => { it(`compact-item for ${name}`, () => { const { container } = render( <Space.Compact>{React.createElement(component as any)}</Space.Compact>, ); expect(container.querySelectorAll(`.${targetCls}`).length).toBe(1); ['compact-item', 'compact-first-item', 'compact-last-item'].forEach((suffix) => { expect( container .querySelector(`.${targetCls}`) ?.classList.contains([expectClsPrefix, suffix].join('-')), ).toBe(true); }); }); }); it('size', () => { const { container } = render( <Space.Compact size="small"> <Input defaultValue="https://ant.design" /> <Button type="primary">Submit</Button> </Space.Compact>, ); expect(container.querySelector('.ant-input')?.classList.contains('ant-input-sm')).toBe(true); expect(container.querySelector('.ant-btn')?.classList.contains('ant-btn-sm')).toBe(true); }); it('component size has a higher priority than Compact', () => { const { container } = render( <Space.Compact size="middle"> <Input size="small" /> <Select size="small" /> <Button size="small">Submit</Button> <InputNumber size="small" /> <DatePicker size="small" /> <DatePicker.RangePicker size="small" /> <Cascader size="small" /> <TreeSelect size="small" /> <Input.Search size="small" /> </Space.Compact>, ); expect(container.querySelector('.ant-input')?.classList.contains('ant-input-sm')).toBe(true); expect(container.querySelector('.ant-select')?.classList.contains('ant-select-sm')).toBe(true); expect(container.querySelector('.ant-btn')?.classList.contains('ant-btn-sm')).toBe(true); expect( container.querySelector('.ant-input-number')?.classList.contains('ant-input-number-sm'), ).toBe(true); expect(container.querySelector('.ant-picker')?.classList.contains('ant-picker-small')).toBe( true, ); expect( container.querySelector('.ant-picker-range')?.classList.contains('ant-picker-small'), ).toBe(true); expect(container.querySelector('.ant-cascader')?.classList.contains('ant-select-sm')).toBe( true, ); expect(container.querySelector('.ant-tree-select')?.classList.contains('ant-select-sm')).toBe( true, ); expect( container.querySelector('.ant-input-search')?.classList.contains('ant-input-search-small'), ).toBe(true); }); it('direction=vertical', () => { const { container } = render( <Space.Compact size="small" direction="vertical"> <Button type="primary">Button 1</Button> <Button type="primary">Button 2</Button> <Button type="primary">Button 3</Button> <Button type="primary">Button 4</Button> </Space.Compact>, ); expect( container .querySelector('.ant-space-compact') ?.classList.contains('ant-space-compact-vertical'), ).toBe(true); expect( container.querySelector('.ant-btn')?.classList.contains('ant-btn-compact-vertical-item'), ).toBe(true); expect( container .querySelectorAll('.ant-btn')[0] ?.classList.contains('ant-btn-compact-vertical-first-item'), ).toBe(true); expect( container .querySelectorAll('.ant-btn')[3] ?.classList.contains('ant-btn-compact-vertical-last-item'), ).toBe(true); }); it('context for Modal', () => { render( <Space.Compact size="small"> <Modal title="Basic Modal" open> <Button>normal button A</Button> <Input /> </Modal> </Space.Compact>, ); expect( document.body .querySelectorAll('.ant-modal')[0] .querySelector('.ant-btn') ?.classList.contains('ant-btn-compact-item'), ).toBe(false); expect( document.body .querySelectorAll('.ant-modal')[0] .querySelector('.ant-input') ?.classList.contains('ant-input-compact-item'), ).toBe(false); }); it('context for Dropdown', () => { render( <Space.Compact size="small"> <Dropdown.Button open menu={{ items: [ { key: '1', label: <Button>menu button</Button>, }, ], }} > debug Dropdown.Button context </Dropdown.Button> </Space.Compact>, ); expect( document.body .querySelector('.ant-dropdown') ?.querySelector('.ant-btn') ?.classList.contains('ant-btn-compact-item'), ).toBe(false); }); it('context for Drawer', () => { render( <Space.Compact size="small"> <Drawer title="Basic Drawer" open> <Button>normal button A</Button> </Drawer> </Space.Compact>, ); expect( document.body .querySelector('.ant-drawer') ?.querySelector('.ant-btn') ?.classList.contains('ant-btn-compact-item'), ).toBe(false); }); it('context for Tooltip', () => { render( <Space.Compact> <Input placeholder="Debug Popover context" /> <Tooltip open overlay={ <> <Input placeholder="Left Border" /> <DatePicker /> </> } trigger={['click']} placement="bottom" > <Button>Settings</Button> </Tooltip> </Space.Compact>, ); expect( document.body .querySelector('.ant-tooltip') ?.querySelector('.ant-input') ?.classList.contains('ant-input-compact-item'), ).toBe(false); expect( document.body .querySelector('.ant-tooltip') ?.querySelector('.ant-picker') ?.classList.contains('ant-picker-compact-item'), ).toBe(false); }); it('Tooltip content supports function', () => { render( <Space.Compact> <Input placeholder="Debug Popover context" /> <Tooltip open overlay={() => ( <> <Input placeholder="Left Border" /> <DatePicker /> </> )} > <span>Tooltip will show on mouse enter.</span> </Tooltip> </Space.Compact>, ); expect( document.body .querySelector('.ant-tooltip') ?.querySelector('.ant-input') ?.classList.contains('ant-input-compact-item'), ).toBe(false); expect( document.body .querySelector('.ant-tooltip') ?.querySelector('.ant-picker') ?.classList.contains('ant-picker-compact-item'), ).toBe(false); }); // https://github.com/ant-design/ant-design/issues/41876 it('Space.Compact should inherit the size from ConfigProvider if the componentSize is set', () => { const { container } = render( <ConfigProvider componentSize="large"> <Space.Compact> <Select placeholder="Select" /> </Space.Compact> </ConfigProvider>, ); expect(container.querySelectorAll('.ant-select-lg')).toHaveLength(1); }); it('The size property of Space.Compact should have an higher priority over the componentSize property of ConfigProvider', () => { const { container } = render( <ConfigProvider componentSize="large"> <Space.Compact size="small"> <Select placeholder="Select" /> </Space.Compact> </ConfigProvider>, ); expect(container.querySelectorAll('.ant-select-sm')).toHaveLength(1); }); });
5,983
0
petrpan-code/ant-design/ant-design/components/space/__tests__
petrpan-code/ant-design/ant-design/components/space/__tests__/__snapshots__/demo-extend.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/space/demo/align.tsx extend context correctly 1`] = ` <div class="space-align-container" > <div class="space-align-block" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > center </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Primary </span> </button> </div> <div class="ant-space-item" > <span class="mock-block" > Block </span> </div> </div> </div> <div class="space-align-block" > <div class="ant-space ant-space-horizontal ant-space-align-start ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > start </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Primary </span> </button> </div> <div class="ant-space-item" > <span class="mock-block" > Block </span> </div> </div> </div> <div class="space-align-block" > <div class="ant-space ant-space-horizontal ant-space-align-end ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > end </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Primary </span> </button> </div> <div class="ant-space-item" > <span class="mock-block" > Block </span> </div> </div> </div> <div class="space-align-block" > <div class="ant-space ant-space-horizontal ant-space-align-baseline ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > baseline </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Primary </span> </button> </div> <div class="ant-space-item" > <span class="mock-block" > Block </span> </div> </div> </div> </div> `; exports[`renders components/space/demo/align.tsx extend context correctly 2`] = `[]`; exports[`renders components/space/demo/base.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > Space </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-select" > <span class="ant-upload" role="button" tabindex="0" > <input accept="" style="display: none;" type="file" /> <button class="ant-btn ant-btn-default" type="button" > <span class="ant-btn-icon" > <span aria-label="upload" class="anticon anticon-upload" role="img" > <svg aria-hidden="true" data-icon="upload" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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> </span> </span> <span> Click to Upload </span> </button> </span> </div> <div class="ant-upload-list ant-upload-list-text" /> </span> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Confirm </span> </button> <div class="ant-popover ant-zoom-big-appear ant-zoom-big-appear-prepare ant-zoom-big ant-popconfirm ant-popover-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-popover-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-popover-content" > <div class="ant-popover-inner" role="tooltip" > <div class="ant-popover-inner-content" > <div class="ant-popconfirm-inner-content" > <div class="ant-popconfirm-message" > <span class="ant-popconfirm-message-icon" > <span aria-label="exclamation-circle" class="anticon anticon-exclamation-circle" 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> </span> <div class="ant-popconfirm-message-text" > <div class="ant-popconfirm-title" > Are you sure delete this task? </div> </div> </div> <div class="ant-popconfirm-buttons" > <button class="ant-btn ant-btn-default ant-btn-sm" type="button" > <span> No </span> </button> <button class="ant-btn ant-btn-primary ant-btn-sm" type="button" > <span> Yes </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> `; exports[`renders components/space/demo/base.tsx extend context correctly 2`] = `[]`; exports[`renders components/space/demo/compact.tsx extend context correctly 1`] = ` <div class="site-space-compact-wrapper" > <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" style="width: 20%;" type="text" value="0571" /> <input class="ant-input ant-input-compact-item ant-input-compact-last-item" style="width: 30%;" type="text" value="26888888" /> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-sm ant-input-compact-item ant-input-compact-first-item" style="width: calc(100% - 200px);" type="text" value="https://ant.design" /> <button class="ant-btn ant-btn-primary ant-btn-sm ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" style="width: calc(100% - 200px);" type="text" value="https://ant.design" /> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" style="width: calc(100% - 200px);" type="text" value="[email protected]:ant-design/ant-design.git" /> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > copy git url </div> </div> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-single ant-select-allow-clear ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Zhejiang" > Zhejiang </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Zhejiang" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > Zhejiang </div> <div aria-label="Jiangsu" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > Jiangsu </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Zhejiang" > <div class="ant-select-item-option-content" > Zhejiang </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Jiangsu" > <div class="ant-select-item-option-content" > Jiangsu </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> <input class="ant-input ant-input-compact-item ant-input-compact-last-item" style="width: 50%;" type="text" value="Xihu District, Hangzhou" /> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width: 50%;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="Zhejianggggg" > <span class="ant-select-selection-item-content" > Zhejianggggg </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Zhejianggggg" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > Zhejianggggg </div> <div aria-label="Jiangsu" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > Jiangsu </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Zhejianggggg" > <div class="ant-select-item-option-content" > Zhejianggggg </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Jiangsu" > <div class="ant-select-item-option-content" > Jiangsu </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> <input class="ant-input ant-input-compact-item ant-input-compact-last-item" style="width: 50%;" type="text" value="Xihu District, Hangzhou" /> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item ant-input-compact-first-item" style="width: 30%;" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" type="text" value="0571" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item" style="width: 50%;" > <span class="ant-input-wrapper ant-input-group" > <span class="ant-input-affix-wrapper" > <input class="ant-input" type="text" value="26888888" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item ant-input-compact-last-item" style="width: 20%;" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" type="text" value="+1" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Option1" > Option1 </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Option1" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > Option1 </div> <div aria-label="Option2" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > Option2 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Option1" > <div class="ant-select-item-option-content" > Option1 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Option2" > <div class="ant-select-item-option-content" > Option2 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <input class="ant-input ant-input-compact-item" style="width: 50%;" type="text" value="input content" /> <div class="ant-input-number ant-input-number-compact-item ant-input-number-compact-last-item" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="12" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="1" value="12" /> </div> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" style="width: 50%;" type="text" value="input content" /> <div class="ant-picker ant-picker-compact-item ant-picker-compact-last-item" style="width: 50%;" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="Select date" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> <div class="ant-picker-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-picker-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-picker-panel-container" > <div class="ant-picker-panel-layout" > <div class="ant-picker-panel ant-picker-panel-focused" tabindex="-1" > <div class="ant-picker-date-panel" > <div class="ant-picker-header" > <button class="ant-picker-header-super-prev-btn" tabindex="-1" type="button" > <span class="ant-picker-super-prev-icon" /> </button> <button class="ant-picker-header-prev-btn" tabindex="-1" type="button" > <span class="ant-picker-prev-icon" /> </button> <div class="ant-picker-header-view" > <button class="ant-picker-month-btn" tabindex="-1" type="button" > Nov </button> <button class="ant-picker-year-btn" tabindex="-1" type="button" > 2016 </button> </div> <button class="ant-picker-header-next-btn" tabindex="-1" type="button" > <span class="ant-picker-next-icon" /> </button> <button class="ant-picker-header-super-next-btn" tabindex="-1" type="button" > <span class="ant-picker-super-next-icon" /> </button> </div> <div class="ant-picker-body" > <table class="ant-picker-content" > <thead> <tr> <th> Su </th> <th> Mo </th> <th> Tu </th> <th> We </th> <th> Th </th> <th> Fr </th> <th> Sa </th> </tr> </thead> <tbody> <tr> <td class="ant-picker-cell" title="2016-10-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-end" title="2016-10-31" > <div class="ant-picker-cell-inner" > 31 </div> </td> <td class="ant-picker-cell ant-picker-cell-start ant-picker-cell-in-view" title="2016-11-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-11" > <div class="ant-picker-cell-inner" > 11 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-12" > <div class="ant-picker-cell-inner" > 12 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-13" > <div class="ant-picker-cell-inner" > 13 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-14" > <div class="ant-picker-cell-inner" > 14 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-15" > <div class="ant-picker-cell-inner" > 15 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-16" > <div class="ant-picker-cell-inner" > 16 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-17" > <div class="ant-picker-cell-inner" > 17 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-18" > <div class="ant-picker-cell-inner" > 18 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-19" > <div class="ant-picker-cell-inner" > 19 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-20" > <div class="ant-picker-cell-inner" > 20 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-21" > <div class="ant-picker-cell-inner" > 21 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view ant-picker-cell-today" title="2016-11-22" > <div class="ant-picker-cell-inner" > 22 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-23" > <div class="ant-picker-cell-inner" > 23 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-24" > <div class="ant-picker-cell-inner" > 24 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-25" > <div class="ant-picker-cell-inner" > 25 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-26" > <div class="ant-picker-cell-inner" > 26 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-27" > <div class="ant-picker-cell-inner" > 27 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-28" > <div class="ant-picker-cell-inner" > 28 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-29" > <div class="ant-picker-cell-inner" > 29 </div> </td> <td class="ant-picker-cell ant-picker-cell-end ant-picker-cell-in-view" title="2016-11-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-start" title="2016-12-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell" title="2016-12-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell" title="2016-12-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> </tr> <tr> <td class="ant-picker-cell" title="2016-12-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell" title="2016-12-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> <td class="ant-picker-cell" title="2016-12-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell" title="2016-12-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell" title="2016-12-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell" title="2016-12-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell" title="2016-12-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> </tr> </tbody> </table> </div> </div> <div class="ant-picker-footer" > <a class="ant-picker-today-btn" > Today </a> </div> </div> </div> </div> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-picker ant-picker-range ant-picker-compact-item ant-picker-compact-first-item" style="width: 70%;" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="Start date" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="End date" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> <div class="ant-picker-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-picker-dropdown-range ant-picker-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-picker-range-wrapper ant-picker-date-range-wrapper" style="min-width: 0;" > <div class="ant-picker-range-arrow" style="left: 0px;" /> <div class="ant-picker-panel-container" style="margin-left: 0px;" > <div class="ant-picker-panel-layout" > <div> <div class="ant-picker-panels" > <div class="ant-picker-panel ant-picker-panel-focused" tabindex="-1" > <div class="ant-picker-date-panel" > <div class="ant-picker-header" > <button class="ant-picker-header-super-prev-btn" tabindex="-1" type="button" > <span class="ant-picker-super-prev-icon" /> </button> <button class="ant-picker-header-prev-btn" tabindex="-1" type="button" > <span class="ant-picker-prev-icon" /> </button> <div class="ant-picker-header-view" > <button class="ant-picker-month-btn" tabindex="-1" type="button" > Nov </button> <button class="ant-picker-year-btn" tabindex="-1" type="button" > 2016 </button> </div> <button class="ant-picker-header-next-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-next-icon" /> </button> <button class="ant-picker-header-super-next-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-super-next-icon" /> </button> </div> <div class="ant-picker-body" > <table class="ant-picker-content" > <thead> <tr> <th> Su </th> <th> Mo </th> <th> Tu </th> <th> We </th> <th> Th </th> <th> Fr </th> <th> Sa </th> </tr> </thead> <tbody> <tr> <td class="ant-picker-cell" title="2016-10-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-end" title="2016-10-31" > <div class="ant-picker-cell-inner" > 31 </div> </td> <td class="ant-picker-cell ant-picker-cell-start ant-picker-cell-in-view" title="2016-11-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-11" > <div class="ant-picker-cell-inner" > 11 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-12" > <div class="ant-picker-cell-inner" > 12 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-13" > <div class="ant-picker-cell-inner" > 13 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-14" > <div class="ant-picker-cell-inner" > 14 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-15" > <div class="ant-picker-cell-inner" > 15 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-16" > <div class="ant-picker-cell-inner" > 16 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-17" > <div class="ant-picker-cell-inner" > 17 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-18" > <div class="ant-picker-cell-inner" > 18 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-19" > <div class="ant-picker-cell-inner" > 19 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-20" > <div class="ant-picker-cell-inner" > 20 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-21" > <div class="ant-picker-cell-inner" > 21 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view ant-picker-cell-today" title="2016-11-22" > <div class="ant-picker-cell-inner" > 22 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-23" > <div class="ant-picker-cell-inner" > 23 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-24" > <div class="ant-picker-cell-inner" > 24 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-25" > <div class="ant-picker-cell-inner" > 25 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-26" > <div class="ant-picker-cell-inner" > 26 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-27" > <div class="ant-picker-cell-inner" > 27 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-28" > <div class="ant-picker-cell-inner" > 28 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-29" > <div class="ant-picker-cell-inner" > 29 </div> </td> <td class="ant-picker-cell ant-picker-cell-end ant-picker-cell-in-view" title="2016-11-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-start" title="2016-12-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell" title="2016-12-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell" title="2016-12-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> </tr> <tr> <td class="ant-picker-cell" title="2016-12-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell" title="2016-12-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> <td class="ant-picker-cell" title="2016-12-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell" title="2016-12-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell" title="2016-12-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell" title="2016-12-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell" title="2016-12-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> </tr> </tbody> </table> </div> </div> </div> <div class="ant-picker-panel ant-picker-panel-focused" tabindex="-1" > <div class="ant-picker-date-panel" > <div class="ant-picker-header" > <button class="ant-picker-header-super-prev-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-super-prev-icon" /> </button> <button class="ant-picker-header-prev-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-prev-icon" /> </button> <div class="ant-picker-header-view" > <button class="ant-picker-month-btn" tabindex="-1" type="button" > Dec </button> <button class="ant-picker-year-btn" tabindex="-1" type="button" > 2016 </button> </div> <button class="ant-picker-header-next-btn" tabindex="-1" type="button" > <span class="ant-picker-next-icon" /> </button> <button class="ant-picker-header-super-next-btn" tabindex="-1" type="button" > <span class="ant-picker-super-next-icon" /> </button> </div> <div class="ant-picker-body" > <table class="ant-picker-content" > <thead> <tr> <th> Su </th> <th> Mo </th> <th> Tu </th> <th> We </th> <th> Th </th> <th> Fr </th> <th> Sa </th> </tr> </thead> <tbody> <tr> <td class="ant-picker-cell" title="2016-11-27" > <div class="ant-picker-cell-inner" > 27 </div> </td> <td class="ant-picker-cell" title="2016-11-28" > <div class="ant-picker-cell-inner" > 28 </div> </td> <td class="ant-picker-cell" title="2016-11-29" > <div class="ant-picker-cell-inner" > 29 </div> </td> <td class="ant-picker-cell ant-picker-cell-end" title="2016-11-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-start ant-picker-cell-in-view" title="2016-12-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-11" > <div class="ant-picker-cell-inner" > 11 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-12" > <div class="ant-picker-cell-inner" > 12 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-13" > <div class="ant-picker-cell-inner" > 13 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-14" > <div class="ant-picker-cell-inner" > 14 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-15" > <div class="ant-picker-cell-inner" > 15 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-16" > <div class="ant-picker-cell-inner" > 16 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-17" > <div class="ant-picker-cell-inner" > 17 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-18" > <div class="ant-picker-cell-inner" > 18 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-19" > <div class="ant-picker-cell-inner" > 19 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-20" > <div class="ant-picker-cell-inner" > 20 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-21" > <div class="ant-picker-cell-inner" > 21 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-22" > <div class="ant-picker-cell-inner" > 22 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-23" > <div class="ant-picker-cell-inner" > 23 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-24" > <div class="ant-picker-cell-inner" > 24 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-25" > <div class="ant-picker-cell-inner" > 25 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-26" > <div class="ant-picker-cell-inner" > 26 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-27" > <div class="ant-picker-cell-inner" > 27 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-28" > <div class="ant-picker-cell-inner" > 28 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-29" > <div class="ant-picker-cell-inner" > 29 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-end ant-picker-cell-in-view" title="2016-12-31" > <div class="ant-picker-cell-inner" > 31 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-start" title="2017-01-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell" title="2017-01-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell" title="2017-01-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> <td class="ant-picker-cell" title="2017-01-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell" title="2017-01-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> <td class="ant-picker-cell" title="2017-01-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell" title="2017-01-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> <input class="ant-input ant-input-compact-item" style="width: 30%;" type="text" value="input content" /> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> 查 询 </span> </button> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" style="width: 30%;" type="text" value="input content" /> <div class="ant-picker ant-picker-range ant-picker-compact-item ant-picker-compact-last-item" style="width: 70%;" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="Start date" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="End date" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> <div class="ant-picker-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-picker-dropdown-range ant-picker-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-picker-range-wrapper ant-picker-date-range-wrapper" style="min-width: 0;" > <div class="ant-picker-range-arrow" style="left: 0px;" /> <div class="ant-picker-panel-container" style="margin-left: 0px;" > <div class="ant-picker-panel-layout" > <div> <div class="ant-picker-panels" > <div class="ant-picker-panel ant-picker-panel-focused" tabindex="-1" > <div class="ant-picker-date-panel" > <div class="ant-picker-header" > <button class="ant-picker-header-super-prev-btn" tabindex="-1" type="button" > <span class="ant-picker-super-prev-icon" /> </button> <button class="ant-picker-header-prev-btn" tabindex="-1" type="button" > <span class="ant-picker-prev-icon" /> </button> <div class="ant-picker-header-view" > <button class="ant-picker-month-btn" tabindex="-1" type="button" > Nov </button> <button class="ant-picker-year-btn" tabindex="-1" type="button" > 2016 </button> </div> <button class="ant-picker-header-next-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-next-icon" /> </button> <button class="ant-picker-header-super-next-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-super-next-icon" /> </button> </div> <div class="ant-picker-body" > <table class="ant-picker-content" > <thead> <tr> <th> Su </th> <th> Mo </th> <th> Tu </th> <th> We </th> <th> Th </th> <th> Fr </th> <th> Sa </th> </tr> </thead> <tbody> <tr> <td class="ant-picker-cell" title="2016-10-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-end" title="2016-10-31" > <div class="ant-picker-cell-inner" > 31 </div> </td> <td class="ant-picker-cell ant-picker-cell-start ant-picker-cell-in-view" title="2016-11-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-11" > <div class="ant-picker-cell-inner" > 11 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-12" > <div class="ant-picker-cell-inner" > 12 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-13" > <div class="ant-picker-cell-inner" > 13 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-14" > <div class="ant-picker-cell-inner" > 14 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-15" > <div class="ant-picker-cell-inner" > 15 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-16" > <div class="ant-picker-cell-inner" > 16 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-17" > <div class="ant-picker-cell-inner" > 17 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-18" > <div class="ant-picker-cell-inner" > 18 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-19" > <div class="ant-picker-cell-inner" > 19 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-20" > <div class="ant-picker-cell-inner" > 20 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-21" > <div class="ant-picker-cell-inner" > 21 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view ant-picker-cell-today" title="2016-11-22" > <div class="ant-picker-cell-inner" > 22 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-23" > <div class="ant-picker-cell-inner" > 23 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-24" > <div class="ant-picker-cell-inner" > 24 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-25" > <div class="ant-picker-cell-inner" > 25 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-26" > <div class="ant-picker-cell-inner" > 26 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-27" > <div class="ant-picker-cell-inner" > 27 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-28" > <div class="ant-picker-cell-inner" > 28 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-29" > <div class="ant-picker-cell-inner" > 29 </div> </td> <td class="ant-picker-cell ant-picker-cell-end ant-picker-cell-in-view" title="2016-11-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-start" title="2016-12-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell" title="2016-12-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell" title="2016-12-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> </tr> <tr> <td class="ant-picker-cell" title="2016-12-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell" title="2016-12-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> <td class="ant-picker-cell" title="2016-12-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell" title="2016-12-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell" title="2016-12-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell" title="2016-12-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell" title="2016-12-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> </tr> </tbody> </table> </div> </div> </div> <div class="ant-picker-panel ant-picker-panel-focused" tabindex="-1" > <div class="ant-picker-date-panel" > <div class="ant-picker-header" > <button class="ant-picker-header-super-prev-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-super-prev-icon" /> </button> <button class="ant-picker-header-prev-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-prev-icon" /> </button> <div class="ant-picker-header-view" > <button class="ant-picker-month-btn" tabindex="-1" type="button" > Dec </button> <button class="ant-picker-year-btn" tabindex="-1" type="button" > 2016 </button> </div> <button class="ant-picker-header-next-btn" tabindex="-1" type="button" > <span class="ant-picker-next-icon" /> </button> <button class="ant-picker-header-super-next-btn" tabindex="-1" type="button" > <span class="ant-picker-super-next-icon" /> </button> </div> <div class="ant-picker-body" > <table class="ant-picker-content" > <thead> <tr> <th> Su </th> <th> Mo </th> <th> Tu </th> <th> We </th> <th> Th </th> <th> Fr </th> <th> Sa </th> </tr> </thead> <tbody> <tr> <td class="ant-picker-cell" title="2016-11-27" > <div class="ant-picker-cell-inner" > 27 </div> </td> <td class="ant-picker-cell" title="2016-11-28" > <div class="ant-picker-cell-inner" > 28 </div> </td> <td class="ant-picker-cell" title="2016-11-29" > <div class="ant-picker-cell-inner" > 29 </div> </td> <td class="ant-picker-cell ant-picker-cell-end" title="2016-11-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-start ant-picker-cell-in-view" title="2016-12-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-11" > <div class="ant-picker-cell-inner" > 11 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-12" > <div class="ant-picker-cell-inner" > 12 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-13" > <div class="ant-picker-cell-inner" > 13 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-14" > <div class="ant-picker-cell-inner" > 14 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-15" > <div class="ant-picker-cell-inner" > 15 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-16" > <div class="ant-picker-cell-inner" > 16 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-17" > <div class="ant-picker-cell-inner" > 17 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-18" > <div class="ant-picker-cell-inner" > 18 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-19" > <div class="ant-picker-cell-inner" > 19 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-20" > <div class="ant-picker-cell-inner" > 20 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-21" > <div class="ant-picker-cell-inner" > 21 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-22" > <div class="ant-picker-cell-inner" > 22 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-23" > <div class="ant-picker-cell-inner" > 23 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-24" > <div class="ant-picker-cell-inner" > 24 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-25" > <div class="ant-picker-cell-inner" > 25 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-26" > <div class="ant-picker-cell-inner" > 26 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-27" > <div class="ant-picker-cell-inner" > 27 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-28" > <div class="ant-picker-cell-inner" > 28 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-29" > <div class="ant-picker-cell-inner" > 29 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-end ant-picker-cell-in-view" title="2016-12-31" > <div class="ant-picker-cell-inner" > 31 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-start" title="2017-01-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell" title="2017-01-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell" title="2017-01-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> <td class="ant-picker-cell" title="2017-01-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell" title="2017-01-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> <td class="ant-picker-cell" title="2017-01-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell" title="2017-01-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Option1-1" > Option1-1 </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Option1-1" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > Option1-1 </div> <div aria-label="Option1-2" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > Option1-2 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Option1-1" > <div class="ant-select-item-option-content" > Option1-1 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Option1-2" > <div class="ant-select-item-option-content" > Option1-2 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-select ant-select-compact-item ant-select-compact-last-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Option2-2" > Option2-2 </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Option2-1" aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > Option2-1 </div> <div aria-label="Option2-2" aria-selected="true" id="rc_select_TEST_OR_SSR_list_1" role="option" > Option2-2 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option ant-select-item-option-active" title="Option2-1" > <div class="ant-select-item-option-content" > Option2-1 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-selected" title="Option2-2" > <div class="ant-select-item-option-content" > Option2-2 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Between" > Between </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Between" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > 1 </div> <div aria-label="Except" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > 2 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Between" > <div class="ant-select-item-option-content" > Between </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Except" > <div class="ant-select-item-option-content" > Except </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <input class="ant-input ant-input-compact-item" placeholder="Minimum" style="width: 100px; text-align: center;" type="text" value="" /> <input class="ant-input ant-input-disabled site-input-split ant-input-compact-item" disabled="" placeholder="~" style="width: 30px; border-left: 0; border-right: 0; pointer-events: none;" type="text" value="" /> <input class="ant-input site-input-right ant-input-compact-item ant-input-compact-last-item" placeholder="Maximum" style="width: 100px; text-align: center;" type="text" value="" /> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-single ant-select-show-arrow" style="width: 30%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Sign Up" > Sign Up </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Sign Up" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > Sign Up </div> <div aria-label="Sign In" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > Sign In </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Sign Up" > <div class="ant-select-item-option-content" > Sign Up </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Sign In" > <div class="ant-select-item-option-content" > Sign In </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-select ant-select-compact-item ant-select-compact-last-item ant-select-auto-complete ant-select-single ant-select-show-search" style="width: 70%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > Email </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-selected="false" id="rc_select_TEST_OR_SSR_list_0" role="option" > text 1 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="false" class="ant-select-item ant-select-item-option" title="text 1" > <div class="ant-select-item-option-content" > text 1 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="text 2" > <div class="ant-select-item-option-content" > text 2 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-picker ant-picker-compact-item ant-picker-compact-first-item" style="width: 70%;" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="Select time" readonly="" size="10" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> </div> </div> <div class="ant-picker-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-picker-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-picker-panel-container" > <div class="ant-picker-panel-layout" > <div class="ant-picker-panel ant-picker-panel-focused" tabindex="-1" > <div class="ant-picker-time-panel" > <div class="ant-picker-content" > <ul class="ant-picker-time-panel-column" style="position: relative;" > <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 00 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 01 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 02 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 03 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 04 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 05 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 06 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 07 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 08 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 09 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 10 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 11 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 12 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 13 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 14 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 15 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 16 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 17 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 18 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 19 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 20 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 21 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 22 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 23 </div> </li> </ul> <ul class="ant-picker-time-panel-column" style="position: relative;" > <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 00 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 01 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 02 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 03 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 04 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 05 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 06 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 07 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 08 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 09 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 10 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 11 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 12 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 13 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 14 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 15 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 16 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 17 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 18 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 19 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 20 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 21 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 22 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 23 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 24 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 25 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 26 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 27 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 28 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 29 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 30 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 31 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 32 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 33 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 34 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 35 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 36 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 37 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 38 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 39 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 40 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 41 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 42 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 43 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 44 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 45 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 46 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 47 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 48 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 49 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 50 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 51 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 52 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 53 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 54 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 55 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 56 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 57 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 58 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 59 </div> </li> </ul> <ul class="ant-picker-time-panel-column" style="position: relative;" > <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 00 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 01 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 02 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 03 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 04 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 05 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 06 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 07 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 08 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 09 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 10 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 11 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 12 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 13 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 14 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 15 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 16 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 17 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 18 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 19 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 20 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 21 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 22 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 23 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 24 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 25 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 26 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 27 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 28 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 29 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 30 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 31 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 32 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 33 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 34 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 35 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 36 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 37 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 38 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 39 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 40 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 41 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 42 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 43 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 44 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 45 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 46 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 47 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 48 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 49 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 50 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 51 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 52 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 53 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 54 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 55 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 56 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 57 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 58 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 59 </div> </li> </ul> </div> </div> <div class="ant-picker-footer" > <ul class="ant-picker-ranges" > <li class="ant-picker-now" > <a class="ant-picker-now-btn" > Now </a> </li> <li class="ant-picker-ok" > <button class="ant-btn ant-btn-primary ant-btn-sm ant-btn-compact-item ant-btn-compact-first-item" disabled="" type="button" > <span> OK </span> </button> </li> </ul> </div> </div> </div> </div> </div> <div class="ant-select ant-cascader ant-select-compact-item ant-select-compact-last-item ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 70%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > Select Address </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-cascader-dropdown ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: auto;" > <div> <div class="ant-cascader-menus" > <ul class="ant-cascader-menu" role="menu" > <li aria-checked="false" class="ant-cascader-menu-item ant-cascader-menu-item-expand" data-path-key="zhejiang" role="menuitemcheckbox" title="Zhejiang" > <div class="ant-cascader-menu-item-content" > Zhejiang </div> <div class="ant-cascader-menu-item-expand-icon" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </div> </li> <li aria-checked="false" class="ant-cascader-menu-item ant-cascader-menu-item-expand" data-path-key="jiangsu" role="menuitemcheckbox" title="Jiangsu" > <div class="ant-cascader-menu-item-content" > Jiangsu </div> <div class="ant-cascader-menu-item-expand-icon" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </div> </li> </ul> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-picker ant-picker-range ant-picker-compact-item ant-picker-compact-first-item" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="Start time" readonly="" size="10" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="End time" readonly="" size="10" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> </div> <div class="ant-picker-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-picker-dropdown-range ant-picker-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-picker-range-wrapper ant-picker-time-range-wrapper" style="min-width: 0;" > <div class="ant-picker-range-arrow" style="left: 0px;" /> <div class="ant-picker-panel-container" style="margin-left: 0px;" > <div class="ant-picker-panel-layout" > <div> <div class="ant-picker-panels" > <div class="ant-picker-panel ant-picker-panel-focused" tabindex="-1" > <div class="ant-picker-time-panel" > <div class="ant-picker-content" > <ul class="ant-picker-time-panel-column" style="position: relative;" > <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 00 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 01 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 02 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 03 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 04 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 05 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 06 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 07 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 08 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 09 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 10 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 11 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 12 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 13 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 14 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 15 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 16 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 17 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 18 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 19 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 20 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 21 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 22 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 23 </div> </li> </ul> <ul class="ant-picker-time-panel-column" style="position: relative;" > <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 00 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 01 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 02 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 03 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 04 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 05 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 06 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 07 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 08 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 09 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 10 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 11 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 12 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 13 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 14 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 15 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 16 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 17 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 18 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 19 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 20 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 21 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 22 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 23 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 24 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 25 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 26 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 27 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 28 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 29 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 30 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 31 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 32 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 33 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 34 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 35 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 36 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 37 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 38 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 39 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 40 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 41 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 42 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 43 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 44 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 45 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 46 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 47 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 48 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 49 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 50 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 51 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 52 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 53 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 54 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 55 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 56 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 57 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 58 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 59 </div> </li> </ul> <ul class="ant-picker-time-panel-column" style="position: relative;" > <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 00 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 01 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 02 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 03 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 04 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 05 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 06 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 07 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 08 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 09 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 10 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 11 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 12 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 13 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 14 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 15 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 16 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 17 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 18 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 19 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 20 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 21 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 22 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 23 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 24 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 25 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 26 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 27 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 28 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 29 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 30 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 31 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 32 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 33 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 34 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 35 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 36 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 37 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 38 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 39 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 40 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 41 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 42 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 43 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 44 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 45 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 46 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 47 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 48 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 49 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 50 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 51 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 52 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 53 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 54 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 55 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 56 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 57 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 58 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 59 </div> </li> </ul> </div> </div> </div> </div> <div class="ant-picker-footer" > <ul class="ant-picker-ranges" > <li class="ant-picker-ok" > <button class="ant-btn ant-btn-primary ant-btn-sm ant-btn-compact-item ant-btn-compact-first-item" disabled="" type="button" > <span> OK </span> </button> </li> </ul> </div> </div> </div> </div> </div> </div> <div class="ant-select ant-tree-select ant-select-compact-item ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width: 60%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-item" title="leaf1" > leaf1 </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-tree-select-dropdown ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; max-height: 400px; overflow: auto;" > <div> <div> <div class="ant-select-tree" role="tree" > <div> <input aria-label="for screen reader" disabled="" style="width: 0px; height: 0px; display: flex; overflow: hidden; opacity: 0; border: 0px; padding: 0px; margin: 0px;" value="" /> </div> <div aria-hidden="true" class="ant-select-tree-treenode" style="position: absolute; pointer-events: none; visibility: hidden; height: 0px; overflow: hidden; border: 0px; padding: 0px;" > <div class="ant-select-tree-indent" > <div class="ant-select-tree-indent-unit" /> </div> </div> <div class="ant-select-tree-list" style="position: relative;" > <div class="ant-select-tree-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="ant-select-tree-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-grabbed="false" class="ant-select-tree-treenode ant-select-tree-treenode-switcher-open ant-select-tree-treenode-leaf-last" draggable="false" > <span aria-hidden="true" class="ant-select-tree-indent" /> <span class="ant-select-tree-switcher ant-select-tree-switcher_open" > <span aria-label="caret-down" class="anticon anticon-caret-down ant-select-tree-switcher-icon" role="img" > <svg aria-hidden="true" data-icon="caret-down" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" /> </svg> </span> </span> <span class="ant-select-tree-node-content-wrapper ant-select-tree-node-content-wrapper-open" title="parent 1" > <span class="ant-select-tree-title" > parent 1 </span> </span> </div> <div aria-grabbed="false" class="ant-select-tree-treenode ant-select-tree-treenode-switcher-open" draggable="false" > <span aria-hidden="true" class="ant-select-tree-indent" > <span class="ant-select-tree-indent-unit ant-select-tree-indent-unit-start ant-select-tree-indent-unit-end" /> </span> <span class="ant-select-tree-switcher ant-select-tree-switcher_open" > <span aria-label="caret-down" class="anticon anticon-caret-down ant-select-tree-switcher-icon" role="img" > <svg aria-hidden="true" data-icon="caret-down" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" /> </svg> </span> </span> <span class="ant-select-tree-node-content-wrapper ant-select-tree-node-content-wrapper-open" title="parent 1-0" > <span class="ant-select-tree-title" > parent 1-0 </span> </span> </div> <div aria-grabbed="false" class="ant-select-tree-treenode ant-select-tree-treenode-switcher-open ant-select-tree-treenode-selected" draggable="false" > <span aria-hidden="true" class="ant-select-tree-indent" > <span class="ant-select-tree-indent-unit ant-select-tree-indent-unit-start ant-select-tree-indent-unit-end" /> <span class="ant-select-tree-indent-unit ant-select-tree-indent-unit-start" /> </span> <span class="ant-select-tree-switcher ant-select-tree-switcher-noop" /> <span class="ant-select-tree-node-content-wrapper ant-select-tree-node-content-wrapper-normal ant-select-tree-node-selected" title="leaf1" > <span class="ant-select-tree-title" > leaf1 </span> </span> </div> <div aria-grabbed="false" class="ant-select-tree-treenode ant-select-tree-treenode-switcher-open ant-select-tree-treenode-leaf-last" draggable="false" > <span aria-hidden="true" class="ant-select-tree-indent" > <span class="ant-select-tree-indent-unit ant-select-tree-indent-unit-start ant-select-tree-indent-unit-end" /> <span class="ant-select-tree-indent-unit ant-select-tree-indent-unit-start" /> </span> <span class="ant-select-tree-switcher ant-select-tree-switcher-noop" /> <span class="ant-select-tree-node-content-wrapper ant-select-tree-node-content-wrapper-normal" title="leaf2" > <span class="ant-select-tree-title" > leaf2 </span> </span> </div> <div aria-grabbed="false" class="ant-select-tree-treenode ant-select-tree-treenode-switcher-open ant-select-tree-treenode-leaf-last" draggable="false" > <span aria-hidden="true" class="ant-select-tree-indent" > <span class="ant-select-tree-indent-unit ant-select-tree-indent-unit-start ant-select-tree-indent-unit-end" /> </span> <span class="ant-select-tree-switcher ant-select-tree-switcher_open" > <span aria-label="caret-down" class="anticon anticon-caret-down ant-select-tree-switcher-icon" role="img" > <svg aria-hidden="true" data-icon="caret-down" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" /> </svg> </span> </span> <span class="ant-select-tree-node-content-wrapper ant-select-tree-node-content-wrapper-open" title="parent 1-1" > <span class="ant-select-tree-title" > parent 1-1 </span> </span> </div> <div aria-grabbed="false" class="ant-select-tree-treenode ant-select-tree-treenode-switcher-open ant-select-tree-treenode-leaf-last" draggable="false" > <span aria-hidden="true" class="ant-select-tree-indent" > <span class="ant-select-tree-indent-unit ant-select-tree-indent-unit-start ant-select-tree-indent-unit-end" /> <span class="ant-select-tree-indent-unit ant-select-tree-indent-unit-end" /> </span> <span class="ant-select-tree-switcher ant-select-tree-switcher-noop" /> <span class="ant-select-tree-node-content-wrapper ant-select-tree-node-content-wrapper-normal" title="" > <span class="ant-select-tree-title" > <b style="color: rgb(0, 136, 204);" > leaf3 </b> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> <br /> </div> `; exports[`renders components/space/demo/compact.tsx extend context correctly 2`] = `[]`; exports[`renders components/space/demo/compact-button-vertical.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-space-compact ant-space-compact-vertical" > <button class="ant-btn ant-btn-default ant-btn-compact-vertical-item ant-btn-compact-vertical-first-item" type="button" > <span> Button 1 </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-vertical-item" type="button" > <span> Button 2 </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-vertical-item ant-btn-compact-vertical-last-item" type="button" > <span> Button 3 </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact ant-space-compact-vertical" > <button class="ant-btn ant-btn-dashed ant-btn-compact-vertical-item ant-btn-compact-vertical-first-item" type="button" > <span> Button 1 </span> </button> <button class="ant-btn ant-btn-dashed ant-btn-compact-vertical-item" type="button" > <span> Button 2 </span> </button> <button class="ant-btn ant-btn-dashed ant-btn-compact-vertical-item ant-btn-compact-vertical-last-item" type="button" > <span> Button 3 </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact ant-space-compact-vertical" > <button class="ant-btn ant-btn-primary ant-btn-compact-vertical-item ant-btn-compact-vertical-first-item" type="button" > <span> Button 1 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-compact-vertical-item" type="button" > <span> Button 2 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-compact-vertical-item ant-btn-compact-vertical-last-item" type="button" > <span> Button 3 </span> </button> </div> </div> </div> `; exports[`renders components/space/demo/compact-button-vertical.tsx extend context correctly 2`] = `[]`; exports[`renders components/space/demo/compact-buttons.tsx extend context correctly 1`] = ` <div> <div class="ant-space-compact ant-space-compact-block" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span class="ant-btn-icon" > <span aria-label="like" class="anticon anticon-like" role="img" > <svg aria-hidden="true" data-icon="like" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" /> </svg> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > Like </div> </div> </div> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="comment" class="anticon anticon-comment" role="img" > <svg aria-hidden="true" data-icon="comment" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <defs> <style /> </defs> <path d="M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z" /> <path d="M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z" /> <path d="M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z" /> </svg> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > Comment </div> </div> </div> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z" /> </svg> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > Star </div> </div> </div> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > Heart </div> </div> </div> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="share-alt" class="anticon anticon-share-alt" role="img" > <svg aria-hidden="true" data-icon="share-alt" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z" /> </svg> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > Share </div> </div> </div> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > Download </div> </div> </div> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item ant-dropdown-trigger" type="button" > <span class="ant-btn-icon" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </span> </button> <div class="ant-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-dropdown-placement-bottomRight" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <ul class="ant-dropdown-menu ant-dropdown-menu-root ant-dropdown-menu-vertical ant-dropdown-menu-light" data-menu-list="true" role="menu" tabindex="0" > <li class="ant-dropdown-menu-item" data-menu-id="rc-menu-uuid-test-1" role="menuitem" tabindex="-1" > <span aria-label="warning" class="anticon anticon-warning ant-dropdown-menu-item-icon" role="img" > <svg aria-hidden="true" data-icon="warning" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z" /> </svg> </span> <span class="ant-dropdown-menu-title-content" > Report </span> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> <li class="ant-dropdown-menu-item" data-menu-id="rc-menu-uuid-test-2" role="menuitem" tabindex="-1" > <span aria-label="mail" class="anticon anticon-mail ant-dropdown-menu-item-icon" role="img" > <svg aria-hidden="true" data-icon="mail" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z" /> </svg> </span> <span class="ant-dropdown-menu-title-content" > Mail </span> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> <li class="ant-dropdown-menu-item" data-menu-id="rc-menu-uuid-test-3" role="menuitem" tabindex="-1" > <span aria-label="mobile" class="anticon anticon-mobile ant-dropdown-menu-item-icon" role="img" > <svg aria-hidden="true" data-icon="mobile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> <span class="ant-dropdown-menu-title-content" > Mobile </span> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> </ul> <div aria-hidden="true" style="display: none;" > <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> </div> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> Button 1 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Button 2 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Button 3 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Button 4 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-icon-only ant-btn-compact-item" disabled="" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > Tooltip </div> </div> </div> <button class="ant-btn ant-btn-primary ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > Tooltip </div> </div> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> Button 1 </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Button 2 </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Button 3 </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" disabled="" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > Tooltip </div> </div> </div> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > Tooltip </div> </div> </div> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Button 4 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item ant-dropdown-trigger" type="button" > <span class="ant-btn-icon" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </span> </button> <div class="ant-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-dropdown-placement-bottomRight" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <ul class="ant-dropdown-menu ant-dropdown-menu-root ant-dropdown-menu-vertical ant-dropdown-menu-light" data-menu-list="true" role="menu" tabindex="0" > <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-1" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > 1st item </span> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-2" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > 2nd item </span> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-3" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > 3rd item </span> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> </ul> <div aria-hidden="true" style="display: none;" > <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> </div> </div> </div> </div> `; exports[`renders components/space/demo/compact-buttons.tsx extend context correctly 2`] = ` [ "Warning: [antd: Dropdown] \`overlay\` is deprecated. Please use \`menu\` instead.", ] `; exports[`renders components/space/demo/compact-debug.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-space-compact ant-space-compact-block" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> default Button </span> </button> <button class="ant-btn ant-btn-default ant-btn-dangerous ant-btn-compact-item" type="button" > <span> danger Button </span> </button> <button class="ant-btn ant-btn-dashed ant-btn-compact-item" type="button" > <span> dashed Button </span> </button> <button class="ant-btn ant-btn-text ant-btn-compact-item" type="button" > <span> text Button </span> </button> <button class="ant-btn ant-btn-link ant-btn-compact-item" type="button" > <span> Link Button </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" disabled="" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > Tooltip </div> </div> </div> </div> </div> <div class="ant-space-item" > <br /> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> Prefix </span> </button> <span class="ant-input-group-wrapper ant-input-compact-item" > <span class="ant-input-wrapper ant-input-group" > <span class="ant-input-group-addon" > http:// </span> <input class="ant-input" type="text" value="mysite" /> <span class="ant-input-group-addon" > .com </span> </span> </span> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" placeholder="prefix" type="text" value="" /> <span class="ant-input-group-wrapper ant-input-compact-item" > <span class="ant-input-wrapper ant-input-group" > <span class="ant-input-group-addon" > <div class="ant-select select-before ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="http://" > http:// </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="http://" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > http:// </div> <div aria-label="https://" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > https:// </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="http://" > <div class="ant-select-item-option-content" > http:// </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="https://" > <div class="ant-select-item-option-content" > https:// </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </span> <input class="ant-input" type="text" value="mysite" /> <span class="ant-input-group-addon" > <div class="ant-select select-after ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title=".com" > .com </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label=".com" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > .com </div> <div aria-label=".jp" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > .jp </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title=".com" > <div class="ant-select-item-option-content" > .com </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title=".jp" > <div class="ant-select-item-option-content" > .jp </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title=".cn" > <div class="ant-select-item-option-content" > .cn </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title=".org" > <div class="ant-select-item-option-content" > .org </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </span> </span> </span> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item ant-input-compact-first-item" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" type="text" value="" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" type="text" value="" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <span class="ant-input-group-wrapper ant-input-compact-item ant-input-compact-first-item" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" type="text" value="mysite" /> <span class="ant-input-group-addon" > <span aria-label="setting" class="anticon anticon-setting" role="img" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </span> </span> </span> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Submit </span> </button> <span class="ant-input-group-wrapper ant-input-compact-item ant-input-compact-last-item" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" placeholder="suffix" type="text" value="" /> <span class="ant-input-group-addon" > <span aria-label="setting" class="anticon anticon-setting" role="img" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </span> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <span class="ant-input-group-wrapper ant-input-compact-item ant-input-compact-first-item" > <span class="ant-input-wrapper ant-input-group" > <span class="ant-input-group-addon" > http:// </span> <span class="ant-input-affix-wrapper" > <input class="ant-input" type="text" value="mysite" /> <span class="ant-input-suffix" > .com </span> </span> </span> </span> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> Prefix </span> </button> <span class="ant-input-group-wrapper ant-input-compact-item" > <span class="ant-input-wrapper ant-input-group" > <span class="ant-input-group-addon" > <div class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 150px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > cascader </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-cascader-dropdown ant-select-dropdown-empty ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div class="ant-cascader-menus ant-cascader-menu-empty" > <ul class="ant-cascader-menu" role="menu" > <li aria-checked="false" class="ant-cascader-menu-item ant-cascader-menu-item-disabled" data-path-key="__EMPTY__" role="menuitemcheckbox" > <div class="ant-cascader-menu-item-content" > <div class="ant-empty ant-empty-normal ant-empty-small" > <div class="ant-empty-image" > <svg height="41" viewBox="0 0 64 41" width="64" xmlns="http://www.w3.org/2000/svg" > <g fill="none" fill-rule="evenodd" transform="translate(0 1)" > <ellipse cx="32" cy="33" fill="#f5f5f5" rx="32" ry="7" /> <g fill-rule="nonzero" stroke="#d9d9d9" > <path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" /> <path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#fafafa" /> </g> </g> </svg> </div> <div class="ant-empty-description" > No data </div> </div> </div> </li> </ul> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </span> <input class="ant-input" type="text" value="mysite" /> </span> </span> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> </div> <div class="ant-space-item" > <br /> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item ant-btn-compact-last-item" type="button" > <span> debug Modal context </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-space-compact ant-space-compact-block ant-dropdown-button ant-dropdown-compact-item ant-dropdown-compact-first-item ant-dropdown-compact-last-item" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> debug Dropdown.Button context </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item ant-dropdown-trigger" type="button" > <span class="ant-btn-icon" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </span> </button> <div class="ant-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-dropdown-placement-bottomRight" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <ul class="ant-dropdown-menu ant-dropdown-menu-root ant-dropdown-menu-vertical ant-dropdown-menu-light" data-menu-list="true" role="menu" tabindex="0" > <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-1" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > <button class="ant-btn ant-btn-default" type="button" > <span> menu button </span> </button> </span> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-2" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > normal menu item </span> </li> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> </ul> <div aria-hidden="true" style="display: none;" > <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-dropdown-menu-inline-collapsed-tooltip ant-tooltip-placement-right" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item ant-btn-compact-last-item" type="button" > <span> debug Drawer context </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" placeholder="Debug Popover context" type="text" value="" /> <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Settings </span> </button> <div class="ant-popover ant-zoom-big-appear ant-zoom-big-appear-prepare ant-zoom-big ant-popover-placement-bottom" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-popover-arrow" style="position: absolute; top: 0px; left: 0px;" /> <div class="ant-popover-content" > <div class="ant-popover-inner" role="tooltip" > <div class="ant-popover-inner-content" > <input class="ant-input" placeholder="Left Border" type="text" value="" /> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="Select date" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> <div class="ant-picker-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-picker-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1150;" > <div class="ant-picker-panel-container" > <div class="ant-picker-panel-layout" > <div class="ant-picker-panel ant-picker-panel-focused" tabindex="-1" > <div class="ant-picker-date-panel" > <div class="ant-picker-header" > <button class="ant-picker-header-super-prev-btn" tabindex="-1" type="button" > <span class="ant-picker-super-prev-icon" /> </button> <button class="ant-picker-header-prev-btn" tabindex="-1" type="button" > <span class="ant-picker-prev-icon" /> </button> <div class="ant-picker-header-view" > <button class="ant-picker-month-btn" tabindex="-1" type="button" > Nov </button> <button class="ant-picker-year-btn" tabindex="-1" type="button" > 2016 </button> </div> <button class="ant-picker-header-next-btn" tabindex="-1" type="button" > <span class="ant-picker-next-icon" /> </button> <button class="ant-picker-header-super-next-btn" tabindex="-1" type="button" > <span class="ant-picker-super-next-icon" /> </button> </div> <div class="ant-picker-body" > <table class="ant-picker-content" > <thead> <tr> <th> Su </th> <th> Mo </th> <th> Tu </th> <th> We </th> <th> Th </th> <th> Fr </th> <th> Sa </th> </tr> </thead> <tbody> <tr> <td class="ant-picker-cell" title="2016-10-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-end" title="2016-10-31" > <div class="ant-picker-cell-inner" > 31 </div> </td> <td class="ant-picker-cell ant-picker-cell-start ant-picker-cell-in-view" title="2016-11-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-11" > <div class="ant-picker-cell-inner" > 11 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-12" > <div class="ant-picker-cell-inner" > 12 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-13" > <div class="ant-picker-cell-inner" > 13 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-14" > <div class="ant-picker-cell-inner" > 14 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-15" > <div class="ant-picker-cell-inner" > 15 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-16" > <div class="ant-picker-cell-inner" > 16 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-17" > <div class="ant-picker-cell-inner" > 17 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-18" > <div class="ant-picker-cell-inner" > 18 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-19" > <div class="ant-picker-cell-inner" > 19 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-20" > <div class="ant-picker-cell-inner" > 20 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-21" > <div class="ant-picker-cell-inner" > 21 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view ant-picker-cell-today" title="2016-11-22" > <div class="ant-picker-cell-inner" > 22 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-23" > <div class="ant-picker-cell-inner" > 23 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-24" > <div class="ant-picker-cell-inner" > 24 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-25" > <div class="ant-picker-cell-inner" > 25 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-26" > <div class="ant-picker-cell-inner" > 26 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-27" > <div class="ant-picker-cell-inner" > 27 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-28" > <div class="ant-picker-cell-inner" > 28 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-29" > <div class="ant-picker-cell-inner" > 29 </div> </td> <td class="ant-picker-cell ant-picker-cell-end ant-picker-cell-in-view" title="2016-11-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-start" title="2016-12-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell" title="2016-12-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell" title="2016-12-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> </tr> <tr> <td class="ant-picker-cell" title="2016-12-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell" title="2016-12-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> <td class="ant-picker-cell" title="2016-12-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell" title="2016-12-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell" title="2016-12-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell" title="2016-12-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell" title="2016-12-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> </tr> </tbody> </table> </div> </div> <div class="ant-picker-footer" > <a class="ant-picker-today-btn" > Today </a> </div> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" role="spinbutton" step="1" value="" /> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div class="ant-select ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" /> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-empty ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1150;" > <div> <div class="ant-select-item-empty" id="rc_select_TEST_OR_SSR_list" role="listbox" > <div class="ant-empty ant-empty-normal ant-empty-small" > <div class="ant-empty-image" > <svg height="41" viewBox="0 0 64 41" width="64" xmlns="http://www.w3.org/2000/svg" > <g fill="none" fill-rule="evenodd" transform="translate(0 1)" > <ellipse cx="32" cy="33" fill="#f5f5f5" rx="32" ry="7" /> <g fill-rule="nonzero" stroke="#d9d9d9" > <path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" /> <path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#fafafa" /> </g> </g> </svg> </div> <div class="ant-empty-description" > No data </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-input-number-group-wrapper ant-input-number-compact-item ant-input-number-compact-first-item ant-input-number-compact-last-item" > <div class="ant-input-number-wrapper ant-input-number-group" > <div class="ant-input-number-group-addon" > + </div> <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="100" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="1" value="100" /> </div> </div> <div class="ant-input-number-group-addon" > $ </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-compact-last-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Sign Up" > Sign Up </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Sign Up" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > Sign Up </div> <div aria-label="Sign In" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > Sign In </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Sign Up" > <div class="ant-select-item-option-content" > Sign Up </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Sign In" > <div class="ant-select-item-option-content" > Sign In </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-picker ant-picker-range ant-picker-compact-item ant-picker-compact-first-item ant-picker-compact-last-item" style="width: 70%;" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="Start date" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="End date" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> <div class="ant-picker-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-picker-dropdown-range ant-picker-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-picker-range-wrapper ant-picker-date-range-wrapper" style="min-width: 0;" > <div class="ant-picker-range-arrow" style="left: 0px;" /> <div class="ant-picker-panel-container" style="margin-left: 0px;" > <div class="ant-picker-panel-layout" > <div> <div class="ant-picker-panels" > <div class="ant-picker-panel ant-picker-panel-focused" tabindex="-1" > <div class="ant-picker-date-panel" > <div class="ant-picker-header" > <button class="ant-picker-header-super-prev-btn" tabindex="-1" type="button" > <span class="ant-picker-super-prev-icon" /> </button> <button class="ant-picker-header-prev-btn" tabindex="-1" type="button" > <span class="ant-picker-prev-icon" /> </button> <div class="ant-picker-header-view" > <button class="ant-picker-month-btn" tabindex="-1" type="button" > Nov </button> <button class="ant-picker-year-btn" tabindex="-1" type="button" > 2016 </button> </div> <button class="ant-picker-header-next-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-next-icon" /> </button> <button class="ant-picker-header-super-next-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-super-next-icon" /> </button> </div> <div class="ant-picker-body" > <table class="ant-picker-content" > <thead> <tr> <th> Su </th> <th> Mo </th> <th> Tu </th> <th> We </th> <th> Th </th> <th> Fr </th> <th> Sa </th> </tr> </thead> <tbody> <tr> <td class="ant-picker-cell" title="2016-10-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-end" title="2016-10-31" > <div class="ant-picker-cell-inner" > 31 </div> </td> <td class="ant-picker-cell ant-picker-cell-start ant-picker-cell-in-view" title="2016-11-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-11" > <div class="ant-picker-cell-inner" > 11 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-12" > <div class="ant-picker-cell-inner" > 12 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-13" > <div class="ant-picker-cell-inner" > 13 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-14" > <div class="ant-picker-cell-inner" > 14 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-15" > <div class="ant-picker-cell-inner" > 15 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-16" > <div class="ant-picker-cell-inner" > 16 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-17" > <div class="ant-picker-cell-inner" > 17 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-18" > <div class="ant-picker-cell-inner" > 18 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-19" > <div class="ant-picker-cell-inner" > 19 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-20" > <div class="ant-picker-cell-inner" > 20 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-21" > <div class="ant-picker-cell-inner" > 21 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view ant-picker-cell-today" title="2016-11-22" > <div class="ant-picker-cell-inner" > 22 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-23" > <div class="ant-picker-cell-inner" > 23 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-24" > <div class="ant-picker-cell-inner" > 24 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-25" > <div class="ant-picker-cell-inner" > 25 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-26" > <div class="ant-picker-cell-inner" > 26 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-27" > <div class="ant-picker-cell-inner" > 27 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-28" > <div class="ant-picker-cell-inner" > 28 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-11-29" > <div class="ant-picker-cell-inner" > 29 </div> </td> <td class="ant-picker-cell ant-picker-cell-end ant-picker-cell-in-view" title="2016-11-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-start" title="2016-12-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell" title="2016-12-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell" title="2016-12-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> </tr> <tr> <td class="ant-picker-cell" title="2016-12-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell" title="2016-12-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> <td class="ant-picker-cell" title="2016-12-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell" title="2016-12-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell" title="2016-12-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell" title="2016-12-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell" title="2016-12-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> </tr> </tbody> </table> </div> </div> </div> <div class="ant-picker-panel ant-picker-panel-focused" tabindex="-1" > <div class="ant-picker-date-panel" > <div class="ant-picker-header" > <button class="ant-picker-header-super-prev-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-super-prev-icon" /> </button> <button class="ant-picker-header-prev-btn" style="visibility: hidden;" tabindex="-1" type="button" > <span class="ant-picker-prev-icon" /> </button> <div class="ant-picker-header-view" > <button class="ant-picker-month-btn" tabindex="-1" type="button" > Dec </button> <button class="ant-picker-year-btn" tabindex="-1" type="button" > 2016 </button> </div> <button class="ant-picker-header-next-btn" tabindex="-1" type="button" > <span class="ant-picker-next-icon" /> </button> <button class="ant-picker-header-super-next-btn" tabindex="-1" type="button" > <span class="ant-picker-super-next-icon" /> </button> </div> <div class="ant-picker-body" > <table class="ant-picker-content" > <thead> <tr> <th> Su </th> <th> Mo </th> <th> Tu </th> <th> We </th> <th> Th </th> <th> Fr </th> <th> Sa </th> </tr> </thead> <tbody> <tr> <td class="ant-picker-cell" title="2016-11-27" > <div class="ant-picker-cell-inner" > 27 </div> </td> <td class="ant-picker-cell" title="2016-11-28" > <div class="ant-picker-cell-inner" > 28 </div> </td> <td class="ant-picker-cell" title="2016-11-29" > <div class="ant-picker-cell-inner" > 29 </div> </td> <td class="ant-picker-cell ant-picker-cell-end" title="2016-11-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-start ant-picker-cell-in-view" title="2016-12-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-08" > <div class="ant-picker-cell-inner" > 8 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-09" > <div class="ant-picker-cell-inner" > 9 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-10" > <div class="ant-picker-cell-inner" > 10 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-11" > <div class="ant-picker-cell-inner" > 11 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-12" > <div class="ant-picker-cell-inner" > 12 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-13" > <div class="ant-picker-cell-inner" > 13 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-14" > <div class="ant-picker-cell-inner" > 14 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-15" > <div class="ant-picker-cell-inner" > 15 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-16" > <div class="ant-picker-cell-inner" > 16 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-17" > <div class="ant-picker-cell-inner" > 17 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-18" > <div class="ant-picker-cell-inner" > 18 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-19" > <div class="ant-picker-cell-inner" > 19 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-20" > <div class="ant-picker-cell-inner" > 20 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-21" > <div class="ant-picker-cell-inner" > 21 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-22" > <div class="ant-picker-cell-inner" > 22 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-23" > <div class="ant-picker-cell-inner" > 23 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-24" > <div class="ant-picker-cell-inner" > 24 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-25" > <div class="ant-picker-cell-inner" > 25 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-26" > <div class="ant-picker-cell-inner" > 26 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-27" > <div class="ant-picker-cell-inner" > 27 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-28" > <div class="ant-picker-cell-inner" > 28 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-29" > <div class="ant-picker-cell-inner" > 29 </div> </td> <td class="ant-picker-cell ant-picker-cell-in-view" title="2016-12-30" > <div class="ant-picker-cell-inner" > 30 </div> </td> <td class="ant-picker-cell ant-picker-cell-end ant-picker-cell-in-view" title="2016-12-31" > <div class="ant-picker-cell-inner" > 31 </div> </td> </tr> <tr> <td class="ant-picker-cell ant-picker-cell-start" title="2017-01-01" > <div class="ant-picker-cell-inner" > 1 </div> </td> <td class="ant-picker-cell" title="2017-01-02" > <div class="ant-picker-cell-inner" > 2 </div> </td> <td class="ant-picker-cell" title="2017-01-03" > <div class="ant-picker-cell-inner" > 3 </div> </td> <td class="ant-picker-cell" title="2017-01-04" > <div class="ant-picker-cell-inner" > 4 </div> </td> <td class="ant-picker-cell" title="2017-01-05" > <div class="ant-picker-cell-inner" > 5 </div> </td> <td class="ant-picker-cell" title="2017-01-06" > <div class="ant-picker-cell-inner" > 6 </div> </td> <td class="ant-picker-cell" title="2017-01-07" > <div class="ant-picker-cell-inner" > 7 </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-input-number ant-input-number-compact-item ant-input-number-compact-first-item ant-input-number-compact-last-item" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="12" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="1" value="12" /> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-select ant-cascader ant-select-compact-item ant-select-compact-first-item ant-select-compact-last-item ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 70%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > Select Address </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-cascader-dropdown ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: auto;" > <div> <div class="ant-cascader-menus" > <ul class="ant-cascader-menu" role="menu" > <li aria-checked="false" class="ant-cascader-menu-item ant-cascader-menu-item-expand" data-path-key="zhejiang" role="menuitemcheckbox" title="Zhejiang" > <div class="ant-cascader-menu-item-content" > Zhejiang </div> <div class="ant-cascader-menu-item-expand-icon" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </div> </li> <li aria-checked="false" class="ant-cascader-menu-item ant-cascader-menu-item-expand" data-path-key="jiangsu" role="menuitemcheckbox" title="Jiangsu" > <div class="ant-cascader-menu-item-content" > Jiangsu </div> <div class="ant-cascader-menu-item-expand-icon" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </div> </li> </ul> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact ant-space-compact-vertical" > <button class="ant-btn ant-btn-default ant-btn-compact-vertical-item ant-btn-compact-vertical-first-item ant-btn-compact-vertical-last-item" type="button" > <span> vertical compact button A </span> </button> </div> </div> </div> `; exports[`renders components/space/demo/compact-debug.tsx extend context correctly 2`] = `[]`; exports[`renders components/space/demo/compact-nested.tsx extend context correctly 1`] = ` Array [ <div class="ant-space-compact ant-space-compact-block" > <div class="ant-space-compact" > <div class="ant-space-compact" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" placeholder="Typing..." style="width: 90px;" type="text" value="" /> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </div> <div class="ant-space-compact" > <div class="ant-input-number ant-input-number-compact-item" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="12" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="1" value="12" /> </div> </div> <div class="ant-select ant-select-compact-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Opt1" > Opt1 </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div> <div id="rc_select_TEST_OR_SSR_list" role="listbox" style="height: 0px; width: 0px; overflow: hidden;" > <div aria-label="Opt1" aria-selected="true" id="rc_select_TEST_OR_SSR_list_0" role="option" > Option1 </div> <div aria-label="Opt2" aria-selected="false" id="rc_select_TEST_OR_SSR_list_1" role="option" > Option2 </div> </div> <div class="rc-virtual-list" style="position: relative;" > <div class="rc-virtual-list-holder" style="max-height: 256px; overflow-y: auto;" > <div> <div class="rc-virtual-list-holder-inner" style="display: flex; flex-direction: column;" > <div aria-selected="true" class="ant-select-item ant-select-item-option ant-select-item-option-active ant-select-item-option-selected" title="Opt1" > <div class="ant-select-item-option-content" > Opt1 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> <div aria-selected="false" class="ant-select-item ant-select-item-option" title="Opt2" > <div class="ant-select-item-option-content" > Opt2 </div> <span aria-hidden="true" class="ant-select-item-option-state" style="user-select: none;" unselectable="on" /> </div> </div> </div> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Separator </span> </button> <div class="ant-space-compact" > <div class="ant-space-compact" > <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item" style="width: 110px;" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" placeholder="Search" type="text" value="" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Submit </span> </button> </div> <div class="ant-space-compact" > <input class="ant-input ant-input-compact-item" type="text" value="mysite" /> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> </button> </div> </div> </div>, <br />, <div class="ant-space-compact ant-space-compact-block" > <div class="ant-space-compact" > <div class="ant-picker ant-picker-compact-item ant-picker-compact-first-item" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="Select time" readonly="" size="10" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> </div> </div> <div class="ant-picker-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-picker-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-picker-panel-container" > <div class="ant-picker-panel-layout" > <div class="ant-picker-panel ant-picker-panel-focused" tabindex="-1" > <div class="ant-picker-time-panel" > <div class="ant-picker-content" > <ul class="ant-picker-time-panel-column" style="position: relative;" > <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 00 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 01 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 02 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 03 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 04 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 05 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 06 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 07 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 08 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 09 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 10 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 11 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 12 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 13 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 14 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 15 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 16 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 17 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 18 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 19 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 20 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 21 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 22 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 23 </div> </li> </ul> <ul class="ant-picker-time-panel-column" style="position: relative;" > <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 00 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 01 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 02 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 03 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 04 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 05 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 06 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 07 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 08 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 09 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 10 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 11 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 12 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 13 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 14 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 15 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 16 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 17 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 18 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 19 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 20 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 21 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 22 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 23 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 24 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 25 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 26 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 27 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 28 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 29 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 30 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 31 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 32 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 33 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 34 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 35 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 36 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 37 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 38 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 39 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 40 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 41 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 42 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 43 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 44 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 45 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 46 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 47 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 48 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 49 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 50 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 51 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 52 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 53 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 54 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 55 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 56 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 57 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 58 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 59 </div> </li> </ul> <ul class="ant-picker-time-panel-column" style="position: relative;" > <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 00 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 01 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 02 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 03 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 04 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 05 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 06 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 07 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 08 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 09 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 10 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 11 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 12 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 13 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 14 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 15 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 16 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 17 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 18 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 19 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 20 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 21 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 22 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 23 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 24 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 25 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 26 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 27 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 28 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 29 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 30 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 31 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 32 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 33 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 34 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 35 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 36 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 37 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 38 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 39 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 40 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 41 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 42 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 43 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 44 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 45 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 46 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 47 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 48 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 49 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 50 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 51 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 52 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 53 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 54 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 55 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 56 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 57 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 58 </div> </li> <li class="ant-picker-time-panel-cell" > <div class="ant-picker-time-panel-cell-inner" > 59 </div> </li> </ul> </div> </div> <div class="ant-picker-footer" > <ul class="ant-picker-ranges" > <li class="ant-picker-now" > <a class="ant-picker-now-btn" > Now </a> </li> <li class="ant-picker-ok" > <button class="ant-btn ant-btn-primary ant-btn-sm ant-btn-compact-item ant-btn-compact-first-item" disabled="" type="button" > <span> OK </span> </button> </li> </ul> </div> </div> </div> </div> </div> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Submit </span> </button> </div> <div class="ant-space-compact" > <div class="ant-select ant-cascader ant-select-compact-item ant-select-single ant-select-allow-clear ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > Select Address </span> </div> <div class="ant-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-cascader-dropdown ant-select-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: auto;" > <div> <div class="ant-cascader-menus" > <ul class="ant-cascader-menu" role="menu" > <li aria-checked="false" class="ant-cascader-menu-item ant-cascader-menu-item-expand" data-path-key="zhejiang" role="menuitemcheckbox" title="Zhejiang" > <div class="ant-cascader-menu-item-content" > Zhejiang </div> <div class="ant-cascader-menu-item-expand-icon" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </div> </li> <li aria-checked="false" class="ant-cascader-menu-item ant-cascader-menu-item-expand" data-path-key="jiangsu" role="menuitemcheckbox" title="Jiangsu" > <div class="ant-cascader-menu-item-content" > Jiangsu </div> <div class="ant-cascader-menu-item-expand-icon" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </div> </li> </ul> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> </div>, ] `; exports[`renders components/space/demo/compact-nested.tsx extend context correctly 2`] = `[]`; exports[`renders components/space/demo/debug.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > Button </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > Button </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Delete </span> </button> <div class="ant-popover ant-zoom-big-appear ant-zoom-big-appear-prepare ant-zoom-big ant-popconfirm ant-popover-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-popover-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-popover-content" > <div class="ant-popover-inner" role="tooltip" > <div class="ant-popover-inner-content" > <div class="ant-popconfirm-inner-content" > <div class="ant-popconfirm-message" > <span class="ant-popconfirm-message-icon" > <span aria-label="exclamation-circle" class="anticon anticon-exclamation-circle" 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> </span> <div class="ant-popconfirm-message-text" > <div class="ant-popconfirm-title" > Are you sure delete this task? </div> </div> </div> <div class="ant-popconfirm-buttons" > <button class="ant-btn ant-btn-default ant-btn-sm" type="button" > <span> No </span> </button> <button class="ant-btn ant-btn-primary ant-btn-sm" type="button" > <span> Yes </span> </button> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" disabled="" type="button" > <span> Delete </span> </button> <div class="ant-popover ant-zoom-big-appear ant-zoom-big-appear-prepare ant-zoom-big ant-popconfirm ant-popover-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-popover-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-popover-content" > <div class="ant-popover-inner" role="tooltip" > <div class="ant-popover-inner-content" > <div class="ant-popconfirm-inner-content" > <div class="ant-popconfirm-message" > <span class="ant-popconfirm-message-icon" > <span aria-label="exclamation-circle" class="anticon anticon-exclamation-circle" 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> </span> <div class="ant-popconfirm-message-text" > <div class="ant-popconfirm-title" > Are you sure delete this task? </div> </div> </div> <div class="ant-popconfirm-buttons" > <button class="ant-btn ant-btn-default ant-btn-sm" type="button" > <span> No </span> </button> <button class="ant-btn ant-btn-primary ant-btn-sm" type="button" > <span> Yes </span> </button> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > 1 </div> <div class="ant-space-item" > Button </div> </div> `; exports[`renders components/space/demo/debug.tsx extend context correctly 2`] = `[]`; exports[`renders components/space/demo/gap-in-line.tsx extend context correctly 1`] = ` Array [ <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, <div style="box-shadow: 0 0 5px green;" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap: wrap; column-gap: 8px; row-gap: 8px; width: 310px; background: blue;" > <div class="ant-space-item" > <div style="width: 150px; height: 100px; background: red;" /> </div> <div class="ant-space-item" > <div style="width: 150px; height: 100px; background: red;" /> </div> <div class="ant-space-item" > <div style="width: 150px; height: 100px; background: red;" /> </div> <div class="ant-space-item" > <div style="width: 150px; height: 100px; background: red;" /> </div> </div> </div>, ] `; exports[`renders components/space/demo/gap-in-line.tsx extend context correctly 2`] = `[]`; exports[`renders components/space/demo/size.tsx extend context correctly 1`] = ` Array [ <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-wrapper ant-radio-wrapper-checked" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="small" /> <span class="ant-radio-inner" /> </span> <span> small </span> </label> <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="middle" /> <span class="ant-radio-inner" /> </span> <span> middle </span> </label> <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="large" /> <span class="ant-radio-inner" /> </span> <span> large </span> </label> <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="customize" /> <span class="ant-radio-inner" /> </span> <span> customize </span> </label> </div>, <br />, <br />, <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Primary </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Default </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-dashed" type="button" > <span> Dashed </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-link" type="button" > <span> Link </span> </button> </div> </div>, ] `; exports[`renders components/space/demo/size.tsx extend context correctly 2`] = `[]`; exports[`renders components/space/demo/split.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <a class="ant-typography" > Link </a> </div> <span class="ant-space-item-split" > <div class="ant-divider ant-divider-vertical" role="separator" /> </span> <div class="ant-space-item" > <a class="ant-typography" > Link </a> </div> <span class="ant-space-item-split" > <div class="ant-divider ant-divider-vertical" role="separator" /> </span> <div class="ant-space-item" > <a class="ant-typography" > Link </a> </div> </div> `; exports[`renders components/space/demo/split.tsx extend context correctly 2`] = `[]`; exports[`renders components/space/demo/vertical.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-middle ant-space-gap-col-middle" style="display: flex;" > <div class="ant-space-item" > <div class="ant-card ant-card-bordered ant-card-small" > <div class="ant-card-head" > <div class="ant-card-head-wrapper" > <div class="ant-card-head-title" > Card </div> </div> </div> <div class="ant-card-body" > <p> Card content </p> <p> Card content </p> </div> </div> </div> <div class="ant-space-item" > <div class="ant-card ant-card-bordered ant-card-small" > <div class="ant-card-head" > <div class="ant-card-head-wrapper" > <div class="ant-card-head-title" > Card </div> </div> </div> <div class="ant-card-body" > <p> Card content </p> <p> Card content </p> </div> </div> </div> <div class="ant-space-item" > <div class="ant-card ant-card-bordered ant-card-small" > <div class="ant-card-head" > <div class="ant-card-head-wrapper" > <div class="ant-card-head-title" > Card </div> </div> </div> <div class="ant-card-body" > <p> Card content </p> <p> Card content </p> </div> </div> </div> </div> `; exports[`renders components/space/demo/vertical.tsx extend context correctly 2`] = `[]`; exports[`renders components/space/demo/wrap.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap: wrap; column-gap: 8px; row-gap: 16px;" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> </div> `; exports[`renders components/space/demo/wrap.tsx extend context correctly 2`] = `[]`;
5,984
0
petrpan-code/ant-design/ant-design/components/space/__tests__
petrpan-code/ant-design/ant-design/components/space/__tests__/__snapshots__/demo.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/space/demo/align.tsx correctly 1`] = ` <div class="space-align-container" > <div class="space-align-block" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > center </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Primary </span> </button> </div> <div class="ant-space-item" > <span class="mock-block" > Block </span> </div> </div> </div> <div class="space-align-block" > <div class="ant-space ant-space-horizontal ant-space-align-start ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > start </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Primary </span> </button> </div> <div class="ant-space-item" > <span class="mock-block" > Block </span> </div> </div> </div> <div class="space-align-block" > <div class="ant-space ant-space-horizontal ant-space-align-end ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > end </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Primary </span> </button> </div> <div class="ant-space-item" > <span class="mock-block" > Block </span> </div> </div> </div> <div class="space-align-block" > <div class="ant-space ant-space-horizontal ant-space-align-baseline ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > baseline </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Primary </span> </button> </div> <div class="ant-space-item" > <span class="mock-block" > Block </span> </div> </div> </div> </div> `; exports[`renders components/space/demo/base.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > Space </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-select" > <span class="ant-upload" role="button" tabindex="0" > <input accept="" style="display:none" type="file" /> <button class="ant-btn ant-btn-default" type="button" > <span class="ant-btn-icon" > <span aria-label="upload" class="anticon anticon-upload" role="img" > <svg aria-hidden="true" data-icon="upload" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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> </span> </span> <span> Click to Upload </span> </button> </span> </div> <div class="ant-upload-list ant-upload-list-text" /> </span> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Confirm </span> </button> </div> </div> `; exports[`renders components/space/demo/compact.tsx correctly 1`] = ` <div class="site-space-compact-wrapper" > <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" style="width:20%" type="text" value="0571" /> <input class="ant-input ant-input-compact-item ant-input-compact-last-item" style="width:30%" type="text" value="26888888" /> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-sm ant-input-compact-item ant-input-compact-first-item" style="width:calc(100% - 200px)" type="text" value="https://ant.design" /> <button class="ant-btn ant-btn-primary ant-btn-sm ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" style="width:calc(100% - 200px)" type="text" value="https://ant.design" /> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" style="width:calc(100% - 200px)" type="text" value="[email protected]:ant-design/ant-design.git" /> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> </button> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-single ant-select-allow-clear ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Zhejiang" > Zhejiang </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> <input class="ant-input ant-input-compact-item ant-input-compact-last-item" style="width:50%" type="text" value="Xihu District, Hangzhou" /> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width:50%" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity:1" > <span class="ant-select-selection-item" title="Zhejianggggg" > <span class="ant-select-selection-item-content" > Zhejianggggg </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity:1" > <div class="ant-select-selection-search" style="width:0" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" > </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> <input class="ant-input ant-input-compact-item ant-input-compact-last-item" style="width:50%" type="text" value="Xihu District, Hangzhou" /> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item ant-input-compact-first-item" style="width:30%" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" type="text" value="0571" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item" style="width:50%" > <span class="ant-input-wrapper ant-input-group" > <span class="ant-input-affix-wrapper" > <input class="ant-input" type="text" value="26888888" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item ant-input-compact-last-item" style="width:20%" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" type="text" value="+1" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Option1" > Option1 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <input class="ant-input ant-input-compact-item" style="width:50%" type="text" value="input content" /> <div class="ant-input-number ant-input-number-compact-item ant-input-number-compact-last-item" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="12" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="1" value="12" /> </div> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" style="width:50%" type="text" value="input content" /> <div class="ant-picker ant-picker-compact-item ant-picker-compact-last-item" style="width:50%" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="Select date" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-picker ant-picker-range ant-picker-compact-item ant-picker-compact-first-item" style="width:70%" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="Start date" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="End date" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left:0;width:0;position:absolute" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> <input class="ant-input ant-input-compact-item" style="width:30%" type="text" value="input content" /> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> 查 询 </span> </button> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" style="width:30%" type="text" value="input content" /> <div class="ant-picker ant-picker-range ant-picker-compact-item ant-picker-compact-last-item" style="width:70%" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="Start date" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="End date" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left:0;width:0;position:absolute" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Option1-1" > Option1-1 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-select ant-select-compact-item ant-select-compact-last-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Option2-2" > Option2-2 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Between" > Between </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <input class="ant-input ant-input-compact-item" placeholder="Minimum" style="width:100px;text-align:center" type="text" value="" /> <input class="ant-input ant-input-disabled site-input-split ant-input-compact-item" disabled="" placeholder="~" style="width:30px;border-left:0;border-right:0;pointer-events:none" type="text" value="" /> <input class="ant-input site-input-right ant-input-compact-item ant-input-compact-last-item" placeholder="Maximum" style="width:100px;text-align:center" type="text" value="" /> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-single ant-select-show-arrow" style="width:30%" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Sign Up" > Sign Up </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-select ant-select-compact-item ant-select-compact-last-item ant-select-auto-complete ant-select-single ant-select-show-search" style="width:70%" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > Email </span> </div> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-picker ant-picker-compact-item ant-picker-compact-first-item" style="width:70%" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="Select time" readonly="" size="10" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> </div> </div> <div class="ant-select ant-cascader ant-select-compact-item ant-select-compact-last-item ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width:70%" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > Select Address </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <div class="ant-picker ant-picker-range ant-picker-compact-item ant-picker-compact-first-item" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="Start time" readonly="" size="10" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="End time" readonly="" size="10" value="" /> </div> <div class="ant-picker-active-bar" style="left:0;width:0;position:absolute" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> </div> <div class="ant-select ant-tree-select ant-select-compact-item ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width:60%" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-item" title="leaf1" > leaf1 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> <br /> </div> `; exports[`renders components/space/demo/compact-button-vertical.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-space-compact ant-space-compact-vertical" > <button class="ant-btn ant-btn-default ant-btn-compact-vertical-item ant-btn-compact-vertical-first-item" type="button" > <span> Button 1 </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-vertical-item" type="button" > <span> Button 2 </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-vertical-item ant-btn-compact-vertical-last-item" type="button" > <span> Button 3 </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact ant-space-compact-vertical" > <button class="ant-btn ant-btn-dashed ant-btn-compact-vertical-item ant-btn-compact-vertical-first-item" type="button" > <span> Button 1 </span> </button> <button class="ant-btn ant-btn-dashed ant-btn-compact-vertical-item" type="button" > <span> Button 2 </span> </button> <button class="ant-btn ant-btn-dashed ant-btn-compact-vertical-item ant-btn-compact-vertical-last-item" type="button" > <span> Button 3 </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact ant-space-compact-vertical" > <button class="ant-btn ant-btn-primary ant-btn-compact-vertical-item ant-btn-compact-vertical-first-item" type="button" > <span> Button 1 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-compact-vertical-item" type="button" > <span> Button 2 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-compact-vertical-item ant-btn-compact-vertical-last-item" type="button" > <span> Button 3 </span> </button> </div> </div> </div> `; exports[`renders components/space/demo/compact-buttons.tsx correctly 1`] = ` <div> <div class="ant-space-compact ant-space-compact-block" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span class="ant-btn-icon" > <span aria-label="like" class="anticon anticon-like" role="img" > <svg aria-hidden="true" data-icon="like" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" /> </svg> </span> </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="comment" class="anticon anticon-comment" role="img" > <svg aria-hidden="true" data-icon="comment" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <defs> <style /> </defs> <path d="M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z" /> <path d="M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z" /> <path d="M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z" /> </svg> </span> </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z" /> </svg> </span> </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="heart" class="anticon anticon-heart" role="img" > <svg aria-hidden="true" data-icon="heart" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z" /> </svg> </span> </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="share-alt" class="anticon anticon-share-alt" role="img" > <svg aria-hidden="true" data-icon="share-alt" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z" /> </svg> </span> </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item ant-dropdown-trigger" type="button" > <span class="ant-btn-icon" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </span> </button> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> Button 1 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Button 2 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Button 3 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Button 4 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-icon-only ant-btn-compact-item" disabled="" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> <button class="ant-btn ant-btn-primary ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> </div> <br /> <div class="ant-space-compact ant-space-compact-block" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> Button 1 </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Button 2 </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Button 3 </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" disabled="" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Button 4 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item ant-dropdown-trigger" type="button" > <span class="ant-btn-icon" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </span> </button> </div> </div> `; exports[`renders components/space/demo/compact-debug.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-space-compact ant-space-compact-block" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> default Button </span> </button> <button class="ant-btn ant-btn-default ant-btn-dangerous ant-btn-compact-item" type="button" > <span> danger Button </span> </button> <button class="ant-btn ant-btn-dashed ant-btn-compact-item" type="button" > <span> dashed Button </span> </button> <button class="ant-btn ant-btn-text ant-btn-compact-item" type="button" > <span> text Button </span> </button> <button class="ant-btn ant-btn-link ant-btn-compact-item" type="button" > <span> Link Button </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" disabled="" type="button" > <span class="ant-btn-icon" > <span aria-label="download" class="anticon anticon-download" role="img" > <svg aria-hidden="true" data-icon="download" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M505.7 661a8 8 0 0012.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> </span> </span> </button> </div> </div> <div class="ant-space-item" > <br /> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> Prefix </span> </button> <span class="ant-input-group-wrapper ant-input-compact-item" > <span class="ant-input-wrapper ant-input-group" > <span class="ant-input-group-addon" > http:// </span> <input class="ant-input" type="text" value="mysite" /> <span class="ant-input-group-addon" > .com </span> </span> </span> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" placeholder="prefix" type="text" value="" /> <span class="ant-input-group-wrapper ant-input-compact-item" > <span class="ant-input-wrapper ant-input-group" > <span class="ant-input-group-addon" > <div class="ant-select select-before ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="http://" > http:// </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </span> <input class="ant-input" type="text" value="mysite" /> <span class="ant-input-group-addon" > <div class="ant-select select-after ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title=".com" > .com </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </span> </span> </span> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item ant-input-compact-first-item" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" type="text" value="" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" type="text" value="" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <span class="ant-input-group-wrapper ant-input-compact-item ant-input-compact-first-item" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" type="text" value="mysite" /> <span class="ant-input-group-addon" > <span aria-label="setting" class="anticon anticon-setting" role="img" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </span> </span> </span> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Submit </span> </button> <span class="ant-input-group-wrapper ant-input-compact-item ant-input-compact-last-item" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" placeholder="suffix" type="text" value="" /> <span class="ant-input-group-addon" > <span aria-label="setting" class="anticon anticon-setting" role="img" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </span> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <span class="ant-input-group-wrapper ant-input-compact-item ant-input-compact-first-item" > <span class="ant-input-wrapper ant-input-group" > <span class="ant-input-group-addon" > http:// </span> <span class="ant-input-affix-wrapper" > <input class="ant-input" type="text" value="mysite" /> <span class="ant-input-suffix" > .com </span> </span> </span> </span> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> Prefix </span> </button> <span class="ant-input-group-wrapper ant-input-compact-item" > <span class="ant-input-wrapper ant-input-group" > <span class="ant-input-group-addon" > <div class="ant-select ant-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width:150px" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > cascader </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </span> <input class="ant-input" type="text" value="mysite" /> </span> </span> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> </div> <div class="ant-space-item" > <br /> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item ant-btn-compact-last-item" type="button" > <span> debug Modal context </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-space-compact ant-space-compact-block ant-dropdown-button ant-dropdown-compact-item ant-dropdown-compact-first-item ant-dropdown-compact-last-item" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> debug Dropdown.Button context </span> </button> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item ant-dropdown-trigger" type="button" > <span class="ant-btn-icon" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </span> </button> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item ant-btn-compact-last-item" type="button" > <span> debug Drawer context </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" placeholder="Debug Popover context" type="text" value="" /> <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Settings </span> </button> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-input-number-group-wrapper ant-input-number-compact-item ant-input-number-compact-first-item ant-input-number-compact-last-item" > <div class="ant-input-number-wrapper ant-input-number-group" > <div class="ant-input-number-group-addon" > + </div> <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="100" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="1" value="100" /> </div> </div> <div class="ant-input-number-group-addon" > $ </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-select ant-select-compact-item ant-select-compact-first-item ant-select-compact-last-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Sign Up" > Sign Up </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-picker ant-picker-range ant-picker-compact-item ant-picker-compact-first-item ant-picker-compact-last-item" style="width:70%" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="Start date" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="End date" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left:0;width:0;position:absolute" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-input-number ant-input-number-compact-item ant-input-number-compact-first-item ant-input-number-compact-last-item" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="12" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="1" value="12" /> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact" > <div class="ant-select ant-cascader ant-select-compact-item ant-select-compact-first-item ant-select-compact-last-item ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width:70%" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > Select Address </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> <div class="ant-space-item" > <div class="ant-space-compact ant-space-compact-vertical" > <button class="ant-btn ant-btn-default ant-btn-compact-vertical-item ant-btn-compact-vertical-first-item ant-btn-compact-vertical-last-item" type="button" > <span> vertical compact button A </span> </button> </div> </div> </div> `; exports[`renders components/space/demo/compact-nested.tsx correctly 1`] = ` Array [ <div class="ant-space-compact ant-space-compact-block" > <div class="ant-space-compact" > <div class="ant-space-compact" > <input class="ant-input ant-input-compact-item ant-input-compact-first-item" placeholder="Typing..." style="width:90px" type="text" value="" /> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </div> <div class="ant-space-compact" > <div class="ant-input-number ant-input-number-compact-item" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="12" autocomplete="off" class="ant-input-number-input" role="spinbutton" step="1" value="12" /> </div> </div> <div class="ant-select ant-select-compact-item ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Opt1" > Opt1 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> </div> </div> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Separator </span> </button> <div class="ant-space-compact" > <div class="ant-space-compact" > <span class="ant-input-group-wrapper ant-input-search ant-input-compact-item" style="width:110px" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" placeholder="Search" type="text" value="" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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" /> </svg> </span> </span> </button> </span> </span> </span> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Submit </span> </button> </div> <div class="ant-space-compact" > <input class="ant-input ant-input-compact-item" type="text" value="mysite" /> <button class="ant-btn ant-btn-default ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> </button> </div> </div> </div>, <br />, <div class="ant-space-compact ant-space-compact-block" > <div class="ant-space-compact" > <div class="ant-picker ant-picker-compact-item ant-picker-compact-first-item" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="Select time" readonly="" size="10" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> </div> </div> <button class="ant-btn ant-btn-primary ant-btn-compact-item" type="button" > <span> Submit </span> </button> </div> <div class="ant-space-compact" > <div class="ant-select ant-cascader ant-select-compact-item ant-select-single ant-select-allow-clear ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="undefined_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" autocomplete="off" class="ant-select-selection-search-input" readonly="" role="combobox" style="opacity:0" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > Select Address </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select:none;-webkit-user-select:none" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> </div> <button class="ant-btn ant-btn-primary ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Submit </span> </button> </div> </div>, ] `; exports[`renders components/space/demo/debug.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > Button </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > Button </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Delete </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" disabled="" type="button" > <span> Delete </span> </button> </div> <div class="ant-space-item" > 1 </div> <div class="ant-space-item" > Button </div> </div> `; exports[`renders components/space/demo/gap-in-line.tsx correctly 1`] = ` Array [ <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, <div style="box-shadow:0 0 5px green" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap:wrap;column-gap:8px;row-gap:8px;width:310px;background:blue" > <div class="ant-space-item" > <div style="width:150px;height:100px;background:red" /> </div> <div class="ant-space-item" > <div style="width:150px;height:100px;background:red" /> </div> <div class="ant-space-item" > <div style="width:150px;height:100px;background:red" /> </div> <div class="ant-space-item" > <div style="width:150px;height:100px;background:red" /> </div> </div> </div>, ] `; exports[`renders components/space/demo/size.tsx correctly 1`] = ` Array [ <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-wrapper ant-radio-wrapper-checked" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="small" /> <span class="ant-radio-inner" /> </span> <span> small </span> </label> <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="middle" /> <span class="ant-radio-inner" /> </span> <span> middle </span> </label> <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="large" /> <span class="ant-radio-inner" /> </span> <span> large </span> </label> <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="customize" /> <span class="ant-radio-inner" /> </span> <span> customize </span> </label> </div>, <br />, <br />, <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Primary </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Default </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-dashed" type="button" > <span> Dashed </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-link" type="button" > <span> Link </span> </button> </div> </div>, ] `; exports[`renders components/space/demo/split.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <a class="ant-typography" > Link </a> </div> <span class="ant-space-item-split" > <div class="ant-divider ant-divider-vertical" role="separator" /> </span> <div class="ant-space-item" > <a class="ant-typography" > Link </a> </div> <span class="ant-space-item-split" > <div class="ant-divider ant-divider-vertical" role="separator" /> </span> <div class="ant-space-item" > <a class="ant-typography" > Link </a> </div> </div> `; exports[`renders components/space/demo/vertical.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-middle ant-space-gap-col-middle" style="display:flex" > <div class="ant-space-item" > <div class="ant-card ant-card-bordered ant-card-small" > <div class="ant-card-head" > <div class="ant-card-head-wrapper" > <div class="ant-card-head-title" > Card </div> </div> </div> <div class="ant-card-body" > <p> Card content </p> <p> Card content </p> </div> </div> </div> <div class="ant-space-item" > <div class="ant-card ant-card-bordered ant-card-small" > <div class="ant-card-head" > <div class="ant-card-head-wrapper" > <div class="ant-card-head-title" > Card </div> </div> </div> <div class="ant-card-body" > <p> Card content </p> <p> Card content </p> </div> </div> </div> <div class="ant-space-item" > <div class="ant-card ant-card-bordered ant-card-small" > <div class="ant-card-head" > <div class="ant-card-head-wrapper" > <div class="ant-card-head-title" > Card </div> </div> </div> <div class="ant-card-body" > <p> Card content </p> <p> Card content </p> </div> </div> </div> </div> `; exports[`renders components/space/demo/wrap.tsx correctly 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap:wrap;column-gap:8px;row-gap:16px" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> Button </span> </button> </div> </div> `;
5,985
0
petrpan-code/ant-design/ant-design/components/space/__tests__
petrpan-code/ant-design/ant-design/components/space/__tests__/__snapshots__/index.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Space rtl render component should be rendered correctly in RTL direction 1`] = `null`; exports[`Space should render correct with children 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > text1 </div> <div class="ant-space-item" > <span> text1 </span> </div> <div class="ant-space-item" > text3 </div> </div> `; exports[`Space should render width ConfigProvider 1`] = ` Array [ <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-large ant-space-gap-col-large" > <div class="ant-space-item" > <span> 1 </span> </div> <div class="ant-space-item" > <span> 2 </span> </div> </div>, <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-middle ant-space-gap-col-middle" > <div class="ant-space-item" > <span> 1 </span> </div> <div class="ant-space-item" > <span> 2 </span> </div> </div>, <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-large ant-space-gap-col-large" > <div class="ant-space-item" > <span> 1 </span> </div> <div class="ant-space-item" > <span> 2 </span> </div> </div>, ] `; exports[`Space should render width rtl 1`] = ` Array [ <div class="ant-space ant-space-horizontal ant-space-rtl ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span> 1 </span> </div> <div class="ant-space-item" > <span> 2 </span> </div> </div>, <div class="ant-space ant-space-horizontal ant-space-rtl ant-space-align-center ant-space-gap-row-middle ant-space-gap-col-middle" > <div class="ant-space-item" > <span> 1 </span> </div> <div class="ant-space-item" > <span> 2 </span> </div> </div>, <div class="ant-space ant-space-horizontal ant-space-rtl ant-space-align-center ant-space-gap-row-large ant-space-gap-col-large" > <div class="ant-space-item" > <span> 1 </span> </div> <div class="ant-space-item" > <span> 2 </span> </div> </div>, ] `; exports[`Space split 1`] = ` <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > text1 </div> <span class="ant-space-item-split" > - </span> <div class="ant-space-item" > <span> text1 </span> </div> <span class="ant-space-item-split" > - </span> <div class="ant-space-item" > text3 </div> </div> `;
5,986
0
petrpan-code/ant-design/ant-design/components/space/__tests__
petrpan-code/ant-design/ant-design/components/space/__tests__/__snapshots__/space-compact.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Space.Compact rtl render component should be rendered correctly in RTL direction 1`] = `null`; exports[`Space.Compact rtl render component should be rendered correctly in RTL direction 2`] = ` <div class="ant-space-compact ant-space-compact-rtl" > <button class="ant-btn ant-btn-primary ant-btn-rtl ant-btn-compact-item ant-btn-compact-first-item ant-btn-compact-last-item ant-btn-compact-item-rtl" type="button" > <span> Submit </span> </button> </div> `;
6,018
0
petrpan-code/ant-design/ant-design/components/spin
petrpan-code/ant-design/ant-design/components/spin/__tests__/delay.test.tsx
import { render } from '@testing-library/react'; import React from 'react'; import { debounce } from 'throttle-debounce'; import Spin from '..'; import { waitFakeTimer } from '../../../tests/utils'; jest.mock('throttle-debounce'); (debounce as jest.Mock).mockImplementation((...args: any[]) => jest.requireActual('throttle-debounce').debounce(...args), ); describe('delay spinning', () => { it("should render with delay when it's mounted with spinning=true and delay", () => { const { container } = render(<Spin spinning delay={500} />); expect(container.querySelector('.ant-spin')?.classList.contains('ant-spin-spinning')).toEqual( false, ); }); it('should render when delay is init set', async () => { jest.useFakeTimers(); const { container } = render(<Spin spinning delay={100} />); expect(container.querySelector('.ant-spin-spinning')).toBeFalsy(); await waitFakeTimer(); expect(container.querySelector('.ant-spin-spinning')).toBeTruthy(); jest.clearAllTimers(); jest.useRealTimers(); }); it('should cancel debounce function when unmount', () => { const debouncedFn = jest.fn(); const cancel = jest.fn(); (debouncedFn as any).cancel = cancel; (debounce as jest.Mock).mockReturnValueOnce(debouncedFn); const { unmount } = render(<Spin spinning delay={100} />); expect(cancel).not.toHaveBeenCalled(); unmount(); expect(cancel).toHaveBeenCalled(); }); it('should close immediately', async () => { jest.useFakeTimers(); const { container, rerender } = render(<Spin spinning delay={500} />); await waitFakeTimer(); expect(container.querySelector('.ant-spin-spinning')).toBeTruthy(); rerender(<Spin spinning={false} delay={500} />); expect(container.querySelector('.ant-spin-spinning')).toBeFalsy(); }); });
6,019
0
petrpan-code/ant-design/ant-design/components/spin
petrpan-code/ant-design/ant-design/components/spin/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('spin');
6,020
0
petrpan-code/ant-design/ant-design/components/spin
petrpan-code/ant-design/ant-design/components/spin/__tests__/demo.test.ts
import demoTest from '../../../tests/shared/demoTest'; demoTest('spin');
6,021
0
petrpan-code/ant-design/ant-design/components/spin
petrpan-code/ant-design/ant-design/components/spin/__tests__/index.test.tsx
import React from 'react'; import { render } from '@testing-library/react'; import Spin from '..'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { waitFakeTimer } from '../../../tests/utils'; describe('Spin', () => { mountTest(Spin); rtlTest(Spin); it('should only affect the spin element when set style to a nested <Spin>xx</Spin>', () => { const { container } = render( <Spin style={{ background: 'red' }}> <div>content</div> </Spin>, ); expect(container.querySelector<HTMLElement>('.ant-spin-nested-loading')?.style.length).toBe(0); expect(container.querySelector<HTMLElement>('.ant-spin')?.style.background).toBe('red'); }); it('should not apply nested styles when full screen', () => { const { container } = render( <Spin fullscreen> <div>content</div> </Spin>, ); expect(container.querySelector<HTMLElement>('ant-spin-nested-loading')).toBeNull(); }); it("should render custom indicator when it's set", () => { const customIndicator = <div className="custom-indicator" />; const { asFragment } = render(<Spin indicator={customIndicator} />); expect(asFragment().firstChild).toMatchSnapshot(); }); it('should be controlled by spinning', async () => { jest.useFakeTimers(); const { container, rerender } = render(<Spin spinning={false} />); expect(container.querySelector('.ant-spin-spinning')).toBeFalsy(); rerender(<Spin spinning />); await waitFakeTimer(); expect(container.querySelector('.ant-spin-spinning')).toBeTruthy(); jest.clearAllTimers(); jest.useRealTimers(); }); it('if indicator set null should not be render default indicator', () => { const { asFragment } = render(<Spin indicator={null as any} />); expect(asFragment().firstChild).toMatchSnapshot(); }); it('should support static method Spin.setDefaultIndicator', () => { Spin.setDefaultIndicator(<em className="custom-spinner" />); const { asFragment } = render(<Spin />); expect(asFragment().firstChild).toMatchSnapshot(); Spin.setDefaultIndicator(null); }); it('should render 0', () => { const { container } = render(<Spin>{0}</Spin>); expect(container.querySelector('.ant-spin-container')?.textContent).toBe('0'); }); it('warning tip without nest', () => { const errSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); const { container } = render(<Spin tip="Not Show" />); expect(container.querySelector('.ant-spin-text')).toBeFalsy(); expect(errSpy).toHaveBeenCalledWith('Warning: [antd: Spin] `tip` only work in nest pattern.'); errSpy.mockRestore(); }); });
6,022
0
petrpan-code/ant-design/ant-design/components/spin/__tests__
petrpan-code/ant-design/ant-design/components/spin/__tests__/__snapshots__/demo-extend.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/spin/demo/basic.tsx extend context correctly 1`] = ` <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> `; exports[`renders components/spin/demo/basic.tsx extend context correctly 2`] = `[]`; exports[`renders components/spin/demo/custom-indicator.tsx extend context correctly 1`] = ` <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <span aria-label="loading" class="anticon anticon-loading anticon-spin ant-spin-dot" role="img" style="font-size: 24px;" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </div> `; exports[`renders components/spin/demo/custom-indicator.tsx extend context correctly 2`] = `[]`; exports[`renders components/spin/demo/delayAndDebounce.tsx extend context correctly 1`] = ` Array [ <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-alert ant-alert-info ant-alert-with-description ant-alert-no-icon" data-show="true" role="alert" > <div class="ant-alert-content" > <div class="ant-alert-message" > Alert message title </div> <div class="ant-alert-description" > Further details about the context of this alert. </div> </div> </div> </div> </div>, <div style="margin-top: 16px;" > Loading state: <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div>, ] `; exports[`renders components/spin/demo/delayAndDebounce.tsx extend context correctly 2`] = `[]`; exports[`renders components/spin/demo/fullscreen.tsx extend context correctly 1`] = ` Array [ <button class="ant-btn ant-btn-default" type="button" > <span> Show fullscreen for 3s </span> </button>, <div aria-busy="false" aria-live="polite" class="ant-spin ant-spin-fullscreen" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div>, ] `; exports[`renders components/spin/demo/fullscreen.tsx extend context correctly 2`] = `[]`; exports[`renders components/spin/demo/inside.tsx extend context correctly 1`] = ` <div class="example" > <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> </div> `; exports[`renders components/spin/demo/inside.tsx extend context correctly 2`] = `[]`; exports[`renders components/spin/demo/nested.tsx extend context correctly 1`] = ` Array [ <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-alert ant-alert-info ant-alert-with-description ant-alert-no-icon" data-show="true" role="alert" > <div class="ant-alert-content" > <div class="ant-alert-message" > Alert message title </div> <div class="ant-alert-description" > Further details about the context of this alert. </div> </div> </div> </div> </div>, <div style="margin-top: 16px;" > Loading state: <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div>, ] `; exports[`renders components/spin/demo/nested.tsx extend context correctly 2`] = `[]`; exports[`renders components/spin/demo/size.tsx extend context correctly 1`] = ` <div class="ant-flex ant-flex-align-center ant-flex-gap-middle" > <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-sm ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-lg ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> </div> `; exports[`renders components/spin/demo/size.tsx extend context correctly 2`] = `[]`; exports[`renders components/spin/demo/tip.tsx extend context correctly 1`] = ` <div class="ant-flex ant-flex-align-stretch ant-flex-gap-small ant-flex-vertical" > <div class="ant-flex ant-flex-gap-small" > <div class="ant-spin-nested-loading" > <div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-sm ant-spin-spinning ant-spin-show-text" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> <div class="ant-spin-text" > Loading </div> </div> </div> <div class="ant-spin-container ant-spin-blur" > <div class="content" /> </div> </div> <div class="ant-spin-nested-loading" > <div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning ant-spin-show-text" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> <div class="ant-spin-text" > Loading </div> </div> </div> <div class="ant-spin-container ant-spin-blur" > <div class="content" /> </div> </div> <div class="ant-spin-nested-loading" > <div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-lg ant-spin-spinning ant-spin-show-text" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> <div class="ant-spin-text" > Loading </div> </div> </div> <div class="ant-spin-container ant-spin-blur" > <div class="content" /> </div> </div> </div> <div class="ant-spin-nested-loading" > <div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning ant-spin-show-text" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> <div class="ant-spin-text" > Loading... </div> </div> </div> <div class="ant-spin-container ant-spin-blur" > <div class="ant-alert ant-alert-info ant-alert-with-description ant-alert-no-icon" data-show="true" role="alert" > <div class="ant-alert-content" > <div class="ant-alert-message" > Alert message title </div> <div class="ant-alert-description" > Further details about the context of this alert. </div> </div> </div> </div> </div> </div> `; exports[`renders components/spin/demo/tip.tsx extend context correctly 2`] = `[]`;
6,023
0
petrpan-code/ant-design/ant-design/components/spin/__tests__
petrpan-code/ant-design/ant-design/components/spin/__tests__/__snapshots__/demo.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/spin/demo/basic.tsx correctly 1`] = ` <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> `; exports[`renders components/spin/demo/custom-indicator.tsx correctly 1`] = ` <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <span aria-label="loading" class="anticon anticon-loading anticon-spin ant-spin-dot" role="img" style="font-size:24px" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </div> `; exports[`renders components/spin/demo/delayAndDebounce.tsx correctly 1`] = ` Array [ <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-alert ant-alert-info ant-alert-with-description ant-alert-no-icon" data-show="true" role="alert" > <div class="ant-alert-content" > <div class="ant-alert-message" > Alert message title </div> <div class="ant-alert-description" > Further details about the context of this alert. </div> </div> </div> </div> </div>, <div style="margin-top:16px" > Loading state: <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div>, ] `; exports[`renders components/spin/demo/fullscreen.tsx correctly 1`] = ` Array [ <button class="ant-btn ant-btn-default" type="button" > <span> Show fullscreen for 3s </span> </button>, <div aria-busy="false" aria-live="polite" class="ant-spin ant-spin-fullscreen" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div>, ] `; exports[`renders components/spin/demo/inside.tsx correctly 1`] = ` <div class="example" > <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> </div> `; exports[`renders components/spin/demo/nested.tsx correctly 1`] = ` Array [ <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-alert ant-alert-info ant-alert-with-description ant-alert-no-icon" data-show="true" role="alert" > <div class="ant-alert-content" > <div class="ant-alert-message" > Alert message title </div> <div class="ant-alert-description" > Further details about the context of this alert. </div> </div> </div> </div> </div>, <div style="margin-top:16px" > Loading state: <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div>, ] `; exports[`renders components/spin/demo/size.tsx correctly 1`] = ` <div class="ant-flex ant-flex-align-center ant-flex-gap-middle" > <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-sm ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-lg ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> </div> `; exports[`renders components/spin/demo/tip.tsx correctly 1`] = ` <div class="ant-flex ant-flex-align-stretch ant-flex-gap-small ant-flex-vertical" > <div class="ant-flex ant-flex-gap-small" > <div class="ant-spin-nested-loading" > <div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-sm ant-spin-spinning ant-spin-show-text" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> <div class="ant-spin-text" > Loading </div> </div> </div> <div class="ant-spin-container ant-spin-blur" > <div class="content" /> </div> </div> <div class="ant-spin-nested-loading" > <div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning ant-spin-show-text" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> <div class="ant-spin-text" > Loading </div> </div> </div> <div class="ant-spin-container ant-spin-blur" > <div class="content" /> </div> </div> <div class="ant-spin-nested-loading" > <div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-lg ant-spin-spinning ant-spin-show-text" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> <div class="ant-spin-text" > Loading </div> </div> </div> <div class="ant-spin-container ant-spin-blur" > <div class="content" /> </div> </div> </div> <div class="ant-spin-nested-loading" > <div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning ant-spin-show-text" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> <div class="ant-spin-text" > Loading... </div> </div> </div> <div class="ant-spin-container ant-spin-blur" > <div class="ant-alert ant-alert-info ant-alert-with-description ant-alert-no-icon" data-show="true" role="alert" > <div class="ant-alert-content" > <div class="ant-alert-message" > Alert message title </div> <div class="ant-alert-description" > Further details about the context of this alert. </div> </div> </div> </div> </div> </div> `;
6,024
0
petrpan-code/ant-design/ant-design/components/spin/__tests__
petrpan-code/ant-design/ant-design/components/spin/__tests__/__snapshots__/index.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Spin if indicator set null should not be render default indicator 1`] = ` <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" /> `; exports[`Spin rtl render component should be rendered correctly in RTL direction 1`] = ` <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning ant-spin-rtl" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> `; exports[`Spin should render custom indicator when it's set 1`] = ` <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <div class="custom-indicator ant-spin-dot" /> </div> `; exports[`Spin should support static method Spin.setDefaultIndicator 1`] = ` <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <em class="custom-spinner ant-spin-dot" /> </div> `;
6,049
0
petrpan-code/ant-design/ant-design/components/statistic
petrpan-code/ant-design/ant-design/components/statistic/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('statistic');
6,050
0
petrpan-code/ant-design/ant-design/components/statistic
petrpan-code/ant-design/ant-design/components/statistic/__tests__/demo.test.ts
import demoTest from '../../../tests/shared/demoTest'; demoTest('statistic');
6,051
0
petrpan-code/ant-design/ant-design/components/statistic
petrpan-code/ant-design/ant-design/components/statistic/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Statistic image', () => { imageDemoTest('statistic', { skip: ['countdown.tsx'] }); });
6,052
0
petrpan-code/ant-design/ant-design/components/statistic
petrpan-code/ant-design/ant-design/components/statistic/__tests__/index.test.tsx
import dayjs from 'dayjs'; import MockDate from 'mockdate'; import React from 'react'; import Statistic from '..'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { fireEvent, render, waitFakeTimer } from '../../../tests/utils'; import { formatTimeStr } from '../utils'; describe('Statistic', () => { mountTest(Statistic); mountTest(Statistic.Countdown); rtlTest(Statistic); beforeAll(() => { MockDate.set(dayjs('2018-11-28 00:00:00').valueOf()); }); afterAll(() => { MockDate.reset(); }); it('`-` is not a number', () => { const { container } = render(<Statistic value="-" />); expect(container.querySelector('.ant-statistic-content')!.textContent).toEqual('-'); }); it('customize formatter', () => { const formatter = jest.fn(() => 93); const { container } = render(<Statistic value={1128} formatter={formatter} />); expect(formatter).toHaveBeenCalledWith(1128); expect(container.querySelector('.ant-statistic-content-value')!.textContent).toEqual('93'); }); it('groupSeparator', () => { const { container } = render(<Statistic value={1128} groupSeparator="__TEST__" />); expect(container.querySelector('.ant-statistic-content-value')!.textContent).toEqual( '1__TEST__128', ); }); it('not a number', () => { const { container } = render(<Statistic value="bamboo" />); expect(container.querySelector('.ant-statistic-content-value')!.textContent).toEqual('bamboo'); }); it('support negative number', () => { const { asFragment } = render( <Statistic title="Account Balance (CNY)" value={-112893.12345} precision={2} />, ); expect(asFragment().firstChild).toMatchSnapshot(); }); it('allow negative precision', () => { [ [-1, -1112893.1212, '-1,112,893'], [-2, -1112893.1212, '-1,112,893'], [-3, -1112893.1212, '-1,112,893'], [-1, -1112893, '-1,112,893'], [-1, 1112893, '1,112,893'], ].forEach(([precision, value, expectValue]: [number, number, string]) => { const { container } = render(<Statistic precision={precision} value={value} />); expect(container.querySelector('.ant-statistic-content-value-int')!.textContent).toEqual( expectValue, ); expect(container.querySelectorAll('.ant-statistic-content-value-decimal').length).toBe(0); }); }); it('loading with skeleton', async () => { let loading = false; const { container, rerender } = render( <Statistic title="Active Users" value={112112} loading={loading} />, ); expect(container.querySelectorAll('.ant-skeleton')).toHaveLength(0); expect(container.querySelectorAll('.ant-statistic-content')).toHaveLength(1); loading = true; rerender(<Statistic title="Active Users" value={112112} loading={loading} />); expect(container.querySelectorAll('.ant-skeleton')).toHaveLength(1); expect(container.querySelectorAll('.ant-statistic-content')).toHaveLength(0); }); describe('Countdown', () => { it('render correctly', () => { const now = dayjs() .add(2, 'd') .add(11, 'h') .add(28, 'm') .add(9, 's') .add(3, 'ms') .toISOString(); [ ['H:m:s', '59:28:9'], ['HH:mm:ss', '59:28:09'], ['HH:mm:ss:SSS', '59:28:09:003'], ['DD-HH:mm:ss', '02-11:28:09'], ].forEach(([format, value]) => { const { container } = render(<Statistic.Countdown format={format} value={now} />); expect(container.querySelector('.ant-statistic-content-value')!.textContent).toEqual(value); }); }); it('time going', async () => { jest.useFakeTimers(); const now = Date.now() + 1000; const onFinish = jest.fn(); const { unmount } = render(<Statistic.Countdown value={now} onFinish={onFinish} />); await waitFakeTimer(10); unmount(); expect(onFinish).not.toHaveBeenCalled(); jest.clearAllTimers(); jest.useRealTimers(); }); it('responses hover events', () => { const onMouseEnter = jest.fn(); const onMouseLeave = jest.fn(); const { container } = render( <Statistic onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave} />, ); fireEvent.mouseEnter(container.firstChild!); expect(onMouseEnter).toHaveBeenCalled(); fireEvent.mouseLeave(container.firstChild!); expect(onMouseLeave).toHaveBeenCalled(); }); it('responses hover events for Countdown', () => { const onMouseEnter = jest.fn(); const onMouseLeave = jest.fn(); const { container } = render( <Statistic.Countdown onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave} />, ); fireEvent.mouseEnter(container.firstChild!); expect(onMouseEnter).toHaveBeenCalled(); fireEvent.mouseLeave(container.firstChild!); expect(onMouseLeave).toHaveBeenCalled(); }); describe('time onchange', () => { it("called if time has't passed", async () => { jest.useFakeTimers(); const deadline = Date.now() + 10 * 1000; let remainingTime; const onChange = (value: number) => { remainingTime = value; }; render(<Statistic.Countdown value={deadline} onChange={onChange} />); // container.update(); await waitFakeTimer(100); expect(remainingTime).toBeGreaterThan(0); jest.clearAllTimers(); jest.useRealTimers(); }); }); describe('time finished', () => { it('not call if time already passed', () => { const now = Date.now() - 1000; const onFinish = jest.fn(); render(<Statistic.Countdown value={now} onFinish={onFinish} />); expect(onFinish).not.toHaveBeenCalled(); }); it('called if finished', async () => { jest.useFakeTimers(); const now = Date.now() + 10; const onFinish = jest.fn(); render(<Statistic.Countdown value={now} onFinish={onFinish} />); await waitFakeTimer(); expect(onFinish).toHaveBeenCalled(); jest.clearAllTimers(); jest.useRealTimers(); }); }); }); describe('utils', () => { it('format should support escape', () => { expect(formatTimeStr(1000 * 60 * 60 * 24, 'D [Day]')).toBe('1 Day'); }); }); });
6,053
0
petrpan-code/ant-design/ant-design/components/statistic/__tests__
petrpan-code/ant-design/ant-design/components/statistic/__tests__/__snapshots__/demo-extend.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/statistic/demo/animated.tsx extend context correctly 1`] = ` <div class="ant-row" style="margin-left: -8px; margin-right: -8px;" > <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active Users </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span> 0 </span> </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Account Balance (CNY) </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span> 0 </span> </span> </div> </div> </div> </div> `; exports[`renders components/statistic/demo/animated.tsx extend context correctly 2`] = `[]`; exports[`renders components/statistic/demo/basic.tsx extend context correctly 1`] = ` <div class="ant-row" style="margin-left: -8px; margin-right: -8px;" > <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active Users </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Account Balance (CNY) </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> </div> </div> <button class="ant-btn ant-btn-primary" style="margin-top: 16px;" type="button" > <span> Recharge </span> </button> </div> <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active Users </div> <div class="ant-skeleton ant-statistic-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" /> </div> </div> </div> </div> </div> `; exports[`renders components/statistic/demo/basic.tsx extend context correctly 2`] = `[]`; exports[`renders components/statistic/demo/card.tsx extend context correctly 1`] = ` <div class="ant-row" style="margin-left: -8px; margin-right: -8px;" > <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-card" > <div class="ant-card-body" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active </div> <div class="ant-statistic-content" style="color: rgb(63, 134, 0);" > <span class="ant-statistic-content-prefix" > <span aria-label="arrow-up" class="anticon anticon-arrow-up" role="img" > <svg aria-hidden="true" data-icon="arrow-up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z" /> </svg> </span> </span> <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 11 </span> <span class="ant-statistic-content-value-decimal" > .28 </span> </span> <span class="ant-statistic-content-suffix" > % </span> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-card" > <div class="ant-card-body" > <div class="ant-statistic" > <div class="ant-statistic-title" > Idle </div> <div class="ant-statistic-content" style="color: rgb(207, 19, 34);" > <span class="ant-statistic-content-prefix" > <span aria-label="arrow-down" class="anticon anticon-arrow-down" role="img" > <svg aria-hidden="true" data-icon="arrow-down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z" /> </svg> </span> </span> <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 9 </span> <span class="ant-statistic-content-value-decimal" > .30 </span> </span> <span class="ant-statistic-content-suffix" > % </span> </div> </div> </div> </div> </div> </div> `; exports[`renders components/statistic/demo/card.tsx extend context correctly 2`] = `[]`; exports[`renders components/statistic/demo/component-token.tsx extend context correctly 1`] = ` <div class="ant-row" style="margin-left: -8px; margin-right: -8px;" > <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active Users </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Account Balance (CNY) </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> </div> </div> <button class="ant-btn ant-btn-primary" style="margin-top: 16px;" type="button" > <span> Recharge </span> </button> </div> <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active Users </div> <div class="ant-skeleton ant-statistic-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" /> </div> </div> </div> </div> </div> `; exports[`renders components/statistic/demo/component-token.tsx extend context correctly 2`] = `[]`; exports[`renders components/statistic/demo/countdown.tsx extend context correctly 1`] = ` <div class="ant-row" style="margin-left: -8px; margin-right: -8px;" > <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Countdown </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 48:00:30 </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Million Seconds </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 48:00:30:000 </span> </div> </div> </div> <div class="ant-col ant-col-24" style="padding-left: 8px; padding-right: 8px; margin-top: 32px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Day Level </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 2 天 0 时 0 分 30 秒 </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Countdown </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 00:00:10 </span> </div> </div> </div> </div> `; exports[`renders components/statistic/demo/countdown.tsx extend context correctly 2`] = `[]`; exports[`renders components/statistic/demo/unit.tsx extend context correctly 1`] = ` <div class="ant-row" style="margin-left: -8px; margin-right: -8px;" > <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Feedback </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <span aria-label="like" class="anticon anticon-like" role="img" > <svg aria-hidden="true" data-icon="like" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" /> </svg> </span> </span> <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 1,128 </span> </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-statistic" > <div class="ant-statistic-title" > Unmerged </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 93 </span> </span> <span class="ant-statistic-content-suffix" > / 100 </span> </div> </div> </div> </div> `; exports[`renders components/statistic/demo/unit.tsx extend context correctly 2`] = `[]`;
6,054
0
petrpan-code/ant-design/ant-design/components/statistic/__tests__
petrpan-code/ant-design/ant-design/components/statistic/__tests__/__snapshots__/demo.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/statistic/demo/animated.tsx correctly 1`] = ` <div class="ant-row" style="margin-left:-8px;margin-right:-8px" > <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active Users </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span /> </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Account Balance (CNY) </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span /> </span> </div> </div> </div> </div> `; exports[`renders components/statistic/demo/basic.tsx correctly 1`] = ` <div class="ant-row" style="margin-left:-8px;margin-right:-8px" > <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active Users </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Account Balance (CNY) </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> </div> </div> <button class="ant-btn ant-btn-primary" style="margin-top:16px" type="button" > <span> Recharge </span> </button> </div> <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active Users </div> <div class="ant-skeleton ant-statistic-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" /> </div> </div> </div> </div> </div> `; exports[`renders components/statistic/demo/card.tsx correctly 1`] = ` <div class="ant-row" style="margin-left:-8px;margin-right:-8px" > <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-card" > <div class="ant-card-body" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active </div> <div class="ant-statistic-content" style="color:#3f8600" > <span class="ant-statistic-content-prefix" > <span aria-label="arrow-up" class="anticon anticon-arrow-up" role="img" > <svg aria-hidden="true" data-icon="arrow-up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z" /> </svg> </span> </span> <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 11 </span> <span class="ant-statistic-content-value-decimal" > .28 </span> </span> <span class="ant-statistic-content-suffix" > % </span> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-card" > <div class="ant-card-body" > <div class="ant-statistic" > <div class="ant-statistic-title" > Idle </div> <div class="ant-statistic-content" style="color:#cf1322" > <span class="ant-statistic-content-prefix" > <span aria-label="arrow-down" class="anticon anticon-arrow-down" role="img" > <svg aria-hidden="true" data-icon="arrow-down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z" /> </svg> </span> </span> <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 9 </span> <span class="ant-statistic-content-value-decimal" > .30 </span> </span> <span class="ant-statistic-content-suffix" > % </span> </div> </div> </div> </div> </div> </div> `; exports[`renders components/statistic/demo/component-token.tsx correctly 1`] = ` <div class="ant-row" style="margin-left:-8px;margin-right:-8px" > <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active Users </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Account Balance (CNY) </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> </div> </div> <button class="ant-btn ant-btn-primary" style="margin-top:16px" type="button" > <span> Recharge </span> </button> </div> <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Active Users </div> <div class="ant-skeleton ant-statistic-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" /> </div> </div> </div> </div> </div> `; exports[`renders components/statistic/demo/countdown.tsx correctly 1`] = ` <div class="ant-row" style="margin-left:-8px;margin-right:-8px" > <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Countdown </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 48:00:30 </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Million Seconds </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 48:00:30:000 </span> </div> </div> </div> <div class="ant-col ant-col-24" style="padding-left:8px;padding-right:8px;margin-top:32px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Day Level </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 2 天 0 时 0 分 30 秒 </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Countdown </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 00:00:10 </span> </div> </div> </div> </div> `; exports[`renders components/statistic/demo/unit.tsx correctly 1`] = ` <div class="ant-row" style="margin-left:-8px;margin-right:-8px" > <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Feedback </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <span aria-label="like" class="anticon anticon-like" role="img" > <svg aria-hidden="true" data-icon="like" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" /> </svg> </span> </span> <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 1,128 </span> </span> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left:8px;padding-right:8px" > <div class="ant-statistic" > <div class="ant-statistic-title" > Unmerged </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 93 </span> </span> <span class="ant-statistic-content-suffix" > / 100 </span> </div> </div> </div> </div> `;
6,055
0
petrpan-code/ant-design/ant-design/components/statistic/__tests__
petrpan-code/ant-design/ant-design/components/statistic/__tests__/__snapshots__/index.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Statistic rtl render component should be rendered correctly in RTL direction 1`] = ` <div class="ant-statistic ant-statistic-rtl" > <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 0 </span> </span> </div> </div> `; exports[`Statistic support negative number 1`] = ` <div class="ant-statistic" > <div class="ant-statistic-title" > Account Balance (CNY) </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > -112,893 </span> <span class="ant-statistic-content-value-decimal" > .12 </span> </span> </div> </div> `;
6,073
0
petrpan-code/ant-design/ant-design/components/steps
petrpan-code/ant-design/ant-design/components/steps/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('steps');
6,074
0
petrpan-code/ant-design/ant-design/components/steps
petrpan-code/ant-design/ant-design/components/steps/__tests__/demo.test.ts
import demoTest from '../../../tests/shared/demoTest'; demoTest('steps');
6,075
0
petrpan-code/ant-design/ant-design/components/steps
petrpan-code/ant-design/ant-design/components/steps/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Steps image', () => { imageDemoTest('steps', { skip: ['icon.tsx'] }); });
6,076
0
petrpan-code/ant-design/ant-design/components/steps
petrpan-code/ant-design/ant-design/components/steps/__tests__/index.test.tsx
import React from 'react'; import Steps from '..'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { fireEvent, render, screen } from '../../../tests/utils'; import { resetWarned } from '../../_util/warning'; import ConfigProvider from '../../config-provider'; describe('Steps', () => { mountTest(Steps); rtlTest(Steps); const description = 'This is a description.'; it('should render correct', () => { const { container } = render( <Steps items={[ { title: 'Finished', description, }, { title: 'In Progress', description, subTitle: 'Left 00:00:08', }, { title: 'Waiting', description, }, ]} />, ); expect(container.firstChild).toMatchSnapshot(); }); it('items out of render function', () => { const items = [ { title: '已完成', }, { title: '进行中', }, { title: '待运行', description: 'Hello World!', }, { title: '待运行', }, ]; const ControlSteps = () => { const [current, setCurrent] = React.useState(0); return ( <Steps current={current} onChange={(val: number) => { // eslint-disable-next-line no-console console.log('Change:', val); setCurrent(val); }} items={items} /> ); }; const { container } = render(<ControlSteps />); expect( container.querySelectorAll('.ant-steps-item')[1].classList.contains('ant-steps-item-process'), ).toBe(false); fireEvent.click(screen.getByText(/进行中/i)); expect( container.querySelectorAll('.ant-steps-item')[1].classList.contains('ant-steps-item-process'), ).toBe(true); }); it('should render correct when use Step', () => { const { container } = render( <Steps> <Steps.Step title="Finished" description={description} /> <Steps.Step title="In Progress" description={description} subTitle="Left 00:00:08" /> <Steps.Step title="Waiting" description={description} /> </Steps>, ); expect(container.firstChild).toMatchSnapshot(); }); it('should render correct when use null', () => { const { container } = render(<Steps>null</Steps>); expect(container.firstChild).toMatchSnapshot(); }); it('deprecated warning', () => { resetWarned(); const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); const { container } = render( <Steps> <Steps.Step title="Finished" description={description} /> </Steps>, ); expect(container.querySelectorAll('.ant-steps-item')).toHaveLength(1); expect(errorSpy).toHaveBeenCalledWith( 'Warning: [antd: Menu] `Step` is deprecated. Please use `items` instead.', ); errorSpy.mockRestore(); }); it('Steps should inherit the size from ConfigProvider if the componentSize is set ', () => { const { container } = render( <ConfigProvider componentSize="small"> <Steps items={[{ title: 'In Progress' }, { title: 'Finished' }]} /> </ConfigProvider>, ); expect(container.querySelectorAll('.ant-steps-small')).toHaveLength(1); }); });
6,077
0
petrpan-code/ant-design/ant-design/components/steps/__tests__
petrpan-code/ant-design/ant-design/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/steps/demo/clickable.tsx extend context correctly 1`] = ` Array [ <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-divider ant-divider-horizontal" role="separator" />, <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/clickable.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/component-token.tsx extend context correctly 1`] = ` Array [ <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-vertical ant-steps-small" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-finish ant-steps-item-custom ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="user" class="anticon anticon-user" role="img" > <svg aria-hidden="true" data-icon="user" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Login </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-finish ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="solution" class="anticon anticon-solution" role="img" > <svg aria-hidden="true" data-icon="solution" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Verification </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="loading" class="anticon anticon-loading anticon-spin" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Pay </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Done </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-vertical ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-vertical ant-steps-navigation" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 <div class="ant-steps-item-subtitle" title="00:00:05" > 00:00:05 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 <div class="ant-steps-item-subtitle" title="00:01:02" > 00:01:02 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 <div class="ant-steps-item-subtitle" title="waiting for longlong time" > waiting for longlong time </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/component-token.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/customized-progress-dot.tsx extend context correctly 1`] = ` <div class="ant-steps ant-steps-vertical ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> <div class="ant-popover ant-zoom-big-appear ant-zoom-big-appear-prepare ant-zoom-big ant-popover-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-popover-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-popover-content" > <div class="ant-popover-inner" role="tooltip" > <div class="ant-popover-inner-content" > <span> step 0 status: finish </span> </div> </div> </div> </div> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > You can hover on the dot. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> <div class="ant-popover ant-zoom-big-appear ant-zoom-big-appear-prepare ant-zoom-big ant-popover-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-popover-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-popover-content" > <div class="ant-popover-inner" role="tooltip" > <div class="ant-popover-inner-content" > <span> step 1 status: process </span> </div> </div> </div> </div> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > You can hover on the dot. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> <div class="ant-popover ant-zoom-big-appear ant-zoom-big-appear-prepare ant-zoom-big ant-popover-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-popover-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-popover-content" > <div class="ant-popover-inner" role="tooltip" > <div class="ant-popover-inner-content" > <span> step 2 status: wait </span> </div> </div> </div> </div> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > You can hover on the dot. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> <div class="ant-popover ant-zoom-big-appear ant-zoom-big-appear-prepare ant-zoom-big ant-popover-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-popover-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-popover-content" > <div class="ant-popover-inner" role="tooltip" > <div class="ant-popover-inner-content" > <span> step 3 status: wait </span> </div> </div> </div> </div> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > You can hover on the dot. </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/customized-progress-dot.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/error.tsx extend context correctly 1`] = ` <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-finish ant-steps-next-error" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-error ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="close" class="anticon anticon-close ant-steps-error-icon" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Process </div> <div class="ant-steps-item-description" > This is a description </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/error.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/icon.tsx extend context correctly 1`] = ` <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-finish ant-steps-item-custom ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="user" class="anticon anticon-user" role="img" > <svg aria-hidden="true" data-icon="user" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Login </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-finish ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="solution" class="anticon anticon-solution" role="img" > <svg aria-hidden="true" data-icon="solution" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Verification </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="loading" class="anticon anticon-loading anticon-spin" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Pay </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Done </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/icon.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/inline.tsx extend context correctly 1`] = ` <div> <div class="ant-list ant-list-split" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" > <img src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <a href="https://ant.design" > Ant Design Title 1 </a> </h4> <div class="ant-list-item-meta-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical ant-steps-dot ant-steps-inline" style="margin-top: 8px;" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a Step 1. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 1. </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a Step 2. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 2. </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a Step 3. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 3. </div> </div> </div> </div> </li> <li class="ant-list-item" > <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" > <img src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <a href="https://ant.design" > Ant Design Title 2 </a> </h4> <div class="ant-list-item-meta-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical ant-steps-dot ant-steps-inline" style="margin-top: 8px;" > <div class="ant-steps-item ant-steps-item-finish ant-steps-next-error" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a Step 1. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 1. </div> </div> </div> <div class="ant-steps-item ant-steps-item-error ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a Step 2. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 2. </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a Step 3. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 3. </div> </div> </div> </div> </li> <li class="ant-list-item" > <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" > <img src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <a href="https://ant.design" > Ant Design Title 3 </a> </h4> <div class="ant-list-item-meta-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical ant-steps-dot ant-steps-inline" style="margin-top: 8px;" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a Step 1. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 1. </div> </div> </div> <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a Step 2. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 2. </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a Step 3. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 3. </div> </div> </div> </div> </li> <li class="ant-list-item" > <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" > <img src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <a href="https://ant.design" > Ant Design Title 4 </a> </h4> <div class="ant-list-item-meta-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical ant-steps-dot ant-steps-inline" style="margin-top: 8px;" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a Step 1. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 1. </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a Step 2. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 2. </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a Step 3. </div> </div> </div> </div> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > This is a Step 3. </div> </div> </div> </div> </li> </ul> </div> </div> </div> </div> `; exports[`renders components/steps/demo/inline.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/label-placement.tsx extend context correctly 1`] = ` Array [ <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <br />, <div class="ant-steps ant-steps-vertical ant-steps-with-progress" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="60" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width: 40px; height: 40px; font-size: 12px;" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="1" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 122.63715789784806; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke: #52C41A; stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 301.58289474462015; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <br />, <div class="ant-steps ant-steps-vertical ant-steps-small" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/label-placement.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/nav.tsx extend context correctly 1`] = ` Array [ <div class="ant-steps ant-steps-vertical site-navigation-steps ant-steps-small ant-steps-navigation" > <div class="ant-steps-item ant-steps-item-finish ant-steps-item-active" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 <div class="ant-steps-item-subtitle" title="00:00:05" > 00:00:05 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 <div class="ant-steps-item-subtitle" title="00:01:02" > 00:01:02 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 <div class="ant-steps-item-subtitle" title="waiting for longlong time" > waiting for longlong time </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-vertical site-navigation-steps ant-steps-navigation" > <div class="ant-steps-item ant-steps-item-finish ant-steps-item-active" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 4 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 4 </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-vertical site-navigation-steps ant-steps-small ant-steps-navigation" > <div class="ant-steps-item ant-steps-item-finish ant-steps-item-active" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > finish 1 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > finish 2 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > current process </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait ant-steps-item-disabled" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 4 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > wait </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/nav.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/progress.tsx extend context correctly 1`] = ` <div class="ant-steps ant-steps-vertical ant-steps-with-progress" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="60" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width: 40px; height: 40px; font-size: 12px;" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="1" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 122.63715789784806; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke: #52C41A; stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 301.58289474462015; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/progress.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/progress-debug.tsx extend context correctly 1`] = ` Array [ <div class="ant-space-compact ant-space-compact-block" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> Percentage to undefined </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Percentage + </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Current + </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Status Wait </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Status Process </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Status Finish </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Status Error </span> </button> </div>, <br />, <div class="ant-steps ant-steps-vertical ant-steps-with-progress" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="0" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width: 40px; height: 40px; font-size: 12px;" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 301.58289474462015; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke: #52C41A; stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 301.58289474462015; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-vertical ant-steps-with-progress ant-steps-small" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="0" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width: 32px; height: 32px; font-size: 10.8px;" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 301.58289474462015; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke: #52C41A; stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 301.58289474462015; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-vertical ant-steps-with-progress" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="0" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width: 40px; height: 40px; font-size: 12px;" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 301.58289474462015; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke: #52C41A; stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 301.58289474462015; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-vertical ant-steps-with-progress ant-steps-small" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="0" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width: 32px; height: 32px; font-size: 10.8px;" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 301.58289474462015; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke: #52C41A; stroke-dasharray: 301.59289474462014px 301.59289474462014; stroke-dashoffset: 301.58289474462015; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/progress-debug.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/progress-dot.tsx extend context correctly 1`] = ` Array [ <div class="ant-steps ant-steps-vertical ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-divider ant-divider-horizontal" role="separator" />, <div class="ant-steps ant-steps-vertical ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/progress-dot.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/progress-dot-small.tsx extend context correctly 1`] = ` Array [ <div class="ant-steps ant-steps-vertical ant-steps-small ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-divider ant-divider-horizontal" role="separator" />, <div class="ant-steps ant-steps-vertical ant-steps-small ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/progress-dot-small.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/simple.tsx extend context correctly 1`] = ` <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/simple.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/small-size.tsx extend context correctly 1`] = ` <div class="ant-steps ant-steps-vertical ant-steps-small" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/small-size.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/step-next.tsx extend context correctly 1`] = ` Array [ <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > First </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Second </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Last </div> </div> </div> </div> </div>, <div style="line-height: 260px; text-align: center; color: rgba(0, 0, 0, 0.45); background-color: rgba(0, 0, 0, 0.02); border-radius: 8px; border: 1px dashed #d9d9d9; margin-top: 16px;" > First-content </div>, <div style="margin-top: 24px;" > <button class="ant-btn ant-btn-primary" type="button" > <span> Next </span> </button> </div>, ] `; exports[`renders components/steps/demo/step-next.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/steps-in-steps.tsx extend context correctly 1`] = ` Array [ <div class="ant-radio-group ant-radio-group-outline" style="margin-bottom: 16px;" > <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="small" /> <span class="ant-radio-inner" /> </span> <span> Small </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-checked" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="default" /> <span class="ant-radio-inner" /> </span> <span> Default </span> </label> </div>, <div class="ant-steps ant-steps-vertical ant-steps-default" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > <div class="ant-card ant-card-bordered" > <div class="ant-card-body" > <div class="ant-steps ant-steps-vertical ant-steps-default" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/steps-in-steps.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/vertical.tsx extend context correctly 1`] = ` <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/vertical.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/vertical-small.tsx extend context correctly 1`] = ` <div class="ant-steps ant-steps-vertical ant-steps-small" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/vertical-small.tsx extend context correctly 2`] = `[]`; exports[`renders components/steps/demo/wireframe.tsx extend context correctly 1`] = ` <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/wireframe.tsx extend context correctly 2`] = `[]`;
6,078
0
petrpan-code/ant-design/ant-design/components/steps/__tests__
petrpan-code/ant-design/ant-design/components/steps/__tests__/__snapshots__/demo.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/steps/demo/clickable.tsx correctly 1`] = ` Array [ <div class="ant-steps ant-steps-horizontal ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-divider ant-divider-horizontal" role="separator" />, <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/component-token.tsx correctly 1`] = ` Array [ <div class="ant-steps ant-steps-horizontal ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-horizontal ant-steps-small ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-horizontal ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-finish ant-steps-item-custom ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="user" class="anticon anticon-user" role="img" > <svg aria-hidden="true" data-icon="user" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Login </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-finish ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="solution" class="anticon anticon-solution" role="img" > <svg aria-hidden="true" data-icon="solution" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Verification </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="loading" class="anticon anticon-loading anticon-spin" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Pay </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Done </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-horizontal ant-steps-label-horizontal ant-steps-navigation" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 <div class="ant-steps-item-subtitle" title="00:00:05" > 00:00:05 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 <div class="ant-steps-item-subtitle" title="00:01:02" > 00:01:02 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 <div class="ant-steps-item-subtitle" title="waiting for longlong time" > waiting for longlong time </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/customized-progress-dot.tsx correctly 1`] = ` <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > You can hover on the dot. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > You can hover on the dot. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > You can hover on the dot. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > You can hover on the dot. </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/error.tsx correctly 1`] = ` <div class="ant-steps ant-steps-horizontal ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-finish ant-steps-next-error" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-error ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="close" class="anticon anticon-close ant-steps-error-icon" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Process </div> <div class="ant-steps-item-description" > This is a description </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/icon.tsx correctly 1`] = ` <div class="ant-steps ant-steps-horizontal ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-finish ant-steps-item-custom ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="user" class="anticon anticon-user" role="img" > <svg aria-hidden="true" data-icon="user" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Login </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-finish ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="solution" class="anticon anticon-solution" role="img" > <svg aria-hidden="true" data-icon="solution" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Verification </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="loading" class="anticon anticon-loading anticon-spin" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Pay </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait ant-steps-item-custom" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Done </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/inline.tsx correctly 1`] = ` <div> <div class="ant-list ant-list-split" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" > <img src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <a href="https://ant.design" > Ant Design Title 1 </a> </h4> <div class="ant-list-item-meta-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical ant-steps-dot ant-steps-inline" style="margin-top:8px" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a Step 1. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a Step 2. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a Step 3. </div> </div> </div> </div> </div> </li> <li class="ant-list-item" > <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" > <img src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <a href="https://ant.design" > Ant Design Title 2 </a> </h4> <div class="ant-list-item-meta-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical ant-steps-dot ant-steps-inline" style="margin-top:8px" > <div class="ant-steps-item ant-steps-item-finish ant-steps-next-error" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a Step 1. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-error ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a Step 2. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a Step 3. </div> </div> </div> </div> </div> </li> <li class="ant-list-item" > <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" > <img src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <a href="https://ant.design" > Ant Design Title 3 </a> </h4> <div class="ant-list-item-meta-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical ant-steps-dot ant-steps-inline" style="margin-top:8px" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a Step 1. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a Step 2. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a Step 3. </div> </div> </div> </div> </div> </li> <li class="ant-list-item" > <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" > <img src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <a href="https://ant.design" > Ant Design Title 4 </a> </h4> <div class="ant-list-item-meta-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical ant-steps-dot ant-steps-inline" style="margin-top:8px" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> <div class="ant-steps-item-description" > This is a Step 1. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> <div class="ant-steps-item-description" > This is a Step 2. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> <div class="ant-steps-item-description" > This is a Step 3. </div> </div> </div> </div> </div> </li> </ul> </div> </div> </div> </div> `; exports[`renders components/steps/demo/label-placement.tsx correctly 1`] = ` Array [ <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <br />, <div class="ant-steps ant-steps-horizontal ant-steps-with-progress ant-steps-label-vertical" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="60" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width:40px;height:40px;font-size:12px" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="1" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:122.63715789784806;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke:#52C41A;stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:301.58289474462015;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <br />, <div class="ant-steps ant-steps-horizontal ant-steps-small ant-steps-label-vertical" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/nav.tsx correctly 1`] = ` Array [ <div class="ant-steps ant-steps-horizontal site-navigation-steps ant-steps-small ant-steps-label-horizontal ant-steps-navigation" > <div class="ant-steps-item ant-steps-item-finish ant-steps-item-active" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 <div class="ant-steps-item-subtitle" title="00:00:05" > 00:00:05 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 <div class="ant-steps-item-subtitle" title="00:01:02" > 00:01:02 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 <div class="ant-steps-item-subtitle" title="waiting for longlong time" > waiting for longlong time </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-horizontal site-navigation-steps ant-steps-label-horizontal ant-steps-navigation" > <div class="ant-steps-item ant-steps-item-finish ant-steps-item-active" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 1 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 2 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 3 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 4 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Step 4 </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-horizontal site-navigation-steps ant-steps-small ant-steps-label-horizontal ant-steps-navigation" > <div class="ant-steps-item ant-steps-item-finish ant-steps-item-active" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > finish 1 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > finish 2 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process" > <div class="ant-steps-item-container" role="button" tabindex="0" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > current process </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait ant-steps-item-disabled" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 4 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > wait </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/progress.tsx correctly 1`] = ` <div class="ant-steps ant-steps-horizontal ant-steps-with-progress ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="60" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width:40px;height:40px;font-size:12px" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="1" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:122.63715789784806;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke:#52C41A;stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:301.58289474462015;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/progress-debug.tsx correctly 1`] = ` Array [ <div class="ant-space-compact ant-space-compact-block" > <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-first-item" type="button" > <span> Percentage to undefined </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Percentage + </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Current + </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Status Wait </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Status Process </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item" type="button" > <span> Status Finish </span> </button> <button class="ant-btn ant-btn-default ant-btn-compact-item ant-btn-compact-last-item" type="button" > <span> Status Error </span> </button> </div>, <br />, <div class="ant-steps ant-steps-horizontal ant-steps-with-progress ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="0" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width:40px;height:40px;font-size:12px" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:301.58289474462015;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke:#52C41A;stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:301.58289474462015;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-horizontal ant-steps-with-progress ant-steps-small ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="0" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width:32px;height:32px;font-size:10.8px" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:301.58289474462015;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke:#52C41A;stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:301.58289474462015;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-vertical ant-steps-with-progress" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="0" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width:40px;height:40px;font-size:12px" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:301.58289474462015;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke:#52C41A;stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:301.58289474462015;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-steps ant-steps-vertical ant-steps-with-progress ant-steps-small" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <div class="ant-steps-progress-icon" > <div aria-valuenow="0" class="ant-progress ant-progress-status-normal ant-progress-circle ant-progress-show-info" role="progressbar" > <div class="ant-progress-inner" style="width:32px;height:32px;font-size:10.8px" > <svg class="ant-progress-circle" role="presentation" viewBox="0 0 100 100" > <circle class="ant-progress-circle-trail" cx="50" cy="50" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:301.58289474462015;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> <circle class="ant-progress-circle-path" cx="50" cy="50" opacity="0" r="48" stroke-linecap="round" stroke-width="4" style="stroke:#52C41A;stroke-dasharray:301.59289474462014px 301.59289474462014;stroke-dashoffset:301.58289474462015;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s;fill-opacity:0" /> </svg> <span class="ant-progress-text" /> </div> </div> <span class="ant-steps-icon" > 2 </span> </div> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/progress-dot.tsx correctly 1`] = ` Array [ <div class="ant-steps ant-steps-horizontal ant-steps-label-vertical ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-divider ant-divider-horizontal" role="separator" />, <div class="ant-steps ant-steps-vertical ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/progress-dot-small.tsx correctly 1`] = ` Array [ <div class="ant-steps ant-steps-horizontal ant-steps-small ant-steps-label-vertical ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, <div class="ant-divider ant-divider-horizontal" role="separator" />, <div class="ant-steps ant-steps-vertical ant-steps-small ant-steps-dot" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span class="ant-steps-icon-dot" /> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/simple.tsx correctly 1`] = ` <div class="ant-steps ant-steps-horizontal ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/small-size.tsx correctly 1`] = ` <div class="ant-steps ant-steps-horizontal ant-steps-small ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/step-next.tsx correctly 1`] = ` Array [ <div class="ant-steps ant-steps-horizontal ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > First </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Second </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Last </div> </div> </div> </div> </div>, <div style="line-height:260px;text-align:center;color:rgba(0, 0, 0, 0.45);background-color:rgba(0, 0, 0, 0.02);border-radius:8px;border:1px dashed #d9d9d9;margin-top:16px" > First-content </div>, <div style="margin-top:24px" > <button class="ant-btn ant-btn-primary" type="button" > <span> Next </span> </button> </div>, ] `; exports[`renders components/steps/demo/steps-in-steps.tsx correctly 1`] = ` Array [ <div class="ant-radio-group ant-radio-group-outline" style="margin-bottom:16px" > <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="small" /> <span class="ant-radio-inner" /> </span> <span> Small </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-checked" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="default" /> <span class="ant-radio-inner" /> </span> <span> Default </span> </label> </div>, <div class="ant-steps ant-steps-vertical ant-steps-default" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > <div class="ant-card ant-card-bordered" > <div class="ant-card-body" > <div class="ant-steps ant-steps-horizontal ant-steps-default ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div>, ] `; exports[`renders components/steps/demo/vertical.tsx correctly 1`] = ` <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/vertical-small.tsx correctly 1`] = ` <div class="ant-steps ant-steps-vertical ant-steps-small" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `; exports[`renders components/steps/demo/wireframe.tsx correctly 1`] = ` <div class="ant-steps ant-steps-horizontal ant-steps-label-horizontal" > <div class="ant-steps-item ant-steps-item-finish" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > <span aria-label="check" class="anticon anticon-check ant-steps-finish-icon" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `;
6,079
0
petrpan-code/ant-design/ant-design/components/steps/__tests__
petrpan-code/ant-design/ant-design/components/steps/__tests__/__snapshots__/index.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Steps rtl render component should be rendered correctly in RTL direction 1`] = ` <div class="ant-steps ant-steps-vertical ant-steps-rtl" /> `; exports[`Steps should render correct 1`] = ` <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `; exports[`Steps should render correct when use Step 1`] = ` <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Finished </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > In Progress <div class="ant-steps-item-subtitle" title="Left 00:00:08" > Left 00:00:08 </div> </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > Waiting </div> <div class="ant-steps-item-description" > This is a description. </div> </div> </div> </div> </div> `; exports[`Steps should render correct when use null 1`] = ` <div class="ant-steps ant-steps-vertical" /> `;
6,145
0
petrpan-code/ant-design/ant-design/components/switch
petrpan-code/ant-design/ant-design/components/switch/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('switch', { skip: ['component-token.tsx'], });
6,146
0
petrpan-code/ant-design/ant-design/components/switch
petrpan-code/ant-design/ant-design/components/switch/__tests__/demo.test.ts
import demoTest from '../../../tests/shared/demoTest'; demoTest('switch', { skip: ['component-token.tsx'], });
6,147
0
petrpan-code/ant-design/ant-design/components/switch
petrpan-code/ant-design/ant-design/components/switch/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Switch image', () => { imageDemoTest('switch', { skip: ['loading.tsx'] }); });
6,148
0
petrpan-code/ant-design/ant-design/components/switch
petrpan-code/ant-design/ant-design/components/switch/__tests__/index.test.tsx
import React from 'react'; import Switch from '..'; import focusTest from '../../../tests/shared/focusTest'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { act, fireEvent, render } from '../../../tests/utils'; import { resetWarned } from '../../_util/warning'; jest.mock('rc-util/lib/Dom/isVisible', () => { const mockFn = () => true; return mockFn; }); describe('Switch', () => { focusTest(Switch, { refFocus: true }); mountTest(Switch); rtlTest(Switch); it('should has click wave effect', () => { jest.useFakeTimers(); const { container } = render(<Switch />); fireEvent.click(container.querySelector('.ant-switch')!); act(() => { jest.advanceTimersByTime(100); }); // Second time for raf to render wave effect act(() => { jest.advanceTimersByTime(100); }); expect(document.querySelector('.ant-wave')).toBeTruthy(); jest.clearAllTimers(); jest.useRealTimers(); }); it('warning if set `value`', () => { resetWarned(); const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); const props = { value: true } as any; render(<Switch {...props} />); expect(errorSpy).toHaveBeenCalledWith( 'Warning: [antd: Switch] `value` is not a valid prop, do you mean `checked`?', ); errorSpy.mockRestore(); }); it('have static property for type detecting', () => { expect(Switch.__ANT_SWITCH).toBeTruthy(); }); });
6,149
0
petrpan-code/ant-design/ant-design/components/switch
petrpan-code/ant-design/ant-design/components/switch/__tests__/wave.test.tsx
import React from 'react'; import Switch from '..'; import { fireEvent, render, waitFakeTimer } from '../../../tests/utils'; describe('click wave effect', () => { async function click(container: HTMLElement) { fireEvent.click(container.querySelector('.ant-switch')!); container.querySelector('.ant-switch')!.dispatchEvent(new Event('transitionstart')); await waitFakeTimer(); container.querySelector('.ant-switch')!.dispatchEvent(new Event('animationend')); await waitFakeTimer(); } it('should have click wave effect', async () => { jest.useFakeTimers(); const { container } = render(<Switch />); await click(container); await click(container); expect( container.querySelector('.ant-switch')!.getAttribute('ant-switch-click-animating'), ).toBeFalsy(); const event = new Event('animationend'); Object.assign(event, { animationName: 'fadeEffect' }); container.querySelector('.ant-switch')!.dispatchEvent(event); jest.clearAllTimers(); jest.useRealTimers(); }); });
6,150
0
petrpan-code/ant-design/ant-design/components/switch/__tests__
petrpan-code/ant-design/ant-design/components/switch/__tests__/__snapshots__/demo-extend.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/switch/demo/basic.tsx extend context correctly 1`] = ` <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> `; exports[`renders components/switch/demo/basic.tsx extend context correctly 2`] = `[]`; exports[`renders components/switch/demo/disabled.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button aria-checked="true" class="ant-switch ant-switch-checked ant-switch-disabled" disabled="" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Toggle disabled </span> </button> </div> </div> `; exports[`renders components/switch/demo/disabled.tsx extend context correctly 2`] = `[]`; exports[`renders components/switch/demo/loading.tsx extend context correctly 1`] = ` Array [ <button aria-checked="true" class="ant-switch ant-switch-loading ant-switch-checked ant-switch-disabled" disabled="" role="switch" type="button" > <div class="ant-switch-handle" > <span aria-label="loading" class="anticon anticon-loading anticon-spin ant-switch-loading-icon" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </div> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, <br />, <button aria-checked="false" class="ant-switch ant-switch-small ant-switch-loading ant-switch-disabled" disabled="" role="switch" type="button" > <div class="ant-switch-handle" > <span aria-label="loading" class="anticon anticon-loading anticon-spin ant-switch-loading-icon" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </div> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, ] `; exports[`renders components/switch/demo/loading.tsx extend context correctly 2`] = `[]`; exports[`renders components/switch/demo/size.tsx extend context correctly 1`] = ` Array [ <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, <br />, <button aria-checked="true" class="ant-switch ant-switch-small ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, ] `; exports[`renders components/switch/demo/size.tsx extend context correctly 2`] = `[]`; exports[`renders components/switch/demo/text.tsx extend context correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" > 开启 </span> <span class="ant-switch-inner-unchecked" > 关闭 </span> </span> </button> </div> <div class="ant-space-item" > <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" > 1 </span> <span class="ant-switch-inner-unchecked" > 0 </span> </span> </button> </div> <div class="ant-space-item" > <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> <span class="ant-switch-inner-unchecked" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </button> </div> </div> `; exports[`renders components/switch/demo/text.tsx extend context correctly 2`] = `[]`;
6,151
0
petrpan-code/ant-design/ant-design/components/switch/__tests__
petrpan-code/ant-design/ant-design/components/switch/__tests__/__snapshots__/demo.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders components/switch/demo/basic.tsx correctly 1`] = ` <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> `; exports[`renders components/switch/demo/disabled.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button aria-checked="true" class="ant-switch ant-switch-checked ant-switch-disabled" disabled="" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Toggle disabled </span> </button> </div> </div> `; exports[`renders components/switch/demo/loading.tsx correctly 1`] = ` Array [ <button aria-checked="true" class="ant-switch ant-switch-loading ant-switch-checked ant-switch-disabled" disabled="" role="switch" type="button" > <div class="ant-switch-handle" > <span aria-label="loading" class="anticon anticon-loading anticon-spin ant-switch-loading-icon" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </div> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, <br />, <button aria-checked="false" class="ant-switch ant-switch-small ant-switch-loading ant-switch-disabled" disabled="" role="switch" type="button" > <div class="ant-switch-handle" > <span aria-label="loading" class="anticon anticon-loading anticon-spin ant-switch-loading-icon" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path 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 00-94.3-139.9 437.71 437.71 0 00-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" /> </svg> </span> </div> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, ] `; exports[`renders components/switch/demo/size.tsx correctly 1`] = ` Array [ <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, <br />, <button aria-checked="true" class="ant-switch ant-switch-small ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button>, ] `; exports[`renders components/switch/demo/text.tsx correctly 1`] = ` <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" > 开启 </span> <span class="ant-switch-inner-unchecked" > 关闭 </span> </span> </button> </div> <div class="ant-space-item" > <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" > 1 </span> <span class="ant-switch-inner-unchecked" > 0 </span> </span> </button> </div> <div class="ant-space-item" > <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </span> <span class="ant-switch-inner-unchecked" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" /> </svg> </span> </span> </span> </button> </div> </div> `;
6,152
0
petrpan-code/ant-design/ant-design/components/switch/__tests__
petrpan-code/ant-design/ant-design/components/switch/__tests__/__snapshots__/index.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Switch rtl render component should be rendered correctly in RTL direction 1`] = ` <button aria-checked="false" class="ant-switch ant-switch-rtl" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> `;
6,178
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/Table.IE.test.tsx
import React from 'react'; import type { TableRef } from '..'; import Table from '..'; import { render } from '../../../tests/utils'; describe('Table.IE', () => { beforeAll(() => { window.Proxy = undefined as any; global.Proxy = undefined as any; }); it('support reference', () => { const tblRef = React.createRef<TableRef>(); const { container } = render(<Table ref={tblRef} />); const wrapDom = container.querySelector('.ant-table-wrapper')!; expect(tblRef.current).toBe(wrapDom); expect(tblRef.current?.nativeElement).toBe(wrapDom); }); });
6,179
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/Table.expand.test.tsx
/* eslint-disable react/no-multi-comp */ import React from 'react'; import Table from '..'; import { fireEvent, render } from '../../../tests/utils'; const columns = [ { title: 'Name', key: 'name', dataIndex: 'name', }, ]; const John = { key: '1', firstName: 'John', lastName: 'Brown', age: 32, }; const Jim = { key: '2', firstName: 'Jim', lastName: 'Green', age: 42, }; const data = [ { ...John, children: [ { ...Jim, }, ], }, ]; describe('Table.expand', () => { it('click to expand', () => { const { container, asFragment } = render(<Table columns={columns} dataSource={data} />); fireEvent.click(container.querySelector('.ant-table-row-expand-icon')!); expect(asFragment().firstChild).toMatchSnapshot(); }); it('expandRowByClick should not block click icon', () => { const { container } = render( <Table columns={columns} dataSource={[John, Jim]} expandable={{ expandRowByClick: true, expandedRowRender: () => '', }} />, ); fireEvent.click(container.querySelector('.ant-table-row-expand-icon')!); expect(container.querySelector('.ant-table-row-expand-icon-expanded')).toBeTruthy(); fireEvent.click(container.querySelector('.ant-table-row-expand-icon')!); expect(container.querySelector('.ant-table-row-expand-icon-collapsed')).toBeTruthy(); }); it('show expandIcon', () => { const { container } = render( <Table columns={[{ dataIndex: 'key' }]} dataSource={[{ key: 233 }]} expandable={{ expandIcon: () => <div className="expand-icon" />, }} />, ); expect(container.querySelectorAll('.expand-icon')).toHaveLength(1); }); it('row indent padding should be 0px when indentSize defined as 0', () => { const { container } = render(<Table indentSize={0} columns={columns} dataSource={data} />); fireEvent.click(container.querySelector('.ant-table-row-expand-icon')!); expect(container.querySelector<HTMLElement>('.indent-level-1')?.style.paddingLeft).toEqual( '0px', ); }); it('has right aria-expanded state', () => { const { container } = render(<Table columns={columns} dataSource={data} />); expect(container.querySelector('[aria-expanded=false]')).toBeTruthy(); fireEvent.click(container.querySelector('.ant-table-row-expand-icon')!); expect(container.querySelector('[aria-expanded=true]')).toBeTruthy(); }); describe('expandIconColumnIndex', () => { it('basic', () => { const { container } = render( <Table columns={[{ dataIndex: 'key' }]} dataSource={[{ key: 'bamboo' }]} expandable={{ expandIconColumnIndex: 1, expandedRowRender: () => '', }} />, ); // header has td element (a11y): https://github.com/react-component/table/pull/859 const tdNodeList = container.querySelectorAll('tbody td'); expect(tdNodeList[0].textContent).toEqual('bamboo'); expect(tdNodeList[1].querySelector('.ant-table-row-expand-icon')).toBeTruthy(); }); it('work with selection', () => { const { container } = render( <Table columns={[{ dataIndex: 'key' }]} dataSource={[{ key: 'bamboo' }]} expandable={{ expandIconColumnIndex: 2, expandedRowRender: () => '', }} rowSelection={{}} />, ); const tdNodeList = container.querySelectorAll('tbody td'); expect(tdNodeList[0].querySelector('.ant-checkbox-input')).toBeTruthy(); expect(tdNodeList[1].textContent).toEqual('bamboo'); expect(tdNodeList[2].querySelector('.ant-table-row-expand-icon')).toBeTruthy(); }); }); });
6,180
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/Table.filter.test.tsx
/* eslint-disable no-unsafe-optional-chaining */ /* eslint-disable react/no-multi-comp */ import React, { useEffect, useState } from 'react'; import type { ColumnGroupType, ColumnType, TableProps } from '..'; import Table from '..'; import { resetWarned } from '../../_util/warning'; import { act, fireEvent, render, waitFor } from '../../../tests/utils'; import Button from '../../button'; import ConfigProvider from '../../config-provider'; import Input from '../../input'; import Menu from '../../menu'; import type { SelectProps } from '../../select'; import Select from '../../select'; import Tooltip from '../../tooltip'; import type { TreeColumnFilterItem } from '../hooks/useFilter/FilterDropdown'; import type { ColumnFilterItem, ColumnsType, FilterDropdownProps, FilterValue, SorterResult, } from '../interface'; // https://github.com/Semantic-Org/Semantic-UI-React/blob/72c45080e4f20b531fda2e3e430e384083d6766b/test/specs/modules/Dropdown/Dropdown-test.js#L73 const nativeEvent = { nativeEvent: { stopImmediatePropagation: () => {} } }; describe('Table.filter', () => { window.requestAnimationFrame = (callback) => window.setTimeout(callback, 16); window.cancelAnimationFrame = window.clearTimeout; const filterFn = (value: any, record: any) => record.name.includes(value); const column: ColumnGroupType<any> | ColumnType<any> = { title: 'Name', dataIndex: 'name', filters: [ { text: 'Boy', value: 'boy' }, { text: 'Girl', value: 'girl' }, { text: 'Title', value: 'title', children: [ { text: 'Designer', value: 'designer' }, { text: 'Coder', value: 'coder' }, ], }, ], onFilter: filterFn, }; const data = [ { key: 0, name: 'Jack' }, { key: 1, name: 'Lucy' }, { key: 2, name: 'Tom' }, { key: 3, name: 'Jerry' }, ]; const longData: Record<'key' | 'name', string>[] = []; for (let i = 0; i < 100; i += 1) { longData.push({ key: i.toString(), name: 'name' }); } function createTable(props?: TableProps<any>) { return <Table columns={[column]} dataSource={data} pagination={false} {...props} />; } function renderedNames(container: ReturnType<typeof render>['container']) { const namesList: (Node['textContent'] | undefined)[] = []; container ?.querySelector('.ant-table-tbody') ?.querySelectorAll('tr') ?.forEach((tr) => { namesList.push(tr.querySelector('td')?.textContent); }); return namesList; } // Seems raf not trigger when in useEffect for async update // Need trigger multiple times function refreshTimer() { for (let i = 0; i < 3; i += 1) { act(() => { jest.runAllTimers(); }); } } beforeEach(() => { jest.useFakeTimers(); }); afterEach(() => { jest.clearAllTimers(); jest.useRealTimers(); }); it('not show filter icon when undefined', () => { const noFilterColumn = { ...column, filters: undefined }; delete noFilterColumn.onFilter; const { container } = render( createTable({ columns: [noFilterColumn], }), ); expect(container.querySelectorAll('.ant-table-filter-column')).toHaveLength(0); }); // https://github.com/ant-design/ant-design/issues/26988 it('not show filter icon when filter and filterDropdown is undefined', () => { const noFilterColumn = { ...column, filters: undefined, filterDropdown: undefined }; delete noFilterColumn.onFilter; const { container } = render( createTable({ columns: [noFilterColumn], }), ); expect(container.querySelectorAll('.ant-table-filter-column')).toHaveLength(0); }); it('renders filter correctly', () => { const { asFragment } = render(createTable()); expect(asFragment().firstChild).toMatchSnapshot(); }); // async await 解决 Warning: An update to Item ran an effect, but was not wrapped in act(...). it('renders menu correctly', async () => { const { container } = render(createTable()); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); await waitFor(() => expect(container.querySelector('.ant-table-filter-dropdown')).toMatchSnapshot(), ); }); it('renders empty menu correctly', () => { resetWarned(); const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); const { container } = render( createTable({ columns: [ { ...column, filters: [], }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelector('.ant-empty')).toBeTruthy(); expect(errorSpy).not.toHaveBeenCalled(); errorSpy.mockRestore(); }); it('renders radio filter correctly', async () => { const { container } = render( createTable({ columns: [ { ...column, filterMultiple: false, }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); await waitFor(() => expect(container.querySelector('.ant-table-filter-dropdown')).toMatchSnapshot(), ); }); it('renders custom content correctly', async () => { const filter = <div className="custom-filter-dropdown">custom filter</div>; const { container } = render( createTable({ columns: [ { ...column, filterDropdown: filter, }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); await waitFor(() => expect(container.querySelector('.ant-table-filter-dropdown')).toMatchSnapshot(), ); }); it('override custom filter correctly', () => { let renderSelectedKeys: React.Key[] | null = null; const filter = ({ prefixCls, setSelectedKeys, selectedKeys, confirm, clearFilters, }: FilterDropdownProps): React.ReactNode => { renderSelectedKeys = selectedKeys; return ( <div className={`${prefixCls}-view`} id="customFilter"> <span onClick={() => setSelectedKeys([42])} id="setSelectedKeys"> setSelectedKeys </span> <span onClick={() => confirm?.()} id="confirm"> Confirm </span> <span onClick={() => clearFilters?.()} id="reset"> Reset </span> <span onClick={() => { setSelectedKeys([43]); confirm(); }} id="simulateOnSelect" > SimulateOnSelect </span> </div> ); }; const { container } = render( createTable({ columns: [ { ...column, filterDropdown: filter, }, ], }), ); // check if renderer well fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!); expect(container.querySelector('#customFilter')).toMatchSnapshot(); // try to use reset btn expect(renderSelectedKeys).toHaveLength(0); fireEvent.click(container.querySelector('#setSelectedKeys')!); fireEvent.click(container.querySelector('#confirm')!); expect(renderSelectedKeys).toEqual([42]); // Reset fireEvent.click(container.querySelector('#reset')!); fireEvent.click(container.querySelector('#confirm')!); expect(renderSelectedKeys).toHaveLength(0); // try to use confirm btn fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('#setSelectedKeys')!); expect(container.querySelector('.ant-dropdown-open')).toBeTruthy(); fireEvent.click(container.querySelector('#confirm')!); expect(renderSelectedKeys).toEqual([42]); expect(container.querySelector('.ant-dropdown-open')).toBeFalsy(); // Simulate onSelect, setSelectedKeys & confirm fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('#simulateOnSelect')!); expect(renderSelectedKeys).toEqual([43]); }); describe('filterDropdownOpen & filterDropdownVisible', () => { function test(propName: string) { it(`can be controlled by ${propName}`, () => { const { container, rerender } = render( createTable({ columns: [ { ...column, filterDropdownOpen: true, }, ], }), ); expect(container.querySelector('.ant-dropdown-open')).toBeTruthy(); rerender( createTable({ columns: [ { ...column, filterDropdownOpen: false, }, ], }), ); expect(container.querySelector('.ant-dropdown-open')).toBeFalsy(); }); } test('filterDropdownOpen'); test('filterDropdownVisible'); }); it('if the filter is visible it should ignore the selectedKeys changes', () => { const myColumn = { title: 'Name', dataIndex: 'name', filters: [{ text: 'J', value: 'J' }], onFilter: (value: any, record: any) => record.name.includes(value), }; const tableProps = { columns: [ { ...myColumn, filterDropdownOpen: true, }, ], }; const { container, rerender } = render(createTable(tableProps)); const checkboxList = container ?.querySelector('.ant-table-filter-dropdown') ?.querySelectorAll<HTMLInputElement>('input[type="checkbox"]'); expect(checkboxList?.length).toBeTruthy(); checkboxList?.forEach((checkbox) => { expect((checkbox as any)?.checkbox).toBeFalsy(); }); fireEvent.click( container .querySelector('.ant-table-filter-dropdown') ?.querySelector('input[type="checkbox"]')!, ); fireEvent.click( container ?.querySelector('.ant-table-filter-dropdown') ?.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!, ); expect(container.querySelectorAll('tbody tr')).toHaveLength(2); rerender( createTable({ ...tableProps, dataSource: [...data, { key: 999, name: 'Jason' }], }), ); expect(container.querySelectorAll('tbody tr')).toHaveLength(3); }); it('fires change event when visible change', () => { resetWarned(); const errSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); const onFilterDropdownOpenChange = jest.fn(); const onFilterDropdownVisibleChange = jest.fn(); const { container } = render( createTable({ columns: [ { ...column, onFilterDropdownOpenChange, onFilterDropdownVisibleChange, }, ], }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect(onFilterDropdownOpenChange).toHaveBeenCalledWith(true); expect(onFilterDropdownVisibleChange).toHaveBeenCalledWith(true); expect(errSpy).toHaveBeenCalledWith( 'Warning: [antd: Table] `onFilterDropdownVisibleChange` is deprecated. Please use `onFilterDropdownOpenChange` instead.', ); errSpy.mockRestore(); }); it('can be controlled by filteredValue', () => { const { container, rerender } = render( createTable({ columns: [ { ...column, filteredValue: ['Lucy'], }, ], }), ); expect(container.querySelectorAll('tbody tr').length).toBe(1); rerender( createTable({ columns: [ { ...column, filteredValue: [], }, ], }), ); expect(container.querySelectorAll('tbody tr').length).toBe(4); }); it('should handle filteredValue and non-array filterValue as expected', () => { let filterKeys = new Set(); const { rerender } = render( createTable({ columns: [ { ...column, filteredValue: ['Lucy', 12, true], onFilter: (value) => { filterKeys.add(value); return false; }, }, ], }), ); expect(Array.from(filterKeys)).toEqual(['Lucy', '12', 'true']); filterKeys = new Set(); rerender( createTable({ columns: [ { ...column, filteredValue: null, onFilter: (value) => { filterKeys.add(value); return true; }, }, ], }), ); expect(Array.from(filterKeys)).toHaveLength(0); }); it('can be controlled by filteredValue null', () => { const { container, rerender } = render( createTable({ columns: [ { ...column, filteredValue: ['Lucy'], }, ], }), ); expect(container.querySelectorAll('tbody tr').length).toBe(1); rerender( createTable({ columns: [ { ...column, filteredValue: null, }, ], }), ); expect(container.querySelectorAll('tbody tr').length).toBe(4); }); // Warning: An update to Item ran an effect, but was not wrapped in act(...). it('render checked of checkbox correctly controlled by filteredValue', () => { ['Lucy', 23, false].forEach((val) => { const { container } = render( createTable({ columns: [ { ...column, filters: [{ text: val, value: val }], filteredValue: [val], }, ], }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect( container ?.querySelector('.ant-table-filter-dropdown') ?.querySelectorAll<HTMLInputElement>('.ant-checkbox-input')[0].checked, ).toBe(true); }); const { container } = render( createTable({ columns: [ { ...column, filters: [{ text: 'ant', value: 'ant' }], filteredValue: ['any-value-not-exists-in-filters'], }, ], }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect( container ?.querySelector('.ant-table-filter-dropdown') ?.querySelectorAll<HTMLInputElement>('.ant-checkbox-input')[0]?.checked, ).toBe(false); }); it('can read defaults from defaultFilteredValue', () => { const { container, rerender } = render( createTable({ columns: [ { ...column, defaultFilteredValue: ['Lucy'], }, ], }), ); expect(container.querySelectorAll('tbody tr').length).toBe(1); expect(container.querySelector('tbody tr')?.textContent).toBe('Lucy'); // Should properly ignore further defaultFilteredValue changes rerender( createTable({ columns: [ { ...column, defaultFilteredValue: [], }, ], }), ); expect(container.querySelectorAll('tbody tr').length).toBe(1); expect(container.querySelector('tbody tr')?.textContent).toBe('Lucy'); // Should properly be overridden by non-null filteredValue rerender( createTable({ columns: [ { ...column, defaultFilteredValue: ['Lucy'], filteredValue: ['Tom'], }, ], }), ); expect(container.querySelectorAll('tbody tr').length).toBe(1); expect(container.querySelector('tbody tr')?.textContent).toBe('Tom'); // Should properly be overridden by a null filteredValue rerender( createTable({ columns: [ { ...column, defaultFilteredValue: ['Lucy'], filteredValue: null, }, ], }), ); expect(container.querySelectorAll('tbody tr').length).toBe(4); }); // Warning: An update to Item ran an effect, but was not wrapped in act(...). it('fires change event', () => { const handleChange = jest.fn(); const { container } = render(createTable({ onChange: handleChange })); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelectorAll('.ant-dropdown-menu-item')[0]); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(handleChange).toHaveBeenCalledWith( {}, { name: ['boy'] }, {}, { currentDataSource: [], action: 'filter', }, ); }); it('fires pagination change event', async () => { const onPaginationChange = jest.fn(); const { container } = render(createTable({ pagination: { onChange: onPaginationChange } })); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelectorAll('.ant-dropdown-menu-item')[0]); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); await waitFor(() => expect(onPaginationChange).toHaveBeenCalledWith(1, 10)); }); it('should not fire change event when close filterDropdown without changing anything', async () => { const handleChange = jest.fn(); const { container } = render(createTable({ onChange: handleChange })); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); await waitFor(() => expect(handleChange).not.toHaveBeenCalled()); }); it('should not fire change event when close a filtered filterDropdown without changing anything', async () => { const handleChange = jest.fn(); const { container } = render( createTable({ onChange: handleChange, columns: [ { ...column, defaultFilteredValue: ['boy', 'designer'], }, ], }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); await waitFor(() => expect(handleChange).not.toHaveBeenCalled()); }); it('three levels menu', async () => { const onChange = jest.fn(); const filters = [ { text: 'Upper', value: 'Upper' }, { text: 'Lower', value: 'Lower' }, { text: 'Level2', value: 'Level2', children: [ { text: 'Large', value: 'Large' }, { text: 'Small', value: 'Small' }, { text: 'Level3', value: 'Level3', children: [ { text: 'Black', value: 'Black' }, { text: 'White', value: 'White' }, { text: 'Jack', value: 'Jack' }, ], }, ], }, ]; const { container } = render( createTable({ columns: [ { ...column, filters, }, ], onChange, }), ); expect(renderedNames(container)).toEqual(['Jack', 'Lucy', 'Tom', 'Jerry']); // Open fireEvent.click(container.querySelector('.ant-table-filter-trigger')!); function getFilterMenu() { return container.querySelector('.ant-table-filter-dropdown'); } // Open Level2 fireEvent.mouseEnter( getFilterMenu()?.querySelectorAll('div.ant-dropdown-menu-submenu-title')[0]!, ); refreshTimer(); // Open Level3 fireEvent.mouseEnter( getFilterMenu()?.querySelectorAll('div.ant-dropdown-menu-submenu-title')[1]!, ); refreshTimer(); // Select Level3 value const items = getFilterMenu()?.querySelectorAll('li.ant-dropdown-menu-item'); fireEvent.click(items?.[items.length - 1]!); fireEvent.click( getFilterMenu()?.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!, ); refreshTimer(); expect(onChange).toHaveBeenCalled(); onChange.mock.calls.forEach(([, currentFilters]) => { const [, val] = Object.entries(currentFilters)[0]; expect(val).toEqual(['Jack']); }); expect(renderedNames(container)).toEqual(['Jack']); // What's this? Is that a coverage case? Or check a crash? const latestItems = getFilterMenu()?.querySelectorAll('li.ant-dropdown-menu-item'); fireEvent.click(latestItems?.[latestItems?.length - 1]!); }); describe('should support value types', () => { const filterKeys = new Set(); [ ['Light', 93], ['Bamboo', false], ].forEach(([text, value]) => { it(`${typeof value} type`, async () => { const onChange = jest.fn(); const filters = [{ text, value }]; const { container } = render( createTable({ columns: [ { ...column, filters, onFilter: (val) => { expect(val).toBe(value); filterKeys.add(val); return false; }, }, ], onChange, }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelectorAll('.ant-dropdown-menu-item')[0]); // This test can be remove if refactor fireEvent.click( container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!, ); await waitFor(() => expect( container ?.querySelector('.ant-table-filter-dropdown') ?.querySelectorAll<HTMLInputElement>('.ant-checkbox-input')[0].checked, ).toEqual(true), ); expect(typeof Array.from(filterKeys)[0]).toEqual('number'); expect(Array.from(filterKeys).length > 0).toBeTruthy(); onChange.mock.calls.forEach(([, currentFilters]) => { const [, val] = Object.entries(currentFilters)[0]; expect(val).toEqual([value]); }); // Another time of Filter show // https://github.com/ant-design/ant-design/issues/15593 fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelectorAll('.ant-dropdown-menu-item')[0]); expect( container ?.querySelector('.ant-table-filter-dropdown') ?.querySelectorAll<HTMLInputElement>('.ant-checkbox-input')[0].checked, ).toBe(false); }); }); }); it('works with JSX in controlled mode', () => { const { Column } = Table; const App: React.FC = () => { const [filters, setFilters] = React.useState<{ name?: ColumnType<any>['filteredValue'] }>({}); const handleChange: TableProps<any>['onChange'] = (_, filter) => { setFilters(filter); }; return ( <Table dataSource={data} onChange={handleChange}> <Column title="name" dataIndex="name" key="name" onFilter={filterFn} filteredValue={filters.name} filters={[ { text: 'Jack', value: 'Jack' }, { text: 'Lucy', value: 'Lucy' }, ]} /> </Table> ); }; const { container } = render(<App />); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect(container.querySelector('.ant-dropdown-open')).toBeTruthy(); fireEvent.click(container.querySelectorAll('.ant-dropdown-menu-item')[0]); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(renderedNames(container)).toEqual(['Jack']); expect(container.querySelector('.ant-dropdown-open')).toBeFalsy(); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-link')!); expect(container.querySelector('.ant-dropdown-open')).toBeTruthy(); expect(renderedNames(container)).toEqual(['Jack']); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(renderedNames(container)).toEqual(['Jack', 'Lucy', 'Tom', 'Jerry']); expect(container.querySelector('.ant-dropdown-open')).toBeFalsy(); }); it('works with grouping columns in controlled mode', () => { const columns = [ { title: 'group', key: 'group', children: [ { title: 'Name', dataIndex: 'name', key: 'name', filters: [ { text: 'Jack', value: 'Jack' }, { text: 'Lucy', value: 'Lucy' }, ], onFilter: filterFn, filteredValue: ['Jack'], }, { title: 'Age', dataIndex: 'age', key: 'age', }, ], }, ]; const testData = [ { key: 0, name: 'Jack', age: 11 }, { key: 1, name: 'Lucy', age: 20 }, { key: 2, name: 'Tom', age: 21 }, { key: 3, name: 'Jerry', age: 22 }, ]; const { container } = render(<Table columns={columns} dataSource={testData} />); expect(renderedNames(container)).toEqual(['Jack']); }); // Warning: An update to Item ran an effect, but was not wrapped in act(...). it('confirm filter when dropdown hidden', () => { const handleChange = jest.fn(); const { container } = render( createTable({ columns: [ { ...column, filters: [ { text: 'Jack', value: 'Jack' }, { text: 'Lucy', value: 'Lucy' }, ], }, ], onChange: handleChange, }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-dropdown-menu-item')!); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect(handleChange).toHaveBeenCalled(); expect(handleChange.mock.calls[0][3].currentDataSource.length).toBe(1); }); it('renders custom filter icon correctly', () => { const filterIcon = (filtered: boolean): React.ReactNode => ( <span className="customize-icon">{filtered ? 'filtered' : 'unfiltered'}</span> ); const { container } = render( createTable({ columns: [ { ...column, filterIcon, }, ], }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-dropdown-menu-item')!); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect(container.querySelector('.customize-icon')).toMatchSnapshot(); }); it('renders custom filter icon as string correctly', () => { const filterIcon = () => 'string'; const { asFragment } = render( createTable({ columns: [ { ...column, filterIcon, }, ], }), ); expect(asFragment().firstChild).toMatchSnapshot(); }); it('renders custom filter icon with right Tooltip title', () => { const filterIcon = () => ( <Tooltip title="title" open> Tooltip </Tooltip> ); const { asFragment } = render( createTable({ columns: [ { ...column, filterIcon, }, ], }), ); expect(asFragment().firstChild).toMatchSnapshot(); }); it('renders custom filter icon as ReactNode', () => { const filterIcon = <span className="customize-icon" />; const { container, asFragment } = render( createTable({ columns: [ { ...column, filterIcon, }, ], }), ); expect(asFragment().firstChild).toMatchSnapshot(); expect(container.querySelector('span.customize-icon')).toBeTruthy(); }); // https://github.com/ant-design/ant-design/issues/13028 it('reset dropdown filter correctly', () => { const Demo: React.FC = () => { const [name, setName] = React.useState<ColumnType<any>['filteredValue']>(); const onChange = () => { setName('' as unknown as ColumnType<any>['filteredValue']); }; return createTable({ onChange, columns: [ { title: 'Name', dataIndex: 'name', key: 'name', filteredValue: name, // eslint-disable-next-line react/no-unstable-nested-components filterDropdown: ({ setSelectedKeys, selectedKeys, confirm }) => ( <div> <Input value={selectedKeys[0]} onChange={(e) => { setSelectedKeys(e.target.value ? [e.target.value] : []); }} /> <Button onClick={() => confirm()}>Confirm</Button> </div> ), }, ], }); }; const { container } = render(<Demo />); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.change(container.querySelector('.ant-input')!, { target: { value: 'test' } }); expect(container.querySelector<HTMLInputElement>('.ant-input')?.value).toBe('test'); fireEvent.click(container.querySelector('.ant-btn')!); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect(container.querySelector<HTMLInputElement>('.ant-input')?.value).toBe(''); }); // https://github.com/ant-design/ant-design/issues/17833 it('should not trigger onChange when blurring custom filterDropdown', () => { const onChange = jest.fn(); const filterDropdown = ({ setSelectedKeys }: FilterDropdownProps) => ( <input onChange={(e) => setSelectedKeys([e.target.value])} /> ); const { container } = render( createTable({ onChange, columns: [ { title: 'Name', dataIndex: 'name', key: 'name', filterDropdown, }, ], }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.change(container.querySelector('input')!, { target: { value: 'whatevervalue' } }); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect(onChange).not.toHaveBeenCalled(); }); it('should trigger onChange with correct params if defines custom filterDropdown', () => { const onChange = jest.fn(); const filterDropdown = ({ setSelectedKeys, confirm }: FilterDropdownProps) => ( <div> <input onChange={(e) => setSelectedKeys([e.target.value])} /> <button className="confirm-btn" type="submit" onClick={() => confirm()}> Confirm </button> </div> ); const { container } = render( createTable({ onChange, columns: [ { title: 'Name', dataIndex: 'name', key: 'name', filterDropdown, }, ], }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.change(container.querySelector('input')!, { target: { value: 'test' } }); fireEvent.click(container.querySelector('.confirm-btn')!); expect(onChange).toHaveBeenCalled(); onChange.mock.calls.forEach(([, currentFilters]) => { const [, val] = Object.entries(currentFilters)[0]; expect(val).toEqual(['test']); }); }); it('should work as expected with complex custom filterDropdown', () => { let renderSelectedKeys = null; const onChange = jest.fn(); const filterDropdown = ({ setSelectedKeys, selectedKeys, confirm }: FilterDropdownProps) => { renderSelectedKeys = selectedKeys; const handleChange: SelectProps['onChange'] = (selectedValues) => { setSelectedKeys(selectedValues); }; return ( <div> <Select mode="multiple" allowClear labelInValue style={{ width: 200 }} value={selectedKeys} onChange={handleChange} options={[ { value: 1, label: 'Not Identified', }, { value: 2, label: 'Closed', }, { value: 3, label: 'Communicated', }, ]} /> <button className="confirm-btn" type="submit" onClick={() => confirm()}> Confirm </button> </div> ); }; const filteredValue = [ { value: 2, label: 'Closed', }, ] as unknown as ColumnType<any>['filteredValue']; const selectedValue = [ { key: 2, value: 2, label: 'Closed', }, { key: 1, value: 1, label: 'Not Identified', }, ]; const { container } = render( createTable({ onChange, columns: [ { title: 'Name', dataIndex: 'name', key: 'name', filterDropdown, filteredValue, }, ], }), ); expect(renderSelectedKeys).toEqual(filteredValue); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.mouseDown(container.querySelector('.ant-select-selector')!); fireEvent.click(container.querySelector('.ant-select-item-option')!); fireEvent.click(container.querySelector('.confirm-btn')!); expect(onChange).toHaveBeenCalled(); onChange.mock.calls.forEach(([, currentFilters]) => { const [, val] = Object.entries(currentFilters)[0]; expect(val).toEqual(selectedValue); }); }); // https://github.com/ant-design/ant-design/issues/17089 it('not crash when dynamic change filter', () => { const onChange = jest.fn(); const Test: React.FC<{ filters?: ColumnFilterItem[] }> = ({ filters }) => ( <Table onChange={onChange} rowKey="name" columns={[ { title: 'Name', dataIndex: 'name', filters, onFilter: (value: any, record: any) => record.name.indexOf(value) === 0, sorter: (a, b) => a.name.length - b.name.length, sortDirections: ['descend'], }, ]} dataSource={[ { name: 'Jack', }, ]} /> ); const { container, rerender } = render( <Test filters={[ { text: 'Bill', value: 'Bill', }, ]} />, ); // Warning: An update to Item ran an effect, but was not wrapped in act(...). fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-dropdown-menu-item')!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(onChange).toHaveBeenCalled(); onChange.mockReset(); expect(onChange).not.toHaveBeenCalled(); rerender( <Test filters={[ { text: 'Jim', value: 'Jim', }, ]} />, ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-dropdown-menu-item')!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(onChange).toHaveBeenCalled(); }); it('should support getPopupContainer', () => { const getPopupContainer = jest.fn((node) => node.parentNode); render( createTable({ columns: [ { ...column, filterDropdownOpen: true, }, ], getPopupContainer, }), ); expect(getPopupContainer).toHaveBeenCalled(); }); it('should support getPopupContainer from ConfigProvider', () => { const getPopupContainer = jest.fn((node) => node.parentNode); render( <ConfigProvider getPopupContainer={getPopupContainer}> {createTable({ columns: [ { ...column, filterDropdownOpen: true, }, ], })} </ConfigProvider>, ); expect(getPopupContainer).toHaveBeenCalled(); }); it('pass visible prop to filterDropdown', () => { const filterDropdownMock = jest.fn().mockReturnValue(<span>test</span>); const filterDropdown = (...args: any[]) => filterDropdownMock(...args); const Test = () => ( <Table rowKey="name" columns={[{ title: 'Name', dataIndex: 'name', filterDropdown }]} dataSource={[{ name: 'Jack' }]} /> ); render(<Test />); expect(filterDropdownMock).toHaveBeenCalledWith( expect.objectContaining({ visible: false, }), ); }); it('visible prop of filterDropdown changes on click', () => { const filterDropdownMock = jest.fn().mockReturnValue(<span>test</span>); const filterDropdown = (...args: any[]) => filterDropdownMock(...args); const Test: React.FC = () => ( <Table rowKey="name" columns={[{ title: 'Name', dataIndex: 'name', filterDropdown }]} dataSource={[{ name: 'Jack' }]} /> ); const { container } = render(<Test />); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect(filterDropdownMock).toHaveBeenCalledWith( expect.objectContaining({ visible: true, }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect(filterDropdownMock).toHaveBeenCalledWith( expect.objectContaining({ visible: false, }), ); }); it('should reset pagination after filter', () => { const handleChange = jest.fn(); const { container } = render( createTable({ onChange: handleChange, dataSource: longData, pagination: true as TableProps<any>['pagination'], }), ); // Warning: An update to Item ran an effect, but was not wrapped in act(...). fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-dropdown-menu-item')!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(handleChange).toHaveBeenCalledWith( { current: 1, pageSize: 10, }, { name: ['boy'] }, {}, { currentDataSource: [], action: 'filter', }, ); expect(container.querySelectorAll('.ant-pagination-item')).toHaveLength(0); }); it('should keep pagination current after filter', () => { const handleChange = jest.fn(); const { container } = render( createTable({ onChange: handleChange, dataSource: longData, pagination: { current: 3, }, }), ); expect(container.querySelector('.ant-pagination-item-active')?.textContent).toBe('3'); // Warning: An update to Item ran an effect, but was not wrapped in act(...). fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-dropdown-menu-item')!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(handleChange).toHaveBeenCalledWith( { current: 1, pageSize: 10, }, { name: ['boy'] }, {}, { currentDataSource: [], action: 'filter', }, ); }); // https://github.com/ant-design/ant-design/issues/19274 it('should not crash', () => { const TestTable: React.FC = () => { const [cols, setCols] = React.useState<ColumnsType<any>>([]); useEffect(() => { setCols([{ title: 'test', key: 'test', filterDropdown: 123 }]); }, []); return <Table columns={cols} dataSource={[]} scroll={{ x: 1000 }} />; }; render(<TestTable />); }); // https://github.com/ant-design/ant-design/issues/20854 it('Not cache for onChange state', () => { const onChange = jest.fn(); const { container } = render( <Table columns={[ { title: 'Name', dataIndex: 'name', sorter: true, }, { title: 'Gender', dataIndex: 'gender', filters: [ { text: 'Male', value: 'male' }, { text: 'Female', value: 'female' }, ], }, ]} dataSource={[]} onChange={onChange} />, ); // Sort it fireEvent.click(container.querySelector('.ant-table-column-sorters')!, nativeEvent); expect(onChange).toHaveBeenCalledWith( expect.anything(), { gender: null }, expect.objectContaining({ column: { dataIndex: 'name', sorter: true, title: 'Name', }, }), { currentDataSource: expect.anything(), action: 'sort', }, ); // Filter it onChange.mockReset(); // Warning: An update to Item ran an effect, but was not wrapped in act(...). fireEvent.click(container.querySelector('.ant-dropdown-trigger')!, nativeEvent); fireEvent.click(container.querySelector('.ant-dropdown-menu-item')!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(onChange).toHaveBeenCalledWith( expect.anything(), { gender: ['male'], }, expect.objectContaining({ column: { dataIndex: 'name', sorter: true, title: 'Name', }, }), { currentDataSource: expect.anything(), action: 'filter', }, ); }); it('locale should work', () => { const { container } = render( createTable({ locale: { filterConfirm: 'Bamboo' }, columns: [ { ...column, filterDropdownOpen: true, filterSearch: true, filterMode: 'tree', }, ], }), ); expect( container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')?.textContent, ).toEqual('Bamboo'); expect( container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-link')?.textContent, ).toEqual('Reset'); expect(container.querySelector('.ant-table-filter-dropdown-checkall')?.textContent).toEqual( 'Select all items', ); expect(container.querySelector('.ant-input')?.getAttribute('placeholder')).toEqual( 'Search in filters', ); }); it('filtered should work', () => { const { container } = render( createTable({ columns: [ { ...column, filtered: true, }, ], }), ); expect( container.querySelector('.ant-table-filter-trigger')?.className.includes('active'), ).toBeTruthy(); }); it('filtered should work after change', () => { const App: React.FC = () => { const [filtered, setFiltered] = React.useState(true); const columns = [ { title: 'Name', dataIndex: 'name', filtered, filters: [], }, ]; return ( <div className="App"> <Button id="change-filtered-btn" onClick={() => { setFiltered(!filtered); }} > Set </Button> <Table columns={columns} dataSource={data} /> </div> ); }; const { container } = render(<App />); expect( container.querySelector('.ant-table-filter-trigger')?.className.includes('active'), ).toBeTruthy(); fireEvent.click(container.querySelector('#change-filtered-btn')!); refreshTimer(); expect( container.querySelector('.ant-table-filter-trigger')?.className.includes('active'), ).toBeFalsy(); }); it('filteredValue with empty array should not active the filtered icon', () => { const { container } = render( createTable({ columns: [ { ...column, filteredValue: [], }, ], }), ); expect( container.querySelector('.ant-table-filter-trigger')?.className.includes('active'), ).toBeFalsy(); }); it('with onFilter', () => { const onFilter = jest.fn((value, record) => record.key === value); const columns = [{ dataIndex: 'key', filteredValue: [5], onFilter }]; const testData = [{ key: 1 }, { key: 3 }, { key: 5 }]; const { container } = render(<Table columns={columns} dataSource={testData} />); expect(onFilter).toHaveBeenCalled(); expect(container.querySelectorAll('tbody tr')).toHaveLength(1); }); it('jsx work', () => { const { container } = render( <Table dataSource={data}> <Table.Column title="Name" dataIndex="name" filters={[ { text: 'Jack', value: 'Jack' }, { text: 'Lucy', value: 'Lucy' }, ]} onFilter={(value, record: any) => record.name.includes(value)} defaultFilteredValue={['Jack']} /> </Table>, ); expect(container.querySelectorAll('tbody tr')).toHaveLength(1); expect(container.querySelector('tbody tr td')?.textContent).toEqual('Jack'); }); it(`shouldn't keep status when controlled filteredValue isn't change`, () => { const filterControlledColumn = { title: 'Name', dataIndex: 'name', filteredValue: null, filters: [ { text: 'Boy', value: 'boy' }, { text: 'Girl', value: 'girl' }, ], onFilter: filterFn, }; const { container } = render(createTable({ columns: [filterControlledColumn] })); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-dropdown-menu-item')!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); // close dropdown fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); // reopen const checkbox = container ?.querySelector('.ant-dropdown-menu-item') ?.querySelector<HTMLInputElement>('input[type=checkbox]'); expect(checkbox?.checked).toBe(false); }); it('should not trigger onChange when filters is empty', () => { const onChange = jest.fn(); const Test: React.FC<{ filters?: ColumnFilterItem[] }> = ({ filters }) => ( <Table onChange={onChange} rowKey="name" columns={[{ title: 'Name', dataIndex: 'name', filters }]} dataSource={[{ name: 'Jack' }]} /> ); const { container, unmount } = render(<Test filters={[]} />); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(onChange).not.toHaveBeenCalled(); onChange.mockReset(); unmount(); }); it('filters in children should render', () => { const columns = [ { title: 'English Score', dataIndex: 'english', filters: [{ text: '1', value: 1 }], onFilter: (record: any) => String(record.english1).includes(String(1)), children: [ { title: 'English Score1', dataIndex: 'english1', filters: [{ text: '2', value: 2 }], onFilter: (record: any) => String(record.english2).includes(String(2)), }, { title: 'English Score2', dataIndex: 'english2', filters: [{ text: '2', value: 3 }], onFilter: (record: any) => String(record.english2).includes(String(3)), }, ], }, ]; const dataSource = [ { key: '1', english: 71, english1: 71, english2: 72, }, { key: '2', english: 89, english1: 72, english2: 72, }, { key: '3', english: 70, english1: 71, english2: 73, }, { key: '4', english: 89, english1: 71, english2: 72, }, ]; const { container } = render( createTable({ columns, dataSource, }), ); expect(container.querySelectorAll('.ant-table-filter-column')).toHaveLength(3); }); // Warning: An update to Item ran an effect, but was not wrapped in act(...). it('should pagination.current be 1 after filtering', () => { const onChange = jest.fn(); const columns = [ { title: 'Name', dataIndex: 'name', filters: [ { text: 'Jim', value: 'Jim', }, { text: 'Joe', value: 'Joe', }, ], onFilter: (value: any, record: any) => record.name.indexOf(value) === 0, sorter: (a: any, b: any) => a.name.length - b.name.length, sortDirections: ['descend'], }, ] as TableProps<any>['columns']; const dataSource = [ { key: '1', name: 'John Brown', age: 32, address: 'New York No. 1 Lake Park', }, { key: '2', name: 'Joe Black', age: 32, address: 'Sydney No. 1 Lake Park', }, ]; const { container } = render( <Table onChange={onChange} rowKey="name" columns={columns} dataSource={dataSource} />, ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelector('.ant-dropdown-menu-item')!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(onChange.mock.calls[0][0].current).toBe(1); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelectorAll('.ant-dropdown-menu-item')[1]!); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(onChange.mock.calls[1][0].current).toBe(1); }); // https://github.com/ant-design/ant-design/issues/30454 it('should not trigger onFilterDropdownOpenChange when call confirm({ closeDropdown: false })', () => { const onFilterDropdownOpenChange = jest.fn(); const { container } = render( createTable({ columns: [ { title: 'Name', dataIndex: 'name', key: 'name', filteredValue: name as unknown as FilterValue, filterDropdown: ({ confirm }) => ( <> <button id="confirm-and-close" type="button" onClick={() => confirm()}> confirm </button> <button id="confirm-only" type="button" onClick={() => confirm({ closeDropdown: false })} > confirm </button> </> ), onFilterDropdownOpenChange, }, ], }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect(onFilterDropdownOpenChange).toHaveBeenCalledTimes(1); fireEvent.click(container.querySelector('#confirm-only')!); expect(onFilterDropdownOpenChange).toHaveBeenCalledTimes(1); fireEvent.click(container.querySelector('#confirm-and-close')!); expect(onFilterDropdownOpenChange).toHaveBeenCalledTimes(2); expect(onFilterDropdownOpenChange).toHaveBeenLastCalledWith(false); }); // Warning: An update to Item ran an effect, but was not wrapped in act(...). it('Column with filter and children filters properly.', () => { const App: React.FC = () => { const [filteredInfo, setFilteredInfo] = useState<Record<string, FilterValue | null>>({}); const [sortedInfo, setSortedInfo] = useState<SorterResult<any> | SorterResult<any>[]>({}); const handleChange: TableProps<any>['onChange'] = (_, filters, sorter) => { setFilteredInfo(filters); setSortedInfo(sorter); }; const columns = [ { title: 'Name', dataIndex: 'name', key: 'name', filters: [ { text: 'Joe', value: 'Joe' }, { text: 'Jim', value: 'Jim' }, ], filteredValue: filteredInfo?.name || null, onFilter: (value: any, record: any) => record.name.includes(value), children: [{ title: 'Age', dataIndex: 'age', key: 'age' }], }, { title: 'Age', dataIndex: 'age', key: 'age', sorter: (a: any, b: any) => a.age - b.age, sortOrder: (sortedInfo as any)?.columnKey === 'age' && (sortedInfo as any)?.order, ellipsis: true, }, ]; return ( <Table columns={columns} onChange={handleChange} dataSource={[ { key: '1', name: 'John Brown', age: 32, address: 'New York No. 1 Lake Park', }, { key: '2', name: 'Jim Green', age: 42, address: 'London No. 1 Lake Park', }, { key: '3', name: 'Joe Black', age: 66, address: 'Sydney No. 1 Lake Park', }, { key: '4', name: 'Jim Red', age: 32, address: 'London No. 2 Lake Park', }, ]} /> ); }; const { container } = render(<App />); expect(container.querySelector('.ant-table-tbody .ant-table-cell')?.textContent).toEqual( `${32}`, ); fireEvent.click(container.querySelector('.ant-dropdown-trigger.ant-table-filter-trigger')!); fireEvent.click(container.querySelector('.ant-dropdown-menu-item')!); fireEvent.click(container.querySelector('.ant-btn.ant-btn-primary.ant-btn-sm')!); expect(container.querySelector('.ant-table-tbody .ant-table-cell')?.textContent).toEqual( `${66}`, ); }); it('Columns with filters should filter correctly after reset it.', () => { interface DataType { key: React.Key; name?: string; name1?: string; age?: number; address?: string; } const columns: ColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', filters: [ { text: 'Joe', value: 'Joe', }, { text: 'Jim', value: 'Jim', }, { text: 'Submenu', value: 'Submenu', children: [ { text: 'Green', value: 'Green', }, { text: 'Black', value: 'Black', }, ], }, ], // specify the condition of filtering result // here is that finding the name started with `value` onFilter: (value: string, record) => record.name?.indexOf(value) === 0, sorter: (a, b) => a.name!.length - b.name!.length, sortDirections: ['descend'], }, { title: 'Age', dataIndex: 'age', defaultSortOrder: 'descend', sorter: (a, b) => a.age! - b.age!, }, { title: 'Address', dataIndex: 'address', filters: [ { text: 'London', value: 'London', }, { text: 'New York', value: 'New York', }, ], onFilter: (value: string, record) => record.address?.indexOf(value) === 0, }, ]; const App: React.FC = () => { const [ddd, setData] = React.useState<Array<DataType>>([ { key: '1', name: 'John Brown', age: 32, address: 'New York No. 1 Lake Park', }, { key: '2', name: 'Jim Green', age: 42, address: 'London No. 1 Lake Park', }, { key: '3', name: 'Joe Black', age: 32, address: 'Sydney No. 1 Lake Park', }, { key: '4', name: 'Jim Red', age: 32, address: 'London No. 2 Lake Park', }, ]); const [cs, setCs] = React.useState(columns); const handleClick = () => { setCs([ { title: 'name1', dataIndex: 'name1', }, { title: 'Address', dataIndex: 'address', filters: [ { text: 'London', value: 'London', }, { text: 'New York', value: 'New York', }, ], onFilter: (value: string, record) => record.address?.indexOf(value) === 0, }, ]); setData([ { key: '1', name1: 'Joe Brown', address: 'New York No. 1 Lake Park', }, { key: '2', name1: 'Jim Green', address: 'London No. 1 Lake Park', }, { key: '3', name1: 'Joe Black', address: 'Sydney No. 1 Lake Park', }, { key: '4', name1: 'Jim Red', address: 'London No. 2 Lake Park', }, ]); }; return ( <div> <span className="rest-btn" onClick={handleClick}> refresh </span> <Table columns={cs} dataSource={ddd} /> </div> ); }; const { container } = render(<App />); expect(container.querySelectorAll('.ant-table-tbody .ant-table-row').length).toEqual(4); // Open fireEvent.click(container.querySelector('.ant-table-filter-trigger')!); function getFilterMenu() { return container.querySelector('.ant-table-filter-dropdown'); } const items = getFilterMenu()?.querySelectorAll('li.ant-dropdown-menu-item'); fireEvent.click(items?.[0]!); fireEvent.click( getFilterMenu()?.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!, ); refreshTimer(); expect(container.querySelectorAll('.ant-table-tbody .ant-table-row').length).toEqual(1); fireEvent.click(container.querySelector('.rest-btn')!); expect(container.querySelectorAll('.ant-table-tbody .ant-table-row').length).toEqual(4); }); describe('filter tree mode', () => { it('supports filter tree', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container } = render( createTable({ columns: [ { ...column, filterMode: 'tree', }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-table-filter-dropdown-tree').length).toBe(1); expect(container.querySelectorAll('.ant-tree-checkbox').length).toBe(5); }); it('supports search input in filter tree', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container } = render( createTable({ columns: [ { ...column, filterMode: 'tree', filterSearch: true, }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-table-filter-dropdown-tree').length).toBe(1); expect(container.querySelectorAll('.ant-input').length).toBe(1); fireEvent.change(container.querySelector('.ant-input')!, { target: { value: '111' } }); }); it('supports search input in filter menu', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container } = render( createTable({ columns: [{ ...column, filterSearch: true }], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-table-filter-dropdown-search').length).toBe(1); expect(container.querySelectorAll('.ant-input').length).toBe(1); fireEvent.change(container.querySelector('.ant-input')!, { target: { value: '111' } }); }); it('should skip search when filters[0].text is ReactNode', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container, unmount } = render( createTable({ columns: [ { ...column, filters: [ { text: '123', value: '456', }, { text: 123456, value: '456', }, { text: <span>123</span>, value: '456', }, ], filterSearch: true, }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-table-filter-dropdown-search').length).toBe(1); expect(container.querySelectorAll('.ant-input').length).toBe(1); expect(container.querySelectorAll('li.ant-dropdown-menu-item').length).toBe(3); fireEvent.change(container.querySelector('.ant-input')!, { target: { value: '123' } }); expect(container.querySelectorAll('li.ant-dropdown-menu-item').length).toBe(2); unmount(); }); it('should supports filterSearch has type of function', () => { const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container, unmount } = render( createTable({ columns: [ { ...column, filters: [ { text: '123', value: '123' }, { text: 123456, value: '456' }, { text: <span>123</span>, value: '456' }, ], filterSearch: (input: any, record: any) => record.value.includes(input), }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-table-filter-dropdown-search').length).toBe(1); expect(container.querySelectorAll('.ant-input').length).toBe(1); expect(container.querySelectorAll('li.ant-dropdown-menu-item').length).toBe(3); fireEvent.change(container.querySelector('.ant-input')!, { target: { value: '456' } }); expect(container.querySelectorAll('li.ant-dropdown-menu-item').length).toBe(2); unmount(); errorSpy.mockRestore(); }); it('should supports filterSearch has type of function when filterMode is tree', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container } = render( createTable({ columns: [ { ...column, filterMode: 'tree', filters: [ { text: '节点一', value: 'node1' }, { text: '节点二', value: 'node2' }, { text: '节点三', value: 'node3' }, ], filterSearch: (input: any, record: TreeColumnFilterItem) => (record.title as string).includes(input), }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-table-filter-dropdown-tree').length).toBe(1); expect(container.querySelectorAll('.ant-input').length).toBe(1); fireEvent.change(container.querySelector('.ant-input')!, { target: { value: '节点二' } }); expect(container.querySelectorAll('.ant-tree-treenode.filter-node').length).toBe(1); }); it('supports check all items', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container } = render( createTable({ columns: [{ ...column, filterMode: 'tree', filterSearch: true }], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-table-filter-dropdown-checkall').length).toBe(1); expect(container.querySelector('.ant-table-filter-dropdown-checkall')?.textContent).toBe( 'Select all items', ); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(0); // fireEvent.change(container.querySelector('.ant-table-filter-dropdown-checkall input'), { target: { checked: true } }); // 为什么 fireEvent.change 模拟 checkbox 触发会失败 fireEvent.click(container.querySelector('.ant-table-filter-dropdown-checkall')!); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(5); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-checkall')!); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(0); }); it('supports check item by selecting it', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container } = render( createTable({ columns: [ { ...column, filterMode: 'tree', filterSearch: true, }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-table-filter-dropdown-checkall').length).toBe(1); expect(container.querySelector('.ant-table-filter-dropdown-checkall')?.textContent).toBe( 'Select all items', ); fireEvent.click(container.querySelector('.ant-tree-node-content-wrapper')!); expect( container ?.querySelector('.ant-tree-checkbox') ?.className.includes('ant-tree-checkbox-checked'), ).toBe(true); expect( container ?.querySelector('.ant-table-filter-dropdown-checkall .ant-checkbox') ?.className.includes('ant-checkbox-indeterminate'), ).toBe(true); }); it('select-all checkbox should change when all items are selected', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container } = render( createTable({ columns: [ { ...column, filterMode: 'tree', filters: [ { text: 'Boy', value: 'boy' }, { text: 'Girl', value: 'girl' }, ], }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); fireEvent.click(container.querySelectorAll('.ant-tree-node-content-wrapper')[0]); fireEvent.click(container.querySelectorAll('.ant-tree-node-content-wrapper')[1]); expect( container ?.querySelector('.ant-table-filter-dropdown-checkall .ant-checkbox') ?.className.includes('ant-checkbox-checked'), ).toBe(true); }); }); it('filterMultiple is false - check item', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container } = render( createTable({ columns: [{ ...column, filterMode: 'tree', filterMultiple: false }], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-tree-checkbox').length).toBe(5); expect(container.querySelector('.ant-table-filter-dropdown-checkall')).toBe(null); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(0); fireEvent.click(container.querySelectorAll('.ant-tree-checkbox')[2]); expect( container .querySelectorAll('.ant-tree-checkbox')[2] .className.includes('ant-tree-checkbox-checked'), ).toBe(true); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(1); fireEvent.click(container.querySelectorAll('.ant-tree-checkbox')[1]); expect( container .querySelectorAll('.ant-tree-checkbox')[1] .className.includes('ant-tree-checkbox-checked'), ).toBe(true); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(1); fireEvent.click(container.querySelectorAll('.ant-tree-checkbox')[1]); expect( container .querySelectorAll('.ant-tree-checkbox')[1] .className.includes('ant-tree-checkbox-checked'), ).toBe(false); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(0); }); it('filterMultiple is false - select item', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container } = render( createTable({ columns: [ { ...column, filterMode: 'tree', filterMultiple: false, }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-tree-checkbox').length).toBe(5); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(0); fireEvent.click(container.querySelectorAll('.ant-tree-node-content-wrapper')[2]); expect( container .querySelectorAll('.ant-tree-checkbox')[2] .className.includes('ant-tree-checkbox-checked'), ).toBe(true); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(1); fireEvent.click(container.querySelectorAll('.ant-tree-node-content-wrapper')[1]); expect( container .querySelectorAll('.ant-tree-checkbox')[1] .className.includes('ant-tree-checkbox-checked'), ).toBe(true); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(1); fireEvent.click(container.querySelectorAll('.ant-tree-node-content-wrapper')[1]); expect( container .querySelectorAll('.ant-tree-checkbox')[1] .className.includes('ant-tree-checkbox-checked'), ).toBe(false); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(0); }); it('should select children when select parent', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const { container } = render( createTable({ columns: [ { ...column, filters: [ { text: 'Boy', value: 'boy' }, { text: 'Girl', value: 'girl' }, { text: 'Title', value: 'title', children: [ { text: 'Jack', value: 'Jack' }, { text: 'Coder', value: 'coder' }, ], }, ], filterMode: 'tree', }, ], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); // check parentnode fireEvent.click(container.querySelectorAll('.ant-tree-checkbox')[2]); expect( container .querySelectorAll('.ant-tree-checkbox')[2] .className.includes('ant-tree-checkbox-checked'), ).toBe(true); expect( container .querySelectorAll('.ant-tree-checkbox')[3] .className.includes('ant-tree-checkbox-checked'), ).toBe(true); expect( container .querySelectorAll('.ant-tree-checkbox')[4] .className.includes('ant-tree-checkbox-checked'), ).toBe(true); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(renderedNames(container)).toEqual(['Jack']); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); fireEvent.click(container.querySelectorAll('.ant-tree-checkbox-inner')[2]); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(renderedNames(container)).toEqual(['Jack', 'Lucy', 'Tom', 'Jerry']); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); fireEvent.click(container.querySelectorAll('.ant-tree-node-content-wrapper')[2]); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(renderedNames(container)).toEqual(['Jack']); }); it('clearFilters should support params', () => { const filterConfig = [ ['Jack', 'NoParams', {}, ['Jack'], true], ['Lucy', 'Confirm', { confirm: true }, ['Jack', 'Lucy', 'Tom', 'Jerry'], true], ['Tom', 'Close', { closeDropdown: true }, ['Tom'], false], [ 'Jerry', 'Params', { closeDropdown: true, confirm: true }, ['Jack', 'Lucy', 'Tom', 'Jerry'], false, ], ]; let renderSelectedKeys; const filter = ({ prefixCls, setSelectedKeys, selectedKeys, confirm, clearFilters, }: FilterDropdownProps): React.ReactNode => { renderSelectedKeys = selectedKeys; return ( <div className={`${prefixCls}-view`} id="customFilter"> {filterConfig.map(([text, id, param]) => ( <> <span onClick={() => { setSelectedKeys([text as React.Key]); confirm(); }} id={`set${id}`} > setSelectedKeys </span> <span onClick={() => (clearFilters as any)?.(param)} id={`reset${id}`}> Reset </span> </> ))} </div> ); }; const { container } = render( createTable({ columns: [ { ...column, filterDropdown: filter, }, ], }), ); // check if renderer well fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!); expect(container.querySelector('#customFilter')).toMatchSnapshot(); expect(renderSelectedKeys).toHaveLength(0); filterConfig.forEach(([text, id, , matchNames, visible]) => { fireEvent.click(container.querySelector(`#set${id}`)!); expect(renderedNames(container)).toEqual([text]); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!); fireEvent.click(container.querySelector(`#reset${id}`)!); expect(renderedNames(container)).toEqual(matchNames); expect(container.querySelector('.ant-dropdown-open'))[visible ? 'toBeTruthy' : 'toBeFalsy'](); }); }); it('filterDropdown should support filterResetToDefaultFilteredValue', () => { jest.spyOn(console, 'error').mockImplementation(() => undefined); const columnFilter: ColumnGroupType<any> | ColumnType<any> = { ...column, filterMode: 'tree', filterSearch: true, defaultFilteredValue: ['girl'], }; const { container } = render( createTable({ columns: [columnFilter], }), ); fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(1); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-checkall')!); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(5); fireEvent.click(container.querySelector('button.ant-btn-link')!, nativeEvent); expect(container.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(0); const { container: container2 } = render( createTable({ columns: [ { ...columnFilter, filterResetToDefaultFilteredValue: true, }, ], }), ); fireEvent.click(container2.querySelector('span.ant-dropdown-trigger')!, nativeEvent); act(() => { jest.runAllTimers(); }); fireEvent.click(container2.querySelector('.ant-table-filter-dropdown-checkall')!); expect(container2.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(5); fireEvent.click(container2.querySelector('button.ant-btn-link')!, nativeEvent); expect(container2.querySelectorAll('.ant-tree-checkbox-checked').length).toBe(1); expect(container2.querySelector('.ant-tree-checkbox-checked+span')?.textContent).toBe('Girl'); }); it('filterDropdown should not override customize Menu selectable', () => { const onSelect = jest.fn(); const { container } = render( createTable({ columns: [ { ...column, filterDropdown: ( <div className="custom-filter-dropdown"> <Menu onSelect={onSelect} items={[ { key: '1', label: 'Item 1', }, ]} /> </div> ), }, ], }), ); // Open Filter fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); // Click Item fireEvent.click(container.querySelector('.ant-table-filter-dropdown .ant-dropdown-menu-item')!); expect(onSelect).toHaveBeenCalled(); }); describe('filteredKeys should all be controlled or not controlled', () => { let errorSpy: jest.SpyInstance; beforeEach(() => { resetWarned(); errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); errorSpy.mockReset(); }); afterEach(() => { errorSpy.mockRestore(); }); const tableData = [ { key: '1', name: 'John Brown', age: 32, }, ]; const getColumns = () => [ { title: 'name', dataIndex: 'name', key: 'name', filters: [], }, { title: 'age', dataIndex: 'age', key: 'age', filters: [], }, ]; it('all uncontrolled', () => { render( createTable({ columns: getColumns(), data: tableData, } as TableProps<any>), ); expect(errorSpy).not.toHaveBeenCalled(); }); it('part controlled', () => { const columns = getColumns(); (columns[0] as any).filteredValue = []; render( createTable({ columns, data: tableData, } as TableProps<any>), ); expect(errorSpy).toHaveBeenCalledWith( 'Warning: [antd: Table] Columns should all contain `filteredValue` or not contain `filteredValue`.', ); }); it('all controlled', () => { const columns = getColumns(); (columns[0] as any).filteredValue = []; (columns[1] as any).filteredValue = []; render( createTable({ columns, data: tableData, } as TableProps<any>), ); expect(errorSpy).not.toHaveBeenCalled(); }); }); // Warning: An update to Item ran an effect, but was not wrapped in act(...). it('can reset if filterResetToDefaultFilteredValue and filter is changing', () => { const { container } = render( createTable({ columns: [ { ...column, filters: [ { text: 'Jack', value: 'Jack' }, { text: 'Lucy', value: 'Lucy' }, ], defaultFilteredValue: ['Jack'], filterResetToDefaultFilteredValue: true, }, ], }), ); expect(container.querySelectorAll('tbody tr').length).toBe(1); expect(container.querySelector('tbody tr')?.textContent).toBe('Jack'); // open filter fireEvent.click(container.querySelector('span.ant-dropdown-trigger')!); expect( container.querySelector<HTMLLinkElement>('.ant-table-filter-dropdown-btns .ant-btn-link') ?.disabled, ).toBeTruthy(); expect(container.querySelectorAll('li.ant-dropdown-menu-item')[0].textContent).toBe('Jack'); expect(container.querySelectorAll('li.ant-dropdown-menu-item')[1].textContent).toBe('Lucy'); // deselect default fireEvent.click(container.querySelectorAll('li.ant-dropdown-menu-item')[0]); expect( container.querySelector<HTMLLinkElement>('.ant-table-filter-dropdown-btns .ant-btn-link') ?.disabled, ).toBeFalsy(); // select other one fireEvent.click(container.querySelectorAll('li.ant-dropdown-menu-item')[1]); expect( container.querySelector<HTMLLinkElement>('.ant-table-filter-dropdown-btns .ant-btn-link') ?.disabled, ).toBeFalsy(); // deselect other one fireEvent.click(container.querySelectorAll('li.ant-dropdown-menu-item')[1]); expect( container.querySelector<HTMLLinkElement>('.ant-table-filter-dropdown-btns .ant-btn-link') ?.disabled, ).toBeFalsy(); // select default fireEvent.click(container.querySelectorAll('li.ant-dropdown-menu-item')[0]); expect( container.querySelector<HTMLLinkElement>('.ant-table-filter-dropdown-btns .ant-btn-link') ?.disabled, ).toBeTruthy(); }); it('title render function support `filter`', () => { const title = jest.fn(() => 'RenderTitle'); const { container } = render( createTable({ columns: [ { ...column, title, filteredValue: ['boy'], }, ], }), ); expect(container.querySelector('.ant-table-column-title')?.textContent).toEqual('RenderTitle'); expect(title).toHaveBeenCalledWith( expect.objectContaining({ filters: { name: ['boy'] }, }), ); }); it('should be hidden and not commit when call close()', () => { const onFilterDropdownOpenChange = jest.fn(); const onFilter = jest.fn(); const { container } = render( createTable({ columns: [ { title: 'Name', dataIndex: 'name', key: 'name', filteredValue: name as unknown as FilterValue, filterDropdown: ({ close }) => ( <button id="close-only" type="button" onClick={() => close()}> close </button> ), onFilterDropdownOpenChange, onFilter, }, ], }), ); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); expect(onFilterDropdownOpenChange).toHaveBeenCalledTimes(1); fireEvent.click(container.querySelector('#close-only')!); expect(onFilterDropdownOpenChange).toHaveBeenCalledTimes(2); expect(onFilter).toHaveBeenCalledTimes(0); }); it('works with grouping columns correctly', () => { const columns = [ { title: 'group', key: 'group', children: [ { title: 'Name', dataIndex: 'name', key: 'name', filters: [ { text: 'Jack', value: 'Jack' }, { text: 'Lucy', value: 'Lucy' }, ], onFilter: filterFn, }, { title: 'Age', dataIndex: 'age', key: 'age', }, ], }, ]; const testData = [ { key: 0, name: 'Jack', age: 11 }, { key: 1, name: 'Lucy', age: 20 }, { key: 2, name: 'Tom', age: 21 }, { key: 3, name: 'Jerry', age: 22 }, ]; const { container } = render(<Table columns={columns} dataSource={testData} />); fireEvent.click(container.querySelector('.ant-dropdown-trigger')!); fireEvent.click(container.querySelectorAll('.ant-dropdown-menu-item')[0]); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); expect(renderedNames(container)).toEqual(['Jack']); }); it('changes to table data should not reset the filter dropdown state being changed by a user', () => { const tableProps = { key: 'stabletable', rowKey: 'name', dataSource: [], columns: [ { title: 'Name', dataIndex: 'name', filteredValue: [], // User is controlling filteredValue. It begins with no items checked. filters: [{ text: 'J', value: 'J' }], onFilter: (value: any, record: any) => record.name.includes(value), }, ], }; const { container, rerender } = render(createTable(tableProps)); // User opens filter Dropdown. fireEvent.click(container.querySelector('.ant-dropdown-trigger.ant-table-filter-trigger')!); // There is one checkbox and it begins unchecked. expect(container.querySelector<HTMLInputElement>('input[type="checkbox"]')!.checked).toEqual( false, ); // User checks it. fireEvent.click(container.querySelector('input[type="checkbox"]')!); // The checkbox is now checked. expect(container.querySelector<HTMLInputElement>('input[type="checkbox"]')!.checked).toEqual( true, ); // Table data changes while the dropdown is open and a user is setting filters. rerender(createTable({ ...tableProps, dataSource: [{ name: 'Foo' }] })); // The checkbox is still checked. expect(container.querySelector<HTMLInputElement>('input[type="checkbox"]')!.checked).toEqual( true, ); }); it('should not crash when filterDropdown is boolean', () => { const tableProps = { key: 'stabletable', rowKey: 'name', dataSource: [], columns: [ { title: 'Name', dataIndex: 'name', filterDropdown: true, }, ], }; const { container } = render(createTable(tableProps)); // User opens filter Dropdown. fireEvent.click(container.querySelector('.ant-dropdown-trigger.ant-table-filter-trigger')!); }); });
6,181
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/Table.order.test.tsx
import React from 'react'; import type { TableProps } from '..'; import Table from '..'; import { render } from '../../../tests/utils'; import { resetWarned } from '../../_util/warning'; describe('Table.order', () => { window.requestAnimationFrame = (callback) => window.setTimeout(callback, 16); window.cancelAnimationFrame = window.clearTimeout; const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); afterEach(() => { errorSpy.mockReset(); }); afterAll(() => { errorSpy.mockRestore(); }); const columns = [ { title: 'Name', dataIndex: 'name', }, ]; const data = [ { key: 0, name: 'Jack' }, { key: 1, name: 'Lucy' }, { key: 2, name: 'Tom' }, { key: 3, name: 'Jerry' }, ]; function createTable(props: TableProps<any> = {}) { return <Table columns={columns} dataSource={data} {...props} />; } it('warning if duplicated SELECTION_COLUMN', () => { resetWarned(); render( createTable({ columns: [Table.SELECTION_COLUMN, Table.SELECTION_COLUMN], rowSelection: {}, expandable: { expandedRowRender: () => null, }, }), ); expect(errorSpy).toHaveBeenCalledWith( 'Warning: [antd: Table] Multiple `SELECTION_COLUMN` exist in `columns`.', ); }); it('auto fixed', () => { const { container } = render( createTable({ columns: [ { dataIndex: 'name', fixed: true, }, Table.SELECTION_COLUMN, { dataIndex: 'key', }, ], rowSelection: {}, }), ); expect(container.querySelectorAll('tr')[1].querySelectorAll('td')).toHaveLength(3); expect( container.querySelectorAll('tr')[1].querySelectorAll('td.ant-table-cell-fix-left'), ).toHaveLength(2); }); });
6,182
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/Table.pagination.test.tsx
/* eslint-disable import/first */ jest.mock('../../_util/scrollTo'); import React from 'react'; import type { TablePaginationConfig, TableProps } from '..'; import Table from '..'; import { act, fireEvent, render } from '../../../tests/utils'; import scrollTo from '../../_util/scrollTo'; import { resetWarned } from '../../_util/warning'; describe('Table.pagination', () => { const columns = [ { title: 'Name', dataIndex: 'name', }, ]; const data = [ { key: 0, name: 'Jack' }, { key: 1, name: 'Lucy' }, { key: 2, name: 'Tom' }, { key: 3, name: 'Jerry' }, ]; const longData: any[] = []; for (let i = 0; i < 100; i += 1) { longData.push({ key: i, name: `${i}` }); } const pagination = { className: 'my-page', pageSize: 2 }; function createTable(props?: TableProps<any>) { return <Table columns={columns} dataSource={data} pagination={pagination} {...props} />; } function renderedNames(container: ReturnType<typeof render>['container']) { // --- reserve comment for code review --- // return wrapper.find('BodyRow').map(row => row.props().record.name); const namesList: (Node['textContent'] | undefined)[] = []; container .querySelector('.ant-table-tbody') ?.querySelectorAll('tr') ?.forEach((tr) => { namesList.push(tr.querySelector('td')?.textContent); }); return namesList; } it('renders pagination correctly', () => { const { asFragment } = render(createTable()); expect(asFragment().firstChild).toMatchSnapshot(); }); it('not crash when pageSize is undefined', () => { expect(() => { render(createTable({ pagination: { pageSize: undefined } })); }).not.toThrow(); }); it('should not show pager if pagination.hideOnSinglePage is true and only 1 page', () => { const { container, rerender } = render( createTable({ pagination: { pageSize: 3, hideOnSinglePage: true } }), ); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(1); rerender(createTable({ pagination: { pageSize: 3, hideOnSinglePage: false } })); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(1); rerender(createTable({ pagination: { pageSize: 4, hideOnSinglePage: true } })); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(0); rerender(createTable({ pagination: { pageSize: 4, hideOnSinglePage: false } })); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(1); rerender(createTable({ pagination: { pageSize: 5, hideOnSinglePage: true } })); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(0); rerender(createTable({ pagination: { pageSize: 5, hideOnSinglePage: false } })); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(1); }); it('should use pageSize when defaultPageSize and pageSize are both specified', () => { const { container } = render(createTable({ pagination: { pageSize: 3, defaultPageSize: 4 } })); expect(container.querySelectorAll('.ant-pagination-item')).toHaveLength(2); }); it('paginate data', () => { const { container } = render(createTable()); expect(renderedNames(container)).toEqual(['Jack', 'Lucy']); fireEvent.click(container.querySelector('.ant-pagination-next')!); expect(renderedNames(container)).toEqual(['Tom', 'Jerry']); }); it('repaginates when pageSize change', () => { const { container, rerender } = render(createTable()); rerender(createTable({ pagination: { pageSize: 1 } })); expect(renderedNames(container)).toEqual(['Jack']); }); // https://github.com/ant-design/ant-design/issues/33487 it('should not crash when trigger onChange in render', () => { function App() { const [page, setPage] = React.useState({ current: 1, pageSize: 10 }); const onChange: TablePaginationConfig['onChange'] = (current, pageSize) => { setPage({ current, pageSize }); }; return ( <Table dataSource={[]} pagination={{ ...page, onChange, }} /> ); } const { asFragment } = render(<App />); expect(asFragment().firstChild).toMatchSnapshot(); }); it('should accept pagination size', () => { const { container } = render( createTable({ pagination: { size: 'small' }, }), ); expect(container.querySelectorAll('.ant-pagination.ant-pagination-mini')).toHaveLength(1); }); it('should scroll to first row when page change', () => { (scrollTo as any).mockReturnValue(null); const { container } = render( createTable({ scroll: { y: 20 }, pagination: { showSizeChanger: true, pageSize: 2 } }), ); expect(scrollTo).toHaveBeenCalledTimes(0); fireEvent.click(container.querySelector('.ant-pagination-next')!); expect(scrollTo).toHaveBeenCalledTimes(1); fireEvent.mouseDown(container.querySelector('.ant-select-selector')!); fireEvent.click(container.querySelectorAll('.ant-select-item')[1]); expect(scrollTo).toHaveBeenCalledTimes(2); }); it('should scroll inside .ant-table-body', () => { (scrollTo as any).mockImplementationOnce( (top: number, { getContainer }: { getContainer: () => HTMLElement }) => { expect(top).toBe(0); expect(getContainer().className).toBe('ant-table-body'); }, ); const { container } = render( createTable({ scroll: { y: 20 }, pagination: { showSizeChanger: true, pageSize: 2 } }), ); fireEvent.click(container.querySelector('.ant-pagination-next')!); }); it('fires change event', () => { const handleChange = jest.fn(); const handlePaginationChange = jest.fn(); const noop = () => {}; const { container } = render( createTable({ pagination: { ...pagination, onChange: handlePaginationChange, onShowSizeChange: noop }, onChange: handleChange, }), ); fireEvent.click(container.querySelector('.ant-pagination-next')!); expect(handleChange).toHaveBeenCalledWith( { className: 'my-page', current: 2, pageSize: 2 }, {}, {}, { currentDataSource: [ { key: 0, name: 'Jack' }, { key: 1, name: 'Lucy' }, { key: 2, name: 'Tom' }, { key: 3, name: 'Jerry' }, ], action: 'paginate', }, ); expect(handlePaginationChange).toHaveBeenCalledWith(2, 2); }); // https://github.com/ant-design/ant-design/issues/4532 // https://codepen.io/afc163/pen/dVeNoP?editors=001 it('should have pager when change pagination from false to undefined', () => { const { container, rerender } = render(createTable({ pagination: false })); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(0); rerender(createTable({ pagination: undefined })); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(1); expect(container.querySelectorAll('.ant-pagination-item-active')).toHaveLength(1); }); // https://github.com/ant-design/ant-design/issues/4532 // https://codepen.io/afc163/pen/pWVRJV?editors=001 it('should display pagination as prop pagination change between true and false', () => { const { container, rerender } = render(createTable()); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(1); expect(container.querySelectorAll('.ant-pagination-item')).toHaveLength(2); rerender(createTable({ pagination: false })); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(0); rerender(createTable({ pagination })); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(1); expect(container.querySelectorAll('.ant-pagination-item')).toHaveLength(2); fireEvent.click(container.querySelector('.ant-pagination-item-2')!); expect(renderedNames(container)).toEqual(['Tom', 'Jerry']); rerender(createTable({ pagination: false })); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(0); rerender(createTable({ pagination: undefined })); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(1); expect(container.querySelectorAll('.ant-pagination-item')).toHaveLength(2); expect(renderedNames(container)).toEqual(['Tom', 'Jerry']); }); // https://github.com/ant-design/ant-design/issues/5259 it('change to correct page when data source changes', () => { const { container, rerender } = render(createTable({ pagination: { pageSize: 1 } })); fireEvent.click(container.querySelector('.ant-pagination-item-3')!); rerender(createTable({ dataSource: [data[0]] })); expect( container .querySelector('.ant-pagination-item-1') ?.className.includes('ant-pagination-item-active'), ).toBe(true); }); // https://github.com/ant-design/ant-design/issues/24913 it('should called onChange when pageSize change', () => { const onChange = jest.fn(); const onShowSizeChange = jest.fn(); const { container } = render( createTable({ pagination: { current: 1, pageSize: 10, total: 200, onChange, onShowSizeChange }, }), ); fireEvent.mouseDown(container.querySelector('.ant-select-selector')!); expect(container.querySelectorAll('.ant-select-item-option').length).toBe(4); fireEvent.click(container.querySelectorAll('.ant-select-item-option')[1]); expect(onChange).toHaveBeenCalledWith(1, 20); }); it('should not change page when pagination current is specified', () => { const { container } = render(createTable({ pagination: { current: 2, pageSize: 1 } })); expect( container ?.querySelector('.ant-pagination-item-2') ?.className.includes('ant-pagination-item-active'), ).toBe(true); fireEvent.click(container.querySelector('.ant-pagination-item-3')!); expect( container ?.querySelector('.ant-pagination-item-2') ?.className.includes('ant-pagination-item-active'), ).toBe(true); }); // https://github.com/ant-design/ant-design/issues/29175 it('should change page to max page count when pageSize change without pagination.total', () => { const onChange = jest.fn(); const onShowSizeChange = jest.fn(); const { container } = render( createTable({ pagination: { current: 10, pageSize: 10, onChange, onShowSizeChange, }, dataSource: longData, }), ); fireEvent.mouseDown(container.querySelector('.ant-select-selector')!); expect(container.querySelectorAll('.ant-select-item-option').length).toBe(4); fireEvent.click(container.querySelectorAll('.ant-select-item-option')[1]); const newPageSize = parseInt( container.querySelectorAll('.ant-select-item-option')?.[1]?.textContent!, 10, ); expect(onChange).toHaveBeenCalledWith(longData.length / newPageSize, 20); }); it('should change page to max page count when pageSize change with pagination.total', () => { const onChange = jest.fn(); const onShowSizeChange = jest.fn(); const total = 20000; const { container } = render( createTable({ pagination: { current: total / 10, pageSize: 10, onChange, total, onShowSizeChange, }, dataSource: longData, }), ); fireEvent.mouseDown(container.querySelector('.ant-select-selector')!); expect(container.querySelectorAll('.ant-select-item-option').length).toBe(4); fireEvent.click(container.querySelectorAll('.ant-select-item-option')[1]); const newPageSize = parseInt( container.querySelectorAll('.ant-select-item-option')?.[1]?.textContent!, 10, ); expect(onChange).toHaveBeenCalledWith(total / newPageSize, 20); }); // https://github.com/ant-design/ant-design/issues/29175 it('should not change page to max page if current is not greater max page when pageSize change', () => { const onChange = jest.fn(); const onShowSizeChange = jest.fn(); const { container } = render( createTable({ pagination: { current: 4, pageSize: 10, onChange, onShowSizeChange, }, dataSource: longData, }), ); fireEvent.mouseDown(container.querySelector('.ant-select-selector')!); expect(container.querySelectorAll('.ant-select-item-option').length).toBe(4); fireEvent.click(container.querySelectorAll('.ant-select-item-option')[1]); expect(onChange).toHaveBeenCalledWith(4, 20); }); it('should reset current to max page when data length is cut', () => { const onChange = jest.fn(); const { container, rerender } = render( createTable({ pagination: { current: 10, pageSize: 10, onChange, }, dataSource: longData, }), ); expect(container.querySelector('.ant-pagination-item-active')?.textContent).toBe('10'); rerender( createTable({ pagination: { current: 10, pageSize: 10, onChange }, dataSource: longData.filter((item) => item.key < 60), }), ); expect(container.querySelector('.ant-pagination-item-active')?.textContent).toBe('6'); }); it('specify the position of pagination', () => { const { container, rerender } = render(createTable({ pagination: { position: ['topLeft'] } })); expect(container.querySelector('.ant-spin-container')?.children).toHaveLength(2); expect( container ?.querySelector('.ant-spin-container') ?.children[0].className.includes('ant-pagination'), ).toBe(true); rerender(createTable({ pagination: { position: ['bottomRight'] } })); expect(container.querySelector('.ant-spin-container')?.children).toHaveLength(2); expect( container ?.querySelector('.ant-spin-container') ?.children[1].className.includes('ant-pagination'), ).toBe(true); rerender(createTable({ pagination: { position: ['topLeft', 'bottomRight'] } })); expect(container.querySelector('.ant-spin-container')?.children).toHaveLength(3); expect( container ?.querySelector('.ant-spin-container') ?.children[0].className.includes('ant-pagination'), ).toBe(true); expect( container ?.querySelector('.ant-spin-container') ?.children[2].className.includes('ant-pagination'), ).toBe(true); rerender( createTable({ pagination: { position: ['none', 'none'] as unknown as TablePaginationConfig['position'] }, }), ); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(0); rerender( createTable({ pagination: { position: ['invalid'] as unknown as TablePaginationConfig['position'] }, }), ); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(1); rerender( createTable({ pagination: { position: ['invalid', 'invalid'] as unknown as TablePaginationConfig['position'], }, }), ); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(1); }); /** * `pagination` is not designed to accept `true` value, but in practice, many people assign `true` * to `pagination`, since they misunderstand that `pagination` can accept a boolean value. */ it('Accepts pagination as true', () => { const { asFragment } = render(createTable({ pagination: true as any } as TableProps<any>)); expect(asFragment().firstChild).toMatchSnapshot(); }); it('ajax render should keep display by the dataSource', () => { const onChange = jest.fn(); const onPaginationChange = jest.fn(); const { container } = render( createTable({ onChange, pagination: { total: 200, onChange: onPaginationChange, }, }), ); expect(container.querySelectorAll('.ant-table-tbody tr.ant-table-row')).toHaveLength( data.length, ); fireEvent.click(container.querySelector('.ant-pagination .ant-pagination-item-2')!); expect(onChange.mock.calls[0][0].current).toBe(2); expect(onChange).toHaveBeenCalledWith( { current: 2, pageSize: 10, total: 200 }, {}, {}, { currentDataSource: [ { key: 0, name: 'Jack' }, { key: 1, name: 'Lucy' }, { key: 2, name: 'Tom' }, { key: 3, name: 'Jerry' }, ], action: 'paginate', }, ); expect(onPaginationChange).toHaveBeenCalledWith(2, 10); expect(container.querySelectorAll('.ant-table-tbody tr.ant-table-row')).toHaveLength( data.length, ); }); it('onShowSizeChange should trigger once', () => { jest.useFakeTimers(); const onShowSizeChange = jest.fn(); const onChange = jest.fn(); const { container } = render( createTable({ pagination: { total: 200, showSizeChanger: true, onShowSizeChange, }, onChange, }), ); fireEvent.mouseDown(container.querySelector('.ant-select-selector')!); // resolve Warning: An update to Align ran an effect, but was not wrapped in act(...) act(() => { jest.runAllTimers(); }); expect(container.querySelectorAll('.ant-select-item-option').length).toBe(4); fireEvent.click(container.querySelectorAll('.ant-select-item-option')[3]); expect(onShowSizeChange).toHaveBeenCalledTimes(1); expect(onShowSizeChange).toHaveBeenLastCalledWith(1, 100); expect(onChange).toHaveBeenCalled(); jest.useRealTimers(); }); it('should support current in pagination', () => { const { container } = render(createTable({ pagination: { current: 2, pageSize: 1 } })); expect(container.querySelector('.ant-pagination-item-active')?.textContent).toBe('2'); }); it('should support defaultCurrent in pagination', () => { const { container } = render(createTable({ pagination: { defaultCurrent: 2, pageSize: 1 } })); expect(container.querySelector('.ant-pagination-item-active')?.textContent).toBe('2'); }); it('should support defaultPageSize in pagination', () => { const { container } = render(createTable({ pagination: { defaultPageSize: 1 } })); expect(container.querySelectorAll('.ant-pagination-item')).toHaveLength(4); }); // https://github.com/ant-design/ant-design/issues/19957 it('ajax should work with pagination', () => { const { container, rerender } = render(createTable({ pagination: { total: 100 } })); fireEvent.click(container.querySelector('.ant-pagination-item-2')!); rerender(createTable({ pagination: { current: 2, total: 100 } })); expect( container ?.querySelector('.ant-pagination-item-2') ?.className.includes('ant-pagination-item-active'), ).toBeTruthy(); }); it('pagination should ignore invalidate total', () => { const { container } = render( createTable({ pagination: { total: null } as unknown as TableProps<any>['pagination'] }), ); expect(container.querySelectorAll('.ant-pagination-item-1').length).toBeTruthy(); }); it('renders pagination topLeft and bottomRight', () => { const { asFragment } = render( createTable({ pagination: ['topLeft', 'bottomRight'] as unknown as TableProps<any>['pagination'], }), ); expect(asFragment().firstChild).toMatchSnapshot(); }); it('should call onChange when change pagination size', () => { const onChange = jest.fn(); const { container } = render( createTable({ pagination: { total: 200, showSizeChanger: true, }, onChange, }), ); fireEvent.mouseDown(container.querySelector('.ant-select-selector')!); fireEvent.click(container.querySelectorAll('.ant-select-item-option')[2]); expect(onChange).toHaveBeenCalledTimes(1); }); it('dynamic warning', () => { resetWarned(); const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); const dynamicData = []; for (let i = 0; i < 15; i += 1) { dynamicData.push({ key: i, name: i, }); } const { container } = render( createTable({ dataSource: dynamicData, pagination: { total: 100, pageSize: 10, current: 2 }, }), ); expect(container.querySelectorAll('tbody tr')).toHaveLength(5); expect(errorSpy).toHaveBeenCalledWith( 'Warning: [antd: Table] `dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.', ); }); it('should render pagination after last item on last page being removed', () => { const total = data.length; const paginationProp = { pageSize: 1, total, current: total, position: ['topLeft', 'bottomLeft'], }; const { container, rerender } = render( createTable({ pagination: paginationProp } as TableProps<any>), ); rerender( createTable({ dataSource: data.slice(total - 1), pagination: { ...paginationProp, total: total - 1 }, } as TableProps<any>), ); expect(container.querySelectorAll('.ant-pagination')).toHaveLength(2); }); it('showTotal should hide when removed', () => { const dataProp = { data: [] } as any; const Demo: React.FC = () => { const [p, setP] = React.useState<TablePaginationConfig>({ showTotal: (t) => `>${t}<`, total: 200, current: 1, pageSize: 10, }); return ( <Table {...dataProp} columns={[]} pagination={p} onChange={(pg) => { setP({ ...pg, total: 23, }); }} /> ); }; const { container } = render(<Demo />); expect(container.querySelector('.ant-pagination-total-text')?.textContent).toEqual('>200<'); // Should hide fireEvent.click(container.querySelector('.ant-pagination-item-2')!); expect(container.querySelectorAll('.ant-pagination-total-text')).toHaveLength(0); }); it('should preserve table pagination className', () => { const dataProp = { data: [] } as any; const { container } = render( <Table {...dataProp} columns={[]} pagination={{ className: 'pagination', total: 200, current: 1, pageSize: 10, }} />, ); expect(container.querySelector('.ant-pagination')?.className).toEqual( 'ant-pagination ant-table-pagination ant-table-pagination-right pagination', ); }); });
6,183
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/Table.rowSelection.test.tsx
import React from 'react'; import type { TableProps } from '..'; import Table from '..'; import { resetWarned } from '../../_util/warning'; import { act, fireEvent, render } from '../../../tests/utils'; import ConfigProvider from '../../config-provider'; import type { TableRowSelection } from '../interface'; describe('Table.rowSelection', () => { window.requestAnimationFrame = (callback) => window.setTimeout(callback, 16); window.cancelAnimationFrame = window.clearTimeout; const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); afterEach(() => { errorSpy.mockReset(); }); afterAll(() => { errorSpy.mockRestore(); }); const columns = [ { title: 'Name', dataIndex: 'name', }, ]; const data = [ { key: 0, name: 'Jack' }, { key: 1, name: 'Lucy' }, { key: 2, name: 'Tom' }, { key: 3, name: 'Jerry' }, ]; function createTable(props: TableProps<any> = {}) { return <Table columns={columns} dataSource={data} rowSelection={{}} {...props} />; } function renderedNames(container: ReturnType<typeof render>['container']) { const namesList: Node['textContent'][] = []; container ?.querySelector('.ant-table-tbody') ?.querySelectorAll('tr') ?.forEach((tr) => { namesList.push(tr?.querySelectorAll('td')?.[1]?.textContent); }); return namesList; } function getSelections(container: ReturnType<typeof render>['container']) { const keys: React.Key[] = []; container.querySelectorAll('.ant-table-tbody tr').forEach((row) => { const key = row.getAttribute('data-row-key'); if (row.querySelector('input')?.checked) { if (isNaN(Number(key))) { // rowKey keys.push(key!); } else { keys.push(Number(key)); } } }); return keys; } function getIndeterminateSelection(container: ReturnType<typeof render>['container']) { const keys: React.Key[] = []; container.querySelectorAll('.ant-table-tbody tr').forEach((row) => { const key = row.getAttribute('data-row-key'); if (row.querySelector('.ant-checkbox-indeterminate')) { if (isNaN(Number(key))) { // rowKey keys.push(key!); } else { keys.push(Number(key)); } } }); return keys; } it('select default row', () => { const { container } = render(createTable({ rowSelection: { defaultSelectedRowKeys: [0] } })); const checkboxes = container.querySelectorAll('input[type="checkbox"]'); expect(getSelections(container)).toEqual([0]); fireEvent.click(checkboxes[1]); expect(getSelections(container)).toEqual([]); fireEvent.click(checkboxes[0]); expect(getSelections(container)).toEqual([0, 1, 2, 3]); fireEvent.click(checkboxes[0]); expect(getSelections(container)).toEqual([]); }); it('select by checkbox', () => { const { container } = render(createTable()); const checkboxes = container.querySelectorAll('input[type="checkbox"]'); fireEvent.click(checkboxes[0]); expect(getSelections(container)).toEqual([0, 1, 2, 3]); fireEvent.click(checkboxes[1]); expect(getSelections(container)).toEqual([1, 2, 3]); fireEvent.click(checkboxes[1]); expect(getSelections(container)).toEqual([0, 1, 2, 3]); }); it('select by radio', () => { const { container } = render(createTable({ rowSelection: { type: 'radio' } })); const radios = container.querySelectorAll('input[type="radio"]'); expect(radios.length).toBe(4); fireEvent.click(radios[0]); expect(getSelections(container)).toEqual([0]); fireEvent.click(radios[radios.length - 1]); expect(getSelections(container)).toEqual([3]); }); it('pass getCheckboxProps to checkbox', () => { const rowSelection = { getCheckboxProps: (record: any) => ({ disabled: record.name === 'Lucy', indeterminate: record.name === 'Tom', name: record.name, }), }; const { container } = render(createTable({ rowSelection })); const checkboxes = container.querySelectorAll<HTMLInputElement>('input[type="checkbox"]'); expect(checkboxes[1].disabled).toBe(false); expect(checkboxes[1].name).toEqual(data[0].name); expect(checkboxes[2].disabled).toBe(true); expect(checkboxes[2].name).toEqual(data[1].name); expect(getIndeterminateSelection(container)).toEqual([2]); }); it("make getCheckboxProps's `indeterminate` override selectedRowKeys' effect", () => { const rowSelection: TableProps<any>['rowSelection'] = { getCheckboxProps: (record) => ({ disabled: record.name === 'Lucy', indeterminate: record.name === 'Tom', name: record.name, }), selectedRowKeys: [2], }; const { container } = render(createTable({ rowSelection })); expect(getIndeterminateSelection(container)).toEqual([2]); }); it('works with pagination', () => { const { container } = render(createTable({ pagination: { pageSize: 2 } })); const pagers = container.querySelectorAll('.ant-pagination-item'); const checkboxAll = container.querySelector<HTMLInputElement>('input[type="checkbox"]'); const objectContaining: { checked?: boolean; indeterminate?: boolean } = {}; fireEvent.click(checkboxAll!); objectContaining.checked = checkboxAll?.checked; // true objectContaining.indeterminate = getIndeterminateSelection(container).length > 0; // false expect.objectContaining(objectContaining); fireEvent.click(pagers[1]); objectContaining.checked = checkboxAll?.checked; // false objectContaining.indeterminate = getIndeterminateSelection(container).length > 0; // false expect.objectContaining(objectContaining); fireEvent.click(pagers[0]); objectContaining.checked = checkboxAll?.checked; // true objectContaining.indeterminate = getIndeterminateSelection(container).length > 0; // false expect.objectContaining(objectContaining); }); // https://github.com/ant-design/ant-design/issues/4020 it('handles defaultChecked', () => { resetWarned(); const rowSelection = { getCheckboxProps: (record) => ({ defaultChecked: record.key === 0, }), } as TableRowSelection<any>; render(createTable({ rowSelection })); expect(errorSpy).toHaveBeenCalledWith( 'Warning: [antd: Table] Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.', ); }); it('can be controlled', () => { const { container, rerender } = render(createTable({ rowSelection: { selectedRowKeys: [0] } })); expect(getSelections(container)).toEqual([0]); rerender(createTable({ rowSelection: { selectedRowKeys: [1] } })); expect(getSelections(container)).toEqual([1]); }); it('fires change & select events', () => { const order: string[] = []; const handleChange = jest.fn().mockImplementation(() => { order.push('onChange'); }); const handleSelect = jest.fn().mockImplementation(() => { order.push('onSelect'); }); const rowSelection = { onChange: handleChange, onSelect: handleSelect, }; const { container } = render(createTable({ rowSelection })); fireEvent.click(container.querySelectorAll('input[type="checkbox"]')[4]); expect(handleChange).toHaveBeenCalledWith([3], [{ key: 3, name: 'Jerry' }], { type: 'single', }); expect(handleSelect.mock.calls.length).toBe(1); expect(handleSelect.mock.calls[0][0]).toEqual({ key: 3, name: 'Jerry' }); expect(handleSelect.mock.calls[0][1]).toBe(true); expect(handleSelect.mock.calls[0][2]).toEqual([{ key: 3, name: 'Jerry' }]); expect(handleSelect.mock.calls[0][3].type).toBe('click'); expect(order).toEqual(['onSelect', 'onChange']); }); it('fires selectMulti event', () => { const order: string[] = []; const handleSelectMulti = jest.fn().mockImplementation(() => { order.push('onSelectMultiple'); }); const handleSelect = jest.fn().mockImplementation(() => { order.push('onSelect'); }); const handleChange = jest.fn().mockImplementation(() => { order.push('onChange'); }); const rowSelection = { onChange: handleChange, onSelect: handleSelect, onSelectMultiple: handleSelectMulti, }; const { container } = render(createTable({ rowSelection })); fireEvent.click(container.querySelectorAll('tbody input[type="checkbox"]')[0], { shiftKey: true, }); expect(handleSelect).toHaveBeenCalled(); expect(handleChange).toHaveBeenLastCalledWith([0], [{ key: 0, name: 'Jack' }], { type: 'single', }); fireEvent.click(container.querySelectorAll('tbody input[type="checkbox"]')[2], { shiftKey: true, }); expect(handleSelectMulti).toHaveBeenCalledWith( true, [data[0], data[1], data[2]], [data[1], data[2]], ); expect(handleChange).toHaveBeenLastCalledWith( [0, 1, 2], [ { key: 0, name: 'Jack' }, { key: 1, name: 'Lucy' }, { key: 2, name: 'Tom' }, ], { type: 'multiple' }, ); fireEvent.click(container.querySelectorAll('tbody input[type="checkbox"]')[0], { shiftKey: true, }); expect(handleSelectMulti).toHaveBeenCalledWith(false, [], [data[0], data[1], data[2]]); expect(handleChange).toHaveBeenLastCalledWith([], [], { type: 'multiple' }); expect(order).toEqual([ 'onSelect', 'onChange', 'onSelectMultiple', 'onChange', 'onSelectMultiple', 'onChange', ]); }); it('reset last select key after deselect', async () => { jest.useFakeTimers(); const onChange = jest.fn(); const { container } = render( createTable({ checkbox: true, rowSelection: { selections: [Table.SELECTION_NONE], onChange: (keys) => onChange(keys), }, } as TableProps<any>), ); const last = () => { const elements = container.querySelectorAll('td input'); return elements[elements.length - 1]; }; const first = () => { const elements = container.querySelectorAll('td input'); return elements[0]; }; fireEvent.click(first()); expect(onChange).toHaveBeenLastCalledWith([0]); fireEvent.click(last()); expect(onChange).toHaveBeenLastCalledWith([0, 3]); fireEvent.click(last()); expect(onChange).toHaveBeenLastCalledWith([0]); fireEvent.click(last(), { shiftKey: true, }); expect(onChange).toHaveBeenLastCalledWith([0, 3]); jest.useRealTimers(); }); it('reset last select key after bulk operations', async () => { jest.useFakeTimers(); const onChange = jest.fn(); const { container, baseElement } = render( createTable({ checkbox: true, rowSelection: { selections: [Table.SELECTION_NONE], onChange: (keys) => onChange(keys), }, } as TableProps<any>), ); const last = () => { const elements = container.querySelectorAll('td input'); return elements[elements.length - 1]; }; const first = () => { const elements = container.querySelectorAll('td input'); return elements[0]; }; const allElement = () => container.querySelector('th input'); // Multiple select normal fireEvent.click(last()); expect(onChange).toHaveBeenLastCalledWith([3]); fireEvent.click(first(), { shiftKey: true, }); expect(onChange).toHaveBeenLastCalledWith([3, 0, 1, 2]); fireEvent.click(allElement()!); expect(onChange).toHaveBeenLastCalledWith([]); // Reset last select key when select all fireEvent.click(last()); expect(onChange).toHaveBeenLastCalledWith([3]); fireEvent.click(allElement()!); fireEvent.click(allElement()!); expect(onChange).toHaveBeenLastCalledWith([]); fireEvent.click(first(), { shiftKey: true, }); expect(onChange).toHaveBeenLastCalledWith([0]); // Reset last select key when bulk operations fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); fireEvent.click(baseElement.querySelector('li.ant-dropdown-menu-item')!); expect(onChange).toHaveBeenLastCalledWith([]); fireEvent.click(first(), { shiftKey: true, }); expect(onChange).toHaveBeenLastCalledWith([0]); jest.useRealTimers(); }); it('fires selectAll event', () => { const order: string[] = []; const handleSelectAll = jest.fn().mockImplementation(() => { order.push('onSelectAll'); }); const handleChange = jest.fn().mockImplementation(() => { order.push('onChange'); }); const rowSelection = { onChange: handleChange, onSelectAll: handleSelectAll, }; const { container } = render(createTable({ rowSelection })); const checkAll = container.querySelector('input[type="checkbox"]'); fireEvent.click(checkAll!); expect(handleSelectAll).toHaveBeenCalledWith(true, data, data); expect(order).toEqual(['onSelectAll', 'onChange']); fireEvent.click(checkAll!); expect(handleSelectAll).toHaveBeenCalledWith(false, [], data); }); it('works with selectAll option inside selection menu', () => { jest.useFakeTimers(); const handleChange = jest.fn(); const rowSelection = { onChange: handleChange, selections: true, }; const { container } = render(createTable({ rowSelection })); // Open fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); fireEvent.click(container.querySelectorAll('.ant-dropdown-menu-item')[0]); expect(handleChange.mock.calls[0][0]).toEqual([0, 1, 2, 3]); }); it('render with default selection correctly', () => { jest.useFakeTimers(); const rowSelection = { selections: true, }; const { container } = render(createTable({ rowSelection })); fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); expect(container.querySelector('.ant-dropdown')).toMatchSnapshot(); }); it('fires selectInvert event', () => { jest.useFakeTimers(); const order: string[] = []; const handleSelectInvert = jest.fn().mockImplementation(() => { order.push('onSelectInvert'); }); const handleChange = jest.fn().mockImplementation(() => { order.push('onChange'); }); const rowSelection = { onChange: handleChange, onSelectInvert: handleSelectInvert, selections: true, }; const { container } = render(createTable({ rowSelection })); fireEvent.click(container.querySelectorAll('.ant-checkbox')[1]); // Open fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); fireEvent.click(container.querySelectorAll('li.ant-dropdown-menu-item')[1]); expect(handleSelectInvert).toHaveBeenCalledWith([1, 2, 3]); expect(order).toEqual(['onChange', 'onSelectInvert', 'onChange']); jest.useRealTimers(); }); it('fires selectNone event', () => { jest.useFakeTimers(); const order: string[] = []; const handleChange = jest.fn().mockImplementation(() => { order.push('onChange'); }); const handleSelectNone = jest.fn().mockImplementation(() => { order.push('onSelectNone'); }); const rowSelection = { onChange: handleChange, onSelectNone: handleSelectNone, selections: true, }; const { container } = render(createTable({ rowSelection })); fireEvent.click(container.querySelectorAll('.ant-checkbox')[1]); // Open fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); const dropdownMenuItems = container.querySelectorAll('.ant-dropdown-menu-item'); fireEvent.click(dropdownMenuItems[dropdownMenuItems.length - 1]); expect(handleSelectNone).toHaveBeenCalled(); expect(order).toEqual(['onChange', 'onSelectNone', 'onChange']); }); it('fires selection event', () => { jest.useFakeTimers(); const handleSelectOdd = jest.fn(); const handleSelectEven = jest.fn(); const rowSelection = { selections: [ Table.SELECTION_ALL, Table.SELECTION_INVERT, { key: 'odd', text: '奇数项', onSelect: handleSelectOdd, }, { key: 'even', text: '偶数项', onSelect: handleSelectEven, }, ], }; const { container } = render(createTable({ rowSelection })); // Open fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); const dropdownMenuItems = container.querySelectorAll('.ant-dropdown-menu-item'); expect(dropdownMenuItems.length).toBe(4); fireEvent.click(dropdownMenuItems[2]); expect(handleSelectOdd).toHaveBeenCalledWith([0, 1, 2, 3]); fireEvent.click(dropdownMenuItems[3]); expect(handleSelectEven).toHaveBeenCalledWith([0, 1, 2, 3]); }); describe('preset selection options', () => { const presetData = [ { key: 0, name: 'Jack' }, { key: 1, name: 'Lucy', disabled: true }, { key: 2, name: 'Tom' }, ]; const getCheckboxProps = (record: any) => record; it('SELECTION_ALL', () => { jest.useFakeTimers(); const onChange = jest.fn(); const { container } = render( createTable({ dataSource: presetData, rowSelection: { onChange, defaultSelectedRowKeys: [2], getCheckboxProps, selections: [Table.SELECTION_ALL], }, }), ); fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); fireEvent.click(container.querySelector('li.ant-dropdown-menu-item')!); expect(onChange).toHaveBeenCalledWith([0, 2], expect.anything(), { type: 'all' }); }); it('SELECTION_INVERT', () => { jest.useFakeTimers(); const onChange = jest.fn(); const { container } = render( createTable({ dataSource: presetData, rowSelection: { onChange, defaultSelectedRowKeys: [2], getCheckboxProps, selections: [Table.SELECTION_INVERT], }, }), ); fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); fireEvent.click(container.querySelector('li.ant-dropdown-menu-item')!); expect(onChange).toHaveBeenCalledWith([0], expect.anything(), { type: 'invert' }); }); it('SELECTION_NONE', () => { jest.useFakeTimers(); const onChange = jest.fn(); const { container } = render( createTable({ dataSource: presetData, rowSelection: { onChange, defaultSelectedRowKeys: [1, 2], getCheckboxProps, selections: [Table.SELECTION_NONE], }, }), ); fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); fireEvent.click(container.querySelector('li.ant-dropdown-menu-item')!); expect(onChange).toHaveBeenCalledWith([1], expect.anything(), { type: 'none' }); }); }); it('could hide selectAll checkbox and custom selection', () => { const rowSelection = { hideSelectAll: true, }; const { container } = render(createTable({ rowSelection })); expect(container.querySelector('.ant-selection')).toBeFalsy(); }); it('handle custom selection onSelect correctly when hide default selection options', () => { jest.useFakeTimers(); const handleSelectOdd = jest.fn(); const handleSelectEven = jest.fn(); const rowSelection = { selections: [ { key: 'odd', text: '奇数项', onSelect: handleSelectOdd, }, { key: 'even', text: '偶数项', onSelect: handleSelectEven, }, ], }; const { container } = render(createTable({ rowSelection })); // Open fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); const dropdownMenuItems = container.querySelectorAll('li.ant-dropdown-menu-item'); expect(dropdownMenuItems.length).toBe(2); fireEvent.click(dropdownMenuItems[0]); expect(handleSelectOdd).toHaveBeenCalledWith([0, 1, 2, 3]); fireEvent.click(dropdownMenuItems[1]); expect(handleSelectEven).toHaveBeenCalledWith([0, 1, 2, 3]); }); // https://github.com/ant-design/ant-design/issues/4245 it('handles disabled checkbox correctly when dataSource changes', () => { const rowSelection: TableProps<any>['rowSelection'] = { getCheckboxProps: (record) => ({ disabled: record.disabled }), }; const { container, rerender } = render(createTable({ rowSelection })); const newData = [ { key: 0, name: 'Jack', disabled: true }, { key: 1, name: 'Lucy', disabled: true }, ]; rerender(createTable({ rowSelection, dataSource: newData })); container.querySelectorAll('input').forEach((checkbox) => { expect(checkbox.disabled).toBe(true); }); }); // https://github.com/ant-design/ant-design/issues/4245 it('should allow dynamic getCheckboxProps', () => { const { container, rerender } = render( <Table columns={columns} dataSource={data} rowSelection={{ getCheckboxProps: (record) => ({ disabled: record.name === 'Jack' }), }} />, ); let checkboxList = container.querySelectorAll('input'); expect(checkboxList[1]).toHaveAttribute('disabled'); expect(checkboxList[2]).not.toHaveAttribute('disabled'); rerender( <Table columns={columns} dataSource={data} rowSelection={{ getCheckboxProps: (record) => ({ disabled: record.name === 'Lucy' }), }} />, ); checkboxList = container.querySelectorAll('input'); expect(checkboxList[1]).not.toHaveAttribute('disabled'); expect(checkboxList[2]).toHaveAttribute('disabled'); }); // https://github.com/ant-design/ant-design/issues/4779 it('should not switch pagination when select record', () => { const newData: Record<'key' | 'name', string>[] = []; for (let i = 0; i < 20; i += 1) { newData.push({ key: i.toString(), name: i.toString(), }); } const { container } = render( createTable({ rowSelection: {}, dataSource: newData, }), ); fireEvent.click(container.querySelectorAll('.ant-pagination-item')[1]); // switch to second page fireEvent.click(container.querySelector('.ant-checkbox')!); expect(renderedNames(container)).toEqual([ '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', ]); }); it('highlight selected row', () => { const { container } = render(createTable()); fireEvent.click(container.querySelectorAll('input')[1]); expect( container.querySelectorAll('tbody tr')[0].className.includes('ant-table-row-selected'), ).toBe(true); }); it('fix selection column on the left', () => { const { asFragment } = render( createTable({ rowSelection: { fixed: true }, scroll: { x: 903 }, }), ); expect(asFragment().firstChild).toMatchSnapshot(); }); it('fix expand on th left when selection column fixed on the left', () => { const { asFragment } = render( createTable({ expandable: { expandedRowRender() { return <div />; }, }, rowSelection: { fixed: true }, scroll: { x: 903 }, }), ); expect(asFragment().firstChild).toMatchSnapshot(); }); it('fix selection column on the left when any other column is fixed', () => { const { asFragment } = render( createTable({ rowSelection: {}, columns: [ { title: 'Name', dataIndex: 'name', fixed: 'left', }, ], scroll: { x: 903 }, }), ); expect(asFragment().firstChild).toMatchSnapshot(); }); it('use column as selection column when key is `selection-column`', () => { const { asFragment } = render( createTable({ rowSelection: {}, columns: [ { title: 'Name', dataIndex: 'name', key: 'selection-column', }, ], }), ); expect(asFragment().firstChild).toMatchSnapshot(); }); // https://github.com/ant-design/ant-design/issues/10629 it('should keep all checked state when remove item from dataSource', () => { const { container, rerender } = render( <Table rowSelection={{ selectedRowKeys: [0, 1, 2, 3], }} columns={columns} dataSource={data} />, ); const checkboxes = container.querySelectorAll('.ant-checkbox'); expect(checkboxes.length).toBe(5); checkboxes.forEach((checkbox) => { expect(checkbox.querySelector('input')?.checked).toBe(true); expect(checkbox.className.includes('ant-checkbox-indeterminate')).toBe(false); }); rerender( <Table rowSelection={{ selectedRowKeys: [1, 2, 3], }} columns={columns} dataSource={data.slice(1)} />, ); expect(container.querySelectorAll('.ant-checkbox').length).toBe(4); container.querySelectorAll('.ant-checkbox').forEach((checkbox) => { expect(checkbox.querySelector('input')?.checked).toBe(true); expect(checkbox.className.includes('ant-checkbox-indeterminate')).toBe(false); }); }); // https://github.com/ant-design/ant-design/issues/11042 it('add columnTitle for rowSelection', () => { const { container, rerender } = render( <Table columns={columns} dataSource={data} rowSelection={{ columnTitle: '多选' }} />, ); expect(container.querySelector('thead tr th')?.textContent).toBe('多选'); rerender( <Table columns={columns} dataSource={data} rowSelection={{ type: 'radio', columnTitle: '单选', }} />, ); expect(container.querySelector('thead tr th')?.textContent).toBe('单选'); }); it('columnTitle for rowSelection to be renderProps', () => { const { container } = render( <Table columns={columns} dataSource={data} rowSelection={{ columnTitle: (originalNode) => React.cloneElement(originalNode as any, { 'data-testid': 'selection-checkbox', children: '多选', }), }} />, ); expect(container.querySelector('thead tr th')?.textContent).toBe('多选'); expect(container.querySelector('thead tr th input')?.getAttribute('data-testid')).toBe( 'selection-checkbox', ); fireEvent.click(container.querySelector('thead tr th input')!); container.querySelectorAll('.ant-checkbox').forEach((checkbox) => { expect(checkbox.querySelector('input')?.checked).toBe(true); expect(checkbox.className.includes('ant-checkbox-indeterminate')).toBe(false); }); }); // https://github.com/ant-design/ant-design/issues/11384 it('should keep item even if in filter', () => { const filterColumns = [ { title: 'Name', dataIndex: 'name', filters: [ { text: 'Jack', value: 'Jack', }, { text: 'Lucy', value: 'Lucy', }, ], filterDropdownOpen: true, onFilter: (value: any, record: any) => record.name.indexOf(value) === 0, }, ]; const onChange = jest.fn(); const rowSelection = { onChange, }; const { container } = render( <Table columns={filterColumns} dataSource={data} rowSelection={rowSelection} />, ); function clickFilter(indexList: number[]) { indexList.forEach((index) => { // wrapper.find('.ant-dropdown-menu-item .ant-checkbox-wrapper').at(index).simulate('click'); fireEvent.click( container.querySelectorAll('.ant-dropdown-menu-item .ant-checkbox-wrapper')[index], ); }); // wrapper.find('.ant-table-filter-dropdown-btns .ant-btn-primary').simulate('click'); fireEvent.click(container.querySelector('.ant-table-filter-dropdown-btns .ant-btn-primary')!); } function clickItem() { fireEvent.click( container.querySelectorAll('tbody .ant-table-selection-column .ant-checkbox-input')[0], ); // wrapper // .find('tbody .ant-table-selection-column .ant-checkbox-input') // .at(0) // .simulate('change', { // target: { checked: true }, // }); } // Check Jack clickFilter([0]); expect(container.querySelectorAll('tbody tr').length).toBe(1); clickItem(); expect(onChange.mock.calls[0][0].length).toBe(1); expect(onChange.mock.calls[0][1].length).toBe(1); // Check Lucy clickFilter([0, 1]); expect(container.querySelectorAll('tbody tr').length).toBe(1); clickItem(); expect(onChange.mock.calls[1][0].length).toBe(2); expect(onChange.mock.calls[1][1].length).toBe(2); }); it('render correctly when set childrenColumnName', () => { const newData = [ { key: 1, name: 'Jack', children: [ { key: 11, name: 'John Brown', }, ], }, { key: 2, name: 'Lucy', children: [ { key: 21, name: 'Lucy Brown', }, ], }, ]; const { container } = render( <Table columns={columns} dataSource={newData} childrenColumnName="test" rowSelection={{}} />, ); const checkboxes = container.querySelectorAll('input'); const objectContaining: { checked?: boolean; indeterminate?: boolean } = {}; fireEvent.click(checkboxes[1]); objectContaining.checked = checkboxes[0].checked; // false objectContaining.indeterminate = getIndeterminateSelection(container).length > 0; // true expect.objectContaining(objectContaining); fireEvent.click(checkboxes[2]); objectContaining.checked = checkboxes[0].checked; // true objectContaining.indeterminate = getIndeterminateSelection(container).length > 0; // false expect.objectContaining(objectContaining); }); // https://github.com/ant-design/ant-design/issues/16614 it('should get selectedRows correctly when set childrenColumnName', () => { const onChange = jest.fn(); const newData = [ { key: 1, name: 'Jack', list: [ { key: 11, name: 'John Brown', }, ], }, ]; const { container } = render( <Table columns={columns} dataSource={newData} childrenColumnName="list" rowSelection={{ onChange }} expandedRowKeys={[1]} />, ); const checkboxes = container.querySelectorAll('input'); fireEvent.click(checkboxes[2]); expect(onChange).toHaveBeenLastCalledWith([11], [newData[0].list[0]], { type: 'single' }); onChange.mockReset(); fireEvent.click(checkboxes[1]); const item0 = newData[0]; expect(onChange).toHaveBeenLastCalledWith([11, 1], [newData[0].list[0], item0], { type: 'single', }); }); it('clear selection className when remove `rowSelection`', () => { const dataSource = [ { id: 1, name: 'Hello', age: 10 }, { id: 2, name: 'World', age: 30 }, ]; const { container, rerender } = render( <Table columns={columns} dataSource={dataSource} rowSelection={{}} expandedRowRender={() => null} rowKey="id" />, ); const checkboxes = container.querySelectorAll('input'); fireEvent.click(checkboxes[1]); expect(container.querySelectorAll('tr.ant-table-row-selected').length).toBe(1); rerender( <Table columns={columns} dataSource={dataSource} rowSelection={null as unknown as TableRowSelection<any>} expandedRowRender={() => null} rowKey="id" />, ); expect(container.querySelectorAll('tr.ant-table-row-selected').length).toBe(0); }); it('select by checkbox to trigger stopPropagation', () => { const { container } = render(createTable()); expect(() => { fireEvent.click(container.querySelectorAll('span')[10]); }).not.toThrow(); }); it('all disabled should not make select all checked', () => { const { container } = render( createTable({ rowSelection: { getCheckboxProps: () => ({ disabled: true }), }, }), ); expect( container.querySelector<HTMLInputElement>('thead .ant-checkbox-input')?.disabled, ).toBeTruthy(); expect( container.querySelector<HTMLInputElement>('thead .ant-checkbox-input')?.checked, ).toBeFalsy(); }); it('should make select all checked when each item is checked and disabled', () => { const { container } = render( createTable({ rowSelection: { selectedRowKeys: [0, 1, 2, 3], getCheckboxProps: () => ({ disabled: true, }), }, }), ); expect( container.querySelector<HTMLInputElement>('thead .ant-checkbox-input')?.disabled, ).toBeTruthy(); expect( container.querySelector<HTMLInputElement>('thead .ant-checkbox-input')?.checked, ).toBeTruthy(); }); it('should make select all indeterminate when each item is disabled and some item is checked', () => { const { container } = render( createTable({ rowSelection: { selectedRowKeys: [0], getCheckboxProps: () => ({ disabled: true, }), }, }), ); expect( container.querySelector<HTMLInputElement>('thead .ant-checkbox-input')?.disabled, ).toBeTruthy(); expect( container.querySelector<HTMLInputElement>('thead .ant-checkbox-input')?.checked, ).toBeFalsy(); expect( container.querySelector('thead .ant-checkbox-indeterminate.ant-checkbox-disabled'), ).toBeTruthy(); }); it('should make select all checked when each item is checked and some item is disabled', () => { const { container } = render( createTable({ rowSelection: { selectedRowKeys: [0, 1, 2, 3], getCheckboxProps: (record) => ({ disabled: record.key === 0, }), }, }), ); expect( container.querySelector<HTMLInputElement>('thead .ant-checkbox-input')?.disabled, ).toBeFalsy(); expect( container.querySelector<HTMLInputElement>('thead .ant-checkbox-input')?.checked, ).toBeTruthy(); }); it('should not make select all checked when some item is checked and disabled', () => { const { container } = render( createTable({ rowSelection: { selectedRowKeys: [1], getCheckboxProps: (record) => ({ disabled: record.key === 0, }), }, }), ); expect( container.querySelector<HTMLInputElement>('thead .ant-checkbox-input')?.disabled, ).toBeFalsy(); expect( container.querySelector<HTMLInputElement>('thead .ant-checkbox-input')?.checked, ).toBeFalsy(); expect(container.querySelector('thead .ant-checkbox-indeterminate')).toBeTruthy(); }); it('should onRowClick not called when checkbox clicked', () => { const onRowClick = jest.fn(); const { container } = render( createTable({ onRow: () => ({ onClick: onRowClick, }), }), ); const checkboxes = container.querySelectorAll('input'); fireEvent.click(checkboxes[checkboxes.length - 1]); expect(onRowClick).not.toHaveBeenCalled(); }); it('should support getPopupContainer', () => { const rowSelection = { selections: true, }; const getPopupContainer = jest.fn((node) => node); const { container } = render( createTable({ rowSelection, getPopupContainer, }), ); jest.useFakeTimers(); fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); expect(container.firstChild).toMatchSnapshot(); expect(getPopupContainer).toHaveBeenCalled(); }); it('should support getPopupContainer from ConfigProvider', () => { const rowSelection = { selections: true, }; const { container } = render( <ConfigProvider getPopupContainer={(node) => node?.parentNode as HTMLElement}> {createTable({ rowSelection, })} </ConfigProvider>, ); jest.useFakeTimers(); fireEvent.mouseEnter(container.querySelector('.ant-dropdown-trigger')!); act(() => { jest.runAllTimers(); }); expect(container.firstChild).toMatchSnapshot(); }); it('Table selection should check', () => { const onChange = jest.fn(); const { container } = render( <Table dataSource={[{ name: 'light', sub: [{ name: 'bamboo' }] }]} expandable={{ expandedRowKeys: ['light'], childrenColumnName: 'sub' }} rowSelection={{ onChange }} rowKey="name" />, ); const checkboxes = container.querySelectorAll('input'); fireEvent.click(checkboxes[checkboxes.length - 1]); expect(onChange.mock.calls[0][1]).toEqual([expect.objectContaining({ name: 'bamboo' })]); }); it('support onCell', () => { const onCell = jest.fn().mockReturnValue({ rowSpan: 4 }); const { container } = render( createTable({ rowSelection: { onCell, }, }), ); expect(onCell).toHaveBeenCalledTimes(8); expect(container.querySelectorAll("td[rowspan='4']").length).toBe(4); }); describe('supports children', () => { const dataWithChildren = [ { key: 0, name: 'Jack' }, { key: 1, name: 'Lucy' }, { key: 2, name: 'Tom' }, { key: 3, name: 'Jerry', children: [ { key: 4, name: 'Jerry Jack', }, { key: 5, name: 'Jerry Lucy', }, { key: 6, name: 'Jerry Tom', children: [ { key: 7, name: 'Jerry Tom Jack', }, { key: 8, name: 'Jerry Tom Lucy', }, { key: 9, name: 'Jerry Tom Tom', }, ], }, ], }, ]; describe('supports checkStrictly', () => { it('use data entity key', () => { const onChange = jest.fn(); const table = createTable({ dataSource: dataWithChildren, defaultExpandAllRows: true, rowSelection: { checkStrictly: false, onChange, }, }); const { container } = render(table); const checkboxes = container.querySelectorAll('input'); fireEvent.click(checkboxes[4]); expect(getSelections(container)).toEqual([3, 4, 5, 6, 7, 8, 9]); expect(getIndeterminateSelection(container)).toEqual([]); expect(onChange.mock.calls[0][0]).toEqual([3, 4, 5, 6, 7, 8, 9]); fireEvent.click(checkboxes[7]); expect(getSelections(container)).toEqual([4, 5]); expect(getIndeterminateSelection(container)).toEqual([3]); expect(onChange.mock.calls[1][0]).toEqual([4, 5]); }); it('use function rowkey', () => { const onChange = jest.fn(); const table = createTable({ dataSource: dataWithChildren, defaultExpandAllRows: true, rowSelection: { checkStrictly: false, onChange, }, rowKey: (entity) => entity.name, }); const { container } = render(table); const checkboxes = container.querySelectorAll('input'); fireEvent.click(checkboxes[4]); expect(getSelections(container)).toEqual([ 'Jerry', 'Jerry Jack', 'Jerry Lucy', 'Jerry Tom', 'Jerry Tom Jack', 'Jerry Tom Lucy', 'Jerry Tom Tom', ]); expect(getIndeterminateSelection(container)).toEqual([]); expect(onChange.mock.calls[0][0]).toEqual([ 'Jerry', 'Jerry Jack', 'Jerry Lucy', 'Jerry Tom', 'Jerry Tom Jack', 'Jerry Tom Lucy', 'Jerry Tom Tom', ]); fireEvent.click(checkboxes[7]); expect(getSelections(container)).toEqual(['Jerry Jack', 'Jerry Lucy']); expect(getIndeterminateSelection(container)).toEqual(['Jerry']); expect(onChange.mock.calls[1][0]).toEqual(['Jerry Jack', 'Jerry Lucy']); }); it('use string rowkey', () => { const onChange = jest.fn(); const table = createTable({ dataSource: dataWithChildren, defaultExpandAllRows: true, rowSelection: { checkStrictly: false, onChange, }, rowKey: 'name', }); const { container } = render(table); const checkboxes = container.querySelectorAll('input'); fireEvent.click(checkboxes[4]); expect(getSelections(container)).toEqual([ 'Jerry', 'Jerry Jack', 'Jerry Lucy', 'Jerry Tom', 'Jerry Tom Jack', 'Jerry Tom Lucy', 'Jerry Tom Tom', ]); expect(getIndeterminateSelection(container)).toEqual([]); expect(onChange.mock.calls[0][0]).toEqual([ 'Jerry', 'Jerry Jack', 'Jerry Lucy', 'Jerry Tom', 'Jerry Tom Jack', 'Jerry Tom Lucy', 'Jerry Tom Tom', ]); fireEvent.click(checkboxes[7]); expect(getSelections(container)).toEqual(['Jerry Jack', 'Jerry Lucy']); expect(getIndeterminateSelection(container)).toEqual(['Jerry']); expect(onChange.mock.calls[1][0]).toEqual(['Jerry Jack', 'Jerry Lucy']); }); it('initialized correctly', () => { const table = createTable({ dataSource: dataWithChildren, defaultExpandAllRows: true, rowSelection: { checkStrictly: false, selectedRowKeys: [7, 8, 9], }, rowKey: 'key', }); const { container } = render(table); expect(getSelections(container)).toEqual([6, 7, 8, 9]); expect(getIndeterminateSelection(container)).toEqual([3]); }); it('works with disabled checkbox', () => { const onChange = jest.fn(); const table = createTable({ dataSource: dataWithChildren, defaultExpandAllRows: true, rowSelection: { checkStrictly: false, onChange, getCheckboxProps(record) { return { disabled: record.name === 'Jerry Tom', }; }, }, }); const { container } = render(table); const checkboxes = container.querySelectorAll('input'); fireEvent.click(checkboxes[10]); fireEvent.click(checkboxes[4]); expect(getSelections(container).sort()).toEqual([3, 4, 5, 9]); expect(getIndeterminateSelection(container)).toEqual([]); expect(Array.from(onChange.mock.calls[1][0]).sort()).toEqual([3, 4, 5, 9]); fireEvent.click(checkboxes[4]); expect(getSelections(container)).toEqual([9]); expect(getIndeterminateSelection(container)).toEqual([]); expect(onChange.mock.calls[2][0]).toEqual([9]); }); it('works with disabled checkbox and function rowkey', () => { const onChange = jest.fn(); const table = createTable({ dataSource: dataWithChildren, defaultExpandAllRows: true, rowSelection: { checkStrictly: false, onChange, getCheckboxProps(record) { return { disabled: record.name === 'Jerry Tom', }; }, }, rowKey: (entity) => entity.name, }); const { container } = render(table); const checkboxes = container.querySelectorAll('input'); fireEvent.click(checkboxes[10]); fireEvent.click(checkboxes[4]); expect(getSelections(container)).toEqual([ 'Jerry', 'Jerry Jack', 'Jerry Lucy', 'Jerry Tom Tom', ]); expect(getIndeterminateSelection(container)).toEqual([]); expect(Array.from(onChange.mock.calls[1][0]).sort()).toEqual([ 'Jerry', 'Jerry Jack', 'Jerry Lucy', 'Jerry Tom Tom', ]); fireEvent.click(checkboxes[4]); expect(getSelections(container)).toEqual(['Jerry Tom Tom']); expect(getIndeterminateSelection(container)).toEqual([]); expect(onChange.mock.calls[2][0]).toEqual(['Jerry Tom Tom']); }); it('works with disabled checkbox and string rowkey', () => { const onChange = jest.fn(); const table = createTable({ dataSource: dataWithChildren, defaultExpandAllRows: true, rowSelection: { checkStrictly: false, onChange, getCheckboxProps(record) { return { disabled: record.name === 'Jerry Tom', }; }, }, rowKey: 'name', }); const { container } = render(table); const checkboxes = container.querySelectorAll('input'); fireEvent.click(checkboxes[10]); fireEvent.click(checkboxes[4]); expect(getSelections(container)).toEqual([ 'Jerry', 'Jerry Jack', 'Jerry Lucy', 'Jerry Tom Tom', ]); expect(getIndeterminateSelection(container)).toEqual([]); expect(Array.from(onChange.mock.calls[1][0]).sort()).toEqual([ 'Jerry', 'Jerry Jack', 'Jerry Lucy', 'Jerry Tom Tom', ]); fireEvent.click(checkboxes[4]); expect(getSelections(container)).toEqual(['Jerry Tom Tom']); expect(getIndeterminateSelection(container)).toEqual([]); expect(onChange.mock.calls[2][0]).toEqual(['Jerry Tom Tom']); }); it('should support `childrenColumnName`', () => { const onChange = jest.fn(); const table = createTable({ dataSource: [ { key: 0, name: 'Jack', childList: [ { key: 1, name: 'Light' }, { key: 2, name: 'Bamboo' }, ], }, ], expandable: { childrenColumnName: 'childList', defaultExpandAllRows: true, }, rowSelection: { checkStrictly: false, onChange, }, }); const { container } = render(table); const checkboxes = container.querySelectorAll('input'); expect(checkboxes).toHaveLength(1 + 3); fireEvent.click(checkboxes[1]); expect(getSelections(container)).toEqual([0, 1, 2]); }); }); it('warns when set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured data.', () => { resetWarned(); render( createTable({ dataSource: dataWithChildren, defaultExpandAllRows: true, rowSelection: { checkStrictly: false, getCheckboxProps() { return { indeterminate: true, }; }, }, }), ); expect(errorSpy).toHaveBeenCalledWith( 'Warning: [antd: Table] set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.', ); }); }); describe('cache with selected keys', () => { it('default not cache', () => { const onChange = jest.fn(); const { container, rerender } = render( <Table dataSource={[{ name: 'light' }, { name: 'bamboo' }]} rowSelection={{ onChange }} rowKey="name" />, ); fireEvent.click(container.querySelector('tbody input')!); expect(onChange).toHaveBeenCalledWith(['light'], [{ name: 'light' }], { type: 'single' }); rerender( <Table dataSource={[{ name: 'bamboo' }]} rowSelection={{ onChange }} rowKey="name" />, ); fireEvent.click(container.querySelector('tbody input')!); expect(onChange).toHaveBeenCalledWith(['bamboo'], [{ name: 'bamboo' }], { type: 'single' }); }); it('cache with preserveSelectedRowKeys', () => { const onChange = jest.fn(); const { container, rerender } = render( <Table dataSource={[{ name: 'light' }, { name: 'bamboo' }]} rowSelection={{ onChange, preserveSelectedRowKeys: true }} rowKey="name" />, ); fireEvent.click(container.querySelector('tbody input')!); expect(onChange).toHaveBeenCalledWith(['light'], [{ name: 'light' }], { type: 'single' }); rerender( <Table dataSource={[{ name: 'bamboo' }]} rowSelection={{ onChange, preserveSelectedRowKeys: true }} rowKey="name" />, ); fireEvent.click(container.querySelector('tbody input')!); expect(onChange).toHaveBeenCalledWith( ['light', 'bamboo'], [{ name: 'light' }, { name: 'bamboo' }], { type: 'single' }, ); }); it('cache with preserveSelectedRowKeys and checkStrictly false', () => { const onChange = jest.fn(); const { container, rerender } = render( <Table dataSource={[{ name: 'light' }, { name: 'bamboo' }]} rowSelection={{ onChange, preserveSelectedRowKeys: true, checkStrictly: false }} rowKey="name" />, ); fireEvent.click(container.querySelector('tbody input')!); expect(onChange).toHaveBeenCalledWith(['light'], [{ name: 'light' }], { type: 'single' }); rerender( <Table dataSource={[{ name: 'bamboo' }]} rowSelection={{ onChange, preserveSelectedRowKeys: true, checkStrictly: false }} rowKey="name" />, ); fireEvent.click(container.querySelector('tbody input')!); expect(onChange).toHaveBeenCalledWith( ['light', 'bamboo'], [{ name: 'light' }, { name: 'bamboo' }], { type: 'single' }, ); }); it('works with receive selectedRowKeys from [] to undefined', () => { const onChange = jest.fn(); const dataSource = [{ name: 'Jack' }]; const { container, rerender } = render( <Table dataSource={dataSource} rowSelection={{ onChange, selectedRowKeys: [0] }} rowKey="name" />, ); rerender( <Table dataSource={dataSource} rowSelection={{ onChange, selectedRowKeys: undefined }} rowKey="name" />, ); fireEvent.click(container.querySelector('tbody input')!); expect(onChange).toHaveBeenCalledWith(['Jack'], [{ name: 'Jack' }], { type: 'single' }); }); it('works with selectionType radio receive selectedRowKeys from [] to undefined', () => { const onChange = jest.fn(); const dataSource = [{ name: 'Jack' }]; const { container, rerender } = render( <Table dataSource={dataSource} rowSelection={{ onChange, selectedRowKeys: [0], type: 'radio' }} rowKey="name" />, ); rerender( <Table dataSource={dataSource} rowSelection={{ onChange, selectedRowKeys: undefined, type: 'radio' }} rowKey="name" />, ); fireEvent.click(container.querySelector('tbody input')!); expect(onChange).toHaveBeenCalledWith(['Jack'], [{ name: 'Jack' }], { type: 'single' }); }); it('selectedRows ant selectedKeys should keep sync in initial state', () => { const dataSource = [{ name: 'Jack' }, { name: 'Tom' }, { name: 'Lucy' }, { name: 'John' }]; const onChange = jest.fn(); const rowSelection = { preserveSelectedRowKeys: true, onChange, selectedRowKeys: ['Jack'], }; const { container, rerender } = render( <Table dataSource={dataSource.slice(0, 2)} rowSelection={rowSelection} rowKey="name" columns={[ { title: 'Name', dataIndex: 'name', key: 'name', }, ]} />, ); rerender( <Table dataSource={dataSource.slice(2, 4)} rowSelection={rowSelection} rowKey="name" columns={[{ title: 'Name', dataIndex: 'name', key: 'name' }]} />, ); fireEvent.click(container.querySelector('tbody input')!); expect(onChange).toHaveBeenCalledWith( ['Jack', 'Lucy'], [{ name: 'Jack' }, { name: 'Lucy' }], { type: 'single' }, ); }); }); });
6,184
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/Table.sorter.test.tsx
/* eslint-disable react/no-multi-comp */ import React from 'react'; import type { ColumnType, TableProps } from '..'; import Table from '..'; import { act, fireEvent, render } from '../../../tests/utils'; import type { ColumnsType, SortOrder, TablePaginationConfig } from '../interface'; describe('Table.sorter', () => { const sorterFn: ColumnType<any>['sorter'] = (a, b) => a.name[0].charCodeAt() - b.name[0].charCodeAt(); const column: ColumnType<any> = { title: 'Name', dataIndex: 'name', key: 'name', sorter: sorterFn, }; const data = [ { key: 0, name: 'Jack' }, { key: 1, name: 'Lucy' }, { key: 2, name: 'Tom' }, { key: 3, name: 'Jerry' }, ]; function createTable(tableProps: TableProps<any> = {}, columnProps = {}) { return ( <Table columns={[{ ...column, ...columnProps }]} dataSource={data} pagination={false} {...tableProps} /> ); } function renderedNames(container: ReturnType<typeof render>['container']) { const namesList: (Node['textContent'] | undefined)[] = []; container ?.querySelector('.ant-table-tbody') ?.querySelectorAll('tr') ?.forEach((tr) => { namesList.push(tr.querySelector('td')?.textContent); }); return namesList; } it('renders sorter icon correctly', () => { const { container } = render(createTable()); expect(container.querySelector('thead')).toMatchSnapshot(); }); it('default sort order ascend', () => { const { container } = render(createTable({}, { defaultSortOrder: 'ascend' })); expect(renderedNames(container)).toEqual(['Jack', 'Jerry', 'Lucy', 'Tom']); }); it('default sort order descend', () => { const { container } = render(createTable({}, { defaultSortOrder: 'descend' })); expect(renderedNames(container)).toEqual(['Tom', 'Lucy', 'Jack', 'Jerry']); expect(container.querySelector('th')?.getAttribute('aria-sort')).toEqual('descending'); }); it('should change aria-sort when default sort order is set to descend', () => { const { container } = render( createTable({ sortDirections: ['descend', 'ascend'] }, { defaultSortOrder: 'descend' }), ); const getNameColumn = () => container.querySelector('th'); // Test that it cycles through the order of sortDirections expect(renderedNames(container)).toEqual(['Tom', 'Lucy', 'Jack', 'Jerry']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('descending'); fireEvent.click(container.querySelector('.ant-table-column-sorters')!); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('ascending'); fireEvent.click(container.querySelector('.ant-table-column-sorters')!); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); }); it('should have aria-label if the column is sortable and is not sorted', () => { const { container } = render( createTable( { sortDirections: ['descend', 'ascend'], }, { defaultSortOrder: 'descend', }, ), ); const getNameColumn = () => container.querySelector('th'); expect(renderedNames(container)).toEqual(['Tom', 'Lucy', 'Jack', 'Jerry']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('descending'); expect(getNameColumn()?.getAttribute('aria-label')).toEqual(null); fireEvent.click(container.querySelector('.ant-table-column-sorters')!); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('ascending'); expect(getNameColumn()?.getAttribute('aria-label')).toEqual(null); fireEvent.click(container.querySelector('.ant-table-column-sorters')!); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); expect(getNameColumn()?.getAttribute('aria-label')).toEqual('Name'); }); it('sort records', () => { const { container } = render(createTable()); const getNameColumn = () => container.querySelector('th'); // first assert default state expect(renderedNames(container)).toEqual(['Jack', 'Lucy', 'Tom', 'Jerry']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); // ascend fireEvent.click(container.querySelector('.ant-table-column-sorters')!); expect(renderedNames(container)).toEqual(['Jack', 'Jerry', 'Lucy', 'Tom']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('ascending'); // descend fireEvent.click(container.querySelector('.ant-table-column-sorters')!); expect(renderedNames(container)).toEqual(['Tom', 'Lucy', 'Jack', 'Jerry']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('descending'); }); it('sort records when press enter', () => { const { container } = render(createTable()); // ascend fireEvent.keyDown(container.querySelector('.ant-table-column-sorters')!, { keyCode: 13 }); expect(renderedNames(container)).toEqual(['Jack', 'Jerry', 'Lucy', 'Tom']); // descend fireEvent.keyDown(container.querySelector('.ant-table-column-sorters')!, { keyCode: 13 }); expect(renderedNames(container)).toEqual(['Tom', 'Lucy', 'Jack', 'Jerry']); }); // https://github.com/ant-design/ant-design/issues/38579 it('should not sort records when press enter in filter dropdown', () => { const { container } = render( createTable({ columns: [ { ...column, filters: [{ text: 'J', value: 'J' }], onFilter: (value: any, record: any) => record.name.includes(value), filterDropdownOpen: true, }, ], }), ); // don't trigger ascend fireEvent.keyDown(container.querySelector('.ant-table-filter-dropdown')!, { keyCode: 13 }); expect(renderedNames(container)).toEqual(['Jack', 'Lucy', 'Tom', 'Jerry']); // don't trigger descend fireEvent.keyDown(container.querySelector('.ant-table-filter-dropdown')!, { keyCode: 13 }); expect(renderedNames(container)).toEqual(['Jack', 'Lucy', 'Tom', 'Jerry']); }); describe('can be controlled by sortOrder', () => { it('single', () => { const { container } = render( createTable({ columns: [{ ...column, sortOrder: 'ascend' }], }), ); expect(renderedNames(container)).toEqual(['Jack', 'Jerry', 'Lucy', 'Tom']); }); it('invalidate mix with single & multiple sorters', () => { const { container } = render( createTable({ columns: [ { title: 'Name', dataIndex: 'name', sortOrder: 'ascend', sorter: { multiple: 1, }, }, { title: 'Name', dataIndex: 'name', sortOrder: 'ascend', sorter: {}, }, ], }), ); expect(renderedNames(container)).toEqual(['Jack', 'Lucy', 'Tom', 'Jerry']); }); }); it('provides sortOrder in the sorterFn', () => { let actualSortOrder: SortOrder; render( createTable( {}, { sortOrder: 'ascend', sorter: (a: any, b: any, sortOrder: SortOrder) => { actualSortOrder = sortOrder; return sorterFn(a, b); }, }, ), ); expect(actualSortOrder!).toEqual('ascend'); }); it('can update column sortOrder', () => { const { container, rerender } = render( createTable({ columns: [column], }), ); expect(renderedNames(container)).toEqual(['Jack', 'Lucy', 'Tom', 'Jerry']); rerender( createTable({ columns: [{ ...column, sortOrder: 'ascend' }], }), ); expect(renderedNames(container)).toEqual(['Jack', 'Jerry', 'Lucy', 'Tom']); }); it('fires change event', () => { const handleChange = jest.fn(); const { container } = render(createTable({ onChange: handleChange })); // ascent fireEvent.click(container.querySelector('.ant-table-column-sorters')!); const sorter1 = handleChange.mock.calls[0][2]; expect(sorter1.column.dataIndex).toBe('name'); expect(sorter1.order).toBe('ascend'); expect(sorter1.field).toBe('name'); expect(sorter1.columnKey).toBe('name'); fireEvent.click(container.querySelector('.ant-table-column-sorters')!); const sorter2 = handleChange.mock.calls[1][2]; expect(sorter2.column.dataIndex).toBe('name'); expect(sorter2.order).toBe('descend'); expect(sorter2.field).toBe('name'); expect(sorter2.columnKey).toBe('name'); fireEvent.click(container.querySelector('.ant-table-column-sorters')!); const sorter3 = handleChange.mock.calls[2][2]; expect(sorter3.column).toBe(undefined); expect(sorter3.order).toBe(undefined); expect(sorter3.field).toBe('name'); expect(sorter3.columnKey).toBe('name'); }); it('hover header show sorter tooltip', () => { // tooltip has delay jest.useFakeTimers(); const { container, rerender } = render(createTable()); // default show sorter tooltip fireEvent.mouseEnter(container.querySelector('.ant-table-column-sorters')!); act(() => { jest.runAllTimers(); }); expect(container.querySelector('.ant-tooltip-open')).toBeTruthy(); fireEvent.mouseOut(container.querySelector('.ant-table-column-sorters')!); // set table props showSorterTooltip is false rerender(createTable({ showSorterTooltip: false })); fireEvent.mouseEnter(container.querySelector('.ant-table-column-sorters')!); act(() => { jest.runAllTimers(); }); expect(container.querySelector('.ant-tooltip-open')).toBeFalsy(); fireEvent.mouseOut(container.querySelector('.ant-table-column-sorters')!); // set table props showSorterTooltip is false, column showSorterTooltip is true rerender( createTable({ showSorterTooltip: true, columns: [{ ...column, showSorterTooltip: true }] }), ); fireEvent.mouseEnter(container.querySelector('.ant-table-column-sorters')!); act(() => { jest.runAllTimers(); }); expect(container.querySelector('.ant-tooltip-open')).toBeTruthy(); fireEvent.mouseOut(container.querySelector('.ant-table-column-sorters')!); // set table props showSorterTooltip is true, column showSorterTooltip is false rerender( createTable({ showSorterTooltip: true, columns: [{ ...column, showSorterTooltip: false }], }), ); fireEvent.mouseEnter(container.querySelector('.ant-table-column-sorters')!); act(() => { jest.runAllTimers(); }); expect(container.querySelector('.ant-tooltip-open')).toBeFalsy(); fireEvent.mouseOut(container.querySelector('.ant-table-column-sorters')!); }); it('should show correct tooltip when showSorterTooltip is an object', () => { // basically copied from 'hover header show sorter tooltip' jest.useFakeTimers(); const { container, rerender } = render( createTable({ showSorterTooltip: { placement: 'bottom', title: 'static title' } }), ); fireEvent.mouseEnter(container.querySelector('.ant-table-column-sorters')!); act(() => { jest.runAllTimers(); }); expect(container.querySelector('.ant-tooltip-open')).toBeTruthy(); fireEvent.mouseOut(container.querySelector('.ant-table-column-sorters')!); // should merge original title into showSorterTooltip object rerender( createTable({ showSorterTooltip: { overlayClassName: 'custom-tooltip', }, }), ); fireEvent.mouseEnter(container.querySelector('.ant-table-column-sorters')!); act(() => { jest.runAllTimers(); }); expect(container.querySelector('.ant-tooltip-open')).toBeTruthy(); fireEvent.mouseOut(container.querySelector('.ant-table-column-sorters')!); // Root to false rerender(createTable({ showSorterTooltip: false })); act(() => { jest.runAllTimers(); }); expect(container.querySelector('.ant-tooltip-open')).toBeFalsy(); // Column to true rerender( createTable({ showSorterTooltip: false, columns: [{ ...column, showSorterTooltip: true }], }), ); fireEvent.mouseEnter(container.querySelector('.ant-table-column-sorters')!); act(() => { jest.runAllTimers(); }); expect(container.querySelector('.ant-tooltip-open')).toBeTruthy(); fireEvent.mouseOut(container.querySelector('.ant-table-column-sorters')!); // Column to false rerender( createTable({ showSorterTooltip: true, columns: [{ ...column, showSorterTooltip: false }], }), ); act(() => { jest.runAllTimers(); }); expect(container.querySelector('.ant-tooltip-open')).toBeFalsy(); }); it('renders custome sort icon correctly', () => { const sortIcon = ({ sortOrder }: { sortOrder?: SortOrder }): React.ReactNode => { let text: string; if (sortOrder === undefined) { text = 'unsorted'; } else if (sortOrder === 'descend') { text = 'sortDescend'; } else { text = 'sortAscend'; } return <span className="customize-icon">{text}</span>; }; const { container } = render( createTable({ columns: [ { ...column, sortIcon, }, ], }), ); fireEvent.click(container.querySelector('.customize-icon')!); expect(container.querySelector('.customize-icon')).toMatchSnapshot(); fireEvent.click(container.querySelector('.customize-icon')!); expect(container.querySelector('.customize-icon')).toMatchSnapshot(); fireEvent.click(container.querySelector('.customize-icon')!); expect(container.querySelector('.customize-icon')).toMatchSnapshot(); }); it('works with grouping columns in controlled mode', () => { const columns = [ { title: 'group', key: 'group', children: [ { title: 'Name', dataIndex: 'name', key: 'name', sorter: sorterFn, sortOrder: 'descend', }, { title: 'Age', dataIndex: 'age', key: 'age', }, ], }, ]; const testData = [ { key: 0, name: 'Jack', age: 11 }, { key: 1, name: 'Lucy', age: 20 }, { key: 2, name: 'Tom', age: 21 }, { key: 3, name: 'Jerry', age: 22 }, ]; const { container } = render(<Table columns={columns} dataSource={testData} />); expect(renderedNames(container)).toEqual(['Tom', 'Lucy', 'Jack', 'Jerry']); }); // https://github.com/ant-design/ant-design/issues/11246#issuecomment-405009167 it('Allow column title as render props with sortOrder argument', () => { const title = ({ sortOrder }: { sortOrder: SortOrder }) => ( <div className="custom-title">{sortOrder}</div> ); const columns = [{ title, key: 'group', sorter: true }]; const testData = [ { key: 0, name: 'Jack', age: 11 }, { key: 1, name: 'Lucy', age: 20 }, { key: 2, name: 'Tom', age: 21 }, { key: 3, name: 'Jerry', age: 22 }, ]; const { container } = render(<Table columns={columns} dataSource={testData} />); expect(container.querySelector('.custom-title')?.textContent).toEqual(''); fireEvent.click(container.querySelector('.ant-table-column-sorters')!); expect(container.querySelector('.custom-title')?.textContent).toEqual('ascend'); fireEvent.click(container.querySelector('.ant-table-column-sorters')!); expect(container.querySelector('.custom-title')?.textContent).toEqual('descend'); }); // https://github.com/ant-design/ant-design/pull/12264#discussion_r218053034 it('should sort from beginning state when toggle from different columns', () => { const columns = [ { title: 'name', dataIndex: 'name', sorter: true }, { title: 'age', dataIndex: 'age', sorter: true }, ]; const testData = [ { key: 0, name: 'Jack', age: 11 }, { key: 1, name: 'Lucy', age: 20 }, { key: 2, name: 'Tom', age: 21 }, { key: 3, name: 'Jerry', age: 22 }, ]; const { container } = render(<Table columns={columns} dataSource={testData} />); const getNameColumn = () => container.querySelectorAll<HTMLElement>('.ant-table-column-has-sorters')[0]; const getAgeColumn = () => container.querySelectorAll<HTMLElement>('.ant-table-column-has-sorters')[1]; const getNameIcon = (name: string) => getNameColumn()?.querySelector(`.ant-table-column-sorter-${name}`); const getAgeIcon = (name: string) => getAgeColumn().querySelector(`.ant-table-column-sorter-${name}`); // sort name fireEvent.click(getNameColumn()!); expect(getNameIcon('up')?.className.includes('active')).toBeTruthy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('ascending'); expect(getAgeIcon('up')?.className.includes('active')).toBeFalsy(); expect(getAgeColumn().getAttribute('aria-sort')).toEqual(null); // sort age fireEvent.click(getAgeColumn()); expect(getNameIcon('up')?.className.includes('active')).toBeFalsy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); expect(getAgeIcon('up')?.className.includes('active')).toBeTruthy(); expect(getAgeColumn().getAttribute('aria-sort')).toEqual('ascending'); }); // https://github.com/ant-design/ant-design/issues/12571 it('should toggle sort state when columns are put in render', () => { const testData = [ { key: 0, name: 'Jack', age: 11 }, { key: 1, name: 'Lucy', age: 20 }, { key: 2, name: 'Tom', age: 21 }, { key: 3, name: 'Jerry', age: 22 }, ]; const columns = [{ title: 'name', dataIndex: 'name', sorter: true }]; const TableTest: React.FC = () => { const [pagination, setPagination] = React.useState<TablePaginationConfig>({}); const onChange: TableProps<any>['onChange'] = (pag) => { setPagination(pag); }; return ( <Table columns={columns} pagination={pagination} dataSource={testData} onChange={onChange} /> ); }; const { container } = render(<TableTest />); const getNameColumn = () => container.querySelector('th'); const getIcon = (name: string) => getNameColumn()?.querySelector(`.ant-table-column-sorter-${name}`); expect(getIcon('up')?.className.includes('active')).toBeFalsy(); expect(getIcon('down')?.className.includes('active')).toBeFalsy(); // sort name fireEvent.click(getNameColumn()!); expect(getIcon('up')?.className.includes('active')).toBeTruthy(); expect(getIcon('down')?.className.includes('active')).toBeFalsy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('ascending'); // sort name fireEvent.click(getNameColumn()!); expect(getIcon('up')?.className.includes('active')).toBeFalsy(); expect(getIcon('down')?.className.includes('active')).toBeTruthy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('descending'); // sort name fireEvent.click(getNameColumn()!); expect(getIcon('up')?.className.includes('active')).toBeFalsy(); expect(getIcon('down')?.className.includes('active')).toBeFalsy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); }); // https://github.com/ant-design/ant-design/issues/12737 // https://github.com/ant-design/ant-design/issues/19398 it('should toggle sort state when columns with non primitive properties are put in render', () => { const testData = [ { key: 0, name: 'Jack', age: 11 }, { key: 1, name: 'Lucy', age: 20 }, { key: 2, name: 'Tom', age: 21 }, { key: 3, name: 'Jerry', age: 22 }, ]; const columns = [ { title: 'name', dataIndex: 'name', sorter: true, array: ['1', '2', 3], render: (text: string) => text, }, ]; const TableTest: React.FC = () => { const [pagination, setPagination] = React.useState<TablePaginationConfig>({}); const onChange: TableProps<any>['onChange'] = (pag) => { setPagination(pag); }; return ( <Table columns={columns} pagination={pagination} dataSource={testData} onChange={onChange} /> ); }; const { container } = render(<TableTest />); const getNameColumn = () => container.querySelector('th'); const getIcon = (name: string) => getNameColumn()?.querySelector(`.ant-table-column-sorter-${name}`); expect(getIcon('up')?.className.includes('active')).toBeFalsy(); expect(getIcon('down')?.className.includes('active')).toBeFalsy(); // sort name fireEvent.click(getNameColumn()!); expect(getIcon('up')?.className.includes('active')).toBeTruthy(); expect(getIcon('down')?.className.includes('active')).toBeFalsy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('ascending'); // sort name fireEvent.click(getNameColumn()!); expect(getIcon('up')?.className.includes('active')).toBeFalsy(); expect(getIcon('down')?.className.includes('active')).toBeTruthy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('descending'); // sort name fireEvent.click(getNameColumn()!); expect(getIcon('up')?.className.includes('active')).toBeFalsy(); expect(getIcon('down')?.className.includes('active')).toBeFalsy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); }); // https://github.com/ant-design/ant-design/issues/12870 it('should toggle sort state when columns with key are put in render', () => { const testData = [ { key: 0, name: 'Jack', age: 11 }, { key: 1, name: 'Lucy', age: 20 }, { key: 2, name: 'Tom', age: 21 }, { key: 3, name: 'Jerry', age: 22 }, ]; const columns = [ { title: 'name', dataIndex: 'name', sorter: true, key: 'a', style: { fontSize: 18 }, }, ]; const TableTest: React.FC = () => { const [pagination, setPagination] = React.useState<TablePaginationConfig>({}); const onChange: TableProps<any>['onChange'] = (pag) => { setPagination(pag); }; return ( <Table columns={columns} pagination={pagination} dataSource={testData} onChange={onChange} /> ); }; const { container } = render(<TableTest />); const getNameColumn = () => container.querySelector('th'); expect( getNameColumn()?.querySelector('.ant-table-column-sorter-up')?.className.includes('active'), ).toBeFalsy(); expect( getNameColumn()?.querySelector('.ant-table-column-sorter-down')?.className.includes('active'), ).toBeFalsy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); // sort name fireEvent.click(getNameColumn()!); expect( getNameColumn()?.querySelector('.ant-table-column-sorter-up')?.className.includes('active'), ).toBeTruthy(); expect( getNameColumn()?.querySelector('.ant-table-column-sorter-down')?.className.includes('active'), ).toBeFalsy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('ascending'); // sort name fireEvent.click(getNameColumn()!); expect( getNameColumn()?.querySelector('.ant-table-column-sorter-up')?.className.includes('active'), ).toBeFalsy(); expect( getNameColumn()?.querySelector('.ant-table-column-sorter-down')?.className.includes('active'), ).toBeTruthy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('descending'); // sort name fireEvent.click(getNameColumn()!); expect( getNameColumn()?.querySelector('.ant-table-column-sorter-up')?.className.includes('active'), ).toBeFalsy(); expect( getNameColumn()?.querySelector('.ant-table-column-sorter-down')?.className.includes('active'), ).toBeFalsy(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); }); it('should first sort by descend, then ascend, then cancel sort', () => { const { container } = render(createTable({ sortDirections: ['descend', 'ascend'] })); const getNameColumn = () => container.querySelector('th'); // descend fireEvent.click(getNameColumn()!); expect(renderedNames(container)).toEqual(['Tom', 'Lucy', 'Jack', 'Jerry']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('descending'); // ascend fireEvent.click(getNameColumn()!); expect(renderedNames(container)).toEqual(['Jack', 'Jerry', 'Lucy', 'Tom']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('ascending'); // cancel sort fireEvent.click(getNameColumn()!); expect(renderedNames(container)).toEqual(['Jack', 'Lucy', 'Tom', 'Jerry']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); }); it('should first sort by descend, then cancel sort', () => { const { container } = render( createTable({ sortDirections: ['descend'], }), ); const getNameColumn = () => container.querySelector('th'); // default expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); // descend fireEvent.click(getNameColumn()!); expect(renderedNames(container)).toEqual(['Tom', 'Lucy', 'Jack', 'Jerry']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('descending'); // cancel sort fireEvent.click(getNameColumn()!); expect(renderedNames(container)).toEqual(['Jack', 'Lucy', 'Tom', 'Jerry']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); }); it('should first sort by descend, then cancel sort. (column prop)', () => { const { container } = render( createTable( {}, { sortDirections: ['descend'], }, ), ); const getNameColumn = () => container.querySelector('th'); // default expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); // descend fireEvent.click(getNameColumn()!); expect(renderedNames(container)).toEqual(['Tom', 'Lucy', 'Jack', 'Jerry']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('descending'); // cancel sort fireEvent.click(getNameColumn()!); expect(renderedNames(container)).toEqual(['Jack', 'Lucy', 'Tom', 'Jerry']); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); }); it('pagination back', () => { const onPageChange = jest.fn(); const onChange = jest.fn(); const { container } = render( createTable({ pagination: { pageSize: 2, defaultCurrent: 2, onChange: onPageChange, }, onChange, }), ); const getNameColumn = () => container.querySelector('th'); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null); fireEvent.click(getNameColumn()!); expect(onChange.mock.calls[0][0].current).toBe(2); expect(onPageChange).not.toHaveBeenCalled(); expect(getNameColumn()?.getAttribute('aria-sort')).toEqual('ascending'); }); it('should support onHeaderCell in sort column', () => { const onClick = jest.fn(); const { container } = render( <Table columns={[{ title: 'title', onHeaderCell: () => ({ onClick }), sorter: true }]} />, ); fireEvent.click(container.querySelector('th')!); expect(onClick).toHaveBeenCalled(); }); it('could sort data with children', () => { const { container } = render( createTable( { defaultExpandAllRows: true, dataSource: [ { key: '1', name: 'Brown', children: [ { key: '2', name: 'Zoe', }, { key: '3', name: 'Mike', children: [ { key: '3-1', name: 'Petter', }, { key: '3-2', name: 'Alex', }, ], }, { key: '4', name: 'Green', }, ], }, ], }, { defaultSortOrder: 'ascend' }, ), ); expect(renderedNames(container)).toEqual(['Brown', 'Green', 'Mike', 'Alex', 'Petter', 'Zoe']); }); // https://github.com/ant-design/ant-design/issues/19443 it('should not being infinite loop when using Table.Column with sortOrder', () => { const Demo: React.FC = () => ( <Table dataSource={[]}> <Table.Column title="Age" dataIndex="age" sorter sortOrder="ascend" key="age" /> </Table> ); expect(() => { render(<Demo />); }).not.toThrow(); }); it('should support defaultOrder in Column', () => { const { asFragment } = render( <Table dataSource={[{ key: '1', age: 1 }]}> <Table.Column title="Age" dataIndex="age" sorter defaultSortOrder="ascend" key="age" /> </Table>, ); expect(asFragment().firstChild).toMatchSnapshot(); }); // https://github.com/ant-design/ant-design/issues/20096 it('invalidate sorter should not display sorter button', () => { const { container } = render( <Table columns={[ { title: 'Name', dataIndex: 'name', key: 'name', sorter: false, }, { title: 'Age', dataIndex: 'age', key: 'age', sorter: null as unknown as ColumnType<any>['sorter'], }, { title: 'Address', dataIndex: 'address', key: 'address', sorter: undefined, }, ]} />, ); expect(container.querySelectorAll('.ant-table-column-sorter-inner')).toHaveLength(0); }); // https://github.com/ant-design/ant-design/issues/21193 it('table with sugar column', () => { const { container } = render( <Table> <Table.Column title="Chinese Score" dataIndex="chinese" sorter={{ compare: (a: any, b: any) => a.chinese - b.chinese, multiple: 3, }} /> <Table.Column title="Math Score" dataIndex="math" sorter={{ compare: (a: any, b: any) => a.math - b.math, multiple: 2, }} /> </Table>, ); fireEvent.click(container.querySelector('th')!); expect(container.querySelectorAll('th.ant-table-column-sort')).toHaveLength(1); }); it('surger should support sortOrder', () => { const { container } = render( <Table> <Table.Column key="name" title="Name" dataIndex="name" sortOrder="ascend" sorter /> </Table>, ); expect( container.querySelector('.ant-table-column-sorter-up')?.className.includes('active'), ).toBeTruthy(); expect( container.querySelector('.ant-table-column-sorter-down')?.className.includes('active'), ).toBeFalsy(); }); it('controlled multiple group', () => { const groupColumns: ColumnsType = [ { title: 'Math Score', dataIndex: 'math1', sortOrder: 'ascend', sorter: { multiple: 1 }, children: [ { title: 'math', dataIndex: 'math', }, ], }, { title: 'English Score', dataIndex: 'english', sortOrder: 'descend', sorter: { multiple: 2 }, }, ]; const groupData = [ { key: '1', name: 'John Brown', chinese: 98, math: 60, english: 70, }, ]; const dataProp = { data: groupData }; const { container } = render(<Table columns={groupColumns} {...dataProp} />); expect( container ?.querySelectorAll('.ant-table-column-sorter-full')?.[0] ?.querySelector('.ant-table-column-sorter-up') ?.className.includes('active'), ).toBeTruthy(); expect( container ?.querySelectorAll('.ant-table-column-sorter-full')?.[1] ?.querySelector('.ant-table-column-sorter-down') ?.className.includes('active'), ).toBeTruthy(); }); it('onChange with correct sorter for multiple', () => { const groupColumns = [ { title: 'Math Score', dataIndex: 'math', sorter: { multiple: 1 }, }, { title: 'English Score', dataIndex: 'english', sorter: { multiple: 2 }, }, ]; const groupData = [ { key: '1', name: 'John Brown', chinese: 98, math: 60, english: 70, }, ]; const onChange = jest.fn(); const dataProp = { data: groupData }; const { container } = render( <Table columns={groupColumns} {...dataProp} onChange={onChange} />, ); function clickToMatchExpect(index: number, sorter: { field: string; order: SortOrder }) { fireEvent.click(container.querySelectorAll('.ant-table-column-sorters')[index]); expect(onChange).toHaveBeenCalledWith( expect.anything(), expect.anything(), expect.objectContaining(sorter), expect.anything(), ); onChange.mockReset(); } // First clickToMatchExpect(0, { field: 'math', order: 'ascend' }); clickToMatchExpect(0, { field: 'math', order: 'descend' }); clickToMatchExpect(0, { field: 'math', order: undefined as unknown as SortOrder }); // Last clickToMatchExpect(1, { field: 'english', order: 'ascend' }); clickToMatchExpect(1, { field: 'english', order: 'descend' }); clickToMatchExpect(1, { field: 'english', order: undefined as unknown as SortOrder }); }); // https://github.com/ant-design/ant-design/issues/37024 it('multiple sort should pass array sorter as onChange param', () => { const columns: TableProps<any>['columns'] = [ { title: 'Name', dataIndex: 'name', }, { title: 'Chinese Score', dataIndex: 'chinese', sorter: { compare: (a, b) => a.chinese - b.chinese, multiple: 3, }, }, { title: 'Math Score', dataIndex: 'math', sorter: { compare: (a, b) => a.math - b.math, multiple: 2, }, }, { title: 'English Score', dataIndex: 'english', sorter: { compare: (a, b) => a.english - b.english, multiple: 1, }, }, ]; const tableData = [ { key: '1', name: 'John Brown', chinese: 98, math: 60, english: 70, }, { key: '2', name: 'Jim Green', chinese: 98, math: 66, english: 89, }, { key: '3', name: 'Joe Black', chinese: 98, math: 90, english: 70, }, { key: '4', name: 'Jim Red', chinese: 88, math: 99, english: 89, }, ]; const onChange = jest.fn(); const { container } = render( <Table columns={columns} dataSource={tableData} onChange={onChange} />, ); const sorterColumns = Array.from(container.querySelectorAll('.ant-table-column-has-sorters')); expect(sorterColumns.length).toBe(3); fireEvent.click(sorterColumns[0]); expect(onChange).toHaveBeenLastCalledWith( expect.anything(), expect.anything(), expect.objectContaining({ field: 'chinese' }), expect.anything(), ); fireEvent.click(sorterColumns[1]); expect(onChange).toHaveBeenLastCalledWith( expect.anything(), expect.anything(), expect.arrayContaining([ expect.objectContaining({ field: 'chinese' }), expect.objectContaining({ field: 'math' }), ]), expect.anything(), ); fireEvent.click(sorterColumns[2]); expect(onChange).toHaveBeenLastCalledWith( expect.anything(), expect.anything(), expect.arrayContaining([ expect.objectContaining({ field: 'chinese' }), expect.objectContaining({ field: 'math' }), expect.objectContaining({ field: 'english' }), ]), expect.anything(), ); }); });
6,185
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/Table.test.tsx
import React, { useRef } from 'react'; import { ConfigProvider } from 'antd'; import type { TableProps, TableRef } from '..'; import Table from '..'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { fireEvent, render, waitFakeTimer } from '../../../tests/utils'; const { Column, ColumnGroup } = Table; describe('Table', () => { mountTest(Table); rtlTest(Table); const warnSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); afterAll(() => { warnSpy.mockRestore(); }); it('renders JSX correctly', () => { const data = [ { key: '1', firstName: 'John', lastName: 'Brown', age: 32, }, { key: '2', firstName: 'Jim', lastName: 'Green', age: 42, }, ]; const { asFragment } = render( <Table dataSource={data} pagination={false}> <ColumnGroup title="Name"> <Column title="First Name" dataIndex="firstName" key="firstName" /> <Column title="Last Name" dataIndex="lastName" key="lastName" /> </ColumnGroup> <Column title="Age" dataIndex="age" key="age" /> {/* eslint-disable-next-line react/jsx-curly-brace-presence */} {'invalid child'} </Table>, ); expect(asFragment().firstChild).toMatchSnapshot(); }); it('updates columns when receiving props', () => { const columns = [ { title: 'Name', key: 'name', dataIndex: 'name', }, ]; const { container, rerender } = render(<Table columns={columns} />); const newColumns = [ { title: 'Title', key: 'title', dataIndex: 'title', }, ]; rerender(<Table columns={newColumns} />); expect(container.querySelector('th')?.textContent).toEqual('Title'); }); it('loading with Spin', async () => { jest.useFakeTimers(); const loading = { spinning: false, delay: 500, }; const { container, rerender } = render(<Table loading={loading} />); expect(container.querySelectorAll('.ant-spin')).toHaveLength(0); expect(container.querySelector('.ant-table-placeholder')?.textContent).not.toEqual(''); loading.spinning = true; rerender(<Table loading={loading} />); expect(container.querySelectorAll('.ant-spin')).toHaveLength(0); await waitFakeTimer(); rerender(<Table loading />); expect(container.querySelectorAll('.ant-spin')).toHaveLength(1); jest.clearAllTimers(); jest.useRealTimers(); }); // https://github.com/ant-design/ant-design/issues/22733 it('support loading tip', async () => { jest.useFakeTimers(); const { container, rerender } = render(<Table loading={{ tip: 'loading...' }} />); await waitFakeTimer(); rerender( <Table loading={{ tip: 'loading...', loading: true } as TableProps<any>['loading']} />, ); expect(container.querySelectorAll('.ant-spin')).toHaveLength(1); jest.clearAllTimers(); jest.useRealTimers(); }); it('props#columnsPageRange and props#columnsPageSize do not warn anymore', () => { const data = [ { key: '1', age: 32 }, { key: '2', age: 42 }, ]; const columnsPageRange = jest.fn(); const columnsPageSize = jest.fn(); const props = { columnsPageRange, columnsPageSize }; render( <Table dataSource={data} rowKey="key" {...props}> <Column title="Age" dataIndex="age" key="age" /> </Table>, ); expect(warnSpy).not.toHaveBeenCalledWith( '`columnsPageRange` and `columnsPageSize` are removed, please use fixed columns instead, see: https://u.ant.design/fixed-columns.', ); expect(columnsPageRange).not.toHaveBeenCalled(); expect(columnsPageSize).not.toHaveBeenCalled(); }); it('support onHeaderCell', () => { const onClick = jest.fn(); const { container } = render( <Table columns={[{ title: 'title', onHeaderCell: () => ({ onClick }) }]} />, ); fireEvent.click(container.querySelector('th')!); expect(onClick).toHaveBeenCalled(); }); it('should not crash when column children is empty', () => { render( <Table columns={[ { dataIndex: 'name', children: undefined, }, ]} dataSource={[]} />, ); }); it('should not crash when dataSource is array with none-object items', () => { render( <Table columns={[ { title: 'name', }, ]} dataSource={['1', 2, undefined, {}, null, true, false, 0] as TableProps<any>['dataSource']} />, ); }); it('prevent touch event', () => { // prevent touch event, 原来的用例感觉是少了 touchmove 调用判断 const touchmove = jest.fn(); const { container } = render( <Table columns={[ { dataIndex: 'name', children: undefined, }, ]} dataSource={[]} />, ); fireEvent.touchMove(container.querySelector('.ant-table')!); expect(touchmove).not.toHaveBeenCalled(); }); it('renders ellipsis by showTitle option', () => { const data = [ { id: '1', age: 32, }, { id: '2', age: 42, }, ]; const columns = [ { title: 'id', dataKey: 'id', ellipsis: { showTitle: false } }, { title: 'age', dataKey: 'age', ellipsis: { showTitle: false } }, ]; const { container } = render(<Table columns={columns} dataSource={data} />); container.querySelectorAll('td').forEach((td) => { expect(td.className.includes('ant-table-cell-ellipsis')).toBe(true); }); }); it('not renders ellipsis origin html title', () => { const data = [ { id: '1', age: 32, }, { id: '2', age: 42, }, ]; const columns = [ { title: 'id', dataKey: 'id', ellipsis: { showTitle: true } }, { title: 'age', dataKey: 'age', ellipsis: { showTitle: true } }, ]; const { container } = render(<Table columns={columns} dataSource={data} />); container.querySelectorAll<HTMLTableCellElement>('.ant-table-thead th').forEach((td) => { expect((td.attributes as any).title).toBeTruthy(); }); container.querySelectorAll('.ant-table-tbody td').forEach((td) => { expect((td.attributes as any).title).toBeFalsy(); }); }); // https://github.com/ant-design/ant-design/issues/37977 it('should render title when enable ellipsis, sorter and filters', () => { const data = [] as any; const columns = [ { title: 'id', dataKey: 'id', ellipsis: true, sorter: true, filters: [] }, { title: 'age', dataKey: 'age', ellipsis: true, sorter: true }, { title: 'age', dataKey: 'age', ellipsis: true, filters: [] }, ]; const { container } = render(<Table columns={columns} dataSource={data} />); container .querySelectorAll<HTMLTableCellElement>('.ant-table-thead th.ant-table-cell') .forEach((td) => { expect((td.attributes as any).title).toBeTruthy(); }); }); it('warn about rowKey when using index parameter', () => { warnSpy.mockReset(); const columns = [ { title: 'Name', key: 'name', dataIndex: 'name', }, ]; render(<Table columns={columns} rowKey={(record, index) => record.key + index} />); expect(warnSpy).toHaveBeenCalledWith( 'Warning: [antd: Table] `index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.', ); }); it('not warn about rowKey', () => { warnSpy.mockReset(); const columns = [ { title: 'Name', key: 'name', dataIndex: 'name', }, ]; render(<Table columns={columns} rowKey={(record) => record.key} />); expect(warnSpy).not.toHaveBeenCalled(); }); it('should support ref', () => { warnSpy.mockReset(); const columns = [ { title: 'Name', key: 'name', dataIndex: 'name', }, ]; const Wrapper: React.FC = () => { const ref = React.useRef<any>(null); return <Table ref={ref} columns={columns} />; }; render(<Wrapper />); expect(warnSpy).not.toHaveBeenCalled(); }); // https://github.com/ant-design/ant-design/issues/38371 it('should render title', () => { const columns = [ { title: ( <div> <span>name</span> <span>Jason</span> </div> ), key: 'name', sorter: true, }, { title: ( <div> <i /> </div> ), key: 'name', sorter: true, }, { title: () => ( <div> <span>age</span> <span>20</span> </div> ), key: 'name', sorter: true, }, { title: () => 'color', key: 'name', sorter: true, }, { title: 'sex', key: 'name', sorter: true, }, ]; const { container } = render(<Table columns={columns} />); expect(container).toMatchSnapshot(); }); it('title should support ReactNode', () => { const { container } = render( <Table columns={[ { title: ( <div> <strong>Current</strong> <span>User</span> </div> ), dataIndex: 'name', }, ]} dataSource={[]} />, ); expect(container.querySelector('thead th')).toMatchSnapshot(); }); // https://github.com/react-component/table/pull/855 it('support aria-* and data-*', async () => { const { container } = render(<Table aria-label="label" data-number="123" />); expect(container.querySelector('table')?.getAttribute('aria-label')).toBe('label'); expect(container.querySelector('.ant-table')?.getAttribute('data-number')).toBe('123'); }); it('support wireframe', () => { const columns = [{ title: 'Name', key: 'name', dataIndex: 'name' }]; const { container } = render( <ConfigProvider theme={{ token: { wireframe: true } }}> <Table columns={columns} /> </ConfigProvider>, ); expect(container.firstChild).toMatchSnapshot(); }); it('support getPopupContainer inject by ConfigProvider', async () => { const columns = [ { title: 'title', key: 'title', dataIndex: 'title', filters: [ { text: 'filter', value: 'filter', }, ], }, ]; const Demo = () => { const wrapRef = useRef(null); return ( <ConfigProvider getPopupContainer={wrapRef.current!}> <div ref={wrapRef}> <Table columns={columns} /> </div> </ConfigProvider> ); }; const { container } = render(<Demo />); fireEvent.click(container.querySelector('.ant-table-filter-trigger')!); await waitFakeTimer(); expect(container.querySelector('.ant-dropdown')).toBeTruthy(); }); it('support reference', () => { const tblRef = React.createRef<TableRef>(); const { container } = render(<Table ref={tblRef} />); const wrapDom = container.querySelector('.ant-table-wrapper')!; expect(tblRef.current).toHaveClass('ant-table-wrapper'); expect(tblRef.current?.nativeElement).toBe(wrapDom); expect(tblRef.current?.scrollTo instanceof Function).toBeTruthy(); }); });
6,186
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/Table.virtual.test.tsx
import React from 'react'; import Table from '..'; import { render } from '../../../tests/utils'; describe('Table.Virtual', () => { it('should work', () => { const { container } = render( <Table virtual scroll={{ x: 100, y: 100 }} columns={[ { dataIndex: 'key', }, ]} dataSource={[ { key: 'bamboo', }, ]} />, ); expect(container.querySelectorAll('.rc-virtual-list-holder .ant-table-cell')).toHaveLength(1); expect(container.querySelector('.rc-virtual-list-holder .ant-table-cell')?.textContent).toEqual( 'bamboo', ); }); // warning from `rc-table` it('warning if no scroll', () => { const errSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); render(<Table virtual />); expect(errSpy).toHaveBeenCalledWith('Warning: `scroll.y` in virtual table must be number.'); errSpy.mockRestore(); }); });
6,187
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('table', { skip: ['ajax.tsx', 'virtual-list.tsx'] });
6,188
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/demo.test.ts
import demoTest from '../../../tests/shared/demoTest'; demoTest('table', { skip: ['ajax.tsx', 'virtual-list.tsx'] });
6,189
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/empty.test.tsx
import React from 'react'; import { spyElementPrototypes } from 'rc-util/lib/test/domHook'; import type { ColumnsType } from '..'; import Table from '..'; import { render, triggerResize, waitFakeTimer } from '../../../tests/utils'; const columns: ColumnsType<any> = [ { title: 'Column 1', dataIndex: 'address', key: '1' }, { title: 'Column 2', dataIndex: 'address', key: '2' }, { title: 'Column 3', dataIndex: 'address', key: '3' }, { title: 'Column 4', dataIndex: 'address', key: '4' }, { title: 'Column 5', dataIndex: 'address', key: '5' }, { title: 'Column 6', dataIndex: 'address', key: '6' }, { title: 'Column 7', dataIndex: 'address', key: '7' }, { title: 'Column 8', dataIndex: 'address', key: '8' }, ]; const columnsFixed: ColumnsType<any> = [ { title: 'Full Name', width: 100, dataIndex: 'name', key: 'name', fixed: 'left', }, { title: 'Age', width: 100, dataIndex: 'age', key: 'age', fixed: 'left', }, { title: 'Column 1', dataIndex: 'address', key: '1' }, { title: 'Column 2', dataIndex: 'address', key: '2' }, { title: 'Column 3', dataIndex: 'address', key: '3' }, { title: 'Column 4', dataIndex: 'address', key: '4' }, { title: 'Column 5', dataIndex: 'address', key: '5' }, { title: 'Column 6', dataIndex: 'address', key: '6' }, { title: 'Column 7', dataIndex: 'address', key: '7' }, { title: 'Column 8', dataIndex: 'address', key: '8' }, { title: 'Action', key: 'address', fixed: 'right', width: 100, }, ]; describe('Table', () => { it('renders empty table', () => { const { asFragment } = render(<Table dataSource={[]} columns={columns} pagination={false} />); expect(asFragment().firstChild).toMatchSnapshot(); }); describe('renders empty table with fixed columns', () => { let domSpy: ReturnType<typeof spyElementPrototypes>; beforeAll(() => { domSpy = spyElementPrototypes(HTMLDivElement, { offsetWidth: { get: () => 1000, }, }); }); afterAll(() => { domSpy.mockRestore(); }); beforeEach(() => { jest.useFakeTimers(); }); afterEach(() => { jest.useRealTimers(); }); it('should work', async () => { const { container, asFragment } = render( <Table dataSource={[]} columns={columnsFixed} pagination={false} scroll={{ x: 1 }} />, ); triggerResize(container.querySelector('.ant-table')!); await waitFakeTimer(); expect(container.querySelector('.ant-empty')).toBeTruthy(); expect(asFragment().firstChild).toMatchSnapshot(); }); }); it('renders empty table with custom emptyText', () => { const { asFragment } = render( <Table dataSource={[]} columns={columns} pagination={false} locale={{ emptyText: 'custom empty text' }} />, ); expect(asFragment().firstChild).toMatchSnapshot(); }); it('renders empty table without emptyText when loading', () => { const { asFragment } = render(<Table dataSource={[]} columns={columns} loading />); expect(asFragment().firstChild).toMatchSnapshot(); }); });
6,190
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Table image', () => { imageDemoTest('table', { skip: ['virtual-list.tsx'] }); });
6,191
0
petrpan-code/ant-design/ant-design/components/table
petrpan-code/ant-design/ant-design/components/table/__tests__/type.test.tsx
import * as React from 'react'; import type { ColumnProps } from '..'; import type { TreeColumnFilterItem } from '../hooks/useFilter/FilterDropdown'; import Table from '..'; const { Column, ColumnGroup } = Table; describe('Table.typescript', () => { it('Column', () => { const table = ( <Table> <Column dataIndex="test" title="test" sorter /> </Table> ); expect(table).toBeTruthy(); }); it('ColumnGroup', () => { const table = ( <Table> <Column dataIndex="test" title="test" sorter /> <ColumnGroup> <Column dataIndex="test" title="test" sorter /> </ColumnGroup> </Table> ); expect(table).toBeTruthy(); }); it('selections', () => { const table = <Table rowSelection={{ selections: [Table.SELECTION_ALL] }} />; expect(table).toBeTruthy(); }); it('generic', () => { interface RecordType { key: string; } const table = <Table<RecordType> dataSource={[{ key: 'Bamboo' }]} />; expect(table).toBeTruthy(); }); it('ColumnProps', () => { interface User { name: string; } const columns: ColumnProps<User>[] = [ { title: 'Name', dataIndex: 'name', filterSearch: (input: any, record: TreeColumnFilterItem) => (record.title as string).includes(input), }, ]; expect(columns).toBeTruthy(); }); it('table pagination position support none', () => { const table = <Table pagination={{ position: ['none', 'none'] }} />; expect(table).toBeTruthy(); }); });
6,192
0
petrpan-code/ant-design/ant-design/components/table/__tests__
petrpan-code/ant-design/ant-design/components/table/__tests__/__snapshots__/Table.expand.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Table.expand click to expand 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > Name </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell ant-table-cell-with-append" > <span class="ant-table-row-indent indent-level-0" style="padding-left: 0px;" /> <button aria-expanded="true" aria-label="Collapse row" class="ant-table-row-expand-icon ant-table-row-expand-icon-expanded" type="button" /> </td> </tr> <tr class="ant-table-row ant-table-row-level-1" data-row-key="2" > <td class="ant-table-cell ant-table-cell-with-append" > <span class="ant-table-row-indent indent-level-1" style="padding-left: 15px;" /> <button aria-expanded="false" aria-label="Expand row" class="ant-table-row-expand-icon ant-table-row-expand-icon-spaced" type="button" /> </td> </tr> </tbody> </table> </div> </div> </div> <ul class="ant-pagination ant-table-pagination ant-table-pagination-right" > <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="Previous Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 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" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="Next Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> `;
6,193
0
petrpan-code/ant-design/ant-design/components/table/__tests__
petrpan-code/ant-design/ant-design/components/table/__tests__/__snapshots__/Table.filter.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Table.filter clearFilters should support params 1`] = ` <div class="ant-dropdown-custom-view" id="customFilter" > <span id="setNoParams" > setSelectedKeys </span> <span id="resetNoParams" > Reset </span> <span id="setConfirm" > setSelectedKeys </span> <span id="resetConfirm" > Reset </span> <span id="setClose" > setSelectedKeys </span> <span id="resetClose" > Reset </span> <span id="setParams" > setSelectedKeys </span> <span id="resetParams" > Reset </span> </div> `; exports[`Table.filter override custom filter correctly 1`] = ` <div class="ant-dropdown-custom-view" id="customFilter" > <span id="setSelectedKeys" > setSelectedKeys </span> <span id="confirm" > Confirm </span> <span id="reset" > Reset </span> <span id="simulateOnSelect" > SimulateOnSelect </span> </div> `; exports[`Table.filter renders custom content correctly 1`] = ` <div class="ant-table-filter-dropdown" > <div class="custom-filter-dropdown" > custom filter </div> </div> `; exports[`Table.filter renders custom filter icon as ReactNode 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > <div class="ant-table-filter-column" > <span class="ant-table-column-title" > Name </span> <span class="ant-dropdown-trigger ant-table-filter-trigger" role="button" tabindex="-1" > <span class="customize-icon" /> </span> </div> </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> `; exports[`Table.filter renders custom filter icon as string correctly 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > <div class="ant-table-filter-column" > <span class="ant-table-column-title" > Name </span> <span class="ant-dropdown-trigger ant-table-filter-trigger" role="button" tabindex="-1" > string </span> </div> </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> `; exports[`Table.filter renders custom filter icon correctly 1`] = ` <span class="customize-icon" > filtered </span> `; exports[`Table.filter renders custom filter icon with right Tooltip title 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > <div class="ant-table-filter-column" > <span class="ant-table-column-title" > Name </span> <span class="ant-dropdown-trigger ant-table-filter-trigger" role="button" tabindex="-1" > <span class="ant-tooltip-open" > Tooltip </span> <div class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <div class="ant-tooltip-arrow" style="position: absolute; bottom: 0px; left: 0px;" /> <div class="ant-tooltip-content" > <div class="ant-tooltip-inner" role="tooltip" > title </div> </div> </div> </span> </div> </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> `; exports[`Table.filter renders filter correctly 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > <div class="ant-table-filter-column" > <span class="ant-table-column-title" > Name </span> <span class="ant-dropdown-trigger ant-table-filter-trigger" role="button" tabindex="-1" > <span aria-label="filter" class="anticon anticon-filter" role="img" > <svg aria-hidden="true" data-icon="filter" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z" /> </svg> </span> </span> </div> </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> `; exports[`Table.filter renders menu correctly 1`] = ` <div class="ant-table-filter-dropdown" > <ul class="ant-dropdown-menu ant-dropdown-menu-root ant-dropdown-menu-vertical ant-dropdown-menu-light" data-menu-list="true" role="menu" tabindex="0" > <li class="ant-dropdown-menu-item" data-menu-id="rc-menu-uuid-test-boy" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> <span> Boy </span> </span> </li> <li class="ant-dropdown-menu-item" data-menu-id="rc-menu-uuid-test-girl" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> <span> Girl </span> </span> </li> <li class="ant-dropdown-menu-submenu ant-dropdown-menu-submenu-vertical" role="none" > <div aria-controls="rc-menu-uuid-test-title-popup" aria-expanded="false" aria-haspopup="true" class="ant-dropdown-menu-submenu-title" data-menu-id="rc-menu-uuid-test-title" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > Title </span> <span class="ant-dropdown-menu-submenu-expand-icon ant-dropdown-menu-submenu-arrow" > <span aria-label="right" class="anticon anticon-right ant-dropdown-menu-submenu-arrow-icon" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </span> </div> </li> </ul> <div aria-hidden="true" style="display: none;" /> <div class="ant-table-filter-dropdown-btns" > <button class="ant-btn ant-btn-link ant-btn-sm" disabled="" type="button" > <span> Reset </span> </button> <button class="ant-btn ant-btn-primary ant-btn-sm" type="button" > <span> OK </span> </button> </div> </div> `; exports[`Table.filter renders radio filter correctly 1`] = ` <div class="ant-table-filter-dropdown" > <ul class="ant-dropdown-menu ant-dropdown-menu-root ant-dropdown-menu-vertical ant-dropdown-menu-light" data-menu-list="true" role="menu" tabindex="0" > <li class="ant-dropdown-menu-item" data-menu-id="rc-menu-uuid-test-boy" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" /> <span class="ant-radio-inner" /> </span> </label> <span> Boy </span> </span> </li> <li class="ant-dropdown-menu-item" data-menu-id="rc-menu-uuid-test-girl" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" /> <span class="ant-radio-inner" /> </span> </label> <span> Girl </span> </span> </li> <li class="ant-dropdown-menu-submenu ant-dropdown-menu-submenu-vertical" role="none" > <div aria-controls="rc-menu-uuid-test-title-popup" aria-expanded="false" aria-haspopup="true" class="ant-dropdown-menu-submenu-title" data-menu-id="rc-menu-uuid-test-title" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > Title </span> <span class="ant-dropdown-menu-submenu-expand-icon ant-dropdown-menu-submenu-arrow" > <span aria-label="right" class="anticon anticon-right ant-dropdown-menu-submenu-arrow-icon" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </span> </div> </li> </ul> <div aria-hidden="true" style="display: none;" /> <div class="ant-table-filter-dropdown-btns" > <button class="ant-btn ant-btn-link ant-btn-sm" disabled="" type="button" > <span> Reset </span> </button> <button class="ant-btn ant-btn-primary ant-btn-sm" type="button" > <span> OK </span> </button> </div> </div> `;
6,194
0
petrpan-code/ant-design/ant-design/components/table/__tests__
petrpan-code/ant-design/ant-design/components/table/__tests__/__snapshots__/Table.pagination.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Table.pagination Accepts pagination as true 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > Name </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> <ul class="ant-pagination ant-table-pagination ant-table-pagination-right" > <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="Previous Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 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" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="Next Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> `; exports[`Table.pagination renders pagination correctly 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > Name </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell" > Lucy </td> </tr> </tbody> </table> </div> </div> </div> <ul class="ant-pagination ant-table-pagination ant-table-pagination-right my-page" > <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="Previous Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 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" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li class="ant-pagination-item ant-pagination-item-2" tabindex="0" title="2" > <a rel="nofollow" > 2 </a> </li> <li aria-disabled="false" class="ant-pagination-next" tabindex="0" title="Next Page" > <button class="ant-pagination-item-link" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> `; exports[`Table.pagination renders pagination topLeft and bottomRight 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > Name </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> <ul class="ant-pagination ant-table-pagination ant-table-pagination-right" > <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="Previous Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 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" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="Next Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> `; exports[`Table.pagination should not crash when trigger onChange in render 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table ant-table-empty" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <td class="ant-table-cell" /> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-placeholder" > <td class="ant-table-cell" > <div class="ant-empty ant-empty-normal" > <div class="ant-empty-image" > <svg height="41" viewBox="0 0 64 41" width="64" xmlns="http://www.w3.org/2000/svg" > <g fill="none" fill-rule="evenodd" transform="translate(0 1)" > <ellipse cx="32" cy="33" fill="#f5f5f5" rx="32" ry="7" /> <g fill-rule="nonzero" stroke="#d9d9d9" > <path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" /> <path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#fafafa" /> </g> </g> </svg> </div> <div class="ant-empty-description" > No data </div> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> `;
6,195
0
petrpan-code/ant-design/ant-design/components/table/__tests__
petrpan-code/ant-design/ant-design/components/table/__tests__/__snapshots__/Table.rowSelection.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Table.rowSelection fix expand on th left when selection column fixed on the left 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table ant-table-fixed-column ant-table-scroll-horizontal ant-table-has-fix-left" > <div class="ant-table-container" > <div class="ant-table-content" style="overflow-x: auto; overflow-y: hidden;" > <table style="width: 903px; min-width: 100%; table-layout: fixed;" > <colgroup> <col class="ant-table-expand-icon-col" /> <col class="ant-table-selection-col" /> </colgroup> <thead class="ant-table-thead" > <tr> <td class="ant-table-cell ant-table-row-expand-icon-cell ant-table-cell-fix-left" style="position: sticky; left: 0px;" /> <th class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last" scope="col" style="position: sticky; left: 0px;" > <div class="ant-table-selection" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input aria-label="Select all" class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> </th> <th class="ant-table-cell" scope="col" > Name </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr aria-hidden="true" class="ant-table-measure-row" style="height: 0px; font-size: 0px;" > <td style="padding: 0px; border: 0px; height: 0px;" > <div style="height: 0px; overflow: hidden;" > </div> </td> <td style="padding: 0px; border: 0px; height: 0px;" > <div style="height: 0px; overflow: hidden;" > </div> </td> <td style="padding: 0px; border: 0px; height: 0px;" > <div style="height: 0px; overflow: hidden;" > </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell ant-table-row-expand-icon-cell ant-table-cell-fix-left" style="position: sticky; left: 0px;" > <button aria-expanded="false" aria-label="Expand row" class="ant-table-row-expand-icon ant-table-row-expand-icon-collapsed" type="button" /> </td> <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell ant-table-row-expand-icon-cell ant-table-cell-fix-left" style="position: sticky; left: 0px;" > <button aria-expanded="false" aria-label="Expand row" class="ant-table-row-expand-icon ant-table-row-expand-icon-collapsed" type="button" /> </td> <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell ant-table-row-expand-icon-cell ant-table-cell-fix-left" style="position: sticky; left: 0px;" > <button aria-expanded="false" aria-label="Expand row" class="ant-table-row-expand-icon ant-table-row-expand-icon-collapsed" type="button" /> </td> <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell ant-table-row-expand-icon-cell ant-table-cell-fix-left" style="position: sticky; left: 0px;" > <button aria-expanded="false" aria-label="Expand row" class="ant-table-row-expand-icon ant-table-row-expand-icon-collapsed" type="button" /> </td> <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> <ul class="ant-pagination ant-table-pagination ant-table-pagination-right" > <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="Previous Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 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" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="Next Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> `; exports[`Table.rowSelection fix selection column on the left 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table ant-table-fixed-column ant-table-scroll-horizontal ant-table-has-fix-left" > <div class="ant-table-container" > <div class="ant-table-content" style="overflow-x: auto; overflow-y: hidden;" > <table style="width: 903px; min-width: 100%; table-layout: fixed;" > <colgroup> <col class="ant-table-selection-col" /> </colgroup> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last" scope="col" style="position: sticky; left: 0px;" > <div class="ant-table-selection" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input aria-label="Select all" class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> </th> <th class="ant-table-cell" scope="col" > Name </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr aria-hidden="true" class="ant-table-measure-row" style="height: 0px; font-size: 0px;" > <td style="padding: 0px; border: 0px; height: 0px;" > <div style="height: 0px; overflow: hidden;" > </div> </td> <td style="padding: 0px; border: 0px; height: 0px;" > <div style="height: 0px; overflow: hidden;" > </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> <ul class="ant-pagination ant-table-pagination ant-table-pagination-right" > <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="Previous Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 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" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="Next Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> `; exports[`Table.rowSelection fix selection column on the left when any other column is fixed 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table ant-table-fixed-column ant-table-scroll-horizontal ant-table-has-fix-left" > <div class="ant-table-container" > <div class="ant-table-content" style="overflow-x: auto; overflow-y: hidden;" > <table style="width: 903px; min-width: 100%; table-layout: fixed;" > <colgroup> <col class="ant-table-selection-col" /> </colgroup> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left" scope="col" style="position: sticky; left: 0px;" > <div class="ant-table-selection" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input aria-label="Select all" class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> </th> <th class="ant-table-cell ant-table-cell-fix-left ant-table-cell-fix-left-last ant-table-cell-fix-left-all" scope="col" style="position: sticky; left: 0px;" > Name </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr aria-hidden="true" class="ant-table-measure-row" style="height: 0px; font-size: 0px;" > <td style="padding: 0px; border: 0px; height: 0px;" > <div style="height: 0px; overflow: hidden;" > </div> </td> <td style="padding: 0px; border: 0px; height: 0px;" > <div style="height: 0px; overflow: hidden;" > </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell ant-table-cell-fix-left ant-table-cell-fix-left-last ant-table-cell-fix-left-all" style="position: sticky; left: 0px;" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell ant-table-cell-fix-left ant-table-cell-fix-left-last ant-table-cell-fix-left-all" style="position: sticky; left: 0px;" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell ant-table-cell-fix-left ant-table-cell-fix-left-last ant-table-cell-fix-left-all" style="position: sticky; left: 0px;" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left" style="position: sticky; left: 0px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell ant-table-cell-fix-left ant-table-cell-fix-left-last ant-table-cell-fix-left-all" style="position: sticky; left: 0px;" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> <ul class="ant-pagination ant-table-pagination ant-table-pagination-right" > <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="Previous Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 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" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="Next Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> `; exports[`Table.rowSelection render with default selection correctly 1`] = ` <div class="ant-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <ul class="ant-dropdown-menu ant-dropdown-menu-root ant-dropdown-menu-vertical ant-dropdown-menu-light" data-menu-list="true" role="menu" tabindex="0" > <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-all" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > Select all data </span> </li> <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-invert" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > Invert current page </span> </li> <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-none" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > Clear all data </span> </li> </ul> <div aria-hidden="true" style="display: none;" /> </div> `; exports[`Table.rowSelection should support getPopupContainer 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup> <col class="ant-table-selection-col" /> </colgroup> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell ant-table-selection-column" scope="col" > <div class="ant-table-selection" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input aria-label="Custom selection" class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> <div class="ant-table-selection-extra" > <span class="ant-dropdown-trigger ant-dropdown-open" > <span aria-label="down" class="anticon anticon-down" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <div class="ant-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <ul class="ant-dropdown-menu ant-dropdown-menu-root ant-dropdown-menu-vertical ant-dropdown-menu-light" data-menu-list="true" role="menu" tabindex="0" > <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-all" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > Select all data </span> </li> <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-invert" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > Invert current page </span> </li> <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-none" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > Clear all data </span> </li> </ul> <div aria-hidden="true" style="display: none;" /> </div> </div> </div> </th> <th class="ant-table-cell" scope="col" > Name </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> <ul class="ant-pagination ant-table-pagination ant-table-pagination-right" > <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="Previous Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 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" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="Next Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> `; exports[`Table.rowSelection should support getPopupContainer from ConfigProvider 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup> <col class="ant-table-selection-col" /> </colgroup> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell ant-table-selection-column" scope="col" > <div class="ant-table-selection" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input aria-label="Custom selection" class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> <div class="ant-table-selection-extra" > <span class="ant-dropdown-trigger ant-dropdown-open" > <span aria-label="down" class="anticon anticon-down" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" 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> </span> </span> <div class="ant-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up ant-dropdown-placement-bottomLeft" style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;" > <ul class="ant-dropdown-menu ant-dropdown-menu-root ant-dropdown-menu-vertical ant-dropdown-menu-light" data-menu-list="true" role="menu" tabindex="0" > <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-all" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > Select all data </span> </li> <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-invert" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > Invert current page </span> </li> <li class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child" data-menu-id="rc-menu-uuid-test-none" role="menuitem" tabindex="-1" > <span class="ant-dropdown-menu-title-content" > Clear all data </span> </li> </ul> <div aria-hidden="true" style="display: none;" /> </div> </div> </div> </th> <th class="ant-table-cell" scope="col" > Name </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> <ul class="ant-pagination ant-table-pagination ant-table-pagination-right" > <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="Previous Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 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" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="Next Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> `; exports[`Table.rowSelection use column as selection column when key is \`selection-column\` 1`] = ` <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup> <col class="ant-table-selection-col" /> </colgroup> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell ant-table-selection-column" scope="col" > <div class="ant-table-selection" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input aria-label="Select all" class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> </th> <th class="ant-table-cell" scope="col" > Name </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Jack </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Lucy </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Tom </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell ant-table-selection-column" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </td> <td class="ant-table-cell" > Jerry </td> </tr> </tbody> </table> </div> </div> </div> <ul class="ant-pagination ant-table-pagination ant-table-pagination-right" > <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="Previous Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 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" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="Next Page" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> `;