@synerise/ds-slider 0.14.8 → 0.15.1
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 +19 -0
- package/dist/Allocation/Allocation.js +6 -4
- package/dist/Allocation/Allocation.styles.d.ts +6 -2
- package/dist/Allocation/Allocation.styles.js +19 -13
- package/dist/Slider.styles.d.ts +2 -1
- package/dist/Slider.types.d.ts +2 -1
- package/dist/modules.d.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/utils/allocation.utils.js +4 -8
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [0.15.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-slider@0.15.0...@synerise/ds-slider@0.15.1) (2025-02-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-slider
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.15.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-slider@0.14.8...@synerise/ds-slider@0.15.0) (2025-01-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* antd@4.24 react@18 ([d97a667](https://github.com/Synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.14.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-slider@0.14.7...@synerise/ds-slider@0.14.8) (2025-01-21)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-slider
|
|
@@ -78,7 +78,10 @@ var Allocation = function Allocation(_ref) {
|
|
|
78
78
|
// eslint-disable-next-line no-unused-expressions
|
|
79
79
|
onAllocationChange == null || onAllocationChange(calculatedVariants);
|
|
80
80
|
};
|
|
81
|
-
return /*#__PURE__*/React.createElement(S.
|
|
81
|
+
return /*#__PURE__*/React.createElement(S.AllocationSliderWrapper, {
|
|
82
|
+
blockedHandlersKeys: blockedHandlersKeys,
|
|
83
|
+
tracksColorMap: tracksColorMap
|
|
84
|
+
}, /*#__PURE__*/React.createElement(S.AllocationSlider, _extends({}, rest, {
|
|
82
85
|
useColorPalette: true,
|
|
83
86
|
tracksColorMap: tracksColorMap,
|
|
84
87
|
dots: false,
|
|
@@ -91,9 +94,8 @@ var Allocation = function Allocation(_ref) {
|
|
|
91
94
|
step: 1,
|
|
92
95
|
tipFormatter: function tipFormatter(value) {
|
|
93
96
|
return /*#__PURE__*/React.createElement(DescriptionWrapper, null, description && /*#__PURE__*/React.createElement(Description, null, description), _tipFormatter && _tipFormatter(value));
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
}), /*#__PURE__*/React.createElement(BlockedHandlersWithTooltip, {
|
|
97
|
+
}
|
|
98
|
+
})), /*#__PURE__*/React.createElement(BlockedHandlersWithTooltip, {
|
|
97
99
|
blockedHandlersKeys: blockedHandlersKeys,
|
|
98
100
|
handlersPosition: currentHandlersPercentagePositions,
|
|
99
101
|
handlers: handlers
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { SliderProps } from '../Slider.types';
|
|
2
3
|
import type { TrackProps } from './Allocation.types';
|
|
3
4
|
export declare const INDEX_MAP: {
|
|
4
5
|
'0': string;
|
|
@@ -12,6 +13,10 @@ export declare const INDEX_MAP: {
|
|
|
12
13
|
'8': string;
|
|
13
14
|
'9': string;
|
|
14
15
|
};
|
|
16
|
+
export declare const AllocationSliderWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
17
|
+
blockedHandlersKeys: number[];
|
|
18
|
+
tracksColorMap: SliderProps['tracksColorMap'];
|
|
19
|
+
}, never>;
|
|
15
20
|
export declare const AllocationSlider: import("styled-components").StyledComponent<import("react").ComponentType<Omit<import("antd/lib/slider").SliderSingleProps | import("antd/lib/slider").SliderRangeProps, "value">>, any, import("../Slider.types").AntdSliderProps & {
|
|
16
21
|
type?: "allocation" | "default" | undefined;
|
|
17
22
|
allocationConfig?: import("./Allocation.types").AllocationConfig | undefined;
|
|
@@ -23,14 +28,13 @@ export declare const AllocationSlider: import("styled-components").StyledCompone
|
|
|
23
28
|
tracksColorMap?: import("../Slider.types").ColorMapProps | undefined;
|
|
24
29
|
thickness?: number | undefined;
|
|
25
30
|
description?: import("react").ReactNode;
|
|
31
|
+
children?: import("react").ReactNode;
|
|
26
32
|
hideMinAndMaxMarks?: boolean | undefined;
|
|
27
33
|
disabled?: boolean | undefined;
|
|
28
34
|
handlers?: import("../Slider.types").HandlerConfig | undefined;
|
|
29
35
|
} & {
|
|
30
36
|
reachedEnd?: boolean | undefined;
|
|
31
37
|
reachedStart?: boolean | undefined;
|
|
32
|
-
} & {
|
|
33
|
-
blockedHandlersKeys: number[];
|
|
34
38
|
}, never>;
|
|
35
39
|
export declare const Mark: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
36
40
|
export declare const MarkLetter: import("styled-components").StyledComponent<"div", any, {
|
|
@@ -26,12 +26,10 @@ export var INDEX_MAP = {
|
|
|
26
26
|
'8': 'violet-600',
|
|
27
27
|
'9': 'fern-600'
|
|
28
28
|
};
|
|
29
|
-
export var
|
|
30
|
-
displayName: "
|
|
29
|
+
export var AllocationSliderWrapper = styled.div.withConfig({
|
|
30
|
+
displayName: "Allocationstyles__AllocationSliderWrapper",
|
|
31
31
|
componentId: "y7ylxd-0"
|
|
32
|
-
})(["
|
|
33
|
-
return createTracksStyles(props, props.tracksColorMap ? props.tracksColorMap : INDEX_MAP);
|
|
34
|
-
}, function (props) {
|
|
32
|
+
})(["position:relative;", " && ", ""], function (props) {
|
|
35
33
|
return createTracksStyles(props, props.tracksColorMap ? props.tracksColorMap : INDEX_MAP);
|
|
36
34
|
}, function (_ref2) {
|
|
37
35
|
var blockedHandlersKeys = _ref2.blockedHandlersKeys,
|
|
@@ -42,9 +40,17 @@ export var AllocationSlider = styled(AntdSlider).withConfig({
|
|
|
42
40
|
cssRule: "\n background-color: " + theme.palette['grey-300'] + ";\n box-shadow:none !important;\n pointer-events: none;\n z-index:97;\n border-color: " + theme.palette.white + " !important;\n "
|
|
43
41
|
});
|
|
44
42
|
});
|
|
43
|
+
export var AllocationSlider = styled(AntdSlider).withConfig({
|
|
44
|
+
displayName: "Allocationstyles__AllocationSlider",
|
|
45
|
+
componentId: "y7ylxd-1"
|
|
46
|
+
})(["", " &.ant-slider:hover{", ";}.ant-slider-handle-value,.ant-slider-rail,.ant-slider-track,.ant-slider-dot{display:none;}&& .ant-slider-mark-text:last-of-type{padding-right:0;}&& .ant-slider-mark-text{user-select:none;}"], function (props) {
|
|
47
|
+
return createTracksStyles(props, props.tracksColorMap ? props.tracksColorMap : INDEX_MAP);
|
|
48
|
+
}, function (props) {
|
|
49
|
+
return createTracksStyles(props, props.tracksColorMap ? props.tracksColorMap : INDEX_MAP);
|
|
50
|
+
});
|
|
45
51
|
export var Mark = styled.div.withConfig({
|
|
46
52
|
displayName: "Allocationstyles__Mark",
|
|
47
|
-
componentId: "y7ylxd-
|
|
53
|
+
componentId: "y7ylxd-2"
|
|
48
54
|
})(["text-align:center;"]);
|
|
49
55
|
var getColor = function getColor(props, defaultColor) {
|
|
50
56
|
if (defaultColor === void 0) {
|
|
@@ -58,7 +64,7 @@ var getColor = function getColor(props, defaultColor) {
|
|
|
58
64
|
};
|
|
59
65
|
export var MarkLetter = styled.div.withConfig({
|
|
60
66
|
displayName: "Allocationstyles__MarkLetter",
|
|
61
|
-
componentId: "y7ylxd-
|
|
67
|
+
componentId: "y7ylxd-3"
|
|
62
68
|
})(["border-radius:", ";width:25px;height:25px;display:inline-block;position:relative;text-align:center;line-height:25px;color:white;top:-70px;background-color:", ";"], function (props) {
|
|
63
69
|
return props.theme.variable('@border-radius-base');
|
|
64
70
|
}, function (props) {
|
|
@@ -66,15 +72,15 @@ export var MarkLetter = styled.div.withConfig({
|
|
|
66
72
|
});
|
|
67
73
|
export var MarkValue = styled.div.withConfig({
|
|
68
74
|
displayName: "Allocationstyles__MarkValue",
|
|
69
|
-
componentId: "y7ylxd-
|
|
75
|
+
componentId: "y7ylxd-4"
|
|
70
76
|
})(["display:block;margin-top:-10px;"]);
|
|
71
77
|
export var MarkTooltipWrapper = styled.div.withConfig({
|
|
72
78
|
displayName: "Allocationstyles__MarkTooltipWrapper",
|
|
73
|
-
componentId: "y7ylxd-
|
|
79
|
+
componentId: "y7ylxd-5"
|
|
74
80
|
})(["display:block;width:100%;justify-content:center;text-align:center;min-width:14px;"]);
|
|
75
81
|
export var Track = styled.div.withConfig({
|
|
76
82
|
displayName: "Allocationstyles__Track",
|
|
77
|
-
componentId: "y7ylxd-
|
|
83
|
+
componentId: "y7ylxd-6"
|
|
78
84
|
})(["width:", "%;height:6px;background-color:", ";border-radius:", ";z-index:", ";"], function (props) {
|
|
79
85
|
return props.width;
|
|
80
86
|
}, function (props) {
|
|
@@ -86,13 +92,13 @@ export var Track = styled.div.withConfig({
|
|
|
86
92
|
});
|
|
87
93
|
export var TrackContainer = styled.div.withConfig({
|
|
88
94
|
displayName: "Allocationstyles__TrackContainer",
|
|
89
|
-
componentId: "y7ylxd-
|
|
90
|
-
})(["display:flex;height:6px;width:100%;overflow:hidden;& > div:first-child,& > div:last-child{border-radius:20px;}", ";"], function (props) {
|
|
95
|
+
componentId: "y7ylxd-7"
|
|
96
|
+
})(["display:flex;height:6px;width:100%;overflow:hidden;position:absolute;bottom:3px;& > div:first-child,& > div:last-child{border-radius:20px;}", ";"], function (props) {
|
|
91
97
|
return props.controlGroup && css(["", ":last-child{background-color:", ";}"], Track, props.theme.variable('@gray-color-lighter-4'));
|
|
92
98
|
});
|
|
93
99
|
export var Title = styled.div.withConfig({
|
|
94
100
|
displayName: "Allocationstyles__Title",
|
|
95
|
-
componentId: "y7ylxd-
|
|
101
|
+
componentId: "y7ylxd-8"
|
|
96
102
|
})(["color:", ";padding-bottom:32px;font-weight:500;"], function (props) {
|
|
97
103
|
return props.theme.variable('@gray-color-darker-1');
|
|
98
104
|
});
|
package/dist/Slider.styles.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const Description: import("styled-components").StyledComponent<"d
|
|
|
10
10
|
export declare const LabelWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
11
|
export declare const DescriptionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
12
|
export declare const applyTooltipStyles: (props: ThemeProps & DsSliderProps & SliderStyles) => FlattenSimpleInterpolation;
|
|
13
|
-
export declare const createTracksStyles: (props: ThemeProps
|
|
13
|
+
export declare const createTracksStyles: (props: ThemeProps, colorsMap: ColorMapProps) => FlattenSimpleInterpolation;
|
|
14
14
|
type SliderStyles = {
|
|
15
15
|
reachedEnd?: boolean;
|
|
16
16
|
reachedStart?: boolean;
|
|
@@ -26,6 +26,7 @@ export declare const AntdSlider: import("styled-components").StyledComponent<Com
|
|
|
26
26
|
tracksColorMap?: ColorMapProps | undefined;
|
|
27
27
|
thickness?: number | undefined;
|
|
28
28
|
description?: import("react").ReactNode;
|
|
29
|
+
children?: import("react").ReactNode;
|
|
29
30
|
hideMinAndMaxMarks?: boolean | undefined;
|
|
30
31
|
disabled?: boolean | undefined;
|
|
31
32
|
handlers?: import("./Slider.types").HandlerConfig | undefined;
|
package/dist/Slider.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import { SliderSingleProps, SliderRangeProps } from 'antd/lib/slider';
|
|
2
|
+
import type { SliderSingleProps, SliderRangeProps } from 'antd/lib/slider';
|
|
3
3
|
import type { TooltipProps } from '@synerise/ds-tooltip';
|
|
4
4
|
import { AllocationConfig } from './Allocation/Allocation.types';
|
|
5
5
|
type AntSliderProps = SliderSingleProps | SliderRangeProps;
|
|
@@ -26,6 +26,7 @@ export type SliderProps = AntdSliderProps & {
|
|
|
26
26
|
tracksColorMap?: ColorMapProps;
|
|
27
27
|
thickness?: number;
|
|
28
28
|
description?: ReactNode;
|
|
29
|
+
children?: ReactNode;
|
|
29
30
|
hideMinAndMaxMarks?: boolean;
|
|
30
31
|
disabled?: boolean;
|
|
31
32
|
handlers?: HandlerConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/dist/style/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ant-
|
|
1
|
+
.ant-slider{box-sizing:border-box;margin:0;padding:0;color:#6a7580;font-size:13px;font-variant:tabular-nums;line-height:1.38;list-style:none;font-feature-settings:'tnum';position:relative;height:12px;margin:32px 0 10px;padding:4px 0;cursor:pointer;touch-action:none}.ant-slider-vertical{width:12px;height:100%;margin:6px 10px;padding:0 4px}.ant-slider-vertical .ant-slider-rail{width:4px;height:100%}.ant-slider-vertical .ant-slider-track{width:4px}.ant-slider-vertical .ant-slider-handle{margin-top:-6px;margin-left:-5px}.ant-slider-vertical .ant-slider-mark{top:0;left:12px;width:18px;height:100%}.ant-slider-vertical .ant-slider-mark-text{left:4px;white-space:nowrap}.ant-slider-vertical .ant-slider-step{width:4px;height:100%}.ant-slider-vertical .ant-slider-dot{top:auto;margin-left:-2px}.ant-slider-tooltip .ant-tooltip-inner{min-width:unset}.ant-slider-rtl.ant-slider-vertical .ant-slider-handle{margin-right:-5px;margin-left:0}.ant-slider-rtl.ant-slider-vertical .ant-slider-mark{right:12px;left:auto}.ant-slider-rtl.ant-slider-vertical .ant-slider-mark-text{right:4px;left:auto}.ant-slider-rtl.ant-slider-vertical .ant-slider-dot{right:2px;left:auto}.ant-slider-with-marks{margin-bottom:28px}.ant-slider-rail{position:absolute;width:100%;height:4px;background-color:#dbe0e3;border-radius:3px;transition:background-color .3s}.ant-slider-track{position:absolute;height:4px;background-color:#54cb0b;border-radius:3px;transition:background-color .3s}.ant-slider-handle{position:absolute;width:14px;height:14px;margin-top:-5px;background-color:#fff;border:solid 2px #b5bdc3;border-radius:50%;box-shadow:0;cursor:pointer;transition:border-color .3s,box-shadow .6s,transform .3s cubic-bezier(.18,.89,.32,1.28)}.ant-slider-handle-dragging{z-index:1}.ant-slider-handle:focus{border-color:#3c86ff;outline:0;box-shadow:0 0 0 5px #85b4ff}.ant-slider-handle.ant-tooltip-open{border-color:#0b68ff}.ant-slider-handle::after{position:absolute;top:-6px;right:-6px;bottom:-6px;left:-6px;content:''}.ant-slider:hover .ant-slider-rail{background-color:#e9edee}.ant-slider:hover .ant-slider-track{background-color:#76dc25}.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open){border-color:#949ea6}.ant-slider-mark{position:absolute;top:14px;left:0;width:100%;font-size:13px}.ant-slider-mark-text{position:absolute;display:inline-block;color:#232936;text-align:center;word-break:keep-all;cursor:pointer;user-select:none}.ant-slider-mark-text-active{color:#6a7580}.ant-slider-step{position:absolute;width:100%;height:4px;background:0 0;pointer-events:none}.ant-slider-dot{position:absolute;top:-2px;width:8px;height:8px;background-color:#fff;border:2px solid #e9edee;border-radius:50%;cursor:pointer}.ant-slider-dot-active{border-color:#85b4ff}.ant-slider-disabled{cursor:not-allowed}.ant-slider-disabled .ant-slider-rail{background-color:#dbe0e3!important}.ant-slider-disabled .ant-slider-track{background-color:#b5bdc3!important}.ant-slider-disabled .ant-slider-dot,.ant-slider-disabled .ant-slider-handle{background-color:#fff;border-color:#b5bdc3!important;box-shadow:none;cursor:not-allowed}.ant-slider-disabled .ant-slider-dot,.ant-slider-disabled .ant-slider-mark-text{cursor:not-allowed!important}.ant-slider-rtl{direction:rtl}.ant-slider-rtl .ant-slider-mark{right:0;left:auto}.ant-slider.ant-slider-inverted .ant-slider-rail{background-color:#54cb0b}.ant-slider.ant-slider-inverted .ant-slider-track{background-color:#dbe0e3}.ant-slider.ant-slider-inverted .ant-slider-dot{background-color:#54cb0b}.ant-slider.ant-slider-inverted .ant-slider-dot-active{background-color:#dbe0e3}.ant-slider.ant-slider-inverted:hover .ant-slider-rail{background-color:#76dc25}.ant-slider.ant-slider-inverted:hover .ant-slider-track{background-color:#e9edee}.ant-slider-handle-value{width:100px;display:block;position:relative;left:-45px;text-align:center;top:-30px;color:#6a7580;font-weight:500}.ant-slider-rail{height:6px;border-radius:3px;background-color:#e9edee}.ant-slider-track{background-color:#54cb0b}.ant-slider-step,.ant-slider-track{height:6px}.ant-slider-mark-text{color:#949ea6;margin:16px 0 24px 3px}.ant-slider-with-marks{margin-bottom:44px}.ant-slider-handle{margin-left:0;margin-top:-7px;width:20px;height:20px;cursor:pointer;border-radius:50%;border:3px solid #fff;background-color:#b5bdc3}.ant-slider-handle:focus{background-color:#0b68ff;box-shadow:0 0 0 3px rgba(35,138,254,.25);border-color:#fff;outline:0}.ant-slider-handle:focus.ant-tooltip-open{background-color:#0b68ff}.ant-slider-handle.ant-tooltip-open{background-color:#b5bdc3;border-color:#fff}.ant-slider-dot{top:-3px;border:3px solid #fff;width:12px;height:12px;background:#dbe0e3}.ant-slider-dot-active{background:#54cb0b}.ant-slider:hover .ant-slider-rail{background-color:#dbe0e3}.ant-slider:hover .ant-slider-track{background-color:#76dc25}.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open){border-color:#fff}.ant-slider-tooltip .ant-tooltip-inner{background-color:transparent;color:#6a7580;box-shadow:none;font-size:13px;line-height:18px;padding:3px 7px}.ant-slider-disabled .ant-slider-handle{background-color:#dbe0e3;border-color:#fff!important}.ant-slider-disabled .ant-slider-dot{top:-3px;border:3px solid #e9edee!important;width:12px;height:12px;background:#fff}.ant-slider-disabled .ant-slider-dot-active{border:3px solid #b5bdc3!important}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
function
|
|
2
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
5
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1
|
+
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); }
|
|
6
2
|
export var countControlGroupAllocation = function countControlGroupAllocation(userAllocation) {
|
|
7
3
|
return 100 - userAllocation.reduce(function (prev, curr) {
|
|
8
4
|
return prev + curr;
|
|
@@ -41,7 +37,7 @@ export var mergeAllocationWithVariants = function mergeAllocationWithVariants(va
|
|
|
41
37
|
variants = [];
|
|
42
38
|
}
|
|
43
39
|
return variants.map(function (v, index) {
|
|
44
|
-
return
|
|
40
|
+
return _extends({}, v, {
|
|
45
41
|
percentage: allocation[index]
|
|
46
42
|
});
|
|
47
43
|
});
|
|
@@ -70,8 +66,8 @@ export var mapUserAllocationToMarks = function mapUserAllocationToMarks(userAllo
|
|
|
70
66
|
}, 0) : 0)
|
|
71
67
|
};
|
|
72
68
|
}).reduce(function (result, item, index) {
|
|
73
|
-
var
|
|
74
|
-
return
|
|
69
|
+
var _extends2;
|
|
70
|
+
return _extends({}, result, (_extends2 = {}, _extends2[item.view] = markRenderer(item.value, index, variants), _extends2));
|
|
75
71
|
}, {});
|
|
76
72
|
};
|
|
77
73
|
export var mapSliderValueToVariants = function mapSliderValueToVariants(value, variants) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-slider",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Slider UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-tooltip": "^0.
|
|
38
|
-
"@synerise/ds-typography": "^0.
|
|
39
|
-
"@synerise/ds-utils": "^0.
|
|
37
|
+
"@synerise/ds-tooltip": "^0.15.1",
|
|
38
|
+
"@synerise/ds-typography": "^0.17.1",
|
|
39
|
+
"@synerise/ds-utils": "^0.32.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@synerise/ds-core": "*",
|
|
43
|
-
"antd": "4.
|
|
44
|
-
"react": ">=16.9.0 <=
|
|
43
|
+
"antd": "4.24.16",
|
|
44
|
+
"react": ">=16.9.0 <= 18.3.1",
|
|
45
45
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
46
|
-
"styled-components": "5.
|
|
46
|
+
"styled-components": "^5.3.3"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "38cb22e1c46d175306dd87e10649410eb93a4e44"
|
|
49
49
|
}
|