@norges-domstoler/dds-components 13.6.1 → 13.6.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/cjs/components/Table/Table.stories.d.ts +1 -0
- package/dist/cjs/index.js +3 -0
- package/dist/components/Modal/Modal.js +4 -1
- package/dist/components/Table/Table.stories.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/{bundle.css → assets/bundle-24847e44.css} +0 -0
- /package/dist/cjs/{bundle.css → assets/bundle-24847e44.css} +0 -0
|
@@ -54,3 +54,4 @@ export declare const WithCheckbox: (args: TableProps) => import("react/jsx-runti
|
|
|
54
54
|
export declare const Complex: (args: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
export declare const Sortable: (args: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
56
|
export declare const ColumnAndRowHeaders: (args: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export declare const WithScroll: (args: TableProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/cjs/index.js
CHANGED
|
@@ -5904,6 +5904,9 @@ var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
5904
5904
|
} else {
|
|
5905
5905
|
handleElementWithBackdropUnmount(document.body);
|
|
5906
5906
|
}
|
|
5907
|
+
return function () {
|
|
5908
|
+
return handleElementWithBackdropUnmount(document.body);
|
|
5909
|
+
};
|
|
5907
5910
|
}, [isOpen]);
|
|
5908
5911
|
ddsCore.useOnClickOutside(modalRef.current, function () {
|
|
5909
5912
|
return handleClose();
|
|
@@ -8,9 +8,9 @@ import { createPortal } from 'react-dom';
|
|
|
8
8
|
import { Typography } from '@norges-domstoler/dds-typography';
|
|
9
9
|
import { Paper, selection, useFocusTrap, useCombinedRef, useOnClickOutside, useOnKeyDown, useMountTransition, getBaseHTMLProps } from '@norges-domstoler/dds-core';
|
|
10
10
|
import { CloseIcon } from '@norges-domstoler/dds-icons';
|
|
11
|
+
import { focusVisible } from '@norges-domstoler/dds-form';
|
|
11
12
|
import { Backdrop } from './Backdrop/Backdrop.js';
|
|
12
13
|
import { handleElementWithBackdropMount, handleElementWithBackdropUnmount } from './Backdrop/Backdrop.utils.js';
|
|
13
|
-
import { focusVisible } from '@norges-domstoler/dds-form';
|
|
14
14
|
|
|
15
15
|
var container = modalTokens.container,
|
|
16
16
|
contentContainer = modalTokens.contentContainer;
|
|
@@ -61,6 +61,9 @@ var Modal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
61
61
|
} else {
|
|
62
62
|
handleElementWithBackdropUnmount(document.body);
|
|
63
63
|
}
|
|
64
|
+
return function () {
|
|
65
|
+
return handleElementWithBackdropUnmount(document.body);
|
|
66
|
+
};
|
|
64
67
|
}, [isOpen]);
|
|
65
68
|
useOnClickOutside(modalRef.current, function () {
|
|
66
69
|
return handleClose();
|
|
@@ -54,3 +54,4 @@ export declare const WithCheckbox: (args: TableProps) => import("react/jsx-runti
|
|
|
54
54
|
export declare const Complex: (args: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
export declare const Sortable: (args: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
56
|
export declare const ColumnAndRowHeaders: (args: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export declare const WithScroll: (args: TableProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|