@norges-domstoler/dds-components 19.2.0 → 20.1.0

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 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, ReactElement, Ref, TdHTMLAttributes, ThHTMLAttributes } from 'react';
3
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { ComponentPropsWithRef, HTMLAttributes, Ref, PropsWithChildren, ElementType, ComponentPropsWithoutRef, ComponentProps, AnchorHTMLAttributes, LabelHTMLAttributes, RefCallback, RefObject, KeyboardEvent as KeyboardEvent$1, Dispatch, SetStateAction, SVGAttributes, JSX, ButtonHTMLAttributes, ReactNode, AriaRole, InputHTMLAttributes, ForwardedRef, ForwardRefExoticComponent, ChangeEvent, MouseEvent as MouseEvent$1, ReactElement } from 'react';
4
4
  import * as CSS from 'csstype';
5
5
  import { Property, StandardProperties } from 'csstype';
6
6
  import { Strategy, UseFloatingReturn, Placement as Placement$1 } from '@floating-ui/react-dom';
@@ -14,10 +14,14 @@ import { ddsTokens } from '@norges-domstoler/dds-design-tokens';
14
14
  declare function handleElementWithBackdropMount(container: HTMLElement): void;
15
15
  declare function handleElementWithBackdropUnmount(container: HTMLElement): void;
16
16
 
17
- declare const Backdrop: react.ForwardRefExoticComponent<{
17
+ type BackdropProps = {
18
18
  isMounted?: boolean;
19
- zIndex: "drawer" | "modal";
20
- } & Pick<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "onClick"> & react.RefAttributes<HTMLDivElement>>;
19
+ zIndex: 'drawer' | 'modal';
20
+ } & Pick<ComponentPropsWithRef<'div'>, 'children' | 'onClick' | 'ref'>;
21
+ declare const Backdrop: {
22
+ ({ isMounted, zIndex, ...props }: BackdropProps): react_jsx_runtime.JSX.Element;
23
+ displayName: string;
24
+ };
21
25
 
22
26
  interface SvgChevronProps {
23
27
  isUp?: boolean;
@@ -26,17 +30,9 @@ interface SvgChevronProps {
26
30
  }
27
31
  declare const AnimatedChevronUpDown: ({ isUp, height, width, }: SvgChevronProps) => react_jsx_runtime.JSX.Element;
28
32
 
29
- type ElementAsProps = {
30
- as: ElementType;
31
- children?: ReactNode;
32
- } & HTMLAttributes<HTMLElement>;
33
- declare const ElementAs: react.ForwardRefExoticComponent<{
34
- as: ElementType;
35
- children?: ReactNode;
36
- } & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
37
-
38
- type HiddenInputProps = InputHTMLAttributes<HTMLInputElement>;
39
- declare const HiddenInput: react.ForwardRefExoticComponent<HiddenInputProps & react.RefAttributes<HTMLInputElement>>;
33
+ type BorderColor = 'default' | 'subtle' | 'onInverse';
34
+ type BorderColorCn = 'default' | 'subtle' | 'on-inverse';
35
+ declare const getBorderCn: (color: BorderColor) => BorderColorCn;
40
36
 
41
37
  type Direction$1 = 'row' | 'column';
42
38
 
@@ -52,8 +48,9 @@ type Direction$1 = 'row' | 'column';
52
48
  * @template THTMLAttributesProps Standard `HTMLAttributes<T>` men kan overstyres for f.eks knapper hvis man trenger en annen basetype for `htmlProps`.
53
49
  */
54
50
  type BaseComponentProps<TElement extends Element, TOtherProps extends object = object, THTMLAttributesProps extends HTMLAttributes<TElement> = HTMLAttributes<TElement>> = Pick<THTMLAttributesProps, 'id' | 'className'> & TOtherProps & {
55
- /**Ekstra HTML-attributter som vil settes på elementet som genereres. Untatt `id` og `className` som settes på toppnivå. */
51
+ /**Native HTML-attributter som vil settes på elementet som genereres. Untatt `id`, `className` (og eventuelle andre attributter spesifisert i dokumentasjonen) som settes på toppnivå. */
56
52
  htmlProps?: THTMLAttributesProps;
53
+ ref?: Ref<TElement>;
57
54
  };
58
55
  /**
59
56
  * Utvidelese av {@link BaseComponentProps} med prop for `children`.
@@ -100,6 +97,9 @@ type As = ElementType;
100
97
  type PropsOf<T extends As> = ComponentPropsWithoutRef<T> & {
101
98
  as?: T;
102
99
  };
100
+ type PropsOfWithRef<T extends As> = ComponentPropsWithRef<T> & {
101
+ as?: T;
102
+ };
103
103
 
104
104
  type Size = 'xxlarge' | 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
105
105
 
@@ -121,6 +121,11 @@ type ExtractStrict<T, U extends T> = U;
121
121
  type Nullable<T> = T | null;
122
122
  type Callback<T> = (e: T) => void;
123
123
 
124
+ type PolymorphicProps<T extends As> = PropsOfWithRef<T>;
125
+ declare const ElementAs: <T extends ElementType = "div">({ as, ref, children, ...props }: PolymorphicProps<T>) => react_jsx_runtime.JSX.Element;
126
+
127
+ declare const HiddenInput: ({ className, ...rest }: ComponentPropsWithRef<"input">) => react_jsx_runtime.JSX.Element;
128
+
124
129
  declare function TextOverflowEllipsisWrapper({ className, ...rest }: ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
125
130
  declare function TextOverflowEllipsisInner({ className, ...rest }: ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
126
131
 
@@ -178,7 +183,10 @@ type TypographyProps = ({
178
183
  /**Styling basert på det typografiske utvalget definert i Figma. Returnerer default HTML tag for hver type. **OBS!** Ved bruk av `'a'` er det flere tilgjengelige props, se under. */
179
184
  typographyType?: OtherTypographyType;
180
185
  } & OtherTypographyProps);
181
- declare const Typography: react.ForwardRefExoticComponent<TypographyProps & react.RefAttributes<HTMLElement>>;
186
+ declare const Typography: {
187
+ (props: TypographyProps): react_jsx_runtime.JSX.Element;
188
+ displayName: string;
189
+ };
182
190
 
183
191
  declare const defaultTypographyType: TypographyBodyType;
184
192
  declare const defaultTypographyTypeClassName: HyphenTypographyType;
@@ -191,13 +199,10 @@ declare const isInlineElement: (as: ElementType) => as is InlineElement;
191
199
  declare function getTypographyCn(value: TypographyType): HyphenTypographyType;
192
200
 
193
201
  type CaptionProps = BaseComponentPropsWithChildren<HTMLTableCaptionElement, BaseTypographyProps>;
194
- declare const Caption: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLTableCaptionElement>, "id" | "className"> & {
195
- withMargins?: boolean;
196
- } & {
197
- children?: react.ReactNode | undefined;
198
- } & Pick<react.HTMLAttributes<HTMLElement>, "style"> & {
199
- htmlProps?: react.HTMLAttributes<HTMLTableCaptionElement> | undefined;
200
- } & react.RefAttributes<HTMLTableCaptionElement>>;
202
+ declare const Caption: {
203
+ ({ id, className, htmlProps, children, ...rest }: CaptionProps): react_jsx_runtime.JSX.Element;
204
+ displayName: string;
205
+ };
201
206
 
202
207
  type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
203
208
  type HeadingProps = BaseComponentPropsWithChildren<HTMLHeadingElement, {
@@ -206,18 +211,10 @@ type HeadingProps = BaseComponentPropsWithChildren<HTMLHeadingElement, {
206
211
  /**Spesifiserer typografistil basert på utvalget for HTML heading elementer. */
207
212
  typographyType?: TypographyHeadingType;
208
213
  } & BaseTypographyProps>;
209
- declare const Heading: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLHeadingElement>, "id" | "className"> & {
210
- /**Nivå overskriften. Komponenten returnerer HTML heading element med dette nivået med default styling. */
211
- level: HeadingLevel;
212
- /**Spesifiserer typografistil basert på utvalget for HTML heading elementer. */
213
- typographyType?: TypographyHeadingType;
214
- } & {
215
- withMargins?: boolean;
216
- } & {
217
- children?: react.ReactNode | undefined;
218
- } & Pick<react.HTMLAttributes<HTMLElement>, "style"> & {
219
- htmlProps?: react.HTMLAttributes<HTMLHeadingElement> | undefined;
220
- } & react.RefAttributes<HTMLHeadingElement>>;
214
+ declare const Heading: {
215
+ ({ id, className, htmlProps, children, typographyType, level, ...rest }: HeadingProps): react_jsx_runtime.JSX.Element;
216
+ displayName: string;
217
+ };
221
218
 
222
219
  type PickedHTMLAttributes$4 = Pick<LabelHTMLAttributes<HTMLLabelElement>, 'htmlFor'>;
223
220
  interface BaseLabelProps {
@@ -227,22 +224,16 @@ interface BaseLabelProps {
227
224
  readOnly?: boolean;
228
225
  }
229
226
  type LabelProps = BaseComponentPropsWithChildren<HTMLLabelElement, BaseLabelProps & BaseTypographyProps & PickedHTMLAttributes$4, Omit<LabelHTMLAttributes<HTMLLabelElement>, keyof PickedHTMLAttributes$4>>;
230
- declare const Label: react.ForwardRefExoticComponent<Pick<Omit<LabelHTMLAttributes<HTMLLabelElement>, "htmlFor">, "id" | "className"> & BaseLabelProps & {
231
- withMargins?: boolean;
232
- } & {
233
- children?: react.ReactNode | undefined;
234
- } & Pick<react.HTMLAttributes<HTMLElement>, "style"> & PickedHTMLAttributes$4 & {
235
- htmlProps?: Omit<LabelHTMLAttributes<HTMLLabelElement>, "htmlFor"> | undefined;
236
- } & react.RefAttributes<HTMLLabelElement>>;
227
+ declare const Label: {
228
+ ({ showRequiredStyling, readOnly, id, className, htmlProps, children, ...rest }: LabelProps): react_jsx_runtime.JSX.Element;
229
+ displayName: string;
230
+ };
237
231
 
238
232
  type LegendProps = BaseComponentPropsWithChildren<HTMLLegendElement, BaseTypographyProps>;
239
- declare const Legend: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLLegendElement>, "id" | "className"> & {
240
- withMargins?: boolean;
241
- } & {
242
- children?: react.ReactNode | undefined;
243
- } & Pick<react.HTMLAttributes<HTMLElement>, "style"> & {
244
- htmlProps?: react.HTMLAttributes<HTMLLegendElement> | undefined;
245
- } & react.RefAttributes<HTMLLegendElement>>;
233
+ declare const Legend: {
234
+ ({ id, className, htmlProps, children, ...rest }: LegendProps): react_jsx_runtime.JSX.Element;
235
+ displayName: string;
236
+ };
246
237
 
247
238
  type PickedHTMLAttributes$3 = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href' | 'target'>;
248
239
  type LinkProps = BaseComponentPropsWithChildren<HTMLAnchorElement, {
@@ -253,35 +244,19 @@ type LinkProps = BaseComponentPropsWithChildren<HTMLAnchorElement, {
253
244
  /**Spesifiserer typografistil basert på utvalget for brødtekst. Arver hvis ikke oppgitt. */
254
245
  typographyType?: TypographyBodyType;
255
246
  } & BaseTypographyProps & PickedHTMLAttributes$3, Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof PickedHTMLAttributes$3>>;
256
- declare const Link: react.ForwardRefExoticComponent<Pick<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target" | "href">, "id" | "className"> & {
257
- /**Spesifiserer om lenken fører til et eksternt nettsted eller åpnes i nytt vindu. Påvirker styling og setter `target` prop. */
258
- external?: boolean;
259
- /**Om lenken kan få `:visited`-styling. */
260
- withVisited?: boolean;
261
- /**Spesifiserer typografistil basert på utvalget for brødtekst. Arver hvis ikke oppgitt. */
262
- typographyType?: TypographyBodyType;
263
- } & {
264
- withMargins?: boolean;
265
- } & {
266
- children?: react.ReactNode | undefined;
267
- } & Pick<react.HTMLAttributes<HTMLElement>, "style"> & PickedHTMLAttributes$3 & {
268
- htmlProps?: Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target" | "href"> | undefined;
269
- } & react.RefAttributes<HTMLAnchorElement>>;
247
+ declare const Link: {
248
+ ({ id, className, htmlProps, children, typographyType, withMargins, withVisited, external, target, ...rest }: LinkProps): react_jsx_runtime.JSX.Element;
249
+ displayName: string;
250
+ };
270
251
 
271
252
  type ParagraphProps = BaseComponentPropsWithChildren<HTMLParagraphElement, {
272
253
  /**Spesifiserer typografistil basert på utvalget for brødtekst og ingress. */
273
254
  typographyType?: TypographyBodyType | TypographyLeadType;
274
255
  } & BaseTypographyProps>;
275
- declare const Paragraph: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLParagraphElement>, "id" | "className"> & {
276
- /**Spesifiserer typografistil basert utvalget for brødtekst og ingress. */
277
- typographyType?: TypographyBodyType | TypographyLeadType;
278
- } & {
279
- withMargins?: boolean;
280
- } & {
281
- children?: react.ReactNode | undefined;
282
- } & Pick<react.HTMLAttributes<HTMLElement>, "style"> & {
283
- htmlProps?: react.HTMLAttributes<HTMLParagraphElement> | undefined;
284
- } & react.RefAttributes<HTMLParagraphElement>>;
256
+ declare const Paragraph: {
257
+ ({ id, className, htmlProps, children, typographyType, ...rest }: ParagraphProps): react_jsx_runtime.JSX.Element;
258
+ displayName: string;
259
+ };
285
260
 
286
261
  interface CommonInputProps {
287
262
  /**Ledetekst. */
@@ -299,17 +274,20 @@ type InputProps = CommonInputProps & {
299
274
  * @default "medium"
300
275
  */
301
276
  componentSize?: InputSize;
302
- } & InputHTMLAttributes<HTMLInputElement>;
277
+ } & ComponentPropsWithRef<'input'>;
303
278
  type StatefulInputProps = {
304
279
  hasErrorMessage: boolean;
305
- } & Pick<InputProps, 'componentSize'> & InputHTMLAttributes<HTMLInputElement>;
280
+ } & Omit<InputProps, keyof CommonInputProps>;
306
281
  type InputTypographyTypes = Record<InputSize, StaticTypographyType>;
307
282
 
308
- declare const inputTypographyTypes: InputTypographyTypes;
309
- declare const Input: react.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;
310
- declare const StatefulInput: react.ForwardRefExoticComponent<{
311
- hasErrorMessage: boolean;
312
- } & Pick<InputProps, "componentSize"> & InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;
283
+ declare const Input: {
284
+ ({ className, ...rest }: ComponentPropsWithRef<"input">): react_jsx_runtime.JSX.Element;
285
+ displayName: string;
286
+ };
287
+ declare const StatefulInput: {
288
+ ({ className, componentSize, hasErrorMessage, ...rest }: StatefulInputProps): react_jsx_runtime.JSX.Element;
289
+ displayName: string;
290
+ };
313
291
 
314
292
  type Props = BaseComponentProps<HTMLElement, {
315
293
  current: number;
@@ -321,23 +299,23 @@ declare const renderCharCounter: (id: string, isShown: boolean, textLength: numb
321
299
  declare function getDefaultText(value?: string | number | ReadonlyArray<string>, defaultValue?: string | number | ReadonlyArray<string>): string;
322
300
 
323
301
  type Elevation = 1 | 2 | 3 | 4;
324
- type Border = 'default' | 'subtle' | 'onInverse';
302
+ type Border = BorderColor;
325
303
  type PaperProps = {
326
304
  elevation?: Elevation;
327
305
  border?: Border;
328
- } & ComponentProps<'div'>;
329
- declare const Paper: react.ForwardRefExoticComponent<Omit<PaperProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
306
+ } & ComponentPropsWithRef<'div'>;
307
+ declare const Paper: ({ elevation, border, className, ...rest }: PaperProps) => react_jsx_runtime.JSX.Element;
330
308
 
331
309
  /**
332
310
  * Kombinerer refs for et element.
333
311
  * Eksempel på bruk:
334
312
  * ```
335
- * const MyComponent = forwardRef<HTMLDivElement, Props>((props, ref) => {
313
+ * const MyComponent = ({ref, ...props}) => {
336
314
  *
337
315
  * const itemRef = useRef<HTMLDivElement>(null);
338
316
  * const combinedRef = useCombinedRef(ref, itemRef);
339
317
  *
340
- * return <div ref={combinedRef}>innhold</div>
318
+ * return <div ref={combinedRef} {...props}>innhold</div>
341
319
  * });
342
320
  * ```
343
321
  * @param refs array med refs.
@@ -346,7 +324,7 @@ declare const Paper: react.ForwardRefExoticComponent<Omit<PaperProps, "ref"> & r
346
324
  *
347
325
  * {@link useCombinedRef}
348
326
  */
349
- declare function useCombinedRef<T>(...refs: Array<React.Ref<T> | undefined>): RefCallback<T>;
327
+ declare function useCombinedRef<T>(...refs: Array<Ref<T> | undefined>): RefCallback<T>;
350
328
 
351
329
  type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
352
330
  interface UseFloatPositionOptions {
@@ -404,7 +382,7 @@ declare const useFloatPosition: (arrowRef: HTMLElement | null, options?: UseFloa
404
382
  * @param initialFocusRef Ref som skal motta focus når focus trap er aktiv.
405
383
  * @returns ref til elementet som fanger fokus.
406
384
  */
407
- declare function useFocusTrap<T extends HTMLElement>(active: boolean, initialFocusRef?: RefObject<HTMLElement> | undefined): RefObject<T>;
385
+ declare function useFocusTrap<T extends HTMLElement>(active: boolean, initialFocusRef?: RefObject<HTMLElement | null> | undefined): RefObject<T | null>;
408
386
 
409
387
  declare const useIsMounted: () => () => boolean;
410
388
 
@@ -455,7 +433,7 @@ declare const useMountTransition: (isMounted: boolean, unmountDelay: number) =>
455
433
  * @param element HTML elementet man klikker utenfor.
456
434
  * @param handler funksjonen som kjøres ved klikk utenfor.
457
435
  */
458
- declare function useOnClickOutside(element: HTMLElement | null | Array<HTMLElement | null | undefined>, handler: (event: MouseEvent | TouchEvent) => void): void;
436
+ declare function useOnClickOutside(element: HTMLElement | null | undefined | Array<HTMLElement | null | undefined>, handler: (event: MouseEvent | TouchEvent) => void): void;
459
437
 
460
438
  /**
461
439
  * Kjører logikk når en spesifisert tast blir trykt ned.
@@ -501,7 +479,7 @@ declare const useOnKeyDown: (key: string | Array<string>, handler: (event: Keybo
501
479
  * @param onBlur ekstra logikk når fokus forlater container.
502
480
  * @returns ref til container som får fokus.
503
481
  */
504
- declare function useReturnFocusOnBlur<T extends HTMLElement>(active: boolean, onBlur: () => void, triggerElement?: HTMLElement | null): RefObject<T>;
482
+ declare function useReturnFocusOnBlur<T extends HTMLElement>(active: boolean, onBlur: () => void, triggerElement?: HTMLElement | null): RefObject<T | null>;
505
483
 
506
484
  declare const isKeyboardEvent: (e: Event | KeyboardEvent$1<Element>) => e is KeyboardEvent$1<Element>;
507
485
  /**
@@ -558,6 +536,9 @@ type BreakpointBasedProps<T extends keyof StandardProperties> = {
558
536
  [k in ScreenSizeLiteral]?: StandardProperties[T];
559
537
  };
560
538
 
539
+ type StylelessListProps<TProps extends object = object> = TProps & ComponentPropsWithRef<'ul'>;
540
+ declare const StylelessList: ({ className, ...rest }: StylelessListProps) => react_jsx_runtime.JSX.Element;
541
+
561
542
  /**
562
543
  * Styling utils i TS (CSS-in-JS)
563
544
  */
@@ -1124,16 +1105,10 @@ type AccordionProps = BaseComponentPropsWithChildren<HTMLDivElement, {
1124
1105
  /**For å lytte til endringer i expanded-state. */
1125
1106
  onChange?: (expanded: boolean) => void;
1126
1107
  }>;
1127
- declare const Accordion: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
1128
- /**Spesifiserer om body skal være utvidet ved innlastning. */
1129
- isExpanded?: boolean;
1130
- /**For å lytte til endringer i expanded-state. */
1131
- onChange?: (expanded: boolean) => void;
1132
- } & {
1133
- children?: react.ReactNode | undefined;
1134
- } & {
1135
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
1136
- } & react.RefAttributes<HTMLDivElement>>;
1108
+ declare const Accordion: {
1109
+ ({ isExpanded, onChange, id, children, className, htmlProps, ...rest }: AccordionProps): react_jsx_runtime.JSX.Element;
1110
+ displayName: string;
1111
+ };
1137
1112
 
1138
1113
  type AccordionHeaderProps = Omit<BaseComponentPropsWithChildren<HTMLButtonElement, {
1139
1114
  /**Overskriver default teksttype. */
@@ -1141,26 +1116,34 @@ type AccordionHeaderProps = Omit<BaseComponentPropsWithChildren<HTMLButtonElemen
1141
1116
  /**Angir om teksten skal være i "bold"-format. */
1142
1117
  bold?: boolean;
1143
1118
  }, ButtonHTMLAttributes<HTMLButtonElement>>, 'id'>;
1144
- declare const AccordionHeader: react.ForwardRefExoticComponent<AccordionHeaderProps & react.RefAttributes<HTMLButtonElement>>;
1119
+ declare const AccordionHeader: {
1120
+ ({ children, className, htmlProps, typographyType, bold, ...rest }: AccordionHeaderProps): react_jsx_runtime.JSX.Element;
1121
+ displayName: string;
1122
+ };
1145
1123
 
1146
1124
  type AccordionBodyProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement>, 'id'>;
1147
- declare const AccordionBody: react.ForwardRefExoticComponent<AccordionBodyProps & react.RefAttributes<HTMLDivElement>>;
1125
+ declare const AccordionBody: {
1126
+ ({ children, className, htmlProps, ...rest }: AccordionBodyProps): react_jsx_runtime.JSX.Element;
1127
+ displayName: string;
1128
+ };
1148
1129
 
1149
1130
  type BackLinkProps = {
1150
1131
  /**
1151
1132
  * Ledetekst.
1152
1133
  */
1153
1134
  label: string;
1154
- } & Pick<ComponentProps<'a'>, 'onClick' | 'href'>;
1155
- declare const BackLink: react.ForwardRefExoticComponent<{
1156
- /**
1157
- * Ledetekst.
1158
- */
1159
- label: string;
1160
- } & Pick<react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "onClick" | "href"> & react.RefAttributes<HTMLElement>>;
1135
+ } & Pick<ComponentPropsWithRef<'a'>, 'onClick' | 'href' | 'ref'>;
1136
+ declare const BackLink: {
1137
+ ({ label, ref, ...rest }: BackLinkProps): react_jsx_runtime.JSX.Element;
1138
+ displayName: string;
1139
+ };
1161
1140
 
1162
- type BreadcrumbProps = HTMLAttributes<HTMLSpanElement> | AnchorHTMLAttributes<HTMLAnchorElement>;
1163
- declare const Breadcrumb: react.ForwardRefExoticComponent<BreadcrumbProps & react.RefAttributes<HTMLElement>>;
1141
+ type BreadcrumbProps = ComponentPropsWithRef<'a'> | ComponentPropsWithRef<'span'>;
1142
+ declare const isAnchorTypographyProps: (props: BreadcrumbProps) => props is ComponentPropsWithRef<"a">;
1143
+ declare const Breadcrumb: {
1144
+ ({ children, ref, ...rest }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
1145
+ displayName: string;
1146
+ };
1164
1147
 
1165
1148
  type BreadcrumbsProps = BaseComponentPropsWithChildren<HTMLElement, {
1166
1149
  /**
@@ -1169,35 +1152,10 @@ type BreadcrumbsProps = BaseComponentPropsWithChildren<HTMLElement, {
1169
1152
  */
1170
1153
  smallScreenBreakpoint?: ScreenSizeLiteral;
1171
1154
  }>;
1172
- declare const Breadcrumbs: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLElement>, "id" | "className"> & {
1173
- /**
1174
- * Spesifiserer ved hvilket brekkpunkt og nedover versjonen for små skjermer skal vises.
1175
- * Trunkerer barn unntatt første og siste; trunkerte barn er tilgjengelige ved å trykke på trunkeringsknappen.
1176
- */
1177
- smallScreenBreakpoint?: ScreenSizeLiteral;
1178
- } & {
1179
- children?: react.ReactNode | undefined;
1180
- } & {
1181
- htmlProps?: react.HTMLAttributes<HTMLElement> | undefined;
1182
- } & react.RefAttributes<HTMLElement>>;
1183
-
1184
- type IconSize = 'small' | 'medium' | 'large' | 'inherit';
1185
- type IconProps = BaseComponentProps<SVGSVGElement, {
1186
- /**Ikonet importert fra `@norges-domstoler/dds-components`. */
1187
- icon: SvgIcon;
1188
- /**Størrelsen på ikonet.
1189
- * @default "medium"
1190
- */
1191
- iconSize?: IconSize;
1192
- /**Fargen på ikonet.
1193
- * @default "currentcolor"
1194
- */
1195
- color?: TextColor;
1196
- }>;
1197
- declare function Icon(props: IconProps): JSX.Element;
1198
- declare namespace Icon {
1199
- var displayName: string;
1200
- }
1155
+ declare const Breadcrumbs: {
1156
+ ({ children, smallScreenBreakpoint, id, className, htmlProps, ...rest }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
1157
+ displayName: string;
1158
+ };
1201
1159
 
1202
1160
  type ButtonPurpose = 'primary' | 'secondary' | 'danger' | 'tertiary';
1203
1161
  type ButtonSize = Extract<Size, 'xsmall' | 'small' | 'medium' | 'large'>;
@@ -1234,25 +1192,10 @@ type ButtonProps = BaseComponentProps<HTMLButtonElement, {
1234
1192
  target?: string;
1235
1193
  } & PickedHTMLAttributes$2, Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof PickedHTMLAttributes$2>>;
1236
1194
 
1237
- declare const Button: react.ForwardRefExoticComponent<Pick<Omit<react.ButtonHTMLAttributes<HTMLButtonElement>, "onFocus" | "onBlur" | "onClick" | "type">, "id" | "className"> & {
1238
- size?: ButtonSize;
1239
- children?: react.ReactNode;
1240
- purpose?: ButtonPurpose;
1241
- iconPosition?: IconPosition;
1242
- loading?: boolean;
1243
- loadingTooltip?: string;
1244
- icon?: SvgIcon;
1245
- fullWidth?: boolean;
1246
- href?: string;
1247
- target?: string;
1248
- } & {
1249
- onFocus?: FocusEventHandler<HTMLButtonElement> | undefined;
1250
- onBlur?: FocusEventHandler<HTMLButtonElement> | undefined;
1251
- onClick?: MouseEventHandler<HTMLButtonElement> | undefined;
1252
- type?: "submit" | "reset" | "button" | undefined | undefined;
1253
- } & {
1254
- htmlProps?: Omit<react.ButtonHTMLAttributes<HTMLButtonElement>, "onFocus" | "onBlur" | "onClick" | "type"> | undefined;
1255
- } & react.RefAttributes<HTMLButtonElement>>;
1195
+ declare const Button: {
1196
+ ({ children, purpose, size, iconPosition, href, target, loading, loadingTooltip, fullWidth, icon, onClick, onFocus, onBlur, id, ref, className, htmlProps, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element | undefined;
1197
+ displayName: string;
1198
+ };
1256
1199
 
1257
1200
  type PickedHTMLAttributes$1 = Pick<HTMLAttributes<HTMLDivElement>, 'role' | 'aria-label' | 'aria-labelledby'>;
1258
1201
  type ButtonGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
@@ -1273,28 +1216,10 @@ type ButtonGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
1273
1216
  */
1274
1217
  role?: AriaRole;
1275
1218
  } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof PickedHTMLAttributes$1>>;
1276
- declare const ButtonGroup: react.ForwardRefExoticComponent<Pick<HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
1277
- /**Retning for gruppen.
1278
- * @default "row"
1279
- */
1280
- direction?: Direction$1;
1281
- /**Størrelse på knappene.
1282
- * @default "medium"
1283
- */
1284
- buttonSize?: ButtonSize;
1285
- /**Nativ `aria-label` ved behov. */
1286
- 'aria-label'?: string;
1287
- /**Nativ `aria-labelledby` ved behov. */
1288
- 'aria-labelledby'?: string;
1289
- /**Nativ `role` ved behov.
1290
- * @default "group"
1291
- */
1292
- role?: AriaRole;
1293
- } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "role" | "aria-label" | "aria-labelledby"> & {
1294
- children?: react.ReactNode | undefined;
1295
- } & {
1296
- htmlProps?: HTMLAttributes<HTMLDivElement> | undefined;
1297
- } & react.RefAttributes<HTMLDivElement>>;
1219
+ declare const ButtonGroup: {
1220
+ ({ children, id, className, htmlProps, direction, buttonSize, role, ...rest }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
1221
+ displayName: string;
1222
+ };
1298
1223
 
1299
1224
  type CardAppearance = 'filled' | 'border';
1300
1225
  type CardType = 'info' | 'navigation' | 'expandable';
@@ -1304,10 +1229,10 @@ type BaseCardProps<T extends HTMLElement> = BaseComponentPropsWithChildren<T, {
1304
1229
  */
1305
1230
  appearance?: CardAppearance;
1306
1231
  /** Referanse til komponenten. */
1307
- cardRef?: RefObject<T>;
1232
+ cardRef?: RefObject<T | null>;
1308
1233
  }>;
1309
1234
  type InfoCardProps = BaseCardProps<HTMLDivElement> & {
1310
- /** Spesifiserer funksjonalitet og formål med komponenten. **OBS!** ved `'navigation'` må `href` oppgis. Ved `'expandable'` må alle `<Card />` grupperte sammen ligge egen `<div>` container. */
1235
+ /** Spesifiserer funksjonalitet og formål med komponenten. **OBS!** ved `'navigation'` må `href` oppgis. */
1311
1236
  cardType: 'info';
1312
1237
  };
1313
1238
  type NavigationCardProps = BaseCardProps<HTMLAnchorElement> & {
@@ -1328,16 +1253,10 @@ type CardExpandableProps = BaseComponentPropsWithChildren<HTMLDivElement, {
1328
1253
  /**For å lytte til endringer i expanded-state. */
1329
1254
  onChange?: (expanded: boolean) => void;
1330
1255
  }>;
1331
- declare const CardExpandable: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
1332
- /**Spesifiserer om body skal være utvidet ved innlastning. */
1333
- isExpanded?: boolean;
1334
- /**For å lytte til endringer i expanded-state. */
1335
- onChange?: (expanded: boolean) => void;
1336
- } & {
1337
- children?: react.ReactNode | undefined;
1338
- } & {
1339
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
1340
- } & react.RefAttributes<HTMLDivElement>>;
1256
+ declare const CardExpandable: {
1257
+ ({ isExpanded, onChange, id, children, className, htmlProps, ...rest }: CardExpandableProps): react_jsx_runtime.JSX.Element;
1258
+ displayName: string;
1259
+ };
1341
1260
 
1342
1261
  type CardExpandableHeaderProps = Omit<BaseComponentPropsWithChildren<HTMLButtonElement, {
1343
1262
  /**Overskriver default padding. */
@@ -1347,13 +1266,19 @@ type CardExpandableHeaderProps = Omit<BaseComponentPropsWithChildren<HTMLButtonE
1347
1266
  /**Angir om teksten skal være i "bold"-format. */
1348
1267
  bold?: boolean;
1349
1268
  }, ButtonHTMLAttributes<HTMLButtonElement>>, 'id'>;
1350
- declare const CardExpandableHeader: react.ForwardRefExoticComponent<CardExpandableHeaderProps & react.RefAttributes<HTMLButtonElement>>;
1269
+ declare const CardExpandableHeader: {
1270
+ ({ children, className, htmlProps, padding, typographyType, bold, ...rest }: CardExpandableHeaderProps): react_jsx_runtime.JSX.Element;
1271
+ displayName: string;
1272
+ };
1351
1273
 
1352
1274
  type CardExpandableBodyProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement, {
1353
1275
  /**Overskriver default padding. */
1354
1276
  padding?: Property.Padding<string>;
1355
1277
  }>, 'id'>;
1356
- declare const CardExpandableBody: react.ForwardRefExoticComponent<CardExpandableBodyProps & react.RefAttributes<HTMLDivElement>>;
1278
+ declare const CardExpandableBody: {
1279
+ ({ children, className, htmlProps, padding, ...rest }: CardExpandableBodyProps): react_jsx_runtime.JSX.Element;
1280
+ displayName: string;
1281
+ };
1357
1282
 
1358
1283
  type ChipProps = BaseComponentProps<HTMLDivElement, {
1359
1284
  /** Teksten som vises i komponenten. */
@@ -1361,30 +1286,19 @@ type ChipProps = BaseComponentProps<HTMLDivElement, {
1361
1286
  /** Ekstra logikk når `<Chip />` lukkes. */
1362
1287
  onClose?: () => void;
1363
1288
  }>;
1364
- declare const Chip: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
1365
- /** Teksten som vises i komponenten. */
1366
- text?: string;
1367
- /** Ekstra logikk når `<Chip />` lukkes. */
1368
- onClose?: () => void;
1369
- } & {
1370
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
1371
- } & react.RefAttributes<HTMLDivElement>>;
1372
-
1373
- type ChipGroupProps = HTMLAttributes<HTMLUListElement>;
1374
- declare const ChipGroup: react.ForwardRefExoticComponent<ChipGroupProps & react.RefAttributes<HTMLUListElement>>;
1289
+ declare const Chip: {
1290
+ ({ text, onClose, id, className, htmlProps, ...rest }: ChipProps): react_jsx_runtime.JSX.Element | null;
1291
+ displayName: string;
1292
+ };
1375
1293
 
1376
- type ContrastProps = HTMLAttributes<HTMLElement> & {
1377
- /** HTML-element som returneres.
1378
- * @default "div"
1379
- */
1380
- as?: ElementType;
1294
+ type ChipGroupProps = ComponentPropsWithRef<'ul'>;
1295
+ declare const ChipGroup: {
1296
+ ({ children, className, ...rest }: ChipGroupProps): react_jsx_runtime.JSX.Element;
1297
+ displayName: string;
1381
1298
  };
1382
- declare const Contrast: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
1383
- /** HTML-element som returneres.
1384
- * @default "div"
1385
- */
1386
- as?: ElementType;
1387
- } & react.RefAttributes<HTMLElement>>;
1299
+
1300
+ type ContrastProps<T extends React.ElementType> = PolymorphicProps<T>;
1301
+ declare const Contrast: <T extends React.ElementType>({ className, as, ...rest }: ContrastProps<T>) => react_jsx_runtime.JSX.Element;
1388
1302
 
1389
1303
  type CalendarProps<T extends DateValue> = AriaCalendarProps<T>;
1390
1304
  declare function Calendar<T extends DateValue>(props: CalendarProps<T>): react_jsx_runtime.JSX.Element;
@@ -1396,9 +1310,12 @@ type DateFieldProps<T extends DateValue$1 = CalendarDate> = AriaDateFieldOptions
1396
1310
  buttonProps?: ReturnType<typeof useDatePicker>['buttonProps'];
1397
1311
  buttonOnClick?: () => void;
1398
1312
  groupProps?: ReturnType<typeof useDatePicker>['groupProps'];
1399
- } & Pick<InputProps, 'componentSize' | 'errorMessage' | 'tip' | 'disabled' | 'style' | 'width' | 'className'>;
1313
+ } & Pick<InputProps, 'componentSize' | 'errorMessage' | 'tip' | 'disabled' | 'style' | 'width' | 'className'> & {
1314
+ ref?: Ref<HTMLDivElement>;
1315
+ };
1400
1316
 
1401
1317
  interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'granularity'>, Pick<DateFieldProps<CalendarDate>, 'componentSize' | 'tip' | 'style'> {
1318
+ ref?: Ref<HTMLElement>;
1402
1319
  /**
1403
1320
  * Ledetekst.
1404
1321
  */
@@ -1420,10 +1337,18 @@ interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'granu
1420
1337
  */
1421
1338
  smallScreenBreakpoint?: ScreenSizeLiteral;
1422
1339
  }
1423
- declare const DatePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<HTMLElement>>;
1340
+ declare function DatePicker({ errorMessage, componentSize, tip, style, width, smallScreenBreakpoint, showWeekNumbers, ref, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
1341
+ declare namespace DatePicker {
1342
+ var displayName: string;
1343
+ }
1424
1344
 
1425
- type TimePickerProps = Omit<AriaTimeFieldProps<Time>, 'hideTimeZone'> & Pick<InputProps, 'componentSize' | 'errorMessage' | 'tip' | 'style' | 'width' | 'className'>;
1426
- declare const TimePicker: react.ForwardRefExoticComponent<Omit<AriaTimeFieldProps<Time>, "hideTimeZone"> & Pick<InputProps, "className" | "style" | "width" | "componentSize" | "tip" | "errorMessage"> & react.RefAttributes<HTMLDivElement>>;
1345
+ type TimePickerProps = Omit<AriaTimeFieldProps<Time>, 'hideTimeZone'> & Pick<InputProps, 'componentSize' | 'errorMessage' | 'tip' | 'style' | 'width' | 'className'> & {
1346
+ ref?: Ref<HTMLDivElement>;
1347
+ };
1348
+ declare function TimePicker({ componentSize, width, ref, ...props }: TimePickerProps): react_jsx_runtime.JSX.Element;
1349
+ declare namespace TimePicker {
1350
+ var displayName: string;
1351
+ }
1427
1352
 
1428
1353
  declare function nativeDateToDateValue(date: Date, timeZone?: string | undefined): DateValue$1;
1429
1354
  declare function dateValueToNativeDate(date: DateValue$1, timeZone?: string | undefined): Date;
@@ -1440,34 +1365,25 @@ type DescriptionListProps = BaseComponentPropsWithChildren<HTMLDListElement, {
1440
1365
  */
1441
1366
  direction?: Direction$1;
1442
1367
  }>;
1443
- declare const DescriptionList: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDListElement>, "id" | "className"> & {
1444
- /**Påvirker tekst styling. */
1445
- appearance?: DescriptionListAppearance;
1446
- /**Setter flex-direction. NB! Fungerer kun ved bruk av `DescriptionListGroup` som barn av `DescriptionList`.
1447
- * @default "column"
1448
- */
1449
- direction?: Direction$1;
1450
- } & {
1451
- children?: react.ReactNode | undefined;
1452
- } & {
1453
- htmlProps?: react.HTMLAttributes<HTMLDListElement> | undefined;
1454
- } & react.RefAttributes<HTMLDListElement>>;
1368
+ declare const DescriptionList: {
1369
+ ({ appearance, direction, children, id, className, htmlProps, ...rest }: DescriptionListProps): react_jsx_runtime.JSX.Element;
1370
+ displayName: string;
1371
+ };
1455
1372
 
1456
- type DescriptionListTermProps = HTMLAttributes<HTMLElement>;
1457
- declare const DescriptionListTerm: react.ForwardRefExoticComponent<DescriptionListTermProps & react.RefAttributes<HTMLElement>>;
1373
+ type DescriptionListTermProps = ComponentPropsWithRef<'dt'>;
1374
+ declare const DescriptionListTerm: {
1375
+ (props: DescriptionListTermProps): react_jsx_runtime.JSX.Element;
1376
+ displayName: string;
1377
+ };
1458
1378
 
1459
1379
  type DescriptionListDescProps = BaseComponentPropsWithChildren<HTMLElement, {
1460
1380
  /**Ikon som vises ved siden av teksten. */
1461
1381
  icon?: SvgIcon;
1462
1382
  }>;
1463
- declare const DescriptionListDesc: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLElement>, "id" | "className"> & {
1464
- /**Ikon som vises ved siden av teksten. */
1465
- icon?: SvgIcon;
1466
- } & {
1467
- children?: react.ReactNode | undefined;
1468
- } & {
1469
- htmlProps?: react.HTMLAttributes<HTMLElement> | undefined;
1470
- } & react.RefAttributes<HTMLElement>>;
1383
+ declare const DescriptionListDesc: {
1384
+ ({ children, icon, id, className, htmlProps, ...rest }: DescriptionListDescProps): react_jsx_runtime.JSX.Element;
1385
+ displayName: string;
1386
+ };
1471
1387
 
1472
1388
  type DescriptionListGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
1473
1389
  /**Custom margin. */
@@ -1477,18 +1393,10 @@ type DescriptionListGroupProps = BaseComponentPropsWithChildren<HTMLDivElement,
1477
1393
  /**Custom max-width. */
1478
1394
  maxWidth?: Property.MaxWidth<string>;
1479
1395
  }>;
1480
- declare const DescriptionListGroup: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
1481
- /**Custom margin. */
1482
- margin?: Property.Margin<string>;
1483
- /**Custom min-width. */
1484
- minWidth?: Property.MinWidth<string>;
1485
- /**Custom max-width. */
1486
- maxWidth?: Property.MaxWidth<string>;
1487
- } & {
1488
- children?: react.ReactNode | undefined;
1489
- } & {
1490
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
1491
- } & react.RefAttributes<HTMLDivElement>>;
1396
+ declare const DescriptionListGroup: {
1397
+ ({ children, margin, minWidth, maxWidth, id, className, htmlProps, ...rest }: DescriptionListGroupProps): react_jsx_runtime.JSX.Element;
1398
+ displayName: string;
1399
+ };
1492
1400
 
1493
1401
  type DetailListSize = Extract<Size, 'large' | 'medium' | 'small'>;
1494
1402
  type DetailListProps = BaseComponentPropsWithChildren<HTMLDListElement, {
@@ -1508,42 +1416,28 @@ type DetailListProps = BaseComponentPropsWithChildren<HTMLDListElement, {
1508
1416
  */
1509
1417
  striped?: boolean;
1510
1418
  }>;
1511
- declare const DetailList: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDListElement>, "id" | "className"> & {
1512
- /**
1513
- * Størrelse på tabellen. Påvirker tetthet i cellene og font.
1514
- * @default "medium"
1515
- */
1516
- size?: DetailListSize;
1517
- /**
1518
- * Om rader skal ha skillelinje.
1519
- * @default true
1520
- */
1521
- withDividers?: boolean;
1522
- /**
1523
- * Om rader skal ha sebrastriper.
1524
- * @default true
1525
- */
1526
- striped?: boolean;
1527
- } & {
1528
- children?: react.ReactNode | undefined;
1529
- } & {
1530
- htmlProps?: react.HTMLAttributes<HTMLDListElement> | undefined;
1531
- } & react.RefAttributes<HTMLDListElement>>;
1419
+ declare const DetailList: {
1420
+ ({ id, className, htmlProps, withDividers, striped, size, ...rest }: DetailListProps): react_jsx_runtime.JSX.Element;
1421
+ displayName: string;
1422
+ };
1532
1423
 
1533
1424
  type DetailListDescProps = ComponentPropsWithRef<'dd'>;
1534
- declare const DetailListDesc: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
1535
- ref?: ((instance: HTMLElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLElement> | null | undefined;
1536
- }, "ref"> & react.RefAttributes<HTMLElement>>;
1425
+ declare const DetailListDesc: {
1426
+ ({ className, ...rest }: DetailListDescProps): react_jsx_runtime.JSX.Element;
1427
+ displayName: string;
1428
+ };
1537
1429
 
1538
1430
  type DetailListRowProps = ComponentPropsWithRef<'div'>;
1539
- declare const DetailListRow: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1540
- ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
1541
- }, "ref"> & react.RefAttributes<HTMLDivElement>>;
1431
+ declare const DetailListRow: {
1432
+ ({ className, ...rest }: DetailListRowProps): react_jsx_runtime.JSX.Element;
1433
+ displayName: string;
1434
+ };
1542
1435
 
1543
1436
  type DetailListTermProps = ComponentPropsWithRef<'dt'>;
1544
- declare const DetailListTerm: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
1545
- ref?: ((instance: HTMLElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLElement> | null | undefined;
1546
- }, "ref"> & react.RefAttributes<HTMLElement>>;
1437
+ declare const DetailListTerm: {
1438
+ ({ className, ...rest }: DetailListTermProps): react_jsx_runtime.JSX.Element;
1439
+ displayName: string;
1440
+ };
1547
1441
 
1548
1442
  type DividerColor = 'default' | 'subtle' | 'onInverse';
1549
1443
  type DividerProps = BaseComponentProps<HTMLHRElement, {
@@ -1552,14 +1446,7 @@ type DividerProps = BaseComponentProps<HTMLHRElement, {
1552
1446
  */
1553
1447
  color?: DividerColor;
1554
1448
  }>;
1555
- declare const Divider: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLHRElement>, "id" | "className"> & {
1556
- /** Farge på horisontal linje.
1557
- * @default "default"
1558
- */
1559
- color?: DividerColor;
1560
- } & {
1561
- htmlProps?: react.HTMLAttributes<HTMLHRElement> | undefined;
1562
- } & react.RefAttributes<HTMLHRElement>>;
1449
+ declare const Divider: ({ color, id, className, htmlProps, ...rest }: DividerProps) => react_jsx_runtime.JSX.Element;
1563
1450
 
1564
1451
  type DrawerSize = Extract<Size, 'small' | 'medium' | 'large'>;
1565
1452
  type DrawerPlacement = 'left' | 'right';
@@ -1591,7 +1478,10 @@ type DrawerProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement, {
1591
1478
  */
1592
1479
  withBackdrop?: boolean;
1593
1480
  }>, 'id'>;
1594
- declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & react.RefAttributes<HTMLDivElement>>;
1481
+ declare const Drawer: {
1482
+ ({ children, header, placement, parentElement, size, className, htmlProps, widthProps, withBackdrop, ref, ...rest }: DrawerProps): react.ReactPortal | null;
1483
+ displayName: string;
1484
+ };
1595
1485
 
1596
1486
  interface DrawerGroupProps {
1597
1487
  /**Barna til komponenten: trigger-element og `<Drawer>`. */
@@ -1656,7 +1546,10 @@ interface FavStarProps extends BaseComponentPropsWithChildren<HTMLElement> {
1656
1546
  */
1657
1547
  size?: ComponentSize;
1658
1548
  }
1659
- declare const FavStar: react.ForwardRefExoticComponent<FavStarProps & react.RefAttributes<HTMLInputElement>>;
1549
+ declare const FavStar: {
1550
+ ({ id, className, onChange, checked: checkedProp, defaultChecked, size, htmlProps, ...rest }: FavStarProps): react_jsx_runtime.JSX.Element;
1551
+ displayName: string;
1552
+ };
1660
1553
 
1661
1554
  interface FeedbackProps {
1662
1555
  /**Om knappene skal være plassert under eller ved siden av teksten. */
@@ -1728,14 +1621,7 @@ type FieldsetProps = BaseComponentPropsWithChildren<HTMLFieldSetElement, {
1728
1621
  /** Om alle inputfelt skal bli `disabled`. */
1729
1622
  disabled?: boolean;
1730
1623
  }>;
1731
- declare const Fieldset: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLFieldSetElement>, "id" | "className"> & {
1732
- /** Om alle inputfelt skal bli `disabled`. */
1733
- disabled?: boolean;
1734
- } & {
1735
- children?: react.ReactNode | undefined;
1736
- } & {
1737
- htmlProps?: react.HTMLAttributes<HTMLFieldSetElement> | undefined;
1738
- } & react.RefAttributes<HTMLFieldSetElement>>;
1624
+ declare const Fieldset: ({ id, className, htmlProps, ...rest }: FieldsetProps) => react_jsx_runtime.JSX.Element;
1739
1625
 
1740
1626
  type FileExtensionAccept = `.${string}`;
1741
1627
  type AnyMimeType = '*';
@@ -1771,11 +1657,11 @@ type FileUploaderProps = {
1771
1657
  /**Ledetekst for filopplaster. */
1772
1658
  label?: string;
1773
1659
  /**Ledetekst for slippsonen. Denne teksten skal, av UU-hensyn, henge sammen med den usynlige teksten: "velg fil med påfølgende knapp"
1774
- * @default "Dra og slipp filer her eller"
1660
+ * @default Dra og slipp filer her eller
1775
1661
  */
1776
1662
  dropAreaLabel?: string;
1777
1663
  /**Ledetekst for opplastingsknappen.
1778
- * @default "Velg fil"
1664
+ * @default Velg fil
1779
1665
  */
1780
1666
  btnLabel?: string;
1781
1667
  /**Hjelpetekst. */
@@ -1792,39 +1678,57 @@ type FileUploaderProps = {
1792
1678
  withDragAndDrop?: boolean;
1793
1679
  /**Om listen med opplastede filer skal skjules. Brukes kun hvis listen blir vist på egen måte. */
1794
1680
  hideFileList?: boolean;
1795
- } & Partial<FileUploaderHookProps> & Omit<ComponentProps<'div'>, 'onChange' | 'id'>;
1681
+ } & Partial<FileUploaderHookProps> & Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'id'>;
1796
1682
  declare const FileUploader: {
1797
1683
  (props: FileUploaderProps): react_jsx_runtime.JSX.Element;
1798
1684
  displayName: string;
1799
1685
  };
1800
1686
 
1801
- type FooterProps = ComponentProps<'footer'>;
1802
- declare const Footer: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & react.RefAttributes<HTMLElement>>;
1687
+ type FooterProps = ComponentPropsWithRef<'footer'>;
1688
+ declare const Footer: ({ className, ...rest }: FooterProps) => react_jsx_runtime.JSX.Element;
1803
1689
 
1804
1690
  type FooterListHeaderProps = Omit<HeadingProps, 'level' | 'withMargins'>;
1805
- declare const FooterListHeader: react.ForwardRefExoticComponent<FooterListHeaderProps & react.RefAttributes<HTMLHeadingElement>>;
1691
+ declare const FooterListHeader: (props: FooterListHeaderProps) => react_jsx_runtime.JSX.Element;
1806
1692
 
1807
1693
  type HideBreakpoint = 'xs' | 'sm' | 'md';
1808
- type FooterLogoProps = ComponentProps<'img'> & {
1694
+ type FooterLogoProps = ComponentPropsWithRef<'img'> & {
1809
1695
  /**Brekkepunkt når logoen skal skjules på mindre skjerm. */
1810
1696
  hideBreakpoint?: HideBreakpoint;
1811
1697
  };
1812
- declare const FooterLogo: react.ForwardRefExoticComponent<Omit<FooterLogoProps, "ref"> & react.RefAttributes<HTMLImageElement>>;
1698
+ declare const FooterLogo: ({ className, hideBreakpoint, ...rest }: FooterLogoProps) => react_jsx_runtime.JSX.Element;
1699
+
1700
+ type FooterListProps = ComponentPropsWithRef<'ul'>;
1701
+ declare const FooterList: ({ className, ...rest }: FooterListProps) => react_jsx_runtime.JSX.Element;
1813
1702
 
1814
- type FooterListProps = ComponentProps<'ul'>;
1815
- declare const FooterList: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & react.RefAttributes<HTMLUListElement>>;
1703
+ type FooterSocialsListProps = ComponentPropsWithRef<'ul'>;
1704
+ declare const FooterSocialsList: ({ className, ...rest }: FooterSocialsListProps) => react_jsx_runtime.JSX.Element;
1816
1705
 
1817
- type FooterSocialsListProps = ComponentProps<'ul'>;
1818
- declare const FooterSocialsList: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & react.RefAttributes<HTMLUListElement>>;
1706
+ type FooterSocialsGroupProps = ComponentPropsWithRef<'div'>;
1707
+ declare const FooterSocialsGroup: ({ className, ...rest }: FooterSocialsGroupProps) => react_jsx_runtime.JSX.Element;
1819
1708
 
1820
- type FooterSocialsGroupProps = ComponentProps<'div'>;
1821
- declare const FooterSocialsGroup: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1709
+ type FooterListGroupProps = ComponentPropsWithRef<'div'>;
1710
+ declare const FooterListGroup: ({ className, ...rest }: FooterListGroupProps) => react_jsx_runtime.JSX.Element;
1822
1711
 
1823
- type FooterListGroupProps = ComponentProps<'div'>;
1824
- declare const FooterListGroup: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1712
+ type FooterLeftProps = ComponentPropsWithRef<'div'>;
1713
+ declare const FooterLeft: ({ className, ...rest }: FooterLeftProps) => react_jsx_runtime.JSX.Element;
1825
1714
 
1826
- type FooterLeftProps = ComponentProps<'div'>;
1827
- declare const FooterLeft: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1715
+ type IconSize = 'small' | 'medium' | 'large' | 'inherit';
1716
+ type IconProps = BaseComponentProps<SVGSVGElement, {
1717
+ /**Ikonet importert fra `@norges-domstoler/dds-components`. */
1718
+ icon: SvgIcon;
1719
+ /**Størrelsen på ikonet.
1720
+ * @default "medium"
1721
+ */
1722
+ iconSize?: IconSize;
1723
+ /**Fargen på ikonet.
1724
+ * @default "currentcolor"
1725
+ */
1726
+ color?: TextColor;
1727
+ }>;
1728
+ declare function Icon(props: IconProps): react.JSX.Element;
1729
+ declare namespace Icon {
1730
+ var displayName: string;
1731
+ }
1828
1732
 
1829
1733
  type GlobalMessagePurpose = 'info' | 'warning' | 'danger';
1830
1734
  type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
@@ -1839,22 +1743,10 @@ type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
1839
1743
  /**Ekstra logikk å kjøre når meldingen lukkes. */
1840
1744
  onClose?: () => void;
1841
1745
  }>;
1842
- declare const GlobalMessage: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
1843
- /**Meldingen som vises til brukeren. Brukes kun når meldingen er en `string`. */
1844
- message?: string;
1845
- /**Formålet med meldingen. Påvirker styling.
1846
- * @default "info"
1847
- */
1848
- purpose?: GlobalMessagePurpose;
1849
- /**Indikerer om meldingen skal være lukkbar. */
1850
- closable?: boolean;
1851
- /**Ekstra logikk å kjøre når meldingen lukkes. */
1852
- onClose?: () => void;
1853
- } & {
1854
- children?: react.ReactNode | undefined;
1855
- } & {
1856
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
1857
- } & react.RefAttributes<HTMLDivElement>>;
1746
+ declare const GlobalMessage: {
1747
+ ({ message, purpose, closable, onClose, children, id, className, htmlProps, ...rest }: GlobalMessageProps): react_jsx_runtime.JSX.Element | null;
1748
+ displayName: string;
1749
+ };
1858
1750
 
1859
1751
  type RowGapGrid = BreakpointBasedProps<'rowGap'>;
1860
1752
  type MaxWidthGrid = BreakpointBasedProps<'maxWidth'>;
@@ -1898,8 +1790,8 @@ declare const GridChild: {
1898
1790
  displayName: string;
1899
1791
  };
1900
1792
 
1901
- type InlineButtonProps = HTMLAttributes<HTMLButtonElement>;
1902
- declare const InlineButton: react.ForwardRefExoticComponent<InlineButtonProps & react.RefAttributes<HTMLButtonElement>>;
1793
+ type InlineButtonProps = ComponentPropsWithRef<'button'>;
1794
+ declare const InlineButton: ({ className, ...rest }: InlineButtonProps) => react_jsx_runtime.JSX.Element;
1903
1795
 
1904
1796
  interface BaseInlineInputProps {
1905
1797
  /**Spesifiserer error state. Hvis `errorMessage` ikke brukes må inputfeltet knyttes med ARIA til en feilmelding som vises andre steder i applikasjonen. */
@@ -1912,18 +1804,10 @@ interface BaseInlineInputProps {
1912
1804
  width?: Property.Width;
1913
1805
  /**Om redigeringsikonet skal vises. */
1914
1806
  hideIcon?: boolean;
1915
- /** **OBS!** settes automatisk av forelder. Spesifiserer om brukeren kan tømme inputfeltet. */
1916
- emptiable?: boolean;
1917
- /** **OBS!** settes automatisk av forelder. Spesifiserer om komponenten er i redigeringsmodus. */
1918
- isEditing?: boolean;
1919
1807
  }
1920
1808
  type InlineEditProps = {
1921
1809
  /**Callback for når verdien blir lagret. */
1922
1810
  onSetValue?: (value: string) => void;
1923
- /** Ref til barnet. */
1924
- inputRef: RefObject<HTMLElement>;
1925
- /** Barn (inputelementet). */
1926
- children: ReactNode;
1927
1811
  /**Spesifiserer om brukeren kan tømme inputfeltet. */
1928
1812
  emptiable?: boolean;
1929
1813
  /**Ekstra callback ved `onChange`-event. */
@@ -1933,13 +1817,14 @@ type InlineEditProps = {
1933
1817
  /**Ekstra callback ved `onBlur`-event. */
1934
1818
  onBlur?: () => void;
1935
1819
  } & Pick<InputHTMLAttributes<HTMLInputElement>, 'value'>;
1936
- type CommonInlineEditWrapperProps = Pick<InlineEditProps, 'onSetValue' | 'emptiable' | 'onBlur' | 'onFocus' | 'onChange'> & Pick<BaseInlineInputProps, 'error' | 'errorMessage' | 'width' | 'hideIcon'>;
1937
- type InlineEditTextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'onFocus' | 'onBlur'> & CommonInlineEditWrapperProps;
1938
- type InlineEditInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'width' | 'onChange' | 'onFocus' | 'onBlur'> & CommonInlineEditWrapperProps;
1820
+ type InlineInputProps = BaseInlineInputProps & Omit<ComponentPropsWithRef<'input'>, 'width' | 'value' | 'onChange' | 'onFocus' | 'onBlur'>;
1821
+ type InlineTextAreaProps = BaseInlineInputProps & Omit<ComponentPropsWithRef<'textarea'>, 'value' | 'onChange' | 'onFocus' | 'onBlur'>;
1822
+ type InlineEditTextAreaProps = InlineTextAreaProps & InlineEditProps;
1823
+ type InlineEditInputProps = InlineInputProps & InlineEditProps;
1939
1824
 
1940
- declare const InlineEditTextArea: react.ForwardRefExoticComponent<Omit<react.TextareaHTMLAttributes<HTMLTextAreaElement>, "onFocus" | "onBlur" | "onChange"> & Pick<InlineEditProps, "onFocus" | "onBlur" | "onChange" | "onSetValue" | "emptiable"> & Pick<BaseInlineInputProps, "width" | "error" | "errorMessage" | "hideIcon"> & react.RefAttributes<HTMLTextAreaElement>>;
1825
+ declare const InlineEditTextArea: ({ onSetValue, emptiable, value, onFocus, onChange, onBlur, ref, ...rest }: InlineEditTextAreaProps) => react_jsx_runtime.JSX.Element;
1941
1826
 
1942
- declare const InlineEditInput: react.ForwardRefExoticComponent<Omit<react.InputHTMLAttributes<HTMLInputElement>, "onFocus" | "onBlur" | "onChange" | "width"> & Pick<InlineEditProps, "onFocus" | "onBlur" | "onChange" | "onSetValue" | "emptiable"> & Pick<BaseInlineInputProps, "width" | "error" | "errorMessage" | "hideIcon"> & react.RefAttributes<HTMLInputElement>>;
1827
+ declare const InlineEditInput: ({ onSetValue, emptiable, value, onFocus, onChange, onBlur, ref, ...rest }: InlineEditInputProps) => react_jsx_runtime.JSX.Element;
1943
1828
 
1944
1829
  type InputMessageType = 'error' | 'tip';
1945
1830
  type InputMessageProps = BaseComponentProps<HTMLDivElement, {
@@ -1950,16 +1835,10 @@ type InputMessageProps = BaseComponentProps<HTMLDivElement, {
1950
1835
  */
1951
1836
  messageType: InputMessageType;
1952
1837
  }>;
1953
- declare const InputMessage: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
1954
- /** Meldingen som vises til brukeren. */
1955
- message: string;
1956
- /** Formålet med meldingen. Påvirker styling.
1957
- * @default "error"
1958
- */
1959
- messageType: InputMessageType;
1960
- } & {
1961
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
1962
- } & react.RefAttributes<HTMLDivElement>>;
1838
+ declare const InputMessage: {
1839
+ ({ message, messageType, id, className, htmlProps, ...rest }: InputMessageProps): react_jsx_runtime.JSX.Element;
1840
+ displayName: string;
1841
+ };
1963
1842
  declare const renderInputMessage: (tip?: string, tipId?: string, errorMessage?: string, errorMessageId?: string) => react_jsx_runtime.JSX.Element;
1964
1843
 
1965
1844
  type NavigationLinkProps = {
@@ -2014,23 +1893,16 @@ type ListProps = BaseComponentPropsWithChildren<HTMLUListElement | HTMLOListElem
2014
1893
  */
2015
1894
  typographyType?: ListTypographyType;
2016
1895
  }>;
2017
- declare const List: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLOListElement | HTMLUListElement>, "id" | "className"> & {
2018
- /**Spesifiserer om komponenten skal returnere `<ul />` (punktliste) eller `<ol />` (nummerert liste).
2019
- * @default "unordered"
2020
- */
2021
- listType?: ListType;
2022
- /**Spesifiserer typografi for listen. Komponenten arver i utgangspunktet fra forelder, men hvis forelder stiller ikke med relevant styling må det velges `TypographyBodyType` som brukes i `<body>` ellers på siden.
2023
- * @default "inherit"
2024
- */
2025
- typographyType?: ListTypographyType;
2026
- } & {
2027
- children?: react.ReactNode | undefined;
2028
- } & {
2029
- htmlProps?: react.HTMLAttributes<HTMLOListElement | HTMLUListElement> | undefined;
2030
- } & react.RefAttributes<HTMLOListElement>>;
1896
+ declare const List: {
1897
+ ({ listType, typographyType, children, id, className, htmlProps, ...rest }: ListProps): react_jsx_runtime.JSX.Element;
1898
+ displayName: string;
1899
+ };
2031
1900
 
2032
- type ListItemProps = HTMLAttributes<HTMLLIElement>;
2033
- declare const ListItem: react.ForwardRefExoticComponent<ListItemProps & react.RefAttributes<HTMLLIElement>>;
1901
+ type ListItemProps = ComponentPropsWithRef<'li'>;
1902
+ declare const ListItem: {
1903
+ ({ className, ...rest }: ListItemProps): react_jsx_runtime.JSX.Element;
1904
+ displayName: string;
1905
+ };
2034
1906
 
2035
1907
  type LocalMessagePurpose = 'info' | 'warning' | 'danger' | 'success' | 'tips';
2036
1908
  type LocalMessageLayout = 'horisontal' | 'vertical';
@@ -2052,28 +1924,10 @@ type LocalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2052
1924
  /**Custom bredde ved behov. */
2053
1925
  width?: Property.Width;
2054
1926
  }>;
2055
- declare const LocalMessage: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
2056
- /**Meldingen som vises til brukeren. Brukes kun når meldingen er string. */
2057
- message?: string;
2058
- /**Formålet med meldingen. Påvirker styling.
2059
- * @default "info"
2060
- */
2061
- purpose?: LocalMessagePurpose;
2062
- /** Indikerer om meldingen skal være lukkbar.*/
2063
- closable?: boolean;
2064
- /**Ekstra logikk å kjøre når meldingen lukkes. */
2065
- onClose?: () => void;
2066
- /**Layoutet i komponenten. Ved kompleks innhold anbefales `layout='vertical'`.
2067
- * @default "horisontal"
2068
- */
2069
- layout?: LocalMessageLayout;
2070
- /**Custom bredde ved behov. */
2071
- width?: Property.Width;
2072
- } & {
2073
- children?: react.ReactNode | undefined;
2074
- } & {
2075
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
2076
- } & react.RefAttributes<HTMLDivElement>>;
1927
+ declare const LocalMessage: {
1928
+ ({ message, purpose, closable, onClose, width, layout, children, id, className, htmlProps, ...rest }: LocalMessageProps): react_jsx_runtime.JSX.Element;
1929
+ displayName: string;
1930
+ };
2077
1931
 
2078
1932
  type ModalProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2079
1933
  /**Spesifiserer om `<Modal>` skal åpnes. */
@@ -2087,34 +1941,16 @@ type ModalProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2087
1941
  /**Header i `<Modal>`. Returnerer default `<Heading>` ved `string`. Setter også `aria-labelledby`. */
2088
1942
  header?: string | ReactNode;
2089
1943
  /**Ref som brukes til returnering av fokus. */
2090
- triggerRef?: RefObject<HTMLElement>;
1944
+ triggerRef?: RefObject<HTMLElement | null>;
2091
1945
  /**Ref som skal motta fokus når `<Modal>` åpnes. Hvis utelatt blir `<Modal>` fokusert. */
2092
- initialFocusRef?: RefObject<HTMLElement>;
1946
+ initialFocusRef?: RefObject<HTMLElement | null>;
2093
1947
  /** Gjør at innholdet kan scrolles */
2094
1948
  scrollable?: boolean;
2095
1949
  }>;
2096
- declare const Modal: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
2097
- /**Spesifiserer om `<Modal>` skal åpnes. */
2098
- isOpen?: boolean;
2099
- /**Funksjon kjørt ved lukking; gjør at `<Modal>` blir lukkbar via: Esc-tast, klikk utenfor, klikk på dedikert lukkeknapp. */
2100
- onClose?: () => void;
2101
- /**Fordeler DOM node for `<Modal>` via React portal. Brukes med f.eks `document.getElementById("id")` eller `ref` (skaper ikke ny DOM node).
2102
- * @default themeProviderRef
2103
- */
2104
- parentElement?: HTMLElement;
2105
- /**Header i `<Modal>`. Returnerer default `<Heading>` ved `string`. Setter også `aria-labelledby`. */
2106
- header?: string | ReactNode;
2107
- /**Ref som brukes til returnering av fokus. */
2108
- triggerRef?: RefObject<HTMLElement>;
2109
- /**Ref som skal motta fokus når `<Modal>` åpnes. Hvis utelatt blir `<Modal>` fokusert. */
2110
- initialFocusRef?: RefObject<HTMLElement>;
2111
- /** Gjør at innholdet kan scrolles */
2112
- scrollable?: boolean;
2113
- } & {
2114
- children?: ReactNode | undefined;
2115
- } & {
2116
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
2117
- } & react.RefAttributes<HTMLDivElement>>;
1950
+ declare const Modal: {
1951
+ ({ isOpen, parentElement, children, header, onClose, id, triggerRef, initialFocusRef, scrollable, className, htmlProps, ref, ...rest }: ModalProps): react.ReactPortal | null;
1952
+ displayName: string;
1953
+ };
2118
1954
 
2119
1955
  type ModalBodyProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2120
1956
  /**Gjør at innholdet kan scrolles. Det må eventuelt settes (max)bredde og (max)høyde styling på både denne subkomponenten og `<Modal />`. */
@@ -2122,49 +1958,33 @@ type ModalBodyProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2122
1958
  /**Høyde på container. Kan resultere i scrolling. */
2123
1959
  height?: Property.Height;
2124
1960
  }>;
2125
- declare const ModalBody: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
2126
- /**Gjør at innholdet kan scrolles. Det eventuelt settes (max)bredde og (max)høyde styling på både denne subkomponenten og `<Modal />`. */
2127
- scrollable?: boolean;
2128
- /**Høyde på container. Kan resultere i scrolling. */
2129
- height?: Property.Height;
2130
- } & {
2131
- children?: react.ReactNode | undefined;
2132
- } & {
2133
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
2134
- } & react.RefAttributes<HTMLDivElement>>;
2135
-
2136
- type ModalActionsProps = HTMLAttributes<HTMLDivElement>;
2137
- declare const ModalActions: react.ForwardRefExoticComponent<ModalActionsProps & react.RefAttributes<HTMLDivElement>>;
2138
-
2139
- declare const OverflowMenu: react.ForwardRefExoticComponent<OverflowMenuProps & react.RefAttributes<HTMLDivElement>>;
2140
-
2141
- declare const OverflowMenuButton: react.ForwardRefExoticComponent<OverflowMenuListItemBaseProps & react.ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
2142
-
2143
- declare const OverflowMenuLink: react.ForwardRefExoticComponent<OverflowMenuListItemBaseProps & react.AnchorHTMLAttributes<HTMLAnchorElement> & react.RefAttributes<HTMLAnchorElement>>;
2144
-
2145
- declare const OverflowMenuDivider: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLHRElement>, "id" | "className"> & {
2146
- color?: DividerColor;
2147
- } & {
2148
- htmlProps?: react.HTMLAttributes<HTMLHRElement> | undefined;
2149
- } & react.RefAttributes<HTMLHRElement>>;
2150
-
2151
- declare const OverflowMenuList: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & react.RefAttributes<HTMLUListElement>>;
1961
+ declare const ModalBody: {
1962
+ ({ children, id, className, scrollable, htmlProps, height, ...rest }: ModalBodyProps): react_jsx_runtime.JSX.Element;
1963
+ displayName: string;
1964
+ };
2152
1965
 
2153
- declare const OverflowMenuSpan: react.ForwardRefExoticComponent<OverflowMenuListItemBaseProps & react.HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLButtonElement>>;
1966
+ type ModalActionsProps = ComponentPropsWithRef<'div'>;
1967
+ declare const ModalActions: {
1968
+ ({ className, ...rest }: ModalActionsProps): react_jsx_runtime.JSX.Element;
1969
+ displayName: string;
1970
+ };
2154
1971
 
2155
- declare const OverflowMenuListHeader: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
1972
+ declare const OverflowMenu: {
1973
+ ({ placement, offset, className, htmlProps, ref, ...rest }: OverflowMenuProps): react_jsx_runtime.JSX.Element;
1974
+ displayName: string;
1975
+ };
2156
1976
 
2157
- interface OverflowMenuListItemBaseProps {
1977
+ type OverflowMenuListItemBaseProps<T extends 'span' | 'button' | 'a'> = {
2158
1978
  /**Ikon som vises ved teksten. **OBS!** Settes i tillegg til `children` for riktig layout. */
2159
1979
  icon?: SvgIcon;
2160
1980
  /**Bestemmer farger basert på formål.
2161
1981
  * @default "default"
2162
1982
  */
2163
1983
  purpose?: 'default' | 'danger';
2164
- }
2165
- type OverflowMenuButtonProps = OverflowMenuListItemBaseProps & ButtonHTMLAttributes<HTMLButtonElement>;
2166
- type OverflowMenuLinkProps = OverflowMenuListItemBaseProps & AnchorHTMLAttributes<HTMLAnchorElement>;
2167
- type OverflowMenuSpanProps = OverflowMenuListItemBaseProps & HTMLAttributes<HTMLSpanElement>;
1984
+ } & ComponentPropsWithRef<T>;
1985
+ type OverflowMenuButtonProps = OverflowMenuListItemBaseProps<'button'>;
1986
+ type OverflowMenuLinkProps = OverflowMenuListItemBaseProps<'a'>;
1987
+ type OverflowMenuSpanProps = OverflowMenuListItemBaseProps<'span'>;
2168
1988
  type OverflowMenuProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement, {
2169
1989
  /**Plassering av menyen i forhold til anchor-elementet.
2170
1990
  * @default "bottom-end"
@@ -2176,6 +1996,36 @@ type OverflowMenuProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement, {
2176
1996
  offset?: number;
2177
1997
  }>, 'id'>;
2178
1998
 
1999
+ declare const OverflowMenuButton: {
2000
+ ({ id, icon, children, className, onClick, purpose, ref, ...rest }: OverflowMenuButtonProps): react_jsx_runtime.JSX.Element;
2001
+ displayName: string;
2002
+ };
2003
+
2004
+ declare const OverflowMenuLink: {
2005
+ ({ id, href, icon, className, onClick, children, ref, purpose, ...rest }: OverflowMenuLinkProps): react_jsx_runtime.JSX.Element;
2006
+ displayName: string;
2007
+ };
2008
+
2009
+ type OverflowMenuDividerProps = DividerProps;
2010
+ declare const OverflowMenuDivider: {
2011
+ ({ className, ...rest }: OverflowMenuDividerProps): react_jsx_runtime.JSX.Element;
2012
+ displayName: string;
2013
+ };
2014
+
2015
+ type OverflowMenuListProps = StylelessListProps;
2016
+ declare const OverflowMenuList: (props: OverflowMenuListProps) => react_jsx_runtime.JSX.Element;
2017
+
2018
+ declare const OverflowMenuSpan: {
2019
+ ({ icon, children, className, purpose, ...rest }: OverflowMenuSpanProps): react_jsx_runtime.JSX.Element;
2020
+ displayName: string;
2021
+ };
2022
+
2023
+ type OverflowMenuListHeaderProps = ComponentPropsWithRef<'h2'>;
2024
+ declare const OverflowMenuListHeader: {
2025
+ ({ className, ...rest }: OverflowMenuListHeaderProps): react_jsx_runtime.JSX.Element;
2026
+ displayName: string;
2027
+ };
2028
+
2179
2029
  interface OverflowMenuGroupProps {
2180
2030
  /**Om `<OverflowMenu>` er åpen ved første render.
2181
2031
  * @default false
@@ -2238,43 +2088,10 @@ type PaginationProps = BaseComponentProps<HTMLElement, {
2238
2088
  /**Spesifiserer ved hvilket brekkpunkt og nedover versjonen for små skjermer skal vises; den viser færre sideknapper og stacker subkomponentene. */
2239
2089
  smallScreenBreakpoint?: ScreenSizeLiteral;
2240
2090
  }, Omit<HTMLAttributes<HTMLElement>, 'onChange'>>;
2241
- declare const Pagination: react.ForwardRefExoticComponent<Pick<Omit<HTMLAttributes<HTMLElement>, "onChange">, "id" | "className"> & {
2242
- /**Totalt antall elementer å paginere. */
2243
- itemsAmount: number;
2244
- /**Antall elementer per side ved innlastning av komponenten.
2245
- * @default 10
2246
- */
2247
- defaultItemsPerPage?: number;
2248
- /**Den aktive siden ved innlastning av komponenten.
2249
- * @default 1
2250
- */
2251
- defaultActivePage?: number;
2252
- /**Spesifiserer om selve pagineringen skal vises.
2253
- * @default true
2254
- */
2255
- withPagination?: boolean;
2256
- /**Spesifiserer om teksten `'Vis x-y av z'` skal vises. */
2257
- withCounter?: boolean;
2258
- /**Spesifiserer om `<Select />` til å velge antall resultater per side skal vises. */
2259
- withSelect?: boolean;
2260
- /**Custom options for `<Select />`. **OBS!** hvis det settes custom `selectOptions` bør "alle"-alternativet inkluderes der det er relevant, da brukere ofte liker å ha muligheten.
2261
- * @default [
2262
- { label: '10', value: 10 },
2263
- { label: '25', value: 25 },
2264
- { label: '50', value: 50 },
2265
- { label: 'Alle', value: itemsAmount },
2266
- ]
2267
- */
2268
- selectOptions?: Array<PaginationOption>;
2269
- /**Brukes til å hente side og eventuelt annen logikk ved endring av side. */
2270
- onChange?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, page: number) => void;
2271
- /**Brukes til å hente `selectedOption` og eventuelt kjøre annen logikk når `withSelect=true` ved endring av alternativ. */
2272
- onSelectOptionChange?: (option: PaginationOption | null) => void;
2273
- /**Spesifiserer ved hvilket brekkpunkt og nedover versjonen for små skjermer skal vises; den viser færre sideknapper og stacker subkomponentene. */
2274
- smallScreenBreakpoint?: ScreenSizeLiteral;
2275
- } & {
2276
- htmlProps?: Omit<HTMLAttributes<HTMLElement>, "onChange"> | undefined;
2277
- } & react.RefAttributes<HTMLElement>>;
2091
+ declare const Pagination: {
2092
+ ({ itemsAmount, defaultItemsPerPage, defaultActivePage, withPagination, withCounter, withSelect, selectOptions, smallScreenBreakpoint, onChange, onSelectOptionChange, id, className, htmlProps, ref, ...rest }: PaginationProps): react_jsx_runtime.JSX.Element;
2093
+ displayName: string;
2094
+ };
2278
2095
 
2279
2096
  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';
2280
2097
 
@@ -2322,43 +2139,11 @@ type PhoneInputProps = {
2322
2139
  * @default "Landskode og telefonnummer"
2323
2140
  */
2324
2141
  groupLabel?: string;
2325
- } & Pick<InputProps, 'readOnly' | 'disabled' | 'width' | 'componentSize' | 'errorMessage' | 'label' | 'tip' | 'required' | 'className' | 'style' | 'aria-required' | 'aria-describedby'>;
2326
- declare const PhoneInput: react.ForwardRefExoticComponent<{
2327
- /**
2328
- * Custom id for gruppen ved behov. setter `${id}-country-code` som `id` for landskode og `${id}-phone-number` for telefonnummer.
2329
- */
2330
- id?: string;
2331
- /**
2332
- * Verdi bestående av landskode og telefonnummer.
2333
- * */
2334
- value?: PhoneInputValue;
2335
- /** Default verdi bestående av landkode og telefonnummer. */
2336
- defaultValue?: PhoneInputValue;
2337
- /**
2338
- * `onChange` funksjon.
2339
- */
2340
- onChange?: (value: PhoneInputValue) => void;
2341
- /** `name` attributt; setter `${name}-country-code` som `name` for landskode og `${name}-phone-number` for telefonnummer. */
2342
- name?: string;
2343
- /**
2344
- * Spesifiserer ved hvilket brekkpunkt og nedover versjonen for små skjermer skal vises; den stacker subkomponentene vertikalt.
2345
- */
2346
- smallScreenBreakpoint?: ScreenSizeLiteral;
2347
- /**
2348
- * Usynlig ledetekst for nedtrekksliste med landkoder. Brukes hvis default ikke passer eller ikke er beskrivende nok.
2349
- * @default "Landskode"
2350
- */
2351
- selectLabel?: string;
2352
- /**
2353
- * Ref for nedtrekksliste med landkoder.
2354
- */
2355
- selectRef?: ForwardedRef<HTMLSelectElement>;
2356
- /**
2357
- * Usynlig ledetekst for gruppen. Brukes hvis default ikke passer eller ikke er beskrivende nok.
2358
- * @default "Landskode og telefonnummer"
2359
- */
2360
- groupLabel?: string;
2361
- } & Pick<InputProps, "className" | "style" | "aria-describedby" | "aria-required" | "label" | "width" | "disabled" | "readOnly" | "required" | "componentSize" | "tip" | "errorMessage"> & react.RefAttributes<HTMLInputElement>>;
2142
+ } & Pick<InputProps, 'readOnly' | 'disabled' | 'width' | 'componentSize' | 'errorMessage' | 'label' | 'tip' | 'required' | 'className' | 'style' | 'aria-required' | 'aria-describedby' | 'ref'>;
2143
+ declare const PhoneInput: {
2144
+ ({ label, readOnly, errorMessage, tip, required, width, componentSize, name, className, style, value, selectLabel, selectRef, onChange, defaultValue, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, groupLabel, ref, ...props }: PhoneInputProps): react_jsx_runtime.JSX.Element;
2145
+ displayName: string;
2146
+ };
2362
2147
 
2363
2148
  interface PopoverSizeProps {
2364
2149
  width?: Property.Width;
@@ -2398,40 +2183,10 @@ type PopoverProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2398
2183
  /**Callback for lukking ved custom kontrollert bruk uten `<PopoverGroup>` Kun for corner cases. */
2399
2184
  onClose?: () => void;
2400
2185
  }>;
2401
- declare const Popover: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
2402
- /**Header. Bruker default semantisk heading hvis verdien er en `string`. */
2403
- header?: string | ReactNode;
2404
- /**Om lukkeknapp skal vises.
2405
- * @default true
2406
- */
2407
- withCloseButton?: boolean;
2408
- /**Spesifiserer hvor komponenten skal plasseres i forhold til anchor-elementet.
2409
- * @default "bottom"
2410
- */
2411
- placement?: Placement;
2412
- /**Avstand fra anchor-elementet i px.
2413
- * @default 8
2414
- */
2415
- offset?: number;
2416
- /** Ekstra logikk kjørt når popover mister fokus. */
2417
- onBlur?: () => void;
2418
- /**Custom størrelse. */
2419
- sizeProps?: PopoverSizeProps;
2420
- /** Om focus skal returneres ved `blur`
2421
- * @default true
2422
- */
2423
- returnFocusOnBlur?: boolean;
2424
- /**Anchor ref ved custom kontrollert bruk uten `<PopoverGroup>` Kun for corner cases. */
2425
- anchorRef?: RefObject<HTMLElement | null>;
2426
- /**Spesifiserer om popover er åpen ved custom kontrollert bruk uten `<PopoverGroup>` Kun for corner cases. */
2427
- isOpen?: boolean;
2428
- /**Callback for lukking ved custom kontrollert bruk uten `<PopoverGroup>` Kun for corner cases. */
2429
- onClose?: () => void;
2430
- } & {
2431
- children?: ReactNode | undefined;
2432
- } & {
2433
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
2434
- } & react.RefAttributes<HTMLDivElement>>;
2186
+ declare const Popover: {
2187
+ ({ id, header, withCloseButton, onBlur, children, placement, offset, sizeProps, returnFocusOnBlur, className, htmlProps, anchorRef, isOpen: propIsOpen, onClose: propOnClose, ref, ...rest }: PopoverProps): react_jsx_runtime.JSX.Element | null;
2188
+ displayName: string;
2189
+ };
2435
2190
 
2436
2191
  interface PopoverGroupProps {
2437
2192
  /** Barna til wrapperen: anchor-element som det første og `<Popover>` som det andre. */
@@ -2513,26 +2268,27 @@ type ProgressBarProps = Pick<CommonInputProps, 'tip' | 'errorMessage' | 'label'
2513
2268
  */
2514
2269
  max?: number;
2515
2270
  } & Omit<ComponentPropsWithRef<'progress'>, 'max' | 'value'>;
2516
- declare const ProgressBar: react.ForwardRefExoticComponent<Omit<ProgressBarProps, "ref"> & react.RefAttributes<HTMLProgressElement>>;
2271
+ declare const ProgressBar: {
2272
+ ({ label, tip, errorMessage, size, "aria-describedby": ariaDescribedby, value, width, max, id, className, style, ...rest }: ProgressBarProps): react_jsx_runtime.JSX.Element;
2273
+ displayName: string;
2274
+ };
2517
2275
 
2518
2276
  type SearchSize = 'small' | 'medium' | 'large';
2519
2277
  type SearchButtonProps = {
2520
2278
  label?: string;
2521
2279
  purpose?: ExtractStrict<ButtonPurpose, 'primary' | 'secondary'>;
2522
- } & Pick<ButtonProps, 'loading' | 'loadingTooltip'> & ComponentProps<'button'>;
2280
+ } & Pick<ButtonProps, 'loading' | 'loadingTooltip'> & ComponentPropsWithRef<'button'>;
2523
2281
 
2524
2282
  type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
2525
2283
  /**Størrelsen på komponenten. */
2526
2284
  componentSize?: SearchSize;
2527
2285
  /**Props for søkeknappen. */
2528
2286
  buttonProps?: SearchButtonProps;
2529
- } & InputHTMLAttributes<HTMLInputElement>;
2530
- declare const Search$1: react.ForwardRefExoticComponent<Pick<InputProps, "label" | "tip"> & {
2531
- /**Størrelsen komponenten. */
2532
- componentSize?: SearchSize;
2533
- /**Props for søkeknappen. */
2534
- buttonProps?: SearchButtonProps;
2535
- } & InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;
2287
+ } & ComponentPropsWithRef<'input'>;
2288
+ declare const Search$1: {
2289
+ ({ componentSize, buttonProps, name, label, tip, id, value, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): react_jsx_runtime.JSX.Element;
2290
+ displayName: string;
2291
+ };
2536
2292
 
2537
2293
  interface WeightedValue {
2538
2294
  text: string;
@@ -2581,20 +2337,10 @@ type SearchSuggestionsProps = BaseComponentProps<HTMLDivElement, Pick<SearchProp
2581
2337
  /**Id til `<Search>`. */
2582
2338
  searchId: string;
2583
2339
  }>;
2584
- declare const SearchSuggestions: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & Pick<SearchProps, "componentSize"> & {
2585
- /**Forslag som vises i listen. */
2586
- suggestions?: Array<string>;
2587
- /** Om listen skal vises. */
2588
- showSuggestions?: boolean;
2589
- /**Callback når et forslag blir valgt, inkludert søkefunksjon. */
2590
- onSuggestionClick?: (e: MouseEvent$1<HTMLButtonElement>) => void;
2591
- /** Maks antall forslag vist i listen. */
2592
- maxSuggestions?: number;
2593
- /**Id til `<Search>`. */
2594
- searchId: string;
2595
- } & {
2596
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
2597
- } & react.RefAttributes<HTMLDivElement>>;
2340
+ declare const SearchSuggestions: {
2341
+ ({ id, searchId, className, htmlProps, suggestions, showSuggestions, componentSize, onSuggestionClick, maxSuggestions, ...rest }: SearchSuggestionsProps): react_jsx_runtime.JSX.Element;
2342
+ displayName: string;
2343
+ };
2598
2344
 
2599
2345
  type SearchCompoundProps = typeof Search$1 & {
2600
2346
  AutocompleteWrapper: typeof SearchAutocompleteWrapper;
@@ -2634,16 +2380,22 @@ type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
2634
2380
  customSingleValueElement?: (props: SingleValueProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
2635
2381
  /** Testid. Legges på control-div med suffiks "control". */
2636
2382
  'data-testid'?: string;
2637
- } & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
2638
- type SelectForwardRefType<Option, IsMulti extends boolean> = React.ForwardedRef<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
2639
- declare const Select: <Option = unknown, IsMulti extends boolean = false>(props: SelectProps<Option, IsMulti> & {
2383
+ /**Ref til komponenten. */
2640
2384
  ref?: SelectForwardRefType<Option, IsMulti>;
2641
- }) => ReactElement;
2385
+ } & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
2386
+ type SelectForwardRefType<Option, IsMulti extends boolean> = Ref<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
2387
+ declare function Select<Option = unknown, IsMulti extends boolean = false>({ id, label, componentSize, errorMessage, tip, required, 'aria-required': ariaRequired, readOnly, options, isMulti, value, icon, defaultValue, width, closeMenuOnSelect, className, style, isDisabled, isClearable, placeholder, menuPortalTarget, customOptionElement, customSingleValueElement, 'data-testid': dataTestId, onKeyDown, openMenuOnClick, ref, ...rest }: SelectProps<Option, IsMulti>): react_jsx_runtime.JSX.Element;
2388
+ declare namespace Select {
2389
+ var displayName: string;
2390
+ }
2642
2391
 
2643
- type NativeSelectProps = CommonInputProps & Pick<InputProps, 'componentSize' | 'readOnly'> & ComponentProps<'select'>;
2644
- declare const NativeSelect: react.ForwardRefExoticComponent<Omit<NativeSelectProps, "ref"> & react.RefAttributes<HTMLSelectElement>>;
2645
- type NativeSelectPlaceholderProps = ComponentProps<'option'>;
2646
- declare const NativeSelectPlaceholder: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, "ref"> & react.RefAttributes<HTMLOptionElement>>;
2392
+ type NativeSelectProps = CommonInputProps & Pick<InputProps, 'componentSize' | 'readOnly'> & ComponentPropsWithRef<'select'>;
2393
+ declare const NativeSelect: ({ id, children, componentSize, label, multiple, readOnly, errorMessage, tip, required, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, width, className, style, onKeyDown, onMouseDown, ...rest }: NativeSelectProps) => react_jsx_runtime.JSX.Element;
2394
+ type NativeSelectPlaceholderProps = ComponentPropsWithRef<'option'>;
2395
+ declare const NativeSelectPlaceholder: {
2396
+ ({ children, value, ...rest }: NativeSelectPlaceholderProps): react_jsx_runtime.JSX.Element;
2397
+ displayName: string;
2398
+ };
2647
2399
 
2648
2400
  declare const createSelectOptions: <TValue extends string | number>(...args: Array<TValue>) => Array<SelectOption<TValue>>;
2649
2401
 
@@ -2683,11 +2435,10 @@ type CheckboxProps = BaseComponentProps<HTMLInputElement, SelectionControlCommon
2683
2435
  indeterminate?: boolean;
2684
2436
  } & CheckboxPickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof CheckboxPickedHTMLAttributes>>;
2685
2437
 
2686
- declare const Checkbox: react.ForwardRefExoticComponent<Pick<Omit<react.InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "defaultValue" | "aria-describedby" | "onBlur" | "onChange" | "name" | "value" | "checked">, "id" | "className"> & SelectionControlCommonProps & {
2687
- indeterminate?: boolean;
2688
- } & CheckboxPickedHTMLAttributes & {
2689
- htmlProps?: Omit<react.InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "defaultValue" | "aria-describedby" | "onBlur" | "onChange" | "name" | "value" | "checked"> | undefined;
2690
- } & react.RefAttributes<HTMLInputElement>>;
2438
+ declare const Checkbox: {
2439
+ ({ id, name, label, error, disabled, readOnly, indeterminate, "aria-describedby": ariaDescribedby, className, htmlProps, ...rest }: CheckboxProps): react_jsx_runtime.JSX.Element;
2440
+ displayName: string;
2441
+ };
2691
2442
 
2692
2443
  type CheckboxGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
2693
2444
  /**Indikerer at det er påkrevd å velge minst ett alternativ. Legger en markør bak ledeteksten. **OBS!** `required` må i tillegg gis til `<Checkbox>`-barna manuelt. */
@@ -2698,24 +2449,15 @@ declare const CheckboxGroup: {
2698
2449
  displayName: string;
2699
2450
  };
2700
2451
 
2701
- declare const RadioButton: react.ForwardRefExoticComponent<Pick<Omit<react.InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "onChange" | "name" | "value" | "checked" | "readOnly" | "required">, "id" | "className"> & SelectionControlCommonProps & {
2702
- "aria-describedby"?: string | undefined | undefined;
2703
- onChange?: react.ChangeEventHandler<HTMLInputElement> | undefined;
2704
- name?: string | undefined | undefined;
2705
- value?: string | number | readonly string[] | undefined;
2706
- checked?: boolean | undefined | undefined;
2707
- readOnly?: boolean | undefined | undefined;
2708
- required?: boolean | undefined | undefined;
2709
- } & {
2710
- children?: react.ReactNode | undefined;
2711
- } & {
2712
- htmlProps?: Omit<react.InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "onChange" | "name" | "value" | "checked" | "readOnly" | "required"> | undefined;
2713
- } & react.RefAttributes<HTMLInputElement>>;
2714
-
2715
2452
  type PickedInputHTMLAttributes$1 = Pick<InputHTMLAttributes<HTMLInputElement>, 'name' | 'readOnly' | 'checked' | 'value' | 'required' | 'onChange' | 'aria-describedby'>;
2716
2453
  type RadioButtonProps = BaseComponentPropsWithChildren<HTMLInputElement, SelectionControlCommonProps & PickedInputHTMLAttributes$1, Omit<InputHTMLAttributes<HTMLInputElement>, keyof PickedInputHTMLAttributes$1>>;
2717
2454
  type RadioValue = PickedInputHTMLAttributes$1['value'];
2718
2455
 
2456
+ declare const RadioButton: {
2457
+ ({ id, name, label, disabled, readOnly, error, checked, value, children, required, onChange, "aria-describedby": ariaDescribedby, className, htmlProps, ...rest }: RadioButtonProps): react_jsx_runtime.JSX.Element;
2458
+ displayName: string;
2459
+ };
2460
+
2719
2461
  type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
2720
2462
  /** Gir alle barna `name` prop.*/
2721
2463
  name?: string;
@@ -2728,9 +2470,10 @@ type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithCh
2728
2470
  /**Default verdi - en `<RadioButton>` med denne verdien blir forhåndsvalgt med uncontrolled state. */
2729
2471
  defaultValue?: T | undefined;
2730
2472
  }, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
2731
- declare const RadioButtonGroup: <T extends string | number = string>(props: RadioButtonGroupProps<T> & {
2732
- ref?: Ref<HTMLDivElement>;
2733
- }) => ReactElement;
2473
+ declare const RadioButtonGroup: {
2474
+ <T extends string | number = string>({ name, label, groupId, errorMessage, tip, disabled, readOnly, direction, value, defaultValue, children, required, onChange, id, className, htmlProps, ...rest }: RadioButtonGroupProps<T>): react_jsx_runtime.JSX.Element;
2475
+ displayName: string;
2476
+ };
2734
2477
 
2735
2478
  type SkeletonAppearance = 'circle' | 'rectangle';
2736
2479
  type SkeletonProps = {
@@ -2743,7 +2486,10 @@ type SkeletonProps = {
2743
2486
  */
2744
2487
  borderRadius?: Property.BorderRadius;
2745
2488
  } & ComponentPropsWithRef<'div'>;
2746
- declare const Skeleton: react.ForwardRefExoticComponent<Omit<SkeletonProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
2489
+ declare const Skeleton: {
2490
+ ({ width, height, borderRadius, className, style, ref, ...rest }: SkeletonProps): react_jsx_runtime.JSX.Element;
2491
+ displayName: string;
2492
+ };
2747
2493
 
2748
2494
  type SkipToContentProps = BaseComponentProps<HTMLAnchorElement, {
2749
2495
  /** Teksten som vises i lenka.
@@ -2757,20 +2503,10 @@ type SkipToContentProps = BaseComponentProps<HTMLAnchorElement, {
2757
2503
  */
2758
2504
  top?: Property.Top;
2759
2505
  }>;
2760
- declare const SkipToContent: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLAnchorElement>, "id" | "className"> & {
2761
- /** Teksten som vises i lenka.
2762
- * @default "Til hovedinnhold"
2763
- */
2764
- text?: string;
2765
- /**Spesifiserer hvor det skal hoppes til via `id`-attributtet til innholdet. */
2766
- href: string;
2767
- /**Avstand fra top i nærmeste posisjonert container.
2768
- * @default 0
2769
- */
2770
- top?: Property.Top;
2771
- } & {
2772
- htmlProps?: react.HTMLAttributes<HTMLAnchorElement> | undefined;
2773
- } & react.RefAttributes<HTMLAnchorElement>>;
2506
+ declare const SkipToContent: {
2507
+ ({ text, top, id, className, htmlProps, ...rest }: SkipToContentProps): react_jsx_runtime.JSX.Element;
2508
+ displayName: string;
2509
+ };
2774
2510
 
2775
2511
  type SpinnerProps = BaseComponentProps<SVGElement, {
2776
2512
  /**Farge på spinneren.
@@ -2803,17 +2539,11 @@ type SplitButtonProps = Pick<ButtonProps, 'size'> & {
2803
2539
  * @default "primary"
2804
2540
  */
2805
2541
  purpose?: SplitButtonPurpose;
2806
- } & HTMLAttributes<HTMLDivElement>;
2807
- declare const SplitButton: react.ForwardRefExoticComponent<Pick<ButtonProps, "size"> & {
2808
- /**Props for primær handling. Samme props som for `<Button>` unntatt `size` og `purpose`. */
2809
- primaryAction: SplitButtonPrimaryActionProps;
2810
- /**Props for sekunære handlinger. */
2811
- secondaryActions: SplitButtonSecondaryActionsProps;
2812
- /**Formål med knappen.
2813
- * @default "primary"
2814
- */
2815
- purpose?: SplitButtonPurpose;
2816
- } & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
2542
+ } & ComponentPropsWithRef<'div'>;
2543
+ declare const SplitButton: {
2544
+ ({ size, primaryAction, secondaryActions, purpose, className, ...rest }: SplitButtonProps): react_jsx_runtime.JSX.Element;
2545
+ displayName: string;
2546
+ };
2817
2547
 
2818
2548
  type StackSpacing = 'x0.125' | 'x0.25' | 'x0.5' | 'x0.75' | 'x1' | 'x1.5' | 'x2' | 'x2.5' | 'x3' | 'x4' | 'x6' | 'x10';
2819
2549
  interface StackStyleProps {
@@ -2841,19 +2571,55 @@ interface StackStyleProps {
2841
2571
  padding?: StackSpacing | 0;
2842
2572
  }
2843
2573
  type StackProps = BaseComponentPropsWithChildren<HTMLDivElement, Omit<StackStyleProps, 'direction'>>;
2844
- declare const HStack: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & Omit<StackStyleProps, "direction"> & {
2845
- children?: react.ReactNode | undefined;
2846
- } & {
2847
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
2848
- } & react.RefAttributes<HTMLDivElement>>;
2849
- declare const VStack: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & Omit<StackStyleProps, "direction"> & {
2850
- children?: react.ReactNode | undefined;
2851
- } & {
2852
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
2853
- } & react.RefAttributes<HTMLDivElement>>;
2574
+ declare const HStack: {
2575
+ ({ id, className, htmlProps, align, justify, gap, padding, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
2576
+ displayName: string;
2577
+ };
2578
+ declare const VStack: {
2579
+ ({ id, className, htmlProps, align, justify, gap, padding, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
2580
+ displayName: string;
2581
+ };
2854
2582
  declare function spacingPropToCn(value: string): HyphenSpacingProps;
2855
2583
  type HyphenSpacingProps = 'x-0-125' | 'x-0-25' | 'x-0-5' | 'x-0-75' | 'x-1' | 'x-1-5' | 'x-2' | 'x-2-5' | 'x-3' | 'x-4' | 'x-6' | 'x-10';
2856
2584
 
2585
+ type TableBodyProps = ComponentPropsWithRef<'tbody'>;
2586
+ declare const Body: {
2587
+ (props: TableBodyProps): react_jsx_runtime.JSX.Element;
2588
+ displayName: string;
2589
+ };
2590
+
2591
+ type TableCellType = 'data' | 'head';
2592
+ type TableCellLayout = 'left' | 'right' | 'center' | 'text and icon';
2593
+ interface CollapsibleProps {
2594
+ isCollapsibleChild?: boolean;
2595
+ }
2596
+ type TableCellProps = {
2597
+ /**
2598
+ * Type celle. Returnerer enten `<td>` eller `<th>`.
2599
+ * @default "data" hvis den er brukt i `<Table.Body>` eller `<Table.Foot>`, 'head' hvis den er i `<Table.Head>`.
2600
+ */
2601
+ type?: TableCellType;
2602
+ /**Layout av innholdet i cellen; legger en flex `<div>` i cellen, unntatt 'none' som ikke legger inn noe. 'tekst and icon' legger `gap` mellom barna og andre barnet i cellen.
2603
+ * @default "left"
2604
+ */
2605
+ layout?: TableCellLayout;
2606
+ /** Props ved bruk av `<CollapsibleRow>`. **OBS!** settes automatisk av forelder. */
2607
+ collapsibleProps?: CollapsibleProps;
2608
+ } & (ComponentPropsWithRef<'td'> | ComponentPropsWithRef<'th'>);
2609
+ declare const Cell: {
2610
+ ({ children, type: _type, layout, collapsibleProps, className, ...rest }: TableCellProps): react_jsx_runtime.JSX.Element;
2611
+ displayName: string;
2612
+ };
2613
+
2614
+ type TableFootProps = ComponentPropsWithRef<'tfoot'>;
2615
+ declare const Foot: {
2616
+ (props: TableFootProps): react_jsx_runtime.JSX.Element;
2617
+ displayName: string;
2618
+ };
2619
+
2620
+ type TableHeadProps = ComponentPropsWithRef<'thead'>;
2621
+ declare const Head: ({ children, ...rest }: TableHeadProps) => react_jsx_runtime.JSX.Element;
2622
+
2857
2623
  type TableSize = Extract<Size, 'small' | 'medium' | 'large'>;
2858
2624
  type TableProps = {
2859
2625
  /**
@@ -2865,7 +2631,7 @@ type TableProps = {
2865
2631
  stickyHeader?: boolean;
2866
2632
  /**Legger skillelinjer mellom radene. */
2867
2633
  withDividers?: boolean;
2868
- } & HTMLAttributes<HTMLTableElement>;
2634
+ } & ComponentPropsWithRef<'table'>;
2869
2635
  type HeaderValues = Array<{
2870
2636
  key: string;
2871
2637
  content: ReactNode;
@@ -2887,77 +2653,12 @@ type TableRowProps = {
2887
2653
  selected?: boolean;
2888
2654
  /**Spesifiserer om raden skal ha hover styling. Brukes hovedsakelig på rader med klikkbar innhold. */
2889
2655
  hoverable?: boolean;
2890
- } & HTMLAttributes<HTMLTableRowElement>;
2891
-
2892
- declare const CollapsibleRow: react.ForwardRefExoticComponent<{
2893
- type?: TableRowType;
2894
- mode?: RowMode;
2895
- selected?: boolean;
2896
- hoverable?: boolean;
2897
- } & react.HTMLAttributes<HTMLTableRowElement> & react.RefAttributes<HTMLTableRowElement>>;
2898
-
2899
- declare const CollapsibleTable$1: react.ForwardRefExoticComponent<{
2900
- isCollapsed?: boolean;
2901
- headerValues: HeaderValues;
2902
- definingColumnIndex?: Array<number>;
2903
- } & {
2904
- size?: TableSize;
2905
- stickyHeader?: boolean;
2906
- withDividers?: boolean;
2907
- } & react.HTMLAttributes<HTMLTableElement> & react.RefAttributes<HTMLTableElement>>;
2908
-
2909
- type CollapsibleTableProps = {
2910
- /**Om tabellen skal kollapse. */
2911
- isCollapsed?: boolean;
2912
- /**Innhold i headere (`content`) og deres `key`. `headerValues.content` må være den samme som faktisk innhold i `<Table.Cell type='head'>`. */
2913
- headerValues: HeaderValues;
2914
- /**
2915
- * Indeksen(e) til kolonnen(e) som skal synes når tabellen er kollapset. Rekkefølgen i array avgjør rekkefølgen i render.
2916
- * @default [0]
2917
- * */
2918
- definingColumnIndex?: Array<number>;
2919
- } & TableProps;
2656
+ } & ComponentPropsWithRef<'tr'>;
2920
2657
 
2921
- type CollapsibleTableCompoundProps = typeof CollapsibleTable$1 & {
2922
- Row: typeof CollapsibleRow;
2658
+ declare const Row: {
2659
+ ({ type: _type, mode, hoverable, selected, className, ...rest }: TableRowProps): react_jsx_runtime.JSX.Element;
2660
+ displayName: string;
2923
2661
  };
2924
- declare const CollapsibleTable: CollapsibleTableCompoundProps;
2925
-
2926
- type TableBodyProps = HTMLAttributes<HTMLTableSectionElement>;
2927
- declare const Body: react.ForwardRefExoticComponent<TableBodyProps & react.RefAttributes<HTMLTableSectionElement>>;
2928
-
2929
- type TableCellType = 'data' | 'head';
2930
- type TableCellLayout = 'left' | 'right' | 'center' | 'text and icon';
2931
- interface CollapsibleProps {
2932
- isCollapsibleChild?: boolean;
2933
- }
2934
- type TableCellProps = {
2935
- /**
2936
- * Type celle. Returnerer enten `<td>` eller `<th>`.
2937
- * @default "data" hvis den er brukt i `<Table.Body>` eller `<Table.Foot>`, 'head' hvis den er i `<Table.Head>`.
2938
- */
2939
- type?: TableCellType;
2940
- /**Layout av innholdet i cellen; legger en flex `<div>` i cellen, unntatt 'none' som ikke legger inn noe. 'tekst and icon' legger `gap` mellom barna og andre barnet i cellen.
2941
- * @default "left"
2942
- */
2943
- layout?: TableCellLayout;
2944
- /** Props ved bruk av `<CollapsibleRow>`. **OBS!** settes automatisk av forelder. */
2945
- collapsibleProps?: CollapsibleProps;
2946
- } & (TdHTMLAttributes<HTMLTableCellElement> | ThHTMLAttributes<HTMLTableCellElement>);
2947
- declare const Cell: react.ForwardRefExoticComponent<TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
2948
-
2949
- type TableFootProps = HTMLAttributes<HTMLTableSectionElement>;
2950
- declare const Foot: react.ForwardRefExoticComponent<TableFootProps & react.RefAttributes<HTMLTableSectionElement>>;
2951
-
2952
- type TableHeadProps = HTMLAttributes<HTMLTableSectionElement>;
2953
- declare const Head: react.ForwardRefExoticComponent<TableHeadProps & react.RefAttributes<HTMLTableSectionElement>>;
2954
-
2955
- declare const Row: react.ForwardRefExoticComponent<{
2956
- type?: TableRowType;
2957
- mode?: RowMode;
2958
- selected?: boolean;
2959
- hoverable?: boolean;
2960
- } & react.HTMLAttributes<HTMLTableRowElement> & react.RefAttributes<HTMLTableRowElement>>;
2961
2662
 
2962
2663
  type SortOrder = 'ascending' | 'descending';
2963
2664
  type TableSortCellProps = {
@@ -2968,20 +2669,15 @@ type TableSortCellProps = {
2968
2669
  /**onClick-funksjon for sortering og annen logikk. */
2969
2670
  onClick: (event: MouseEvent$1<HTMLButtonElement>) => void;
2970
2671
  } & Omit<TableCellProps, 'type'>;
2971
- declare const SortCell: react.ForwardRefExoticComponent<{
2972
- /**Spesifiserer om kolonnen er sortert. */
2973
- isSorted?: boolean;
2974
- /**Sorteringsrekkefølge i kolonnen. Avgjør hvilket ikon skal vises i cellen. */
2975
- sortOrder?: SortOrder;
2976
- /**onClick-funksjon for sortering og annen logikk. */
2977
- onClick: (event: MouseEvent$1<HTMLButtonElement>) => void;
2978
- } & Omit<TableCellProps, "type"> & react.RefAttributes<HTMLTableCellElement>>;
2672
+ declare const SortCell: {
2673
+ ({ isSorted, sortOrder, onClick, children, ...rest }: TableSortCellProps): react_jsx_runtime.JSX.Element;
2674
+ displayName: string;
2675
+ };
2979
2676
 
2980
- declare const Table$1: react.ForwardRefExoticComponent<{
2981
- size?: TableSize;
2982
- stickyHeader?: boolean;
2983
- withDividers?: boolean;
2984
- } & react.HTMLAttributes<HTMLTableElement> & react.RefAttributes<HTMLTableElement>>;
2677
+ declare const Table$1: {
2678
+ ({ size, stickyHeader, withDividers, className, children, ...rest }: TableProps): react_jsx_runtime.JSX.Element;
2679
+ displayName: string;
2680
+ };
2985
2681
 
2986
2682
  type TableWrapperProps = HTMLAttributes<HTMLDivElement>;
2987
2683
  declare const TableWrapper: {
@@ -3000,14 +2696,44 @@ type TableCompoundProps = typeof Table$1 & {
3000
2696
  };
3001
2697
  declare const Table: TableCompoundProps;
3002
2698
 
2699
+ declare const CollapsibleRow: {
2700
+ ({ type: _type, className, mode, selected, hoverable, children, ref, ...rest }: TableRowProps): react_jsx_runtime.JSX.Element;
2701
+ displayName: string;
2702
+ };
2703
+
2704
+ type CollapsibleTableProps = {
2705
+ /**Om tabellen skal kollapse. */
2706
+ isCollapsed?: boolean;
2707
+ /**Innhold i headere (`content`) og deres `key`. `headerValues.content` må være den samme som faktisk innhold i `<Table.Cell type='head'>`. */
2708
+ headerValues: HeaderValues;
2709
+ /**
2710
+ * Indeksen(e) til kolonnen(e) som skal synes når tabellen er kollapset. Rekkefølgen i array avgjør rekkefølgen i render.
2711
+ * @default [0]
2712
+ * */
2713
+ definingColumnIndex?: Array<number>;
2714
+ } & TableProps;
2715
+
2716
+ declare const CollapsibleTable$1: {
2717
+ ({ isCollapsed, headerValues, definingColumnIndex, ...rest }: CollapsibleTableProps): react_jsx_runtime.JSX.Element;
2718
+ displayName: string;
2719
+ };
2720
+
2721
+ type CollapsibleTableCompoundProps = typeof CollapsibleTable$1 & {
2722
+ Row: typeof CollapsibleRow;
2723
+ };
2724
+ declare const CollapsibleTable: CollapsibleTableCompoundProps;
2725
+
3003
2726
  type AddTabButtonProps = {
3004
2727
  /** Bredden. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
3005
2728
  * @default "1fr"
3006
2729
  */
3007
2730
  width?: CSS.Properties['width'];
3008
2731
  index?: number;
3009
- } & ComponentProps<'button'>;
3010
- declare const AddTabButton: react.ForwardRefExoticComponent<Omit<AddTabButtonProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
2732
+ } & ComponentPropsWithRef<'button'>;
2733
+ declare const AddTabButton: {
2734
+ ({ ref, children, index, className, width, ...rest }: AddTabButtonProps): react_jsx_runtime.JSX.Element;
2735
+ displayName: string;
2736
+ };
3011
2737
 
3012
2738
  type TabSize = Extract<Size, 'small' | 'medium'>;
3013
2739
  type TabsProps = BaseComponentPropsWithChildren<HTMLDivElement, {
@@ -3026,27 +2752,12 @@ type TabsProps = BaseComponentPropsWithChildren<HTMLDivElement, {
3026
2752
  /** Props for "Legg til fane"-knapp. Støtter native HTML attributter og `width`. */
3027
2753
  addTabButtonProps?: Omit<AddTabButtonProps, 'index'>;
3028
2754
  }, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
3029
- declare const Tabs: react.ForwardRefExoticComponent<Pick<Omit<HTMLAttributes<HTMLDivElement>, "onChange">, "id" | "className"> & {
3030
- /**Størrelse hver `<Tab>`. */
3031
- size?: TabSize;
3032
- /** Indeksen til den aktive fanen. **OBS!** Ved å sette denne vil brukere aldri kunne endre tab uten at du også registrerer en `onChange`-lytter for å ta vare på aktiv tab utenfor komponenten. */
3033
- activeTab?: number;
3034
- /** Ekstra logikk ved endring av aktiv fane. */
3035
- onChange?: (index: number) => void;
3036
- /** Retningen ikon og tekst vises i `<Tab>`-elementer.
3037
- * @default "row"
3038
- */
3039
- tabContentDirection?: Direction$1;
3040
- /**Bredde for hele komponenten. */
3041
- width?: Property.Width;
3042
- /** Props for "Legg til fane"-knapp. Støtter native HTML attributter og `width`. */
3043
- addTabButtonProps?: Omit<AddTabButtonProps, "index">;
3044
- } & {
3045
- children?: react.ReactNode | undefined;
3046
- } & {
3047
- htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, "onChange"> | undefined;
3048
- } & react.RefAttributes<HTMLDivElement>>;
2755
+ declare const Tabs: {
2756
+ ({ id, activeTab, onChange, tabContentDirection, size, addTabButtonProps, width, children, className, htmlProps, ...rest }: TabsProps): react_jsx_runtime.JSX.Element;
2757
+ displayName: string;
2758
+ };
3049
2759
 
2760
+ type PickedAttributes = Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>;
3050
2761
  type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
3051
2762
  /**Spesifiserer om fanen er aktiv.
3052
2763
  * @default false
@@ -3064,48 +2775,32 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
3064
2775
  * @default "1fr"
3065
2776
  */
3066
2777
  width?: CSS.Properties['width'];
3067
- } & Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>>;
3068
- declare const Tab: react.ForwardRefExoticComponent<Pick<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick">, "id" | "className"> & {
3069
- /**Spesifiserer om fanen er aktiv.
3070
- * @default false
3071
- */
3072
- active?: boolean;
3073
- /** Ikon. */
3074
- icon?: SvgIcon;
3075
- /** Spesifiserer om `<Tab>` skal ha fokus. **OBS!** settes automatisk av forelder.*/
3076
- focus?: boolean;
3077
- /** Callback som setter fokus. **OBS!** settes automatisk av forelder.*/
3078
- setFocus?: Dispatch<SetStateAction<number>>;
3079
- /** Indeksen til `<Tab>`. **OBS!** settes automatisk av forelder.*/
3080
- index?: number;
3081
- /** Bredden til `<Tab>`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
3082
- * @default "1fr"
3083
- */
3084
- width?: CSS.Properties["width"];
3085
- } & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick"> & {
3086
- children?: react.ReactNode | undefined;
3087
- } & {
3088
- htmlProps?: Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick"> | undefined;
3089
- } & react.RefAttributes<HTMLButtonElement>>;
2778
+ } & PickedAttributes, Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof PickedAttributes>>;
2779
+ declare const Tab: {
2780
+ ({ active, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps, width, ref, ...rest }: TabProps): react_jsx_runtime.JSX.Element;
2781
+ displayName: string;
2782
+ };
3090
2783
 
3091
- type TabListProps = HTMLAttributes<HTMLDivElement>;
3092
- declare const TabList: react.ForwardRefExoticComponent<TabListProps & react.RefAttributes<HTMLDivElement>>;
2784
+ type TabListProps = ComponentPropsWithRef<'div'>;
2785
+ declare const TabList: {
2786
+ ({ children, id, style, onFocus, ref, ...rest }: TabListProps): react_jsx_runtime.JSX.Element;
2787
+ displayName: string;
2788
+ };
3093
2789
 
3094
2790
  type TabPanelProps = BaseComponentPropsWithChildren<HTMLDivElement, {
3095
2791
  /** Spesifiserer om panelet skal vises basert på aktiv fane. */
3096
2792
  active?: boolean;
3097
2793
  }>;
3098
- declare const TabPanel: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
3099
- /** Spesifiserer om panelet skal vises basert aktiv fane. */
3100
- active?: boolean;
3101
- } & {
3102
- children?: react.ReactNode | undefined;
3103
- } & {
3104
- htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
3105
- } & react.RefAttributes<HTMLDivElement>>;
2794
+ declare const TabPanel: {
2795
+ ({ active, children, id, className, htmlProps, ...rest }: TabPanelProps): react_jsx_runtime.JSX.Element;
2796
+ displayName: string;
2797
+ };
3106
2798
 
3107
- type TabPanelsProps = HTMLAttributes<HTMLDivElement>;
3108
- declare const TabPanels: react.ForwardRefExoticComponent<TabPanelsProps & react.RefAttributes<HTMLDivElement>>;
2799
+ type TabPanelsProps = ComponentPropsWithRef<'div'>;
2800
+ declare const TabPanels: {
2801
+ ({ children, ref, ...rest }: TabPanelsProps): react_jsx_runtime.JSX.Element;
2802
+ displayName: string;
2803
+ };
3109
2804
 
3110
2805
  type TagPurpose = 'success' | 'info' | 'danger' | 'warning' | 'default';
3111
2806
  type TagAppearance = 'default' | 'strong';
@@ -3134,57 +2829,21 @@ type TagProps = BaseComponentPropsWithChildren<HTMLSpanElement, {
3134
2829
  */
3135
2830
  withIcon?: boolean;
3136
2831
  }>;
3137
- declare const Tag: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLSpanElement>, "id" | "className"> & {
3138
- /**
3139
- * Innholdet til `<Tag>.` Kan brukes istedenfor `text`.
3140
- */
3141
- children?: ReactNode;
3142
- /**
3143
- * Samme oppførsel som `children`. Er `children` brukt vil denne ignoreres. Tekst som vises i `<Tag>`.
3144
- */
3145
- text?: string;
3146
- /**
3147
- * Formål med status eller kategorisering. Påvirker styling.
3148
- * @default "default"
3149
- */
3150
- purpose?: TagPurpose;
3151
- /**
3152
- * Det visuelle uttrykket til komponenten.
3153
- * @default "default"
3154
- */
3155
- appearance?: TagAppearance;
3156
- /**
3157
- * Om `<Tag>` skal ha et ikon til venstre for teksten. Tags med `purpose="default"` har aldri ikon.
3158
- * @default false
3159
- */
3160
- withIcon?: boolean;
3161
- } & {
3162
- children?: ReactNode | undefined;
3163
- } & {
3164
- htmlProps?: react.HTMLAttributes<HTMLSpanElement> | undefined;
3165
- } & react.RefAttributes<HTMLSpanElement>>;
2832
+ declare const Tag: {
2833
+ ({ text, purpose, appearance, id, className, children, htmlProps, withIcon, ...rest }: TagProps): react_jsx_runtime.JSX.Element;
2834
+ displayName: string;
2835
+ };
3166
2836
 
3167
2837
  type TextAreaProps = CommonInputProps & {
3168
2838
  /** Spesifiserer om tegntelleren skal vises ved bruk av `maxLength` attributt.
3169
2839
  * @default true
3170
2840
  */
3171
2841
  withCharacterCounter?: boolean;
3172
- } & TextareaHTMLAttributes<HTMLTextAreaElement>;
3173
- declare const TextArea: react.ForwardRefExoticComponent<CommonInputProps & {
3174
- /** Spesifiserer om tegntelleren skal vises ved bruk av `maxLength` attributt.
3175
- * @default true
3176
- */
3177
- withCharacterCounter?: boolean;
3178
- } & TextareaHTMLAttributes<HTMLTextAreaElement> & react.RefAttributes<HTMLTextAreaElement>>;
3179
-
3180
- declare const TextInput: react__default.ForwardRefExoticComponent<CommonInputProps & {
3181
- componentSize?: InputSize;
3182
- } & react__default.InputHTMLAttributes<HTMLInputElement> & {
3183
- withCharacterCounter?: boolean;
3184
- icon?: SvgIcon;
3185
- prefix?: string;
3186
- suffix?: string;
3187
- } & react__default.RefAttributes<HTMLInputElement>>;
2842
+ } & ComponentPropsWithRef<'textarea'>;
2843
+ declare const TextArea: {
2844
+ ({ id, value, defaultValue, onChange, errorMessage, required, tip, label, readOnly, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, maxLength, withCharacterCounter, className, style, width, ref, ...rest }: TextAreaProps): react_jsx_runtime.JSX.Element;
2845
+ displayName: string;
2846
+ };
3188
2847
 
3189
2848
  type TextInputProps = InputProps & {
3190
2849
  /** Spesifiserer om tegntelleren skal vises ved bruk av `maxLength` attributt. */
@@ -3192,20 +2851,23 @@ type TextInputProps = InputProps & {
3192
2851
  /** Ikonet som vises i komponenten. */
3193
2852
  icon?: SvgIcon;
3194
2853
  /**
3195
- * Prefiks som vises før inputfeltet.
3196
- * OBS! Prefiks leses ikke av skjermleser og skal derfor ikke brukes som en erstatter
3197
- * for en beskrivende label. */
2854
+ * Prefiks som vises før inputfeltet. **OBS!** Prefiks leses ikke av skjermleser og skal derfor ikke brukes som en erstatter for en beskrivende label.
2855
+ * */
3198
2856
  prefix?: string;
3199
2857
  /**
3200
- * Suffiks som vises etter inputfeltet.
3201
- * OBS! Suffiks leses ikke av skjermleser og skal derfor ikke brukes som en erstatter
3202
- * for en beskrivende label. */
2858
+ * Suffiks som vises etter inputfeltet. **OBS!** Suffiks leses ikke av skjermleser og skal derfor ikke brukes som en erstatter for en beskrivende label.
2859
+ */
3203
2860
  suffix?: string;
3204
2861
  };
3205
2862
  interface TextAffixProps {
3206
2863
  readOnly?: boolean;
3207
2864
  }
3208
2865
 
2866
+ declare const TextInput: {
2867
+ ({ label, disabled, readOnly, errorMessage, tip, required, maxLength, onChange, id, width, componentSize, type, withCharacterCounter, className, style, value, defaultValue, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, icon, prefix, suffix, ref, ...rest }: TextInputProps): react_jsx_runtime.JSX.Element;
2868
+ displayName: string;
2869
+ };
2870
+
3209
2871
  type DdsTheme = keyof typeof ddsTokens;
3210
2872
  interface ThemeContextProps {
3211
2873
  theme: DdsTheme;
@@ -3814,40 +3476,10 @@ type ToggleProps = BaseComponentProps<HTMLElement, {
3814
3476
  */
3815
3477
  size?: ToggleSize;
3816
3478
  } & TogglePickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof TogglePickedHTMLAttributes>>;
3817
- declare const Toggle: react.ForwardRefExoticComponent<Pick<Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "aria-describedby" | "onBlur" | "name" | "value">, "id" | "className"> & {
3818
- /**Ledetekst; tillater bruk av f.eks. `<VisuallyHidden>` for usynlig tekst. */
3819
- children?: ReactNode;
3820
- /**
3821
- * Callback som blir kalt når brukeren endrer toggle-verdien.
3822
- */
3823
- onChange?: (checked: boolean) => void;
3824
- /**
3825
- * Om toggle er av eller på.
3826
- */
3827
- checked?: boolean;
3828
- /**
3829
- * Den initielle verdien når komponenten brukes uncontrolled.
3830
- * @default false
3831
- */
3832
- defaultChecked?: boolean;
3833
- /**Spesifiserer om input er `disabled`. */
3834
- disabled?: boolean;
3835
- /**
3836
- * Inputelementet blir `readonly` - den kan ikke interageres med. Brukes bl.a. til å presentere input brukeren har fylt ut andre steder.
3837
- */
3838
- readOnly?: boolean;
3839
- /**
3840
- * Indikerer at verdien prosesseres; viser loading-tilstand og setter `aria-disabled`.
3841
- */
3842
- isLoading?: boolean;
3843
- /**
3844
- * Størrelse.
3845
- * @default "medium"
3846
- */
3847
- size?: ToggleSize;
3848
- } & TogglePickedHTMLAttributes & {
3849
- htmlProps?: Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "aria-describedby" | "onBlur" | "name" | "value"> | undefined;
3850
- } & react.RefAttributes<HTMLInputElement>>;
3479
+ declare const Toggle: {
3480
+ ({ id, children, size, checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, htmlProps, ...rest }: ToggleProps): react_jsx_runtime.JSX.Element;
3481
+ displayName: string;
3482
+ };
3851
3483
 
3852
3484
  type ToggleBarValue = string | number | null | undefined;
3853
3485
  type ToggleBarSize = Extract<Size, 'xsmall' | 'small' | 'medium' | 'large'>;
@@ -3881,22 +3513,26 @@ type ToggleRadioProps = BaseComponentProps<HTMLInputElement, {
3881
3513
  /**Ikonet som vises i komponenten. */
3882
3514
  icon?: SvgIcon;
3883
3515
  } & PickedInputHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof PickedInputHTMLAttributes>>;
3884
- declare const ToggleRadio: react.ForwardRefExoticComponent<Pick<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-label" | "aria-labelledby" | "onChange" | "name" | "value" | "checked">, "id" | "className"> & {
3885
- /**Ledetekst som vises i komponenten. */
3886
- label?: string;
3887
- /**Ikonet som vises i komponenten. */
3888
- icon?: SvgIcon;
3889
- } & PickedInputHTMLAttributes & {
3890
- htmlProps?: Omit<InputHTMLAttributes<HTMLInputElement>, "aria-label" | "aria-labelledby" | "onChange" | "name" | "value" | "checked"> | undefined;
3891
- } & react.RefAttributes<HTMLInputElement>>;
3516
+ declare const ToggleRadio: {
3517
+ ({ value, name, onChange, checked, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, icon, label, htmlProps, className, id, ...rest }: ToggleRadioProps): react_jsx_runtime.JSX.Element;
3518
+ displayName: string;
3519
+ };
3892
3520
 
3893
- declare const ToggleButton: react.ForwardRefExoticComponent<Pick<Omit<react.InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "defaultValue" | "aria-describedby" | "onBlur" | "onChange" | "name" | "value" | "checked">, "id" | "className"> & {
3521
+ type ToggleButtonProps = BaseComponentProps<HTMLInputElement, {
3522
+ /**Ledetekst for inputelementet. */
3894
3523
  label?: string;
3524
+ /** Ikon. */
3895
3525
  icon?: SvgIcon;
3896
- size?: "small" | "xsmall";
3897
- } & CheckboxPickedHTMLAttributes & {
3898
- htmlProps?: Omit<react.InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "defaultValue" | "aria-describedby" | "onBlur" | "onChange" | "name" | "value" | "checked"> | undefined;
3899
- } & react.RefAttributes<HTMLInputElement>>;
3526
+ /**Størrelse.
3527
+ * @default 'small'
3528
+ */
3529
+ size?: 'small' | 'xsmall';
3530
+ } & CheckboxPickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof CheckboxPickedHTMLAttributes>>;
3531
+
3532
+ declare const ToggleButton: {
3533
+ ({ id, label, icon, size, className, htmlProps, ...rest }: ToggleButtonProps): react_jsx_runtime.JSX.Element;
3534
+ displayName: string;
3535
+ };
3900
3536
 
3901
3537
  type Direction = 'row' | 'column';
3902
3538
  type ToggleButtonGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
@@ -3914,18 +3550,9 @@ declare const ToggleButtonGroup: {
3914
3550
  displayName: string;
3915
3551
  };
3916
3552
 
3917
- type ToggleButtonProps = BaseComponentProps<HTMLInputElement, {
3918
- /**Ledetekst for inputelementet. */
3919
- label?: string;
3920
- /** Ikon. */
3921
- icon?: SvgIcon;
3922
- /**Størrelse.
3923
- * @default 'small'
3924
- */
3925
- size?: 'small' | 'xsmall';
3926
- } & CheckboxPickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof CheckboxPickedHTMLAttributes>>;
3927
-
3928
- type AnchorElement = react__default.ReactElement & react__default.RefAttributes<HTMLElement>;
3553
+ type AnchorElement = ReactElement<HTMLAttributes<HTMLElement> & {
3554
+ ref: Ref<HTMLElement>;
3555
+ }>;
3929
3556
  type PickedHTMLAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'style' | 'onMouseLeave' | 'onMouseOver'>;
3930
3557
  type TooltipProps = BaseComponentProps<HTMLDivElement, {
3931
3558
  /**Innhold i tooltip. */
@@ -3943,24 +3570,10 @@ type TooltipProps = BaseComponentProps<HTMLDivElement, {
3943
3570
  /**`id` for tooltip. */
3944
3571
  tooltipId?: string;
3945
3572
  } & PickedHTMLAttributes, Omit<HTMLAttributes<HTMLDivElement>, 'children' | keyof PickedHTMLAttributes>>;
3946
- declare const Tooltip: react__default.ForwardRefExoticComponent<Pick<Omit<react__default.HTMLAttributes<HTMLDivElement>, "style" | "children" | "onMouseLeave" | "onMouseOver">, "id" | "className"> & {
3947
- /**Innhold i tooltip. */
3948
- text: string;
3949
- /**Plassering i forhold til anchor-elementet.
3950
- * @default "bottom"
3951
- */
3952
- placement?: Placement$1;
3953
- /**Anchor-elementet. */
3954
- children: AnchorElement;
3955
- /**Forsinkelse for når tooltip skal dukke opp. Oppgis i millisekunder.
3956
- * @default 100
3957
- */
3958
- delay?: number;
3959
- /**`id` for tooltip. */
3960
- tooltipId?: string;
3961
- } & PickedHTMLAttributes & {
3962
- htmlProps?: Omit<react__default.HTMLAttributes<HTMLDivElement>, "style" | "children" | "onMouseLeave" | "onMouseOver"> | undefined;
3963
- } & react__default.RefAttributes<HTMLDivElement>>;
3573
+ declare const Tooltip: {
3574
+ ({ text, placement, children, tooltipId, delay, style, onMouseLeave, onMouseOver, id, ref, className, htmlProps, ...rest }: TooltipProps): react_jsx_runtime.JSX.Element;
3575
+ displayName: string;
3576
+ };
3964
3577
 
3965
3578
  type VisuallyHiddenDivProps = BaseComponentPropsWithChildren<HTMLDivElement, {
3966
3579
  as: 'div';
@@ -3975,4 +3588,4 @@ declare const VisuallyHidden: {
3975
3588
  displayName: string;
3976
3589
  };
3977
3590
 
3978
- export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, type AccordionProps, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDown, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, type As, AttachmentIcon, BackLink, type BackLinkProps, Backdrop, BarChartBoxedIcon, BarChartIcon, type BaseComponentProps, type BaseComponentPropsWithChildren, type BaseItemProps, type BaseLabelProps, type BaseTypographyProps, BlockIcon, BookIcon, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type BreakpointBasedProps, BuildCircledIcon, BuildIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonPurpose, type ButtonSize, Calendar, CalendarIcon, CalendarMonthIcon, type CalendarProps, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, type Callback, Caption, type CaptionProps, Card, type CardAppearance, CardExpandable, CardExpandableBody, type CardExpandableBodyProps, CardExpandableHeader, type CardExpandableHeaderProps, type CardExpandableProps, type CardProps, type CardType, CaringIcon, CharCounter, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxPickedHTMLAttributes, type CheckboxProps, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLargeLeftIcon, ChevronLargeRightIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, type CollapsibleTableProps, CollapsibleRow as CollapsibleTableRow, type ColumnsOccupied, CommentIcon, type CommonInputProps, Contrast, type ContrastProps, CopyIcon, CourtIcon, DatePicker, type DatePickerProps, DateRangeIcon, type DdsTheme, DeathsIcon, DescriptionList, type DescriptionListAppearance, DescriptionListDesc, type DescriptionListDescProps, DescriptionListGroup, type DescriptionListGroupProps, type DescriptionListProps, DescriptionListTerm, type DescriptionListTermProps, DetailList, DetailListDesc, type DetailListDescProps, type DetailListProps, DetailListRow, type DetailListRowProps, type DetailListSize, DetailListTerm, type DetailListTermProps, type Direction$1 as Direction, Divider, type DividerColor, type DividerProps, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, type DrawerGroupProps, type DrawerPlacement, type DrawerProps, type DrawerSize, EditIcon, ElementAs, type ElementAsProps, EmptyContent, type EmptyContentProps, ErrorIcon, ExclaimIcon, ExpandIcon, type ExpandableCardProps, type ExtractStrict, FacebookIcon, FamilyIcon, FavStar, type FavStarProps, Feedback, FeedbackIcon, type FeedbackProps, Fieldset, type FieldsetProps, FileAddIcon, FileIcon, type FileList, FileShieldedIcon, FileTextIcon, FileUploader, type FileUploaderAccept, type FileUploaderProps, FilterIcon, FilterListIcon, FilterListOffIcon, FilterOffIcon, FindInPageIcon, FlickrIcon, type FloatingStyles, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, type FooterLeftProps, FooterList, FooterListGroup, type FooterListGroupProps, FooterListHeader, type FooterListHeaderProps, type FooterListProps, FooterLogo, type FooterLogoProps, type FooterProps, FooterSocialsGroup, type FooterSocialsGroupProps, FooterSocialsList, type FooterSocialsListProps, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, type GlobalMessageProps, type GlobalMessagePurpose, Grid, GridChild, type GridChildProps, type GridProps, GuardianIcon, HStack, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassBottomIcon, HourglassDisabledIcon, HourglassEmptyIcon, HourglassFullIcon, HourglassTopIcon, type HyphenTypographyType, Icon, type IconPosition, type IconProps, type IconSize, ImageIcon, type InfoCardProps, InfoIcon, InlineButton, type InlineButtonProps, InlineEditInput, type InlineEditInputProps, InlineEditTextArea, type InlineEditTextAreaProps, type InlineElement, Input, InputMessage, type InputMessageProps, type InputMessageType, type InputProps, type InputSize, type InputTypographyTypes, InstagramIcon, InternalHeader, type InternalHeaderProps, JordskifterettIcon, JordskiftesakIcon, KeyIcon, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LibraryAddIcon, LineChartIcon, Link, LinkIcon, LinkOffIcon, type LinkProps, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, type ListItemProps, type ListProps, type ListType, type ListTypographyType, LocalMessage, type LocalMessageLayout, type LocalMessageProps, type LocalMessagePurpose, LocationIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MenuIcon, MinusCirledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, NativeSelectPlaceholder, type NativeSelectPlaceholderProps, type NativeSelectProps, type NavigationCardProps, NotarialIcon, NotificationsIcon, NotificationsOffIcon, type Nullable, OnlineMeetingIcon, OpenExternalIcon, type OtherTypographyType, OverflowMenu, OverflowMenuButton, type OverflowMenuButtonProps, OverflowMenuDivider, OverflowMenuGroup, type OverflowMenuGroupProps, OverflowMenuLink, type OverflowMenuLinkProps, OverflowMenuList, OverflowMenuListHeader, type OverflowMenuListItemBaseProps, type OverflowMenuProps, OverflowMenuSpan, type OverflowMenuSpanProps, Pagination, type PaginationOption, type PaginationProps, Paper, type PaperProps, Paragraph, type ParagraphProps, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, type PhoneInputProps, type PhoneInputValue, PinIcon, type Placement, PlusCircledIcon, PlusIcon, Popover, PopoverGroup, type PopoverGroupProps, type PopoverProps, type PopoverSizeProps, PowerOfAttorneyIcon, PrintIcon, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressTracker, ProgressTrackerItem, type ProgressTrackerItemProps, type ProgressTrackerProps, PropertyIcon, type PropsOf, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, ReplayIcon, ScreenSize, type ScreenSizeLiteral, Search, SearchAutocompleteWrapper, type SearchAutocompleteWrapperProps, type SearchButtonProps, type SearchData, SearchIcon, type SearchProps, type SearchSize, SearchSuggestions, type SearchSuggestionsProps, Select, type SelectForwardRefType, type SelectOption, type SelectProps, SettingsIcon, type Size, Skeleton, type SkeletonAppearance, type SkeletonProps, SkipToContent, type SkipToContentProps, SmsIcon, type SortOrder, Spinner, type SpinnerProps, SplitButton, type SplitButtonPrimaryActionProps, type SplitButtonProps, type SplitButtonPurpose, type SplitButtonSecondaryActionsProps, type StackProps, type StackSpacing, type StackStyleProps, StarFilledIcon, StarHalfFilled, StarIcon, StatefulInput, type StatefulInputProps, type StaticTypographyType, type SvgIcon, type SvgProps, SvgWrapper, SyncIcon, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, TableWrapper, Tabs, type TabsProps, Tag, type TagAppearance, type TagProps, type TagPurpose, type TextAffixProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThemeContext, ThemeProvider, type ThemeProviderProps, ThumbDownFilledIcon, ThumbDownIcon, type ThumbIconProps, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, type TimePickerProps, TingrettIcon, TipIcon, Toggle, ToggleBar, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleProps, ToggleRadio, type ToggleRadioProps, type ToggleSize, Tooltip, type TooltipProps, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, type TypographyAnchorType, type TypographyBodyType, type TypographyComponentProps, type TypographyHeadingType, type TypographyLabelType, type TypographyLeadType, type TypographyProps, type TypographyType, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, type UseFloatPositionOptions, VStack, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, type VisuallyHiddenProps, WarningIcon, WebexIcon, type WeightedSearchData, type WidthProps, type WithRequiredIf, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, countryOptions, createSelectOptions, dateValueToNativeDate, defaultTypographyType, defaultTypographyTypeClassName, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getDefaultText, getElementType, getLiteralScreenSize, getTypographyCn, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, index as icons, inheritLinkStyling, inlineElements, inputTypographyTypes, isCaption, isGridColumn, isHeading, isInlineElement, isKeyboardEvent, isLegend, isRelativeGridColumn, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderCharCounter, renderInputMessage, scrollbarStyling, spacingPropToCn, typographyTypes, useCombinedRef, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, visibilityTransition };
3591
+ export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, type AccordionProps, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDown, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, type As, AttachmentIcon, BackLink, type BackLinkProps, Backdrop, BarChartBoxedIcon, BarChartIcon, type BaseComponentProps, type BaseComponentPropsWithChildren, type BaseItemProps, type BaseLabelProps, type BaseTypographyProps, BlockIcon, BookIcon, type BorderColor, type BorderColorCn, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type BreakpointBasedProps, BuildCircledIcon, BuildIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonPurpose, type ButtonSize, Calendar, CalendarIcon, CalendarMonthIcon, type CalendarProps, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, type Callback, Caption, type CaptionProps, Card, type CardAppearance, CardExpandable, CardExpandableBody, type CardExpandableBodyProps, CardExpandableHeader, type CardExpandableHeaderProps, type CardExpandableProps, type CardProps, type CardType, CaringIcon, CharCounter, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxPickedHTMLAttributes, type CheckboxProps, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLargeLeftIcon, ChevronLargeRightIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, type CollapsibleTableProps, CollapsibleRow as CollapsibleTableRow, type ColumnsOccupied, CommentIcon, type CommonInputProps, Contrast, type ContrastProps, CopyIcon, CourtIcon, DatePicker, type DatePickerProps, DateRangeIcon, type DdsTheme, DeathsIcon, DescriptionList, type DescriptionListAppearance, DescriptionListDesc, type DescriptionListDescProps, DescriptionListGroup, type DescriptionListGroupProps, type DescriptionListProps, DescriptionListTerm, type DescriptionListTermProps, DetailList, DetailListDesc, type DetailListDescProps, type DetailListProps, DetailListRow, type DetailListRowProps, type DetailListSize, DetailListTerm, type DetailListTermProps, type Direction$1 as Direction, Divider, type DividerColor, type DividerProps, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, type DrawerGroupProps, type DrawerPlacement, type DrawerProps, type DrawerSize, EditIcon, ElementAs, EmptyContent, type EmptyContentProps, ErrorIcon, ExclaimIcon, ExpandIcon, type ExpandableCardProps, type ExtractStrict, FacebookIcon, FamilyIcon, FavStar, type FavStarProps, Feedback, FeedbackIcon, type FeedbackProps, Fieldset, type FieldsetProps, FileAddIcon, FileIcon, type FileList, FileShieldedIcon, FileTextIcon, FileUploader, type FileUploaderAccept, type FileUploaderProps, FilterIcon, FilterListIcon, FilterListOffIcon, FilterOffIcon, FindInPageIcon, FlickrIcon, type FloatingStyles, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, type FooterLeftProps, FooterList, FooterListGroup, type FooterListGroupProps, FooterListHeader, type FooterListHeaderProps, type FooterListProps, FooterLogo, type FooterLogoProps, type FooterProps, FooterSocialsGroup, type FooterSocialsGroupProps, FooterSocialsList, type FooterSocialsListProps, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, type GlobalMessageProps, type GlobalMessagePurpose, Grid, GridChild, type GridChildProps, type GridProps, GuardianIcon, HStack, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassBottomIcon, HourglassDisabledIcon, HourglassEmptyIcon, HourglassFullIcon, HourglassTopIcon, type HyphenTypographyType, Icon, type IconPosition, type IconProps, type IconSize, ImageIcon, type InfoCardProps, InfoIcon, InlineButton, type InlineButtonProps, InlineEditInput, type InlineEditInputProps, InlineEditTextArea, type InlineEditTextAreaProps, type InlineElement, Input, InputMessage, type InputMessageProps, type InputMessageType, type InputProps, type InputSize, type InputTypographyTypes, InstagramIcon, InternalHeader, type InternalHeaderProps, JordskifterettIcon, JordskiftesakIcon, KeyIcon, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LibraryAddIcon, LineChartIcon, Link, LinkIcon, LinkOffIcon, type LinkProps, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, type ListItemProps, type ListProps, type ListType, type ListTypographyType, LocalMessage, type LocalMessageLayout, type LocalMessageProps, type LocalMessagePurpose, LocationIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MenuIcon, MinusCirledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, NativeSelectPlaceholder, type NativeSelectPlaceholderProps, type NativeSelectProps, type NavigationCardProps, NotarialIcon, NotificationsIcon, NotificationsOffIcon, type Nullable, OnlineMeetingIcon, OpenExternalIcon, type OtherTypographyType, OverflowMenu, OverflowMenuButton, type OverflowMenuButtonProps, OverflowMenuDivider, OverflowMenuGroup, type OverflowMenuGroupProps, OverflowMenuLink, type OverflowMenuLinkProps, OverflowMenuList, OverflowMenuListHeader, type OverflowMenuListItemBaseProps, type OverflowMenuProps, OverflowMenuSpan, type OverflowMenuSpanProps, Pagination, type PaginationOption, type PaginationProps, Paper, type PaperProps, Paragraph, type ParagraphProps, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, type PhoneInputProps, type PhoneInputValue, PinIcon, type Placement, PlusCircledIcon, PlusIcon, type PolymorphicProps, Popover, PopoverGroup, type PopoverGroupProps, type PopoverProps, type PopoverSizeProps, PowerOfAttorneyIcon, PrintIcon, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressTracker, ProgressTrackerItem, type ProgressTrackerItemProps, type ProgressTrackerProps, PropertyIcon, type PropsOf, type PropsOfWithRef, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, ReplayIcon, ScreenSize, type ScreenSizeLiteral, Search, SearchAutocompleteWrapper, type SearchAutocompleteWrapperProps, type SearchButtonProps, type SearchData, SearchIcon, type SearchProps, type SearchSize, SearchSuggestions, type SearchSuggestionsProps, Select, type SelectForwardRefType, type SelectOption, type SelectProps, SettingsIcon, type Size, Skeleton, type SkeletonAppearance, type SkeletonProps, SkipToContent, type SkipToContentProps, SmsIcon, type SortOrder, Spinner, type SpinnerProps, SplitButton, type SplitButtonPrimaryActionProps, type SplitButtonProps, type SplitButtonPurpose, type SplitButtonSecondaryActionsProps, type StackProps, type StackSpacing, type StackStyleProps, StarFilledIcon, StarHalfFilled, StarIcon, StatefulInput, type StatefulInputProps, type StaticTypographyType, StylelessList, type StylelessListProps, type SvgIcon, type SvgProps, SvgWrapper, SyncIcon, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, TableWrapper, Tabs, type TabsProps, Tag, type TagAppearance, type TagProps, type TagPurpose, type TextAffixProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThemeContext, ThemeProvider, type ThemeProviderProps, ThumbDownFilledIcon, ThumbDownIcon, type ThumbIconProps, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, type TimePickerProps, TingrettIcon, TipIcon, Toggle, ToggleBar, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleProps, ToggleRadio, type ToggleRadioProps, type ToggleSize, Tooltip, type TooltipProps, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, type TypographyAnchorType, type TypographyBodyType, type TypographyComponentProps, type TypographyHeadingType, type TypographyLabelType, type TypographyLeadType, type TypographyProps, type TypographyType, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, type UseFloatPositionOptions, VStack, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, type VisuallyHiddenProps, WarningIcon, WebexIcon, type WeightedSearchData, type WidthProps, type WithRequiredIf, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, countryOptions, createSelectOptions, dateValueToNativeDate, defaultTypographyType, defaultTypographyTypeClassName, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getBorderCn, getDefaultText, getElementType, getLiteralScreenSize, getTypographyCn, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, index as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isCaption, isGridColumn, isHeading, isInlineElement, isKeyboardEvent, isLegend, isRelativeGridColumn, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderCharCounter, renderInputMessage, scrollbarStyling, spacingPropToCn, typographyTypes, useCombinedRef, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, visibilityTransition };