@norges-domstoler/dds-components 0.0.0-dev-20241206132224 → 0.0.0-dev-20241206135551
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.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -2454,7 +2454,6 @@ type PopoverProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
2454
2454
|
sizeProps?: PopoverSizeProps;
|
|
2455
2455
|
/** **OBS!** Propen settes automatisk av `<PopoverGroup />`. Funksjon kjørt ved lukking. */
|
|
2456
2456
|
onClose?: () => void;
|
|
2457
|
-
withoutFocusOnBlur?: boolean;
|
|
2458
2457
|
}>;
|
|
2459
2458
|
declare const Popover: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
|
|
2460
2459
|
/**Tittel. */
|
|
@@ -2485,7 +2484,6 @@ declare const Popover: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes
|
|
|
2485
2484
|
sizeProps?: PopoverSizeProps;
|
|
2486
2485
|
/** **OBS!** Propen settes automatisk av `<PopoverGroup />`. Funksjon kjørt ved lukking. */
|
|
2487
2486
|
onClose?: () => void;
|
|
2488
|
-
withoutFocusOnBlur?: boolean;
|
|
2489
2487
|
} & {
|
|
2490
2488
|
children?: ReactNode | undefined;
|
|
2491
2489
|
} & {
|
package/dist/index.d.ts
CHANGED
|
@@ -2454,7 +2454,6 @@ type PopoverProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
2454
2454
|
sizeProps?: PopoverSizeProps;
|
|
2455
2455
|
/** **OBS!** Propen settes automatisk av `<PopoverGroup />`. Funksjon kjørt ved lukking. */
|
|
2456
2456
|
onClose?: () => void;
|
|
2457
|
-
withoutFocusOnBlur?: boolean;
|
|
2458
2457
|
}>;
|
|
2459
2458
|
declare const Popover: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
|
|
2460
2459
|
/**Tittel. */
|
|
@@ -2485,7 +2484,6 @@ declare const Popover: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes
|
|
|
2485
2484
|
sizeProps?: PopoverSizeProps;
|
|
2486
2485
|
/** **OBS!** Propen settes automatisk av `<PopoverGroup />`. Funksjon kjørt ved lukking. */
|
|
2487
2486
|
onClose?: () => void;
|
|
2488
|
-
withoutFocusOnBlur?: boolean;
|
|
2489
2487
|
} & {
|
|
2490
2488
|
children?: ReactNode | undefined;
|
|
2491
2489
|
} & {
|
package/dist/index.js
CHANGED
|
@@ -11301,7 +11301,6 @@ var Popover = (0, import_react111.forwardRef)(
|
|
|
11301
11301
|
id,
|
|
11302
11302
|
className,
|
|
11303
11303
|
htmlProps = {},
|
|
11304
|
-
withoutFocusOnBlur = false,
|
|
11305
11304
|
...rest
|
|
11306
11305
|
} = props;
|
|
11307
11306
|
const hasTransitionedIn = useMountTransition(isOpen, 400);
|
|
@@ -11311,7 +11310,7 @@ var Popover = (0, import_react111.forwardRef)(
|
|
|
11311
11310
|
});
|
|
11312
11311
|
refs.setReference(anchorElement || null);
|
|
11313
11312
|
const popoverRef = useReturnFocusOnBlur(
|
|
11314
|
-
isOpen && hasTransitionedIn
|
|
11313
|
+
isOpen && hasTransitionedIn,
|
|
11315
11314
|
() => {
|
|
11316
11315
|
onClose && onClose();
|
|
11317
11316
|
onBlur && onBlur();
|