@nimbus-ds/components 5.18.0-rc.1 → 5.18.0-rc.3

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.
@@ -33,6 +33,8 @@ declare const modal: {
33
33
  classnames: {
34
34
  overlay: string;
35
35
  overlayScoped: string;
36
+ frame: string;
37
+ frameScoped: string;
36
38
  container: string;
37
39
  container__close: string;
38
40
  container__footer: string;
@@ -204,6 +206,20 @@ export interface ModalProperties extends ModalSprinkle {
204
206
  * the portal renders inside this element; when null/undefined, the default root is used.
205
207
  */
206
208
  container?: HTMLElement | null;
209
+ /**
210
+ * Controls whether clicking/pressing outside should close the modal.
211
+ * - boolean: enable/disable dismissal on outside press
212
+ * - function: receive the DOM event and return true to allow closing, false to ignore
213
+ *
214
+ * Defaults to true.
215
+ */
216
+ closeOnOutsidePress?: boolean | ((event: PointerEvent | MouseEvent) => boolean);
217
+ /**
218
+ * The attribute name to ignore when checking for outside clicks. Useful to
219
+ * mark regions (e.g., a chat) that should not close the modal when clicked.
220
+ * @default "data-nimbus-outside-press-ignore"
221
+ */
222
+ ignoreAttributeName?: string;
207
223
  /**
208
224
  * The padding properties are used to generate space around an modal's content area.
209
225
  * @default base