@muraldevkit/ui-toolkit 4.44.1 → 4.45.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.
@@ -4,6 +4,7 @@ export * from './legacy-select/MrlLegacySelectMenu';
4
4
  export * from './text-input/MrlTextInput';
5
5
  export * from './text-input/MrlEditableTextInput';
6
6
  export * from './label/MrlLabel';
7
+ export * from './label/MrlLabelWithDescription';
7
8
  export * from './textarea/MrlTextarea';
8
9
  export * from './textarea/MrlEditableTextarea';
9
10
  export * from './fieldset/MrlFieldset';
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import { CreatableProps } from 'react-select/creatable';
3
+ import { GroupBase } from 'react-select';
4
+ import { DefaultOption, SelectKind } from '../types';
5
+ export interface MrlMultiCreatableSelectProps<Option, IsMulti extends boolean = true, Group extends GroupBase<Option> = GroupBase<Option>> extends CreatableProps<Option, IsMulti, Group> {
6
+ hasError?: boolean;
7
+ isReadOnly?: boolean;
8
+ kind?: SelectKind;
9
+ /**
10
+ * The data-qa prefix, it will be used to add data-qa attributes to different sub components of the MrlMultiCreatableSelect component.
11
+ *
12
+ * Available subcomponents:
13
+ * - container, <data-qa-prefix>-container
14
+ * - value-container, <data-qa-prefix>-value-container
15
+ */
16
+ ['data-qa']?: string;
17
+ showClearIndicatorIcon?: boolean;
18
+ }
19
+ export declare const MULTI_CREATABLE_SELECT_CLASS_NAME_PREFIX = "MrlMultiCreatableSelect";
20
+ export declare const MULTI_CREATABLE_SELECT_MENU_LIST_CLASS_NAME: string;
21
+ /**
22
+ * MrlMultiCreatableSelect component that supports creating extra options with user input. Option creating could be async too.
23
+ * @param props - the component props
24
+ * @returns the select component
25
+ */
26
+ export declare function MrlMultiCreatableSelect<T extends DefaultOption, IsMulti extends boolean = true, Group extends GroupBase<T> = GroupBase<T>>(props: MrlMultiCreatableSelectProps<T, IsMulti, Group>): JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MrlMultiCreatableSelect';
@@ -1,9 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { ClearIndicatorProps } from 'react-select';
2
+ import { ClearIndicatorProps, GroupBase } from 'react-select';
3
3
  /**
4
4
  * MrlSelectClearIndicator component
5
- *
6
5
  * @param props the react-select clear indicator props
7
6
  * @returns the select clear indicator
8
7
  */
9
- export declare function MrlSelectClearIndicator<T>(props: ClearIndicatorProps<T>): JSX.Element;
8
+ export declare function MrlSelectClearIndicator<T, IsMulti extends boolean = false, Group extends GroupBase<T> = GroupBase<T>>(props: ClearIndicatorProps<T, IsMulti, Group>): JSX.Element;
@@ -1,5 +1,6 @@
1
1
  export * from './MrlSelect';
2
2
  export * from './MrlMultiSelect';
3
3
  export * from './MrlCreatableSelect';
4
+ export * from './MrlMultiCreatableSelect';
4
5
  export * from './components';
5
6
  export * from './utils';