@alfalab/core-components-with-suffix 4.1.10 → 4.1.11
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.d.ts +1 -1
- package/Component.js +1 -1
- package/cssm/Component.d.ts +1 -1
- package/cssm/index.module.css +3 -5
- package/esm/Component.d.ts +1 -1
- package/esm/Component.js +1 -1
- package/esm/index.css +12 -14
- package/index.css +12 -14
- package/modern/Component.d.ts +1 -1
- package/modern/Component.js +1 -1
- package/modern/index.css +12 -14
- package/package.json +2 -2
package/Component.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ type withSuffixProps = InputProps & {
|
|
|
13
13
|
*/
|
|
14
14
|
suffixContainerClassName?: string;
|
|
15
15
|
};
|
|
16
|
-
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "
|
|
16
|
+
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "FormControlComponent"> & {
|
|
17
17
|
breakpoint?: number | undefined;
|
|
18
18
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
19
19
|
} & {
|
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_6k2re","suffixVisible":"with-suffix__suffixVisible_6k2re","hasSuffix":"with-suffix__hasSuffix_6k2re","spacer":"with-suffix__spacer_6k2re","suffix":"with-suffix__suffix_6k2re","disabled":"with-suffix__disabled_6k2re","readOnly":"with-suffix__readOnly_6k2re"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var withSuffix = function (Input) {
|
package/cssm/Component.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ type withSuffixProps = InputProps & {
|
|
|
13
13
|
*/
|
|
14
14
|
suffixContainerClassName?: string;
|
|
15
15
|
};
|
|
16
|
-
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "
|
|
16
|
+
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "FormControlComponent"> & {
|
|
17
17
|
breakpoint?: number | undefined;
|
|
18
18
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
19
19
|
} & {
|
package/cssm/index.module.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
|
-
--color-light-text-
|
|
3
|
+
--color-light-text-tertiary: rgba(5, 8, 29, 0.38); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :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 */
|
|
5
5
|
} :root {
|
|
6
6
|
} :root {
|
|
@@ -17,18 +17,16 @@
|
|
|
17
17
|
} :root {
|
|
18
18
|
|
|
19
19
|
/* disabled */
|
|
20
|
-
--input-disabled-color: var(--color-light-text-
|
|
20
|
+
--input-disabled-color: var(--color-light-text-tertiary);
|
|
21
21
|
|
|
22
22
|
/* read-only */
|
|
23
|
-
--input-read-only-color: var(--color-light-text-
|
|
23
|
+
--input-read-only-color: var(--color-light-text-tertiary);
|
|
24
24
|
|
|
25
25
|
/* error */
|
|
26
26
|
|
|
27
27
|
/* display */
|
|
28
28
|
|
|
29
29
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
30
|
-
|
|
31
|
-
/* mobile */
|
|
32
30
|
} .suffixContainer {
|
|
33
31
|
font-size: 16px;
|
|
34
32
|
line-height: 20px;
|
package/esm/Component.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ type withSuffixProps = InputProps & {
|
|
|
13
13
|
*/
|
|
14
14
|
suffixContainerClassName?: string;
|
|
15
15
|
};
|
|
16
|
-
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "
|
|
16
|
+
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "FormControlComponent"> & {
|
|
17
17
|
breakpoint?: number | undefined;
|
|
18
18
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
19
19
|
} & {
|
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_6k2re","suffixVisible":"with-suffix__suffixVisible_6k2re","hasSuffix":"with-suffix__hasSuffix_6k2re","spacer":"with-suffix__spacer_6k2re","suffix":"with-suffix__suffix_6k2re","disabled":"with-suffix__disabled_6k2re","readOnly":"with-suffix__readOnly_6k2re"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var withSuffix = function (Input) {
|
package/esm/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r8rnr */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-
|
|
4
|
+
--color-light-text-tertiary: rgba(5, 8, 29, 0.38); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :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 */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -18,19 +18,17 @@
|
|
|
18
18
|
} :root {
|
|
19
19
|
|
|
20
20
|
/* disabled */
|
|
21
|
-
--input-disabled-color: var(--color-light-text-
|
|
21
|
+
--input-disabled-color: var(--color-light-text-tertiary);
|
|
22
22
|
|
|
23
23
|
/* read-only */
|
|
24
|
-
--input-read-only-color: var(--color-light-text-
|
|
24
|
+
--input-read-only-color: var(--color-light-text-tertiary);
|
|
25
25
|
|
|
26
26
|
/* error */
|
|
27
27
|
|
|
28
28
|
/* display */
|
|
29
29
|
|
|
30
30
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
31
|
-
|
|
32
|
-
/* mobile */
|
|
33
|
-
} .with-suffix__suffixContainer_59fi9 {
|
|
31
|
+
} .with-suffix__suffixContainer_6k2re {
|
|
34
32
|
font-size: 16px;
|
|
35
33
|
line-height: 20px;
|
|
36
34
|
font-weight: 400;
|
|
@@ -42,20 +40,20 @@
|
|
|
42
40
|
align-items: center;
|
|
43
41
|
display: none;
|
|
44
42
|
pointer-events: none;
|
|
45
|
-
} input:focus:not(:read-only) + .with-
|
|
46
|
-
.with-
|
|
43
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_6k2re,
|
|
44
|
+
.with-suffix__suffixVisible_6k2re .with-suffix__suffixContainer_6k2re {
|
|
47
45
|
display: inline-flex;
|
|
48
|
-
} .with-
|
|
46
|
+
} .with-suffix__hasSuffix_6k2re input:focus::placeholder {
|
|
49
47
|
color: transparent;
|
|
50
48
|
transition: none;
|
|
51
|
-
} .with-
|
|
49
|
+
} .with-suffix__spacer_6k2re {
|
|
52
50
|
visibility: hidden;
|
|
53
51
|
flex-shrink: 0;
|
|
54
52
|
white-space: pre;
|
|
55
|
-
} .with-
|
|
53
|
+
} .with-suffix__suffix_6k2re {
|
|
56
54
|
white-space: pre;
|
|
57
|
-
} .with-
|
|
55
|
+
} .with-suffix__disabled_6k2re {
|
|
58
56
|
color: var(--input-disabled-color);
|
|
59
|
-
} .with-
|
|
57
|
+
} .with-suffix__readOnly_6k2re {
|
|
60
58
|
color: var(--input-read-only-color);
|
|
61
59
|
}
|
package/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r8rnr */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-
|
|
4
|
+
--color-light-text-tertiary: rgba(5, 8, 29, 0.38); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :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 */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -18,19 +18,17 @@
|
|
|
18
18
|
} :root {
|
|
19
19
|
|
|
20
20
|
/* disabled */
|
|
21
|
-
--input-disabled-color: var(--color-light-text-
|
|
21
|
+
--input-disabled-color: var(--color-light-text-tertiary);
|
|
22
22
|
|
|
23
23
|
/* read-only */
|
|
24
|
-
--input-read-only-color: var(--color-light-text-
|
|
24
|
+
--input-read-only-color: var(--color-light-text-tertiary);
|
|
25
25
|
|
|
26
26
|
/* error */
|
|
27
27
|
|
|
28
28
|
/* display */
|
|
29
29
|
|
|
30
30
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
31
|
-
|
|
32
|
-
/* mobile */
|
|
33
|
-
} .with-suffix__suffixContainer_59fi9 {
|
|
31
|
+
} .with-suffix__suffixContainer_6k2re {
|
|
34
32
|
font-size: 16px;
|
|
35
33
|
line-height: 20px;
|
|
36
34
|
font-weight: 400;
|
|
@@ -42,20 +40,20 @@
|
|
|
42
40
|
align-items: center;
|
|
43
41
|
display: none;
|
|
44
42
|
pointer-events: none;
|
|
45
|
-
} input:focus:not(:read-only) + .with-
|
|
46
|
-
.with-
|
|
43
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_6k2re,
|
|
44
|
+
.with-suffix__suffixVisible_6k2re .with-suffix__suffixContainer_6k2re {
|
|
47
45
|
display: inline-flex;
|
|
48
|
-
} .with-
|
|
46
|
+
} .with-suffix__hasSuffix_6k2re input:focus::placeholder {
|
|
49
47
|
color: transparent;
|
|
50
48
|
transition: none;
|
|
51
|
-
} .with-
|
|
49
|
+
} .with-suffix__spacer_6k2re {
|
|
52
50
|
visibility: hidden;
|
|
53
51
|
flex-shrink: 0;
|
|
54
52
|
white-space: pre;
|
|
55
|
-
} .with-
|
|
53
|
+
} .with-suffix__suffix_6k2re {
|
|
56
54
|
white-space: pre;
|
|
57
|
-
} .with-
|
|
55
|
+
} .with-suffix__disabled_6k2re {
|
|
58
56
|
color: var(--input-disabled-color);
|
|
59
|
-
} .with-
|
|
57
|
+
} .with-suffix__readOnly_6k2re {
|
|
60
58
|
color: var(--input-read-only-color);
|
|
61
59
|
}
|
package/modern/Component.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ type withSuffixProps = InputProps & {
|
|
|
13
13
|
*/
|
|
14
14
|
suffixContainerClassName?: string;
|
|
15
15
|
};
|
|
16
|
-
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "
|
|
16
|
+
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "FormControlComponent"> & {
|
|
17
17
|
breakpoint?: number | undefined;
|
|
18
18
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
19
19
|
} & {
|
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_6k2re","suffixVisible":"with-suffix__suffixVisible_6k2re","hasSuffix":"with-suffix__hasSuffix_6k2re","spacer":"with-suffix__spacer_6k2re","suffix":"with-suffix__suffix_6k2re","disabled":"with-suffix__disabled_6k2re","readOnly":"with-suffix__readOnly_6k2re"};
|
|
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,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r8rnr */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-
|
|
4
|
+
--color-light-text-tertiary: rgba(5, 8, 29, 0.38); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :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 */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -18,19 +18,17 @@
|
|
|
18
18
|
} :root {
|
|
19
19
|
|
|
20
20
|
/* disabled */
|
|
21
|
-
--input-disabled-color: var(--color-light-text-
|
|
21
|
+
--input-disabled-color: var(--color-light-text-tertiary);
|
|
22
22
|
|
|
23
23
|
/* read-only */
|
|
24
|
-
--input-read-only-color: var(--color-light-text-
|
|
24
|
+
--input-read-only-color: var(--color-light-text-tertiary);
|
|
25
25
|
|
|
26
26
|
/* error */
|
|
27
27
|
|
|
28
28
|
/* display */
|
|
29
29
|
|
|
30
30
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
31
|
-
|
|
32
|
-
/* mobile */
|
|
33
|
-
} .with-suffix__suffixContainer_59fi9 {
|
|
31
|
+
} .with-suffix__suffixContainer_6k2re {
|
|
34
32
|
font-size: 16px;
|
|
35
33
|
line-height: 20px;
|
|
36
34
|
font-weight: 400;
|
|
@@ -42,20 +40,20 @@
|
|
|
42
40
|
align-items: center;
|
|
43
41
|
display: none;
|
|
44
42
|
pointer-events: none;
|
|
45
|
-
} input:focus:not(:read-only) + .with-
|
|
46
|
-
.with-
|
|
43
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_6k2re,
|
|
44
|
+
.with-suffix__suffixVisible_6k2re .with-suffix__suffixContainer_6k2re {
|
|
47
45
|
display: inline-flex;
|
|
48
|
-
} .with-
|
|
46
|
+
} .with-suffix__hasSuffix_6k2re input:focus::placeholder {
|
|
49
47
|
color: transparent;
|
|
50
48
|
transition: none;
|
|
51
|
-
} .with-
|
|
49
|
+
} .with-suffix__spacer_6k2re {
|
|
52
50
|
visibility: hidden;
|
|
53
51
|
flex-shrink: 0;
|
|
54
52
|
white-space: pre;
|
|
55
|
-
} .with-
|
|
53
|
+
} .with-suffix__suffix_6k2re {
|
|
56
54
|
white-space: pre;
|
|
57
|
-
} .with-
|
|
55
|
+
} .with-suffix__disabled_6k2re {
|
|
58
56
|
color: var(--input-disabled-color);
|
|
59
|
-
} .with-
|
|
57
|
+
} .with-suffix__readOnly_6k2re {
|
|
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.1.
|
|
3
|
+
"version": "4.1.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@alfalab/core-components-input": "^
|
|
17
|
+
"@alfalab/core-components-input": "^13.0.0",
|
|
18
18
|
"@alfalab/core-components-portal": "^3.2.0",
|
|
19
19
|
"classnames": "^2.3.1",
|
|
20
20
|
"react-merge-refs": "^1.1.0",
|