odaptos_design_system 2.0.72 → 2.0.75

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.
@@ -1,8 +1,4 @@
1
1
  import React from 'react';
2
- interface OptionType {
3
- label: string;
4
- value: string;
5
- }
6
2
  interface MultiSelectProps {
7
3
  label: string;
8
4
  placeholder?: string;
@@ -16,7 +12,7 @@ interface MultiSelectProps {
16
12
  disabled?: boolean;
17
13
  required?: boolean;
18
14
  defaultValue: any[];
19
- options: OptionType[];
15
+ options: any[];
20
16
  error?: boolean;
21
17
  helperText?: string;
22
18
  errorText?: string;
@@ -26,11 +22,9 @@ interface MultiSelectProps {
26
22
  deleteOption: (value: any) => void;
27
23
  limitTags?: number;
28
24
  onBlur?: () => void;
29
- loadMoreOptions?: () => Promise<OptionType[]>;
30
- initialLoadCount?: number;
31
25
  }
32
26
  /**
33
27
  * Use this component for multiselection !!
34
28
  */
35
- export declare const MultiSelect: ({ options: initialOptions, loadMoreOptions, initialLoadCount, label, placeholder, name, className, onChange, disabled, defaultValue, topLabel, topLabelWeight, topLabelSize, id, inputId, required, error, helperText, errorText, canAddNewOption, deleteOption, disableCloseOnSelect, limitTags, onBlur, ...props }: MultiSelectProps) => React.JSX.Element;
29
+ export declare const MultiSelect: ({ options, label, placeholder, name, className, onChange, disabled, defaultValue, topLabel, topLabelWeight, topLabelSize, id, inputId, required, error, helperText, errorText, canAddNewOption, deleteOption, disableCloseOnSelect, limitTags, onBlur, ...props }: MultiSelectProps) => React.JSX.Element;
36
30
  export {};
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ interface MultiSelectWithoutFilterProps {
3
+ label: string;
4
+ placeholder?: string;
5
+ name?: string;
6
+ className?: string;
7
+ id?: string;
8
+ inputId?: string;
9
+ topLabel?: string;
10
+ topLabelWeight?: 'semi-bold' | 'bold' | 'regular';
11
+ topLabelSize?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | 'xxl' | 'xxxl' | 'xxxxl';
12
+ disabled?: boolean;
13
+ required?: boolean;
14
+ defaultValue: any[];
15
+ options: any[];
16
+ error?: boolean;
17
+ helperText?: string;
18
+ errorText?: string;
19
+ canAddNewOption?: boolean;
20
+ disableCloseOnSelect?: boolean;
21
+ onChange: (value: any) => void;
22
+ deleteOption: (value: any) => void;
23
+ limitTags?: number;
24
+ onBlur?: () => void;
25
+ isLoading?: boolean;
26
+ fetchOptions?: (search: string) => void;
27
+ searchTerm: string;
28
+ setSearchTerm: (search: string) => void;
29
+ }
30
+ export declare const MultiSelectWithoutFilter: ({ options, fetchOptions, isLoading, required, disabled, label, placeholder, name, className, id, inputId, topLabel, topLabelWeight, topLabelSize, defaultValue, error, helperText, errorText, disableCloseOnSelect, onChange, deleteOption, limitTags, onBlur, searchTerm, setSearchTerm, ...props }: MultiSelectWithoutFilterProps) => React.JSX.Element;
31
+ export {};
@@ -1,8 +1,4 @@
1
1
  import React from 'react';
2
- interface OptionType {
3
- label: string;
4
- value: string;
5
- }
6
2
  interface SingleSelectProps {
7
3
  label: string;
8
4
  placeholder?: string;
@@ -20,14 +16,12 @@ interface SingleSelectProps {
20
16
  errorText?: string;
21
17
  canAddNewOption?: boolean;
22
18
  defaultValue: any;
23
- options: OptionType[];
19
+ options: any[];
24
20
  onChange: (value: any) => void;
25
21
  onBlur?: () => void;
26
- loadMoreOptions?: () => Promise<OptionType[]>;
27
- initialLoadCount?: number;
28
22
  }
29
23
  /**
30
24
  * Use this component for single selection !!
31
25
  */
32
- export declare const SingleSelect: ({ options: initialOptions, loadMoreOptions, initialLoadCount, label, placeholder, name, className, onChange, disabled, defaultValue, topLabel, topLabelWeight, topLabelSize, id, inputId, required, error, helperText, errorText, canAddNewOption, onBlur, ...props }: SingleSelectProps) => React.JSX.Element;
26
+ export declare const SingleSelect: ({ options, label, placeholder, name, className, onChange, disabled, defaultValue, topLabel, topLabelWeight, topLabelSize, id, inputId, required, error, helperText, errorText, canAddNewOption, onBlur, ...props }: SingleSelectProps) => React.JSX.Element;
33
27
  export {};
package/dist/index.d.ts CHANGED
@@ -34,6 +34,7 @@ export * from './Molecules/LogoSlider/LogoSlider';
34
34
  export * from './Organisms/Modal/Modal';
35
35
  export * from './Organisms/MultiSelect/MultiSelect';
36
36
  export * from './Organisms/MultiSelect/MultiSelectWithCategories';
37
+ export * from './Organisms/MultiSelect/MultiSelectWithoutFilter';
37
38
  export * from './Molecules/Notifications/Banner';
38
39
  export * from './Molecules/Notifications/NotificationIcon';
39
40
  export * from './Molecules/Notifications/Toast';