@alfalab/core-components-with-suffix 4.2.12 → 4.2.13
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 +1 -1
- package/cssm/index.module.css +4 -1
- package/esm/Component.js +1 -1
- package/esm/index.css +16 -13
- package/index.css +16 -13
- package/modern/Component.js +1 -1
- package/modern/index.css +16 -13
- package/package.json +4 -4
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-
|
|
17
|
+
var styles = {"suffixContainer":"with-suffix__suffixContainer_1lbhr","size-40":"with-suffix__size-40_1lbhr","suffixVisible":"with-suffix__suffixVisible_1lbhr","hasSuffix":"with-suffix__hasSuffix_1lbhr","spacer":"with-suffix__spacer_1lbhr","suffix":"with-suffix__suffix_1lbhr","disabled":"with-suffix__disabled_1lbhr","inverted":"with-suffix__inverted_1lbhr","readOnly":"with-suffix__readOnly_1lbhr"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var withSuffix = function (Input) {
|
package/cssm/index.module.css
CHANGED
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
--gap-xs: 8px; /* 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
|
-
|
|
21
|
+
|
|
22
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
23
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
24
|
+
--gap-0: 0px;
|
|
22
25
|
--gap-8: var(--gap-xs);
|
|
23
26
|
} :root {
|
|
24
27
|
} :root {
|
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-
|
|
7
|
+
var styles = {"suffixContainer":"with-suffix__suffixContainer_1lbhr","size-40":"with-suffix__size-40_1lbhr","suffixVisible":"with-suffix__suffixVisible_1lbhr","hasSuffix":"with-suffix__hasSuffix_1lbhr","spacer":"with-suffix__spacer_1lbhr","suffix":"with-suffix__suffix_1lbhr","disabled":"with-suffix__disabled_1lbhr","inverted":"with-suffix__inverted_1lbhr","readOnly":"with-suffix__readOnly_1lbhr"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var withSuffix = function (Input) {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hlry */
|
|
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);
|
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
--gap-xs: 8px; /* 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 */
|
|
20
20
|
|
|
21
21
|
/* новые значения, используйте их */
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
24
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
25
|
+
--gap-0: 0px;
|
|
23
26
|
--gap-8: var(--gap-xs);
|
|
24
27
|
} :root {
|
|
25
28
|
} :root {
|
|
@@ -38,7 +41,7 @@
|
|
|
38
41
|
/* display */
|
|
39
42
|
|
|
40
43
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
41
|
-
} .with-
|
|
44
|
+
} .with-suffix__suffixContainer_1lbhr {
|
|
42
45
|
font-size: 16px;
|
|
43
46
|
line-height: 20px;
|
|
44
47
|
font-weight: 400;
|
|
@@ -50,29 +53,29 @@
|
|
|
50
53
|
align-items: center;
|
|
51
54
|
display: none;
|
|
52
55
|
pointer-events: none
|
|
53
|
-
} .with-
|
|
56
|
+
} .with-suffix__suffixContainer_1lbhr.with-suffix__size-40_1lbhr {
|
|
54
57
|
font-size: 14px;
|
|
55
58
|
line-height: 18px;
|
|
56
59
|
font-weight: 400;
|
|
57
60
|
padding: var(--gap-0) var(--gap-8);
|
|
58
|
-
} input:focus:not(:read-only) + .with-
|
|
59
|
-
.with-
|
|
61
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_1lbhr,
|
|
62
|
+
.with-suffix__suffixVisible_1lbhr .with-suffix__suffixContainer_1lbhr {
|
|
60
63
|
display: inline-flex;
|
|
61
|
-
} .with-
|
|
64
|
+
} .with-suffix__hasSuffix_1lbhr input:focus::placeholder {
|
|
62
65
|
color: transparent;
|
|
63
66
|
transition: none;
|
|
64
|
-
} .with-
|
|
67
|
+
} .with-suffix__spacer_1lbhr {
|
|
65
68
|
visibility: hidden;
|
|
66
69
|
flex-shrink: 0;
|
|
67
70
|
white-space: pre;
|
|
68
|
-
} .with-
|
|
71
|
+
} .with-suffix__suffix_1lbhr {
|
|
69
72
|
white-space: pre;
|
|
70
|
-
} .with-
|
|
73
|
+
} .with-suffix__disabled_1lbhr {
|
|
71
74
|
color: var(--input-disabled-color)
|
|
72
|
-
} .with-
|
|
75
|
+
} .with-suffix__disabled_1lbhr.with-suffix__inverted_1lbhr {
|
|
73
76
|
color: var(--input-inverted-disabled-color);
|
|
74
|
-
} .with-
|
|
77
|
+
} .with-suffix__readOnly_1lbhr {
|
|
75
78
|
color: var(--input-read-only-color)
|
|
76
|
-
} .with-
|
|
79
|
+
} .with-suffix__readOnly_1lbhr.with-suffix__inverted_1lbhr {
|
|
77
80
|
color: var(--input-inverted-read-only-color);
|
|
78
81
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hlry */
|
|
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);
|
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
--gap-xs: 8px; /* 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 */
|
|
20
20
|
|
|
21
21
|
/* новые значения, используйте их */
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
24
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
25
|
+
--gap-0: 0px;
|
|
23
26
|
--gap-8: var(--gap-xs);
|
|
24
27
|
} :root {
|
|
25
28
|
} :root {
|
|
@@ -38,7 +41,7 @@
|
|
|
38
41
|
/* display */
|
|
39
42
|
|
|
40
43
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
41
|
-
} .with-
|
|
44
|
+
} .with-suffix__suffixContainer_1lbhr {
|
|
42
45
|
font-size: 16px;
|
|
43
46
|
line-height: 20px;
|
|
44
47
|
font-weight: 400;
|
|
@@ -50,29 +53,29 @@
|
|
|
50
53
|
align-items: center;
|
|
51
54
|
display: none;
|
|
52
55
|
pointer-events: none
|
|
53
|
-
} .with-
|
|
56
|
+
} .with-suffix__suffixContainer_1lbhr.with-suffix__size-40_1lbhr {
|
|
54
57
|
font-size: 14px;
|
|
55
58
|
line-height: 18px;
|
|
56
59
|
font-weight: 400;
|
|
57
60
|
padding: var(--gap-0) var(--gap-8);
|
|
58
|
-
} input:focus:not(:read-only) + .with-
|
|
59
|
-
.with-
|
|
61
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_1lbhr,
|
|
62
|
+
.with-suffix__suffixVisible_1lbhr .with-suffix__suffixContainer_1lbhr {
|
|
60
63
|
display: inline-flex;
|
|
61
|
-
} .with-
|
|
64
|
+
} .with-suffix__hasSuffix_1lbhr input:focus::placeholder {
|
|
62
65
|
color: transparent;
|
|
63
66
|
transition: none;
|
|
64
|
-
} .with-
|
|
67
|
+
} .with-suffix__spacer_1lbhr {
|
|
65
68
|
visibility: hidden;
|
|
66
69
|
flex-shrink: 0;
|
|
67
70
|
white-space: pre;
|
|
68
|
-
} .with-
|
|
71
|
+
} .with-suffix__suffix_1lbhr {
|
|
69
72
|
white-space: pre;
|
|
70
|
-
} .with-
|
|
73
|
+
} .with-suffix__disabled_1lbhr {
|
|
71
74
|
color: var(--input-disabled-color)
|
|
72
|
-
} .with-
|
|
75
|
+
} .with-suffix__disabled_1lbhr.with-suffix__inverted_1lbhr {
|
|
73
76
|
color: var(--input-inverted-disabled-color);
|
|
74
|
-
} .with-
|
|
77
|
+
} .with-suffix__readOnly_1lbhr {
|
|
75
78
|
color: var(--input-read-only-color)
|
|
76
|
-
} .with-
|
|
79
|
+
} .with-suffix__readOnly_1lbhr.with-suffix__inverted_1lbhr {
|
|
77
80
|
color: var(--input-inverted-read-only-color);
|
|
78
81
|
}
|
package/modern/Component.js
CHANGED
|
@@ -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-
|
|
6
|
+
const styles = {"suffixContainer":"with-suffix__suffixContainer_1lbhr","size-40":"with-suffix__size-40_1lbhr","suffixVisible":"with-suffix__suffixVisible_1lbhr","hasSuffix":"with-suffix__hasSuffix_1lbhr","spacer":"with-suffix__spacer_1lbhr","suffix":"with-suffix__suffix_1lbhr","disabled":"with-suffix__disabled_1lbhr","inverted":"with-suffix__inverted_1lbhr","readOnly":"with-suffix__readOnly_1lbhr"};
|
|
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:
|
|
1
|
+
/* hash: 1hlry */
|
|
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);
|
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
--gap-xs: 8px; /* 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 */
|
|
20
20
|
|
|
21
21
|
/* новые значения, используйте их */
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
24
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
25
|
+
--gap-0: 0px;
|
|
23
26
|
--gap-8: var(--gap-xs);
|
|
24
27
|
} :root {
|
|
25
28
|
} :root {
|
|
@@ -38,7 +41,7 @@
|
|
|
38
41
|
/* display */
|
|
39
42
|
|
|
40
43
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
41
|
-
} .with-
|
|
44
|
+
} .with-suffix__suffixContainer_1lbhr {
|
|
42
45
|
font-size: 16px;
|
|
43
46
|
line-height: 20px;
|
|
44
47
|
font-weight: 400;
|
|
@@ -50,29 +53,29 @@
|
|
|
50
53
|
align-items: center;
|
|
51
54
|
display: none;
|
|
52
55
|
pointer-events: none
|
|
53
|
-
} .with-
|
|
56
|
+
} .with-suffix__suffixContainer_1lbhr.with-suffix__size-40_1lbhr {
|
|
54
57
|
font-size: 14px;
|
|
55
58
|
line-height: 18px;
|
|
56
59
|
font-weight: 400;
|
|
57
60
|
padding: var(--gap-0) var(--gap-8);
|
|
58
|
-
} input:focus:not(:read-only) + .with-
|
|
59
|
-
.with-
|
|
61
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_1lbhr,
|
|
62
|
+
.with-suffix__suffixVisible_1lbhr .with-suffix__suffixContainer_1lbhr {
|
|
60
63
|
display: inline-flex;
|
|
61
|
-
} .with-
|
|
64
|
+
} .with-suffix__hasSuffix_1lbhr input:focus::placeholder {
|
|
62
65
|
color: transparent;
|
|
63
66
|
transition: none;
|
|
64
|
-
} .with-
|
|
67
|
+
} .with-suffix__spacer_1lbhr {
|
|
65
68
|
visibility: hidden;
|
|
66
69
|
flex-shrink: 0;
|
|
67
70
|
white-space: pre;
|
|
68
|
-
} .with-
|
|
71
|
+
} .with-suffix__suffix_1lbhr {
|
|
69
72
|
white-space: pre;
|
|
70
|
-
} .with-
|
|
73
|
+
} .with-suffix__disabled_1lbhr {
|
|
71
74
|
color: var(--input-disabled-color)
|
|
72
|
-
} .with-
|
|
75
|
+
} .with-suffix__disabled_1lbhr.with-suffix__inverted_1lbhr {
|
|
73
76
|
color: var(--input-inverted-disabled-color);
|
|
74
|
-
} .with-
|
|
77
|
+
} .with-suffix__readOnly_1lbhr {
|
|
75
78
|
color: var(--input-read-only-color)
|
|
76
|
-
} .with-
|
|
79
|
+
} .with-suffix__readOnly_1lbhr.with-suffix__inverted_1lbhr {
|
|
77
80
|
color: var(--input-inverted-read-only-color);
|
|
78
81
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-with-suffix",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-input": "^15.5.
|
|
19
|
-
"@alfalab/core-components-portal": "^3.3.
|
|
18
|
+
"@alfalab/core-components-input": "^15.5.1",
|
|
19
|
+
"@alfalab/core-components-portal": "^3.3.6",
|
|
20
20
|
"classnames": "^2.5.1",
|
|
21
21
|
"react-merge-refs": "^1.1.0",
|
|
22
22
|
"tslib": "^2.4.0"
|
|
23
23
|
},
|
|
24
24
|
"themesVersion": "13.7.0",
|
|
25
|
-
"varsVersion": "9.
|
|
25
|
+
"varsVersion": "9.18.0"
|
|
26
26
|
}
|