@instructure/ui-range-input 7.16.0 → 7.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [7.19.0](https://github.com/instructure/instructure-ui/compare/v7.18.0...v7.19.0) (2022-06-03)
7
+
8
+ ### Features
9
+
10
+ - **ui-range-input:** add accessible variant for RangeInput handle ([1300fa9](https://github.com/instructure/instructure-ui/commit/1300fa9))
11
+
12
+ # [7.18.0](https://github.com/instructure/instructure-ui/compare/v7.17.0...v7.18.0) (2022-03-30)
13
+
14
+ **Note:** Version bump only for package @instructure/ui-range-input
15
+
16
+ # [7.17.0](https://github.com/instructure/instructure-ui/compare/v7.16.0...v7.17.0) (2022-03-22)
17
+
18
+ **Note:** Version bump only for package @instructure/ui-range-input
19
+
6
20
  # [7.16.0](https://github.com/instructure/instructure-ui/compare/v7.15.0...v7.16.0) (2022-02-08)
7
21
 
8
22
  **Note:** Version bump only for package @instructure/ui-range-input
@@ -39,20 +39,22 @@ import { addEventListener } from '@instructure/ui-dom-utils';
39
39
  import { uid } from '@instructure/uid';
40
40
  import { themeable } from '@instructure/ui-themeable';
41
41
  import { testable } from '@instructure/ui-testable';
42
- import { omitProps, pickProps } from '@instructure/ui-react-utils';
42
+ import { omitProps, pickProps, deprecated } from '@instructure/ui-react-utils';
43
43
  import { isEdge } from '@instructure/ui-utils';
44
44
  var styles = {
45
- componentId: 'dSsWD',
45
+ componentId: 'eHtOX',
46
46
  template: function template(theme) {
47
- return "\n\n.dSsWD_bGBk{align-items:center;display:flex;justify-content:center;min-width:".concat(theme.minWidth || 'inherit', "}\n\n[dir=rtl] .dSsWD_cwos{direction:rtl}\n\n.dSsWD_cwos{-moz-appearance:none;-webkit-appearance:none;all:initial;animation:none 0s ease 0s 1 normal none running;appearance:none;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:#000;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-span:1;column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;empty-cells:show;flex:auto;float:none;font-family:serif;font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;outline:none;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;tab-size:8;table-layout:auto;text-align:left;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;width:100%;word-spacing:normal;z-index:auto}\n\n.dSsWD_cwos::-moz-range-thumb{-moz-appearance:none;appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";cursor:pointer;height:").concat(theme.handleSize || 'inherit', ";transition:all 0.15s ease-in-out;width:").concat(theme.handleSize || 'inherit', "}\n\n.dSsWD_cwos::-moz-range-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.dSsWD_cwos::-ms-thumb{appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";cursor:pointer;height:").concat(theme.handleSize || 'inherit', ";transition:all 0.15s ease-in-out;width:").concat(theme.handleSize || 'inherit', "}\n\n.dSsWD_cwos::-ms-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.dSsWD_cwos::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";cursor:pointer;height:").concat(theme.handleSize || 'inherit', ";transition:all 0.15s ease-in-out;width:").concat(theme.handleSize || 'inherit', "}\n\n.dSsWD_cwos::-webkit-slider-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.dSsWD_cwos::-webkit-slider-thumb{margin-top:calc(-1*").concat(theme.handleSize || 'inherit', "/4)}\n\n.dSsWD_cwos:active,.dSsWD_cwos:focus{outline:none}\n\n.dSsWD_cwos:active::-moz-range-thumb,.dSsWD_cwos:focus::-moz-range-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.dSsWD_cwos:active::-ms-thumb,.dSsWD_cwos:focus::-ms-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.dSsWD_cwos:active::-webkit-slider-thumb,.dSsWD_cwos:focus::-webkit-slider-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.dSsWD_cwos::-moz-focus-inner,.dSsWD_cwos::-moz-focus-outer{border:0;outline:none}\n\n.dSsWD_cwos::-moz-range-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.dSsWD_cwos::-ms-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.dSsWD_cwos::-webkit-slider-runnable-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.dSsWD_cwos::-ms-track{border-width:1rem 0}\n\n.dSsWD_cwos::-ms-fill-lower,.dSsWD_cwos::-ms-fill-upper{background:#2d3b45;border-radius:0.75rem;border-width:1.5rem 0}\n\n.dSsWD_cwos::-ms-tooltip{display:none}\n\n.dSsWD_cwos::-ms-thumb{-webkit-appearance:none;background:#fff;border:0.25rem solid #2d3b45;border-radius:100%;box-sizing:border-box;height:1.75rem;margin-top:0.0625rem;width:1.75rem}\n\n.dSsWD_fvkP .dSsWD_cwos:focus{outline:0.125rem solid ").concat(theme.handleBackground || 'inherit', "}\n\n.dSsWD_fqzO{all:initial;animation:none 0s ease 0s 1 normal none running;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:#000;color:inherit;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-span:1;column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;display:block;empty-cells:show;float:none;font-family:serif;font-family:").concat(theme.valueFontFamily || 'inherit', ";font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;font-weight:").concat(theme.valueFontWeight || 'inherit', ";height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;tab-size:8;table-layout:auto;text-align:left;text-align:center;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto}\n\n[dir=ltr] .dSsWD_fqzO,[dir=rtl] .dSsWD_fqzO{text-align:center}\n\n.dSsWD_doqw .dSsWD_fqzO{font-size:").concat(theme.valueSmallFontSize || 'inherit', ";line-height:").concat(theme.valueSmallLineHeight || 'inherit', ";padding:").concat(theme.valueSmallPadding || 'inherit', "}\n\n.dSsWD_ycrn .dSsWD_fqzO{font-size:").concat(theme.valueMediumFontSize || 'inherit', ";line-height:").concat(theme.valueMediumLineHeight || 'inherit', ";padding:").concat(theme.valueMediumPadding || 'inherit', "}\n\n.dSsWD_cMDj .dSsWD_fqzO{font-size:").concat(theme.valueLargeFontSize || 'inherit', ";line-height:").concat(theme.valueLargeLineHeight || 'inherit', ";padding:").concat(theme.valueLargePadding || 'inherit', "}");
47
+ return "\n\n.eHtOX_bGBk{align-items:center;display:flex;justify-content:center;min-width:".concat(theme.minWidth || 'inherit', "}\n\n[dir=rtl] .eHtOX_cwos{direction:rtl}\n\n.eHtOX_cwos{-moz-appearance:none;-webkit-appearance:none;all:initial;animation:none 0s ease 0s 1 normal none running;appearance:none;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:#000;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-span:1;column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;empty-cells:show;flex:auto;float:none;font-family:serif;font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;outline:none;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;tab-size:8;table-layout:auto;text-align:left;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;width:100%;word-spacing:normal;z-index:auto}\n\n.eHtOX_cwos::-moz-range-thumb{-moz-appearance:none;appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;cursor:pointer;transition:all 0.15s ease-in-out}\n\n.eHtOX_cVAr .eHtOX_cwos::-moz-range-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";height:").concat(theme.handleSize || 'inherit', ";width:").concat(theme.handleSize || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos::-moz-range-thumb{border-color:").concat(theme.handleBorderColor || 'inherit', ";border-style:solid;border-width:").concat(theme.handleBorderSize || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ";box-sizing:border-box;height:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2);width:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2)}\n\n.eHtOX_cwos::-moz-range-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.eHtOX_cwos::-ms-thumb{appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;cursor:pointer;transition:all 0.15s ease-in-out}\n\n.eHtOX_cVAr .eHtOX_cwos::-ms-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";height:").concat(theme.handleSize || 'inherit', ";width:").concat(theme.handleSize || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos::-ms-thumb{border-color:").concat(theme.handleBorderColor || 'inherit', ";border-style:solid;border-width:").concat(theme.handleBorderSize || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ";box-sizing:border-box;height:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2);width:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2)}\n\n.eHtOX_cwos::-ms-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.eHtOX_cwos::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;cursor:pointer;transition:all 0.15s ease-in-out}\n\n.eHtOX_cVAr .eHtOX_cwos::-webkit-slider-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";height:").concat(theme.handleSize || 'inherit', ";width:").concat(theme.handleSize || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos::-webkit-slider-thumb{border-color:").concat(theme.handleBorderColor || 'inherit', ";border-style:solid;border-width:").concat(theme.handleBorderSize || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ";box-sizing:border-box;height:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2);width:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2)}\n\n.eHtOX_cwos::-webkit-slider-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.eHtOX_cVAr .eHtOX_cwos::-webkit-slider-thumb{margin-top:calc(-1*").concat(theme.handleSize || 'inherit', "/4)}\n\n.eHtOX_eUmu .eHtOX_cwos::-webkit-slider-thumb{margin-top:calc(-1*(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2)/4)}\n\n.eHtOX_cwos:active,.eHtOX_cwos:focus{outline:none}\n\n.eHtOX_cVAr .eHtOX_cwos:active::-moz-range-thumb,.eHtOX_cVAr .eHtOX_cwos:focus::-moz-range-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos:active::-moz-range-thumb,.eHtOX_eUmu .eHtOX_cwos:focus::-moz-range-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ",inset 0 0 0 ").concat(theme.handleFocusInset || 'inherit', " ").concat(theme.handleFocusBackground || 'inherit', ",inset 0 0 0 calc(").concat(theme.handleFocusInset || 'inherit', " + ").concat(theme.handleFocusRingSize || 'inherit', ") ").concat(theme.handleFocusRingColor || 'inherit', "}\n\n.eHtOX_cVAr .eHtOX_cwos:active::-ms-thumb,.eHtOX_cVAr .eHtOX_cwos:focus::-ms-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos:active::-ms-thumb,.eHtOX_eUmu .eHtOX_cwos:focus::-ms-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ",inset 0 0 0 ").concat(theme.handleFocusInset || 'inherit', " ").concat(theme.handleFocusBackground || 'inherit', ",inset 0 0 0 calc(").concat(theme.handleFocusInset || 'inherit', " + ").concat(theme.handleFocusRingSize || 'inherit', ") ").concat(theme.handleFocusRingColor || 'inherit', "}\n\n.eHtOX_cVAr .eHtOX_cwos:active::-webkit-slider-thumb,.eHtOX_cVAr .eHtOX_cwos:focus::-webkit-slider-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos:active::-webkit-slider-thumb,.eHtOX_eUmu .eHtOX_cwos:focus::-webkit-slider-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ",inset 0 0 0 ").concat(theme.handleFocusInset || 'inherit', " ").concat(theme.handleFocusBackground || 'inherit', ",inset 0 0 0 calc(").concat(theme.handleFocusInset || 'inherit', " + ").concat(theme.handleFocusRingSize || 'inherit', ") ").concat(theme.handleFocusRingColor || 'inherit', "}\n\n.eHtOX_cwos::-moz-focus-inner,.eHtOX_cwos::-moz-focus-outer{border:0;outline:none}\n\n.eHtOX_cwos::-moz-range-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.eHtOX_cwos::-ms-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.eHtOX_cwos::-webkit-slider-runnable-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.eHtOX_cwos::-ms-track{border-width:1rem 0}\n\n.eHtOX_cwos::-ms-fill-lower,.eHtOX_cwos::-ms-fill-upper{background:#2d3b45;border-radius:0.75rem;border-width:1.5rem 0}\n\n.eHtOX_cwos::-ms-tooltip{display:none}\n\n.eHtOX_cwos::-ms-thumb{-webkit-appearance:none;background:#fff;border:0.25rem solid #2d3b45;border-radius:100%;box-sizing:border-box;height:1.75rem;margin-top:0.0625rem;width:1.75rem}\n\n.eHtOX_fvkP .eHtOX_cwos:focus{outline:0.125rem solid ").concat(theme.handleBackground || 'inherit', "}\n\n.eHtOX_fqzO{all:initial;animation:none 0s ease 0s 1 normal none running;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:#000;color:inherit;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-span:1;column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;display:block;empty-cells:show;float:none;font-family:serif;font-family:").concat(theme.valueFontFamily || 'inherit', ";font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;font-weight:").concat(theme.valueFontWeight || 'inherit', ";height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;tab-size:8;table-layout:auto;text-align:left;text-align:center;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto}\n\n[dir=ltr] .eHtOX_fqzO,[dir=rtl] .eHtOX_fqzO{text-align:center}\n\n.eHtOX_doqw .eHtOX_fqzO{font-size:").concat(theme.valueSmallFontSize || 'inherit', ";line-height:").concat(theme.valueSmallLineHeight || 'inherit', ";padding:").concat(theme.valueSmallPadding || 'inherit', "}\n\n.eHtOX_ycrn .eHtOX_fqzO{font-size:").concat(theme.valueMediumFontSize || 'inherit', ";line-height:").concat(theme.valueMediumLineHeight || 'inherit', ";padding:").concat(theme.valueMediumPadding || 'inherit', "}\n\n.eHtOX_cMDj .eHtOX_fqzO{font-size:").concat(theme.valueLargeFontSize || 'inherit', ";line-height:").concat(theme.valueLargeLineHeight || 'inherit', ";padding:").concat(theme.valueLargePadding || 'inherit', "}");
48
48
  },
49
- 'root': 'dSsWD_bGBk',
50
- 'input': 'dSsWD_cwos',
51
- 'edge16Up': 'dSsWD_fvkP',
52
- 'value': 'dSsWD_fqzO',
53
- 'small': 'dSsWD_doqw',
54
- 'medium': 'dSsWD_ycrn',
55
- 'large': 'dSsWD_cMDj'
49
+ 'root': 'eHtOX_bGBk',
50
+ 'input': 'eHtOX_cwos',
51
+ 'thumbVariant-deprecated': 'eHtOX_cVAr',
52
+ 'thumbVariant-accessible': 'eHtOX_eUmu',
53
+ 'edge16Up': 'eHtOX_fvkP',
54
+ 'value': 'eHtOX_fqzO',
55
+ 'small': 'eHtOX_doqw',
56
+ 'medium': 'eHtOX_ycrn',
57
+ 'large': 'eHtOX_cMDj'
56
58
  };
57
59
  import theme from "./theme.js";
58
60
  /**
@@ -149,9 +151,10 @@ var RangeInput = (_dec = testable(), _dec2 = themeable(theme, styles), _dec(_cla
149
151
  formatValue = _this$props2.formatValue,
150
152
  size = _this$props2.size,
151
153
  disabled = _this$props2.disabled,
152
- readOnly = _this$props2.readOnly;
154
+ readOnly = _this$props2.readOnly,
155
+ thumbVariant = _this$props2.thumbVariant;
153
156
  var props = omitProps(this.props, RangeInput.propTypes);
154
- var classes = (_classes = {}, _defineProperty(_classes, styles.root, true), _defineProperty(_classes, styles[size], size), _defineProperty(_classes, styles.edge16Up, isEdge), _classes);
157
+ var classes = (_classes = {}, _defineProperty(_classes, styles.root, true), _defineProperty(_classes, styles[size], size), _defineProperty(_classes, styles["thumbVariant-".concat(thumbVariant)], thumbVariant), _defineProperty(_classes, styles.edge16Up, isEdge), _classes);
155
158
  /* eslint-disable jsx-a11y/no-redundant-roles */
156
159
 
157
160
  return /*#__PURE__*/React.createElement(FormField, Object.assign({}, pickProps(this.props, FormField.propTypes), {
@@ -238,7 +241,10 @@ var RangeInput = (_dec = testable(), _dec2 = themeable(theme, styles), _dec(_cla
238
241
  formatValue: PropTypes.func,
239
242
  inline: PropTypes.bool,
240
243
  disabled: PropTypes.bool,
241
- readOnly: PropTypes.bool
244
+ readOnly: PropTypes.bool,
245
+ // The thumbVariant prop got deprecated in V8, and is backported to V7.
246
+ // Will be removed in V9.
247
+ thumbVariant: deprecated.deprecatePropValues(PropTypes.oneOf(['deprecated', 'accessible']), ['deprecated'], 'The `deprecated` variant is not fully accessible and will be removed in V9. The connected theme variables will be removed as well: `handleShadowColor`, `handleFocusOutlineColor`, `handleFocusOutlineWidth`. Please use the `accessible` variant.')
242
248
  }, _class2.defaultProps = {
243
249
  step: 1,
244
250
  formatValue: function formatValue(val) {
@@ -256,7 +262,10 @@ var RangeInput = (_dec = testable(), _dec2 = themeable(theme, styles), _dec(_cla
256
262
  defaultValue: void 0,
257
263
  value: void 0,
258
264
  onChange: void 0,
259
- messages: void 0
265
+ messages: void 0,
266
+ // The thumbVariant prop got deprecated in V8, and is backported to V7.
267
+ // Will be removed in V9.
268
+ thumbVariant: 'deprecated'
260
269
  }, _temp)) || _class) || _class);
261
270
  export default RangeInput;
262
271
  export { RangeInput };
@@ -24,6 +24,7 @@
24
24
  import { alpha, darken } from '@instructure/ui-color-utils';
25
25
  export default function generator(_ref) {
26
26
  var colors = _ref.colors,
27
+ borders = _ref.borders,
27
28
  typography = _ref.typography,
28
29
  spacing = _ref.spacing,
29
30
  forms = _ref.forms;
@@ -31,9 +32,16 @@ export default function generator(_ref) {
31
32
  minWidth: '12.5rem',
32
33
  handleSize: '1.5rem',
33
34
  handleBackground: colors.backgroundBrand,
34
- handleShadowColor: darken(colors.borderBrand, 15),
35
- handleHoverBackground: colors.backgroundBrand,
35
+ handleBorderColor: colors.borderLightest,
36
+ handleBorderSize: borders.widthMedium,
37
+ handleShadow: '0 0.0625rem 0.125rem rgba(0, 0, 0, .2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)',
38
+ handleFocusInset: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
39
+ handleFocusRingSize: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
40
+ handleFocusRingColor: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
36
41
  handleFocusBackground: colors.backgroundBrand,
42
+ handleHoverBackground: colors.backgroundBrand,
43
+ // Deprecated, remove with "deprecated" thumbVariant
44
+ handleShadowColor: darken(colors.borderBrand, 15),
37
45
  handleFocusOutlineColor: alpha(colors.borderBrand, 40),
38
46
  handleFocusOutlineWidth: '0.75em',
39
47
  trackBackground: colors.backgroundDark,
@@ -55,10 +63,11 @@ export default function generator(_ref) {
55
63
  generator.canvas = function (variables) {
56
64
  return {
57
65
  handleBackground: variables['ic-brand-primary'],
58
- handleShadowColor: darken(variables['ic-brand-primary'], 15),
59
- handleFocusOutlineColor: alpha(variables['ic-brand-primary'], 40),
60
66
  handleHoverBackground: variables['ic-brand-primary'],
61
67
  handleFocusBackground: variables['ic-brand-primary'],
62
- valueBackground: variables['ic-brand-font-color-dark']
68
+ valueBackground: variables['ic-brand-font-color-dark'],
69
+ // Deprecated, remove with "deprecated" thumbVariant
70
+ handleShadowColor: darken(variables['ic-brand-primary'], 15),
71
+ handleFocusOutlineColor: alpha(variables['ic-brand-primary'], 40)
63
72
  };
64
73
  };
@@ -45,6 +45,8 @@ var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
45
45
 
46
46
  var _pickProps = require("@instructure/ui-react-utils/lib/pickProps.js");
47
47
 
48
+ var _deprecated = require("@instructure/ui-react-utils/lib/deprecated.js");
49
+
48
50
  var _isEdge = require("@instructure/ui-utils/lib/isEdge.js");
49
51
 
50
52
  var _theme = _interopRequireDefault(require("./theme.js"));
@@ -52,17 +54,19 @@ var _theme = _interopRequireDefault(require("./theme.js"));
52
54
  var _dec, _dec2, _class, _class2, _temp;
53
55
 
54
56
  var styles = {
55
- componentId: 'dSsWD',
57
+ componentId: 'eHtOX',
56
58
  template: function template(theme) {
57
- return "\n\n.dSsWD_bGBk{align-items:center;display:flex;justify-content:center;min-width:".concat(theme.minWidth || 'inherit', "}\n\n[dir=rtl] .dSsWD_cwos{direction:rtl}\n\n.dSsWD_cwos{-moz-appearance:none;-webkit-appearance:none;all:initial;animation:none 0s ease 0s 1 normal none running;appearance:none;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:#000;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-span:1;column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;empty-cells:show;flex:auto;float:none;font-family:serif;font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;outline:none;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;tab-size:8;table-layout:auto;text-align:left;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;width:100%;word-spacing:normal;z-index:auto}\n\n.dSsWD_cwos::-moz-range-thumb{-moz-appearance:none;appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";cursor:pointer;height:").concat(theme.handleSize || 'inherit', ";transition:all 0.15s ease-in-out;width:").concat(theme.handleSize || 'inherit', "}\n\n.dSsWD_cwos::-moz-range-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.dSsWD_cwos::-ms-thumb{appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";cursor:pointer;height:").concat(theme.handleSize || 'inherit', ";transition:all 0.15s ease-in-out;width:").concat(theme.handleSize || 'inherit', "}\n\n.dSsWD_cwos::-ms-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.dSsWD_cwos::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";cursor:pointer;height:").concat(theme.handleSize || 'inherit', ";transition:all 0.15s ease-in-out;width:").concat(theme.handleSize || 'inherit', "}\n\n.dSsWD_cwos::-webkit-slider-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.dSsWD_cwos::-webkit-slider-thumb{margin-top:calc(-1*").concat(theme.handleSize || 'inherit', "/4)}\n\n.dSsWD_cwos:active,.dSsWD_cwos:focus{outline:none}\n\n.dSsWD_cwos:active::-moz-range-thumb,.dSsWD_cwos:focus::-moz-range-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.dSsWD_cwos:active::-ms-thumb,.dSsWD_cwos:focus::-ms-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.dSsWD_cwos:active::-webkit-slider-thumb,.dSsWD_cwos:focus::-webkit-slider-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.dSsWD_cwos::-moz-focus-inner,.dSsWD_cwos::-moz-focus-outer{border:0;outline:none}\n\n.dSsWD_cwos::-moz-range-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.dSsWD_cwos::-ms-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.dSsWD_cwos::-webkit-slider-runnable-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.dSsWD_cwos::-ms-track{border-width:1rem 0}\n\n.dSsWD_cwos::-ms-fill-lower,.dSsWD_cwos::-ms-fill-upper{background:#2d3b45;border-radius:0.75rem;border-width:1.5rem 0}\n\n.dSsWD_cwos::-ms-tooltip{display:none}\n\n.dSsWD_cwos::-ms-thumb{-webkit-appearance:none;background:#fff;border:0.25rem solid #2d3b45;border-radius:100%;box-sizing:border-box;height:1.75rem;margin-top:0.0625rem;width:1.75rem}\n\n.dSsWD_fvkP .dSsWD_cwos:focus{outline:0.125rem solid ").concat(theme.handleBackground || 'inherit', "}\n\n.dSsWD_fqzO{all:initial;animation:none 0s ease 0s 1 normal none running;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:#000;color:inherit;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-span:1;column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;display:block;empty-cells:show;float:none;font-family:serif;font-family:").concat(theme.valueFontFamily || 'inherit', ";font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;font-weight:").concat(theme.valueFontWeight || 'inherit', ";height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;tab-size:8;table-layout:auto;text-align:left;text-align:center;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto}\n\n[dir=ltr] .dSsWD_fqzO,[dir=rtl] .dSsWD_fqzO{text-align:center}\n\n.dSsWD_doqw .dSsWD_fqzO{font-size:").concat(theme.valueSmallFontSize || 'inherit', ";line-height:").concat(theme.valueSmallLineHeight || 'inherit', ";padding:").concat(theme.valueSmallPadding || 'inherit', "}\n\n.dSsWD_ycrn .dSsWD_fqzO{font-size:").concat(theme.valueMediumFontSize || 'inherit', ";line-height:").concat(theme.valueMediumLineHeight || 'inherit', ";padding:").concat(theme.valueMediumPadding || 'inherit', "}\n\n.dSsWD_cMDj .dSsWD_fqzO{font-size:").concat(theme.valueLargeFontSize || 'inherit', ";line-height:").concat(theme.valueLargeLineHeight || 'inherit', ";padding:").concat(theme.valueLargePadding || 'inherit', "}");
59
+ return "\n\n.eHtOX_bGBk{align-items:center;display:flex;justify-content:center;min-width:".concat(theme.minWidth || 'inherit', "}\n\n[dir=rtl] .eHtOX_cwos{direction:rtl}\n\n.eHtOX_cwos{-moz-appearance:none;-webkit-appearance:none;all:initial;animation:none 0s ease 0s 1 normal none running;appearance:none;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:#000;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-span:1;column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;empty-cells:show;flex:auto;float:none;font-family:serif;font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;outline:none;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;tab-size:8;table-layout:auto;text-align:left;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;width:100%;word-spacing:normal;z-index:auto}\n\n.eHtOX_cwos::-moz-range-thumb{-moz-appearance:none;appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;cursor:pointer;transition:all 0.15s ease-in-out}\n\n.eHtOX_cVAr .eHtOX_cwos::-moz-range-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";height:").concat(theme.handleSize || 'inherit', ";width:").concat(theme.handleSize || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos::-moz-range-thumb{border-color:").concat(theme.handleBorderColor || 'inherit', ";border-style:solid;border-width:").concat(theme.handleBorderSize || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ";box-sizing:border-box;height:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2);width:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2)}\n\n.eHtOX_cwos::-moz-range-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.eHtOX_cwos::-ms-thumb{appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;cursor:pointer;transition:all 0.15s ease-in-out}\n\n.eHtOX_cVAr .eHtOX_cwos::-ms-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";height:").concat(theme.handleSize || 'inherit', ";width:").concat(theme.handleSize || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos::-ms-thumb{border-color:").concat(theme.handleBorderColor || 'inherit', ";border-style:solid;border-width:").concat(theme.handleBorderSize || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ";box-sizing:border-box;height:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2);width:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2)}\n\n.eHtOX_cwos::-ms-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.eHtOX_cwos::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:").concat(theme.handleBackground || 'inherit', ";border-radius:50%;cursor:pointer;transition:all 0.15s ease-in-out}\n\n.eHtOX_cVAr .eHtOX_cwos::-webkit-slider-thumb{box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ";height:").concat(theme.handleSize || 'inherit', ";width:").concat(theme.handleSize || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos::-webkit-slider-thumb{border-color:").concat(theme.handleBorderColor || 'inherit', ";border-style:solid;border-width:").concat(theme.handleBorderSize || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ";box-sizing:border-box;height:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2);width:calc(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2)}\n\n.eHtOX_cwos::-webkit-slider-thumb:hover{background:").concat(theme.handleHoverBackground || 'inherit', "}\n\n.eHtOX_cVAr .eHtOX_cwos::-webkit-slider-thumb{margin-top:calc(-1*").concat(theme.handleSize || 'inherit', "/4)}\n\n.eHtOX_eUmu .eHtOX_cwos::-webkit-slider-thumb{margin-top:calc(-1*(").concat(theme.handleSize || 'inherit', " + ").concat(theme.handleBorderSize || 'inherit', "*2)/4)}\n\n.eHtOX_cwos:active,.eHtOX_cwos:focus{outline:none}\n\n.eHtOX_cVAr .eHtOX_cwos:active::-moz-range-thumb,.eHtOX_cVAr .eHtOX_cwos:focus::-moz-range-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos:active::-moz-range-thumb,.eHtOX_eUmu .eHtOX_cwos:focus::-moz-range-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ",inset 0 0 0 ").concat(theme.handleFocusInset || 'inherit', " ").concat(theme.handleFocusBackground || 'inherit', ",inset 0 0 0 calc(").concat(theme.handleFocusInset || 'inherit', " + ").concat(theme.handleFocusRingSize || 'inherit', ") ").concat(theme.handleFocusRingColor || 'inherit', "}\n\n.eHtOX_cVAr .eHtOX_cwos:active::-ms-thumb,.eHtOX_cVAr .eHtOX_cwos:focus::-ms-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos:active::-ms-thumb,.eHtOX_eUmu .eHtOX_cwos:focus::-ms-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ",inset 0 0 0 ").concat(theme.handleFocusInset || 'inherit', " ").concat(theme.handleFocusBackground || 'inherit', ",inset 0 0 0 calc(").concat(theme.handleFocusInset || 'inherit', " + ").concat(theme.handleFocusRingSize || 'inherit', ") ").concat(theme.handleFocusRingColor || 'inherit', "}\n\n.eHtOX_cVAr .eHtOX_cwos:active::-webkit-slider-thumb,.eHtOX_cVAr .eHtOX_cwos:focus::-webkit-slider-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:0 0.0625rem 0 ").concat(theme.handleShadowColor || 'inherit', ",0 0 0 ").concat(theme.handleFocusOutlineWidth || 'inherit', " ").concat(theme.handleFocusOutlineColor || 'inherit', "}\n\n.eHtOX_eUmu .eHtOX_cwos:active::-webkit-slider-thumb,.eHtOX_eUmu .eHtOX_cwos:focus::-webkit-slider-thumb{background:").concat(theme.handleFocusBackground || 'inherit', ";box-shadow:").concat(theme.handleShadow || 'inherit', ",inset 0 0 0 ").concat(theme.handleFocusInset || 'inherit', " ").concat(theme.handleFocusBackground || 'inherit', ",inset 0 0 0 calc(").concat(theme.handleFocusInset || 'inherit', " + ").concat(theme.handleFocusRingSize || 'inherit', ") ").concat(theme.handleFocusRingColor || 'inherit', "}\n\n.eHtOX_cwos::-moz-focus-inner,.eHtOX_cwos::-moz-focus-outer{border:0;outline:none}\n\n.eHtOX_cwos::-moz-range-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.eHtOX_cwos::-ms-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.eHtOX_cwos::-webkit-slider-runnable-track{background:").concat(theme.trackBackground || 'inherit', ";border-color:transparent;border-radius:0.312em;color:transparent;cursor:pointer;height:calc(").concat(theme.handleSize || 'inherit', "/2)}\n\n.eHtOX_cwos::-ms-track{border-width:1rem 0}\n\n.eHtOX_cwos::-ms-fill-lower,.eHtOX_cwos::-ms-fill-upper{background:#2d3b45;border-radius:0.75rem;border-width:1.5rem 0}\n\n.eHtOX_cwos::-ms-tooltip{display:none}\n\n.eHtOX_cwos::-ms-thumb{-webkit-appearance:none;background:#fff;border:0.25rem solid #2d3b45;border-radius:100%;box-sizing:border-box;height:1.75rem;margin-top:0.0625rem;width:1.75rem}\n\n.eHtOX_fvkP .eHtOX_cwos:focus{outline:0.125rem solid ").concat(theme.handleBackground || 'inherit', "}\n\n.eHtOX_fqzO{all:initial;animation:none 0s ease 0s 1 normal none running;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:#000;color:inherit;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-span:1;column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;display:block;empty-cells:show;float:none;font-family:serif;font-family:").concat(theme.valueFontFamily || 'inherit', ";font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;font-weight:").concat(theme.valueFontWeight || 'inherit', ";height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;tab-size:8;table-layout:auto;text-align:left;text-align:center;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto}\n\n[dir=ltr] .eHtOX_fqzO,[dir=rtl] .eHtOX_fqzO{text-align:center}\n\n.eHtOX_doqw .eHtOX_fqzO{font-size:").concat(theme.valueSmallFontSize || 'inherit', ";line-height:").concat(theme.valueSmallLineHeight || 'inherit', ";padding:").concat(theme.valueSmallPadding || 'inherit', "}\n\n.eHtOX_ycrn .eHtOX_fqzO{font-size:").concat(theme.valueMediumFontSize || 'inherit', ";line-height:").concat(theme.valueMediumLineHeight || 'inherit', ";padding:").concat(theme.valueMediumPadding || 'inherit', "}\n\n.eHtOX_cMDj .eHtOX_fqzO{font-size:").concat(theme.valueLargeFontSize || 'inherit', ";line-height:").concat(theme.valueLargeLineHeight || 'inherit', ";padding:").concat(theme.valueLargePadding || 'inherit', "}");
58
60
  },
59
- 'root': 'dSsWD_bGBk',
60
- 'input': 'dSsWD_cwos',
61
- 'edge16Up': 'dSsWD_fvkP',
62
- 'value': 'dSsWD_fqzO',
63
- 'small': 'dSsWD_doqw',
64
- 'medium': 'dSsWD_ycrn',
65
- 'large': 'dSsWD_cMDj'
61
+ 'root': 'eHtOX_bGBk',
62
+ 'input': 'eHtOX_cwos',
63
+ 'thumbVariant-deprecated': 'eHtOX_cVAr',
64
+ 'thumbVariant-accessible': 'eHtOX_eUmu',
65
+ 'edge16Up': 'eHtOX_fvkP',
66
+ 'value': 'eHtOX_fqzO',
67
+ 'small': 'eHtOX_doqw',
68
+ 'medium': 'eHtOX_ycrn',
69
+ 'large': 'eHtOX_cMDj'
66
70
  };
67
71
 
68
72
  /**
@@ -157,9 +161,10 @@ var RangeInput = (_dec = (0, _testable.testable)(), _dec2 = (0, _themeable.theme
157
161
  formatValue = _this$props2.formatValue,
158
162
  size = _this$props2.size,
159
163
  disabled = _this$props2.disabled,
160
- readOnly = _this$props2.readOnly;
164
+ readOnly = _this$props2.readOnly,
165
+ thumbVariant = _this$props2.thumbVariant;
161
166
  var props = (0, _omitProps.omitProps)(this.props, RangeInput.propTypes);
162
- var classes = (_classes = {}, (0, _defineProperty2.default)(_classes, styles.root, true), (0, _defineProperty2.default)(_classes, styles[size], size), (0, _defineProperty2.default)(_classes, styles.edge16Up, _isEdge.isEdge), _classes);
167
+ var classes = (_classes = {}, (0, _defineProperty2.default)(_classes, styles.root, true), (0, _defineProperty2.default)(_classes, styles[size], size), (0, _defineProperty2.default)(_classes, styles["thumbVariant-".concat(thumbVariant)], thumbVariant), (0, _defineProperty2.default)(_classes, styles.edge16Up, _isEdge.isEdge), _classes);
163
168
  /* eslint-disable jsx-a11y/no-redundant-roles */
164
169
 
165
170
  return /*#__PURE__*/_react.default.createElement(_FormField.FormField, Object.assign({}, (0, _pickProps.pickProps)(this.props, _FormField.FormField.propTypes), {
@@ -245,7 +250,10 @@ var RangeInput = (_dec = (0, _testable.testable)(), _dec2 = (0, _themeable.theme
245
250
  formatValue: _propTypes.default.func,
246
251
  inline: _propTypes.default.bool,
247
252
  disabled: _propTypes.default.bool,
248
- readOnly: _propTypes.default.bool
253
+ readOnly: _propTypes.default.bool,
254
+ // The thumbVariant prop got deprecated in V8, and is backported to V7.
255
+ // Will be removed in V9.
256
+ thumbVariant: _deprecated.deprecated.deprecatePropValues(_propTypes.default.oneOf(['deprecated', 'accessible']), ['deprecated'], 'The `deprecated` variant is not fully accessible and will be removed in V9. The connected theme variables will be removed as well: `handleShadowColor`, `handleFocusOutlineColor`, `handleFocusOutlineWidth`. Please use the `accessible` variant.')
249
257
  }, _class2.defaultProps = {
250
258
  step: 1,
251
259
  formatValue: function formatValue(val) {
@@ -263,7 +271,10 @@ var RangeInput = (_dec = (0, _testable.testable)(), _dec2 = (0, _themeable.theme
263
271
  defaultValue: void 0,
264
272
  value: void 0,
265
273
  onChange: void 0,
266
- messages: void 0
274
+ messages: void 0,
275
+ // The thumbVariant prop got deprecated in V8, and is backported to V7.
276
+ // Will be removed in V9.
277
+ thumbVariant: 'deprecated'
267
278
  }, _temp)) || _class) || _class);
268
279
  exports.RangeInput = RangeInput;
269
280
  var _default = RangeInput;
@@ -34,6 +34,7 @@ var _darken = require("@instructure/ui-color-utils/lib/darken.js");
34
34
  */
35
35
  function generator(_ref) {
36
36
  var colors = _ref.colors,
37
+ borders = _ref.borders,
37
38
  typography = _ref.typography,
38
39
  spacing = _ref.spacing,
39
40
  forms = _ref.forms;
@@ -41,9 +42,16 @@ function generator(_ref) {
41
42
  minWidth: '12.5rem',
42
43
  handleSize: '1.5rem',
43
44
  handleBackground: colors.backgroundBrand,
44
- handleShadowColor: (0, _darken.darken)(colors.borderBrand, 15),
45
- handleHoverBackground: colors.backgroundBrand,
45
+ handleBorderColor: colors.borderLightest,
46
+ handleBorderSize: borders.widthMedium,
47
+ handleShadow: '0 0.0625rem 0.125rem rgba(0, 0, 0, .2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)',
48
+ handleFocusInset: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
49
+ handleFocusRingSize: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
50
+ handleFocusRingColor: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
46
51
  handleFocusBackground: colors.backgroundBrand,
52
+ handleHoverBackground: colors.backgroundBrand,
53
+ // Deprecated, remove with "deprecated" thumbVariant
54
+ handleShadowColor: (0, _darken.darken)(colors.borderBrand, 15),
47
55
  handleFocusOutlineColor: (0, _alpha.alpha)(colors.borderBrand, 40),
48
56
  handleFocusOutlineWidth: '0.75em',
49
57
  trackBackground: colors.backgroundDark,
@@ -65,10 +73,11 @@ function generator(_ref) {
65
73
  generator.canvas = function (variables) {
66
74
  return {
67
75
  handleBackground: variables['ic-brand-primary'],
68
- handleShadowColor: (0, _darken.darken)(variables['ic-brand-primary'], 15),
69
- handleFocusOutlineColor: (0, _alpha.alpha)(variables['ic-brand-primary'], 40),
70
76
  handleHoverBackground: variables['ic-brand-primary'],
71
77
  handleFocusBackground: variables['ic-brand-primary'],
72
- valueBackground: variables['ic-brand-font-color-dark']
78
+ valueBackground: variables['ic-brand-font-color-dark'],
79
+ // Deprecated, remove with "deprecated" thumbVariant
80
+ handleShadowColor: (0, _darken.darken)(variables['ic-brand-primary'], 15),
81
+ handleFocusOutlineColor: (0, _alpha.alpha)(variables['ic-brand-primary'], 40)
73
82
  };
74
83
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-range-input",
3
- "version": "7.16.0",
3
+ "version": "7.19.0",
4
4
  "description": "A styled HTML range input",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,24 +24,24 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.9.2",
27
- "@instructure/console": "^7.16.0",
28
- "@instructure/ui-color-utils": "^7.16.0",
29
- "@instructure/ui-dom-utils": "^7.16.0",
30
- "@instructure/ui-form-field": "^7.16.0",
31
- "@instructure/ui-prop-types": "^7.16.0",
32
- "@instructure/ui-react-utils": "^7.16.0",
33
- "@instructure/ui-testable": "^7.16.0",
34
- "@instructure/ui-themeable": "^7.16.0",
35
- "@instructure/ui-utils": "^7.16.0",
36
- "@instructure/ui-view": "^7.16.0",
37
- "@instructure/uid": "^7.16.0",
27
+ "@instructure/console": "^7.19.0",
28
+ "@instructure/ui-color-utils": "^7.19.0",
29
+ "@instructure/ui-dom-utils": "^7.19.0",
30
+ "@instructure/ui-form-field": "^7.19.0",
31
+ "@instructure/ui-prop-types": "^7.19.0",
32
+ "@instructure/ui-react-utils": "^7.19.0",
33
+ "@instructure/ui-testable": "^7.19.0",
34
+ "@instructure/ui-themeable": "^7.19.0",
35
+ "@instructure/ui-utils": "^7.19.0",
36
+ "@instructure/ui-view": "^7.19.0",
37
+ "@instructure/uid": "^7.19.0",
38
38
  "classnames": "^2",
39
39
  "prop-types": "^15"
40
40
  },
41
41
  "devDependencies": {
42
- "@instructure/ui-babel-preset": "^7.16.0",
43
- "@instructure/ui-test-locator": "^7.16.0",
44
- "@instructure/ui-test-utils": "^7.16.0"
42
+ "@instructure/ui-babel-preset": "^7.19.0",
43
+ "@instructure/ui-test-locator": "^7.19.0",
44
+ "@instructure/ui-test-utils": "^7.19.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": "^16.8"
@@ -6,7 +6,74 @@ An html5 range input/slider component.
6
6
 
7
7
  ```js
8
8
  ---
9
+ render: false
9
10
  example: true
10
11
  ---
11
- <RangeInput label="Grading range" defaultValue={50} max={100} min={0} />
12
+ class Example extends React.Component {
13
+ state = {
14
+ size: "small",
15
+ thumbVariant: "accessible",
16
+ }
17
+
18
+ handleSizeChange = (event, value) => {
19
+ this.setState({ size: value })
20
+ }
21
+
22
+ handleThumbVariantChange = (event, value) => {
23
+ this.setState({ thumbVariant: value })
24
+ }
25
+
26
+ render() {
27
+ return (
28
+ <div>
29
+ <View
30
+ as="div"
31
+ padding="medium"
32
+ background="primary"
33
+ >
34
+ <RangeInput
35
+ label="Grading range"
36
+ defaultValue={30}
37
+ max={100}
38
+ min={0}
39
+ size={this.state.size}
40
+ thumbVariant={this.state.thumbVariant}
41
+ />
42
+ </View>
43
+
44
+ <View as="div" margin='medium 0 0'>
45
+ <FormFieldGroup
46
+ description={
47
+ <ScreenReaderContent>RangeInput Example Settings</ScreenReaderContent>
48
+ }
49
+ layout='columns'
50
+ vAlign='top'
51
+ >
52
+ <RadioInputGroup
53
+ onChange={this.handleSizeChange}
54
+ name="labelSize"
55
+ value={this.state.size}
56
+ description="Label size"
57
+ >
58
+ <RadioInput label="small" value="small" />
59
+ <RadioInput label="medium" value="medium" />
60
+ <RadioInput label="large" value="large" />
61
+ </RadioInputGroup>
62
+
63
+ <RadioInputGroup
64
+ onChange={this.handleThumbVariantChange}
65
+ name="thumbVariant"
66
+ value={this.state.thumbVariant}
67
+ description="Thumb variant"
68
+ >
69
+ <RadioInput label="accessible" value="accessible" />
70
+ <RadioInput label="deprecated" value="deprecated" />
71
+ </RadioInputGroup>
72
+ </FormFieldGroup>
73
+ </View>
74
+ </div>
75
+ )
76
+ }
77
+ }
78
+ render(<Example />)
12
79
  ```
@@ -33,7 +33,7 @@ import { addEventListener } from '@instructure/ui-dom-utils'
33
33
  import { uid } from '@instructure/uid'
34
34
  import { themeable } from '@instructure/ui-themeable'
35
35
  import { testable } from '@instructure/ui-testable'
36
- import { omitProps, pickProps } from '@instructure/ui-react-utils'
36
+ import { omitProps, pickProps, deprecated } from '@instructure/ui-react-utils'
37
37
  import { isEdge } from '@instructure/ui-utils'
38
38
 
39
39
  import styles from './styles.css'
@@ -79,7 +79,15 @@ class RangeInput extends Component {
79
79
  formatValue: PropTypes.func,
80
80
  inline: PropTypes.bool,
81
81
  disabled: PropTypes.bool,
82
- readOnly: PropTypes.bool
82
+ readOnly: PropTypes.bool,
83
+
84
+ // The thumbVariant prop got deprecated in V8, and is backported to V7.
85
+ // Will be removed in V9.
86
+ thumbVariant: deprecated.deprecatePropValues(
87
+ PropTypes.oneOf(['deprecated', 'accessible']),
88
+ ['deprecated'],
89
+ 'The `deprecated` variant is not fully accessible and will be removed in V9. The connected theme variables will be removed as well: `handleShadowColor`, `handleFocusOutlineColor`, `handleFocusOutlineWidth`. Please use the `accessible` variant.'
90
+ )
83
91
  }
84
92
 
85
93
  static defaultProps = {
@@ -97,7 +105,11 @@ class RangeInput extends Component {
97
105
  defaultValue: undefined,
98
106
  value: undefined,
99
107
  onChange: undefined,
100
- messages: undefined
108
+ messages: undefined,
109
+
110
+ // The thumbVariant prop got deprecated in V8, and is backported to V7.
111
+ // Will be removed in V9.
112
+ thumbVariant: 'deprecated'
101
113
  }
102
114
 
103
115
  constructor(props) {
@@ -186,13 +198,14 @@ class RangeInput extends Component {
186
198
  }
187
199
 
188
200
  render() {
189
- const { formatValue, size, disabled, readOnly } = this.props
201
+ const { formatValue, size, disabled, readOnly, thumbVariant } = this.props
190
202
 
191
203
  const props = omitProps(this.props, RangeInput.propTypes)
192
204
 
193
205
  const classes = {
194
206
  [styles.root]: true,
195
207
  [styles[size]]: size,
208
+ [styles[`thumbVariant-${thumbVariant}`]]: thumbVariant,
196
209
  [styles.edge16Up]: isEdge
197
210
  }
198
211
 
@@ -27,10 +27,25 @@
27
27
  border-radius: 50%;
28
28
  cursor: pointer;
29
29
  transition: all 0.15s ease-in-out;
30
- width: var(--handleSize);
31
- height: var(--handleSize);
32
30
  background: var(--handleBackground);
33
- box-shadow: 0 0.0625rem 0 var(--handleShadowColor);
31
+
32
+ /* stylelint-disable max-nesting-depth */
33
+ .thumbVariant-deprecated & {
34
+ width: var(--handleSize);
35
+ height: var(--handleSize);
36
+ box-shadow: 0 0.0625rem 0 var(--handleShadowColor);
37
+ }
38
+
39
+ .thumbVariant-accessible & {
40
+ width: calc(var(--handleSize) + (var(--handleBorderSize) * 2));
41
+ height: calc(var(--handleSize) + (var(--handleBorderSize) * 2));
42
+ border-width: var(--handleBorderSize);
43
+ border-color: var(--handleBorderColor);
44
+ border-style: solid;
45
+ box-sizing: border-box;
46
+ box-shadow: var(--handleShadow);
47
+ }
48
+ /* stylelint-enable max-nesting-depth */
34
49
 
35
50
  &:hover {
36
51
  background: var(--handleHoverBackground);
@@ -38,19 +53,37 @@
38
53
  }
39
54
 
40
55
  &::-webkit-slider-thumb {
41
- margin-top: calc(-1 * var(--handleSize) / 4);
56
+ .thumbVariant-deprecated & {
57
+ margin-top: calc(-1 * var(--handleSize) / 4);
58
+ }
59
+
60
+ .thumbVariant-accessible & {
61
+ margin-top: calc(-1 * (var(--handleSize) + (var(--handleBorderSize) * 2)) / 4);
62
+ }
42
63
  }
43
64
 
44
65
  &:focus,
45
66
  &:active {
46
67
  outline: none;
47
68
 
48
- /* stylelint-disable-next-line selector-pseudo-element-no-unknown */
69
+ /* stylelint-disable max-nesting-depth, selector-pseudo-element-no-unknown */
49
70
  &::range-thumb {
50
- box-shadow:
51
- 0 0.0625rem 0 var(--handleShadowColor),
52
- 0 0 0 var(--handleFocusOutlineWidth) var(--handleFocusOutlineColor);
71
+ .thumbVariant-deprecated & {
72
+ background: var(--handleFocusBackground);
73
+ box-shadow:
74
+ 0 0.0625rem 0 var(--handleShadowColor),
75
+ 0 0 0 var(--handleFocusOutlineWidth) var(--handleFocusOutlineColor);
76
+ }
77
+
78
+ .thumbVariant-accessible & {
79
+ background: var(--handleFocusBackground);
80
+ box-shadow:
81
+ var(--handleShadow),
82
+ inset 0 0 0 var(--handleFocusInset) var(--handleFocusBackground),
83
+ inset 0 0 0 calc(var(--handleFocusInset) + var(--handleFocusRingSize)) var(--handleFocusRingColor);
84
+ }
53
85
  }
86
+ /* stylelint-enable max-nesting-depth, selector-pseudo-element-no-unknown */
54
87
  }
55
88
 
56
89
  /* remove outline in FF */
@@ -24,17 +24,32 @@
24
24
 
25
25
  import { alpha, darken } from '@instructure/ui-color-utils'
26
26
 
27
- export default function generator({ colors, typography, spacing, forms }) {
27
+ export default function generator({
28
+ colors,
29
+ borders,
30
+ typography,
31
+ spacing,
32
+ forms
33
+ }) {
28
34
  return {
29
35
  minWidth: '12.5rem',
30
36
 
31
37
  handleSize: '1.5rem',
32
38
  handleBackground: colors.backgroundBrand,
33
- handleShadowColor: darken(colors.borderBrand, 15),
39
+ handleBorderColor: colors.borderLightest,
40
+ handleBorderSize: borders.widthMedium,
41
+ handleShadow:
42
+ '0 0.0625rem 0.125rem rgba(0, 0, 0, .2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)',
34
43
 
35
- handleHoverBackground: colors.backgroundBrand,
44
+ handleFocusInset: borders?.widthSmall,
45
+ handleFocusRingSize: borders?.widthMedium,
46
+ handleFocusRingColor: colors?.backgroundLightest,
36
47
 
37
48
  handleFocusBackground: colors.backgroundBrand,
49
+ handleHoverBackground: colors.backgroundBrand,
50
+
51
+ // Deprecated, remove with "deprecated" thumbVariant
52
+ handleShadowColor: darken(colors.borderBrand, 15),
38
53
  handleFocusOutlineColor: alpha(colors.borderBrand, 40),
39
54
  handleFocusOutlineWidth: '0.75em',
40
55
 
@@ -61,10 +76,12 @@ export default function generator({ colors, typography, spacing, forms }) {
61
76
  generator.canvas = function (variables) {
62
77
  return {
63
78
  handleBackground: variables['ic-brand-primary'],
64
- handleShadowColor: darken(variables['ic-brand-primary'], 15),
65
- handleFocusOutlineColor: alpha(variables['ic-brand-primary'], 40),
66
79
  handleHoverBackground: variables['ic-brand-primary'],
67
80
  handleFocusBackground: variables['ic-brand-primary'],
68
- valueBackground: variables['ic-brand-font-color-dark']
81
+ valueBackground: variables['ic-brand-font-color-dark'],
82
+
83
+ // Deprecated, remove with "deprecated" thumbVariant
84
+ handleShadowColor: darken(variables['ic-brand-primary'], 15),
85
+ handleFocusOutlineColor: alpha(variables['ic-brand-primary'], 40)
69
86
  }
70
87
  }
package/types/index.d.ts CHANGED
@@ -36,6 +36,7 @@ export interface RangeInputProps {
36
36
  inline?: boolean;
37
37
  disabled?: boolean;
38
38
  readOnly?: boolean;
39
+ thumbVariant?: any;
39
40
  }
40
41
 
41
42
  export class RangeInput extends React.Component<RangeInputProps, any> {