You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3050 lines
97 KiB
3050 lines
97 KiB
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`renders components/input-number/demo/addon.tsx extend context correctly 1`] = `
|
|
<div
|
|
class="ant-space ant-space-vertical"
|
|
>
|
|
<div
|
|
class="ant-space-item"
|
|
style="margin-bottom: 8px;"
|
|
>
|
|
<div
|
|
class="ant-input-number-group-wrapper"
|
|
>
|
|
<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
|
|
class="ant-space-item"
|
|
style="margin-bottom: 8px;"
|
|
>
|
|
<div
|
|
class="ant-input-number-group-wrapper"
|
|
>
|
|
<div
|
|
class="ant-input-number-wrapper ant-input-number-group"
|
|
>
|
|
<div
|
|
class="ant-input-number-group-addon"
|
|
>
|
|
<div
|
|
class="ant-select ant-select-single ant-select-show-arrow"
|
|
style="width: 60px;"
|
|
>
|
|
<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="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="+"
|
|
>
|
|
+
|
|
</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="+"
|
|
aria-selected="true"
|
|
id="rc_select_TEST_OR_SSR_list_0"
|
|
role="option"
|
|
>
|
|
add
|
|
</div>
|
|
<div
|
|
aria-label="-"
|
|
aria-selected="false"
|
|
id="rc_select_TEST_OR_SSR_list_1"
|
|
role="option"
|
|
>
|
|
minus
|
|
</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="+"
|
|
>
|
|
<div
|
|
class="ant-select-item-option-content"
|
|
>
|
|
+
|
|
</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="-"
|
|
>
|
|
<div
|
|
class="ant-select-item-option-content"
|
|
>
|
|
-
|
|
</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-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
|
|
class="ant-select ant-select-single ant-select-show-arrow"
|
|
style="width: 60px;"
|
|
>
|
|
<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="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="$"
|
|
>
|
|
$
|
|
</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="$"
|
|
aria-selected="true"
|
|
id="rc_select_TEST_OR_SSR_list_0"
|
|
role="option"
|
|
>
|
|
USD
|
|
</div>
|
|
<div
|
|
aria-label="€"
|
|
aria-selected="false"
|
|
id="rc_select_TEST_OR_SSR_list_1"
|
|
role="option"
|
|
>
|
|
EUR
|
|
</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="$"
|
|
>
|
|
<div
|
|
class="ant-select-item-option-content"
|
|
>
|
|
$
|
|
</div>
|
|
<span
|
|