@alfalab/core-components-password-input 3.0.4 → 3.0.7
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 -0
- package/component.js +1 -1
- package/cssm/component.d.ts +1 -0
- package/esm/component.d.ts +1 -0
- package/esm/component.js +1 -1
- package/esm/index.css +5 -5
- package/index.css +5 -5
- package/modern/component.d.ts +1 -0
- package/modern/component.js +1 -1
- package/modern/index.css +5 -5
- package/package.json +4 -4
package/component.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const PasswordInput: React.ForwardRefExoticComponent<Pick<React.InputHTM
|
|
|
22
22
|
success?: boolean | undefined;
|
|
23
23
|
hint?: React.ReactNode;
|
|
24
24
|
label?: React.ReactNode;
|
|
25
|
+
labelView?: "inner" | "outer" | undefined;
|
|
25
26
|
type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
|
|
26
27
|
wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
27
28
|
leftAddons?: React.ReactNode;
|
package/component.js
CHANGED
|
@@ -53,7 +53,7 @@ function __rest(s, e) {
|
|
|
53
53
|
return t;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
var styles = {"eye":"password-
|
|
56
|
+
var styles = {"eye":"password-input__eye_35yd5","xl":"password-input__xl_35yd5","input":"password-input__input_35yd5"};
|
|
57
57
|
require('./index.css')
|
|
58
58
|
|
|
59
59
|
var PasswordInput = React.forwardRef(function (_a, ref) {
|
package/cssm/component.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const PasswordInput: React.ForwardRefExoticComponent<Pick<React.InputHTM
|
|
|
22
22
|
success?: boolean | undefined;
|
|
23
23
|
hint?: React.ReactNode;
|
|
24
24
|
label?: React.ReactNode;
|
|
25
|
+
labelView?: "inner" | "outer" | undefined;
|
|
25
26
|
type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
|
|
26
27
|
wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
27
28
|
leftAddons?: React.ReactNode;
|
package/esm/component.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const PasswordInput: React.ForwardRefExoticComponent<Pick<React.InputHTM
|
|
|
22
22
|
success?: boolean | undefined;
|
|
23
23
|
hint?: React.ReactNode;
|
|
24
24
|
label?: React.ReactNode;
|
|
25
|
+
labelView?: "inner" | "outer" | undefined;
|
|
25
26
|
type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
|
|
26
27
|
wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
27
28
|
leftAddons?: React.ReactNode;
|
package/esm/component.js
CHANGED
|
@@ -44,7 +44,7 @@ function __rest(s, e) {
|
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
var styles = {"eye":"password-
|
|
47
|
+
var styles = {"eye":"password-input__eye_35yd5","xl":"password-input__xl_35yd5","input":"password-input__input_35yd5"};
|
|
48
48
|
require('./index.css')
|
|
49
49
|
|
|
50
50
|
var PasswordInput = forwardRef(function (_a, ref) {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ijn1k */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
--gap-s-neg: -12px;
|
|
13
13
|
--gap-m-neg: -16px;
|
|
14
14
|
}
|
|
15
|
-
.password-
|
|
15
|
+
.password-input__eye_35yd5:last-child {
|
|
16
16
|
margin-right: var(--gap-s-neg);
|
|
17
17
|
}
|
|
18
|
-
.password-
|
|
18
|
+
.password-input__xl_35yd5 .password-input__eye_35yd5:last-child {
|
|
19
19
|
margin-right: var(--gap-m-neg);
|
|
20
20
|
}
|
|
21
|
-
.password-
|
|
21
|
+
.password-input__xl_35yd5 .password-input__eye_35yd5 {
|
|
22
22
|
margin-left: var(--gap-2xs);
|
|
23
23
|
}
|
|
24
|
-
.password-
|
|
24
|
+
.password-input__input_35yd5::-ms-reveal {
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ijn1k */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
--gap-s-neg: -12px;
|
|
13
13
|
--gap-m-neg: -16px;
|
|
14
14
|
}
|
|
15
|
-
.password-
|
|
15
|
+
.password-input__eye_35yd5:last-child {
|
|
16
16
|
margin-right: var(--gap-s-neg);
|
|
17
17
|
}
|
|
18
|
-
.password-
|
|
18
|
+
.password-input__xl_35yd5 .password-input__eye_35yd5:last-child {
|
|
19
19
|
margin-right: var(--gap-m-neg);
|
|
20
20
|
}
|
|
21
|
-
.password-
|
|
21
|
+
.password-input__xl_35yd5 .password-input__eye_35yd5 {
|
|
22
22
|
margin-left: var(--gap-2xs);
|
|
23
23
|
}
|
|
24
|
-
.password-
|
|
24
|
+
.password-input__input_35yd5::-ms-reveal {
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
package/modern/component.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const PasswordInput: React.ForwardRefExoticComponent<Pick<React.InputHTM
|
|
|
22
22
|
success?: boolean | undefined;
|
|
23
23
|
hint?: React.ReactNode;
|
|
24
24
|
label?: React.ReactNode;
|
|
25
|
+
labelView?: "inner" | "outer" | undefined;
|
|
25
26
|
type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
|
|
26
27
|
wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
27
28
|
leftAddons?: React.ReactNode;
|
package/modern/component.js
CHANGED
|
@@ -5,7 +5,7 @@ import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
|
5
5
|
import { EyeMIcon } from '@alfalab/icons-glyph/EyeMIcon';
|
|
6
6
|
import { EyeOffMIcon } from '@alfalab/icons-glyph/EyeOffMIcon';
|
|
7
7
|
|
|
8
|
-
var styles = {"eye":"password-
|
|
8
|
+
var styles = {"eye":"password-input__eye_35yd5","xl":"password-input__xl_35yd5","input":"password-input__input_35yd5"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const PasswordInput = forwardRef(({ onPasswordVisibleChange, passwordVisible, disabled, colors, rightAddons, size = 's', className, ...restProps }, ref) => {
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ijn1k */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
--gap-s-neg: -12px;
|
|
13
13
|
--gap-m-neg: -16px;
|
|
14
14
|
}
|
|
15
|
-
.password-
|
|
15
|
+
.password-input__eye_35yd5:last-child {
|
|
16
16
|
margin-right: var(--gap-s-neg);
|
|
17
17
|
}
|
|
18
|
-
.password-
|
|
18
|
+
.password-input__xl_35yd5 .password-input__eye_35yd5:last-child {
|
|
19
19
|
margin-right: var(--gap-m-neg);
|
|
20
20
|
}
|
|
21
|
-
.password-
|
|
21
|
+
.password-input__xl_35yd5 .password-input__eye_35yd5 {
|
|
22
22
|
margin-left: var(--gap-2xs);
|
|
23
23
|
}
|
|
24
|
-
.password-
|
|
24
|
+
.password-input__input_35yd5::-ms-reveal {
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-password-input",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "Input password",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-icon-button": "^5.0.
|
|
19
|
-
"@alfalab/core-components-input": "^10.
|
|
20
|
-
"@alfalab/icons-glyph": "^2.
|
|
18
|
+
"@alfalab/core-components-icon-button": "^5.0.4",
|
|
19
|
+
"@alfalab/core-components-input": "^10.2.2",
|
|
20
|
+
"@alfalab/icons-glyph": "^2.64.0",
|
|
21
21
|
"classnames": "^2.3.1"
|
|
22
22
|
}
|
|
23
23
|
}
|