@synerise/ds-slider 0.15.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-slider@0.15.6...@synerise/ds-slider@0.15.7) (2025-03-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-slider
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.15.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-slider@0.15.5...@synerise/ds-slider@0.15.6) (2025-03-04)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-slider
|
|
@@ -28,7 +28,7 @@ export var INDEX_MAP = {
|
|
|
28
28
|
};
|
|
29
29
|
export var AllocationSliderWrapper = styled.div.withConfig({
|
|
30
30
|
displayName: "Allocationstyles__AllocationSliderWrapper",
|
|
31
|
-
componentId: "y7ylxd-0"
|
|
31
|
+
componentId: "sc-y7ylxd-0"
|
|
32
32
|
})(["position:relative;", " && ", ""], function (props) {
|
|
33
33
|
return createTracksStyles(props, props.tracksColorMap ? props.tracksColorMap : INDEX_MAP);
|
|
34
34
|
}, function (_ref2) {
|
|
@@ -42,7 +42,7 @@ export var AllocationSliderWrapper = styled.div.withConfig({
|
|
|
42
42
|
});
|
|
43
43
|
export var AllocationSlider = styled(AntdSlider).withConfig({
|
|
44
44
|
displayName: "Allocationstyles__AllocationSlider",
|
|
45
|
-
componentId: "y7ylxd-1"
|
|
45
|
+
componentId: "sc-y7ylxd-1"
|
|
46
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
47
|
return createTracksStyles(props, props.tracksColorMap ? props.tracksColorMap : INDEX_MAP);
|
|
48
48
|
}, function (props) {
|
|
@@ -50,7 +50,7 @@ export var AllocationSlider = styled(AntdSlider).withConfig({
|
|
|
50
50
|
});
|
|
51
51
|
export var Mark = styled.div.withConfig({
|
|
52
52
|
displayName: "Allocationstyles__Mark",
|
|
53
|
-
componentId: "y7ylxd-2"
|
|
53
|
+
componentId: "sc-y7ylxd-2"
|
|
54
54
|
})(["text-align:center;"]);
|
|
55
55
|
var getColor = function getColor(props, defaultColor) {
|
|
56
56
|
if (defaultColor === void 0) {
|
|
@@ -64,7 +64,7 @@ var getColor = function getColor(props, defaultColor) {
|
|
|
64
64
|
};
|
|
65
65
|
export var MarkLetter = styled.div.withConfig({
|
|
66
66
|
displayName: "Allocationstyles__MarkLetter",
|
|
67
|
-
componentId: "y7ylxd-3"
|
|
67
|
+
componentId: "sc-y7ylxd-3"
|
|
68
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) {
|
|
69
69
|
return props.theme.variable('@border-radius-base');
|
|
70
70
|
}, function (props) {
|
|
@@ -72,15 +72,15 @@ export var MarkLetter = styled.div.withConfig({
|
|
|
72
72
|
});
|
|
73
73
|
export var MarkValue = styled.div.withConfig({
|
|
74
74
|
displayName: "Allocationstyles__MarkValue",
|
|
75
|
-
componentId: "y7ylxd-4"
|
|
75
|
+
componentId: "sc-y7ylxd-4"
|
|
76
76
|
})(["display:block;margin-top:-10px;"]);
|
|
77
77
|
export var MarkTooltipWrapper = styled.div.withConfig({
|
|
78
78
|
displayName: "Allocationstyles__MarkTooltipWrapper",
|
|
79
|
-
componentId: "y7ylxd-5"
|
|
79
|
+
componentId: "sc-y7ylxd-5"
|
|
80
80
|
})(["display:block;width:100%;justify-content:center;text-align:center;min-width:14px;"]);
|
|
81
81
|
export var Track = styled.div.withConfig({
|
|
82
82
|
displayName: "Allocationstyles__Track",
|
|
83
|
-
componentId: "y7ylxd-6"
|
|
83
|
+
componentId: "sc-y7ylxd-6"
|
|
84
84
|
})(["width:", "%;height:6px;background-color:", ";border-radius:", ";z-index:", ";"], function (props) {
|
|
85
85
|
return props.width;
|
|
86
86
|
}, function (props) {
|
|
@@ -92,13 +92,13 @@ export var Track = styled.div.withConfig({
|
|
|
92
92
|
});
|
|
93
93
|
export var TrackContainer = styled.div.withConfig({
|
|
94
94
|
displayName: "Allocationstyles__TrackContainer",
|
|
95
|
-
componentId: "y7ylxd-7"
|
|
95
|
+
componentId: "sc-y7ylxd-7"
|
|
96
96
|
})(["display:flex;height:6px;width:100%;overflow:hidden;position:absolute;bottom:3px;& > div:first-child,& > div:last-child{border-radius:20px;}", ";"], function (props) {
|
|
97
97
|
return props.controlGroup && css(["", ":last-child{background-color:", ";}"], Track, props.theme.variable('@gray-color-lighter-4'));
|
|
98
98
|
});
|
|
99
99
|
export var Title = styled.div.withConfig({
|
|
100
100
|
displayName: "Allocationstyles__Title",
|
|
101
|
-
componentId: "y7ylxd-8"
|
|
101
|
+
componentId: "sc-y7ylxd-8"
|
|
102
102
|
})(["color:", ";padding-bottom:32px;font-weight:500;"], function (props) {
|
|
103
103
|
return props.theme.variable('@gray-color-darker-1');
|
|
104
104
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
export var BlockedHandlerWithTooltipWrapper = styled.div.withConfig({
|
|
3
3
|
displayName: "BlockedHandlerWthTooltipstyles__BlockedHandlerWithTooltipWrapper",
|
|
4
|
-
componentId: "rkqwtm-0"
|
|
4
|
+
componentId: "sc-rkqwtm-0"
|
|
5
5
|
})(["position:relative;"]);
|
|
6
6
|
export var ElementOverHandler = styled.div.withConfig({
|
|
7
7
|
displayName: "BlockedHandlerWthTooltipstyles__ElementOverHandler",
|
|
8
|
-
componentId: "rkqwtm-1"
|
|
8
|
+
componentId: "sc-rkqwtm-1"
|
|
9
9
|
})(["width:20px;height:20px;z-index:98;cursor:not-allowed;border-radius:50%;border:3px solid transparent;background-color:transparent;position:absolute;top:-8px;left:", "%;transform:translateX(-50%);"], function (_ref) {
|
|
10
10
|
var position = _ref.position;
|
|
11
11
|
return position;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-slider",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Slider UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
22
|
"build:watch": "npm run build:js -- --watch",
|
|
23
23
|
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
24
|
-
"pack:ci": "npm pack --pack-destination ../../
|
|
24
|
+
"pack:ci": "npm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
25
|
"prepublish": "npm run build",
|
|
26
26
|
"test": "jest",
|
|
27
27
|
"test:watch": "npm run test -- --watchAll",
|
|
@@ -34,9 +34,9 @@
|
|
|
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": "^1.0.0",
|
|
38
|
+
"@synerise/ds-typography": "^1.0.0",
|
|
39
|
+
"@synerise/ds-utils": "^1.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@synerise/ds-core": "*",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
46
46
|
"styled-components": "^5.3.3"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "e4c3690238a44b584b9ea41e4aa52b1eec42174b"
|
|
49
49
|
}
|