@norges-domstoler/dds-components 17.5.2 → 17.5.4

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;
@@ -2131,6 +2127,8 @@ type ModalProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2131
2127
  triggerRef?: RefObject<HTMLElement>;
2132
2128
  /**Ref som skal motta fokus når Modal åpnes. Hvis utelatt blir Modal fokusert. */
2133
2129
  initialFocusRef?: RefObject<HTMLElement>;
2130
+ /** Gjør at innholdet kan scrolles */
2131
+ scrollable?: boolean;
2134
2132
  }>;
2135
2133
  declare const Modal: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
2136
2134
  /**Spesifiserer om modal skal vises. */
@@ -2147,6 +2145,8 @@ declare const Modal: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<H
2147
2145
  triggerRef?: RefObject<HTMLElement>;
2148
2146
  /**Ref som skal motta fokus når Modal åpnes. Hvis utelatt blir Modal fokusert. */
2149
2147
  initialFocusRef?: RefObject<HTMLElement>;
2148
+ /** Gjør at innholdet kan scrolles */
2149
+ scrollable?: boolean;
2150
2150
  } & {
2151
2151
  children?: ReactNode | undefined;
2152
2152
  } & {
@@ -2324,7 +2324,7 @@ declare const Pagination: react.ForwardRefExoticComponent<Pick<Omit<HTMLAttribut
2324
2324
  htmlProps?: Omit<HTMLAttributes<HTMLElement>, "onChange"> | undefined;
2325
2325
  } & react.RefAttributes<HTMLElement>>;
2326
2326
 
2327
- type ISOCountryCode = 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'IO' | 'VG' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CD' | 'CG' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'XK' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'VI' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VA' | 'VE' | 'VN' | 'WF' | 'YE' | 'ZM' | 'ZW' | 'AX';
2327
+ type ISOCountryCode = 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'IO' | 'VG' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'EH' | 'KM' | 'CD' | 'CG' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'GS' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'XK' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'VI' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VA' | 'VE' | 'VN' | 'WF' | 'YE' | 'ZM' | 'ZW' | 'AX';
2328
2328
 
2329
2329
  interface PhoneInputValue {
2330
2330
  countryCode: ISOCountryCode | (string & {});
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;
@@ -2131,6 +2127,8 @@ type ModalProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2131
2127
  triggerRef?: RefObject<HTMLElement>;
2132
2128
  /**Ref som skal motta fokus når Modal åpnes. Hvis utelatt blir Modal fokusert. */
2133
2129
  initialFocusRef?: RefObject<HTMLElement>;
2130
+ /** Gjør at innholdet kan scrolles */
2131
+ scrollable?: boolean;
2134
2132
  }>;
2135
2133
  declare const Modal: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
2136
2134
  /**Spesifiserer om modal skal vises. */
@@ -2147,6 +2145,8 @@ declare const Modal: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<H
2147
2145
  triggerRef?: RefObject<HTMLElement>;
2148
2146
  /**Ref som skal motta fokus når Modal åpnes. Hvis utelatt blir Modal fokusert. */
2149
2147
  initialFocusRef?: RefObject<HTMLElement>;
2148
+ /** Gjør at innholdet kan scrolles */
2149
+ scrollable?: boolean;
2150
2150
  } & {
2151
2151
  children?: ReactNode | undefined;
2152
2152
  } & {
@@ -2324,7 +2324,7 @@ declare const Pagination: react.ForwardRefExoticComponent<Pick<Omit<HTMLAttribut
2324
2324
  htmlProps?: Omit<HTMLAttributes<HTMLElement>, "onChange"> | undefined;
2325
2325
  } & react.RefAttributes<HTMLElement>>;
2326
2326
 
2327
- type ISOCountryCode = 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'IO' | 'VG' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CD' | 'CG' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'XK' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'VI' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VA' | 'VE' | 'VN' | 'WF' | 'YE' | 'ZM' | 'ZW' | 'AX';
2327
+ type ISOCountryCode = 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'IO' | 'VG' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'EH' | 'KM' | 'CD' | 'CG' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'GS' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'XK' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'VI' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VA' | 'VE' | 'VN' | 'WF' | 'YE' | 'ZM' | 'ZW' | 'AX';
2328
2328
 
2329
2329
  interface PhoneInputValue {
2330
2330
  countryCode: ISOCountryCode | (string & {});