next-helios-fe 1.4.6 → 1.4.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
- <div
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
- </div>
102
+ </button>
100
103
  </div>
101
104
  </div>
102
105
  </label>
@@ -185,6 +185,7 @@ export const File: React.FC<FileProps> = ({
185
185
  <button
186
186
  type="button"
187
187
  className="p-2 rounded-full hover:bg-secondary-light"
188
+ tabIndex={-1}
188
189
  disabled={rest.disabled}
189
190
  onClick={() => {
190
191
  inputRef.current?.click();
@@ -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
- <div
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
- </div>
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
- <div
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
- </div>
61
- <div
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
- </div>
73
+ </button>
70
74
  </div>
71
75
  </div>
72
76
  </label>