@muraldevkit/ui-toolkit 4.44.1 → 4.45.1-dev-bdtT.1

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';
@@ -7,7 +7,6 @@ type RenderPropFn = ({ closeMenu }: {
7
7
  export interface MrlPopoverProps {
8
8
  /**
9
9
  * Set initial state of menu
10
- *
11
10
  * @default { actionType: null, isOpen: false }
12
11
  */
13
12
  actionState?: ActionState;
@@ -35,7 +34,6 @@ export interface MrlPopoverProps {
35
34
  disableClickOutside?: boolean;
36
35
  /**
37
36
  * Disable flipping of the popover when it goes off the screen
38
- *
39
37
  * @default false
40
38
  */
41
39
  disableFlipping?: boolean;
@@ -62,7 +60,6 @@ export interface MrlPopoverProps {
62
60
  * Horizontal and vertical alignment of the menu relative to the trigger element
63
61
  *
64
62
  * This does not impact submenus
65
- *
66
63
  * @default 'bottom'
67
64
  */
68
65
  position?: MenuPosition;
@@ -87,13 +84,11 @@ export interface MrlPopoverProps {
87
84
  triggerRef?: React.RefObject<HTMLElement>;
88
85
  /**
89
86
  * If the menu should be rendered with the inverse theme
90
- *
91
87
  * @default 'primary'
92
88
  */
93
89
  kind?: 'primary' | 'inverse';
94
90
  /**
95
91
  * If the menu should have a pointer element
96
- *
97
92
  * @default false
98
93
  */
99
94
  point?: boolean;
@@ -114,7 +109,6 @@ export interface MrlPopoverProps {
114
109
  onOpen?: () => void;
115
110
  /**
116
111
  * Callback to be called when the menu is closed
117
- *
118
112
  * @param type - type of close event
119
113
  */
120
114
  onClose?: (type?: string) => void;
@@ -127,7 +121,6 @@ export interface MrlPopoverProps {
127
121
  * MrlPopover
128
122
  *
129
123
  * Renders a popover component with position and alignment relative to a trigger element
130
- *
131
124
  * @param {MrlPopoverProps} props - The props for the MrlPopover component
132
125
  * @returns {Element} - rendered MrlPopover component
133
126
  */
@@ -80,7 +80,7 @@ export declare const colorPictoStoryData: {
80
80
  export declare const animateStoryData: {
81
81
  args: {
82
82
  delay: number;
83
- state: "stop" | "play";
83
+ state: "play" | "stop";
84
84
  };
85
85
  argTypes: {
86
86
  delay: {