@alfalab/core-components-with-suffix 4.0.2 → 4.0.3

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
@@ -52,7 +52,7 @@ function __rest(s, e) {
52
52
  return t;
53
53
  }
54
54
 
55
- var styles = {"suffixContainer":"with-suffix__suffixContainer_11ani","suffixVisible":"with-suffix__suffixVisible_11ani","hasSuffix":"with-suffix__hasSuffix_11ani","spacer":"with-suffix__spacer_11ani","suffix":"with-suffix__suffix_11ani","disabled":"with-suffix__disabled_11ani","readOnly":"with-suffix__readOnly_11ani"};
55
+ var styles = {"suffixContainer":"with-suffix__suffixContainer_zfqh3","suffixVisible":"with-suffix__suffixVisible_zfqh3","hasSuffix":"with-suffix__hasSuffix_zfqh3","spacer":"with-suffix__spacer_zfqh3","suffix":"with-suffix__suffix_zfqh3","disabled":"with-suffix__disabled_zfqh3","readOnly":"with-suffix__readOnly_zfqh3"};
56
56
  require('./index.css')
57
57
 
58
58
  var withSuffix = function (Input) {
@@ -1,3 +1,6 @@
1
+ :root {
2
+ --color-light-text-secondary: #546272;
3
+ }
1
4
  :root {
2
5
 
3
6
  /* Hard */
@@ -6,6 +9,20 @@
6
9
 
7
10
  /* Hard up */
8
11
  }
12
+ :root {
13
+
14
+ /* disabled */
15
+ --input-disabled-color: var(--color-light-text-secondary);
16
+
17
+ /* read-only */
18
+ --input-read-only-color: var(--color-light-text-secondary);
19
+
20
+ /* error */
21
+
22
+ /* display */
23
+
24
+ /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
25
+ }
9
26
  .suffixContainer {
10
27
  font-size: 16px;
11
28
  line-height: 20px;
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_11ani","suffixVisible":"with-suffix__suffixVisible_11ani","hasSuffix":"with-suffix__hasSuffix_11ani","spacer":"with-suffix__spacer_11ani","suffix":"with-suffix__suffix_11ani","disabled":"with-suffix__disabled_11ani","readOnly":"with-suffix__readOnly_11ani"};
45
+ var styles = {"suffixContainer":"with-suffix__suffixContainer_zfqh3","suffixVisible":"with-suffix__suffixVisible_zfqh3","hasSuffix":"with-suffix__hasSuffix_zfqh3","spacer":"with-suffix__spacer_zfqh3","suffix":"with-suffix__suffix_zfqh3","disabled":"with-suffix__disabled_zfqh3","readOnly":"with-suffix__readOnly_zfqh3"};
46
46
  require('./index.css')
47
47
 
48
48
  var withSuffix = function (Input) {
package/esm/index.css CHANGED
@@ -1,4 +1,7 @@
1
- /* hash: vce0o */
1
+ /* hash: 42ch7 */
2
+ :root {
3
+ --color-light-text-secondary: #546272;
4
+ }
2
5
  :root {
3
6
 
4
7
  /* Hard */
@@ -7,7 +10,21 @@
7
10
 
8
11
  /* Hard up */
9
12
  }
10
- .with-suffix__suffixContainer_11ani {
13
+ :root {
14
+
15
+ /* disabled */
16
+ --input-disabled-color: var(--color-light-text-secondary);
17
+
18
+ /* read-only */
19
+ --input-read-only-color: var(--color-light-text-secondary);
20
+
21
+ /* error */
22
+
23
+ /* display */
24
+
25
+ /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
26
+ }
27
+ .with-suffix__suffixContainer_zfqh3 {
11
28
  font-size: 16px;
12
29
  line-height: 20px;
13
30
  font-weight: 400;
@@ -20,25 +37,25 @@
20
37
  display: none;
21
38
  pointer-events: none;
22
39
  }
23
- input:focus:not(:read-only) + .with-suffix__suffixContainer_11ani,
24
- .with-suffix__suffixVisible_11ani .with-suffix__suffixContainer_11ani {
40
+ input:focus:not(:read-only) + .with-suffix__suffixContainer_zfqh3,
41
+ .with-suffix__suffixVisible_zfqh3 .with-suffix__suffixContainer_zfqh3 {
25
42
  display: inline-flex;
26
43
  }
27
- .with-suffix__hasSuffix_11ani input:focus::placeholder {
44
+ .with-suffix__hasSuffix_zfqh3 input:focus::placeholder {
28
45
  color: transparent;
29
46
  transition: none;
30
47
  }
31
- .with-suffix__spacer_11ani {
48
+ .with-suffix__spacer_zfqh3 {
32
49
  visibility: hidden;
33
50
  flex-shrink: 0;
34
51
  white-space: pre;
35
52
  }
36
- .with-suffix__suffix_11ani {
53
+ .with-suffix__suffix_zfqh3 {
37
54
  white-space: pre;
38
55
  }
39
- .with-suffix__disabled_11ani {
56
+ .with-suffix__disabled_zfqh3 {
40
57
  color: var(--input-disabled-color);
41
58
  }
42
- .with-suffix__readOnly_11ani {
59
+ .with-suffix__readOnly_zfqh3 {
43
60
  color: var(--input-read-only-color);
44
61
  }
package/index.css CHANGED
@@ -1,4 +1,7 @@
1
- /* hash: vce0o */
1
+ /* hash: 42ch7 */
2
+ :root {
3
+ --color-light-text-secondary: #546272;
4
+ }
2
5
  :root {
3
6
 
4
7
  /* Hard */
@@ -7,7 +10,21 @@
7
10
 
8
11
  /* Hard up */
9
12
  }
10
- .with-suffix__suffixContainer_11ani {
13
+ :root {
14
+
15
+ /* disabled */
16
+ --input-disabled-color: var(--color-light-text-secondary);
17
+
18
+ /* read-only */
19
+ --input-read-only-color: var(--color-light-text-secondary);
20
+
21
+ /* error */
22
+
23
+ /* display */
24
+
25
+ /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
26
+ }
27
+ .with-suffix__suffixContainer_zfqh3 {
11
28
  font-size: 16px;
12
29
  line-height: 20px;
13
30
  font-weight: 400;
@@ -20,25 +37,25 @@
20
37
  display: none;
21
38
  pointer-events: none;
22
39
  }
23
- input:focus:not(:read-only) + .with-suffix__suffixContainer_11ani,
24
- .with-suffix__suffixVisible_11ani .with-suffix__suffixContainer_11ani {
40
+ input:focus:not(:read-only) + .with-suffix__suffixContainer_zfqh3,
41
+ .with-suffix__suffixVisible_zfqh3 .with-suffix__suffixContainer_zfqh3 {
25
42
  display: inline-flex;
26
43
  }
27
- .with-suffix__hasSuffix_11ani input:focus::placeholder {
44
+ .with-suffix__hasSuffix_zfqh3 input:focus::placeholder {
28
45
  color: transparent;
29
46
  transition: none;
30
47
  }
31
- .with-suffix__spacer_11ani {
48
+ .with-suffix__spacer_zfqh3 {
32
49
  visibility: hidden;
33
50
  flex-shrink: 0;
34
51
  white-space: pre;
35
52
  }
36
- .with-suffix__suffix_11ani {
53
+ .with-suffix__suffix_zfqh3 {
37
54
  white-space: pre;
38
55
  }
39
- .with-suffix__disabled_11ani {
56
+ .with-suffix__disabled_zfqh3 {
40
57
  color: var(--input-disabled-color);
41
58
  }
42
- .with-suffix__readOnly_11ani {
59
+ .with-suffix__readOnly_zfqh3 {
43
60
  color: var(--input-read-only-color);
44
61
  }
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import { Portal } from '@alfalab/core-components-portal/modern';
5
5
 
6
- var styles = {"suffixContainer":"with-suffix__suffixContainer_11ani","suffixVisible":"with-suffix__suffixVisible_11ani","hasSuffix":"with-suffix__hasSuffix_11ani","spacer":"with-suffix__spacer_11ani","suffix":"with-suffix__suffix_11ani","disabled":"with-suffix__disabled_11ani","readOnly":"with-suffix__readOnly_11ani"};
6
+ var styles = {"suffixContainer":"with-suffix__suffixContainer_zfqh3","suffixVisible":"with-suffix__suffixVisible_zfqh3","hasSuffix":"with-suffix__hasSuffix_zfqh3","spacer":"with-suffix__spacer_zfqh3","suffix":"with-suffix__suffix_zfqh3","disabled":"with-suffix__disabled_zfqh3","readOnly":"with-suffix__readOnly_zfqh3"};
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,7 @@
1
- /* hash: vce0o */
1
+ /* hash: 42ch7 */
2
+ :root {
3
+ --color-light-text-secondary: #546272;
4
+ }
2
5
  :root {
3
6
 
4
7
  /* Hard */
@@ -7,7 +10,21 @@
7
10
 
8
11
  /* Hard up */
9
12
  }
10
- .with-suffix__suffixContainer_11ani {
13
+ :root {
14
+
15
+ /* disabled */
16
+ --input-disabled-color: var(--color-light-text-secondary);
17
+
18
+ /* read-only */
19
+ --input-read-only-color: var(--color-light-text-secondary);
20
+
21
+ /* error */
22
+
23
+ /* display */
24
+
25
+ /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
26
+ }
27
+ .with-suffix__suffixContainer_zfqh3 {
11
28
  font-size: 16px;
12
29
  line-height: 20px;
13
30
  font-weight: 400;
@@ -20,25 +37,25 @@
20
37
  display: none;
21
38
  pointer-events: none;
22
39
  }
23
- input:focus:not(:read-only) + .with-suffix__suffixContainer_11ani,
24
- .with-suffix__suffixVisible_11ani .with-suffix__suffixContainer_11ani {
40
+ input:focus:not(:read-only) + .with-suffix__suffixContainer_zfqh3,
41
+ .with-suffix__suffixVisible_zfqh3 .with-suffix__suffixContainer_zfqh3 {
25
42
  display: inline-flex;
26
43
  }
27
- .with-suffix__hasSuffix_11ani input:focus::placeholder {
44
+ .with-suffix__hasSuffix_zfqh3 input:focus::placeholder {
28
45
  color: transparent;
29
46
  transition: none;
30
47
  }
31
- .with-suffix__spacer_11ani {
48
+ .with-suffix__spacer_zfqh3 {
32
49
  visibility: hidden;
33
50
  flex-shrink: 0;
34
51
  white-space: pre;
35
52
  }
36
- .with-suffix__suffix_11ani {
53
+ .with-suffix__suffix_zfqh3 {
37
54
  white-space: pre;
38
55
  }
39
- .with-suffix__disabled_11ani {
56
+ .with-suffix__disabled_zfqh3 {
40
57
  color: var(--input-disabled-color);
41
58
  }
42
- .with-suffix__readOnly_11ani {
59
+ .with-suffix__readOnly_zfqh3 {
43
60
  color: var(--input-read-only-color);
44
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-with-suffix",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
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": "^10.0.2",
20
+ "@alfalab/core-components-input": "^10.0.3",
21
21
  "@alfalab/core-components-portal": "^3.0.1",
22
22
  "classnames": "^2.3.1",
23
23
  "react-merge-refs": "^1.1.0"