@luscii-healthtech/web-ui 64.5.1 → 64.5.2
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.
- package/dist/esm/components/FlyOutMenu/FlyOutMenu.js +9 -2
- package/dist/esm/components/FlyOutMenu/FlyOutMenu.js.map +1 -1
- package/dist/esm/components/Modal/FullPageModal.js +3 -1
- package/dist/esm/components/Modal/FullPageModal.js.map +1 -1
- package/dist/esm/components/Modal/ModalBase.js +3 -1
- package/dist/esm/components/Modal/ModalBase.js.map +1 -1
- package/dist/esm/components/Modal/use-modal-focus.js +36 -0
- package/dist/esm/components/Modal/use-modal-focus.js.map +1 -0
- package/dist/index.development.js +45 -4
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/FlyOutMenu/FlyOutMenu.d.ts +1 -1
- package/dist/src/components/Modal/use-modal-focus.d.ts +8 -0
- package/dist/src/generated/components/FlyOutMenu/FlyOutMenu.d.ts +1 -1
- package/dist/src/generated/components/Modal/use-modal-focus.d.ts +8 -0
- package/dist/stories/FlyOutMenu.stories.d.ts +7 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ declare const FlyOutMenuTrigger: ({ ref, ...props }: React.ComponentProps<typeof
|
|
|
12
12
|
declare const FlyOutMenuGroup: React.ForwardRefExoticComponent<FlyOutMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
declare const FlyOutMenuPortal: React.FC<FlyOutMenuPrimitive.DropdownMenuPortalProps>;
|
|
14
14
|
declare const FlyOutMenuContent: {
|
|
15
|
-
({ ref, className, sideOffset, align, container, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Content> & {
|
|
15
|
+
({ ref, className, sideOffset, align, container, onCloseAutoFocus, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Content> & {
|
|
16
16
|
/**
|
|
17
17
|
* An optional DOM element to render the FlyOutMenu in using a portal.
|
|
18
18
|
*
|
|
@@ -12,7 +12,7 @@ declare const FlyOutMenuTrigger: ({ ref, ...props }: React.ComponentProps<typeof
|
|
|
12
12
|
declare const FlyOutMenuGroup: React.ForwardRefExoticComponent<FlyOutMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
declare const FlyOutMenuPortal: React.FC<FlyOutMenuPrimitive.DropdownMenuPortalProps>;
|
|
14
14
|
declare const FlyOutMenuContent: {
|
|
15
|
-
({ ref, className, sideOffset, align, container, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Content> & {
|
|
15
|
+
({ ref, className, sideOffset, align, container, onCloseAutoFocus, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Content> & {
|
|
16
16
|
/**
|
|
17
17
|
* An optional DOM element to render the FlyOutMenu in using a portal.
|
|
18
18
|
*
|
|
@@ -18,3 +18,10 @@ export default meta;
|
|
|
18
18
|
type Story = StoryObj<typeof meta>;
|
|
19
19
|
export declare const Base: Story;
|
|
20
20
|
export declare const InteractionTest: Story;
|
|
21
|
+
/**
|
|
22
|
+
* An item that opens a `Modal`. The menu closes with a short animation; once it has closed, focus
|
|
23
|
+
* must be in the modal, not back on the menu's trigger. Closing the modal returns focus to the
|
|
24
|
+
* trigger.
|
|
25
|
+
*/
|
|
26
|
+
export declare const OpeningAModalFromAnItem: Story;
|
|
27
|
+
export declare const ClosingWithoutChoosingAnItem: Story;
|