@nimbus-ds/patterns 1.18.0 → 1.19.0-rc.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/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { DndContextProps, DragEndEvent, DragOverEvent, DragOverlayProps, DragStartEvent, DraggableAttributes, PointerSensorOptions, UniqueIdentifier } from '@dnd-kit/core';
4
4
  import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
5
- import { BoxBaseProps, BoxProperties, BoxProps, ButtonProperties, ButtonProps, CheckboxProperties, CheckboxProps, IconButtonProperties, IconButtonProps, InputProperties, InputProps, PaginationProperties, PaginationProps, PopoverProperties, RadioProps, SelectProperties, SelectProps, SidebarProperties, TableCellProps, TableProperties, TableRowProperties, TextareaProperties, TextareaProps, ThumbnailProperties, ThumbnailProps, ToggleProperties, ToggleProps } from '@nimbus-ds/components';
5
+ import { BoxBaseProps, BoxProperties, BoxProps, ButtonProperties, ButtonProps, CheckboxProperties, CheckboxProps, IconButtonProperties, IconButtonProps, InputProperties, InputProps, PaginationProperties, PaginationProps, PopoverProperties, RadioProps, SelectProperties, SelectProps, SidebarProps, TableCellProps, TableProperties, TableRowProperties, TextareaProperties, TextareaProps, ThumbnailProperties, ThumbnailProps, ToggleProperties, ToggleProps } from '@nimbus-ds/components';
6
6
  import { IconProps } from '@nimbus-ds/icons';
7
7
  import { PolymorphicForwardRefComponent } from '@nimbus-ds/typings';
8
8
  import React from 'react';
@@ -21,10 +21,16 @@ export interface AppShellHeaderProperties {
21
21
  */
22
22
  rightSlot?: ReactNode;
23
23
  }
24
- export type AppShellHeaderProps = AppShellHeaderProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Omit<BoxProperties, "display" | "justifyContent">;
24
+ export type AppShellHeaderProps = AppShellHeaderProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Omit<BoxProperties, "display" | "justifyContent" | "position" | "top">;
25
25
  declare const AppShellHeader: React.FC<AppShellHeaderProps>;
26
+ export type AppShellBodyProps = Omit<BoxProps, "display" | "flex">;
27
+ declare const AppShellBody: React.FC<AppShellBodyProps>;
28
+ export type AppShellChatProps = BoxProps;
29
+ declare const AppShellChat: React.FC<AppShellChatProps>;
26
30
  export interface AppShellComponents {
27
31
  Header: typeof AppShellHeader;
32
+ Body: typeof AppShellBody;
33
+ Chat: typeof AppShellChat;
28
34
  }
29
35
  /**
30
36
  * Configuration options for the AppShell flyout (popover) behavior when the menu is collapsed.
@@ -87,6 +93,9 @@ export type AppShellProps = AppShellProperties & {
87
93
  menuFlyout?: AppShellMenuFlyoutOptions & Omit<BoxProps, "position" | "top" | "left" | "right" | "bottom" | "height" | "zIndex">;
88
94
  } & Omit<HTMLAttributes<HTMLElement>, "color">;
89
95
  export declare const AppShell: React.FC<AppShellProps> & AppShellComponents;
96
+ export declare const AppShellOverlayContext: React.Context<HTMLElement | null>;
97
+ export declare const AppShellOverlayProvider: React.Provider<HTMLElement | null>;
98
+ export declare const useAppShellOverlayContainer: () => HTMLElement | null;
90
99
  /**
91
100
  * Context value for AppShell's menu render mode.
92
101
  */
@@ -726,7 +735,10 @@ export interface ProductUpdatesProperties extends Omit<PopoverProperties, "conte
726
735
  export type ProductUpdatesProps = ProductUpdatesProperties & HTMLAttributes<HTMLElement>;
727
736
  export declare const ProductUpdates: React.FC<ProductUpdatesProps>;
728
737
  export type SideModalPadding = "none" | "base";
729
- export interface SideModalProperties extends Pick<SidebarProperties, "position" | "onRemove" | "open" | "padding" | "maxWidth" | "zIndex"> {
738
+ export interface SideModalProperties extends Pick<SidebarProps, "position" | "onRemove" | "open" | "padding" | "maxWidth" | "zIndex" | "root" | "needRemoveScroll" | "ignoreAttributeName"> {
739
+ /**
740
+ * Choose where the portal should render. Defaults to viewport (body).
741
+ */
730
742
  /**
731
743
  * Title.
732
744
  */