@alfalab/core-components-with-suffix 4.0.32 → 4.0.33
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 +9 -9
- package/index.css +9 -9
- package/modern/Component.js +1 -1
- package/modern/index.css +9 -9
- package/package.json +3 -6
- package/send-stats.js +0 -82
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_1xz9n","suffixVisible":"with-suffix__suffixVisible_1xz9n","hasSuffix":"with-suffix__hasSuffix_1xz9n","spacer":"with-suffix__spacer_1xz9n","suffix":"with-suffix__suffix_1xz9n","disabled":"with-suffix__disabled_1xz9n","readOnly":"with-suffix__readOnly_1xz9n"};
|
|
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_1xz9n","suffixVisible":"with-suffix__suffixVisible_1xz9n","hasSuffix":"with-suffix__hasSuffix_1xz9n","spacer":"with-suffix__spacer_1xz9n","suffix":"with-suffix__suffix_1xz9n","disabled":"with-suffix__disabled_1xz9n","readOnly":"with-suffix__readOnly_1xz9n"};
|
|
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: tej9f */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
/* display */
|
|
29
29
|
|
|
30
30
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
31
|
-
} .with-
|
|
31
|
+
} .with-suffix__suffixContainer_1xz9n {
|
|
32
32
|
font-size: 16px;
|
|
33
33
|
line-height: 20px;
|
|
34
34
|
font-weight: 400;
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
align-items: center;
|
|
41
41
|
display: none;
|
|
42
42
|
pointer-events: none;
|
|
43
|
-
} input:focus:not(:read-only) + .with-
|
|
44
|
-
.with-
|
|
43
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_1xz9n,
|
|
44
|
+
.with-suffix__suffixVisible_1xz9n .with-suffix__suffixContainer_1xz9n {
|
|
45
45
|
display: inline-flex;
|
|
46
|
-
} .with-
|
|
46
|
+
} .with-suffix__hasSuffix_1xz9n input:focus::placeholder {
|
|
47
47
|
color: transparent;
|
|
48
48
|
transition: none;
|
|
49
|
-
} .with-
|
|
49
|
+
} .with-suffix__spacer_1xz9n {
|
|
50
50
|
visibility: hidden;
|
|
51
51
|
flex-shrink: 0;
|
|
52
52
|
white-space: pre;
|
|
53
|
-
} .with-
|
|
53
|
+
} .with-suffix__suffix_1xz9n {
|
|
54
54
|
white-space: pre;
|
|
55
|
-
} .with-
|
|
55
|
+
} .with-suffix__disabled_1xz9n {
|
|
56
56
|
color: var(--input-disabled-color);
|
|
57
|
-
} .with-
|
|
57
|
+
} .with-suffix__readOnly_1xz9n {
|
|
58
58
|
color: var(--input-read-only-color);
|
|
59
59
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tej9f */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
/* display */
|
|
29
29
|
|
|
30
30
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
31
|
-
} .with-
|
|
31
|
+
} .with-suffix__suffixContainer_1xz9n {
|
|
32
32
|
font-size: 16px;
|
|
33
33
|
line-height: 20px;
|
|
34
34
|
font-weight: 400;
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
align-items: center;
|
|
41
41
|
display: none;
|
|
42
42
|
pointer-events: none;
|
|
43
|
-
} input:focus:not(:read-only) + .with-
|
|
44
|
-
.with-
|
|
43
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_1xz9n,
|
|
44
|
+
.with-suffix__suffixVisible_1xz9n .with-suffix__suffixContainer_1xz9n {
|
|
45
45
|
display: inline-flex;
|
|
46
|
-
} .with-
|
|
46
|
+
} .with-suffix__hasSuffix_1xz9n input:focus::placeholder {
|
|
47
47
|
color: transparent;
|
|
48
48
|
transition: none;
|
|
49
|
-
} .with-
|
|
49
|
+
} .with-suffix__spacer_1xz9n {
|
|
50
50
|
visibility: hidden;
|
|
51
51
|
flex-shrink: 0;
|
|
52
52
|
white-space: pre;
|
|
53
|
-
} .with-
|
|
53
|
+
} .with-suffix__suffix_1xz9n {
|
|
54
54
|
white-space: pre;
|
|
55
|
-
} .with-
|
|
55
|
+
} .with-suffix__disabled_1xz9n {
|
|
56
56
|
color: var(--input-disabled-color);
|
|
57
|
-
} .with-
|
|
57
|
+
} .with-suffix__readOnly_1xz9n {
|
|
58
58
|
color: var(--input-read-only-color);
|
|
59
59
|
}
|
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_1xz9n","suffixVisible":"with-suffix__suffixVisible_1xz9n","hasSuffix":"with-suffix__hasSuffix_1xz9n","spacer":"with-suffix__spacer_1xz9n","suffix":"with-suffix__suffix_1xz9n","disabled":"with-suffix__disabled_1xz9n","readOnly":"with-suffix__readOnly_1xz9n"};
|
|
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: tej9f */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
/* display */
|
|
29
29
|
|
|
30
30
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
31
|
-
} .with-
|
|
31
|
+
} .with-suffix__suffixContainer_1xz9n {
|
|
32
32
|
font-size: 16px;
|
|
33
33
|
line-height: 20px;
|
|
34
34
|
font-weight: 400;
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
align-items: center;
|
|
41
41
|
display: none;
|
|
42
42
|
pointer-events: none;
|
|
43
|
-
} input:focus:not(:read-only) + .with-
|
|
44
|
-
.with-
|
|
43
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_1xz9n,
|
|
44
|
+
.with-suffix__suffixVisible_1xz9n .with-suffix__suffixContainer_1xz9n {
|
|
45
45
|
display: inline-flex;
|
|
46
|
-
} .with-
|
|
46
|
+
} .with-suffix__hasSuffix_1xz9n input:focus::placeholder {
|
|
47
47
|
color: transparent;
|
|
48
48
|
transition: none;
|
|
49
|
-
} .with-
|
|
49
|
+
} .with-suffix__spacer_1xz9n {
|
|
50
50
|
visibility: hidden;
|
|
51
51
|
flex-shrink: 0;
|
|
52
52
|
white-space: pre;
|
|
53
|
-
} .with-
|
|
53
|
+
} .with-suffix__suffix_1xz9n {
|
|
54
54
|
white-space: pre;
|
|
55
|
-
} .with-
|
|
55
|
+
} .with-suffix__disabled_1xz9n {
|
|
56
56
|
color: var(--input-disabled-color);
|
|
57
|
-
} .with-
|
|
57
|
+
} .with-suffix__readOnly_1xz9n {
|
|
58
58
|
color: var(--input-read-only-color);
|
|
59
59
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-with-suffix",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.33",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "./esm/index.js",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
|
|
11
|
-
},
|
|
12
9
|
"publishConfig": {
|
|
13
10
|
"access": "public",
|
|
14
11
|
"directory": "dist"
|
|
@@ -17,8 +14,8 @@
|
|
|
17
14
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
18
15
|
},
|
|
19
16
|
"dependencies": {
|
|
20
|
-
"@alfalab/core-components-input": "^11.1.
|
|
21
|
-
"@alfalab/core-components-portal": "^3.1.
|
|
17
|
+
"@alfalab/core-components-input": "^11.1.18",
|
|
18
|
+
"@alfalab/core-components-portal": "^3.1.5",
|
|
22
19
|
"classnames": "^2.3.1",
|
|
23
20
|
"react-merge-refs": "^1.1.0",
|
|
24
21
|
"tslib": "^2.4.0"
|
package/send-stats.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
const http = require('http');
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const { promisify } = require('util');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const readFile = promisify(fs.readFile);
|
|
7
|
-
|
|
8
|
-
async function main() {
|
|
9
|
-
const remoteHost = process.env.NIS_HOST || 'digital';
|
|
10
|
-
const remotePort = process.env.NIS_PORT || 80;
|
|
11
|
-
const remotePath = process.env.NIS_PATH || '/npm-install-stats/api/install-stats';
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
const [_, node, os, arch] =
|
|
15
|
-
/node\/v(\d+\.\d+\.\d+) (\w+) (\w+)/.exec(process.env.npm_config_user_agent) || [];
|
|
16
|
-
const [__, npm] = /npm\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
17
|
-
const [___, yarn] = /yarn\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
18
|
-
|
|
19
|
-
let ownPackageJson, packageJson;
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
const result = await Promise.all([
|
|
23
|
-
readFile(path.join(process.cwd(), 'package.json'), 'utf-8'),
|
|
24
|
-
readFile(path.join(process.cwd(), '../../../package.json'), 'utf-8'),
|
|
25
|
-
]);
|
|
26
|
-
|
|
27
|
-
ownPackageJson = JSON.parse(result[0]);
|
|
28
|
-
packageJson = JSON.parse(result[1]);
|
|
29
|
-
} catch (err) {
|
|
30
|
-
ownPackageJson = '';
|
|
31
|
-
packageJson = '';
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const data = {
|
|
35
|
-
node,
|
|
36
|
-
npm,
|
|
37
|
-
yarn,
|
|
38
|
-
os,
|
|
39
|
-
arch,
|
|
40
|
-
ownPackageJson: JSON.stringify(ownPackageJson),
|
|
41
|
-
packageJson: JSON.stringify(packageJson),
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const body = JSON.stringify(data);
|
|
45
|
-
|
|
46
|
-
const options = {
|
|
47
|
-
host: remoteHost,
|
|
48
|
-
port: remotePort,
|
|
49
|
-
path: remotePath,
|
|
50
|
-
method: 'POST',
|
|
51
|
-
headers: {
|
|
52
|
-
'Content-Type': 'application/json',
|
|
53
|
-
'Content-Length': body.length,
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return new Promise((resolve, reject) => {
|
|
58
|
-
const req = http.request(options, (res) => {
|
|
59
|
-
res.on('end', () => {
|
|
60
|
-
resolve();
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
req.on('error', () => {
|
|
65
|
-
reject();
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
req.write(body);
|
|
69
|
-
req.end();
|
|
70
|
-
});
|
|
71
|
-
} catch (error) {
|
|
72
|
-
throw error;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
main()
|
|
77
|
-
.then(() => {
|
|
78
|
-
process.exit(0);
|
|
79
|
-
})
|
|
80
|
-
.catch(() => {
|
|
81
|
-
process.exit(0);
|
|
82
|
-
});
|