@salutejs/plasma-new-hope 0.174.0-dev.0 → 0.175.0-canary.1452.11541985977.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Slider/Slider.css +15 -13
- package/cjs/components/Slider/Slider.js +11 -2
- package/cjs/components/Slider/Slider.js.map +1 -1
- package/cjs/components/Slider/Slider.tokens.js +23 -17
- package/cjs/components/Slider/Slider.tokens.js.map +1 -1
- package/cjs/components/Slider/components/Double/Double.css +8 -8
- package/cjs/components/Slider/components/Double/Double.js +58 -23
- package/cjs/components/Slider/components/Double/Double.js.map +1 -1
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +98 -0
- package/cjs/components/Slider/components/Single/Single.css +14 -14
- package/cjs/components/Slider/components/Single/Single.js +64 -33
- package/cjs/components/Slider/components/Single/Single.js.map +1 -1
- package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
- package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
- package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +6 -0
- package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
- package/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +5 -0
- package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
- package/cjs/components/Slider/ui/Handler/Handler.js +49 -88
- package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
- package/cjs/components/Slider/ui/Handler/Handler.styles.js +17 -7
- package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
- package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +2 -0
- package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +122 -0
- package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +1 -0
- package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +1 -0
- package/cjs/components/Slider/utils/index.js +28 -10
- package/cjs/components/Slider/utils/index.js.map +1 -1
- package/cjs/components/Slider/variations/_view/base.js +1 -1
- package/cjs/components/Slider/variations/_view/base.js.map +1 -1
- package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +1 -0
- package/cjs/index.css +15 -13
- package/cjs/utils/index.js.map +1 -1
- package/emotion/cjs/components/Slider/Slider.js +10 -2
- package/emotion/cjs/components/Slider/Slider.template-doc.mdx +26 -0
- package/emotion/cjs/components/Slider/Slider.tokens.js +23 -17
- package/emotion/cjs/components/Slider/components/Double/Double.js +54 -19
- package/emotion/cjs/components/Slider/components/Single/Single.js +64 -33
- package/emotion/cjs/components/Slider/components/Single/Single.styles.js +18 -9
- package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
- package/emotion/cjs/components/Slider/ui/Handler/Handler.js +52 -88
- package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +9 -15
- package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +121 -0
- package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
- package/emotion/cjs/components/Slider/utils/index.js +28 -10
- package/emotion/cjs/components/Slider/variations/_view/base.js +2 -1
- package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
- package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
- package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
- package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
- package/emotion/es/components/Slider/Slider.js +11 -2
- package/emotion/es/components/Slider/Slider.template-doc.mdx +26 -0
- package/emotion/es/components/Slider/Slider.tokens.js +23 -17
- package/emotion/es/components/Slider/components/Double/Double.js +54 -19
- package/emotion/es/components/Slider/components/Single/Single.js +65 -34
- package/emotion/es/components/Slider/components/Single/Single.styles.js +17 -8
- package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
- package/emotion/es/components/Slider/ui/Handler/Handler.js +51 -86
- package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +10 -16
- package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +115 -0
- package/emotion/es/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
- package/emotion/es/components/Slider/utils/index.js +28 -10
- package/emotion/es/components/Slider/variations/_view/base.js +2 -1
- package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
- package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
- package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
- package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
- package/es/components/Slider/Slider.css +15 -13
- package/es/components/Slider/Slider.js +11 -2
- package/es/components/Slider/Slider.js.map +1 -1
- package/es/components/Slider/Slider.tokens.js +23 -17
- package/es/components/Slider/Slider.tokens.js.map +1 -1
- package/es/components/Slider/components/Double/Double.css +8 -8
- package/es/components/Slider/components/Double/Double.js +54 -19
- package/es/components/Slider/components/Double/Double.js.map +1 -1
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +98 -0
- package/es/components/Slider/components/Single/Single.css +14 -14
- package/es/components/Slider/components/Single/Single.js +65 -34
- package/es/components/Slider/components/Single/Single.js.map +1 -1
- package/es/components/Slider/components/Single/Single.styles.js +4 -4
- package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
- package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +6 -0
- package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
- package/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
- package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
- package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
- package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +5 -0
- package/es/components/Slider/ui/Handler/Handler.css +3 -3
- package/es/components/Slider/ui/Handler/Handler.js +48 -87
- package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
- package/es/components/Slider/ui/Handler/Handler.styles.js +17 -7
- package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
- package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +2 -0
- package/es/components/Slider/ui/Handler/computeKeyPressData.js +118 -0
- package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +1 -0
- package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +1 -0
- package/es/components/Slider/utils/index.js +28 -10
- package/es/components/Slider/utils/index.js.map +1 -1
- package/es/components/Slider/variations/_view/base.js +1 -1
- package/es/components/Slider/variations/_view/base.js.map +1 -1
- package/es/components/Slider/variations/_view/base_1s3f6q8.css +1 -0
- package/es/index.css +15 -13
- package/es/utils/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Slider/Slider.js +10 -2
- package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +26 -0
- package/styled-components/cjs/components/Slider/Slider.tokens.js +23 -17
- package/styled-components/cjs/components/Slider/components/Double/Double.js +54 -19
- package/styled-components/cjs/components/Slider/components/Single/Single.js +64 -33
- package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
- package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
- package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +52 -88
- package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -4
- package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +121 -0
- package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
- package/styled-components/cjs/components/Slider/utils/index.js +28 -10
- package/styled-components/cjs/components/Slider/variations/_view/base.js +2 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
- package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
- package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
- package/styled-components/es/components/Slider/Slider.js +11 -2
- package/styled-components/es/components/Slider/Slider.template-doc.mdx +26 -0
- package/styled-components/es/components/Slider/Slider.tokens.js +23 -17
- package/styled-components/es/components/Slider/components/Double/Double.js +54 -19
- package/styled-components/es/components/Slider/components/Single/Single.js +65 -34
- package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
- package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
- package/styled-components/es/components/Slider/ui/Handler/Handler.js +51 -86
- package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +8 -5
- package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +115 -0
- package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
- package/styled-components/es/components/Slider/utils/index.js +28 -10
- package/styled-components/es/components/Slider/variations/_view/base.js +2 -1
- package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
- package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
- package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
- package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
- package/types/components/Slider/Slider.d.ts.map +1 -1
- package/types/components/Slider/Slider.tokens.d.ts +22 -16
- package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.types.d.ts +1 -0
- package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
- package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.types.d.ts +79 -7
- package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +6 -0
- package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/Handler.styles.d.ts +6 -2
- package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/Handler.types.d.ts +5 -1
- package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +12 -0
- package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +1 -0
- package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +1 -0
- package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
- package/types/components/Slider/utils/index.d.ts +26 -8
- package/types/components/Slider/utils/index.d.ts.map +1 -1
- package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +80 -2
- package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Slider/Slider.d.ts +80 -2
- package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
- package/types/utils/index.d.ts +1 -1
- package/types/utils/index.d.ts.map +1 -1
- package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +0 -5
- package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +0 -2
- package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
- package/cjs/components/Slider/variations/_view/base_x642ct.css +0 -1
- package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
- package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +0 -5
- package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +0 -2
- package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
- package/es/components/Slider/variations/_view/base_x642ct.css +0 -1
@@ -13,7 +13,7 @@ var _utils2 = /*#__PURE__*/require("../../../../utils");
|
|
13
13
|
var _Slider = /*#__PURE__*/require("../../Slider.tokens");
|
14
14
|
var _SliderBase2 = /*#__PURE__*/require("../SliderBase/SliderBase.styles");
|
15
15
|
var _Single = /*#__PURE__*/require("./Single.styles");
|
16
|
-
var _excluded = ["min", "max", "value", "disabled", "onChangeCommitted", "onChange", "ariaLabel", "label", "labelContentLeft", "showRangeValues", "showCurrentValue", "hideMinValueDiff", "hideMaxValueDiff", "labelPlacement", "rangeValuesPlacement", "multipleStepSize", "defaultValue", "size", "name"];
|
16
|
+
var _excluded = ["min", "max", "value", "disabled", "onChangeCommitted", "onChange", "ariaLabel", "label", "labelContentLeft", "labelContent", "sliderAlign", "showScale", "showRangeValues", "showCurrentValue", "hideMinValueDiff", "hideMaxValueDiff", "labelPlacement", "rangeValuesPlacement", "scaleAlign", "multipleStepSize", "defaultValue", "size", "name", "pointerSize", "orientation", "reversed", "labelReversed"];
|
17
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
18
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
19
19
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
@@ -41,23 +41,35 @@ var SingleSlider = exports.SingleSlider = function SingleSlider(_ref) {
|
|
41
41
|
ariaLabel = _ref.ariaLabel,
|
42
42
|
label = _ref.label,
|
43
43
|
labelContentLeft = _ref.labelContentLeft,
|
44
|
+
labelContent = _ref.labelContent,
|
45
|
+
_ref$sliderAlign = _ref.sliderAlign,
|
46
|
+
sliderAlign = _ref$sliderAlign === void 0 ? 'left' : _ref$sliderAlign,
|
47
|
+
showScale = _ref.showScale,
|
44
48
|
showRangeValues = _ref.showRangeValues,
|
45
49
|
showCurrentValue = _ref.showCurrentValue,
|
46
50
|
hideMinValueDiff = _ref.hideMinValueDiff,
|
47
51
|
hideMaxValueDiff = _ref.hideMaxValueDiff,
|
48
52
|
_ref$labelPlacement = _ref.labelPlacement,
|
49
|
-
labelPlacement = _ref$labelPlacement === void 0 ? '
|
50
|
-
|
51
|
-
|
53
|
+
labelPlacement = _ref$labelPlacement === void 0 ? 'top' : _ref$labelPlacement,
|
54
|
+
rangeValuesPlacementOld = _ref.rangeValuesPlacement,
|
55
|
+
_ref$scaleAlign = _ref.scaleAlign,
|
56
|
+
scaleAlign = _ref$scaleAlign === void 0 ? 'bottom' : _ref$scaleAlign,
|
52
57
|
_ref$multipleStepSize = _ref.multipleStepSize,
|
53
58
|
multipleStepSize = _ref$multipleStepSize === void 0 ? 10 : _ref$multipleStepSize,
|
54
59
|
defaultValue = _ref.defaultValue,
|
55
60
|
_ref$size = _ref.size,
|
56
61
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
57
62
|
name = _ref.name,
|
63
|
+
_ref$pointerSize = _ref.pointerSize,
|
64
|
+
pointerSize = _ref$pointerSize === void 0 ? 'small' : _ref$pointerSize,
|
65
|
+
_ref$orientation = _ref.orientation,
|
66
|
+
orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation,
|
67
|
+
reversed = _ref.reversed,
|
68
|
+
labelReversed = _ref.labelReversed,
|
58
69
|
rest = _objectWithoutProperties(_ref, _excluded);
|
70
|
+
var isVertical = orientation === 'vertical';
|
59
71
|
var _useState = (0, _react.useState)({
|
60
|
-
|
72
|
+
handlePosition: 0,
|
61
73
|
stepSize: 0,
|
62
74
|
railFillWidth: 0
|
63
75
|
}),
|
@@ -73,23 +85,28 @@ var SingleSlider = exports.SingleSlider = function SingleSlider(_ref) {
|
|
73
85
|
_useState6 = _slicedToArray(_useState5, 2),
|
74
86
|
endOffset = _useState6[0],
|
75
87
|
setEndOffset = _useState6[1];
|
76
|
-
var
|
88
|
+
var innerValue = (_ref2 = value !== null && value !== void 0 ? value : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : min;
|
89
|
+
var _useState7 = (0, _react.useState)(innerValue),
|
77
90
|
_useState8 = _slicedToArray(_useState7, 2),
|
78
91
|
dragValue = _useState8[0],
|
79
92
|
setDragValue = _useState8[1];
|
80
93
|
var stepSize = state.stepSize;
|
81
|
-
var
|
82
|
-
var
|
83
|
-
var
|
94
|
+
var innerShowScale = showRangeValues || showScale;
|
95
|
+
var hasLabelContent = Boolean(label || labelContentLeft || labelContent) && (!isVertical || isVertical && sliderAlign !== 'none');
|
96
|
+
var labelPlacementClass = !isVertical && (labelPlacement === 'outer' || labelPlacement === 'top') ? _Slider.classes.labelPlacementOuter : _Slider.classes.labelPlacementInner;
|
97
|
+
var rangeValuesPlacement = rangeValuesPlacementOld === 'outer' || scaleAlign === 'bottom' ? 'outer' : 'inner';
|
98
|
+
var scaleAlignClass = rangeValuesPlacement === 'outer' ? _Slider.classes.rangeValuesPlacementOuter : _Slider.classes.rangeValuesPlacementInner;
|
84
99
|
var hideMinValueDiffClass = hideMinValueDiff && dragValue - min <= hideMinValueDiff ? _Slider.classes.hideMinValue : '';
|
85
100
|
var hideMaxValueDiffClass = hideMaxValueDiff && max - dragValue <= hideMaxValueDiff ? _Slider.classes.hideMaxValue : '';
|
101
|
+
var verticalOrientationClass = orientation === 'vertical' ? _Slider.classes.verticalOrientation : '';
|
86
102
|
var startLabelRef = (0, _react.useRef)(null);
|
87
103
|
var endLabelRef = (0, _react.useRef)(null);
|
88
104
|
var activeFirstValue = dragValue === min ? _Slider.classes.activeRangeValue : undefined;
|
89
105
|
var activeSecondValue = dragValue === max ? _Slider.classes.activeRangeValue : undefined;
|
90
106
|
(0, _react.useEffect)(function () {
|
91
|
-
var
|
92
|
-
|
107
|
+
var visibleValue = reversed ? max - dragValue + min : dragValue;
|
108
|
+
var localValue = Math.min(Math.max(visibleValue, min), max) - min;
|
109
|
+
if (!isVertical && rangeValuesPlacement === 'outer') {
|
93
110
|
var _startLabelRef$curren, _endLabelRef$current;
|
94
111
|
var startWidth = (_startLabelRef$curren = startLabelRef.current) === null || _startLabelRef$curren === void 0 ? void 0 : _startLabelRef$curren.offsetWidth;
|
95
112
|
if ((0, _utils2.isNumber)(startWidth)) {
|
@@ -99,30 +116,35 @@ var SingleSlider = exports.SingleSlider = function SingleSlider(_ref) {
|
|
99
116
|
if ((0, _utils2.isNumber)(endWidth)) {
|
100
117
|
setEndOffset(Number(endWidth));
|
101
118
|
}
|
119
|
+
} else if (isVertical && innerShowScale && sliderAlign !== 'center') {
|
120
|
+
setStartOffset(12);
|
121
|
+
setEndOffset(12);
|
102
122
|
} else {
|
103
123
|
setStartOffset(1);
|
104
124
|
setEndOffset(1);
|
105
125
|
}
|
106
126
|
setState(function (prevState) {
|
107
127
|
return _objectSpread(_objectSpread({}, prevState), {}, {
|
108
|
-
|
128
|
+
handlePosition: stepSize * localValue,
|
109
129
|
railFillWidth: stepSize * localValue
|
110
130
|
});
|
111
131
|
});
|
112
|
-
}, [dragValue, labelPlacement, stepSize, rangeValuesPlacement, min, max,
|
132
|
+
}, [dragValue, innerShowScale, labelPlacement, stepSize, rangeValuesPlacement, min, max, isVertical, reversed,
|
133
|
+
// для перерасчета размеров
|
134
|
+
sliderAlign, size]);
|
113
135
|
var setStepSize = (0, _react.useCallback)(function (newStepSize) {
|
114
136
|
setState(function (prevState) {
|
115
137
|
return _objectSpread(_objectSpread({}, prevState), {}, {
|
116
138
|
stepSize: newStepSize
|
117
139
|
});
|
118
140
|
});
|
119
|
-
}, [
|
141
|
+
}, []);
|
120
142
|
var onHandleChange = function onHandleChange(handleValue, data) {
|
121
|
-
var
|
122
|
-
var
|
143
|
+
var newValue = Math.round(reversed ? max - handleValue + min : handleValue);
|
144
|
+
var newHandlePosition = isVertical ? data.y : data.x;
|
123
145
|
setState(function (prevState) {
|
124
146
|
return _objectSpread(_objectSpread({}, prevState), {}, {
|
125
|
-
railFillWidth:
|
147
|
+
railFillWidth: newHandlePosition
|
126
148
|
});
|
127
149
|
});
|
128
150
|
if (onChange) {
|
@@ -140,41 +162,49 @@ var SingleSlider = exports.SingleSlider = function SingleSlider(_ref) {
|
|
140
162
|
}
|
141
163
|
setDragValue(newValue);
|
142
164
|
};
|
143
|
-
var onHandleChangeCommitted = function
|
144
|
-
var newValue = Math.round(handleValue);
|
165
|
+
var onHandleChangeCommitted = (0, _react.useCallback)(function (handleValue, data) {
|
166
|
+
var newValue = Math.round(reversed ? max - handleValue + min : handleValue);
|
145
167
|
if (onChangeCommitted) {
|
146
168
|
onChangeCommitted(newValue);
|
147
169
|
}
|
148
170
|
setState(function (prevState) {
|
149
171
|
return _objectSpread(_objectSpread({}, prevState), {}, {
|
150
|
-
|
151
|
-
railFillWidth: data.lastX
|
172
|
+
handlePosition: isVertical ? data.lastY : data.lastX,
|
173
|
+
railFillWidth: isVertical ? data.lastY : data.lastX
|
152
174
|
});
|
153
175
|
});
|
154
176
|
setDragValue(newValue);
|
155
|
-
};
|
177
|
+
}, [isVertical, min, max, reversed]);
|
178
|
+
var labelVerticalPlacement = reversed ? 'bottom' : 'top';
|
179
|
+
var valuePlacement = sliderAlign === 'right' ? 'left' : 'right';
|
180
|
+
var settings = _utils.sizeData[size][pointerSize === 'large' ? 'large' : 'small'];
|
156
181
|
return /*#__PURE__*/_react["default"].createElement(_Single.SingleWrapper, {
|
157
|
-
className: labelPlacementClass
|
158
|
-
}, hasLabelContent && /*#__PURE__*/_react["default"].createElement(_Single.LabelWrapper, null, labelContentLeft && /*#__PURE__*/_react["default"].createElement(_Single.
|
159
|
-
className:
|
160
|
-
},
|
182
|
+
className: (0, _utils2.cx)(labelPlacementClass, scaleAlignClass, verticalOrientationClass, sliderAlign === 'right' && _Slider.classes.labelAlignLeft, (sliderAlign === 'center' || sliderAlign === 'none') && _Slider.classes.labelAlignCenter, sliderAlign === 'left' && _Slider.classes.labelAlignRight, labelVerticalPlacement === 'bottom' && _Slider.classes.labelPlacementBottom, labelReversed && _Slider.classes.labelContentReversed)
|
183
|
+
}, hasLabelContent && /*#__PURE__*/_react["default"].createElement(_Single.LabelWrapper, null, (labelContentLeft || labelContent) && /*#__PURE__*/_react["default"].createElement(_Single.LabelContent, null, labelContent), label && /*#__PURE__*/_react["default"].createElement(_Single.Label, null, label)), /*#__PURE__*/_react["default"].createElement(_Single.SliderBaseWrapper, {
|
184
|
+
className: (0, _utils2.cx)(!isVertical && rangeValuesPlacement === 'outer' && _Slider.classes.rangeValuesPlacementOuter, !isVertical && rangeValuesPlacement !== 'outer' && _Slider.classes.rangeValuesPlacementInner, verticalOrientationClass)
|
185
|
+
}, innerShowScale && /*#__PURE__*/_react["default"].createElement(_Single.StyledRangeValue, {
|
161
186
|
ref: startLabelRef,
|
162
187
|
className: (0, _utils2.cx)(hideMinValueDiffClass, activeFirstValue)
|
163
|
-
}, min), /*#__PURE__*/_react["default"].createElement(_SliderBase.SliderBase, _extends({
|
188
|
+
}, reversed ? max : min), /*#__PURE__*/_react["default"].createElement(_SliderBase.SliderBase, _extends({
|
164
189
|
min: min,
|
165
190
|
max: max,
|
166
191
|
disabled: disabled,
|
192
|
+
size: size,
|
193
|
+
sliderAlign: sliderAlign,
|
167
194
|
setStepSize: setStepSize,
|
168
195
|
onChange: onHandleChangeCommitted,
|
169
196
|
railFillWidth: state.railFillWidth,
|
170
|
-
settings:
|
197
|
+
settings: settings,
|
171
198
|
labelPlacement: labelPlacement,
|
172
|
-
rangeValuesPlacement: rangeValuesPlacement
|
199
|
+
rangeValuesPlacement: rangeValuesPlacement,
|
200
|
+
orientation: orientation
|
173
201
|
}, rest), /*#__PURE__*/_react["default"].createElement(_ui.Handler, {
|
202
|
+
size: pointerSize,
|
203
|
+
orientation: orientation,
|
174
204
|
stepSize: state.stepSize,
|
175
205
|
onChangeCommitted: onHandleChangeCommitted,
|
176
206
|
onChange: onHandleChange,
|
177
|
-
|
207
|
+
position: state.handlePosition,
|
178
208
|
min: min,
|
179
209
|
max: max,
|
180
210
|
startOffset: startOffset,
|
@@ -183,11 +213,12 @@ var SingleSlider = exports.SingleSlider = function SingleSlider(_ref) {
|
|
183
213
|
disabled: disabled,
|
184
214
|
ariaLabel: ariaLabel,
|
185
215
|
multipleStepSize: multipleStepSize,
|
186
|
-
showCurrentValue: showCurrentValue
|
187
|
-
|
216
|
+
showCurrentValue: showCurrentValue,
|
217
|
+
valuePlacement: valuePlacement
|
218
|
+
})), innerShowScale && /*#__PURE__*/_react["default"].createElement(_Single.StyledRangeValue, {
|
188
219
|
ref: endLabelRef,
|
189
220
|
className: (0, _utils2.cx)(_Slider.classes.maxRangeValue, hideMaxValueDiffClass, activeSecondValue)
|
190
|
-
}, max)), /*#__PURE__*/_react["default"].createElement(_SliderBase2.InputHidden, _extends({
|
221
|
+
}, reversed ? min : max)), /*#__PURE__*/_react["default"].createElement(_SliderBase2.InputHidden, _extends({
|
191
222
|
name: name,
|
192
223
|
type: "number",
|
193
224
|
datatype: "slider-single",
|
@@ -3,31 +3,40 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.StyledRangeValue = exports.SliderBaseWrapper = exports.SingleWrapper = exports.LabelWrapper = exports.
|
6
|
+
exports.StyledRangeValue = exports.SliderBaseWrapper = exports.SingleWrapper = exports.LabelWrapper = exports.LabelContent = exports.Label = void 0;
|
7
7
|
var _base = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("@emotion/styled/base"));
|
8
8
|
var _Slider = /*#__PURE__*/require("../../Slider.tokens");
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
10
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
10
11
|
var LabelWrapper = exports.LabelWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
11
12
|
target: "e75awbu5",
|
12
13
|
label: "plasma-new-hope__LabelWrapper"
|
13
|
-
})("color:var(", _Slider.tokens.labelColor, ");display:flex;gap:var(", _Slider.tokens.labelWrapperGap, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
14
|
-
var
|
14
|
+
})("color:var(", _Slider.tokens.labelColor, ");display:flex;gap:var(", _Slider.tokens.labelWrapperGap, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2luZ2xlL1NpbmdsZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXNDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2luZ2xlL1NpbmdsZS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL1NsaWRlci50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgTGFiZWxXcmFwcGVyID0gc3R5bGVkLmRpdmBcbiAgIC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yaWVudGF0aW9ufSB7XG4gICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxBbGlnbkNlbnRlcn0ge1xuICAgICAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uLXJldmVyc2U7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYuJHtjbGFzc2VzLmxhYmVsUGxhY2VtZW50Qm90dG9tfSB7XG4gICAgICAgICAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbENvbnRlbnRSZXZlcnNlZH0ge1xuICAgICAgICAgICAgICAgICAgICAke0xhYmVsV3JhcHBlcn0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbi1yZXZlcnNlO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbENvbnRlbnRSZXZlcnNlZH0ge1xuICAgICAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgIH1cblxuICAgICAgICAke1NsaWRlckJhc2VXcmFwcGVyfSB7XG4gICAgICAgICAgICB3aWR0aDogdmFyKCR7dG9rZW5zLnNpemV9KTtcbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsUGxhY2VtZW50SW5uZXJ9IHtcbiAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgbWFyZ2luLXJpZ2h0OiAwO1xuICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IHZhcigke3Rva2Vucy5sYWJlbFdyYXBwZXJWZXJ0aWNhbE1hcmdpbn0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxBbGlnbkxlZnR9IHtcbiAgICAgICAgICAgIGFsaWduLWl0ZW1zOiBmbGV4LWVuZDtcblxuICAgICAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93LXJldmVyc2U7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbEFsaWduUmlnaHR9IHtcbiAgICAgICAgICAgIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0O1xuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxQbGFjZW1lbnRCb3R0b219IHtcbiAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW4tcmV2ZXJzZTtcblxuICAgICAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgICAgICBtYXJnaW4tdG9wOiB2YXIoJHt0b2tlbnMubGFiZWxXcmFwcGVyVmVydGljYWxNYXJnaW59KTtcbiAgICAgICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgICYuJHtjbGFzc2VzLnZlcnRpY2FsT3JpZW50YXRpb259IHtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5cbiAgICAgICAgJHtTbGlkZXJCYXNlV3JhcHBlcn0ge1xuICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25DZW50ZXJ9IHtcbiAgICAgICAgICAgICR7U3R5bGVkUmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBzdGF0aWM7XG4gICAgICAgICAgICAgICAgYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIGxlZnQ6IDA7XG4gICAgICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogdmFyKCR7dG9rZW5zLnJhbmdlVmFsdWVWZXJ0aWNhbE1hcmdpbn0pO1xuXG4gICAgICAgICAgICAgICAgJi4ke2NsYXNzZXMubWF4UmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgICAgICAgICByaWdodDogMDtcbiAgICAgICAgICAgICAgICAgICAgYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW4tdG9wOiB2YXIoJHt0b2tlbnMucmFuZ2VWYWx1ZVZlcnRpY2FsTWFyZ2lufSk7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDA7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxBbGlnbkxlZnR9LCAmLiR7Y2xhc3Nlcy5sYWJlbEFsaWduUmlnaHR9IHtcbiAgICAgICAgICAgICR7U3R5bGVkUmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMDtcbiAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgICAgICAgICB0b3A6IDA7XG5cbiAgICAgICAgICAgICAgICByaWdodDogY2FsYyhcbiAgICAgICAgICAgICAgICAgICAgdmFyKCR7dG9rZW5zLnJhaWxUaGlja25lc3N9KSAvIDIgKyB2YXIoJHt0b2tlbnMuc2l6ZX0pIC8gMiArXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIoJHt0b2tlbnMucmFuZ2VWYWx1ZUhvcml6b250YWxPZmZzZXR9KVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICAmLiR7Y2xhc3Nlcy5tYXhSYW5nZVZhbHVlfSB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMDtcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luLWxlZnQ6IDA7XG4gICAgICAgICAgICAgICAgICAgIHRvcDogYXV0bztcbiAgICAgICAgICAgICAgICAgICAgYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25SaWdodH0ge1xuICAgICAgICAgICAgJHtTdHlsZWRSYW5nZVZhbHVlfSB7XG4gICAgICAgICAgICAgICAgbGVmdDogY2FsYyh2YXIoJHt0b2tlbnMuc2l6ZX0pICsgdmFyKCR7dG9rZW5zLnJhaWxUaGlja25lc3N9KSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
15
|
+
var LabelContent = exports.LabelContent = /*#__PURE__*/(0, _base["default"])("div", {
|
15
16
|
target: "e75awbu4",
|
16
|
-
label: "plasma-new-
|
17
|
-
})(process.env.NODE_ENV === "production" ?
|
17
|
+
label: "plasma-new-hope__LabelContent"
|
18
|
+
})(process.env.NODE_ENV === "production" ? {
|
19
|
+
name: "1lv1yo7",
|
20
|
+
styles: "display:inline-flex"
|
21
|
+
} : {
|
22
|
+
name: "1lv1yo7",
|
23
|
+
styles: "display:inline-flex",
|
24
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2luZ2xlL1NpbmdsZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV3NDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2luZ2xlL1NpbmdsZS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL1NsaWRlci50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgTGFiZWxXcmFwcGVyID0gc3R5bGVkLmRpdmBcbiAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmxhYmVsQ29sb3J9KTtcblxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZ2FwOiB2YXIoJHt0b2tlbnMubGFiZWxXcmFwcGVyR2FwfSk7XG5gO1xuXG5leHBvcnQgY29uc3QgTGFiZWxDb250ZW50ID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbmA7XG5cbmV4cG9ydCBjb25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2U7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYuJHtjbGFzc2VzLmxhYmVsUGxhY2VtZW50Qm90dG9tfSB7XG4gICAgICAgICAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbENvbnRlbnRSZXZlcnNlZH0ge1xuICAgICAgICAgICAgICAgICAgICAke0xhYmVsV3JhcHBlcn0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbi1yZXZlcnNlO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbENvbnRlbnRSZXZlcnNlZH0ge1xuICAgICAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgIH1cblxuICAgICAgICAke1NsaWRlckJhc2VXcmFwcGVyfSB7XG4gICAgICAgICAgICB3aWR0aDogdmFyKCR7dG9rZW5zLnNpemV9KTtcbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsUGxhY2VtZW50SW5uZXJ9IHtcbiAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgbWFyZ2luLXJpZ2h0OiAwO1xuICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IHZhcigke3Rva2Vuc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gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25DZW50ZXJ9IHtcbiAgICAgICAgICAgICR7U3R5bGVkUmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBzdGF0aWM7XG4gICAgICAgICAgICAgICAgYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIGxlZnQ6IDA7XG4gICAgICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogdmFyKCR7dG9rZW5zLnJhbmdlVmFsdWVWZXJ0aWNhbE1hcmdpbn0pO1xuXG4gICAgICAgICAgICAgICAgJi4ke2NsYXNzZXMubWF4UmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgICAgICAgICByaWdodDogMDtcbiAgICAgICAgICAgICAgICAgICAgYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW4tdG9wOiB2YXIoJHt0b2tlbnMucmFuZ2VWYWx1ZVZlcnRpY2FsTWFyZ2lufSk7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDA7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxBbGlnbkxlZnR9LCAmLiR7Y2xhc3Nlcy5sYWJlbEFsaWduUmlnaHR9IHtcbiAgICAgICAgICAgICR7U3R5bGVkUmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMDtcbiAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgICAgICAgICB0b3A6IDA7XG5cbiAgICAgICAgICAgICAgICByaWdodDogY2FsYyhcbiAgICAgICAgICAgICAgICAgICAgdmFyKCR7dG9rZW5zLnJhaWxUaGlja25lc3N9KSAvIDIgKyB2YXIoJHt0b2tlbnMuc2l6ZX0pIC8gMiArXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIoJHt0b2tlbnMucmFuZ2VWYWx1ZUhvcml6b250YWxPZmZzZXR9KVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICAmLiR7Y2xhc3Nlcy5tYXhSYW5nZVZhbHVlfSB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMDtcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luLWxlZnQ6IDA7XG4gICAgICAgICAgICAgICAgICAgIHRvcDogYXV0bztcbiAgICAgICAgICAgICAgICAgICAgYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25SaWdodH0ge1xuICAgICAgICAgICAgJHtTdHlsZWRSYW5nZVZhbHVlfSB7XG4gICAgICAgICAgICAgICAgbGVmdDogY2FsYyh2YXIoJHt0b2tlbnMuc2l6ZX0pICsgdmFyKCR7dG9rZW5zLnJhaWxUaGlja25lc3N9KSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */",
|
25
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
26
|
+
});
|
18
27
|
var Label = exports.Label = /*#__PURE__*/(0, _base["default"])("label", {
|
19
28
|
target: "e75awbu3",
|
20
29
|
label: "plasma-new-hope__Label"
|
21
|
-
})("font-family:var(", _Slider.tokens.labelFontFamily, ");font-size:var(", _Slider.tokens.labelFontSize, ");font-style:var(", _Slider.tokens.labelFontStyle, ");font-weight:var(", _Slider.tokens.labelFontWeight, ");letter-spacing:var(", _Slider.tokens.labelLetterSpacing, ");line-height:var(", _Slider.tokens.labelLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
30
|
+
})("font-family:var(", _Slider.tokens.labelFontFamily, ");font-size:var(", _Slider.tokens.labelFontSize, ");font-style:var(", _Slider.tokens.labelFontStyle, ");font-weight:var(", _Slider.tokens.labelFontWeight, ");letter-spacing:var(", _Slider.tokens.labelLetterSpacing, ");line-height:var(", _Slider.tokens.labelLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2luZ2xlL1NpbmdsZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZWlDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2luZ2xlL1NpbmdsZS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL1NsaWRlci50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgTGFiZWxXcmFwcGVyID0gc3R5bGVkLmRpdmBcbiAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmxhYmVsQ29sb3J9KTtcblxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZ2FwOiB2YXIoJHt0b2tlbnMubGFiZWxXcmFwcGVyR2FwfSk7XG5gO1xuXG5leHBvcnQgY29uc3QgTGFiZWxDb250ZW50ID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBpbm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mbGV4LWRpcmVjdGlvbjogY29sdW1uLXJldmVyc2U7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYuJHtjbGFzc2VzLmxhYmVsUGxhY2VtZW50Qm90dG9tfSB7XG4gICAgICAgICAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbENvbnRlbnRSZXZlcnNlZH0ge1xuICAgICAgICAgICAgICAgICAgICAke0xhYmVsV3JhcHBlcn0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbi1yZXZlcnNlO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbENvbnRlbnRSZXZlcnNlZH0ge1xuICAgICAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgIH1cblxuICAgICAgICAke1NsaWRlckJhc2VXcmFwcGVyfSB7XG4gICAgICAgICAgICB3aWR0aDogdmFyKCR7dG9rZW5zLnNpemV9KTtcbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsUGxhY2VtZW50SW5uZXJ9IHtcbiAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgbWFyZ2luLXJpZ2h0OiAwO1xuICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IHZhcigke3Rva2Vucy5sYWJlbFdyYXBwZXJWZXJ0aWNhbE1hcmdpbn0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxBbGlnbkxlZnR9IHtcbiAgICAgICAgICAgIGFsaWduLWl0ZW1zOiBmbGV4LWVuZDtcblxuICAgICAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93LXJldmVyc2U7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbEFsaWduUmlnaHR9IHtcbiAgICAgICAgICAgIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0O1xuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxQbGFjZW1lbnRCb3R0b219IHtcbiAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW4tcmV2ZXJzZTtcblxuICAgICAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgICAgICBtYXJnaW4tdG9wOiB2YXIoJHt0b2tlbnMubGFiZWxXcmFwcGVyVmVydGljYWxNYXJnaW59KTtcbiAgICAgICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgICYuJHtjbGFzc2VzLnZlcnRpY2FsT3JpZW50YXRpb259IHtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5cbiAgICAgICAgJHtTbGlkZXJCYXNlV3JhcHBlcn0ge1xuICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25DZW50ZXJ9IHtcbiAgICAgICAgICAgICR7U3R5bGVkUmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBzdGF0aWM7XG4gICAgICAgICAgICAgICAgYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIGxlZnQ6IDA7XG4gICAgICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogdmFyKCR7dG9rZW5zLnJhbmdlVmFsdWVWZXJ0aWNhbE1hcmdpbn0pO1xuXG4gICAgICAgICAgICAgICAgJi4ke2NsYXNzZXMubWF4UmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgICAgICAgICByaWdodDogMDtcbiAgICAgICAgICAgICAgICAgICAgYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW4tdG9wOiB2YXIoJHt0b2tlbnMucmFuZ2VWYWx1ZVZlcnRpY2FsTWFyZ2lufSk7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDA7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxBbGlnbkxlZnR9LCAmLiR7Y2xhc3Nlcy5sYWJlbEFsaWduUmlnaHR9IHtcbiAgICAgICAgICAgICR7U3R5bGVkUmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMDtcbiAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgICAgICAgICB0b3A6IDA7XG5cbiAgICAgICAgICAgICAgICByaWdodDogY2FsYyhcbiAgICAgICAgICAgICAgICAgICAgdmFyKCR7dG9rZW5zLnJhaWxUaGlja25lc3N9KSAvIDIgKyB2YXIoJHt0b2tlbnMuc2l6ZX0pIC8gMiArXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIoJHt0b2tlbnMucmFuZ2VWYWx1ZUhvcml6b250YWxPZmZzZXR9KVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICAmLiR7Y2xhc3Nlcy5tYXhSYW5nZVZhbHVlfSB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMDtcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luLWxlZnQ6IDA7XG4gICAgICAgICAgICAgICAgICAgIHRvcDogYXV0bztcbiAgICAgICAgICAgICAgICAgICAgYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25SaWdodH0ge1xuICAgICAgICAgICAgJHtTdHlsZWRSYW5nZVZhbHVlfSB7XG4gICAgICAgICAgICAgICAgbGVmdDogY2FsYyh2YXIoJHt0b2tlbnMuc2l6ZX0pICsgdmFyKCR7dG9rZW5zLnJhaWxUaGlja25lc3N9KSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
22
31
|
var StyledRangeValue = exports.StyledRangeValue = /*#__PURE__*/(0, _base["default"])("span", {
|
23
32
|
target: "e75awbu2",
|
24
33
|
label: "plasma-new-hope__StyledRangeValue"
|
25
|
-
})("color:var(", _Slider.tokens.rangeValueColor, ");font-family:var(", _Slider.tokens.
|
34
|
+
})("color:var(", _Slider.tokens.rangeValueColor, ");font-family:var(", _Slider.tokens.valueFontFamily, ");font-size:var(", _Slider.tokens.valueFontSize, ");font-style:var(", _Slider.tokens.valueFontStyle, ");font-weight:var(", _Slider.tokens.valueFontWeight, ");letter-spacing:var(", _Slider.tokens.valueLetterSpacing, ");line-height:var(", _Slider.tokens.valueLineHeight, ");transition:opacity 0.1s ease-in-out;&.", _Slider.classes.hideMinValue, ",&.", _Slider.classes.hideMaxValue, "{opacity:0;}&.", _Slider.classes.activeRangeValue, "{color:var(", _Slider.tokens.labelColor, ");}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2luZ2xlL1NpbmdsZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBd0IyQyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1NsaWRlci9jb21wb25lbnRzL1NpbmdsZS9TaW5nbGUuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9TbGlkZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IExhYmVsV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gICAgY29sb3I6IHZhcigke3Rva2Vucy5sYWJlbENvbG9yfSk7XG5cbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGdhcDogdmFyKCR7dG9rZW5zLmxhYmVsV3JhcHBlckdhcH0pO1xuYDtcblxuZXhwb3J0IGNvbnN0IExhYmVsQ29udGVudCA9IHN0eWxlZC5kaXZgXG4gICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG5gO1xuXG5leHBvcnQgY29uc3QgTG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bi1yZXZlcnNlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbFBsYWNlbWVudEJvdHRvbX0ge1xuICAgICAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxDb250ZW50UmV2ZXJzZWR9IHtcbiAgICAgICAgICAgICAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW4tcmV2ZXJzZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxDb250ZW50UmV2ZXJzZWR9IHtcbiAgICAgICAgICAgICAgICAke0xhYmVsV3JhcHBlcn0ge1xuICAgICAgICAgICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICB9XG5cbiAgICAgICAgJHtTbGlkZXJCYXNlV3JhcHBlcn0ge1xuICAgICAgICAgICAgd2lkdGg6IHZhcigke3Rva2Vucy5zaXplfSk7XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbFBsYWNlbWVudElubmVyfSB7XG4gICAgICAgICAgICAke0xhYmVsV3JhcHBlcn0ge1xuICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMDtcbiAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiB2YXIoJHt0b2tlbnMubGFiZWxXcmFwcGVyVmVydGljYWxNYXJnaW59KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25MZWZ0fSB7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogZmxleC1lbmQ7XG5cbiAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdy1yZXZlcnNlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxBbGlnblJpZ2h0fSB7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogZmxleC1zdGFydDtcbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsUGxhY2VtZW50Qm90dG9tfSB7XG4gICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uLXJldmVyc2U7XG5cbiAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgbWFyZ2luLXRvcDogdmFyKCR7dG9rZW5zLmxhYmVsV3JhcHBlclZlcnRpY2FsTWFyZ2lufSk7XG4gICAgICAgICAgICAgICAgbWFyZ2luLXJpZ2h0OiAwO1xuICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDA7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSB7XG4gICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuXG4gICAgICAgICR7U2xpZGVyQmFzZVdyYXBwZXJ9IHtcbiAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbEFsaWduQ2VudGVyfSB7XG4gICAgICAgICAgICAke1N0eWxlZFJhbmdlVmFsdWV9IHtcbiAgICAgICAgICAgICAgICBwb3NpdGlvbjogc3RhdGljO1xuICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IHZhcigke3Rva2Vucy5yYW5nZVZhbHVlVmVydGljYWxNYXJnaW59KTtcblxuICAgICAgICAgICAgICAgICYuJHtjbGFzc2VzLm1heFJhbmdlVmFsdWV9IHtcbiAgICAgICAgICAgICAgICAgICAgbGVmdDogMDtcbiAgICAgICAgICAgICAgICAgICAgcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luLXRvcDogdmFyKCR7dG9rZW5zLnJhbmdlVmFsdWVWZXJ0aWNhbE1hcmdpbn0pO1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25MZWZ0fSwgJi4ke2NsYXNzZXMubGFiZWxBbGlnblJpZ2h0fSB7XG4gICAgICAgICAgICAke1N0eWxlZFJhbmdlVmFsdWV9IHtcbiAgICAgICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgICAgICAgdG9wOiAwO1xuXG4gICAgICAgICAgICAgICAgcmlnaHQ6IGNhbGMoXG4gICAgICAgICAgICAgICAgICAgIHZhcigke3Rva2Vucy5yYWlsVGhpY2tuZXNzfSkgLyAyICsgdmFyKCR7dG9rZW5zLnNpemV9KSAvIDIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyKCR7dG9rZW5zLnJhbmdlVmFsdWVIb3Jpem9udGFsT2Zmc2V0fSlcbiAgICAgICAgICAgICAgICApO1xuXG4gICAgICAgICAgICAgICAgJi4ke2NsYXNzZXMubWF4UmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbi1sZWZ0OiAwO1xuICAgICAgICAgICAgICAgICAgICB0b3A6IGF1dG87XG4gICAgICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbEFsaWduUmlnaHR9IHtcbiAgICAgICAgICAgICR7U3R5bGVkUmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgIGxlZnQ6IGNhbGModmFyKCR7dG9rZW5zLnNpemV9KSArIHZhcigke3Rva2Vucy5yYWlsVGhpY2tuZXNzfSkpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
|
26
35
|
var SliderBaseWrapper = exports.SliderBaseWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
27
36
|
target: "e75awbu1",
|
28
37
|
label: "plasma-new-hope__SliderBaseWrapper"
|
29
|
-
})("position:relative;display:flex;flex:1;&.", _Slider.classes.rangeValuesPlacementOuter, "{", StyledRangeValue, "{position:absolute;bottom:var(", _Slider.tokens.rangeValueBottomOffset, ");left:0;&.", _Slider.classes.maxRangeValue, "{left:unset;right:0;}}}&.", _Slider.classes.rangeValuesPlacementInner, "{align-items:center;", StyledRangeValue, "{margin-right:var(", _Slider.tokens.
|
38
|
+
})("position:relative;display:flex;flex:1;&.", _Slider.classes.rangeValuesPlacementOuter, "{", StyledRangeValue, "{position:absolute;bottom:calc(var(", _Slider.tokens.railThickness, ") * -1.5 - var(", _Slider.tokens.rangeValueBottomOffset, "));left:0;&.", _Slider.classes.maxRangeValue, "{left:unset;right:0;}}}&.", _Slider.classes.rangeValuesPlacementInner, "{align-items:center;", StyledRangeValue, "{margin-right:var(", _Slider.tokens.rangeValueHorizontalMargin, ");&.", _Slider.classes.maxRangeValue, "{margin-right:0;margin-left:var(", _Slider.tokens.rangeValueHorizontalMargin, ");}}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2luZ2xlL1NpbmdsZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNEMyQyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1NsaWRlci9jb21wb25lbnRzL1NpbmdsZS9TaW5nbGUuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9TbGlkZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IExhYmVsV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gICAgY29sb3I6IHZhcigke3Rva2Vucy5sYWJlbENvbG9yfSk7XG5cbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGdhcDogdmFyKCR7dG9rZW5zLmxhYmVsV3JhcHBlckdhcH0pO1xuYDtcblxuZXh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YmVsQWxpZ25DZW50ZXJ9IHtcbiAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbi1yZXZlcnNlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbFBsYWNlbWVudEJvdHRvbX0ge1xuICAgICAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxDb250ZW50UmV2ZXJzZWR9IHtcbiAgICAgICAgICAgICAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW4tcmV2ZXJzZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxDb250ZW50UmV2ZXJzZWR9IHtcbiAgICAgICAgICAgICAgICAke0xhYmVsV3JhcHBlcn0ge1xuICAgICAgICAgICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICB9XG5cbiAgICAgICAgJHtTbGlkZXJCYXNlV3JhcHBlcn0ge1xuICAgICAgICAgICAgd2lkdGg6IHZhcigke3Rva2Vucy5zaXplfSk7XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbFBsYWNlbWVudElubmVyfSB7XG4gICAgICAgICAgICAke0xhYmVsV3JhcHBlcn0ge1xuICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMDtcbiAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiB2YXIoJHt0b2tlbnMubGFiZWxXcmFwcGVyVmVydGljYWxNYXJnaW59KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25MZWZ0fSB7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogZmxleC1lbmQ7XG5cbiAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdy1yZXZlcnNlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxBbGlnblJpZ2h0fSB7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogZmxleC1zdGFydDtcbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsUGxhY2VtZW50Qm90dG9tfSB7XG4gICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uLXJldmVyc2U7XG5cbiAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgbWFyZ2luLXRvcDogdmFyKCR7dG9rZW5zLmxhYmVsV3JhcHBlclZlcnRpY2FsTWFyZ2lufSk7XG4gICAgICAgICAgICAgICAgbWFyZ2luLXJpZ2h0OiAwO1xuICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDA7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSB7XG4gICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuXG4gICAgICAgICR7U2xpZGVyQmFzZVdyYXBwZXJ9IHtcbiAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbEFsaWduQ2VudGVyfSB7XG4gICAgICAgICAgICAke1N0eWxlZFJhbmdlVmFsdWV9IHtcbiAgICAgICAgICAgICAgICBwb3NpdGlvbjogc3RhdGljO1xuICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IHZhcigke3Rva2Vucy5yYW5nZVZhbHVlVmVydGljYWxNYXJnaW59KTtcblxuICAgICAgICAgICAgICAgICYuJHtjbGFzc2VzLm1heFJhbmdlVmFsdWV9IHtcbiAgICAgICAgICAgICAgICAgICAgbGVmdDogMDtcbiAgICAgICAgICAgICAgICAgICAgcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luLXRvcDogdmFyKCR7dG9rZW5zLnJhbmdlVmFsdWVWZXJ0aWNhbE1hcmdpbn0pO1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25MZWZ0fSwgJi4ke2NsYXNzZXMubGFiZWxBbGlnblJpZ2h0fSB7XG4gICAgICAgICAgICAke1N0eWxlZFJhbmdlVmFsdWV9IHtcbiAgICAgICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgICAgICAgdG9wOiAwO1xuXG4gICAgICAgICAgICAgICAgcmlnaHQ6IGNhbGMoXG4gICAgICAgICAgICAgICAgICAgIHZhcigke3Rva2Vucy5yYWlsVGhpY2tuZXNzfSkgLyAyICsgdmFyKCR7dG9rZW5zLnNpemV9KSAvIDIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyKCR7dG9rZW5zLnJhbmdlVmFsdWVIb3Jpem9udGFsT2Zmc2V0fSlcbiAgICAgICAgICAgICAgICApO1xuXG4gICAgICAgICAgICAgICAgJi4ke2NsYXNzZXMubWF4UmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbi1sZWZ0OiAwO1xuICAgICAgICAgICAgICAgICAgICB0b3A6IGF1dG87XG4gICAgICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbEFsaWduUmlnaHR9IHtcbiAgICAgICAgICAgICR7U3R5bGVkUmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgIGxlZnQ6IGNhbGModmFyKCR7dG9rZW5zLnNpemV9KSArIHZhcigke3Rva2Vucy5yYWlsVGhpY2tuZXNzfSkpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
|
30
39
|
var SingleWrapper = exports.SingleWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
31
40
|
target: "e75awbu0",
|
32
41
|
label: "plasma-new-hope__SingleWrapper"
|
33
|
-
})("display:flex;opacity:var(", _Slider.tokens.disabledOpacity, ");&.", _Slider.classes.labelPlacementOuter, "{flex-direction:column;", LabelWrapper, "{margin-bottom:var(", _Slider.tokens.labelWrapperMarginBottom, ");}}&.", _Slider.classes.labelPlacementInner, "{", LabelWrapper, "{margin-right:var(", _Slider.tokens.labelWrapperMarginRight, ");}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2luZ2xlL1NpbmdsZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMEV1QyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1NsaWRlci9jb21wb25lbnRzL1NpbmdsZS9TaW5nbGUuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9TbGlkZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IExhYmVsV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gICAgY29sb3I6IHZhcigke3Rva2Vucy5sYWJlbENvbG9yfSk7XG5cbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGdhcDogdmFyKCR7dG9rZW5zLmxhYmVsV3JhcHBlckdhcH0pO1xuYDtcblxuZXhwb3J0IGNvbnN0IExhYmVsQ29udGVudExlZnQgPSBzdHlsZWQuZGl2YGA7XG5cbmV4cG9ydCBjb25zdCBMYWJlbCA9IHN0eWxlZC5sYWJlbGBcbiAgICBmb250LWZhbWlseTogdmFyKCR7dG9rZW5zLmxhYmVsRm9udEZhbWlseX0pO1xuICAgIGZvbnQtc2l6ZTogdmFyKCR7dG9rZW5zLmxhYmVsRm9udFNpemV9KTtcbi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Bjb25zdCBTaW5nbGVXcmFwcGVyID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIG9wYWNpdHk6IHZhcigke3Rva2Vucy5kaXNhYmxlZE9wYWNpdHl9KTtcblxuICAgICYuJHtjbGFzc2VzLmxhYmVsUGxhY2VtZW50T3V0ZXJ9IHtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAke0xhYmVsV3JhcHBlcn0ge1xuICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogdmFyKCR7dG9rZW5zLmxhYmVsV3JhcHBlck1hcmdpbkJvdHRvbX0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMubGFiZWxQbGFjZW1lbnRJbm5lcn0ge1xuICAgICAgICAke0xhYmVsV3JhcHBlcn0ge1xuICAgICAgICAgICAgbWFyZ2luLXJpZ2h0OiB2YXIoJHt0b2tlbnMubGFiZWxXcmFwcGVyTWFyZ2luUmlnaHR9KTtcbiAgICAgICAgfVxuICAgIH1cbmA7XG4iXX0= */"));
|
42
|
+
})("display:flex;opacity:var(", _Slider.tokens.disabledOpacity, ");&.", _Slider.classes.labelPlacementOuter, "{flex-direction:column;", LabelWrapper, "{margin-bottom:var(", _Slider.tokens.labelWrapperMarginBottom, ");}}&.", _Slider.classes.labelPlacementInner, "{", LabelWrapper, "{margin-right:var(", _Slider.tokens.labelWrapperMarginRight, ");}}&.", _Slider.classes.verticalOrientation, "{flex-direction:column;align-items:center;&.", _Slider.classes.labelAlignCenter, "{", LabelWrapper, "{flex-direction:column-reverse;}&.", _Slider.classes.labelPlacementBottom, "{", LabelWrapper, "{flex-direction:column;}&.", _Slider.classes.labelContentReversed, "{", LabelWrapper, "{flex-direction:column-reverse;}}}&.", _Slider.classes.labelContentReversed, "{", LabelWrapper, "{flex-direction:column;}}}", LabelWrapper, "{align-items:center;}", SliderBaseWrapper, "{width:var(", _Slider.tokens.size, ");}&.", _Slider.classes.labelPlacementInner, "{", LabelWrapper, "{margin-right:0;margin-bottom:var(", _Slider.tokens.labelWrapperVerticalMargin, ");}}&.", _Slider.classes.labelAlignLeft, "{align-items:flex-end;", LabelWrapper, "{flex-direction:row-reverse;}}&.", _Slider.classes.labelAlignRight, "{align-items:flex-start;}&.", _Slider.classes.labelPlacementBottom, "{flex-direction:column-reverse;", LabelWrapper, "{margin-top:var(", _Slider.tokens.labelWrapperVerticalMargin, ");margin-right:0;margin-bottom:0;}}}&.", _Slider.classes.verticalOrientation, "{flex-direction:column;align-items:center;justify-content:center;", SliderBaseWrapper, "{flex-direction:column;align-items:center;justify-content:center;}&.", _Slider.classes.labelAlignCenter, "{", StyledRangeValue, "{position:static;bottom:0;left:0;margin-bottom:var(", _Slider.tokens.rangeValueVerticalMargin, ");&.", _Slider.classes.maxRangeValue, "{left:0;right:0;bottom:0;margin-top:var(", _Slider.tokens.rangeValueVerticalMargin, ");margin-bottom:0;}}}&.", _Slider.classes.labelAlignLeft, ",&.", _Slider.classes.labelAlignRight, "{", StyledRangeValue, "{margin-right:0;margin-bottom:0;position:absolute;top:0;right:calc(\n var(", _Slider.tokens.railThickness, ") / 2 + var(", _Slider.tokens.size, ") / 2 +\n var(", _Slider.tokens.rangeValueHorizontalOffset, ")\n );&.", _Slider.classes.maxRangeValue, "{margin-right:0;margin-left:0;top:auto;bottom:0;}}}&.", _Slider.classes.labelAlignRight, "{", StyledRangeValue, "{left:calc(var(", _Slider.tokens.size, ") + var(", _Slider.tokens.railThickness, "));}}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2luZ2xlL1NpbmdsZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNEV1QyI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VyfSB7XG4gICAgICAgICAgICBtYXJnaW4tYm90dG9tOiB2YXIoJHt0b2tlbnMubGFiZWxXcmFwcGVyTWFyZ2luQm90dG9tfSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAmLiR7Y2xhc3Nlcy5sYWJlbFBsYWNlbWVudElubmVyfSB7XG4gICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IHZhcigke3Rva2Vucy5sYWJlbFdyYXBwZXJNYXJnaW5SaWdodH0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudmVydGljYWxPcmllbnRhdGlvbn0ge1xuICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25DZW50ZXJ9IHtcbiAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbi1yZXZlcnNlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbFBsYWNlbWVudEJvdHRvbX0ge1xuICAgICAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxDb250ZW50UmV2ZXJzZWR9IHtcbiAgICAgICAgICAgICAgICAgICAgJHtMYWJlbFdyYXBwZXJ9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW4tcmV2ZXJzZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxDb250ZW50UmV2ZXJzZWR9IHtcbiAgICAgICAgICAgICAgICAke0xhYmVsV3JhcHBlcn0ge1xuICAgICAgICAgICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICB9XG5cbiAgICAgICAgJHtTbGlkZXJCYXNlV3JhcHBlcn0ge1xuICAgICAgICAgICAgd2lkdGg6IHZhcigke3Rva2Vucy5zaXplfSk7XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbFBsYWNlbWVudElubmVyfSB7XG4gICAgICAgICAgICAke0xhYmVsV3JhcHBlcn0ge1xuICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMDtcbiAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiB2YXIoJHt0b2tlbnMubGFiZWxXcmFwcGVyVmVydGljYWxNYXJnaW59KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25MZWZ0fSB7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogZmxleC1lbmQ7XG5cbiAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdy1yZXZlcnNlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubGFiZWxBbGlnblJpZ2h0fSB7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogZmxleC1zdGFydDtcbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsUGxhY2VtZW50Qm90dG9tfSB7XG4gICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uLXJldmVyc2U7XG5cbiAgICAgICAgICAgICR7TGFiZWxXcmFwcGVyfSB7XG4gICAgICAgICAgICAgICAgbWFyZ2luLXRvcDogdmFyKCR7dG9rZW5zLmxhYmVsV3JhcHBlclZlcnRpY2FsTWFyZ2lufSk7XG4gICAgICAgICAgICAgICAgbWFyZ2luLXJpZ2h0OiAwO1xuICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDA7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSB7XG4gICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuXG4gICAgICAgICR7U2xpZGVyQmFzZVdyYXBwZXJ9IHtcbiAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbEFsaWduQ2VudGVyfSB7XG4gICAgICAgICAgICAke1N0eWxlZFJhbmdlVmFsdWV9IHtcbiAgICAgICAgICAgICAgICBwb3NpdGlvbjogc3RhdGljO1xuICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IHZhcigke3Rva2Vucy5yYW5nZVZhbHVlVmVydGljYWxNYXJnaW59KTtcblxuICAgICAgICAgICAgICAgICYuJHtjbGFzc2VzLm1heFJhbmdlVmFsdWV9IHtcbiAgICAgICAgICAgICAgICAgICAgbGVmdDogMDtcbiAgICAgICAgICAgICAgICAgICAgcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luLXRvcDogdmFyKCR7dG9rZW5zLnJhbmdlVmFsdWVWZXJ0aWNhbE1hcmdpbn0pO1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmxhYmVsQWxpZ25MZWZ0fSwgJi4ke2NsYXNzZXMubGFiZWxBbGlnblJpZ2h0fSB7XG4gICAgICAgICAgICAke1N0eWxlZFJhbmdlVmFsdWV9IHtcbiAgICAgICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgICAgICAgdG9wOiAwO1xuXG4gICAgICAgICAgICAgICAgcmlnaHQ6IGNhbGMoXG4gICAgICAgICAgICAgICAgICAgIHZhcigke3Rva2Vucy5yYWlsVGhpY2tuZXNzfSkgLyAyICsgdmFyKCR7dG9rZW5zLnNpemV9KSAvIDIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyKCR7dG9rZW5zLnJhbmdlVmFsdWVIb3Jpem9udGFsT2Zmc2V0fSlcbiAgICAgICAgICAgICAgICApO1xuXG4gICAgICAgICAgICAgICAgJi4ke2NsYXNzZXMubWF4UmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbi1sZWZ0OiAwO1xuICAgICAgICAgICAgICAgICAgICB0b3A6IGF1dG87XG4gICAgICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy5sYWJlbEFsaWduUmlnaHR9IHtcbiAgICAgICAgICAgICR7U3R5bGVkUmFuZ2VWYWx1ZX0ge1xuICAgICAgICAgICAgICAgIGxlZnQ6IGNhbGModmFyKCR7dG9rZW5zLnNpemV9KSArIHZhcigke3Rva2Vucy5yYWlsVGhpY2tuZXNzfSkpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
exports.SliderBase = void 0;
|
8
8
|
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
9
|
var _hooks = /*#__PURE__*/require("../../../../hooks");
|
10
|
+
var _Slider = /*#__PURE__*/require("../../Slider.tokens");
|
11
|
+
var _utils = /*#__PURE__*/require("../../../../utils");
|
10
12
|
var _SliderBase = /*#__PURE__*/require("./SliderBase.styles");
|
11
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
12
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
@@ -22,6 +24,9 @@ var SliderBase = exports.SliderBase = function SliderBase(_ref) {
|
|
22
24
|
labelPlacement = _ref.labelPlacement,
|
23
25
|
rangeValuesPlacement = _ref.rangeValuesPlacement,
|
24
26
|
onChange = _ref.onChange,
|
27
|
+
orientation = _ref.orientation,
|
28
|
+
size = _ref.size,
|
29
|
+
sliderAlign = _ref.sliderAlign,
|
25
30
|
_ref$settings = _ref.settings,
|
26
31
|
settings = _ref$settings === void 0 ? {} : _ref$settings;
|
27
32
|
var _settings$indent = settings.indent,
|
@@ -30,34 +35,43 @@ var SliderBase = exports.SliderBase = function SliderBase(_ref) {
|
|
30
35
|
fontSizeMultiplier = _settings$fontSizeMul === void 0 ? 16 : _settings$fontSizeMul;
|
31
36
|
var ref = (0, _react.useRef)(null);
|
32
37
|
var gap = indent * fontSizeMultiplier * 2;
|
38
|
+
var isVertical = orientation === 'vertical';
|
33
39
|
(0, _react.useEffect)(function () {
|
34
40
|
var resizeHandler = function resizeHandler() {
|
35
41
|
if (ref.current) {
|
36
|
-
var railSize = ref.current.offsetWidth - gap;
|
42
|
+
var railSize = isVertical ? ref.current.offsetHeight - gap : ref.current.offsetWidth - gap;
|
37
43
|
var totalSteps = max - min;
|
38
44
|
setStepSize(railSize / totalSteps);
|
39
45
|
}
|
40
46
|
};
|
41
47
|
resizeHandler();
|
42
|
-
}, [labelPlacement, rangeValuesPlacement
|
48
|
+
}, [labelPlacement, rangeValuesPlacement, gap, isVertical,
|
49
|
+
// для перерасчета размеров
|
50
|
+
size, sliderAlign]);
|
43
51
|
var onHandleChange = function onHandleChange(e) {
|
44
52
|
if (!onChange || disabled) {
|
45
53
|
return;
|
46
54
|
}
|
47
55
|
var _e$currentTarget$getB = e.currentTarget.getBoundingClientRect(),
|
48
56
|
x = _e$currentTarget$getB.x,
|
49
|
-
width = _e$currentTarget$getB.width
|
50
|
-
|
51
|
-
|
57
|
+
width = _e$currentTarget$getB.width,
|
58
|
+
y = _e$currentTarget$getB.y,
|
59
|
+
height = _e$currentTarget$getB.height;
|
60
|
+
var lastPos = isVertical ? e.clientY - y : e.clientX - x;
|
61
|
+
var sliderWidth = isVertical ? height : width;
|
62
|
+
var position = min + lastPos / (sliderWidth - gap) * (max - min);
|
52
63
|
var result = Math.max(min, Math.min(max, position));
|
53
|
-
|
54
|
-
|
55
|
-
}
|
64
|
+
var data = isVertical ? {
|
65
|
+
lastY: lastPos
|
66
|
+
} : {
|
67
|
+
lastX: lastPos
|
68
|
+
};
|
69
|
+
onChange(result, data);
|
56
70
|
};
|
57
71
|
(0, _hooks.useIsomorphicLayoutEffect)(function () {
|
58
72
|
var resizeHandler = function resizeHandler() {
|
59
73
|
if (ref.current) {
|
60
|
-
var railSize = ref.current.offsetWidth - gap;
|
74
|
+
var railSize = isVertical ? ref.current.offsetHeight - gap : ref.current.offsetWidth - gap;
|
61
75
|
var totalSteps = max - min;
|
62
76
|
setStepSize(railSize / totalSteps);
|
63
77
|
}
|
@@ -67,13 +81,18 @@ var SliderBase = exports.SliderBase = function SliderBase(_ref) {
|
|
67
81
|
return function () {
|
68
82
|
return window.removeEventListener('resize', resizeHandler);
|
69
83
|
};
|
70
|
-
}, [min, max, setStepSize, gap, labelPlacement, rangeValuesPlacement]);
|
71
|
-
var fillStyle = {
|
84
|
+
}, [min, max, setStepSize, gap, labelPlacement, rangeValuesPlacement, isVertical]);
|
85
|
+
var fillStyle = isVertical ? {
|
86
|
+
top: "".concat(railFillXPosition, "px"),
|
87
|
+
height: "".concat(railFillWidth, "px"),
|
88
|
+
width: '100%'
|
89
|
+
} : {
|
72
90
|
left: "".concat(railFillXPosition, "px"),
|
73
91
|
width: "".concat(railFillWidth, "px")
|
74
92
|
};
|
75
93
|
return /*#__PURE__*/_react["default"].createElement(_SliderBase.Slider, {
|
76
|
-
ref: ref
|
94
|
+
ref: ref,
|
95
|
+
className: (0, _utils.cx)(orientation === 'vertical' && _Slider.classes.verticalOrientation)
|
77
96
|
}, /*#__PURE__*/_react["default"].createElement(_SliderBase.RailWrap, {
|
78
97
|
"aria-hidden": "true",
|
79
98
|
onMouseDown: onHandleChange
|