@alfalab/core-components-with-suffix 4.2.0 → 4.2.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/Component.js CHANGED
@@ -14,7 +14,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
15
15
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
16
16
 
17
- var styles = {"suffixContainer":"with-suffix__suffixContainer_br4tn","suffixVisible":"with-suffix__suffixVisible_br4tn","hasSuffix":"with-suffix__hasSuffix_br4tn","spacer":"with-suffix__spacer_br4tn","suffix":"with-suffix__suffix_br4tn","disabled":"with-suffix__disabled_br4tn","inverted":"with-suffix__inverted_br4tn","readOnly":"with-suffix__readOnly_br4tn"};
17
+ var styles = {"suffixContainer":"with-suffix__suffixContainer_1sbxg","suffixVisible":"with-suffix__suffixVisible_1sbxg","hasSuffix":"with-suffix__hasSuffix_1sbxg","spacer":"with-suffix__spacer_1sbxg","suffix":"with-suffix__suffix_1sbxg","disabled":"with-suffix__disabled_1sbxg","inverted":"with-suffix__inverted_1sbxg","readOnly":"with-suffix__readOnly_1sbxg"};
18
18
  require('./index.css')
19
19
 
20
20
  var withSuffix = function (Input) {
@@ -17,6 +17,7 @@
17
17
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
18
18
 
19
19
  /* новые значения, используйте их */
20
+ --gap-0: 0;
20
21
  } :root {
21
22
  } :root {
22
23
  } :root {
@@ -40,9 +41,9 @@
40
41
  font-weight: 400;
41
42
 
42
43
  position: absolute;
43
- left: 0;
44
- top: 0;
45
- bottom: 0;
44
+ left: var(--gap-0);
45
+ top: var(--gap-0);
46
+ bottom: var(--gap-0);
46
47
  align-items: center;
47
48
  display: none;
48
49
  pointer-events: none;
package/esm/Component.js CHANGED
@@ -4,7 +4,7 @@ import mergeRefs from 'react-merge-refs';
4
4
  import cn from 'classnames';
5
5
  import { Portal } from '@alfalab/core-components-portal/esm';
6
6
 
7
- var styles = {"suffixContainer":"with-suffix__suffixContainer_br4tn","suffixVisible":"with-suffix__suffixVisible_br4tn","hasSuffix":"with-suffix__hasSuffix_br4tn","spacer":"with-suffix__spacer_br4tn","suffix":"with-suffix__suffix_br4tn","disabled":"with-suffix__disabled_br4tn","inverted":"with-suffix__inverted_br4tn","readOnly":"with-suffix__readOnly_br4tn"};
7
+ var styles = {"suffixContainer":"with-suffix__suffixContainer_1sbxg","suffixVisible":"with-suffix__suffixVisible_1sbxg","hasSuffix":"with-suffix__hasSuffix_1sbxg","spacer":"with-suffix__spacer_1sbxg","suffix":"with-suffix__suffix_1sbxg","disabled":"with-suffix__disabled_1sbxg","inverted":"with-suffix__inverted_1sbxg","readOnly":"with-suffix__readOnly_1sbxg"};
8
8
  require('./index.css')
9
9
 
10
10
  var withSuffix = function (Input) {
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 46dz2 */
1
+ /* hash: 1ew7u */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-tertiary: rgba(5, 8, 29, 0.38);
@@ -18,6 +18,7 @@
18
18
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
19
19
 
20
20
  /* новые значения, используйте их */
21
+ --gap-0: 0;
21
22
  } :root {
22
23
  } :root {
23
24
  } :root {
@@ -35,36 +36,36 @@
35
36
  /* display */
36
37
 
37
38
  /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
38
- } .with-suffix__suffixContainer_br4tn {
39
+ } .with-suffix__suffixContainer_1sbxg {
39
40
  font-size: 16px;
40
41
  line-height: 20px;
41
42
  font-weight: 400;
42
43
 
43
44
  position: absolute;
44
- left: 0;
45
- top: 0;
46
- bottom: 0;
45
+ left: var(--gap-0);
46
+ top: var(--gap-0);
47
+ bottom: var(--gap-0);
47
48
  align-items: center;
48
49
  display: none;
49
50
  pointer-events: none;
50
- } input:focus:not(:read-only) + .with-suffix__suffixContainer_br4tn,
51
- .with-suffix__suffixVisible_br4tn .with-suffix__suffixContainer_br4tn {
51
+ } input:focus:not(:read-only) + .with-suffix__suffixContainer_1sbxg,
52
+ .with-suffix__suffixVisible_1sbxg .with-suffix__suffixContainer_1sbxg {
52
53
  display: inline-flex;
53
- } .with-suffix__hasSuffix_br4tn input:focus::placeholder {
54
+ } .with-suffix__hasSuffix_1sbxg input:focus::placeholder {
54
55
  color: transparent;
55
56
  transition: none;
56
- } .with-suffix__spacer_br4tn {
57
+ } .with-suffix__spacer_1sbxg {
57
58
  visibility: hidden;
58
59
  flex-shrink: 0;
59
60
  white-space: pre;
60
- } .with-suffix__suffix_br4tn {
61
+ } .with-suffix__suffix_1sbxg {
61
62
  white-space: pre;
62
- } .with-suffix__disabled_br4tn {
63
+ } .with-suffix__disabled_1sbxg {
63
64
  color: var(--input-disabled-color)
64
- } .with-suffix__disabled_br4tn.with-suffix__inverted_br4tn {
65
+ } .with-suffix__disabled_1sbxg.with-suffix__inverted_1sbxg {
65
66
  color: var(--input-inverted-disabled-color);
66
- } .with-suffix__readOnly_br4tn {
67
+ } .with-suffix__readOnly_1sbxg {
67
68
  color: var(--input-read-only-color)
68
- } .with-suffix__readOnly_br4tn.with-suffix__inverted_br4tn {
69
+ } .with-suffix__readOnly_1sbxg.with-suffix__inverted_1sbxg {
69
70
  color: var(--input-inverted-read-only-color);
70
71
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 46dz2 */
1
+ /* hash: 1ew7u */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-tertiary: rgba(5, 8, 29, 0.38);
@@ -18,6 +18,7 @@
18
18
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
19
19
 
20
20
  /* новые значения, используйте их */
21
+ --gap-0: 0;
21
22
  } :root {
22
23
  } :root {
23
24
  } :root {
@@ -35,36 +36,36 @@
35
36
  /* display */
36
37
 
37
38
  /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
38
- } .with-suffix__suffixContainer_br4tn {
39
+ } .with-suffix__suffixContainer_1sbxg {
39
40
  font-size: 16px;
40
41
  line-height: 20px;
41
42
  font-weight: 400;
42
43
 
43
44
  position: absolute;
44
- left: 0;
45
- top: 0;
46
- bottom: 0;
45
+ left: var(--gap-0);
46
+ top: var(--gap-0);
47
+ bottom: var(--gap-0);
47
48
  align-items: center;
48
49
  display: none;
49
50
  pointer-events: none;
50
- } input:focus:not(:read-only) + .with-suffix__suffixContainer_br4tn,
51
- .with-suffix__suffixVisible_br4tn .with-suffix__suffixContainer_br4tn {
51
+ } input:focus:not(:read-only) + .with-suffix__suffixContainer_1sbxg,
52
+ .with-suffix__suffixVisible_1sbxg .with-suffix__suffixContainer_1sbxg {
52
53
  display: inline-flex;
53
- } .with-suffix__hasSuffix_br4tn input:focus::placeholder {
54
+ } .with-suffix__hasSuffix_1sbxg input:focus::placeholder {
54
55
  color: transparent;
55
56
  transition: none;
56
- } .with-suffix__spacer_br4tn {
57
+ } .with-suffix__spacer_1sbxg {
57
58
  visibility: hidden;
58
59
  flex-shrink: 0;
59
60
  white-space: pre;
60
- } .with-suffix__suffix_br4tn {
61
+ } .with-suffix__suffix_1sbxg {
61
62
  white-space: pre;
62
- } .with-suffix__disabled_br4tn {
63
+ } .with-suffix__disabled_1sbxg {
63
64
  color: var(--input-disabled-color)
64
- } .with-suffix__disabled_br4tn.with-suffix__inverted_br4tn {
65
+ } .with-suffix__disabled_1sbxg.with-suffix__inverted_1sbxg {
65
66
  color: var(--input-inverted-disabled-color);
66
- } .with-suffix__readOnly_br4tn {
67
+ } .with-suffix__readOnly_1sbxg {
67
68
  color: var(--input-read-only-color)
68
- } .with-suffix__readOnly_br4tn.with-suffix__inverted_br4tn {
69
+ } .with-suffix__readOnly_1sbxg.with-suffix__inverted_1sbxg {
69
70
  color: var(--input-inverted-read-only-color);
70
71
  }
@@ -3,7 +3,7 @@ import mergeRefs from 'react-merge-refs';
3
3
  import cn from 'classnames';
4
4
  import { Portal } from '@alfalab/core-components-portal/modern';
5
5
 
6
- const styles = {"suffixContainer":"with-suffix__suffixContainer_br4tn","suffixVisible":"with-suffix__suffixVisible_br4tn","hasSuffix":"with-suffix__hasSuffix_br4tn","spacer":"with-suffix__spacer_br4tn","suffix":"with-suffix__suffix_br4tn","disabled":"with-suffix__disabled_br4tn","inverted":"with-suffix__inverted_br4tn","readOnly":"with-suffix__readOnly_br4tn"};
6
+ const styles = {"suffixContainer":"with-suffix__suffixContainer_1sbxg","suffixVisible":"with-suffix__suffixVisible_1sbxg","hasSuffix":"with-suffix__hasSuffix_1sbxg","spacer":"with-suffix__spacer_1sbxg","suffix":"with-suffix__suffix_1sbxg","disabled":"with-suffix__disabled_1sbxg","inverted":"with-suffix__inverted_1sbxg","readOnly":"with-suffix__readOnly_1sbxg"};
7
7
  require('./index.css')
8
8
 
9
9
  const withSuffix = (Input) => forwardRef(({ value, defaultValue, onChange, onClear, suffix = '', placeholder, className, disabled, readOnly, suffixContainerClassName, ...restProps }, ref) => {
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 46dz2 */
1
+ /* hash: 1ew7u */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-tertiary: rgba(5, 8, 29, 0.38);
@@ -18,6 +18,7 @@
18
18
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
19
19
 
20
20
  /* новые значения, используйте их */
21
+ --gap-0: 0;
21
22
  } :root {
22
23
  } :root {
23
24
  } :root {
@@ -35,36 +36,36 @@
35
36
  /* display */
36
37
 
37
38
  /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
38
- } .with-suffix__suffixContainer_br4tn {
39
+ } .with-suffix__suffixContainer_1sbxg {
39
40
  font-size: 16px;
40
41
  line-height: 20px;
41
42
  font-weight: 400;
42
43
 
43
44
  position: absolute;
44
- left: 0;
45
- top: 0;
46
- bottom: 0;
45
+ left: var(--gap-0);
46
+ top: var(--gap-0);
47
+ bottom: var(--gap-0);
47
48
  align-items: center;
48
49
  display: none;
49
50
  pointer-events: none;
50
- } input:focus:not(:read-only) + .with-suffix__suffixContainer_br4tn,
51
- .with-suffix__suffixVisible_br4tn .with-suffix__suffixContainer_br4tn {
51
+ } input:focus:not(:read-only) + .with-suffix__suffixContainer_1sbxg,
52
+ .with-suffix__suffixVisible_1sbxg .with-suffix__suffixContainer_1sbxg {
52
53
  display: inline-flex;
53
- } .with-suffix__hasSuffix_br4tn input:focus::placeholder {
54
+ } .with-suffix__hasSuffix_1sbxg input:focus::placeholder {
54
55
  color: transparent;
55
56
  transition: none;
56
- } .with-suffix__spacer_br4tn {
57
+ } .with-suffix__spacer_1sbxg {
57
58
  visibility: hidden;
58
59
  flex-shrink: 0;
59
60
  white-space: pre;
60
- } .with-suffix__suffix_br4tn {
61
+ } .with-suffix__suffix_1sbxg {
61
62
  white-space: pre;
62
- } .with-suffix__disabled_br4tn {
63
+ } .with-suffix__disabled_1sbxg {
63
64
  color: var(--input-disabled-color)
64
- } .with-suffix__disabled_br4tn.with-suffix__inverted_br4tn {
65
+ } .with-suffix__disabled_1sbxg.with-suffix__inverted_1sbxg {
65
66
  color: var(--input-inverted-disabled-color);
66
- } .with-suffix__readOnly_br4tn {
67
+ } .with-suffix__readOnly_1sbxg {
67
68
  color: var(--input-read-only-color)
68
- } .with-suffix__readOnly_br4tn.with-suffix__inverted_br4tn {
69
+ } .with-suffix__readOnly_1sbxg.with-suffix__inverted_1sbxg {
69
70
  color: var(--input-inverted-read-only-color);
70
71
  }
@@ -21,9 +21,9 @@
21
21
  font-weight: 400;
22
22
 
23
23
  position: absolute;
24
- left: 0;
25
- top: 0;
26
- bottom: 0;
24
+ left: var(--gap-0);
25
+ top: var(--gap-0);
26
+ bottom: var(--gap-0);
27
27
  align-items: center;
28
28
  display: none;
29
29
  pointer-events: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-with-suffix",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,12 +14,12 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-input": "^15.1.0",
18
- "@alfalab/core-components-portal": "^3.3.1",
17
+ "@alfalab/core-components-input": "^15.1.1",
18
+ "@alfalab/core-components-portal": "^3.3.2",
19
19
  "classnames": "^2.3.1",
20
20
  "react-merge-refs": "^1.1.0",
21
21
  "tslib": "^2.4.0"
22
22
  },
23
- "themesVersion": "13.1.0",
24
- "varsVersion": "9.12.0"
23
+ "themesVersion": "13.2.0",
24
+ "varsVersion": "9.13.0"
25
25
  }
@@ -5,9 +5,9 @@
5
5
  @mixin paragraph_component;
6
6
 
7
7
  position: absolute;
8
- left: 0;
9
- top: 0;
10
- bottom: 0;
8
+ left: var(--gap-0);
9
+ top: var(--gap-0);
10
+ bottom: var(--gap-0);
11
11
  align-items: center;
12
12
  display: none;
13
13
  pointer-events: none;