@synerise/ds-slider 0.12.25 → 0.12.27
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/Slider.styles.js +1 -1
- package/package.json +5 -5
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.12.27](https://github.com/Synerise/synerise-design/compare/@synerise/ds-slider@0.12.26...@synerise/ds-slider@0.12.27) (2023-09-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-slider
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.12.26](https://github.com/Synerise/synerise-design/compare/@synerise/ds-slider@0.12.25...@synerise/ds-slider@0.12.26) (2023-09-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **slider:** force slider tooltips to single line ([1a3069c](https://github.com/Synerise/synerise-design/commit/1a3069cd8285eb87ea16bda17e6b96984b14c23f))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.12.25](https://github.com/Synerise/synerise-design/compare/@synerise/ds-slider@0.12.24...@synerise/ds-slider@0.12.25) (2023-09-05)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-slider
|
package/dist/Slider.styles.js
CHANGED
|
@@ -29,7 +29,7 @@ export var DescriptionWrapper = styled.div.withConfig({
|
|
|
29
29
|
componentId: "sc-1gtvqj9-2"
|
|
30
30
|
})(["display:flex;direction:column;align-items:center;justify-content:center;position:relative;user-select:none;bottom:0;right:0;"]);
|
|
31
31
|
export var applyTooltipStyles = function applyTooltipStyles(props) {
|
|
32
|
-
return css([".ant-tooltip-inner{font-size:13px;padding:3px 7px;user-select:none;}", " ", " &&&.ant-slider-disabled{.ant-slider-dot-active{background-color:", ";}.ant-slider-rail{background-color:", ";}}.ant-slider-handle:hover,.ant-slider-handle:focus{", "}.ant-slider-handle:focus{", " .ant-slider-handle:hover:not(:focus){background-color:", ";}.ant-slider-handle:not(:focus){.ant-tooltip-content:hover{background-color:transparent !important;border-radius:3px;}.ant-tooltip-inner:hover{color:", " !important;}}.ant-slider-dot[style*='left: 100%;'],.ant-slider-dot:first-of-type{visibility:", ";}.ant-slider-mark-text:last-of-type{padding-right:30px;}.ant-slider-mark-text:last-of-type{", "}.ant-slider-mark-text:first-of-type{", "}.ant-slider-handle-dragging{border-color:", " !important;box-shadow:0 0 0 3px rgba(35,138,254,0.25) !important;}"], props.disabled && ".ant-tooltip-inner {\n color: " + props.theme.palette['grey-400'] + ";\n }\n ", props.disabled && ".ant-slider-dot {\n background-color: " + props.theme.palette.white + ";\n }\n ", props.theme.palette.white, props.theme.palette['grey-200'], !props.disabled && "\n .ant-tooltip-content {\n background-color: " + props.theme.palette['grey-900'] + ";\n border-radius: 3px;\n }\n " + Description + " {\n color: " + (!props.disabled && props.theme.palette['grey-600']) + ";\n }\n .ant-tooltip-inner {\n color: " + props.theme.palette['grey-050'] + ";\n }\n ", !props.disabled && "\n " + Description + " {\n " + (props.range && "opacity: 1") + ";\n }\n }\n ", !props.disabled && props.theme.palette['grey-500'], !props.disabled && props.theme.palette['grey-600'], props.hideMinAndMaxMarks ? 'hidden' : 'visible', props.reachedEnd && "opacity: 0", props.reachedStart && "opacity: 0", props.theme.palette['grey-050']);
|
|
32
|
+
return css([".ant-tooltip-inner{font-size:13px;padding:3px 7px;user-select:none;white-space:nowrap;}", " ", " &&&.ant-slider-disabled{.ant-slider-dot-active{background-color:", ";}.ant-slider-rail{background-color:", ";}}.ant-slider-handle:hover,.ant-slider-handle:focus{", "}.ant-slider-handle:focus{", " .ant-slider-handle:hover:not(:focus){background-color:", ";}.ant-slider-handle:not(:focus){.ant-tooltip-content:hover{background-color:transparent !important;border-radius:3px;}.ant-tooltip-inner:hover{color:", " !important;}}.ant-slider-dot[style*='left: 100%;'],.ant-slider-dot:first-of-type{visibility:", ";}.ant-slider-mark-text:last-of-type{padding-right:30px;}.ant-slider-mark-text:last-of-type{", "}.ant-slider-mark-text:first-of-type{", "}.ant-slider-handle-dragging{border-color:", " !important;box-shadow:0 0 0 3px rgba(35,138,254,0.25) !important;}"], props.disabled && ".ant-tooltip-inner {\n color: " + props.theme.palette['grey-400'] + ";\n }\n ", props.disabled && ".ant-slider-dot {\n background-color: " + props.theme.palette.white + ";\n }\n ", props.theme.palette.white, props.theme.palette['grey-200'], !props.disabled && "\n .ant-tooltip-content {\n background-color: " + props.theme.palette['grey-900'] + ";\n border-radius: 3px;\n }\n " + Description + " {\n color: " + (!props.disabled && props.theme.palette['grey-600']) + ";\n }\n .ant-tooltip-inner {\n color: " + props.theme.palette['grey-050'] + ";\n }\n ", !props.disabled && "\n " + Description + " {\n " + (props.range && "opacity: 1") + ";\n }\n }\n ", !props.disabled && props.theme.palette['grey-500'], !props.disabled && props.theme.palette['grey-600'], props.hideMinAndMaxMarks ? 'hidden' : 'visible', props.reachedEnd && "opacity: 0", props.reachedStart && "opacity: 0", props.theme.palette['grey-050']);
|
|
33
33
|
};
|
|
34
34
|
export var createTracksStyles = function createTracksStyles(props, colorsMap) {
|
|
35
35
|
var styles = Object.values(colorsMap).map(function (color, index) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-slider",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.27",
|
|
4
4
|
"description": "Slider UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
36
|
-
"@synerise/ds-typography": "^0.
|
|
35
|
+
"@synerise/ds-tooltip": "^0.14.4",
|
|
36
|
+
"@synerise/ds-typography": "^0.13.0",
|
|
37
37
|
"react-intl": "3.12.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"styled-components": "5.0.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@synerise/ds-utils": "^0.24.
|
|
46
|
+
"@synerise/ds-utils": "^0.24.16",
|
|
47
47
|
"@testing-library/react": "10.0.1"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "f1f520c4c5ef9f90bacb5d5e0b2e778ceb8fdf79"
|
|
50
50
|
}
|