@alfalab/core-components-slider-input 5.0.2 → 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,33 @@
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
+
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)
15
+
16
+ **Note:** Version bump only for package @alfalab/core-components-slider-input
17
+
18
+
19
+
20
+
21
+
22
+ ## [5.0.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-slider-input@5.0.2...@alfalab/core-components-slider-input@5.0.3) (2022-07-15)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * bump packages version ([#153](https://github.com/core-ds/core-components/issues/153)) ([fd3e082](https://github.com/core-ds/core-components/commit/fd3e08205672129cdce04e1000c673f2cd9c10da))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [5.0.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-slider-input@5.0.1...@alfalab/core-components-slider-input@5.0.2) (2022-07-14)
7
34
 
8
35
  **Note:** Version bump only for package @alfalab/core-components-slider-input
@@ -504,4 +531,5 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
504
531
 
505
532
  ## [2.2.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-slider-input@2.2.0...@alfalab/core-components-slider-input@2.2.1) (2021-02-18)
506
533
 
534
+
507
535
  **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_1acxm","block":"slider-input__block_1acxm","slider":"slider-input__slider_1acxm","field":"slider-input__field_1acxm","input":"slider-input__input_1acxm","steps":"slider-input__steps_1acxm","info":"slider-input__info_1acxm","s":"slider-input__s_1acxm","hasLabel":"slider-input__hasLabel_1acxm","m":"slider-input__m_1acxm","l":"slider-input__l_1acxm","xl":"slider-input__xl_1acxm","focused":"slider-input__focused_1acxm","filled":"slider-input__filled_1acxm"};
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/cssm/Component.js CHANGED
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var cn = require('classnames');
7
- var coreComponentsSlider = require('@alfalab/core-components-slider/dist/cssm');
8
- var coreComponentsInput = require('@alfalab/core-components-input/dist/cssm');
7
+ var coreComponentsSlider = require('@alfalab/core-components-slider/cssm');
8
+ var coreComponentsInput = require('@alfalab/core-components-input/cssm');
9
9
  var styles = require('./index.module.css');
10
10
 
11
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
package/cssm/index.js CHANGED
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var Component = require('./Component.js');
6
6
  require('react');
7
7
  require('classnames');
8
- require('@alfalab/core-components-slider/dist/cssm');
9
- require('@alfalab/core-components-input/dist/cssm');
8
+ require('@alfalab/core-components-slider/cssm');
9
+ require('@alfalab/core-components-input/cssm');
10
10
  require('./index.module.css');
11
11
 
12
12
 
package/esm/Component.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import React, { forwardRef, useCallback, Fragment } from 'react';
2
2
  import cn from 'classnames';
3
- import { Slider } from '@alfalab/core-components-slider/dist/esm';
4
- import { Input } from '@alfalab/core-components-input/dist/esm';
3
+ import { Slider } from '@alfalab/core-components-slider/esm';
4
+ import { Input } from '@alfalab/core-components-input/esm';
5
5
 
6
6
  /*! *****************************************************************************
7
7
  Copyright (c) Microsoft Corporation.
@@ -42,7 +42,7 @@ function __rest(s, e) {
42
42
  return t;
43
43
  }
44
44
 
45
- var styles = {"component":"slider-input__component_1acxm","block":"slider-input__block_1acxm","slider":"slider-input__slider_1acxm","field":"slider-input__field_1acxm","input":"slider-input__input_1acxm","steps":"slider-input__steps_1acxm","info":"slider-input__info_1acxm","s":"slider-input__s_1acxm","hasLabel":"slider-input__hasLabel_1acxm","m":"slider-input__m_1acxm","l":"slider-input__l_1acxm","xl":"slider-input__xl_1acxm","focused":"slider-input__focused_1acxm","filled":"slider-input__filled_1acxm"};
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: fi4ed */
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_1acxm {
26
+ .slider-input__component_gh39k {
27
27
  position: relative;
28
28
  display: inline-block;
29
29
  }
30
- .slider-input__block_1acxm {
30
+ .slider-input__block_gh39k {
31
31
  display: block;
32
32
  }
33
- .slider-input__slider_1acxm {
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_1acxm + * {
37
+ .slider-input__slider_gh39k + * {
38
38
  margin-top: var(--gap-xs);
39
39
  }
40
- .slider-input__field_1acxm {
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_1acxm input,
45
- .slider-input__input_1acxm 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_1acxm input::placeholder {
50
+ .slider-input__input_gh39k input::placeholder {
51
51
  font-weight: 400;
52
52
  }
53
- .slider-input__steps_1acxm {
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_1acxm {
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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm .slider-input__info_1acxm,
95
- .slider-input__filled_1acxm .slider-input__info_1acxm {
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/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { SliderInput } from './Component.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
- import '@alfalab/core-components-slider/dist/esm';
5
- import '@alfalab/core-components-input/dist/esm';
4
+ import '@alfalab/core-components-slider/esm';
5
+ import '@alfalab/core-components-input/esm';
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: fi4ed */
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_1acxm {
26
+ .slider-input__component_gh39k {
27
27
  position: relative;
28
28
  display: inline-block;
29
29
  }
30
- .slider-input__block_1acxm {
30
+ .slider-input__block_gh39k {
31
31
  display: block;
32
32
  }
33
- .slider-input__slider_1acxm {
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_1acxm + * {
37
+ .slider-input__slider_gh39k + * {
38
38
  margin-top: var(--gap-xs);
39
39
  }
40
- .slider-input__field_1acxm {
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_1acxm input,
45
- .slider-input__input_1acxm 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_1acxm input::placeholder {
50
+ .slider-input__input_gh39k input::placeholder {
51
51
  font-weight: 400;
52
52
  }
53
- .slider-input__steps_1acxm {
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_1acxm {
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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm .slider-input__info_1acxm,
95
- .slider-input__filled_1acxm .slider-input__info_1acxm {
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
  }
@@ -1,9 +1,9 @@
1
1
  import React, { forwardRef, useCallback, Fragment } from 'react';
2
2
  import cn from 'classnames';
3
- import { Slider } from '@alfalab/core-components-slider/dist/modern';
4
- import { Input } from '@alfalab/core-components-input/dist/modern';
3
+ import { Slider } from '@alfalab/core-components-slider/modern';
4
+ import { Input } from '@alfalab/core-components-input/modern';
5
5
 
6
- var styles = {"component":"slider-input__component_1acxm","block":"slider-input__block_1acxm","slider":"slider-input__slider_1acxm","field":"slider-input__field_1acxm","input":"slider-input__input_1acxm","steps":"slider-input__steps_1acxm","info":"slider-input__info_1acxm","s":"slider-input__s_1acxm","hasLabel":"slider-input__hasLabel_1acxm","m":"slider-input__m_1acxm","l":"slider-input__l_1acxm","xl":"slider-input__xl_1acxm","focused":"slider-input__focused_1acxm","filled":"slider-input__filled_1acxm"};
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: fi4ed */
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_1acxm {
26
+ .slider-input__component_gh39k {
27
27
  position: relative;
28
28
  display: inline-block;
29
29
  }
30
- .slider-input__block_1acxm {
30
+ .slider-input__block_gh39k {
31
31
  display: block;
32
32
  }
33
- .slider-input__slider_1acxm {
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_1acxm + * {
37
+ .slider-input__slider_gh39k + * {
38
38
  margin-top: var(--gap-xs);
39
39
  }
40
- .slider-input__field_1acxm {
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_1acxm input,
45
- .slider-input__input_1acxm 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_1acxm input::placeholder {
50
+ .slider-input__input_gh39k input::placeholder {
51
51
  font-weight: 400;
52
52
  }
53
- .slider-input__steps_1acxm {
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_1acxm {
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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm.slider-input__hasLabel_1acxm .slider-input__info_1acxm: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_1acxm .slider-input__info_1acxm,
95
- .slider-input__filled_1acxm .slider-input__info_1acxm {
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/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import '@alfalab/core-components-slider/dist/modern';
4
- import '@alfalab/core-components-input/dist/modern';
3
+ import '@alfalab/core-components-slider/modern';
4
+ import '@alfalab/core-components-input/modern';
5
5
  export { SliderInput } from './Component.js';
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-slider-input",
3
- "version": "5.0.2",
3
+ "version": "5.0.5",
4
4
  "description": "Slider input component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "main": "index.js",
8
8
  "module": "./esm/index.js",
9
9
  "scripts": {
10
- "postinstall": "node ./send-stats.js > /dev/null 2>&1 || exit 0"
10
+ "postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
11
11
  },
12
12
  "publishConfig": {
13
13
  "access": "public",
@@ -18,8 +18,8 @@
18
18
  "react-dom": "^16.9.0 || ^17.0.1"
19
19
  },
20
20
  "dependencies": {
21
- "@alfalab/core-components-input": "^8.2.1",
22
- "@alfalab/core-components-slider": "^3.0.2",
21
+ "@alfalab/core-components-input": "^9.0.0",
22
+ "@alfalab/core-components-slider": "^3.0.4",
23
23
  "classnames": "^2.2.6",
24
24
  "react-merge-refs": "^1.1.0"
25
25
  }