@norges-domstoler/dds-components 0.0.0-dev-20231109095149 → 0.0.0-dev-20231110102937

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
@@ -20,10 +20,10 @@ import * as styled_components_dist_types from 'styled-components/dist/types';
20
20
 
21
21
  type EmbeteType = 'jordskifterett' | 'tingrett' | 'lagmannsrett' | 'høyesterett';
22
22
 
23
- type OverflowMenuItemBase = {
23
+ interface OverflowMenuItemBase {
24
24
  title: string;
25
25
  icon?: SvgIcon;
26
- };
26
+ }
27
27
  type OverflowMenuButtonItem = OverflowMenuItemBase & ButtonHTMLAttributes<HTMLButtonElement>;
28
28
  type OverflowMenuLinkItem = OverflowMenuItemBase & AnchorHTMLAttributes<HTMLAnchorElement>;
29
29
  type OverflowMenuContextItem = OverflowMenuButtonItem | OverflowMenuLinkItem;
@@ -53,9 +53,9 @@ type OverflowMenuProps = BaseComponentProps<HTMLDivElement, {
53
53
  offset?: number;
54
54
  }>;
55
55
 
56
- type ContainerProps = {
56
+ interface ContainerProps {
57
57
  isOpen: boolean;
58
- };
58
+ }
59
59
  declare const Container: styled_components.IStyledComponent<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>>;
60
60
  declare const OverflowMenuList: styled_components.IStyledComponent<"web", {
61
61
  ref?: react.LegacyRef<HTMLUListElement> | undefined;
@@ -67,21 +67,21 @@ declare const OverflowMenuList: styled_components.IStyledComponent<"web", {
67
67
  accessKey?: string | undefined;
68
68
  autoFocus?: boolean | undefined;
69
69
  className?: string | undefined;
70
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
70
+ contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
71
71
  contextMenu?: string | undefined;
72
72
  dir?: string | undefined;
73
- draggable?: (boolean | "true" | "false") | undefined;
73
+ draggable?: (boolean | "false" | "true") | undefined;
74
74
  hidden?: boolean | undefined;
75
75
  id?: string | undefined;
76
76
  lang?: string | undefined;
77
77
  nonce?: string | undefined;
78
78
  placeholder?: string | undefined;
79
79
  slot?: string | undefined;
80
- spellCheck?: (boolean | "true" | "false") | undefined;
80
+ spellCheck?: (boolean | "false" | "true") | undefined;
81
81
  style?: react.CSSProperties | undefined;
82
82
  tabIndex?: number | undefined;
83
83
  title?: string | undefined;
84
- translate?: "no" | "yes" | undefined;
84
+ translate?: "yes" | "no" | undefined;
85
85
  radioGroup?: string | undefined;
86
86
  role?: react.AriaRole | undefined;
87
87
  about?: string | undefined;
@@ -106,56 +106,56 @@ declare const OverflowMenuList: styled_components.IStyledComponent<"web", {
106
106
  itemRef?: string | undefined;
107
107
  results?: number | undefined;
108
108
  security?: string | undefined;
109
- unselectable?: "off" | "on" | undefined;
109
+ unselectable?: "on" | "off" | undefined;
110
110
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
111
111
  is?: string | undefined;
112
112
  "aria-activedescendant"?: string | undefined;
113
- "aria-atomic"?: (boolean | "true" | "false") | undefined;
114
- "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
113
+ "aria-atomic"?: (boolean | "false" | "true") | undefined;
114
+ "aria-autocomplete"?: "list" | "none" | "both" | "inline" | undefined;
115
115
  "aria-braillelabel"?: string | undefined;
116
116
  "aria-brailleroledescription"?: string | undefined;
117
- "aria-busy"?: (boolean | "true" | "false") | undefined;
118
- "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
117
+ "aria-busy"?: (boolean | "false" | "true") | undefined;
118
+ "aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
119
119
  "aria-colcount"?: number | undefined;
120
120
  "aria-colindex"?: number | undefined;
121
121
  "aria-colindextext"?: string | undefined;
122
122
  "aria-colspan"?: number | undefined;
123
123
  "aria-controls"?: string | undefined;
124
- "aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
124
+ "aria-current"?: boolean | "time" | "step" | "page" | "false" | "true" | "location" | "date" | undefined;
125
125
  "aria-describedby"?: string | undefined;
126
126
  "aria-description"?: string | undefined;
127
127
  "aria-details"?: string | undefined;
128
- "aria-disabled"?: (boolean | "true" | "false") | undefined;
129
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
128
+ "aria-disabled"?: (boolean | "false" | "true") | undefined;
129
+ "aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
130
130
  "aria-errormessage"?: string | undefined;
131
- "aria-expanded"?: (boolean | "true" | "false") | undefined;
131
+ "aria-expanded"?: (boolean | "false" | "true") | undefined;
132
132
  "aria-flowto"?: string | undefined;
133
- "aria-grabbed"?: (boolean | "true" | "false") | undefined;
134
- "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
135
- "aria-hidden"?: (boolean | "true" | "false") | undefined;
136
- "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
133
+ "aria-grabbed"?: (boolean | "false" | "true") | undefined;
134
+ "aria-haspopup"?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree" | undefined;
135
+ "aria-hidden"?: (boolean | "false" | "true") | undefined;
136
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
137
137
  "aria-keyshortcuts"?: string | undefined;
138
138
  "aria-label"?: string | undefined;
139
139
  "aria-labelledby"?: string | undefined;
140
140
  "aria-level"?: number | undefined;
141
141
  "aria-live"?: "off" | "assertive" | "polite" | undefined;
142
- "aria-modal"?: (boolean | "true" | "false") | undefined;
143
- "aria-multiline"?: (boolean | "true" | "false") | undefined;
144
- "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
142
+ "aria-modal"?: (boolean | "false" | "true") | undefined;
143
+ "aria-multiline"?: (boolean | "false" | "true") | undefined;
144
+ "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
145
145
  "aria-orientation"?: "horizontal" | "vertical" | undefined;
146
146
  "aria-owns"?: string | undefined;
147
147
  "aria-placeholder"?: string | undefined;
148
148
  "aria-posinset"?: number | undefined;
149
- "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
150
- "aria-readonly"?: (boolean | "true" | "false") | undefined;
151
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
152
- "aria-required"?: (boolean | "true" | "false") | undefined;
149
+ "aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
150
+ "aria-readonly"?: (boolean | "false" | "true") | undefined;
151
+ "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
152
+ "aria-required"?: (boolean | "false" | "true") | undefined;
153
153
  "aria-roledescription"?: string | undefined;
154
154
  "aria-rowcount"?: number | undefined;
155
155
  "aria-rowindex"?: number | undefined;
156
156
  "aria-rowindextext"?: string | undefined;
157
157
  "aria-rowspan"?: number | undefined;
158
- "aria-selected"?: (boolean | "true" | "false") | undefined;
158
+ "aria-selected"?: (boolean | "false" | "true") | undefined;
159
159
  "aria-setsize"?: number | undefined;
160
160
  "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
161
161
  "aria-valuemax"?: number | undefined;
@@ -346,7 +346,7 @@ declare const OverflowMenu: react.ForwardRefExoticComponent<Pick<react.HTMLAttri
346
346
  htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
347
347
  } & react.RefAttributes<HTMLDivElement>>;
348
348
 
349
- type OverflowMenuGroupProps = {
349
+ interface OverflowMenuGroupProps {
350
350
  /**Ekstra logikk som kjøres når `<OverflowMenu />` åpnes og lukkes. */
351
351
  onToggle?: () => void;
352
352
  /**Ekstra logikk som kjøres når `<OverflowMenu />` åpnes. */
@@ -357,24 +357,24 @@ type OverflowMenuGroupProps = {
357
357
  children: ReactNode;
358
358
  /**Custom id for `<OverflowMenu />`. */
359
359
  overflowMenuId?: string;
360
- };
360
+ }
361
361
  declare const OverflowMenuGroup: {
362
362
  ({ children, onClose, onToggle, onOpen, overflowMenuId, }: OverflowMenuGroupProps): react_jsx_runtime.JSX.Element;
363
363
  displayName: string;
364
364
  };
365
365
 
366
- type User = {
366
+ interface User {
367
367
  /**Brukerens fulle navn (for- og etternavn). */
368
368
  name: string;
369
369
  /**Det aktive embetet til brukeren. */
370
370
  embete: Embete;
371
- };
372
- type Embete = {
371
+ }
372
+ interface Embete {
373
373
  /**Navnet på embetet. */
374
374
  name: string;
375
375
  /**Hvilken instans embetet er. */
376
376
  type: EmbeteType;
377
- };
377
+ }
378
378
 
379
379
  type AppShellProps = PropsWithChildren<{
380
380
  /**
@@ -396,7 +396,7 @@ type AppShellProps = PropsWithChildren<{
396
396
  */
397
397
  environment?: Environment;
398
398
  }>;
399
- type AppShellNavigationProps = {
399
+ interface AppShellNavigationProps {
400
400
  /**
401
401
  * Interne lenker i navigasjonen.
402
402
  */
@@ -405,7 +405,7 @@ type AppShellNavigationProps = {
405
405
  * Eksterne lenker i navigasjonen.
406
406
  */
407
407
  external?: ReactElement[];
408
- };
408
+ }
409
409
  declare const AppShell$1: {
410
410
  ({ children, version, navigation: { internal, external }, user, userMenuItems, environment, }: AppShellProps): react_jsx_runtime.JSX.Element;
411
411
  displayName: string;
@@ -640,17 +640,17 @@ type TextInputProps = InputProps & {
640
640
  * for en beskrivende label. */
641
641
  suffix?: string;
642
642
  };
643
- type TextAffixProps = {
643
+ interface TextAffixProps {
644
644
  readOnly?: boolean;
645
- };
645
+ }
646
646
 
647
- type SelectOption<TValue = unknown> = {
647
+ interface SelectOption<TValue = unknown> {
648
648
  label: string | number;
649
649
  value: TValue;
650
- };
650
+ }
651
651
  declare const createSelectOptions: <TValue extends string | number>(...args: TValue[]) => SelectOption<TValue>[];
652
- type WrappedReactSelectProps<TOption extends Record<string, unknown>, IsMulti extends boolean, Group extends GroupBase<TOption>> = WithRequiredIf<TOption extends SelectOption ? false : true, Props<TOption, IsMulti, Group>, 'getOptionLabel' | 'getOptionValue'>;
653
- type SelectProps<TOption extends Record<string, unknown>, IsMulti extends boolean> = {
652
+ type WrappedReactSelectProps<TOption extends SelectOption<TValue>, IsMulti extends boolean, Group extends GroupBase<TOption>, TValue = unknown> = WithRequiredIf<TOption extends SelectOption ? false : true, Props<TOption, IsMulti, Group>, 'getOptionLabel' | 'getOptionValue'>;
653
+ type SelectProps<TOption extends SelectOption<TValue>, IsMulti extends boolean, TValue = unknown> = {
654
654
  /**Ledetekst for nedtrekkslisten. */
655
655
  label?: string;
656
656
  /**Størrelsen på komponenten. */
@@ -673,7 +673,7 @@ type SelectProps<TOption extends Record<string, unknown>, IsMulti extends boolea
673
673
  customSingleValueElement?: (props: SingleValueProps<TOption, IsMulti, GroupBase<TOption>>) => JSX.Element;
674
674
  } & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<TOption, IsMulti, GroupBase<TOption>>;
675
675
  type ForwardRefType<TOption, IsMulti extends boolean> = react__default.ForwardedRef<SelectInstance<TOption, IsMulti, GroupBase<TOption>>>;
676
- declare const Select: <TOption extends Record<string, unknown>, IsMulti extends boolean = false>(props: SelectProps<TOption, IsMulti>, ref: ForwardRefType<TOption, IsMulti>) => react_jsx_runtime.JSX.Element;
676
+ declare const Select: <TOption extends SelectOption<TValue>, IsMulti extends boolean = false, TValue = unknown>(props: SelectProps<TOption, IsMulti, unknown>, ref: ForwardRefType<TOption, IsMulti>) => react_jsx_runtime.JSX.Element;
677
677
 
678
678
  type GlobalMessagePurpose = 'info' | 'warning' | 'danger';
679
679
  type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
@@ -756,19 +756,19 @@ declare const Search$1: react.ForwardRefExoticComponent<Pick<InputProps, "label"
756
756
  buttonProps?: ButtonProps | undefined;
757
757
  } & InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;
758
758
 
759
- type WeightedValue = {
759
+ interface WeightedValue {
760
760
  text: string;
761
761
  relevance: number;
762
- };
763
- type WeightedSearchData = {
762
+ }
763
+ interface WeightedSearchData {
764
764
  array: WeightedValue[];
765
765
  sortFunction?: (a: WeightedValue, b: WeightedValue) => number;
766
- };
767
- type SearchData = {
766
+ }
767
+ interface SearchData {
768
768
  array: string[];
769
769
  sortFunction?: (a: string, b: string) => number;
770
- };
771
- type SearchAutocompleteWrapperProps = {
770
+ }
771
+ interface SearchAutocompleteWrapperProps {
772
772
  /**Array med data som kan søkes på og eventuelt tilhørende sorteringsfunksjon. Array kan bestå av elementer av typen `string` eller objekter med vekt og tekst.*/
773
773
  data?: SearchData | WeightedSearchData;
774
774
  /** Ekstra callback ved `onChange` i `<Search>`. */
@@ -783,7 +783,7 @@ type SearchAutocompleteWrapperProps = {
783
783
  children?: ReactNode;
784
784
  /**Initielle `value` i `<Search>`. */
785
785
  value?: string;
786
- };
786
+ }
787
787
  declare const SearchAutocompleteWrapper: {
788
788
  (props: SearchAutocompleteWrapperProps): react_jsx_runtime.JSX.Element;
789
789
  displayName: string;
@@ -900,9 +900,9 @@ declare const CollapsibleRow: react.ForwardRefExoticComponent<{
900
900
 
901
901
  type TableCellType = 'data' | 'head';
902
902
  type TableCellLayout = 'left' | 'right' | 'center' | 'text and icon';
903
- type CollapsibleProps = {
903
+ interface CollapsibleProps {
904
904
  isCollapsibleChild?: boolean;
905
- };
905
+ }
906
906
  type TableCellProps = {
907
907
  /**Type celle. Returnerer enten `<td>` eller `<th>`. */
908
908
  type?: TableCellType;
@@ -956,12 +956,16 @@ type BreadcrumbProps = HTMLAttributes<HTMLSpanElement> | AnchorHTMLAttributes<HT
956
956
  declare const Breadcrumb: react.ForwardRefExoticComponent<BreadcrumbProps & react.RefAttributes<HTMLElement>>;
957
957
 
958
958
  type BreadcrumbsProps = BaseComponentPropsWithChildren<HTMLElement>;
959
- declare const Breadcrumbs: react.ForwardRefExoticComponent<Omit<BreadcrumbsProps, "ref"> & react.RefAttributes<HTMLElement>>;
959
+ declare const Breadcrumbs: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLElement>, "className" | "id"> & object & {
960
+ children?: react.ReactNode;
961
+ } & {
962
+ htmlProps?: react.HTMLAttributes<HTMLElement> | undefined;
963
+ } & react.RefAttributes<HTMLElement>>;
960
964
 
961
- type PaginationOption = {
965
+ interface PaginationOption {
962
966
  label: string;
963
967
  value: number;
964
- };
968
+ }
965
969
  type PaginationProps = BaseComponentProps<HTMLElement, {
966
970
  /**Totalt antall elementer å paginere. */
967
971
  itemsAmount: number;
@@ -1058,7 +1062,7 @@ declare const DescriptionList: react.ForwardRefExoticComponent<Pick<react.HTMLAt
1058
1062
  /**Setter flex-direction. NB! Fungerer kun ved bruk av `DescriptionListGroup` som barn av `DescriptionList`.
1059
1063
  * @default "column"
1060
1064
  */
1061
- direction?: "row" | "column" | undefined;
1065
+ direction?: "column" | "row" | undefined;
1062
1066
  } & {
1063
1067
  children?: react.ReactNode;
1064
1068
  } & {
@@ -1104,7 +1108,7 @@ declare const DescriptionListGroup: react.ForwardRefExoticComponent<Pick<react.H
1104
1108
 
1105
1109
  type SpinnerProps = BaseComponentProps<SVGElement, {
1106
1110
  /**Farge på spinneren. */
1107
- color?: TextColor | string;
1111
+ color?: TextColor | (string & NonNullable<unknown>);
1108
1112
  /**Størrelse; Setter høyde og bredde på spinneren. */
1109
1113
  size?: Property.Width<string>;
1110
1114
  /**Tekst som vises ved hover. */
@@ -1224,10 +1228,10 @@ type ContextMenuElementProps = {
1224
1228
  icon?: SvgIcon;
1225
1229
  onClick?: () => void;
1226
1230
  } & (AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>);
1227
- type InternaHeaderUserProps = {
1231
+ interface InternaHeaderUserProps {
1228
1232
  name: string;
1229
1233
  href?: string;
1230
- };
1234
+ }
1231
1235
  type InternalHeaderProps = BaseComponentProps<HTMLDivElement, {
1232
1236
  /**Navn på applikasjonen. */
1233
1237
  applicationName?: string;
@@ -1361,11 +1365,11 @@ declare const ModalActions: react.ForwardRefExoticComponent<ModalActionsProps &
1361
1365
 
1362
1366
  type DrawerSize = 'small' | 'medium' | 'large';
1363
1367
  type DrawerPlacement = 'left' | 'right';
1364
- type WidthProps = {
1368
+ interface WidthProps {
1365
1369
  minWidth?: Property.MinWidth<string>;
1366
1370
  maxWidth?: Property.MaxWidth<string>;
1367
1371
  width?: Property.Width<string>;
1368
- };
1372
+ }
1369
1373
  type DrawerProps = BaseComponentPropsWithChildren<HTMLDivElement, {
1370
1374
  /**Størrelsen på `<Drawer />`. */
1371
1375
  size?: DrawerSize;
@@ -1407,7 +1411,7 @@ declare const Drawer: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<
1407
1411
  htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
1408
1412
  } & react.RefAttributes<HTMLDivElement>>;
1409
1413
 
1410
- type DrawerGroupProps = {
1414
+ interface DrawerGroupProps {
1411
1415
  /**Barna til komponenten. */
1412
1416
  children: ReactNode;
1413
1417
  /**`id` til `<Drawer />`. */
@@ -1416,20 +1420,20 @@ type DrawerGroupProps = {
1416
1420
  onOpen?: () => void;
1417
1421
  /**Ekstra logikk som kjøres når `<Drawer />` lukkes. */
1418
1422
  onClose?: () => void;
1419
- };
1423
+ }
1420
1424
  declare const DrawerGroup: {
1421
1425
  ({ children, drawerId, onOpen, onClose, }: DrawerGroupProps): react_jsx_runtime.JSX.Element;
1422
1426
  displayName: string;
1423
1427
  };
1424
1428
 
1425
- type PopoverSizeProps = {
1429
+ interface PopoverSizeProps {
1426
1430
  width?: Property.Width<string>;
1427
1431
  height?: Property.Height<string>;
1428
1432
  minWidth?: Property.MinWidth<string>;
1429
1433
  minHeight?: Property.MinHeight<string>;
1430
1434
  maxWidth?: Property.MaxWidth<string>;
1431
1435
  maxHeight?: Property.MaxHeight<string>;
1432
- };
1436
+ }
1433
1437
  type PopoverProps = BaseComponentPropsWithChildren<HTMLDivElement, {
1434
1438
  /**Tittel. */
1435
1439
  title?: string | ReactNode;
@@ -1479,7 +1483,7 @@ declare const Popover: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes
1479
1483
  htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
1480
1484
  } & react.RefAttributes<HTMLDivElement>>;
1481
1485
 
1482
- type PopoverGroupProps = {
1486
+ interface PopoverGroupProps {
1483
1487
  /**Callback når det trykkes på lukkeknappen. */
1484
1488
  onCloseButtonClick?: () => void;
1485
1489
  /** Callback når det trykkes på anchor-elementet (trigger-elementet). */
@@ -1490,7 +1494,7 @@ type PopoverGroupProps = {
1490
1494
  popoverId?: string;
1491
1495
  /** Barna til wrapperen: anchor-element som det første og `<Popover />` so det adnre. */
1492
1496
  children: ReactNode;
1493
- };
1497
+ }
1494
1498
  declare const PopoverGroup: {
1495
1499
  ({ isOpen, onCloseButtonClick, onTriggerClick, children, popoverId, }: PopoverGroupProps): react_jsx_runtime.JSX.Element;
1496
1500
  displayName: string;
@@ -1782,7 +1786,7 @@ declare const GridChild: {
1782
1786
  displayName: string;
1783
1787
  };
1784
1788
 
1785
- type BaseItemProps = {
1789
+ interface BaseItemProps {
1786
1790
  /** Om steget er valgt eller ikke. Settes av konsument. */
1787
1791
  active?: boolean;
1788
1792
  /** Om steget er ferdig eller ikke. Settes av konsument. */
@@ -1795,7 +1799,7 @@ type BaseItemProps = {
1795
1799
  icon?: SvgIcon;
1796
1800
  /** Indeksen til steget. NB! Denne settes automatisk av `<ProgressTracker />` og skal ikke settes manuelt. */
1797
1801
  index?: number;
1798
- };
1802
+ }
1799
1803
  type ProgressTrackerItemProps = ({
1800
1804
  /** Click-handler som gjør det mulig for bruker å klikke på steget for å navigere. Valgfri. */
1801
1805
  onClick: (index: number) => void;
@@ -1818,7 +1822,7 @@ type ProgressTrackerComponent = ForwardRefExoticComponent<ProgressTrackerProps>
1818
1822
  };
1819
1823
  declare const ProgressTracker: ProgressTrackerComponent;
1820
1824
 
1821
- type BaseInlineInputProps = {
1825
+ interface BaseInlineInputProps {
1822
1826
  /**Spesifiserer error state. Hvis `errorMessage` ikke brukes må inputfeltet knyttes med ARIA til en feilmelding som vises andre steder i applikasjonen. */
1823
1827
  error?: boolean;
1824
1828
  /**Feilmelding. Setter også error state. */
@@ -1831,7 +1835,7 @@ type BaseInlineInputProps = {
1831
1835
  emptiable?: boolean;
1832
1836
  /** **OBS!** settes automatisk av forelder. Spesifiserer om komponenten er i redigeringsmodus. */
1833
1837
  isEditing?: boolean;
1834
- };
1838
+ }
1835
1839
  type InlineEditProps = {
1836
1840
  /**Callback for når verdien blir lagret. */
1837
1841
  onSetValue?: (value: string) => void;
@@ -1898,20 +1902,20 @@ declare const StyledTextArea: styled_components.IStyledComponent<"web", styled_c
1898
1902
  accessKey?: string | undefined;
1899
1903
  autoFocus?: boolean | undefined;
1900
1904
  className?: string | undefined;
1901
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
1905
+ contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
1902
1906
  contextMenu?: string | undefined;
1903
1907
  dir?: string | undefined;
1904
- draggable?: (boolean | "true" | "false") | undefined;
1908
+ draggable?: (boolean | "false" | "true") | undefined;
1905
1909
  hidden?: boolean | undefined;
1906
1910
  id?: string | undefined;
1907
1911
  lang?: string | undefined;
1908
1912
  nonce?: string | undefined;
1909
1913
  slot?: string | undefined;
1910
- spellCheck?: (boolean | "true" | "false") | undefined;
1914
+ spellCheck?: (boolean | "false" | "true") | undefined;
1911
1915
  style?: react.CSSProperties | undefined;
1912
1916
  tabIndex?: number | undefined;
1913
1917
  title?: string | undefined;
1914
- translate?: "no" | "yes" | undefined;
1918
+ translate?: "yes" | "no" | undefined;
1915
1919
  radioGroup?: string | undefined;
1916
1920
  role?: react.AriaRole | undefined;
1917
1921
  about?: string | undefined;
@@ -1936,56 +1940,56 @@ declare const StyledTextArea: styled_components.IStyledComponent<"web", styled_c
1936
1940
  itemRef?: string | undefined;
1937
1941
  results?: number | undefined;
1938
1942
  security?: string | undefined;
1939
- unselectable?: "off" | "on" | undefined;
1943
+ unselectable?: "on" | "off" | undefined;
1940
1944
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1941
1945
  is?: string | undefined;
1942
1946
  "aria-activedescendant"?: string | undefined;
1943
- "aria-atomic"?: (boolean | "true" | "false") | undefined;
1944
- "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
1947
+ "aria-atomic"?: (boolean | "false" | "true") | undefined;
1948
+ "aria-autocomplete"?: "list" | "none" | "both" | "inline" | undefined;
1945
1949
  "aria-braillelabel"?: string | undefined;
1946
1950
  "aria-brailleroledescription"?: string | undefined;
1947
- "aria-busy"?: (boolean | "true" | "false") | undefined;
1948
- "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
1951
+ "aria-busy"?: (boolean | "false" | "true") | undefined;
1952
+ "aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
1949
1953
  "aria-colcount"?: number | undefined;
1950
1954
  "aria-colindex"?: number | undefined;
1951
1955
  "aria-colindextext"?: string | undefined;
1952
1956
  "aria-colspan"?: number | undefined;
1953
1957
  "aria-controls"?: string | undefined;
1954
- "aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
1958
+ "aria-current"?: boolean | "time" | "step" | "page" | "false" | "true" | "location" | "date" | undefined;
1955
1959
  "aria-describedby"?: string | undefined;
1956
1960
  "aria-description"?: string | undefined;
1957
1961
  "aria-details"?: string | undefined;
1958
- "aria-disabled"?: (boolean | "true" | "false") | undefined;
1959
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
1962
+ "aria-disabled"?: (boolean | "false" | "true") | undefined;
1963
+ "aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
1960
1964
  "aria-errormessage"?: string | undefined;
1961
- "aria-expanded"?: (boolean | "true" | "false") | undefined;
1965
+ "aria-expanded"?: (boolean | "false" | "true") | undefined;
1962
1966
  "aria-flowto"?: string | undefined;
1963
- "aria-grabbed"?: (boolean | "true" | "false") | undefined;
1964
- "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
1965
- "aria-hidden"?: (boolean | "true" | "false") | undefined;
1966
- "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
1967
+ "aria-grabbed"?: (boolean | "false" | "true") | undefined;
1968
+ "aria-haspopup"?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree" | undefined;
1969
+ "aria-hidden"?: (boolean | "false" | "true") | undefined;
1970
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
1967
1971
  "aria-keyshortcuts"?: string | undefined;
1968
1972
  "aria-label"?: string | undefined;
1969
1973
  "aria-labelledby"?: string | undefined;
1970
1974
  "aria-level"?: number | undefined;
1971
1975
  "aria-live"?: "off" | "assertive" | "polite" | undefined;
1972
- "aria-modal"?: (boolean | "true" | "false") | undefined;
1973
- "aria-multiline"?: (boolean | "true" | "false") | undefined;
1974
- "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
1976
+ "aria-modal"?: (boolean | "false" | "true") | undefined;
1977
+ "aria-multiline"?: (boolean | "false" | "true") | undefined;
1978
+ "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
1975
1979
  "aria-orientation"?: "horizontal" | "vertical" | undefined;
1976
1980
  "aria-owns"?: string | undefined;
1977
1981
  "aria-placeholder"?: string | undefined;
1978
1982
  "aria-posinset"?: number | undefined;
1979
- "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
1980
- "aria-readonly"?: (boolean | "true" | "false") | undefined;
1981
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
1982
- "aria-required"?: (boolean | "true" | "false") | undefined;
1983
+ "aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
1984
+ "aria-readonly"?: (boolean | "false" | "true") | undefined;
1985
+ "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
1986
+ "aria-required"?: (boolean | "false" | "true") | undefined;
1983
1987
  "aria-roledescription"?: string | undefined;
1984
1988
  "aria-rowcount"?: number | undefined;
1985
1989
  "aria-rowindex"?: number | undefined;
1986
1990
  "aria-rowindextext"?: string | undefined;
1987
1991
  "aria-rowspan"?: number | undefined;
1988
- "aria-selected"?: (boolean | "true" | "false") | undefined;
1992
+ "aria-selected"?: (boolean | "false" | "true") | undefined;
1989
1993
  "aria-setsize"?: number | undefined;
1990
1994
  "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
1991
1995
  "aria-valuemax"?: number | undefined;
@@ -2201,20 +2205,20 @@ declare const StyledTextArea: styled_components.IStyledComponent<"web", styled_c
2201
2205
  accessKey?: string | undefined;
2202
2206
  autoFocus?: boolean | undefined;
2203
2207
  className?: string | undefined;
2204
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
2208
+ contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
2205
2209
  contextMenu?: string | undefined;
2206
2210
  dir?: string | undefined;
2207
- draggable?: (boolean | "true" | "false") | undefined;
2211
+ draggable?: (boolean | "false" | "true") | undefined;
2208
2212
  hidden?: boolean | undefined;
2209
2213
  id?: string | undefined;
2210
2214
  lang?: string | undefined;
2211
2215
  nonce?: string | undefined;
2212
2216
  slot?: string | undefined;
2213
- spellCheck?: (boolean | "true" | "false") | undefined;
2217
+ spellCheck?: (boolean | "false" | "true") | undefined;
2214
2218
  style?: react.CSSProperties | undefined;
2215
2219
  tabIndex?: number | undefined;
2216
2220
  title?: string | undefined;
2217
- translate?: "no" | "yes" | undefined;
2221
+ translate?: "yes" | "no" | undefined;
2218
2222
  radioGroup?: string | undefined;
2219
2223
  role?: react.AriaRole | undefined;
2220
2224
  about?: string | undefined;
@@ -2239,56 +2243,56 @@ declare const StyledTextArea: styled_components.IStyledComponent<"web", styled_c
2239
2243
  itemRef?: string | undefined;
2240
2244
  results?: number | undefined;
2241
2245
  security?: string | undefined;
2242
- unselectable?: "off" | "on" | undefined;
2246
+ unselectable?: "on" | "off" | undefined;
2243
2247
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
2244
2248
  is?: string | undefined;
2245
2249
  "aria-activedescendant"?: string | undefined;
2246
- "aria-atomic"?: (boolean | "true" | "false") | undefined;
2247
- "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
2250
+ "aria-atomic"?: (boolean | "false" | "true") | undefined;
2251
+ "aria-autocomplete"?: "list" | "none" | "both" | "inline" | undefined;
2248
2252
  "aria-braillelabel"?: string | undefined;
2249
2253
  "aria-brailleroledescription"?: string | undefined;
2250
- "aria-busy"?: (boolean | "true" | "false") | undefined;
2251
- "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
2254
+ "aria-busy"?: (boolean | "false" | "true") | undefined;
2255
+ "aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
2252
2256
  "aria-colcount"?: number | undefined;
2253
2257
  "aria-colindex"?: number | undefined;
2254
2258
  "aria-colindextext"?: string | undefined;
2255
2259
  "aria-colspan"?: number | undefined;
2256
2260
  "aria-controls"?: string | undefined;
2257
- "aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
2261
+ "aria-current"?: boolean | "time" | "step" | "page" | "false" | "true" | "location" | "date" | undefined;
2258
2262
  "aria-describedby"?: string | undefined;
2259
2263
  "aria-description"?: string | undefined;
2260
2264
  "aria-details"?: string | undefined;
2261
- "aria-disabled"?: (boolean | "true" | "false") | undefined;
2262
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
2265
+ "aria-disabled"?: (boolean | "false" | "true") | undefined;
2266
+ "aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
2263
2267
  "aria-errormessage"?: string | undefined;
2264
- "aria-expanded"?: (boolean | "true" | "false") | undefined;
2268
+ "aria-expanded"?: (boolean | "false" | "true") | undefined;
2265
2269
  "aria-flowto"?: string | undefined;
2266
- "aria-grabbed"?: (boolean | "true" | "false") | undefined;
2267
- "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
2268
- "aria-hidden"?: (boolean | "true" | "false") | undefined;
2269
- "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
2270
+ "aria-grabbed"?: (boolean | "false" | "true") | undefined;
2271
+ "aria-haspopup"?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree" | undefined;
2272
+ "aria-hidden"?: (boolean | "false" | "true") | undefined;
2273
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
2270
2274
  "aria-keyshortcuts"?: string | undefined;
2271
2275
  "aria-label"?: string | undefined;
2272
2276
  "aria-labelledby"?: string | undefined;
2273
2277
  "aria-level"?: number | undefined;
2274
2278
  "aria-live"?: "off" | "assertive" | "polite" | undefined;
2275
- "aria-modal"?: (boolean | "true" | "false") | undefined;
2276
- "aria-multiline"?: (boolean | "true" | "false") | undefined;
2277
- "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
2279
+ "aria-modal"?: (boolean | "false" | "true") | undefined;
2280
+ "aria-multiline"?: (boolean | "false" | "true") | undefined;
2281
+ "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
2278
2282
  "aria-orientation"?: "horizontal" | "vertical" | undefined;
2279
2283
  "aria-owns"?: string | undefined;
2280
2284
  "aria-placeholder"?: string | undefined;
2281
2285
  "aria-posinset"?: number | undefined;
2282
- "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
2283
- "aria-readonly"?: (boolean | "true" | "false") | undefined;
2284
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
2285
- "aria-required"?: (boolean | "true" | "false") | undefined;
2286
+ "aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
2287
+ "aria-readonly"?: (boolean | "false" | "true") | undefined;
2288
+ "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
2289
+ "aria-required"?: (boolean | "false" | "true") | undefined;
2286
2290
  "aria-roledescription"?: string | undefined;
2287
2291
  "aria-rowcount"?: number | undefined;
2288
2292
  "aria-rowindex"?: number | undefined;
2289
2293
  "aria-rowindextext"?: string | undefined;
2290
2294
  "aria-rowspan"?: number | undefined;
2291
- "aria-selected"?: (boolean | "true" | "false") | undefined;
2295
+ "aria-selected"?: (boolean | "false" | "true") | undefined;
2292
2296
  "aria-setsize"?: number | undefined;
2293
2297
  "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
2294
2298
  "aria-valuemax"?: number | undefined;
@@ -2466,7 +2470,7 @@ declare const TextArea: react.ForwardRefExoticComponent<_norges_domstoler_dds_fo
2466
2470
  type TextAreaProps = CommonInputProps & TextareaHTMLAttributes<HTMLTextAreaElement>;
2467
2471
 
2468
2472
  type SplitButtonPurpose = ExtractStrict<ButtonPurpose, 'primary' | 'secondary'>;
2469
- type SplitButtonProps = {
2473
+ interface SplitButtonProps {
2470
2474
  /**Størrelse på komponenten. */
2471
2475
  size?: ButtonSize;
2472
2476
  /**Props for primær handling. Samme props som for `<Button />` unntatt `size`, `purpose`, og `appearance`. */
@@ -2475,7 +2479,7 @@ type SplitButtonProps = {
2475
2479
  secondaryActions: OverflowMenuButtonItem[];
2476
2480
  /**Formål med knappen */
2477
2481
  purpose?: SplitButtonPurpose;
2478
- };
2482
+ }
2479
2483
  declare const SplitButton: react.ForwardRefExoticComponent<SplitButtonProps & react.RefAttributes<HTMLDivElement>>;
2480
2484
 
2481
2485
  declare const stackTokens: {
@@ -2545,7 +2549,7 @@ type MimeType = `image/${ImageMimeType | AnyMimeType}` | `video/${VideoMimeType
2545
2549
  type Accept = MimeType | FileExtensionAccept;
2546
2550
  type FileList = File[];
2547
2551
 
2548
- type FileUploaderHookProps = {
2552
+ interface FileUploaderHookProps {
2549
2553
  id: string | undefined;
2550
2554
  /**Dersom komponenten skal styres internt. Utgangspunktet for filene som har blitt lastet opp. */
2551
2555
  initialFiles: FileList | undefined;
@@ -2561,7 +2565,7 @@ type FileUploaderHookProps = {
2561
2565
  maxFiles: number | undefined;
2562
2566
  /**Feilmelding. Setter også error state. */
2563
2567
  errorMessage: string | undefined;
2564
- };
2568
+ }
2565
2569
 
2566
2570
  type FileUploaderProps = {
2567
2571
  /**Id til filopplasteren. */
@@ -2591,13 +2595,13 @@ declare namespace EmptyContent {
2591
2595
  var displayName: string;
2592
2596
  }
2593
2597
 
2594
- type BackLinkProps = {
2598
+ interface BackLinkProps {
2595
2599
  label: string;
2596
2600
  href: string;
2597
- };
2601
+ }
2598
2602
  declare const BackLink: react.ForwardRefExoticComponent<BackLinkProps & react.RefAttributes<HTMLElement>>;
2599
2603
 
2600
- type FeedbackProps = {
2604
+ interface FeedbackProps {
2601
2605
  /**Om knappene skal være plassert under eller ved siden av teksten. */
2602
2606
  layout?: Layout;
2603
2607
  /**Label som er plassert over tommel opp/ned knappene */
@@ -2630,7 +2634,7 @@ type FeedbackProps = {
2630
2634
  onFeedbackTextChange?: (feedbackText: string) => void;
2631
2635
  /**Callback når bruker sender inn feedback */
2632
2636
  onSubmit?: (rating: Rating, feedbackText: string) => void;
2633
- };
2637
+ }
2634
2638
  type Rating = 'positive' | 'negative';
2635
2639
  type Layout = 'vertical' | 'horizontal';
2636
2640