@norges-domstoler/dds-components 17.5.1 → 17.5.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/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
- import react__default, { ComponentProps, ElementType, ReactNode, HTMLAttributes, InputHTMLAttributes, PropsWithChildren, ComponentPropsWithoutRef, AnchorHTMLAttributes, LabelHTMLAttributes, RefCallback, RefObject, KeyboardEvent as KeyboardEvent$1, Dispatch, SetStateAction, SVGAttributes, ButtonHTMLAttributes, FocusEventHandler, MouseEventHandler, AriaRole, ComponentPropsWithRef, TextareaHTMLAttributes, ForwardedRef, ForwardRefExoticComponent, ChangeEvent, MouseEvent as MouseEvent$1, Ref, ReactElement, TdHTMLAttributes, ThHTMLAttributes } from 'react';
2
+ import react__default, { ElementType, ReactNode, HTMLAttributes, InputHTMLAttributes, PropsWithChildren, ComponentPropsWithoutRef, ComponentProps, AnchorHTMLAttributes, LabelHTMLAttributes, RefCallback, RefObject, KeyboardEvent as KeyboardEvent$1, Dispatch, SetStateAction, SVGAttributes, ButtonHTMLAttributes, FocusEventHandler, MouseEventHandler, AriaRole, ComponentPropsWithRef, TextareaHTMLAttributes, ForwardedRef, ForwardRefExoticComponent, ChangeEvent, MouseEvent as MouseEvent$1, Ref, ReactElement, TdHTMLAttributes, ThHTMLAttributes } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as CSS from 'csstype';
5
5
  import { Property, StandardProperties } from 'csstype';
6
6
  import * as styled_components from 'styled-components';
@@ -14,13 +14,9 @@ import { OptionProps, GroupBase, SingleValueProps, Props as Props$1, SelectInsta
14
14
  declare function handleElementWithBackdropMount(container: HTMLElement): void;
15
15
  declare function handleElementWithBackdropUnmount(container: HTMLElement): void;
16
16
 
17
- type BackdropProps = {
17
+ declare const Backdrop: react.ForwardRefExoticComponent<{
18
18
  isMounted?: boolean;
19
- } & Pick<ComponentProps<'div'>, 'children'>;
20
- declare const Backdrop: {
21
- ({ isMounted, ...props }: BackdropProps): react_jsx_runtime.JSX.Element;
22
- displayName: string;
23
- };
19
+ } & Pick<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "onClick"> & react.RefAttributes<HTMLDivElement>>;
24
20
 
25
21
  interface SvgChevronProps {
26
22
  isUp?: boolean;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
- import react__default, { ComponentProps, ElementType, ReactNode, HTMLAttributes, InputHTMLAttributes, PropsWithChildren, ComponentPropsWithoutRef, AnchorHTMLAttributes, LabelHTMLAttributes, RefCallback, RefObject, KeyboardEvent as KeyboardEvent$1, Dispatch, SetStateAction, SVGAttributes, ButtonHTMLAttributes, FocusEventHandler, MouseEventHandler, AriaRole, ComponentPropsWithRef, TextareaHTMLAttributes, ForwardedRef, ForwardRefExoticComponent, ChangeEvent, MouseEvent as MouseEvent$1, Ref, ReactElement, TdHTMLAttributes, ThHTMLAttributes } from 'react';
2
+ import react__default, { ElementType, ReactNode, HTMLAttributes, InputHTMLAttributes, PropsWithChildren, ComponentPropsWithoutRef, ComponentProps, AnchorHTMLAttributes, LabelHTMLAttributes, RefCallback, RefObject, KeyboardEvent as KeyboardEvent$1, Dispatch, SetStateAction, SVGAttributes, ButtonHTMLAttributes, FocusEventHandler, MouseEventHandler, AriaRole, ComponentPropsWithRef, TextareaHTMLAttributes, ForwardedRef, ForwardRefExoticComponent, ChangeEvent, MouseEvent as MouseEvent$1, Ref, ReactElement, TdHTMLAttributes, ThHTMLAttributes } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as CSS from 'csstype';
5
5
  import { Property, StandardProperties } from 'csstype';
6
6
  import * as styled_components from 'styled-components';
@@ -14,13 +14,9 @@ import { OptionProps, GroupBase, SingleValueProps, Props as Props$1, SelectInsta
14
14
  declare function handleElementWithBackdropMount(container: HTMLElement): void;
15
15
  declare function handleElementWithBackdropUnmount(container: HTMLElement): void;
16
16
 
17
- type BackdropProps = {
17
+ declare const Backdrop: react.ForwardRefExoticComponent<{
18
18
  isMounted?: boolean;
19
- } & Pick<ComponentProps<'div'>, 'children'>;
20
- declare const Backdrop: {
21
- ({ isMounted, ...props }: BackdropProps): react_jsx_runtime.JSX.Element;
22
- displayName: string;
23
- };
19
+ } & Pick<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "onClick"> & react.RefAttributes<HTMLDivElement>>;
24
20
 
25
21
  interface SvgChevronProps {
26
22
  isUp?: boolean;