@alfalab/core-components-slider-input 5.0.4 → 5.0.5

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
+ ## [5.0.5](https://github.com/core-ds/core-components/compare/@alfalab/core-components-slider-input@5.0.4...@alfalab/core-components-slider-input@5.0.5) (2022-07-25)
7
+
8
+ **Note:** Version bump only for package @alfalab/core-components-slider-input
9
+
10
+
11
+
12
+
13
+
6
14
  ## [5.0.4](https://github.com/core-ds/core-components/compare/@alfalab/core-components-slider-input@5.0.3...@alfalab/core-components-slider-input@5.0.4) (2022-07-18)
7
15
 
8
16
  **Note:** Version bump only for package @alfalab/core-components-slider-input
package/Component.js CHANGED
@@ -51,7 +51,7 @@ function __rest(s, e) {
51
51
  return t;
52
52
  }
53
53
 
54
- var styles = {"component":"slider-input__component_xcq6w","block":"slider-input__block_xcq6w","slider":"slider-input__slider_xcq6w","field":"slider-input__field_xcq6w","input":"slider-input__input_xcq6w","steps":"slider-input__steps_xcq6w","info":"slider-input__info_xcq6w","s":"slider-input__s_xcq6w","hasLabel":"slider-input__hasLabel_xcq6w","m":"slider-input__m_xcq6w","l":"slider-input__l_xcq6w","xl":"slider-input__xl_xcq6w","focused":"slider-input__focused_xcq6w","filled":"slider-input__filled_xcq6w"};
54
+ var styles = {"component":"slider-input__component_gh39k","block":"slider-input__block_gh39k","slider":"slider-input__slider_gh39k","field":"slider-input__field_gh39k","input":"slider-input__input_gh39k","steps":"slider-input__steps_gh39k","info":"slider-input__info_gh39k","s":"slider-input__s_gh39k","hasLabel":"slider-input__hasLabel_gh39k","m":"slider-input__m_gh39k","l":"slider-input__l_gh39k","xl":"slider-input__xl_gh39k","focused":"slider-input__focused_gh39k","filled":"slider-input__filled_gh39k"};
55
55
  require('./index.css')
56
56
 
57
57
  var SliderInput = React.forwardRef(function (_a, ref) {
package/esm/Component.js CHANGED
@@ -42,7 +42,7 @@ function __rest(s, e) {
42
42
  return t;
43
43
  }
44
44
 
45
- var styles = {"component":"slider-input__component_xcq6w","block":"slider-input__block_xcq6w","slider":"slider-input__slider_xcq6w","field":"slider-input__field_xcq6w","input":"slider-input__input_xcq6w","steps":"slider-input__steps_xcq6w","info":"slider-input__info_xcq6w","s":"slider-input__s_xcq6w","hasLabel":"slider-input__hasLabel_xcq6w","m":"slider-input__m_xcq6w","l":"slider-input__l_xcq6w","xl":"slider-input__xl_xcq6w","focused":"slider-input__focused_xcq6w","filled":"slider-input__filled_xcq6w"};
45
+ var styles = {"component":"slider-input__component_gh39k","block":"slider-input__block_gh39k","slider":"slider-input__slider_gh39k","field":"slider-input__field_gh39k","input":"slider-input__input_gh39k","steps":"slider-input__steps_gh39k","info":"slider-input__info_gh39k","s":"slider-input__s_gh39k","hasLabel":"slider-input__hasLabel_gh39k","m":"slider-input__m_gh39k","l":"slider-input__l_gh39k","xl":"slider-input__xl_gh39k","focused":"slider-input__focused_gh39k","filled":"slider-input__filled_gh39k"};
46
46
  require('./index.css')
47
47
 
48
48
  var SliderInput = forwardRef(function (_a, ref) {
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1sf89 */
1
+ /* hash: 1xlag */
2
2
  :root {
3
3
  --color-light-text-secondary: #546272;
4
4
  }
@@ -23,34 +23,34 @@
23
23
  --slider-input-info-color: var(--color-light-text-secondary);
24
24
  --slider-input-font-weight: 700;
25
25
  }
26
- .slider-input__component_xcq6w {
26
+ .slider-input__component_gh39k {
27
27
  position: relative;
28
28
  display: inline-block;
29
29
  }
30
- .slider-input__block_xcq6w {
30
+ .slider-input__block_gh39k {
31
31
  display: block;
32
32
  }
33
- .slider-input__slider_xcq6w {
33
+ .slider-input__slider_gh39k {
34
34
  margin-top: calc(var(--slider-progress-s-height) / -2);
35
35
  transform: translateY(-1px)
36
36
  }
37
- .slider-input__slider_xcq6w + * {
37
+ .slider-input__slider_gh39k + * {
38
38
  margin-top: var(--gap-xs);
39
39
  }
40
- .slider-input__field_xcq6w {
40
+ .slider-input__field_gh39k {
41
41
  border-bottom-left-radius: 0;
42
42
  border-bottom-right-radius: 0;
43
43
  }
44
- .slider-input__input_xcq6w input,
45
- .slider-input__input_xcq6w input + div {
44
+ .slider-input__input_gh39k input,
45
+ .slider-input__input_gh39k input + div {
46
46
  font-weight: var(--slider-input-font-weight);
47
47
  font-feature-settings: "tnum";
48
48
  font-variant-numeric: tabular-nums;
49
49
  }
50
- .slider-input__input_xcq6w input::placeholder {
50
+ .slider-input__input_gh39k input::placeholder {
51
51
  font-weight: 400;
52
52
  }
53
- .slider-input__steps_xcq6w {
53
+ .slider-input__steps_gh39k {
54
54
  font-size: 14px;
55
55
  line-height: 18px;
56
56
  font-weight: 400;
@@ -60,7 +60,7 @@
60
60
  margin-top: var(--gap-xs);
61
61
  color: var(--slider-input-steps-color);
62
62
  }
63
- .slider-input__info_xcq6w {
63
+ .slider-input__info_gh39k {
64
64
  font-size: 16px;
65
65
  line-height: 20px;
66
66
  font-weight: 400;
@@ -71,28 +71,28 @@
71
71
  transition: 0.2s ease;
72
72
  visibility: hidden;
73
73
  }
74
- .slider-input__s_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
74
+ .slider-input__s_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
75
75
  padding: var(--form-control-labeled-s-paddings);
76
76
  padding-left: 0;
77
77
  padding-right: 0;
78
78
  }
79
- .slider-input__m_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
79
+ .slider-input__m_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
80
80
  padding: var(--form-control-labeled-m-paddings);
81
81
  padding-left: 0;
82
82
  padding-right: 0;
83
83
  }
84
- .slider-input__l_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
84
+ .slider-input__l_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
85
85
  padding: var(--form-control-labeled-l-paddings);
86
86
  padding-left: 0;
87
87
  padding-right: 0;
88
88
  }
89
- .slider-input__xl_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
89
+ .slider-input__xl_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
90
90
  padding: var(--form-control-labeled-xl-paddings);
91
91
  padding-left: 0;
92
92
  padding-right: 0;
93
93
  }
94
- .slider-input__focused_xcq6w .slider-input__info_xcq6w,
95
- .slider-input__filled_xcq6w .slider-input__info_xcq6w {
94
+ .slider-input__focused_gh39k .slider-input__info_gh39k,
95
+ .slider-input__filled_gh39k .slider-input__info_gh39k {
96
96
  visibility: visible;
97
97
  opacity: 1;
98
98
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1sf89 */
1
+ /* hash: 1xlag */
2
2
  :root {
3
3
  --color-light-text-secondary: #546272;
4
4
  }
@@ -23,34 +23,34 @@
23
23
  --slider-input-info-color: var(--color-light-text-secondary);
24
24
  --slider-input-font-weight: 700;
25
25
  }
26
- .slider-input__component_xcq6w {
26
+ .slider-input__component_gh39k {
27
27
  position: relative;
28
28
  display: inline-block;
29
29
  }
30
- .slider-input__block_xcq6w {
30
+ .slider-input__block_gh39k {
31
31
  display: block;
32
32
  }
33
- .slider-input__slider_xcq6w {
33
+ .slider-input__slider_gh39k {
34
34
  margin-top: calc(var(--slider-progress-s-height) / -2);
35
35
  transform: translateY(-1px)
36
36
  }
37
- .slider-input__slider_xcq6w + * {
37
+ .slider-input__slider_gh39k + * {
38
38
  margin-top: var(--gap-xs);
39
39
  }
40
- .slider-input__field_xcq6w {
40
+ .slider-input__field_gh39k {
41
41
  border-bottom-left-radius: 0;
42
42
  border-bottom-right-radius: 0;
43
43
  }
44
- .slider-input__input_xcq6w input,
45
- .slider-input__input_xcq6w input + div {
44
+ .slider-input__input_gh39k input,
45
+ .slider-input__input_gh39k input + div {
46
46
  font-weight: var(--slider-input-font-weight);
47
47
  font-feature-settings: "tnum";
48
48
  font-variant-numeric: tabular-nums;
49
49
  }
50
- .slider-input__input_xcq6w input::placeholder {
50
+ .slider-input__input_gh39k input::placeholder {
51
51
  font-weight: 400;
52
52
  }
53
- .slider-input__steps_xcq6w {
53
+ .slider-input__steps_gh39k {
54
54
  font-size: 14px;
55
55
  line-height: 18px;
56
56
  font-weight: 400;
@@ -60,7 +60,7 @@
60
60
  margin-top: var(--gap-xs);
61
61
  color: var(--slider-input-steps-color);
62
62
  }
63
- .slider-input__info_xcq6w {
63
+ .slider-input__info_gh39k {
64
64
  font-size: 16px;
65
65
  line-height: 20px;
66
66
  font-weight: 400;
@@ -71,28 +71,28 @@
71
71
  transition: 0.2s ease;
72
72
  visibility: hidden;
73
73
  }
74
- .slider-input__s_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
74
+ .slider-input__s_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
75
75
  padding: var(--form-control-labeled-s-paddings);
76
76
  padding-left: 0;
77
77
  padding-right: 0;
78
78
  }
79
- .slider-input__m_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
79
+ .slider-input__m_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
80
80
  padding: var(--form-control-labeled-m-paddings);
81
81
  padding-left: 0;
82
82
  padding-right: 0;
83
83
  }
84
- .slider-input__l_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
84
+ .slider-input__l_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
85
85
  padding: var(--form-control-labeled-l-paddings);
86
86
  padding-left: 0;
87
87
  padding-right: 0;
88
88
  }
89
- .slider-input__xl_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
89
+ .slider-input__xl_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
90
90
  padding: var(--form-control-labeled-xl-paddings);
91
91
  padding-left: 0;
92
92
  padding-right: 0;
93
93
  }
94
- .slider-input__focused_xcq6w .slider-input__info_xcq6w,
95
- .slider-input__filled_xcq6w .slider-input__info_xcq6w {
94
+ .slider-input__focused_gh39k .slider-input__info_gh39k,
95
+ .slider-input__filled_gh39k .slider-input__info_gh39k {
96
96
  visibility: visible;
97
97
  opacity: 1;
98
98
  }
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { Slider } from '@alfalab/core-components-slider/modern';
4
4
  import { Input } from '@alfalab/core-components-input/modern';
5
5
 
6
- var styles = {"component":"slider-input__component_xcq6w","block":"slider-input__block_xcq6w","slider":"slider-input__slider_xcq6w","field":"slider-input__field_xcq6w","input":"slider-input__input_xcq6w","steps":"slider-input__steps_xcq6w","info":"slider-input__info_xcq6w","s":"slider-input__s_xcq6w","hasLabel":"slider-input__hasLabel_xcq6w","m":"slider-input__m_xcq6w","l":"slider-input__l_xcq6w","xl":"slider-input__xl_xcq6w","focused":"slider-input__focused_xcq6w","filled":"slider-input__filled_xcq6w"};
6
+ var styles = {"component":"slider-input__component_gh39k","block":"slider-input__block_gh39k","slider":"slider-input__slider_gh39k","field":"slider-input__field_gh39k","input":"slider-input__input_gh39k","steps":"slider-input__steps_gh39k","info":"slider-input__info_gh39k","s":"slider-input__s_gh39k","hasLabel":"slider-input__hasLabel_gh39k","m":"slider-input__m_gh39k","l":"slider-input__l_gh39k","xl":"slider-input__xl_gh39k","focused":"slider-input__focused_gh39k","filled":"slider-input__filled_gh39k"};
7
7
  require('./index.css')
8
8
 
9
9
  const SliderInput = forwardRef(({ className, inputClassName, sliderClassName, focusedClassName, fieldClassName, value = '', min = 0, max = 100, step = 1, block, sliderValue = +value, size = 's', label, info, disabled, readOnly, onChange, onInputChange, onSliderChange, rightAddons, Input: Input$1 = Input, customInputProps = {}, error, hint, pips, range, dataTestId, ...restProps }, ref) => {
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1sf89 */
1
+ /* hash: 1xlag */
2
2
  :root {
3
3
  --color-light-text-secondary: #546272;
4
4
  }
@@ -23,34 +23,34 @@
23
23
  --slider-input-info-color: var(--color-light-text-secondary);
24
24
  --slider-input-font-weight: 700;
25
25
  }
26
- .slider-input__component_xcq6w {
26
+ .slider-input__component_gh39k {
27
27
  position: relative;
28
28
  display: inline-block;
29
29
  }
30
- .slider-input__block_xcq6w {
30
+ .slider-input__block_gh39k {
31
31
  display: block;
32
32
  }
33
- .slider-input__slider_xcq6w {
33
+ .slider-input__slider_gh39k {
34
34
  margin-top: calc(var(--slider-progress-s-height) / -2);
35
35
  transform: translateY(-1px)
36
36
  }
37
- .slider-input__slider_xcq6w + * {
37
+ .slider-input__slider_gh39k + * {
38
38
  margin-top: var(--gap-xs);
39
39
  }
40
- .slider-input__field_xcq6w {
40
+ .slider-input__field_gh39k {
41
41
  border-bottom-left-radius: 0;
42
42
  border-bottom-right-radius: 0;
43
43
  }
44
- .slider-input__input_xcq6w input,
45
- .slider-input__input_xcq6w input + div {
44
+ .slider-input__input_gh39k input,
45
+ .slider-input__input_gh39k input + div {
46
46
  font-weight: var(--slider-input-font-weight);
47
47
  font-feature-settings: "tnum";
48
48
  font-variant-numeric: tabular-nums;
49
49
  }
50
- .slider-input__input_xcq6w input::placeholder {
50
+ .slider-input__input_gh39k input::placeholder {
51
51
  font-weight: 400;
52
52
  }
53
- .slider-input__steps_xcq6w {
53
+ .slider-input__steps_gh39k {
54
54
  font-size: 14px;
55
55
  line-height: 18px;
56
56
  font-weight: 400;
@@ -60,7 +60,7 @@
60
60
  margin-top: var(--gap-xs);
61
61
  color: var(--slider-input-steps-color);
62
62
  }
63
- .slider-input__info_xcq6w {
63
+ .slider-input__info_gh39k {
64
64
  font-size: 16px;
65
65
  line-height: 20px;
66
66
  font-weight: 400;
@@ -71,28 +71,28 @@
71
71
  transition: 0.2s ease;
72
72
  visibility: hidden;
73
73
  }
74
- .slider-input__s_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
74
+ .slider-input__s_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
75
75
  padding: var(--form-control-labeled-s-paddings);
76
76
  padding-left: 0;
77
77
  padding-right: 0;
78
78
  }
79
- .slider-input__m_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
79
+ .slider-input__m_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
80
80
  padding: var(--form-control-labeled-m-paddings);
81
81
  padding-left: 0;
82
82
  padding-right: 0;
83
83
  }
84
- .slider-input__l_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
84
+ .slider-input__l_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
85
85
  padding: var(--form-control-labeled-l-paddings);
86
86
  padding-left: 0;
87
87
  padding-right: 0;
88
88
  }
89
- .slider-input__xl_xcq6w.slider-input__hasLabel_xcq6w .slider-input__info_xcq6w:first-child {
89
+ .slider-input__xl_gh39k.slider-input__hasLabel_gh39k .slider-input__info_gh39k:first-child {
90
90
  padding: var(--form-control-labeled-xl-paddings);
91
91
  padding-left: 0;
92
92
  padding-right: 0;
93
93
  }
94
- .slider-input__focused_xcq6w .slider-input__info_xcq6w,
95
- .slider-input__filled_xcq6w .slider-input__info_xcq6w {
94
+ .slider-input__focused_gh39k .slider-input__info_gh39k,
95
+ .slider-input__filled_gh39k .slider-input__info_gh39k {
96
96
  visibility: visible;
97
97
  opacity: 1;
98
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-slider-input",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
4
4
  "description": "Slider input component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -18,7 +18,7 @@
18
18
  "react-dom": "^16.9.0 || ^17.0.1"
19
19
  },
20
20
  "dependencies": {
21
- "@alfalab/core-components-input": "^8.2.3",
21
+ "@alfalab/core-components-input": "^9.0.0",
22
22
  "@alfalab/core-components-slider": "^3.0.4",
23
23
  "classnames": "^2.2.6",
24
24
  "react-merge-refs": "^1.1.0"