@majoo-ui/react 1.61.12-rc.9 → 1.61.13-rc.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.
@@ -6,7 +6,6 @@ declare type AccordionProps = {
6
6
  /**
7
7
  * Determines whether one or multiple items can be opened at the same time.
8
8
  */
9
- type: string;
10
9
  children: React.ReactNode;
11
10
  } & AccordionPrimitiveProps & BaseRadixProps;
12
11
  export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { Dialog } from '../../';
3
- import type { FocusScopeProps } from '@radix-ui/react-focus-scope';
4
3
  import type { DialogContentProps } from '..';
5
4
  export declare const ModalDialogFooter: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
6
5
  sm: "(min-width: 359px)";
@@ -397,9 +396,9 @@ interface ModalDialogProps extends Omit<IDialog, 'children'>, DialogContentProps
397
396
  */
398
397
  width?: string | number;
399
398
  /** Set default behavior when opening dialog with form. Usually used with prevent default*/
400
- onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
399
+ onOpenAutoFocus?: (event: Event) => void;
401
400
  /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
402
- onPointerDownOutside?: (e: any) => void;
401
+ onPointerDownOutside?: (event: Event) => void;
403
402
  /**
404
403
  * If true, the close icon button is hidden
405
404
  */
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { Dialog } from '../../';
3
- import type { FocusScopeProps } from '@radix-ui/react-focus-scope';
4
3
  import type { DialogContentProps } from '..';
5
4
  declare type PointerDownOutsideEvent = CustomEvent<{
6
5
  originalEvent: PointerEvent;
@@ -399,8 +398,8 @@ interface PageDialogProps extends Omit<IDialog, 'children'>, DialogContentProps
399
398
  /** Force to mobile view or desktop view, if undefined PageDialog will be responsive according to current screen size */
400
399
  isMobile?: boolean | undefined;
401
400
  /** Set default behavior when opening dialog with form. Usually used with prevent default*/
402
- onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
403
- onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
401
+ onOpenAutoFocus?: (event: Event) => void;
402
+ onCloseAutoFocus?: (event: Event) => void;
404
403
  onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
405
404
  onInteractOutside?: (event: PointerDownOutsideEvent | FocusOutsideEvent) => void;
406
405
  /**