@alfalab/core-components-with-suffix 4.0.18 → 4.0.20

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
@@ -50,7 +50,7 @@ function __rest(s, e) {
50
50
  return t;
51
51
  }
52
52
 
53
- var styles = {"suffixContainer":"with-suffix__suffixContainer_1rogo","suffixVisible":"with-suffix__suffixVisible_1rogo","hasSuffix":"with-suffix__hasSuffix_1rogo","spacer":"with-suffix__spacer_1rogo","suffix":"with-suffix__suffix_1rogo","disabled":"with-suffix__disabled_1rogo","readOnly":"with-suffix__readOnly_1rogo"};
53
+ var styles = {"suffixContainer":"with-suffix__suffixContainer_p39me","suffixVisible":"with-suffix__suffixVisible_p39me","hasSuffix":"with-suffix__hasSuffix_p39me","spacer":"with-suffix__spacer_p39me","suffix":"with-suffix__suffix_p39me","disabled":"with-suffix__disabled_p39me","readOnly":"with-suffix__readOnly_p39me"};
54
54
  require('./index.css')
55
55
 
56
56
  var withSuffix = function (Input) {
@@ -1,15 +1,20 @@
1
1
  :root {
2
+ } /* deprecated */ :root {
2
3
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
3
- }
4
- :root {
4
+ } :root {
5
+ } :root {
6
+ } :root {
5
7
 
6
8
  /* Hard */
7
9
 
8
10
  /* Up */
9
11
 
10
12
  /* Hard up */
11
- }
12
- :root {
13
+ } :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ } :root {
13
18
 
14
19
  /* disabled */
15
20
  --input-disabled-color: var(--color-light-text-secondary);
@@ -22,8 +27,7 @@
22
27
  /* display */
23
28
 
24
29
  /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
25
- }
26
- .suffixContainer {
30
+ } .suffixContainer {
27
31
  font-size: 16px;
28
32
  line-height: 20px;
29
33
  font-weight: 400;
@@ -35,26 +39,20 @@
35
39
  align-items: center;
36
40
  display: none;
37
41
  pointer-events: none;
38
- }
39
- input:focus:not(:read-only) + .suffixContainer,
42
+ } input:focus:not(:read-only) + .suffixContainer,
40
43
  .suffixVisible .suffixContainer {
41
44
  display: inline-flex;
42
- }
43
- .hasSuffix input:focus::placeholder {
45
+ } .hasSuffix input:focus::placeholder {
44
46
  color: transparent;
45
47
  transition: none;
46
- }
47
- .spacer {
48
+ } .spacer {
48
49
  visibility: hidden;
49
50
  flex-shrink: 0;
50
51
  white-space: pre;
51
- }
52
- .suffix {
52
+ } .suffix {
53
53
  white-space: pre;
54
- }
55
- .disabled {
54
+ } .disabled {
56
55
  color: var(--input-disabled-color);
57
- }
58
- .readOnly {
56
+ } .readOnly {
59
57
  color: var(--input-read-only-color);
60
58
  }
package/esm/Component.js CHANGED
@@ -42,7 +42,7 @@ function __rest(s, e) {
42
42
  return t;
43
43
  }
44
44
 
45
- var styles = {"suffixContainer":"with-suffix__suffixContainer_1rogo","suffixVisible":"with-suffix__suffixVisible_1rogo","hasSuffix":"with-suffix__hasSuffix_1rogo","spacer":"with-suffix__spacer_1rogo","suffix":"with-suffix__suffix_1rogo","disabled":"with-suffix__disabled_1rogo","readOnly":"with-suffix__readOnly_1rogo"};
45
+ var styles = {"suffixContainer":"with-suffix__suffixContainer_p39me","suffixVisible":"with-suffix__suffixVisible_p39me","hasSuffix":"with-suffix__hasSuffix_p39me","spacer":"with-suffix__spacer_p39me","suffix":"with-suffix__suffix_p39me","disabled":"with-suffix__disabled_p39me","readOnly":"with-suffix__readOnly_p39me"};
46
46
  require('./index.css')
47
47
 
48
48
  var withSuffix = function (Input) {
package/esm/index.css CHANGED
@@ -1,16 +1,21 @@
1
- /* hash: hrb1i */
1
+ /* hash: 1thvb */
2
2
  :root {
3
+ } /* deprecated */ :root {
3
4
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
4
- }
5
- :root {
5
+ } :root {
6
+ } :root {
7
+ } :root {
6
8
 
7
9
  /* Hard */
8
10
 
9
11
  /* Up */
10
12
 
11
13
  /* Hard up */
12
- }
13
- :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ } :root {
18
+ } :root {
14
19
 
15
20
  /* disabled */
16
21
  --input-disabled-color: var(--color-light-text-secondary);
@@ -23,8 +28,7 @@
23
28
  /* display */
24
29
 
25
30
  /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
26
- }
27
- .with-suffix__suffixContainer_1rogo {
31
+ } .with-suffix__suffixContainer_p39me {
28
32
  font-size: 16px;
29
33
  line-height: 20px;
30
34
  font-weight: 400;
@@ -36,26 +40,20 @@
36
40
  align-items: center;
37
41
  display: none;
38
42
  pointer-events: none;
39
- }
40
- input:focus:not(:read-only) + .with-suffix__suffixContainer_1rogo,
41
- .with-suffix__suffixVisible_1rogo .with-suffix__suffixContainer_1rogo {
43
+ } input:focus:not(:read-only) + .with-suffix__suffixContainer_p39me,
44
+ .with-suffix__suffixVisible_p39me .with-suffix__suffixContainer_p39me {
42
45
  display: inline-flex;
43
- }
44
- .with-suffix__hasSuffix_1rogo input:focus::placeholder {
46
+ } .with-suffix__hasSuffix_p39me input:focus::placeholder {
45
47
  color: transparent;
46
48
  transition: none;
47
- }
48
- .with-suffix__spacer_1rogo {
49
+ } .with-suffix__spacer_p39me {
49
50
  visibility: hidden;
50
51
  flex-shrink: 0;
51
52
  white-space: pre;
52
- }
53
- .with-suffix__suffix_1rogo {
53
+ } .with-suffix__suffix_p39me {
54
54
  white-space: pre;
55
- }
56
- .with-suffix__disabled_1rogo {
55
+ } .with-suffix__disabled_p39me {
57
56
  color: var(--input-disabled-color);
58
- }
59
- .with-suffix__readOnly_1rogo {
57
+ } .with-suffix__readOnly_p39me {
60
58
  color: var(--input-read-only-color);
61
59
  }
package/index.css CHANGED
@@ -1,16 +1,21 @@
1
- /* hash: hrb1i */
1
+ /* hash: 1thvb */
2
2
  :root {
3
+ } /* deprecated */ :root {
3
4
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
4
- }
5
- :root {
5
+ } :root {
6
+ } :root {
7
+ } :root {
6
8
 
7
9
  /* Hard */
8
10
 
9
11
  /* Up */
10
12
 
11
13
  /* Hard up */
12
- }
13
- :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ } :root {
18
+ } :root {
14
19
 
15
20
  /* disabled */
16
21
  --input-disabled-color: var(--color-light-text-secondary);
@@ -23,8 +28,7 @@
23
28
  /* display */
24
29
 
25
30
  /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
26
- }
27
- .with-suffix__suffixContainer_1rogo {
31
+ } .with-suffix__suffixContainer_p39me {
28
32
  font-size: 16px;
29
33
  line-height: 20px;
30
34
  font-weight: 400;
@@ -36,26 +40,20 @@
36
40
  align-items: center;
37
41
  display: none;
38
42
  pointer-events: none;
39
- }
40
- input:focus:not(:read-only) + .with-suffix__suffixContainer_1rogo,
41
- .with-suffix__suffixVisible_1rogo .with-suffix__suffixContainer_1rogo {
43
+ } input:focus:not(:read-only) + .with-suffix__suffixContainer_p39me,
44
+ .with-suffix__suffixVisible_p39me .with-suffix__suffixContainer_p39me {
42
45
  display: inline-flex;
43
- }
44
- .with-suffix__hasSuffix_1rogo input:focus::placeholder {
46
+ } .with-suffix__hasSuffix_p39me input:focus::placeholder {
45
47
  color: transparent;
46
48
  transition: none;
47
- }
48
- .with-suffix__spacer_1rogo {
49
+ } .with-suffix__spacer_p39me {
49
50
  visibility: hidden;
50
51
  flex-shrink: 0;
51
52
  white-space: pre;
52
- }
53
- .with-suffix__suffix_1rogo {
53
+ } .with-suffix__suffix_p39me {
54
54
  white-space: pre;
55
- }
56
- .with-suffix__disabled_1rogo {
55
+ } .with-suffix__disabled_p39me {
57
56
  color: var(--input-disabled-color);
58
- }
59
- .with-suffix__readOnly_1rogo {
57
+ } .with-suffix__readOnly_p39me {
60
58
  color: var(--input-read-only-color);
61
59
  }
@@ -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_1rogo","suffixVisible":"with-suffix__suffixVisible_1rogo","hasSuffix":"with-suffix__hasSuffix_1rogo","spacer":"with-suffix__spacer_1rogo","suffix":"with-suffix__suffix_1rogo","disabled":"with-suffix__disabled_1rogo","readOnly":"with-suffix__readOnly_1rogo"};
6
+ const styles = {"suffixContainer":"with-suffix__suffixContainer_p39me","suffixVisible":"with-suffix__suffixVisible_p39me","hasSuffix":"with-suffix__hasSuffix_p39me","spacer":"with-suffix__spacer_p39me","suffix":"with-suffix__suffix_p39me","disabled":"with-suffix__disabled_p39me","readOnly":"with-suffix__readOnly_p39me"};
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,16 +1,21 @@
1
- /* hash: hrb1i */
1
+ /* hash: 1thvb */
2
2
  :root {
3
+ } /* deprecated */ :root {
3
4
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
4
- }
5
- :root {
5
+ } :root {
6
+ } :root {
7
+ } :root {
6
8
 
7
9
  /* Hard */
8
10
 
9
11
  /* Up */
10
12
 
11
13
  /* Hard up */
12
- }
13
- :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ } :root {
18
+ } :root {
14
19
 
15
20
  /* disabled */
16
21
  --input-disabled-color: var(--color-light-text-secondary);
@@ -23,8 +28,7 @@
23
28
  /* display */
24
29
 
25
30
  /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
26
- }
27
- .with-suffix__suffixContainer_1rogo {
31
+ } .with-suffix__suffixContainer_p39me {
28
32
  font-size: 16px;
29
33
  line-height: 20px;
30
34
  font-weight: 400;
@@ -36,26 +40,20 @@
36
40
  align-items: center;
37
41
  display: none;
38
42
  pointer-events: none;
39
- }
40
- input:focus:not(:read-only) + .with-suffix__suffixContainer_1rogo,
41
- .with-suffix__suffixVisible_1rogo .with-suffix__suffixContainer_1rogo {
43
+ } input:focus:not(:read-only) + .with-suffix__suffixContainer_p39me,
44
+ .with-suffix__suffixVisible_p39me .with-suffix__suffixContainer_p39me {
42
45
  display: inline-flex;
43
- }
44
- .with-suffix__hasSuffix_1rogo input:focus::placeholder {
46
+ } .with-suffix__hasSuffix_p39me input:focus::placeholder {
45
47
  color: transparent;
46
48
  transition: none;
47
- }
48
- .with-suffix__spacer_1rogo {
49
+ } .with-suffix__spacer_p39me {
49
50
  visibility: hidden;
50
51
  flex-shrink: 0;
51
52
  white-space: pre;
52
- }
53
- .with-suffix__suffix_1rogo {
53
+ } .with-suffix__suffix_p39me {
54
54
  white-space: pre;
55
- }
56
- .with-suffix__disabled_1rogo {
55
+ } .with-suffix__disabled_p39me {
57
56
  color: var(--input-disabled-color);
58
- }
59
- .with-suffix__readOnly_1rogo {
57
+ } .with-suffix__readOnly_p39me {
60
58
  color: var(--input-read-only-color);
61
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-with-suffix",
3
- "version": "4.0.18",
3
+ "version": "4.0.20",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@alfalab/core-components-input": "^11.1.3",
20
+ "@alfalab/core-components-input": "^11.1.5",
21
21
  "@alfalab/core-components-portal": "^3.1.2",
22
22
  "classnames": "^2.3.1",
23
23
  "react-merge-refs": "^1.1.0"