react-magma-dom 4.2.0-next.8 → 4.2.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.
@@ -5,6 +5,11 @@ import { UseAccordionButtonProps } from './useAccordionButton';
5
5
  * @children required
6
6
  */
7
7
  export interface AccordionButtonProps extends UseAccordionButtonProps, React.HTMLAttributes<HTMLButtonElement> {
8
+ /**
9
+ * For use in components repurposing Accordion with custom keyboard navigation with it's elements.
10
+ * @internal
11
+ */
12
+ customOnKeyDown?: () => void;
8
13
  /**
9
14
  * @internal
10
15
  */
@@ -10,6 +10,8 @@ export declare const CustomIconButton: import("@storybook/csf").AnnotatedStoryFn
10
10
  export declare const SmallButton: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
11
11
  export declare const SplitButton: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
12
12
  export declare const LinkMenu: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
13
- export declare const Form: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
14
13
  export declare const Inverse: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
15
14
  export declare const NoItems: (args: any) => JSX.Element;
15
+ export declare const ExpandableItems: (args: any) => JSX.Element;
16
+ export declare const ExpandableItemsWithIcons: (args: any) => JSX.Element;
17
+ export declare const ExpandableItemsWithIconsAndConsoleWarning: (args: any) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { AccordionButtonProps } from '../Accordion';
3
+ import { IconProps } from 'react-magma-icons';
4
+ export interface DropdownExpandableMenuButtonProps extends AccordionButtonProps {
5
+ icon?: React.ReactElement<IconProps>;
6
+ testId?: string;
7
+ }
8
+ export declare const DropdownExpandableMenuButton: React.ForwardRefExoticComponent<DropdownExpandableMenuButtonProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface DropdownExpandableMenuGroupContextInterface {
3
+ expandableMenuButtonHasIcon?: boolean;
4
+ isExpandablePanel?: boolean;
5
+ }
6
+ export declare const DropdownExpandableMenuGroupContext: React.Context<DropdownExpandableMenuGroupContextInterface>;
7
+ export declare const DropdownExpandableMenuGroup: React.ForwardRefExoticComponent<(import("../Accordion").AccordionMultipleProps & React.RefAttributes<HTMLDivElement>) | (import("../Accordion").AccordionSingleProps & React.RefAttributes<HTMLDivElement>) | (import("../Accordion").AccordionMultipleControlledProps & React.RefAttributes<HTMLDivElement>) | (import("../Accordion").AccordionSingleControlledProps & React.RefAttributes<HTMLDivElement>)>;
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import { AccordionItemProps } from '../Accordion';
3
+ export interface DropdownExpandableMenuItemProps extends AccordionItemProps {
4
+ /**
5
+ * If true, item will be disabled; it will appear dimmed and onClick event (or any other events) will not fire
6
+ * @default false
7
+ */
8
+ disabled?: boolean;
9
+ /**
10
+ * @internal
11
+ */
12
+ testId?: string;
13
+ }
14
+ export interface DropdownExpandableMenuItemContextInterface {
15
+ disabled?: boolean;
16
+ }
17
+ export declare const DropdownExpandableMenuItemContext: React.Context<DropdownExpandableMenuItemContextInterface>;
18
+ export declare const DropdownExpandableMenuItem: React.ForwardRefExoticComponent<DropdownExpandableMenuItemProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { Omit } from '../../utils';
3
+ import { DropdownMenuItemProps } from './DropdownMenuItem';
4
+ export interface DropdownExpandableMenuListItemProps extends Omit<DropdownMenuItemProps, 'icon'> {
5
+ disabled?: boolean;
6
+ testId?: string;
7
+ }
8
+ export declare const DropdownExpandableMenuListItem: React.ForwardRefExoticComponent<DropdownExpandableMenuListItemProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { AccordionPanelProps } from '../Accordion';
3
+ export interface DropdownExpandableMenuPanelProps extends AccordionPanelProps {
4
+ }
5
+ export declare const DropdownExpandableMenuPanel: React.ForwardRefExoticComponent<DropdownExpandableMenuPanelProps & React.RefAttributes<HTMLDivElement>>;
@@ -5,4 +5,10 @@ export * from './DropdownDivider';
5
5
  export * from './DropdownHeader';
6
6
  export * from './DropdownMenuGroup';
7
7
  export * from './DropdownMenuItem';
8
+ export * from './DropdownMenuNavItem';
8
9
  export * from './DropdownSplitButton';
10
+ export * from './DropdownExpandableMenuButton';
11
+ export * from './DropdownExpandableMenuGroup';
12
+ export * from './DropdownExpandableMenuPanel';
13
+ export * from './DropdownExpandableMenuItem';
14
+ export * from './DropdownExpandableMenuListItem';
@@ -29,6 +29,7 @@ export declare const IconPositions: {
29
29
  maxCount?: number;
30
30
  maxLength?: number;
31
31
  messageStyle?: React.CSSProperties;
32
+ children?: any;
32
33
  hasError?: boolean;
33
34
  icon?: React.ReactElement<import("react-magma-icons").IconProps, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)>;
34
35
  iconAriaLabel?: string;
@@ -163,7 +164,6 @@ export declare const IconPositions: {
163
164
  'aria-valuemin'?: number;
164
165
  'aria-valuenow'?: number;
165
166
  'aria-valuetext'?: string;
166
- children?: React.ReactNode;
167
167
  dangerouslySetInnerHTML?: {
168
168
  __html: string;
169
169
  };
@@ -358,6 +358,7 @@ export declare const WithChildren: {
358
358
  maxCount?: number;
359
359
  maxLength?: number;
360
360
  messageStyle?: React.CSSProperties;
361
+ children?: any;
361
362
  hasError?: boolean;
362
363
  icon?: React.ReactElement<import("react-magma-icons").IconProps, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)>;
363
364
  iconAriaLabel?: string;
@@ -493,7 +494,6 @@ export declare const WithChildren: {
493
494
  'aria-valuemin'?: number;
494
495
  'aria-valuenow'?: number;
495
496
  'aria-valuetext'?: string;
496
- children?: React.ReactNode;
497
497
  dangerouslySetInnerHTML?: {
498
498
  __html: string;
499
499
  };
@@ -685,6 +685,7 @@ export declare const WithTwoIcons: {
685
685
  maxCount?: number;
686
686
  maxLength?: number;
687
687
  messageStyle?: React.CSSProperties;
688
+ children?: any;
688
689
  hasError?: boolean;
689
690
  icon?: React.ReactElement<import("react-magma-icons").IconProps, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)>;
690
691
  iconAriaLabel?: string;
@@ -820,7 +821,6 @@ export declare const WithTwoIcons: {
820
821
  'aria-valuemin'?: number;
821
822
  'aria-valuenow'?: number;
822
823
  'aria-valuetext'?: string;
823
- children?: React.ReactNode;
824
824
  dangerouslySetInnerHTML?: {
825
825
  __html: string;
826
826
  };
@@ -19,6 +19,10 @@ export declare enum InputIconPosition {
19
19
  right = "right"
20
20
  }
21
21
  export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputElement> {
22
+ /**
23
+ * @internal
24
+ */
25
+ children?: any;
22
26
  /**
23
27
  * Style properties for the component container element
24
28
  */
@@ -4,3 +4,4 @@ export default _default;
4
4
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, PasswordInputProps>;
5
5
  export declare const Error: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, PasswordInputProps>;
6
6
  export declare const Inverse: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, PasswordInputProps>;
7
+ export declare const CustomText: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, PasswordInputProps>;
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { InputSize } from '../InputBase';
2
3
  import { FormFieldContainerBaseProps } from '../FormFieldContainer';
3
4
  export interface PasswordInputProps extends Omit<FormFieldContainerBaseProps, 'fieldId'>, React.InputHTMLAttributes<HTMLInputElement> {
4
5
  hiddenPasswordAnnounceText?: string;
@@ -12,6 +13,11 @@ export interface PasswordInputProps extends Omit<FormFieldContainerBaseProps, 'f
12
13
  * @default "Hide"
13
14
  */
14
15
  hidePasswordButtonText?: string;
16
+ /**
17
+ * Relative size of the component
18
+ * @default InputSize.medium
19
+ */
20
+ inputSize?: InputSize;
15
21
  isInverse?: boolean;
16
22
  /**
17
23
  * If true, label text will be hidden visually, but will still be read by assistive technology