@alfalab/core-components-with-suffix 4.2.13 → 4.2.14
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/esm/Component.js +1 -1
- package/esm/index.css +12 -12
- package/index.css +12 -12
- package/modern/Component.js +1 -1
- package/modern/index.css +12 -12
- 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_smd4v","size-40":"with-suffix__size-40_smd4v","suffixVisible":"with-suffix__suffixVisible_smd4v","hasSuffix":"with-suffix__hasSuffix_smd4v","spacer":"with-suffix__spacer_smd4v","suffix":"with-suffix__suffix_smd4v","disabled":"with-suffix__disabled_smd4v","inverted":"with-suffix__inverted_smd4v","readOnly":"with-suffix__readOnly_smd4v"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var withSuffix = function (Input) {
|
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_smd4v","size-40":"with-suffix__size-40_smd4v","suffixVisible":"with-suffix__suffixVisible_smd4v","hasSuffix":"with-suffix__hasSuffix_smd4v","spacer":"with-suffix__spacer_smd4v","suffix":"with-suffix__suffix_smd4v","disabled":"with-suffix__disabled_smd4v","inverted":"with-suffix__inverted_smd4v","readOnly":"with-suffix__readOnly_smd4v"};
|
|
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: 17o56 */
|
|
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);
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
/* display */
|
|
42
42
|
|
|
43
43
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
44
|
-
} .with-
|
|
44
|
+
} .with-suffix__suffixContainer_smd4v {
|
|
45
45
|
font-size: 16px;
|
|
46
46
|
line-height: 20px;
|
|
47
47
|
font-weight: 400;
|
|
@@ -53,29 +53,29 @@
|
|
|
53
53
|
align-items: center;
|
|
54
54
|
display: none;
|
|
55
55
|
pointer-events: none
|
|
56
|
-
} .with-
|
|
56
|
+
} .with-suffix__suffixContainer_smd4v.with-suffix__size-40_smd4v {
|
|
57
57
|
font-size: 14px;
|
|
58
58
|
line-height: 18px;
|
|
59
59
|
font-weight: 400;
|
|
60
60
|
padding: var(--gap-0) var(--gap-8);
|
|
61
|
-
} input:focus:not(:read-only) + .with-
|
|
62
|
-
.with-
|
|
61
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_smd4v,
|
|
62
|
+
.with-suffix__suffixVisible_smd4v .with-suffix__suffixContainer_smd4v {
|
|
63
63
|
display: inline-flex;
|
|
64
|
-
} .with-
|
|
64
|
+
} .with-suffix__hasSuffix_smd4v input:focus::placeholder {
|
|
65
65
|
color: transparent;
|
|
66
66
|
transition: none;
|
|
67
|
-
} .with-
|
|
67
|
+
} .with-suffix__spacer_smd4v {
|
|
68
68
|
visibility: hidden;
|
|
69
69
|
flex-shrink: 0;
|
|
70
70
|
white-space: pre;
|
|
71
|
-
} .with-
|
|
71
|
+
} .with-suffix__suffix_smd4v {
|
|
72
72
|
white-space: pre;
|
|
73
|
-
} .with-
|
|
73
|
+
} .with-suffix__disabled_smd4v {
|
|
74
74
|
color: var(--input-disabled-color)
|
|
75
|
-
} .with-
|
|
75
|
+
} .with-suffix__disabled_smd4v.with-suffix__inverted_smd4v {
|
|
76
76
|
color: var(--input-inverted-disabled-color);
|
|
77
|
-
} .with-
|
|
77
|
+
} .with-suffix__readOnly_smd4v {
|
|
78
78
|
color: var(--input-read-only-color)
|
|
79
|
-
} .with-
|
|
79
|
+
} .with-suffix__readOnly_smd4v.with-suffix__inverted_smd4v {
|
|
80
80
|
color: var(--input-inverted-read-only-color);
|
|
81
81
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 17o56 */
|
|
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);
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
/* display */
|
|
42
42
|
|
|
43
43
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
44
|
-
} .with-
|
|
44
|
+
} .with-suffix__suffixContainer_smd4v {
|
|
45
45
|
font-size: 16px;
|
|
46
46
|
line-height: 20px;
|
|
47
47
|
font-weight: 400;
|
|
@@ -53,29 +53,29 @@
|
|
|
53
53
|
align-items: center;
|
|
54
54
|
display: none;
|
|
55
55
|
pointer-events: none
|
|
56
|
-
} .with-
|
|
56
|
+
} .with-suffix__suffixContainer_smd4v.with-suffix__size-40_smd4v {
|
|
57
57
|
font-size: 14px;
|
|
58
58
|
line-height: 18px;
|
|
59
59
|
font-weight: 400;
|
|
60
60
|
padding: var(--gap-0) var(--gap-8);
|
|
61
|
-
} input:focus:not(:read-only) + .with-
|
|
62
|
-
.with-
|
|
61
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_smd4v,
|
|
62
|
+
.with-suffix__suffixVisible_smd4v .with-suffix__suffixContainer_smd4v {
|
|
63
63
|
display: inline-flex;
|
|
64
|
-
} .with-
|
|
64
|
+
} .with-suffix__hasSuffix_smd4v input:focus::placeholder {
|
|
65
65
|
color: transparent;
|
|
66
66
|
transition: none;
|
|
67
|
-
} .with-
|
|
67
|
+
} .with-suffix__spacer_smd4v {
|
|
68
68
|
visibility: hidden;
|
|
69
69
|
flex-shrink: 0;
|
|
70
70
|
white-space: pre;
|
|
71
|
-
} .with-
|
|
71
|
+
} .with-suffix__suffix_smd4v {
|
|
72
72
|
white-space: pre;
|
|
73
|
-
} .with-
|
|
73
|
+
} .with-suffix__disabled_smd4v {
|
|
74
74
|
color: var(--input-disabled-color)
|
|
75
|
-
} .with-
|
|
75
|
+
} .with-suffix__disabled_smd4v.with-suffix__inverted_smd4v {
|
|
76
76
|
color: var(--input-inverted-disabled-color);
|
|
77
|
-
} .with-
|
|
77
|
+
} .with-suffix__readOnly_smd4v {
|
|
78
78
|
color: var(--input-read-only-color)
|
|
79
|
-
} .with-
|
|
79
|
+
} .with-suffix__readOnly_smd4v.with-suffix__inverted_smd4v {
|
|
80
80
|
color: var(--input-inverted-read-only-color);
|
|
81
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_smd4v","size-40":"with-suffix__size-40_smd4v","suffixVisible":"with-suffix__suffixVisible_smd4v","hasSuffix":"with-suffix__hasSuffix_smd4v","spacer":"with-suffix__spacer_smd4v","suffix":"with-suffix__suffix_smd4v","disabled":"with-suffix__disabled_smd4v","inverted":"with-suffix__inverted_smd4v","readOnly":"with-suffix__readOnly_smd4v"};
|
|
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: 17o56 */
|
|
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);
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
/* display */
|
|
42
42
|
|
|
43
43
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
44
|
-
} .with-
|
|
44
|
+
} .with-suffix__suffixContainer_smd4v {
|
|
45
45
|
font-size: 16px;
|
|
46
46
|
line-height: 20px;
|
|
47
47
|
font-weight: 400;
|
|
@@ -53,29 +53,29 @@
|
|
|
53
53
|
align-items: center;
|
|
54
54
|
display: none;
|
|
55
55
|
pointer-events: none
|
|
56
|
-
} .with-
|
|
56
|
+
} .with-suffix__suffixContainer_smd4v.with-suffix__size-40_smd4v {
|
|
57
57
|
font-size: 14px;
|
|
58
58
|
line-height: 18px;
|
|
59
59
|
font-weight: 400;
|
|
60
60
|
padding: var(--gap-0) var(--gap-8);
|
|
61
|
-
} input:focus:not(:read-only) + .with-
|
|
62
|
-
.with-
|
|
61
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_smd4v,
|
|
62
|
+
.with-suffix__suffixVisible_smd4v .with-suffix__suffixContainer_smd4v {
|
|
63
63
|
display: inline-flex;
|
|
64
|
-
} .with-
|
|
64
|
+
} .with-suffix__hasSuffix_smd4v input:focus::placeholder {
|
|
65
65
|
color: transparent;
|
|
66
66
|
transition: none;
|
|
67
|
-
} .with-
|
|
67
|
+
} .with-suffix__spacer_smd4v {
|
|
68
68
|
visibility: hidden;
|
|
69
69
|
flex-shrink: 0;
|
|
70
70
|
white-space: pre;
|
|
71
|
-
} .with-
|
|
71
|
+
} .with-suffix__suffix_smd4v {
|
|
72
72
|
white-space: pre;
|
|
73
|
-
} .with-
|
|
73
|
+
} .with-suffix__disabled_smd4v {
|
|
74
74
|
color: var(--input-disabled-color)
|
|
75
|
-
} .with-
|
|
75
|
+
} .with-suffix__disabled_smd4v.with-suffix__inverted_smd4v {
|
|
76
76
|
color: var(--input-inverted-disabled-color);
|
|
77
|
-
} .with-
|
|
77
|
+
} .with-suffix__readOnly_smd4v {
|
|
78
78
|
color: var(--input-read-only-color)
|
|
79
|
-
} .with-
|
|
79
|
+
} .with-suffix__readOnly_smd4v.with-suffix__inverted_smd4v {
|
|
80
80
|
color: var(--input-inverted-read-only-color);
|
|
81
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.14",
|
|
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.2",
|
|
19
|
+
"@alfalab/core-components-portal": "^3.3.7",
|
|
20
20
|
"classnames": "^2.5.1",
|
|
21
21
|
"react-merge-refs": "^1.1.0",
|
|
22
22
|
"tslib": "^2.4.0"
|
|
23
23
|
},
|
|
24
|
-
"themesVersion": "13.7.
|
|
24
|
+
"themesVersion": "13.7.1",
|
|
25
25
|
"varsVersion": "9.18.0"
|
|
26
26
|
}
|