@nimbus-ds/components 5.18.0-rc.2 → 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.
- package/CHANGELOG.md +6 -0
- package/dist/Accordion/index.js +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/CHANGELOG.md +6 -0
- package/dist/Checkbox/index.js +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.js +1 -1
- package/dist/Modal/index.d.ts +16 -0
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/Sidebar/index.d.ts +13 -0
- package/dist/Sidebar/index.js +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toggle/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/index.d.ts +29 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/Modal/index.d.ts
CHANGED
|
@@ -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
|