@nimbus-ds/components 5.17.2 → 5.18.0-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.
package/dist/index.d.ts CHANGED
@@ -1775,6 +1775,7 @@ export interface ModalSprinkle {
1775
1775
  declare const modal: {
1776
1776
  classnames: {
1777
1777
  overlay: string;
1778
+ overlayScoped: string;
1778
1779
  container: string;
1779
1780
  container__close: string;
1780
1781
  container__footer: string;
@@ -2132,7 +2133,9 @@ declare const sidebar: {
2132
2133
  };
2133
2134
  classnames: {
2134
2135
  overlay: string;
2136
+ overlayScoped: string;
2135
2137
  container: string;
2138
+ containerScoped: string;
2136
2139
  container__header: string;
2137
2140
  container__body: string;
2138
2141
  container__footer: string;
@@ -3343,6 +3346,11 @@ export interface ModalProperties extends ModalSprinkle {
3343
3346
  * Id to be embedded in the portal element
3344
3347
  */
3345
3348
  portalId?: string;
3349
+ /**
3350
+ * Root element where the portal should be mounted. When provided and not null,
3351
+ * the portal renders inside this element; when null/undefined, the default root is used.
3352
+ */
3353
+ container?: HTMLElement | null;
3346
3354
  /**
3347
3355
  * The padding properties are used to generate space around an modal's content area.
3348
3356
  * @default base
@@ -3547,6 +3555,11 @@ export interface SidebarProperties extends SidebarSprinkle {
3547
3555
  * @default true
3548
3556
  */
3549
3557
  needRemoveScroll?: boolean;
3558
+ /**
3559
+ * Root element where the portal should be mounted. When provided and not null,
3560
+ * the portal renders inside this element; when null/undefined, the default root is used.
3561
+ */
3562
+ container?: HTMLElement | null;
3550
3563
  }
3551
3564
  export type SidebarProps = SidebarProperties & HTMLAttributes<HTMLDivElement>;
3552
3565
  export declare const Sidebar: React.FC<SidebarProps> & SidebarComponents;