next-helios-fe 1.8.89 → 1.8.91

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.8.89",
3
+ "version": "1.8.91",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -62,7 +62,8 @@ export const File: React.FC<FileProps> = ({
62
62
  options?.height === "full" && "h-full"
63
63
  }`}
64
64
  >
65
- {!options?.buttonOnly &&
65
+ {options?.variant !== "drag&drop" &&
66
+ !options?.buttonOnly &&
66
67
  (label ||
67
68
  (!options?.hideInputDetail &&
68
69
  (options?.maxSizeInMb || description))) && (
@@ -79,7 +80,7 @@ export const File: React.FC<FileProps> = ({
79
80
  )}
80
81
  {!options?.hideInputDetail && (
81
82
  <div className="flex-1 flex justify-end items-center gap-2">
82
- {options?.variant !== "drag&drop" && options?.maxSizeInMb && (
83
+ {options?.maxSizeInMb && (
83
84
  <span className="text-sm select-none">
84
85
  {options?.maxSizeInMb} MB
85
86
  </span>
@@ -221,19 +222,21 @@ export const File: React.FC<FileProps> = ({
221
222
  <span>or drag and drop</span>
222
223
  </div>
223
224
  )}
224
- <span
225
- className={`text-sm font-light ${
226
- tempFile.length !== 0 ? "" : "text-disabled"
227
- }`}
228
- >
229
- {tempFile.length !== 0
230
- ? `${
231
- tempFile[0]?.size < 1000000
232
- ? `${tempFile[0]?.size / 1000} KB`
233
- : `${tempFile[0]?.size / 1000000} MB`
234
- }`
235
- : `Maximum file size ${options?.maxSizeInMb} MB`}
236
- </span>
225
+ {options?.maxSizeInMb && (
226
+ <span
227
+ className={`text-sm font-light ${
228
+ tempFile.length !== 0 ? "" : "text-disabled"
229
+ }`}
230
+ >
231
+ {tempFile.length !== 0
232
+ ? `${
233
+ tempFile[0]?.size < 1000000
234
+ ? `${tempFile[0]?.size / 1000} KB`
235
+ : `${tempFile[0]?.size / 1000000} MB`
236
+ }`
237
+ : `Maximum file size ${options?.maxSizeInMb} MB`}
238
+ </span>
239
+ )}
237
240
  </div>
238
241
  </div>
239
242
  </div>
@@ -1561,12 +1561,13 @@ export const PhoneNumber: React.FC<PhoneNumberProps> = ({
1561
1561
  <div className="relative flex items-center cursor-pointer">
1562
1562
  <input
1563
1563
  type="text"
1564
- className={`max-w-24 w-min ps-4 pe-4 border-default border rounded-md bg-secondary-bg placeholder:duration-300 placeholder:translate-x-0 focus:placeholder:translate-x-1 placeholder:text-silent focus:outline-none focus:ring-1 focus:ring-primary focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light disabled:text-disabled disabled:cursor-default ${height} ${
1564
+ className={`max-w-24 w-min ps-4 pe-4 border-default border rounded-md bg-secondary-bg cursor-pointer placeholder:duration-300 placeholder:translate-x-0 focus:placeholder:translate-x-1 placeholder:text-silent focus:outline-none focus:ring-1 focus:ring-primary focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light disabled:text-disabled disabled:cursor-default ${height} ${
1565
1565
  openDropdown
1566
1566
  ? "placeholder:translate-x-1 outline-none ring-1 ring-primary shadow shadow-primary border-primary-dark"
1567
1567
  : "border-default placeholder:translate-x-0"
1568
1568
  }`}
1569
1569
  readOnly
1570
+ tabIndex={-1}
1570
1571
  disabled={rest.disabled}
1571
1572
  value={`${
1572
1573
  countryPhoneCode.find(