@muraldevkit/ui-toolkit 2.47.1 → 2.48.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.
@@ -7,13 +7,13 @@ interface MrlLabelWithDescriptionProps {
7
7
  description?: string | React.ReactNode;
8
8
  /** The id that's linked to the form element "aria-describedby" attribute */
9
9
  descriptionId?: string;
10
- /** disabled state */
10
+ /** Disabled state */
11
11
  isDisabled?: boolean;
12
- /** indeterminate state */
12
+ /** Indeterminate state */
13
13
  isIndeterminate?: boolean;
14
- /** selected state */
14
+ /** Selected state */
15
15
  isSelected?: boolean;
16
- /** Adjusts the styles of the label, icon and description when the label is multiline */
16
+ /** Adjusts the styles of the label, icon, and description when the label is multiline */
17
17
  hasMultilineLabel?: boolean;
18
18
  /** ID of the form elements so all users can understand the relationship between the two elements */
19
19
  htmlFor: string;
@@ -28,5 +28,5 @@ interface MrlLabelWithDescriptionProps {
28
28
  * @param {MrlLabelWithDescriptionProps} props - the component props
29
29
  * @returns a form control label with description
30
30
  */
31
- export declare function MrlLabelWithDescription({ className, description, descriptionId, isDisabled, isIndeterminate, isSelected, hasMultilineLabel, htmlFor, icon, label }: MrlLabelWithDescriptionProps): JSX.Element;
31
+ export declare function MrlLabelWithDescription({ className, description, descriptionId, isDisabled, isIndeterminate, isSelected, hasMultilineLabel, htmlFor, icon, label, ...rest }: MrlLabelWithDescriptionProps): JSX.Element;
32
32
  export {};
@@ -34,6 +34,8 @@ interface MrlRadioButtonProps extends React.ComponentPropsWithoutRef<'input'> {
34
34
  * }>
35
35
  */
36
36
  description?: string | React.ReactNode;
37
+ /** Data attribute for QA testing */
38
+ ['data-qa']?: string;
37
39
  }
38
40
  /**
39
41
  * Form element with an associated text label and description that allows the user to select one
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { CustomMenuPosition } from '..';
3
+ import { MenuPosition, ActionState, MenuAlignment } from '../constants';
4
+ export interface MenuWithIconTriggerProps {
5
+ position?: MenuPosition;
6
+ spacing?: 'default' | 'compact';
7
+ alignment?: MenuAlignment;
8
+ actionState?: ActionState;
9
+ onClose?: () => void;
10
+ customPosition?: CustomMenuPosition;
11
+ triggerAlignment?: 'left' | 'right' | 'center';
12
+ }
13
+ /**
14
+ * Demo of a menu with a trigger for stories and testing
15
+ *
16
+ * @param {MenuWithIconTriggerProps} props - The props for the menu with trigger
17
+ * @returns {Element} The menu with trigger demo
18
+ */
19
+ export declare const MenuWithIconTrigger: ({ alignment, position, spacing, actionState, customPosition, onClose, triggerAlignment }: MenuWithIconTriggerProps) => JSX.Element;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { MenuPosition, ActionState, MenuAlignment } from '../../menu/constants';
3
+ interface PopoverWithIconButtonProps {
4
+ hasCloseButton?: boolean;
5
+ menuAlign?: MenuPosition;
6
+ spacing?: 'default' | 'compact';
7
+ alignment?: MenuAlignment;
8
+ actionState?: ActionState;
9
+ onClose?: () => void;
10
+ triggerAlignment?: 'left' | 'right' | 'center';
11
+ kind?: 'inverse' | 'primary';
12
+ point?: boolean;
13
+ }
14
+ /**
15
+ * Demo of a menu with a trigger for stories and testing
16
+ *
17
+ * @param {PopoverWithIconButtonProps} props - The props for the menu with trigger
18
+ * @returns {Element} The menu with trigger demo
19
+ */
20
+ export declare const PopoverWithIconButton: ({ menuAlign, alignment, actionState, onClose, triggerAlignment, spacing, kind, point, hasCloseButton }: PopoverWithIconButtonProps) => JSX.Element;
21
+ export {};