next-helios-fe 1.4.5 → 1.4.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/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/button/index.tsx +1 -1
- package/src/components/content-container/modal/index.tsx +1 -1
- package/src/components/form/input/color.tsx +5 -2
- package/src/components/form/input/file.tsx +1 -0
- package/src/components/form/input/number.tsx +2 -0
- package/src/components/form/input/password.tsx +4 -2
- package/src/components/form/other/secret.tsx +8 -4
package/package.json
CHANGED
@@ -64,7 +64,7 @@ export const Button: React.FC<ButtonProps> = ({
|
|
64
64
|
|
65
65
|
return (
|
66
66
|
<button
|
67
|
-
className={`relative flex ${position} items-center ${width} px-3 ${height} rounded-md text-left ${variant} ${border} ${isActive} select-none disabled:pointer-events-none active:opacity-70 active:duration-300 active:ease-out ${className}`}
|
67
|
+
className={`relative flex ${position} items-center ${width} px-3 ${height} rounded-md text-left ${variant} ${border} ${isActive} select-none disabled:pointer-events-none active:opacity-70 active:duration-300 active:ease-out disabled:active:opacity-100 ${className}`}
|
68
68
|
{...rest}
|
69
69
|
>
|
70
70
|
{loading ? (
|
@@ -31,8 +31,8 @@ export const Modal: React.FC<ModalProps> = ({
|
|
31
31
|
useEffect(() => {
|
32
32
|
if (!options?.disableClose) {
|
33
33
|
document.addEventListener("keydown", (e) => {
|
34
|
-
e.preventDefault();
|
35
34
|
if (e.key === "Escape") {
|
35
|
+
e.preventDefault();
|
36
36
|
onClose && onClose();
|
37
37
|
}
|
38
38
|
});
|
@@ -62,6 +62,7 @@ export const Color: React.FC<ColorProps> = ({
|
|
62
62
|
type="button"
|
63
63
|
className={`h-full px-4 border-default border rounded-md text-slate-400 cursor-pointer focus:outline-none focus:ring-1 focus:ring-primary focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light disabled:text-slate-400 ${height}`}
|
64
64
|
style={{ backgroundColor: tempValue }}
|
65
|
+
tabIndex={-1}
|
65
66
|
onClick={() => {
|
66
67
|
inputRef.current?.click();
|
67
68
|
}}
|
@@ -88,15 +89,17 @@ export const Color: React.FC<ColorProps> = ({
|
|
88
89
|
value={tempValue}
|
89
90
|
onChange={(e) => setTempValue(e.target.value.toUpperCase())}
|
90
91
|
/>
|
91
|
-
<
|
92
|
+
<button
|
93
|
+
type="button"
|
92
94
|
className="absolute right-4 p-1 rounded-full text-xl text-slate-400 cursor-pointer hover:bg-secondary-light"
|
95
|
+
tabIndex={-1}
|
93
96
|
onClick={(e) => {
|
94
97
|
e.preventDefault();
|
95
98
|
onClipboardClick && onClipboardClick(tempValue);
|
96
99
|
}}
|
97
100
|
>
|
98
101
|
<Icon icon="fluent:clipboard-text-ltr-32-regular" />
|
99
|
-
</
|
102
|
+
</button>
|
100
103
|
</div>
|
101
104
|
</div>
|
102
105
|
</label>
|
@@ -61,6 +61,7 @@ export const Number: React.FC<NumberProps> = ({ options, label, ...rest }) => {
|
|
61
61
|
<button
|
62
62
|
type="button"
|
63
63
|
className="p-0.5 rounded-md shadow bg-primary-transparent hover:bg-primary-light text-primary disabled:bg-secondary disabled:text-white"
|
64
|
+
tabIndex={-1}
|
64
65
|
disabled={rest.disabled}
|
65
66
|
onClick={() => {
|
66
67
|
setTempValue(
|
@@ -75,6 +76,7 @@ export const Number: React.FC<NumberProps> = ({ options, label, ...rest }) => {
|
|
75
76
|
<button
|
76
77
|
type="button"
|
77
78
|
className="p-0.5 rounded-md shadow bg-primary-transparent hover:bg-primary-light text-primary disabled:bg-secondary disabled:text-white"
|
79
|
+
tabIndex={-1}
|
78
80
|
disabled={rest.disabled}
|
79
81
|
onClick={() => {
|
80
82
|
setTempValue(
|
@@ -42,15 +42,17 @@ export const Password: React.FC<PasswordProps> = ({
|
|
42
42
|
className={`w-full px-4 border-default border rounded-md bg-secondary-bg placeholder:duration-300 placeholder:translate-x-0 focus:placeholder:translate-x-1 placeholder:text-slate-300 focus:outline-none focus:ring-1 focus:ring-primary focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light disabled:text-slate-400 ${height}`}
|
43
43
|
{...rest}
|
44
44
|
/>
|
45
|
-
<
|
45
|
+
<button
|
46
|
+
type="button"
|
46
47
|
className="absolute right-4 p-1 rounded-full text-xl text-slate-400 cursor-pointer hover:bg-secondary-light"
|
48
|
+
tabIndex={-1}
|
47
49
|
onClick={(e) => {
|
48
50
|
e.preventDefault();
|
49
51
|
setShow(!show);
|
50
52
|
}}
|
51
53
|
>
|
52
54
|
<Icon icon={`flowbite:eye${show ? "" : "-slash"}-outline`} />
|
53
|
-
</
|
55
|
+
</button>
|
54
56
|
</div>
|
55
57
|
</label>
|
56
58
|
);
|
@@ -49,24 +49,28 @@ export const Secret: React.FC<SecretProps> = ({
|
|
49
49
|
{...rest}
|
50
50
|
/>
|
51
51
|
<div className="absolute right-4 flex">
|
52
|
-
<
|
52
|
+
<button
|
53
|
+
type="button"
|
53
54
|
className="p-1 rounded-full text-xl text-slate-400 cursor-pointer hover:bg-secondary-light"
|
55
|
+
tabIndex={-1}
|
54
56
|
onClick={(e) => {
|
55
57
|
e.preventDefault();
|
56
58
|
setShow(!show);
|
57
59
|
}}
|
58
60
|
>
|
59
61
|
<Icon icon={`flowbite:eye${show ? "" : "-slash"}-outline`} />
|
60
|
-
</
|
61
|
-
<
|
62
|
+
</button>
|
63
|
+
<button
|
64
|
+
type="button"
|
62
65
|
className="p-1 rounded-full text-xl text-slate-400 cursor-pointer hover:bg-secondary-light"
|
66
|
+
tabIndex={-1}
|
63
67
|
onClick={(e) => {
|
64
68
|
e.preventDefault();
|
65
69
|
onClipboardClick && onClipboardClick(value!);
|
66
70
|
}}
|
67
71
|
>
|
68
72
|
<Icon icon="fluent:clipboard-text-ltr-32-regular" />
|
69
|
-
</
|
73
|
+
</button>
|
70
74
|
</div>
|
71
75
|
</div>
|
72
76
|
</label>
|