Commit 54284ed9 by Torkel Ödegaard Committed by GitHub

Slider: Update rc-slider component (#25617)

parent 989a1a3d
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"papaparse": "4.6.3", "papaparse": "4.6.3",
"rc-cascader": "1.0.1", "rc-cascader": "1.0.1",
"rc-drawer": "3.1.3", "rc-drawer": "3.1.3",
"rc-slider": "8.7.1", "rc-slider": "9.3.1",
"rc-time-picker": "^3.7.3", "rc-time-picker": "^3.7.3",
"react": "16.12.0", "react": "16.12.0",
"react-beautiful-dnd": "13.0.0", "react-beautiful-dnd": "13.0.0",
......
...@@ -11,6 +11,7 @@ describe('Slider', () => { ...@@ -11,6 +11,7 @@ describe('Slider', () => {
it('renders without error', () => { it('renders without error', () => {
mount(<Slider {...sliderProps} />); mount(<Slider {...sliderProps} />);
}); });
it('renders correct contents', () => { it('renders correct contents', () => {
const wrapper = mount(<Slider {...sliderProps} />); const wrapper = mount(<Slider {...sliderProps} />);
expect(wrapper.html()).toContain('aria-valuemin="10"'); expect(wrapper.html()).toContain('aria-valuemin="10"');
...@@ -18,6 +19,7 @@ describe('Slider', () => { ...@@ -18,6 +19,7 @@ describe('Slider', () => {
expect(wrapper.html()).toContain('aria-valuenow="10"'); expect(wrapper.html()).toContain('aria-valuenow="10"');
expect(wrapper.html()).toContain('aria-valuenow="20"'); expect(wrapper.html()).toContain('aria-valuenow="20"');
}); });
it('renders correct contents with a value', () => { it('renders correct contents with a value', () => {
const wrapper = mount(<Slider {...sliderProps} value={[15]} />); const wrapper = mount(<Slider {...sliderProps} value={[15]} />);
expect(wrapper.html()).toContain('aria-valuenow="15"'); expect(wrapper.html()).toContain('aria-valuenow="15"');
......
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
# yarn lockfile v1 # yarn lockfile v1
"@ant-design/css-animation@^1.7.2":
version "1.7.2"
resolved "https://registry.yarnpkg.com/@ant-design/css-animation/-/css-animation-1.7.2.tgz#4ee5d2ec0fb7cc0a78b44e1c82628bd4621ac7e3"
integrity sha512-bvVOe7A+r7lws58B7r+fgnQDK90cV45AXuvGx6i5CCSX1W/M3AJnHsNggDANBxEtWdNdFWcDd5LorB+RdSIlBw==
"@antv/adjust@~0.1.0": "@antv/adjust@~0.1.0":
version "0.1.1" version "0.1.1"
resolved "https://registry.yarnpkg.com/@antv/adjust/-/adjust-0.1.1.tgz#e263ab0e1a1941a648842fc086cf65a7e3b75e98" resolved "https://registry.yarnpkg.com/@antv/adjust/-/adjust-0.1.1.tgz#e263ab0e1a1941a648842fc086cf65a7e3b75e98"
...@@ -2729,6 +2734,13 @@ ...@@ -2729,6 +2734,13 @@
dependencies: dependencies:
regenerator-runtime "^0.13.2" regenerator-runtime "^0.13.2"
"@babel/runtime@^7.10.1":
version "7.10.2"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.10.2.tgz#d103f21f2602497d38348a32e008637d506db839"
integrity sha512-6sF3uQw2ivImfVIl62RZ7MXhO2tap69WeWK57vAaimT6AZbE4FbqjdEJIN1UqoD6wI6B+1n9UiagafH1sxjOtg==
dependencies:
regenerator-runtime "^0.13.4"
"@babel/runtime@^7.3.1", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.6": "@babel/runtime@^7.3.1", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.6":
version "7.8.3" version "7.8.3"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.3.tgz#0811944f73a6c926bb2ad35e918dcc1bfab279f1" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.3.tgz#0811944f73a6c926bb2ad35e918dcc1bfab279f1"
...@@ -9658,6 +9670,7 @@ commander@2, commander@^2.18.0, commander@^2.19.0, commander@^2.20.0, commander@ ...@@ -9658,6 +9670,7 @@ commander@2, commander@^2.18.0, commander@^2.19.0, commander@^2.20.0, commander@
version "2.20.3" version "2.20.3"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
commander@2.17.x: commander@2.17.x:
version "2.17.1" version "2.17.1"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf"
...@@ -21415,6 +21428,17 @@ rc-align@^3.0.0-rc.0: ...@@ -21415,6 +21428,17 @@ rc-align@^3.0.0-rc.0:
rc-util "^4.12.0" rc-util "^4.12.0"
resize-observer-polyfill "^1.5.1" resize-observer-polyfill "^1.5.1"
rc-align@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/rc-align/-/rc-align-4.0.0.tgz#7a5b212051bdd840b406a6ad547076534a843691"
integrity sha512-0mKKfiZGo7VNiRCmnI4MTOG72pBFF0H08zebqcJyXcAm2hgAqTUtvt4I0pjMHh1WdYg+iQDjowpB5X8mZTN2vw==
dependencies:
"@babel/runtime" "^7.10.1"
classnames "2.x"
dom-align "^1.7.0"
rc-util "^5.0.1"
resize-observer-polyfill "^1.5.1"
rc-animate@2.x: rc-animate@2.x:
version "2.10.1" version "2.10.1"
resolved "https://registry.yarnpkg.com/rc-animate/-/rc-animate-2.10.1.tgz#c0c4faab50e55535e903e66f207e49891ba86d94" resolved "https://registry.yarnpkg.com/rc-animate/-/rc-animate-2.10.1.tgz#c0c4faab50e55535e903e66f207e49891ba86d94"
...@@ -21441,6 +21465,16 @@ rc-animate@^2.10.2: ...@@ -21441,6 +21465,16 @@ rc-animate@^2.10.2:
rc-util "^4.15.3" rc-util "^4.15.3"
react-lifecycles-compat "^3.0.4" react-lifecycles-compat "^3.0.4"
rc-animate@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/rc-animate/-/rc-animate-3.1.0.tgz#051b689c2c7194e4c8ae016d32a0e5f9de6c8baa"
integrity sha512-8FsM+3B1H+0AyTyGggY6JyVldHTs1CyYT8CfTmG/nGHHXlecvSLeICJhcKgRLjUiQlctNnRtB1rwz79cvBVmrw==
dependencies:
"@ant-design/css-animation" "^1.7.2"
classnames "^2.2.6"
raf "^3.4.0"
rc-util "^5.0.1"
rc-cascader@1.0.1: rc-cascader@1.0.1:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/rc-cascader/-/rc-cascader-1.0.1.tgz#770de1e1fa7bd559aabd4d59e525819b8bc809b7" resolved "https://registry.yarnpkg.com/rc-cascader/-/rc-cascader-1.0.1.tgz#770de1e1fa7bd559aabd4d59e525819b8bc809b7"
...@@ -21474,6 +21508,17 @@ rc-slider@8.7.1: ...@@ -21474,6 +21508,17 @@ rc-slider@8.7.1:
shallowequal "^1.1.0" shallowequal "^1.1.0"
warning "^4.0.3" warning "^4.0.3"
rc-slider@9.3.1:
version "9.3.1"
resolved "https://registry.yarnpkg.com/rc-slider/-/rc-slider-9.3.1.tgz#444012f3b4847d592b167a9cee6a1a46779a6ef4"
integrity sha512-c52PWPyrfJWh28K6dixAm0906L3/4MUIxqrNQA4TLnC/Z+cBNycWJUZoJerpwSOE1HdM3XDwixCsmtFc/7aWlQ==
dependencies:
"@babel/runtime" "^7.10.1"
classnames "^2.2.5"
rc-tooltip "^4.0.0"
rc-util "^5.0.0"
shallowequal "^1.1.0"
rc-time-picker@^3.7.3: rc-time-picker@^3.7.3:
version "3.7.3" version "3.7.3"
resolved "https://registry.yarnpkg.com/rc-time-picker/-/rc-time-picker-3.7.3.tgz#65a8de904093250ae9c82b02a4905e0f995e23e2" resolved "https://registry.yarnpkg.com/rc-time-picker/-/rc-time-picker-3.7.3.tgz#65a8de904093250ae9c82b02a4905e0f995e23e2"
...@@ -21495,6 +21540,13 @@ rc-tooltip@^3.7.0: ...@@ -21495,6 +21540,13 @@ rc-tooltip@^3.7.0:
prop-types "^15.5.8" prop-types "^15.5.8"
rc-trigger "^2.2.2" rc-trigger "^2.2.2"
rc-tooltip@^4.0.0:
version "4.2.1"
resolved "https://registry.yarnpkg.com/rc-tooltip/-/rc-tooltip-4.2.1.tgz#c1a2d5017ee03a771a9301c0dfdb46dfdf8fef94"
integrity sha512-oykuaGsHg7RFvPUaxUpxo7ScEqtH61C66x4JUmjlFlSS8gSx2L8JFtfwM1D68SLBxUqGqJObtxj4TED75gQTiA==
dependencies:
rc-trigger "^4.2.1"
rc-trigger@^2.2.0, rc-trigger@^2.2.2: rc-trigger@^2.2.0, rc-trigger@^2.2.2:
version "2.6.5" version "2.6.5"
resolved "https://registry.yarnpkg.com/rc-trigger/-/rc-trigger-2.6.5.tgz#140a857cf28bd0fa01b9aecb1e26a50a700e9885" resolved "https://registry.yarnpkg.com/rc-trigger/-/rc-trigger-2.6.5.tgz#140a857cf28bd0fa01b9aecb1e26a50a700e9885"
...@@ -21520,6 +21572,18 @@ rc-trigger@^4.0.0: ...@@ -21520,6 +21572,18 @@ rc-trigger@^4.0.0:
rc-animate "^2.10.2" rc-animate "^2.10.2"
rc-util "^4.20.0" rc-util "^4.20.0"
rc-trigger@^4.2.1:
version "4.3.0"
resolved "https://registry.yarnpkg.com/rc-trigger/-/rc-trigger-4.3.0.tgz#94ea1851d123359716d1dc3030083c015a92ecfb"
integrity sha512-jnGNzosXmDdivMBjPCYe/AfOXTpJU2/xQ9XukgoXDQEoZq/9lcI1r7eUIfq70WlWpLxlUEqQktiV3hwyy6Nw9g==
dependencies:
"@babel/runtime" "^7.10.1"
classnames "^2.2.6"
raf "^3.4.1"
rc-align "^4.0.0"
rc-animate "^3.0.0"
rc-util "^5.0.1"
rc-util@^4.0.4, rc-util@^4.4.0, rc-util@^4.8.0: rc-util@^4.0.4, rc-util@^4.4.0, rc-util@^4.8.0:
version "4.13.0" version "4.13.0"
resolved "https://registry.yarnpkg.com/rc-util/-/rc-util-4.13.0.tgz#75682e50a934e7d32ada7ee48fc9f5b20fc0143f" resolved "https://registry.yarnpkg.com/rc-util/-/rc-util-4.13.0.tgz#75682e50a934e7d32ada7ee48fc9f5b20fc0143f"
...@@ -21543,6 +21607,14 @@ rc-util@^4.12.0, rc-util@^4.15.3, rc-util@^4.16.1, rc-util@^4.20.0: ...@@ -21543,6 +21607,14 @@ rc-util@^4.12.0, rc-util@^4.15.3, rc-util@^4.16.1, rc-util@^4.20.0:
react-lifecycles-compat "^3.0.4" react-lifecycles-compat "^3.0.4"
shallowequal "^1.1.0" shallowequal "^1.1.0"
rc-util@^5.0.0, rc-util@^5.0.1:
version "5.0.4"
resolved "https://registry.yarnpkg.com/rc-util/-/rc-util-5.0.4.tgz#297bd719b1bd00b3c947a884ab7ef0a07c55dce6"
integrity sha512-cd19RCrE0DJH6UcJ9+V3eaXA/5sNWyVKOKkWl8ZM2OqgNzVb8fv0obf/TkuvSN43tmTsgqY8k7OqpFYHhmef8g==
dependencies:
react-is "^16.12.0"
shallowequal "^1.1.0"
rc@^1.0.1, rc@^1.1.6, rc@^1.2.7: rc@^1.0.1, rc@^1.1.6, rc@^1.2.7:
version "1.2.8" version "1.2.8"
resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment