next-helios-fe 1.9.17 → 1.10.0

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.
@@ -17,7 +17,7 @@ import { type PinProps } from "./other/pin";
17
17
  import { type TextareaProps } from "./other/textarea";
18
18
  import { type SelectProps } from "./other/select";
19
19
  import { type MultipleSelectProps } from "./other/multipleSelect";
20
- import { type AutocompleteProps } from "./other/autocomplete";
20
+ import { type ModalSelectProps } from "./other/modalSelect";
21
21
  import { type RatingProps } from "./other/rating";
22
22
  import { type EmojiProps } from "./other/emoji";
23
23
  interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {
@@ -42,7 +42,7 @@ interface FormComponent extends React.FC<FormProps> {
42
42
  Textarea: React.FC<TextareaProps>;
43
43
  Select: React.FC<SelectProps>;
44
44
  MultipleSelect: React.FC<MultipleSelectProps>;
45
- Autocomplete: React.FC<AutocompleteProps>;
45
+ ModalSelect: React.FC<ModalSelectProps>;
46
46
  Rating: React.FC<RatingProps>;
47
47
  Emoji: React.FC<EmojiProps>;
48
48
  }
@@ -0,0 +1,44 @@
1
+ import React from "react";
2
+ export interface ModalSelectProps {
3
+ type: "select" | "multipleSelect";
4
+ data: {
5
+ searchableColumns?: {
6
+ label: string;
7
+ value: string;
8
+ }[];
9
+ menus: {
10
+ label: string;
11
+ subLabel?: string;
12
+ value: string;
13
+ disabled?: boolean;
14
+ [key: string]: any;
15
+ }[];
16
+ };
17
+ label?: string;
18
+ placeholder?: string;
19
+ description?: string;
20
+ max?: number;
21
+ options?: {
22
+ width?: "full" | "fit";
23
+ height?: "short" | "medium" | "high";
24
+ };
25
+ disabled?: boolean;
26
+ required?: boolean;
27
+ loading?: boolean;
28
+ value?: string | string[];
29
+ onChange?: (e: {
30
+ target: {
31
+ value: any;
32
+ };
33
+ }) => void;
34
+ dynamicSelect?: {
35
+ getValue?: (value: {
36
+ filter: any[];
37
+ maxRow: number;
38
+ }) => void;
39
+ setValue?: {
40
+ totalData?: number;
41
+ };
42
+ };
43
+ }
44
+ export declare const ModalSelect: React.FC<ModalSelectProps>;