@muraldevkit/ui-toolkit 4.27.0 → 4.28.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,14 @@ import { DefaultOption } from '../types';
4
4
  export interface MrlMultiSelectProps<T, IsMulti extends boolean = false, Group extends GroupBase<T> = GroupBase<T>> extends Omit<Props<T, IsMulti, Group>, 'isMulti' | 'hideSelectedOptions'> {
5
5
  hasError?: boolean;
6
6
  isReadOnly?: boolean;
7
+ /**
8
+ * The data-qa prefix, it will be used to add data-qa attributes to different sub components of the MrlMultiSelect component.
9
+ *
10
+ * Available subcomponents:
11
+ * - container, <data-qa-prefix>-container
12
+ * - value-container, <data-qa-prefix>-value-container
13
+ */
14
+ ['data-qa']?: string;
7
15
  }
8
16
  export declare const MULTI_SELECT_CLASS_NAME_PREFIX = "MrlMultiSelect";
9
17
  export declare const MULTI_SELECT_MENU_LIST_CLASS_NAME: string;
@@ -5,6 +5,14 @@ export interface MrlSelectProps<Option, IsMulti extends boolean = false, Group e
5
5
  hasError?: boolean;
6
6
  isReadOnly?: boolean;
7
7
  kind?: SelectKind;
8
+ /**
9
+ * The data-qa prefix, it will be used to add data-qa attributes to different sub components of the MrlSelect component.
10
+ *
11
+ * Available subcomponents:
12
+ * - container, <data-qa-prefix>-container
13
+ * - value-container, <data-qa-prefix>-value-container
14
+ */
15
+ ['data-qa']?: string;
8
16
  }
9
17
  export declare const SELECT_CLASS_NAME_PREFIX = "MrlSelect";
10
18
  export declare const SELECT_MENU_LIST_CLASS_NAME: string;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { GroupBase, ContainerProps } from 'react-select';
3
+ /**
4
+ * MrlSelectContainer component
5
+ *
6
+ * @param props - the react-select container props
7
+ * @returns a select container
8
+ */
9
+ export declare function MrlSelectContainer<T, IsMulti extends boolean = false, Group extends GroupBase<T> = GroupBase<T>>(props: ContainerProps<T, IsMulti, Group>): JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { GroupBase, ValueContainerProps } from 'react-select';
3
+ /**
4
+ * MrlSelectValueContainer component
5
+ *
6
+ * @param props - the react-select value container props
7
+ * @returns a value container component
8
+ */
9
+ export declare function MrlSelectValueContainer<T, IsMulti extends boolean = false, Group extends GroupBase<T> = GroupBase<T>>(props: ValueContainerProps<T, IsMulti, Group>): JSX.Element;
@@ -2,3 +2,5 @@ export * from './MrlSelectDropdownIndicator';
2
2
  export * from './MrlSelectOption';
3
3
  export * from './MrlSelectMultiValueRemove';
4
4
  export * from './MrlSelectMultiValue';
5
+ export * from './MrlSelectContainer';
6
+ export * from './MrlSelectValueContainer';