@norges-domstoler/dds-components 19.1.0 → 20.0.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.css +16 -16
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +543 -919
- package/dist/index.d.ts +543 -919
- package/dist/index.js +4740 -5094
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4525 -4942
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -11
package/dist/index.d.ts
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
|
-
|
|
17
|
+
type BackdropProps = {
|
|
18
18
|
isMounted?: boolean;
|
|
19
|
-
zIndex:
|
|
20
|
-
} & Pick<
|
|
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
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
/**
|
|
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:
|
|
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:
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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:
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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:
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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:
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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:
|
|
276
|
-
|
|
277
|
-
|
|
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
|
-
} &
|
|
277
|
+
} & ComponentPropsWithRef<'input'>;
|
|
303
278
|
type StatefulInputProps = {
|
|
304
279
|
hasErrorMessage: boolean;
|
|
305
|
-
} &
|
|
280
|
+
} & Omit<InputProps, keyof CommonInputProps>;
|
|
306
281
|
type InputTypographyTypes = Record<InputSize, StaticTypographyType>;
|
|
307
282
|
|
|
308
|
-
declare const
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
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 =
|
|
302
|
+
type Border = BorderColor;
|
|
325
303
|
type PaperProps = {
|
|
326
304
|
elevation?: Elevation;
|
|
327
305
|
border?: Border;
|
|
328
|
-
} &
|
|
329
|
-
declare const Paper:
|
|
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 =
|
|
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<
|
|
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
|
|
|
@@ -448,14 +426,14 @@ declare const useMountTransition: (isMounted: boolean, unmountDelay: number) =>
|
|
|
448
426
|
* ```
|
|
449
427
|
* const [isOpen, setOpen] = useState(true);
|
|
450
428
|
* const ref = useRef<HTMLElement>(null);
|
|
451
|
-
* useOnClickOutside(ref, () => setOpen(false));
|
|
429
|
+
* useOnClickOutside(ref.current, () => setOpen(false));
|
|
452
430
|
*
|
|
453
431
|
* return <div ref={ref}>innhold</div>
|
|
454
432
|
* ```
|
|
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>, 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:
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
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:
|
|
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:
|
|
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<
|
|
1155
|
-
declare const BackLink:
|
|
1156
|
-
|
|
1157
|
-
|
|
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 =
|
|
1163
|
-
declare const
|
|
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:
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
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:
|
|
1238
|
-
size
|
|
1239
|
-
|
|
1240
|
-
|
|
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:
|
|
1277
|
-
|
|
1278
|
-
|
|
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.
|
|
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:
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
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
|
|
1377
|
-
|
|
1378
|
-
|
|
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
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
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
|
|
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
|
-
|
|
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:
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
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 =
|
|
1457
|
-
declare const DescriptionListTerm:
|
|
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:
|
|
1464
|
-
|
|
1465
|
-
|
|
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:
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
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:
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
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:
|
|
1535
|
-
|
|
1536
|
-
|
|
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:
|
|
1540
|
-
|
|
1541
|
-
|
|
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:
|
|
1545
|
-
|
|
1546
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
1660
|
+
* @default Dra og slipp filer her eller
|
|
1775
1661
|
*/
|
|
1776
1662
|
dropAreaLabel?: string;
|
|
1777
1663
|
/**Ledetekst for opplastingsknappen.
|
|
1778
|
-
* @default
|
|
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<
|
|
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 =
|
|
1802
|
-
declare const Footer:
|
|
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:
|
|
1691
|
+
declare const FooterListHeader: (props: FooterListHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
1806
1692
|
|
|
1807
1693
|
type HideBreakpoint = 'xs' | 'sm' | 'md';
|
|
1808
|
-
type FooterLogoProps =
|
|
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:
|
|
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
|
|
1815
|
-
declare const
|
|
1703
|
+
type FooterSocialsListProps = ComponentPropsWithRef<'ul'>;
|
|
1704
|
+
declare const FooterSocialsList: ({ className, ...rest }: FooterSocialsListProps) => react_jsx_runtime.JSX.Element;
|
|
1816
1705
|
|
|
1817
|
-
type
|
|
1818
|
-
declare const
|
|
1706
|
+
type FooterSocialsGroupProps = ComponentPropsWithRef<'div'>;
|
|
1707
|
+
declare const FooterSocialsGroup: ({ className, ...rest }: FooterSocialsGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1819
1708
|
|
|
1820
|
-
type
|
|
1821
|
-
declare const
|
|
1709
|
+
type FooterListGroupProps = ComponentPropsWithRef<'div'>;
|
|
1710
|
+
declare const FooterListGroup: ({ className, ...rest }: FooterListGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1822
1711
|
|
|
1823
|
-
type
|
|
1824
|
-
declare const
|
|
1712
|
+
type FooterLeftProps = ComponentPropsWithRef<'div'>;
|
|
1713
|
+
declare const FooterLeft: ({ className, ...rest }: FooterLeftProps) => react_jsx_runtime.JSX.Element;
|
|
1825
1714
|
|
|
1826
|
-
type
|
|
1827
|
-
|
|
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:
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
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 =
|
|
1902
|
-
declare const InlineButton:
|
|
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
|
|
1937
|
-
type
|
|
1938
|
-
type
|
|
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:
|
|
1825
|
+
declare const InlineEditTextArea: ({ onSetValue, emptiable, value, onFocus, onChange, onBlur, ref, ...rest }: InlineEditTextAreaProps) => react_jsx_runtime.JSX.Element;
|
|
1941
1826
|
|
|
1942
|
-
declare const InlineEditInput:
|
|
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:
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
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:
|
|
2018
|
-
|
|
2019
|
-
|
|
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 =
|
|
2033
|
-
declare const ListItem:
|
|
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:
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
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:
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
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:
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
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
|
-
|
|
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
|
|
1972
|
+
declare const OverflowMenu: {
|
|
1973
|
+
({ placement, offset, className, htmlProps, ref, ...rest }: OverflowMenuProps): react_jsx_runtime.JSX.Element;
|
|
1974
|
+
displayName: string;
|
|
1975
|
+
};
|
|
2156
1976
|
|
|
2157
|
-
|
|
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
|
|
2166
|
-
type OverflowMenuLinkProps = OverflowMenuListItemBaseProps
|
|
2167
|
-
type OverflowMenuSpanProps = OverflowMenuListItemBaseProps
|
|
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:
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
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:
|
|
2327
|
-
|
|
2328
|
-
|
|
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;
|
|
@@ -2391,35 +2176,17 @@ type PopoverProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
2391
2176
|
* @default true
|
|
2392
2177
|
*/
|
|
2393
2178
|
returnFocusOnBlur?: boolean;
|
|
2179
|
+
/**Anchor ref ved custom kontrollert bruk uten `<PopoverGroup>` Kun for corner cases. */
|
|
2180
|
+
anchorRef?: RefObject<HTMLElement | null>;
|
|
2181
|
+
/**Spesifiserer om popover er åpen ved custom kontrollert bruk uten `<PopoverGroup>` Kun for corner cases. */
|
|
2182
|
+
isOpen?: boolean;
|
|
2183
|
+
/**Callback for lukking ved custom kontrollert bruk uten `<PopoverGroup>` Kun for corner cases. */
|
|
2184
|
+
onClose?: () => void;
|
|
2394
2185
|
}>;
|
|
2395
|
-
declare const Popover:
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
* @default true
|
|
2400
|
-
*/
|
|
2401
|
-
withCloseButton?: boolean;
|
|
2402
|
-
/**Spesifiserer hvor komponenten skal plasseres i forhold til anchor-elementet.
|
|
2403
|
-
* @default "bottom"
|
|
2404
|
-
*/
|
|
2405
|
-
placement?: Placement;
|
|
2406
|
-
/**Avstand fra anchor-elementet i px.
|
|
2407
|
-
* @default 8
|
|
2408
|
-
*/
|
|
2409
|
-
offset?: number;
|
|
2410
|
-
/** Ekstra logikk kjørt når popover mister fokus. */
|
|
2411
|
-
onBlur?: () => void;
|
|
2412
|
-
/**Custom størrelse. */
|
|
2413
|
-
sizeProps?: PopoverSizeProps;
|
|
2414
|
-
/** Om focus skal returneres ved `blur`
|
|
2415
|
-
* @default true
|
|
2416
|
-
*/
|
|
2417
|
-
returnFocusOnBlur?: boolean;
|
|
2418
|
-
} & {
|
|
2419
|
-
children?: ReactNode | undefined;
|
|
2420
|
-
} & {
|
|
2421
|
-
htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
|
|
2422
|
-
} & 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
|
+
};
|
|
2423
2190
|
|
|
2424
2191
|
interface PopoverGroupProps {
|
|
2425
2192
|
/** Barna til wrapperen: anchor-element som det første og `<Popover>` som det andre. */
|
|
@@ -2501,26 +2268,27 @@ type ProgressBarProps = Pick<CommonInputProps, 'tip' | 'errorMessage' | 'label'
|
|
|
2501
2268
|
*/
|
|
2502
2269
|
max?: number;
|
|
2503
2270
|
} & Omit<ComponentPropsWithRef<'progress'>, 'max' | 'value'>;
|
|
2504
|
-
declare const ProgressBar:
|
|
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
|
+
};
|
|
2505
2275
|
|
|
2506
2276
|
type SearchSize = 'small' | 'medium' | 'large';
|
|
2507
2277
|
type SearchButtonProps = {
|
|
2508
2278
|
label?: string;
|
|
2509
2279
|
purpose?: ExtractStrict<ButtonPurpose, 'primary' | 'secondary'>;
|
|
2510
|
-
} & Pick<ButtonProps, 'loading' | 'loadingTooltip'> &
|
|
2280
|
+
} & Pick<ButtonProps, 'loading' | 'loadingTooltip'> & ComponentPropsWithRef<'button'>;
|
|
2511
2281
|
|
|
2512
2282
|
type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
|
|
2513
2283
|
/**Størrelsen på komponenten. */
|
|
2514
2284
|
componentSize?: SearchSize;
|
|
2515
2285
|
/**Props for søkeknappen. */
|
|
2516
2286
|
buttonProps?: SearchButtonProps;
|
|
2517
|
-
} &
|
|
2518
|
-
declare const Search$1:
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
buttonProps?: SearchButtonProps;
|
|
2523
|
-
} & 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
|
+
};
|
|
2524
2292
|
|
|
2525
2293
|
interface WeightedValue {
|
|
2526
2294
|
text: string;
|
|
@@ -2569,20 +2337,10 @@ type SearchSuggestionsProps = BaseComponentProps<HTMLDivElement, Pick<SearchProp
|
|
|
2569
2337
|
/**Id til `<Search>`. */
|
|
2570
2338
|
searchId: string;
|
|
2571
2339
|
}>;
|
|
2572
|
-
declare const SearchSuggestions:
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
showSuggestions?: boolean;
|
|
2577
|
-
/**Callback når et forslag blir valgt, inkludert søkefunksjon. */
|
|
2578
|
-
onSuggestionClick?: (e: MouseEvent$1<HTMLButtonElement>) => void;
|
|
2579
|
-
/** Maks antall forslag vist i listen. */
|
|
2580
|
-
maxSuggestions?: number;
|
|
2581
|
-
/**Id til `<Search>`. */
|
|
2582
|
-
searchId: string;
|
|
2583
|
-
} & {
|
|
2584
|
-
htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
|
|
2585
|
-
} & 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
|
+
};
|
|
2586
2344
|
|
|
2587
2345
|
type SearchCompoundProps = typeof Search$1 & {
|
|
2588
2346
|
AutocompleteWrapper: typeof SearchAutocompleteWrapper;
|
|
@@ -2622,16 +2380,22 @@ type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
|
2622
2380
|
customSingleValueElement?: (props: SingleValueProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
|
|
2623
2381
|
/** Testid. Legges på control-div med suffiks "control". */
|
|
2624
2382
|
'data-testid'?: string;
|
|
2625
|
-
|
|
2626
|
-
type SelectForwardRefType<Option, IsMulti extends boolean> = React.ForwardedRef<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
|
|
2627
|
-
declare const Select: <Option = unknown, IsMulti extends boolean = false>(props: SelectProps<Option, IsMulti> & {
|
|
2383
|
+
/**Ref til komponenten. */
|
|
2628
2384
|
ref?: SelectForwardRefType<Option, IsMulti>;
|
|
2629
|
-
}
|
|
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
|
+
}
|
|
2630
2391
|
|
|
2631
|
-
type NativeSelectProps = CommonInputProps & Pick<InputProps, 'componentSize' | 'readOnly'> &
|
|
2632
|
-
declare const NativeSelect:
|
|
2633
|
-
type NativeSelectPlaceholderProps =
|
|
2634
|
-
declare const NativeSelectPlaceholder:
|
|
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
|
+
};
|
|
2635
2399
|
|
|
2636
2400
|
declare const createSelectOptions: <TValue extends string | number>(...args: Array<TValue>) => Array<SelectOption<TValue>>;
|
|
2637
2401
|
|
|
@@ -2671,11 +2435,10 @@ type CheckboxProps = BaseComponentProps<HTMLInputElement, SelectionControlCommon
|
|
|
2671
2435
|
indeterminate?: boolean;
|
|
2672
2436
|
} & CheckboxPickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof CheckboxPickedHTMLAttributes>>;
|
|
2673
2437
|
|
|
2674
|
-
declare const Checkbox:
|
|
2675
|
-
indeterminate
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
} & 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
|
+
};
|
|
2679
2442
|
|
|
2680
2443
|
type CheckboxGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
|
|
2681
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. */
|
|
@@ -2686,24 +2449,15 @@ declare const CheckboxGroup: {
|
|
|
2686
2449
|
displayName: string;
|
|
2687
2450
|
};
|
|
2688
2451
|
|
|
2689
|
-
declare const RadioButton: react.ForwardRefExoticComponent<Pick<Omit<react.InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "onChange" | "name" | "value" | "checked" | "readOnly" | "required">, "id" | "className"> & SelectionControlCommonProps & {
|
|
2690
|
-
"aria-describedby"?: string | undefined | undefined;
|
|
2691
|
-
onChange?: react.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
2692
|
-
name?: string | undefined | undefined;
|
|
2693
|
-
value?: string | number | readonly string[] | undefined;
|
|
2694
|
-
checked?: boolean | undefined | undefined;
|
|
2695
|
-
readOnly?: boolean | undefined | undefined;
|
|
2696
|
-
required?: boolean | undefined | undefined;
|
|
2697
|
-
} & {
|
|
2698
|
-
children?: react.ReactNode | undefined;
|
|
2699
|
-
} & {
|
|
2700
|
-
htmlProps?: Omit<react.InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "onChange" | "name" | "value" | "checked" | "readOnly" | "required"> | undefined;
|
|
2701
|
-
} & react.RefAttributes<HTMLInputElement>>;
|
|
2702
|
-
|
|
2703
2452
|
type PickedInputHTMLAttributes$1 = Pick<InputHTMLAttributes<HTMLInputElement>, 'name' | 'readOnly' | 'checked' | 'value' | 'required' | 'onChange' | 'aria-describedby'>;
|
|
2704
2453
|
type RadioButtonProps = BaseComponentPropsWithChildren<HTMLInputElement, SelectionControlCommonProps & PickedInputHTMLAttributes$1, Omit<InputHTMLAttributes<HTMLInputElement>, keyof PickedInputHTMLAttributes$1>>;
|
|
2705
2454
|
type RadioValue = PickedInputHTMLAttributes$1['value'];
|
|
2706
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
|
+
|
|
2707
2461
|
type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
|
|
2708
2462
|
/** Gir alle barna `name` prop.*/
|
|
2709
2463
|
name?: string;
|
|
@@ -2716,9 +2470,10 @@ type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithCh
|
|
|
2716
2470
|
/**Default verdi - en `<RadioButton>` med denne verdien blir forhåndsvalgt med uncontrolled state. */
|
|
2717
2471
|
defaultValue?: T | undefined;
|
|
2718
2472
|
}, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
2719
|
-
declare const RadioButtonGroup:
|
|
2720
|
-
|
|
2721
|
-
|
|
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
|
+
};
|
|
2722
2477
|
|
|
2723
2478
|
type SkeletonAppearance = 'circle' | 'rectangle';
|
|
2724
2479
|
type SkeletonProps = {
|
|
@@ -2731,7 +2486,10 @@ type SkeletonProps = {
|
|
|
2731
2486
|
*/
|
|
2732
2487
|
borderRadius?: Property.BorderRadius;
|
|
2733
2488
|
} & ComponentPropsWithRef<'div'>;
|
|
2734
|
-
declare const Skeleton:
|
|
2489
|
+
declare const Skeleton: {
|
|
2490
|
+
({ width, height, borderRadius, className, style, ref, ...rest }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
2491
|
+
displayName: string;
|
|
2492
|
+
};
|
|
2735
2493
|
|
|
2736
2494
|
type SkipToContentProps = BaseComponentProps<HTMLAnchorElement, {
|
|
2737
2495
|
/** Teksten som vises i lenka.
|
|
@@ -2745,20 +2503,10 @@ type SkipToContentProps = BaseComponentProps<HTMLAnchorElement, {
|
|
|
2745
2503
|
*/
|
|
2746
2504
|
top?: Property.Top;
|
|
2747
2505
|
}>;
|
|
2748
|
-
declare const SkipToContent:
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
text?: string;
|
|
2753
|
-
/**Spesifiserer hvor det skal hoppes til via `id`-attributtet til innholdet. */
|
|
2754
|
-
href: string;
|
|
2755
|
-
/**Avstand fra top i nærmeste posisjonert container.
|
|
2756
|
-
* @default 0
|
|
2757
|
-
*/
|
|
2758
|
-
top?: Property.Top;
|
|
2759
|
-
} & {
|
|
2760
|
-
htmlProps?: react.HTMLAttributes<HTMLAnchorElement> | undefined;
|
|
2761
|
-
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
2506
|
+
declare const SkipToContent: {
|
|
2507
|
+
({ text, top, id, className, htmlProps, ...rest }: SkipToContentProps): react_jsx_runtime.JSX.Element;
|
|
2508
|
+
displayName: string;
|
|
2509
|
+
};
|
|
2762
2510
|
|
|
2763
2511
|
type SpinnerProps = BaseComponentProps<SVGElement, {
|
|
2764
2512
|
/**Farge på spinneren.
|
|
@@ -2791,17 +2539,11 @@ type SplitButtonProps = Pick<ButtonProps, 'size'> & {
|
|
|
2791
2539
|
* @default "primary"
|
|
2792
2540
|
*/
|
|
2793
2541
|
purpose?: SplitButtonPurpose;
|
|
2794
|
-
} &
|
|
2795
|
-
declare const SplitButton:
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
secondaryActions: SplitButtonSecondaryActionsProps;
|
|
2800
|
-
/**Formål med knappen.
|
|
2801
|
-
* @default "primary"
|
|
2802
|
-
*/
|
|
2803
|
-
purpose?: SplitButtonPurpose;
|
|
2804
|
-
} & 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
|
+
};
|
|
2805
2547
|
|
|
2806
2548
|
type StackSpacing = 'x0.125' | 'x0.25' | 'x0.5' | 'x0.75' | 'x1' | 'x1.5' | 'x2' | 'x2.5' | 'x3' | 'x4' | 'x6' | 'x10';
|
|
2807
2549
|
interface StackStyleProps {
|
|
@@ -2829,19 +2571,55 @@ interface StackStyleProps {
|
|
|
2829
2571
|
padding?: StackSpacing | 0;
|
|
2830
2572
|
}
|
|
2831
2573
|
type StackProps = BaseComponentPropsWithChildren<HTMLDivElement, Omit<StackStyleProps, 'direction'>>;
|
|
2832
|
-
declare const HStack:
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
}
|
|
2840
|
-
htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
|
|
2841
|
-
} & 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
|
+
};
|
|
2842
2582
|
declare function spacingPropToCn(value: string): HyphenSpacingProps;
|
|
2843
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';
|
|
2844
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
|
+
|
|
2845
2623
|
type TableSize = Extract<Size, 'small' | 'medium' | 'large'>;
|
|
2846
2624
|
type TableProps = {
|
|
2847
2625
|
/**
|
|
@@ -2853,7 +2631,7 @@ type TableProps = {
|
|
|
2853
2631
|
stickyHeader?: boolean;
|
|
2854
2632
|
/**Legger skillelinjer mellom radene. */
|
|
2855
2633
|
withDividers?: boolean;
|
|
2856
|
-
} &
|
|
2634
|
+
} & ComponentPropsWithRef<'table'>;
|
|
2857
2635
|
type HeaderValues = Array<{
|
|
2858
2636
|
key: string;
|
|
2859
2637
|
content: ReactNode;
|
|
@@ -2875,77 +2653,12 @@ type TableRowProps = {
|
|
|
2875
2653
|
selected?: boolean;
|
|
2876
2654
|
/**Spesifiserer om raden skal ha hover styling. Brukes hovedsakelig på rader med klikkbar innhold. */
|
|
2877
2655
|
hoverable?: boolean;
|
|
2878
|
-
} &
|
|
2879
|
-
|
|
2880
|
-
declare const CollapsibleRow: react.ForwardRefExoticComponent<{
|
|
2881
|
-
type?: TableRowType;
|
|
2882
|
-
mode?: RowMode;
|
|
2883
|
-
selected?: boolean;
|
|
2884
|
-
hoverable?: boolean;
|
|
2885
|
-
} & react.HTMLAttributes<HTMLTableRowElement> & react.RefAttributes<HTMLTableRowElement>>;
|
|
2886
|
-
|
|
2887
|
-
declare const CollapsibleTable$1: react.ForwardRefExoticComponent<{
|
|
2888
|
-
isCollapsed?: boolean;
|
|
2889
|
-
headerValues: HeaderValues;
|
|
2890
|
-
definingColumnIndex?: Array<number>;
|
|
2891
|
-
} & {
|
|
2892
|
-
size?: TableSize;
|
|
2893
|
-
stickyHeader?: boolean;
|
|
2894
|
-
withDividers?: boolean;
|
|
2895
|
-
} & react.HTMLAttributes<HTMLTableElement> & react.RefAttributes<HTMLTableElement>>;
|
|
2656
|
+
} & ComponentPropsWithRef<'tr'>;
|
|
2896
2657
|
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
/**Innhold i headere (`content`) og deres `key`. `headerValues.content` må være den samme som faktisk innhold i `<Table.Cell type='head'>`. */
|
|
2901
|
-
headerValues: HeaderValues;
|
|
2902
|
-
/**
|
|
2903
|
-
* Indeksen(e) til kolonnen(e) som skal synes når tabellen er kollapset. Rekkefølgen i array avgjør rekkefølgen i render.
|
|
2904
|
-
* @default [0]
|
|
2905
|
-
* */
|
|
2906
|
-
definingColumnIndex?: Array<number>;
|
|
2907
|
-
} & TableProps;
|
|
2908
|
-
|
|
2909
|
-
type CollapsibleTableCompoundProps = typeof CollapsibleTable$1 & {
|
|
2910
|
-
Row: typeof CollapsibleRow;
|
|
2658
|
+
declare const Row: {
|
|
2659
|
+
({ type: _type, mode, hoverable, selected, className, ...rest }: TableRowProps): react_jsx_runtime.JSX.Element;
|
|
2660
|
+
displayName: string;
|
|
2911
2661
|
};
|
|
2912
|
-
declare const CollapsibleTable: CollapsibleTableCompoundProps;
|
|
2913
|
-
|
|
2914
|
-
type TableBodyProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
2915
|
-
declare const Body: react.ForwardRefExoticComponent<TableBodyProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
2916
|
-
|
|
2917
|
-
type TableCellType = 'data' | 'head';
|
|
2918
|
-
type TableCellLayout = 'left' | 'right' | 'center' | 'text and icon';
|
|
2919
|
-
interface CollapsibleProps {
|
|
2920
|
-
isCollapsibleChild?: boolean;
|
|
2921
|
-
}
|
|
2922
|
-
type TableCellProps = {
|
|
2923
|
-
/**
|
|
2924
|
-
* Type celle. Returnerer enten `<td>` eller `<th>`.
|
|
2925
|
-
* @default "data" hvis den er brukt i `<Table.Body>` eller `<Table.Foot>`, 'head' hvis den er i `<Table.Head>`.
|
|
2926
|
-
*/
|
|
2927
|
-
type?: TableCellType;
|
|
2928
|
-
/**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.
|
|
2929
|
-
* @default "left"
|
|
2930
|
-
*/
|
|
2931
|
-
layout?: TableCellLayout;
|
|
2932
|
-
/** Props ved bruk av `<CollapsibleRow>`. **OBS!** settes automatisk av forelder. */
|
|
2933
|
-
collapsibleProps?: CollapsibleProps;
|
|
2934
|
-
} & (TdHTMLAttributes<HTMLTableCellElement> | ThHTMLAttributes<HTMLTableCellElement>);
|
|
2935
|
-
declare const Cell: react.ForwardRefExoticComponent<TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
2936
|
-
|
|
2937
|
-
type TableFootProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
2938
|
-
declare const Foot: react.ForwardRefExoticComponent<TableFootProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
2939
|
-
|
|
2940
|
-
type TableHeadProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
2941
|
-
declare const Head: react.ForwardRefExoticComponent<TableHeadProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
2942
|
-
|
|
2943
|
-
declare const Row: react.ForwardRefExoticComponent<{
|
|
2944
|
-
type?: TableRowType;
|
|
2945
|
-
mode?: RowMode;
|
|
2946
|
-
selected?: boolean;
|
|
2947
|
-
hoverable?: boolean;
|
|
2948
|
-
} & react.HTMLAttributes<HTMLTableRowElement> & react.RefAttributes<HTMLTableRowElement>>;
|
|
2949
2662
|
|
|
2950
2663
|
type SortOrder = 'ascending' | 'descending';
|
|
2951
2664
|
type TableSortCellProps = {
|
|
@@ -2956,20 +2669,15 @@ type TableSortCellProps = {
|
|
|
2956
2669
|
/**onClick-funksjon for sortering og annen logikk. */
|
|
2957
2670
|
onClick: (event: MouseEvent$1<HTMLButtonElement>) => void;
|
|
2958
2671
|
} & Omit<TableCellProps, 'type'>;
|
|
2959
|
-
declare const SortCell:
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
sortOrder?: SortOrder;
|
|
2964
|
-
/**onClick-funksjon for sortering og annen logikk. */
|
|
2965
|
-
onClick: (event: MouseEvent$1<HTMLButtonElement>) => void;
|
|
2966
|
-
} & 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
|
+
};
|
|
2967
2676
|
|
|
2968
|
-
declare const Table$1:
|
|
2969
|
-
size
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
} & 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
|
+
};
|
|
2973
2681
|
|
|
2974
2682
|
type TableWrapperProps = HTMLAttributes<HTMLDivElement>;
|
|
2975
2683
|
declare const TableWrapper: {
|
|
@@ -2988,14 +2696,44 @@ type TableCompoundProps = typeof Table$1 & {
|
|
|
2988
2696
|
};
|
|
2989
2697
|
declare const Table: TableCompoundProps;
|
|
2990
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
|
+
|
|
2991
2726
|
type AddTabButtonProps = {
|
|
2992
2727
|
/** Bredden. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
|
|
2993
2728
|
* @default "1fr"
|
|
2994
2729
|
*/
|
|
2995
2730
|
width?: CSS.Properties['width'];
|
|
2996
2731
|
index?: number;
|
|
2997
|
-
} &
|
|
2998
|
-
declare const AddTabButton:
|
|
2732
|
+
} & ComponentPropsWithRef<'button'>;
|
|
2733
|
+
declare const AddTabButton: {
|
|
2734
|
+
({ ref, children, index, className, width, ...rest }: AddTabButtonProps): react_jsx_runtime.JSX.Element;
|
|
2735
|
+
displayName: string;
|
|
2736
|
+
};
|
|
2999
2737
|
|
|
3000
2738
|
type TabSize = Extract<Size, 'small' | 'medium'>;
|
|
3001
2739
|
type TabsProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
@@ -3014,26 +2752,10 @@ type TabsProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
3014
2752
|
/** Props for "Legg til fane"-knapp. Støtter native HTML attributter og `width`. */
|
|
3015
2753
|
addTabButtonProps?: Omit<AddTabButtonProps, 'index'>;
|
|
3016
2754
|
}, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
3017
|
-
declare const Tabs:
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
activeTab?: number;
|
|
3022
|
-
/** Ekstra logikk ved endring av aktiv fane. */
|
|
3023
|
-
onChange?: (index: number) => void;
|
|
3024
|
-
/** Retningen ikon og tekst vises i `<Tab>`-elementer.
|
|
3025
|
-
* @default "row"
|
|
3026
|
-
*/
|
|
3027
|
-
tabContentDirection?: Direction$1;
|
|
3028
|
-
/**Bredde for hele komponenten. */
|
|
3029
|
-
width?: Property.Width;
|
|
3030
|
-
/** Props for "Legg til fane"-knapp. Støtter native HTML attributter og `width`. */
|
|
3031
|
-
addTabButtonProps?: Omit<AddTabButtonProps, "index">;
|
|
3032
|
-
} & {
|
|
3033
|
-
children?: react.ReactNode | undefined;
|
|
3034
|
-
} & {
|
|
3035
|
-
htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, "onChange"> | undefined;
|
|
3036
|
-
} & 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
|
+
};
|
|
3037
2759
|
|
|
3038
2760
|
type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
3039
2761
|
/**Spesifiserer om fanen er aktiv.
|
|
@@ -3053,47 +2775,31 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
|
3053
2775
|
*/
|
|
3054
2776
|
width?: CSS.Properties['width'];
|
|
3055
2777
|
} & Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>>;
|
|
3056
|
-
declare const Tab:
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
active?: boolean;
|
|
3061
|
-
/** Ikon. */
|
|
3062
|
-
icon?: SvgIcon;
|
|
3063
|
-
/** Spesifiserer om `<Tab>` skal ha fokus. **OBS!** settes automatisk av forelder.*/
|
|
3064
|
-
focus?: boolean;
|
|
3065
|
-
/** Callback som setter fokus. **OBS!** settes automatisk av forelder.*/
|
|
3066
|
-
setFocus?: Dispatch<SetStateAction<number>>;
|
|
3067
|
-
/** Indeksen til `<Tab>`. **OBS!** settes automatisk av forelder.*/
|
|
3068
|
-
index?: number;
|
|
3069
|
-
/** Bredden til `<Tab>`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
|
|
3070
|
-
* @default "1fr"
|
|
3071
|
-
*/
|
|
3072
|
-
width?: CSS.Properties["width"];
|
|
3073
|
-
} & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick"> & {
|
|
3074
|
-
children?: react.ReactNode | undefined;
|
|
3075
|
-
} & {
|
|
3076
|
-
htmlProps?: Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick"> | undefined;
|
|
3077
|
-
} & react.RefAttributes<HTMLButtonElement>>;
|
|
2778
|
+
declare const Tab: {
|
|
2779
|
+
({ active, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps, width, ref, ...rest }: TabProps): react_jsx_runtime.JSX.Element;
|
|
2780
|
+
displayName: string;
|
|
2781
|
+
};
|
|
3078
2782
|
|
|
3079
|
-
type TabListProps =
|
|
3080
|
-
declare const TabList:
|
|
2783
|
+
type TabListProps = ComponentPropsWithRef<'div'>;
|
|
2784
|
+
declare const TabList: {
|
|
2785
|
+
({ children, id, style, onFocus, ref, ...rest }: TabListProps): react_jsx_runtime.JSX.Element;
|
|
2786
|
+
displayName: string;
|
|
2787
|
+
};
|
|
3081
2788
|
|
|
3082
2789
|
type TabPanelProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
3083
2790
|
/** Spesifiserer om panelet skal vises basert på aktiv fane. */
|
|
3084
2791
|
active?: boolean;
|
|
3085
2792
|
}>;
|
|
3086
|
-
declare const TabPanel:
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
}
|
|
3090
|
-
children?: react.ReactNode | undefined;
|
|
3091
|
-
} & {
|
|
3092
|
-
htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
|
|
3093
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
2793
|
+
declare const TabPanel: {
|
|
2794
|
+
({ active, children, id, className, htmlProps, ...rest }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
2795
|
+
displayName: string;
|
|
2796
|
+
};
|
|
3094
2797
|
|
|
3095
|
-
type TabPanelsProps =
|
|
3096
|
-
declare const TabPanels:
|
|
2798
|
+
type TabPanelsProps = ComponentPropsWithRef<'div'>;
|
|
2799
|
+
declare const TabPanels: {
|
|
2800
|
+
({ children, ref, ...rest }: TabPanelsProps): react_jsx_runtime.JSX.Element;
|
|
2801
|
+
displayName: string;
|
|
2802
|
+
};
|
|
3097
2803
|
|
|
3098
2804
|
type TagPurpose = 'success' | 'info' | 'danger' | 'warning' | 'default';
|
|
3099
2805
|
type TagAppearance = 'default' | 'strong';
|
|
@@ -3122,57 +2828,21 @@ type TagProps = BaseComponentPropsWithChildren<HTMLSpanElement, {
|
|
|
3122
2828
|
*/
|
|
3123
2829
|
withIcon?: boolean;
|
|
3124
2830
|
}>;
|
|
3125
|
-
declare const Tag:
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
children?: ReactNode;
|
|
3130
|
-
/**
|
|
3131
|
-
* Samme oppførsel som `children`. Er `children` brukt vil denne ignoreres. Tekst som vises i `<Tag>`.
|
|
3132
|
-
*/
|
|
3133
|
-
text?: string;
|
|
3134
|
-
/**
|
|
3135
|
-
* Formål med status eller kategorisering. Påvirker styling.
|
|
3136
|
-
* @default "default"
|
|
3137
|
-
*/
|
|
3138
|
-
purpose?: TagPurpose;
|
|
3139
|
-
/**
|
|
3140
|
-
* Det visuelle uttrykket til komponenten.
|
|
3141
|
-
* @default "default"
|
|
3142
|
-
*/
|
|
3143
|
-
appearance?: TagAppearance;
|
|
3144
|
-
/**
|
|
3145
|
-
* Om `<Tag>` skal ha et ikon til venstre for teksten. Tags med `purpose="default"` har aldri ikon.
|
|
3146
|
-
* @default false
|
|
3147
|
-
*/
|
|
3148
|
-
withIcon?: boolean;
|
|
3149
|
-
} & {
|
|
3150
|
-
children?: ReactNode | undefined;
|
|
3151
|
-
} & {
|
|
3152
|
-
htmlProps?: react.HTMLAttributes<HTMLSpanElement> | undefined;
|
|
3153
|
-
} & react.RefAttributes<HTMLSpanElement>>;
|
|
2831
|
+
declare const Tag: {
|
|
2832
|
+
({ text, purpose, appearance, id, className, children, htmlProps, withIcon, ...rest }: TagProps): react_jsx_runtime.JSX.Element;
|
|
2833
|
+
displayName: string;
|
|
2834
|
+
};
|
|
3154
2835
|
|
|
3155
2836
|
type TextAreaProps = CommonInputProps & {
|
|
3156
2837
|
/** Spesifiserer om tegntelleren skal vises ved bruk av `maxLength` attributt.
|
|
3157
2838
|
* @default true
|
|
3158
2839
|
*/
|
|
3159
2840
|
withCharacterCounter?: boolean;
|
|
3160
|
-
} &
|
|
3161
|
-
declare const TextArea:
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
withCharacterCounter?: boolean;
|
|
3166
|
-
} & TextareaHTMLAttributes<HTMLTextAreaElement> & react.RefAttributes<HTMLTextAreaElement>>;
|
|
3167
|
-
|
|
3168
|
-
declare const TextInput: react__default.ForwardRefExoticComponent<CommonInputProps & {
|
|
3169
|
-
componentSize?: InputSize;
|
|
3170
|
-
} & react__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
3171
|
-
withCharacterCounter?: boolean;
|
|
3172
|
-
icon?: SvgIcon;
|
|
3173
|
-
prefix?: string;
|
|
3174
|
-
suffix?: string;
|
|
3175
|
-
} & react__default.RefAttributes<HTMLInputElement>>;
|
|
2841
|
+
} & ComponentPropsWithRef<'textarea'>;
|
|
2842
|
+
declare const TextArea: {
|
|
2843
|
+
({ 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;
|
|
2844
|
+
displayName: string;
|
|
2845
|
+
};
|
|
3176
2846
|
|
|
3177
2847
|
type TextInputProps = InputProps & {
|
|
3178
2848
|
/** Spesifiserer om tegntelleren skal vises ved bruk av `maxLength` attributt. */
|
|
@@ -3180,20 +2850,23 @@ type TextInputProps = InputProps & {
|
|
|
3180
2850
|
/** Ikonet som vises i komponenten. */
|
|
3181
2851
|
icon?: SvgIcon;
|
|
3182
2852
|
/**
|
|
3183
|
-
* Prefiks som vises før inputfeltet.
|
|
3184
|
-
*
|
|
3185
|
-
* for en beskrivende label. */
|
|
2853
|
+
* Prefiks som vises før inputfeltet. **OBS!** Prefiks leses ikke av skjermleser og skal derfor ikke brukes som en erstatter for en beskrivende label.
|
|
2854
|
+
* */
|
|
3186
2855
|
prefix?: string;
|
|
3187
2856
|
/**
|
|
3188
|
-
* Suffiks som vises etter inputfeltet.
|
|
3189
|
-
|
|
3190
|
-
* for en beskrivende label. */
|
|
2857
|
+
* Suffiks som vises etter inputfeltet. **OBS!** Suffiks leses ikke av skjermleser og skal derfor ikke brukes som en erstatter for en beskrivende label.
|
|
2858
|
+
*/
|
|
3191
2859
|
suffix?: string;
|
|
3192
2860
|
};
|
|
3193
2861
|
interface TextAffixProps {
|
|
3194
2862
|
readOnly?: boolean;
|
|
3195
2863
|
}
|
|
3196
2864
|
|
|
2865
|
+
declare const TextInput: {
|
|
2866
|
+
({ 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;
|
|
2867
|
+
displayName: string;
|
|
2868
|
+
};
|
|
2869
|
+
|
|
3197
2870
|
type DdsTheme = keyof typeof ddsTokens;
|
|
3198
2871
|
interface ThemeContextProps {
|
|
3199
2872
|
theme: DdsTheme;
|
|
@@ -3802,40 +3475,10 @@ type ToggleProps = BaseComponentProps<HTMLElement, {
|
|
|
3802
3475
|
*/
|
|
3803
3476
|
size?: ToggleSize;
|
|
3804
3477
|
} & TogglePickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof TogglePickedHTMLAttributes>>;
|
|
3805
|
-
declare const Toggle:
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
* Callback som blir kalt når brukeren endrer toggle-verdien.
|
|
3810
|
-
*/
|
|
3811
|
-
onChange?: (checked: boolean) => void;
|
|
3812
|
-
/**
|
|
3813
|
-
* Om toggle er av eller på.
|
|
3814
|
-
*/
|
|
3815
|
-
checked?: boolean;
|
|
3816
|
-
/**
|
|
3817
|
-
* Den initielle verdien når komponenten brukes uncontrolled.
|
|
3818
|
-
* @default false
|
|
3819
|
-
*/
|
|
3820
|
-
defaultChecked?: boolean;
|
|
3821
|
-
/**Spesifiserer om input er `disabled`. */
|
|
3822
|
-
disabled?: boolean;
|
|
3823
|
-
/**
|
|
3824
|
-
* Inputelementet blir `readonly` - den kan ikke interageres med. Brukes bl.a. til å presentere input brukeren har fylt ut andre steder.
|
|
3825
|
-
*/
|
|
3826
|
-
readOnly?: boolean;
|
|
3827
|
-
/**
|
|
3828
|
-
* Indikerer at verdien prosesseres; viser loading-tilstand og setter `aria-disabled`.
|
|
3829
|
-
*/
|
|
3830
|
-
isLoading?: boolean;
|
|
3831
|
-
/**
|
|
3832
|
-
* Størrelse.
|
|
3833
|
-
* @default "medium"
|
|
3834
|
-
*/
|
|
3835
|
-
size?: ToggleSize;
|
|
3836
|
-
} & TogglePickedHTMLAttributes & {
|
|
3837
|
-
htmlProps?: Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "aria-describedby" | "onBlur" | "name" | "value"> | undefined;
|
|
3838
|
-
} & react.RefAttributes<HTMLInputElement>>;
|
|
3478
|
+
declare const Toggle: {
|
|
3479
|
+
({ id, children, size, checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, htmlProps, ...rest }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
3480
|
+
displayName: string;
|
|
3481
|
+
};
|
|
3839
3482
|
|
|
3840
3483
|
type ToggleBarValue = string | number | null | undefined;
|
|
3841
3484
|
type ToggleBarSize = Extract<Size, 'xsmall' | 'small' | 'medium' | 'large'>;
|
|
@@ -3869,22 +3512,26 @@ type ToggleRadioProps = BaseComponentProps<HTMLInputElement, {
|
|
|
3869
3512
|
/**Ikonet som vises i komponenten. */
|
|
3870
3513
|
icon?: SvgIcon;
|
|
3871
3514
|
} & PickedInputHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof PickedInputHTMLAttributes>>;
|
|
3872
|
-
declare const ToggleRadio:
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
icon?: SvgIcon;
|
|
3877
|
-
} & PickedInputHTMLAttributes & {
|
|
3878
|
-
htmlProps?: Omit<InputHTMLAttributes<HTMLInputElement>, "aria-label" | "aria-labelledby" | "onChange" | "name" | "value" | "checked"> | undefined;
|
|
3879
|
-
} & react.RefAttributes<HTMLInputElement>>;
|
|
3515
|
+
declare const ToggleRadio: {
|
|
3516
|
+
({ value, name, onChange, checked, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, icon, label, htmlProps, className, id, ...rest }: ToggleRadioProps): react_jsx_runtime.JSX.Element;
|
|
3517
|
+
displayName: string;
|
|
3518
|
+
};
|
|
3880
3519
|
|
|
3881
|
-
|
|
3520
|
+
type ToggleButtonProps = BaseComponentProps<HTMLInputElement, {
|
|
3521
|
+
/**Ledetekst for inputelementet. */
|
|
3882
3522
|
label?: string;
|
|
3523
|
+
/** Ikon. */
|
|
3883
3524
|
icon?: SvgIcon;
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3525
|
+
/**Størrelse.
|
|
3526
|
+
* @default 'small'
|
|
3527
|
+
*/
|
|
3528
|
+
size?: 'small' | 'xsmall';
|
|
3529
|
+
} & CheckboxPickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof CheckboxPickedHTMLAttributes>>;
|
|
3530
|
+
|
|
3531
|
+
declare const ToggleButton: {
|
|
3532
|
+
({ id, label, icon, size, className, htmlProps, ...rest }: ToggleButtonProps): react_jsx_runtime.JSX.Element;
|
|
3533
|
+
displayName: string;
|
|
3534
|
+
};
|
|
3888
3535
|
|
|
3889
3536
|
type Direction = 'row' | 'column';
|
|
3890
3537
|
type ToggleButtonGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
@@ -3902,18 +3549,9 @@ declare const ToggleButtonGroup: {
|
|
|
3902
3549
|
displayName: string;
|
|
3903
3550
|
};
|
|
3904
3551
|
|
|
3905
|
-
type
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
/** Ikon. */
|
|
3909
|
-
icon?: SvgIcon;
|
|
3910
|
-
/**Størrelse.
|
|
3911
|
-
* @default 'small'
|
|
3912
|
-
*/
|
|
3913
|
-
size?: 'small' | 'xsmall';
|
|
3914
|
-
} & CheckboxPickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof CheckboxPickedHTMLAttributes>>;
|
|
3915
|
-
|
|
3916
|
-
type AnchorElement = react__default.ReactElement & react__default.RefAttributes<HTMLElement>;
|
|
3552
|
+
type AnchorElement = ReactElement<HTMLAttributes<HTMLElement> & {
|
|
3553
|
+
ref: Ref<HTMLElement>;
|
|
3554
|
+
}>;
|
|
3917
3555
|
type PickedHTMLAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'style' | 'onMouseLeave' | 'onMouseOver'>;
|
|
3918
3556
|
type TooltipProps = BaseComponentProps<HTMLDivElement, {
|
|
3919
3557
|
/**Innhold i tooltip. */
|
|
@@ -3931,24 +3569,10 @@ type TooltipProps = BaseComponentProps<HTMLDivElement, {
|
|
|
3931
3569
|
/**`id` for tooltip. */
|
|
3932
3570
|
tooltipId?: string;
|
|
3933
3571
|
} & PickedHTMLAttributes, Omit<HTMLAttributes<HTMLDivElement>, 'children' | keyof PickedHTMLAttributes>>;
|
|
3934
|
-
declare const Tooltip:
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
* @default "bottom"
|
|
3939
|
-
*/
|
|
3940
|
-
placement?: Placement$1;
|
|
3941
|
-
/**Anchor-elementet. */
|
|
3942
|
-
children: AnchorElement;
|
|
3943
|
-
/**Forsinkelse for når tooltip skal dukke opp. Oppgis i millisekunder.
|
|
3944
|
-
* @default 100
|
|
3945
|
-
*/
|
|
3946
|
-
delay?: number;
|
|
3947
|
-
/**`id` for tooltip. */
|
|
3948
|
-
tooltipId?: string;
|
|
3949
|
-
} & PickedHTMLAttributes & {
|
|
3950
|
-
htmlProps?: Omit<react__default.HTMLAttributes<HTMLDivElement>, "style" | "children" | "onMouseLeave" | "onMouseOver"> | undefined;
|
|
3951
|
-
} & react__default.RefAttributes<HTMLDivElement>>;
|
|
3572
|
+
declare const Tooltip: {
|
|
3573
|
+
({ text, placement, children, tooltipId, delay, style, onMouseLeave, onMouseOver, id, ref, className, htmlProps, ...rest }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
3574
|
+
displayName: string;
|
|
3575
|
+
};
|
|
3952
3576
|
|
|
3953
3577
|
type VisuallyHiddenDivProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
3954
3578
|
as: 'div';
|
|
@@ -3963,4 +3587,4 @@ declare const VisuallyHidden: {
|
|
|
3963
3587
|
displayName: string;
|
|
3964
3588
|
};
|
|
3965
3589
|
|
|
3966
|
-
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 };
|
|
3590
|
+
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 };
|