next-helios-fe 1.10.19 → 1.10.21

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.10.19",
3
+ "version": "1.10.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -46,7 +46,7 @@ export const Checkbox: React.FC<CheckboxProps> = ({
46
46
  <input
47
47
  ref={inputRef}
48
48
  type="checkbox"
49
- className={`border-default border rounded bg-secondary-bg cursor-pointer indeterminate:bg-primary indeterminate:hover:bg-primary indeterminate:disabled:bg-secondary-dark checked:bg-primary focus:outline-none focus:ring-1 focus:ring-primary focus:ring-offset-0 focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light disabled:checked:bg-secondary-dark disabled:cursor-default ${
49
+ className={`border-default border rounded bg-secondary-bg cursor-pointer indeterminate:bg-primary indeterminate:hover:bg-primary indeterminate:focus:bg-primary indeterminate:disabled:bg-secondary-dark checked:bg-primary focus:outline-none focus:ring-1 focus:ring-primary focus:ring-offset-0 focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light disabled:checked:bg-secondary-dark disabled:cursor-default ${
50
50
  theme && "border-0"
51
51
  }`}
52
52
  style={{ backgroundColor: theme }}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import React, { useState, useEffect, useRef } from "react";
3
- import { Modal, Form, Button } from "../../../components";
3
+ import { Modal, Form } from "../../../components";
4
4
  import { Icon } from "@iconify/react";
5
5
  import { useDebouncedCallback } from "use-debounce";
6
6
 
@@ -175,7 +175,7 @@ export const ModalSelect: React.FC<ModalSelectProps> = ({
175
175
  disabled={disabled}
176
176
  required={required}
177
177
  value={tempValue || ""}
178
- readOnly
178
+ onChange={(e) => {}}
179
179
  />
180
180
  ) : (
181
181
  <Form.MultipleSelect
@@ -199,7 +199,7 @@ export const ModalSelect: React.FC<ModalSelectProps> = ({
199
199
  disabled={disabled}
200
200
  required={required}
201
201
  value={tempValue || []}
202
- readOnly
202
+ onChange={(e) => {}}
203
203
  />
204
204
  )}
205
205
  </div>
@@ -321,7 +321,9 @@ export const ModalSelect: React.FC<ModalSelectProps> = ({
321
321
  type === "select" && tempValue === optionItem.value
322
322
  ? true
323
323
  : type === "multipleSelect" &&
324
- !tempValue?.includes(optionItem.value) &&
324
+ !(
325
+ Array.isArray(tempValue) ? tempValue : []
326
+ )?.includes(optionItem.value) &&
325
327
  max &&
326
328
  tempValue?.length === max
327
329
  ? true
@@ -404,7 +406,10 @@ export const ModalSelect: React.FC<ModalSelectProps> = ({
404
406
  <Form.Checkbox
405
407
  options={{ disableHover: true }}
406
408
  checked={
407
- tempValue?.includes(optionItem.value) ?? false
409
+ (Array.isArray(tempValue)
410
+ ? tempValue
411
+ : []
412
+ )?.includes(optionItem.value) ?? false
408
413
  }
409
414
  readOnly
410
415
  />