@norges-domstoler/dds-components 20.2.0 → 21.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1320 -1201
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +628 -254
- package/dist/index.d.ts +628 -254
- package/dist/index.js +2621 -2256
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2550 -2195
- package/dist/index.mjs.map +1 -1
- package/package.json +26 -26
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ComponentPropsWithRef, HTMLAttributes, Ref,
|
|
3
|
+
import { ComponentPropsWithRef, HTMLAttributes, Ref, ElementType, ComponentPropsWithoutRef, CSSProperties, ReactNode, ComponentProps, PropsWithChildren, AnchorHTMLAttributes, LabelHTMLAttributes, RefCallback, RefObject, KeyboardEvent as KeyboardEvent$1, Dispatch, SetStateAction, SVGAttributes, JSX, ButtonHTMLAttributes, 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';
|
|
@@ -30,10 +30,6 @@ interface SvgChevronProps {
|
|
|
30
30
|
}
|
|
31
31
|
declare const AnimatedChevronUpDown: ({ isUp, height, width, }: SvgChevronProps) => react_jsx_runtime.JSX.Element;
|
|
32
32
|
|
|
33
|
-
type BorderColor = 'default' | 'subtle' | 'onInverse';
|
|
34
|
-
type BorderColorCn = 'default' | 'subtle' | 'on-inverse';
|
|
35
|
-
declare const getBorderCn: (color: BorderColor) => BorderColorCn;
|
|
36
|
-
|
|
37
33
|
type Direction$1 = 'row' | 'column';
|
|
38
34
|
|
|
39
35
|
/**
|
|
@@ -47,17 +43,49 @@ type Direction$1 = 'row' | 'column';
|
|
|
47
43
|
* @template TOtherProps Andre props komponenten skal eksponere til konsumenter.
|
|
48
44
|
* @template THTMLAttributesProps Standard `HTMLAttributes<T>` men kan overstyres for f.eks knapper hvis man trenger en annen basetype for `htmlProps`.
|
|
49
45
|
*/
|
|
50
|
-
type BaseComponentProps<TElement extends Element, TOtherProps extends object = object, THTMLAttributesProps extends HTMLAttributes<TElement> = HTMLAttributes<TElement>> =
|
|
46
|
+
type BaseComponentProps<TElement extends Element, TOtherProps extends object = object, THTMLAttributesProps extends HTMLAttributes<TElement> = HTMLAttributes<TElement>> = Omit<THTMLAttributesProps, 'id' | 'className'> & TOtherProps & {
|
|
51
47
|
/**Native HTML-attributter som vil settes på elementet som genereres. Untatt `id`, `className` (og eventuelle andre attributter spesifisert i dokumentasjonen) som settes på toppnivå. */
|
|
52
48
|
htmlProps?: THTMLAttributesProps;
|
|
49
|
+
/**Ref til komponenten. */
|
|
53
50
|
ref?: Ref<TElement>;
|
|
51
|
+
/**HTML id. */
|
|
52
|
+
id?: string;
|
|
53
|
+
/**Klassenavn. */
|
|
54
|
+
className?: string;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Basetype for polymorfe props som eksponeres til konsumenter av designsystemet.
|
|
58
|
+
* Lager en intersection-type med props som sendes inn og `id` og `htmlProps`
|
|
59
|
+
* slik at man kan ha `ComponentPropsWithRef`-props på komponenter som eksponeres
|
|
60
|
+
* av designsystemet.
|
|
61
|
+
*
|
|
62
|
+
* @template E `ElemenType` komponenten returnerer.
|
|
63
|
+
* @template TOtherProps Andre props komponenten skal eksponere til konsumenter.
|
|
64
|
+
* @template TComponentProps Standard `ComponentPropsWithoutRef<E>` som kan overstyres hvis man trenger en annen basetype for `htmlProps`, f.eks. for å støtte ofte brukte attributter på roten.
|
|
65
|
+
*/
|
|
66
|
+
type PolymorphicBaseComponentProps<E extends ElementType, TOtherProps extends object = object, TComponentProps extends object = ComponentPropsWithoutRef<E>> = Omit<TComponentProps, 'id' | 'className' | 'style' | 'ref'> & TOtherProps & {
|
|
67
|
+
/**HTML- eller React-element som returneres. */
|
|
68
|
+
as?: E;
|
|
69
|
+
/**Ref til komponenten. */
|
|
70
|
+
ref?: ComponentPropsWithRef<E>['ref'];
|
|
71
|
+
/**Native HTML-attributter som vil settes på elementet som genereres. Untatt `id`, `className` og `style` (og eventuelle andre attributter spesifisert i dokumentasjonen) som settes på toppnivå. */
|
|
72
|
+
htmlProps?: TComponentProps;
|
|
73
|
+
/**HTML id. */
|
|
74
|
+
id?: string;
|
|
75
|
+
/**Klassenavn. */
|
|
76
|
+
className?: string;
|
|
77
|
+
/**Inline style. */
|
|
78
|
+
style?: CSSProperties;
|
|
54
79
|
};
|
|
55
80
|
/**
|
|
56
81
|
* Utvidelese av {@link BaseComponentProps} med prop for `children`.
|
|
57
82
|
*
|
|
58
83
|
* {@link BaseComponentProps}
|
|
59
84
|
*/
|
|
60
|
-
type BaseComponentPropsWithChildren<T extends Element, TProps extends object = object, THTMLProps extends HTMLAttributes<T> = HTMLAttributes<T>> = BaseComponentProps<T,
|
|
85
|
+
type BaseComponentPropsWithChildren<T extends Element, TProps extends object = object, THTMLProps extends HTMLAttributes<T> = HTMLAttributes<T>> = BaseComponentProps<T, TProps & {
|
|
86
|
+
/**Barn. */
|
|
87
|
+
children?: ReactNode;
|
|
88
|
+
}, THTMLProps>;
|
|
61
89
|
interface GetBaseHTMLProps {
|
|
62
90
|
<T extends Element>(id: HTMLAttributes<T>['id'], className: HTMLAttributes<T>['className'], htmlProps: HTMLAttributes<T> | undefined, unknownProps: object): HTMLAttributes<T> & object;
|
|
63
91
|
<T extends Element>(id: HTMLAttributes<T>['id'], htmlProps: HTMLAttributes<T> | undefined, unknownProps: object): HTMLAttributes<T> & object;
|
|
@@ -93,16 +121,30 @@ interface GetBaseHTMLProps {
|
|
|
93
121
|
*/
|
|
94
122
|
declare const getBaseHTMLProps: GetBaseHTMLProps;
|
|
95
123
|
|
|
96
|
-
type
|
|
97
|
-
|
|
124
|
+
type PropsOf<T extends ElementType> = ComponentPropsWithoutRef<T> & {
|
|
125
|
+
/** HTML- eller React-element som returneres. */
|
|
98
126
|
as?: T;
|
|
99
127
|
};
|
|
100
|
-
type PropsOfWithRef<T extends
|
|
128
|
+
type PropsOfWithRef<T extends ElementType> = ComponentPropsWithRef<T> & {
|
|
129
|
+
/** HTML- eller React-element som returneres. */
|
|
101
130
|
as?: T;
|
|
102
131
|
};
|
|
103
132
|
|
|
104
133
|
type Size = 'xxlarge' | 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
105
134
|
|
|
135
|
+
declare const BORDER_RADII: readonly ["button", "input", "surface", "chip", "rounded", "0"];
|
|
136
|
+
declare const ELEVATIONS: readonly [1, 2, 3, 4];
|
|
137
|
+
declare const BORDER_COLORS: readonly ["border-default", "border-subtle", "border-inverse", "border-action-default", "border-action-hover", "border-success", "border-warning", "border-danger", "border-info", "border-on-action"];
|
|
138
|
+
declare const BACKGROUNDS: readonly ["surface-subtle", "surface-medium", "surface-inverse-default", "surface-danger-default", "surface-danger-strong", "surface-success-default", "surface-success-strong", "surface-warning-default", "surface-warning-strong", "surface-info-default", "surface-info-strong", "surface-paper-default", "surface-notification", "brand-primary-default", "brand-primary-subtle", "brand-primary-medium", "brand-primary-strong", "brand-secondary-default", "brand-secondary-subtle", "brand-secondary-medium", "brand-secondary-strong", "brand-tertiary-default", "brand-tertiary-subtle", "brand-tertiary-medium", "brand-tertiary-strong"];
|
|
139
|
+
type BorderRadius = (typeof BORDER_RADII)[number];
|
|
140
|
+
type Elevation = (typeof ELEVATIONS)[number];
|
|
141
|
+
type BorderColor = (typeof BORDER_COLORS)[number];
|
|
142
|
+
type PaperBackground = (typeof BACKGROUNDS)[number];
|
|
143
|
+
declare const isPaperBackground: (value: unknown) => value is PaperBackground;
|
|
144
|
+
declare const isBorderColor: (value: unknown) => value is BorderColor;
|
|
145
|
+
declare const isBorderRadius: (value: unknown) => value is BorderRadius;
|
|
146
|
+
declare const isElevation: (value: unknown) => value is Elevation;
|
|
147
|
+
|
|
106
148
|
/**
|
|
107
149
|
* Gir tilbake `T` med properties fra `K` som påkrevd gitt at `Condition` er `true`
|
|
108
150
|
*
|
|
@@ -121,11 +163,96 @@ type ExtractStrict<T, U extends T> = U;
|
|
|
121
163
|
type Nullable<T> = T | null;
|
|
122
164
|
type Callback<T> = (e: T) => void;
|
|
123
165
|
|
|
124
|
-
type PolymorphicProps<T extends
|
|
125
|
-
declare const ElementAs: <T extends ElementType
|
|
166
|
+
type PolymorphicProps<T extends ElementType> = PropsOfWithRef<T>;
|
|
167
|
+
declare const ElementAs: <T extends ElementType>({ as, ref, children, ...props }: PolymorphicProps<T>) => react_jsx_runtime.JSX.Element;
|
|
126
168
|
|
|
127
169
|
declare const HiddenInput: ({ className, ...rest }: ComponentPropsWithRef<"input">) => react_jsx_runtime.JSX.Element;
|
|
128
170
|
|
|
171
|
+
declare const BREAKPOINTS: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
172
|
+
type Breakpoint = (typeof BREAKPOINTS)[number];
|
|
173
|
+
declare const SPACING_SCALES: readonly ["x0", "x0.125", "x0.25", "x0.5", "x0.75", "x1", "x1.5", "x2", "x2.5", "x3", "x4", "x6", "x10"];
|
|
174
|
+
type SpacingScale = (typeof SPACING_SCALES)[number];
|
|
175
|
+
interface PrimitiveDisplayProps {
|
|
176
|
+
/** Skjuler komponenten fra og med det angitte brekkpunktet og nedover. */
|
|
177
|
+
hideBelow?: Breakpoint;
|
|
178
|
+
/** Viser komponenten kun under det angitte brekkpunktet. */
|
|
179
|
+
showBelow?: Breakpoint;
|
|
180
|
+
}
|
|
181
|
+
type BreakpointBasedProp<T> = {
|
|
182
|
+
[k in Breakpoint]?: T;
|
|
183
|
+
};
|
|
184
|
+
type ResponsiveProp<T> = T | BreakpointBasedProp<T>;
|
|
185
|
+
interface PrimitiveLayoutProps {
|
|
186
|
+
/** CSS `width`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
187
|
+
width?: ResponsiveProp<Property.Width>;
|
|
188
|
+
/** CSS `max-width`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
189
|
+
maxWidth?: ResponsiveProp<Property.MaxWidth>;
|
|
190
|
+
/** CSS `min-width`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
191
|
+
minWidth?: ResponsiveProp<Property.MinWidth>;
|
|
192
|
+
/** CSS `height`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
193
|
+
height?: ResponsiveProp<Property.Height>;
|
|
194
|
+
/** CSS `max-height`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
195
|
+
maxHeight?: ResponsiveProp<Property.MaxHeight>;
|
|
196
|
+
/** CSS `min-height`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
197
|
+
minHeight?: ResponsiveProp<Property.MinHeight>;
|
|
198
|
+
/** CSS `overflow`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
199
|
+
overflow?: ResponsiveProp<Property.Overflow>;
|
|
200
|
+
/** CSS `overflow-y`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
201
|
+
overflowY?: ResponsiveProp<Property.OverflowY>;
|
|
202
|
+
/** CSS `overflow-x`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
203
|
+
overflowX?: ResponsiveProp<Property.OverflowX>;
|
|
204
|
+
/** CSS `position`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
205
|
+
position?: ResponsiveProp<Property.Position>;
|
|
206
|
+
/** CSS `top`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
207
|
+
top?: ResponsiveProp<Property.Top | SpacingScale>;
|
|
208
|
+
/** CSS `bottom`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
209
|
+
bottom?: ResponsiveProp<Property.Bottom | SpacingScale>;
|
|
210
|
+
/** CSS `left`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
211
|
+
left?: ResponsiveProp<Property.Left | SpacingScale>;
|
|
212
|
+
/** CSS `right`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
213
|
+
right?: ResponsiveProp<Property.Right | SpacingScale>;
|
|
214
|
+
/** CSS `padding`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
215
|
+
padding?: ResponsiveProp<Property.Padding | SpacingScale>;
|
|
216
|
+
/** CSS `padding-inline`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
217
|
+
paddingInline?: ResponsiveProp<Property.PaddingInline | SpacingScale>;
|
|
218
|
+
/** CSS `padding-block`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
|
|
219
|
+
paddingBlock?: ResponsiveProp<Property.PaddingBlock | SpacingScale>;
|
|
220
|
+
/** CSS `margin`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
|
|
221
|
+
margin?: ResponsiveProp<Property.Margin | SpacingScale>;
|
|
222
|
+
/** CSS `margin-inline`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
|
|
223
|
+
marginInline?: ResponsiveProp<Property.MarginInline | SpacingScale>;
|
|
224
|
+
/** CSS `margin-block`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
|
|
225
|
+
marginBlock?: ResponsiveProp<Property.MarginBlock | SpacingScale>;
|
|
226
|
+
/** CSS `display`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
227
|
+
display?: ResponsiveProp<Property.Display>;
|
|
228
|
+
/** CSS `flex-direction`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
229
|
+
flexDirection?: ResponsiveProp<Property.FlexDirection>;
|
|
230
|
+
/** CSS `flex-basis`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
231
|
+
flexBasis?: ResponsiveProp<Property.FlexBasis>;
|
|
232
|
+
/** CSS `flex-wrap`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
233
|
+
flexWrap?: ResponsiveProp<Property.FlexWrap>;
|
|
234
|
+
/** CSS `flex-flow`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
235
|
+
flexFlow?: ResponsiveProp<Property.FlexFlow>;
|
|
236
|
+
/** CSS `align-items`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
237
|
+
alignItems?: ResponsiveProp<Property.AlignItems>;
|
|
238
|
+
/** CSS `justify-items`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
239
|
+
justifyItems?: ResponsiveProp<Property.JustifyItems>;
|
|
240
|
+
/** CSS `align-content`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
241
|
+
alignContent?: ResponsiveProp<Property.AlignContent>;
|
|
242
|
+
/** CSS `justify-content`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
243
|
+
justifyContent?: ResponsiveProp<Property.JustifyContent>;
|
|
244
|
+
/** CSS `text-align`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
245
|
+
textAlign?: ResponsiveProp<Property.TextAlign>;
|
|
246
|
+
/** CSS `gap`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
|
|
247
|
+
gap?: ResponsiveProp<Property.Gap | SpacingScale>;
|
|
248
|
+
/** CSS `row-gap`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
249
|
+
rowGap?: ResponsiveProp<Property.RowGap | SpacingScale>;
|
|
250
|
+
/** CSS `column-gap`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
251
|
+
columnGap?: ResponsiveProp<Property.ColumnGap | SpacingScale>;
|
|
252
|
+
}
|
|
253
|
+
type ResponsiveProps = PrimitiveDisplayProps & PrimitiveLayoutProps;
|
|
254
|
+
type ResponsiveStackProps = Omit<ResponsiveProps, 'display' | 'flexDirection'>;
|
|
255
|
+
|
|
129
256
|
declare function TextOverflowEllipsisWrapper({ className, ...rest }: ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
130
257
|
declare function TextOverflowEllipsisInner({ className, ...rest }: ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
131
258
|
|
|
@@ -229,9 +356,12 @@ declare const Label: {
|
|
|
229
356
|
displayName: string;
|
|
230
357
|
};
|
|
231
358
|
|
|
232
|
-
type LegendProps = BaseComponentPropsWithChildren<HTMLLegendElement, BaseTypographyProps
|
|
359
|
+
type LegendProps = BaseComponentPropsWithChildren<HTMLLegendElement, BaseTypographyProps & {
|
|
360
|
+
/**Typografistil basert på utvalget for HTML heading elementer. */
|
|
361
|
+
typographyType?: TypographyHeadingType;
|
|
362
|
+
}>;
|
|
233
363
|
declare const Legend: {
|
|
234
|
-
({ id, className, htmlProps,
|
|
364
|
+
({ id, className, htmlProps, typographyType, ...rest }: LegendProps): react_jsx_runtime.JSX.Element;
|
|
235
365
|
displayName: string;
|
|
236
366
|
};
|
|
237
367
|
|
|
@@ -262,7 +392,7 @@ interface CommonInputProps {
|
|
|
262
392
|
/**Ledetekst. */
|
|
263
393
|
label?: string;
|
|
264
394
|
/**Bredde for inputfeltet. */
|
|
265
|
-
width?:
|
|
395
|
+
width?: ResponsiveProps['width'];
|
|
266
396
|
/**Hjelpetekst. */
|
|
267
397
|
tip?: string;
|
|
268
398
|
/**Feilmelding. Setter også error state. */
|
|
@@ -274,7 +404,7 @@ type InputProps = CommonInputProps & {
|
|
|
274
404
|
* @default "medium"
|
|
275
405
|
*/
|
|
276
406
|
componentSize?: InputSize;
|
|
277
|
-
} & ComponentPropsWithRef<'input'>;
|
|
407
|
+
} & Omit<ComponentPropsWithRef<'input'>, 'width'>;
|
|
278
408
|
type StatefulInputProps = {
|
|
279
409
|
hasErrorMessage: boolean;
|
|
280
410
|
} & Omit<InputProps, keyof CommonInputProps>;
|
|
@@ -296,15 +426,80 @@ type Props = BaseComponentProps<HTMLElement, {
|
|
|
296
426
|
declare function CharCounter(props: Props): react_jsx_runtime.JSX.Element;
|
|
297
427
|
declare const renderCharCounter: (id: string, isShown: boolean, textLength: number, maxLength?: number) => react_jsx_runtime.JSX.Element | undefined;
|
|
298
428
|
|
|
299
|
-
|
|
429
|
+
type BoxProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, ResponsiveProps>;
|
|
430
|
+
declare const Box: {
|
|
431
|
+
<T extends ElementType = "div">({ id, className, style, padding, paddingInline, paddingBlock, margin, marginInline, marginBlock, height, maxHeight, minHeight, width, maxWidth, minWidth, position, left, right, bottom, top, overflow, overflowX, overflowY, display, textAlign, flexDirection, gap, columnGap, rowGap, alignItems, alignContent, justifyItems, justifyContent, flexWrap, flexBasis, flexFlow, htmlProps, ...rest }: BoxProps<T>): react_jsx_runtime.JSX.Element;
|
|
432
|
+
displayName: string;
|
|
433
|
+
};
|
|
300
434
|
|
|
301
|
-
type
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
435
|
+
type GridProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, Omit<{
|
|
436
|
+
/** CSS `grid-template-columns`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser.
|
|
437
|
+
* @default {
|
|
438
|
+
xs: 'repeat(var(--dds-grid-xs-count), minmax(0, 1fr))',
|
|
439
|
+
sm: 'repeat(var(--dds-grid-sm-count), minmax(0, 1fr))',
|
|
440
|
+
md: 'repeat(var(--dds-grid-md-count), minmax(0, 1fr))',
|
|
441
|
+
lg: 'repeat(var(--dds-grid-lg-count), minmax(0, 1fr))',
|
|
442
|
+
xl: 'repeat(var(--dds-grid-xl-count), minmax(0, 1fr))',
|
|
443
|
+
}
|
|
444
|
+
*/
|
|
445
|
+
gridTemplateColumns?: ResponsiveProp<Property.GridTemplateColumns>;
|
|
446
|
+
} & ResponsiveProps, 'display'>>;
|
|
447
|
+
declare const Grid: {
|
|
448
|
+
<T extends ElementType = "div">({ id, className, htmlProps, gridTemplateColumns, columnGap, rowGap, marginInline, style, ...rest }: GridProps<T>): react_jsx_runtime.JSX.Element;
|
|
449
|
+
displayName: string;
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
type RelativeColumnsOccupied = 'all' | 'firstHalf' | 'secondHalf';
|
|
453
|
+
type ColumnsOccupied = ResponsiveProp<StandardProperties['gridColumn'] | RelativeColumnsOccupied>;
|
|
454
|
+
type GridChildProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, {
|
|
455
|
+
/**Hvilke kolonner innholdet skal okkupere. Støtter standardverdier for CSS `grid-column` og relative verider `'all'`, `'firstHalf'` eller `'secondHalf'`, per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
456
|
+
columnsOccupied?: ColumnsOccupied;
|
|
457
|
+
/**CSS `justify-self`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
458
|
+
justifySelf?: ResponsiveProp<Property.JustifySelf>;
|
|
459
|
+
/**CSS `grid-row`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
460
|
+
gridRow?: ResponsiveProp<Property.GridRow>;
|
|
461
|
+
} & Omit<ResponsiveProps, 'display'>>;
|
|
462
|
+
declare const GridChild: {
|
|
463
|
+
<T extends ElementType = "div">({ id, className, htmlProps, style, gridRow, justifySelf, columnsOccupied, ...rest }: GridChildProps<T>): react_jsx_runtime.JSX.Element;
|
|
464
|
+
displayName: string;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
type PaperElevation = Elevation;
|
|
468
|
+
type PaperBorder = BorderColor;
|
|
469
|
+
type PaperBorderRadius = BorderRadius;
|
|
470
|
+
type PickedAttributes$1<T extends ElementType = 'div'> = Pick<ComponentProps<T>, 'tabIndex' | 'role'>;
|
|
471
|
+
type PaperProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, {
|
|
472
|
+
/**I hvor stor grad flaten skal framheves. Støtter dds tokens. */
|
|
473
|
+
elevation?: PaperElevation;
|
|
474
|
+
/**Farge på kantlinje. Støtter dds tokens. */
|
|
475
|
+
border?: PaperBorder;
|
|
476
|
+
/**Hvor runde hjørner skal være. Støtter dds tokens. */
|
|
477
|
+
borderRadius?: PaperBorderRadius;
|
|
478
|
+
/**Bakgrunn. Støtter dds tokens. */
|
|
479
|
+
background?: PaperBackground;
|
|
480
|
+
} & ResponsiveProps & PickedAttributes$1, Omit<ComponentProps<T>, keyof PickedAttributes$1>>;
|
|
481
|
+
declare const Paper: <T extends ElementType = "div">({ id, elevation, border, borderRadius, background, className, htmlProps, style, ...rest }: PaperProps<T>) => react_jsx_runtime.JSX.Element;
|
|
482
|
+
|
|
483
|
+
type ShowHideProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, PrimitiveDisplayProps>;
|
|
484
|
+
declare const ShowHide: {
|
|
485
|
+
<T extends ElementType = "div">({ hideBelow, showBelow, className, htmlProps, id, ...rest }: ShowHideProps<T>): react_jsx_runtime.JSX.Element;
|
|
486
|
+
displayName: string;
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
type VStackProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, ResponsiveStackProps>;
|
|
490
|
+
declare const VStack: {
|
|
491
|
+
<T extends ElementType = "div">({ id, className, htmlProps, ...rest }: VStackProps<T>): react_jsx_runtime.JSX.Element;
|
|
492
|
+
displayName: string;
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
type HStackProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, ResponsiveStackProps>;
|
|
496
|
+
declare const HStack: {
|
|
497
|
+
<T extends ElementType = "div">({ id, className, htmlProps, ...rest }: HStackProps<T>): react_jsx_runtime.JSX.Element;
|
|
498
|
+
displayName: string;
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
declare function getDefaultText(value?: string | number | ReadonlyArray<string>, defaultValue?: string | number | ReadonlyArray<string>): string;
|
|
502
|
+
declare function getInputWidth(width?: ResponsiveProps['width'], defaultW?: ResponsiveProps['width'] | false | null): ResponsiveProps['width'];
|
|
308
503
|
|
|
309
504
|
/**
|
|
310
505
|
* Kombinerer refs for et element.
|
|
@@ -530,11 +725,20 @@ declare enum ScreenSize {
|
|
|
530
725
|
*/
|
|
531
726
|
declare const useScreenSize: () => ScreenSize;
|
|
532
727
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
728
|
+
/**
|
|
729
|
+
* Kjører logikk når vindusstørrelsen endrer seg.
|
|
730
|
+
* Typisk bruk:
|
|
731
|
+
* ```
|
|
732
|
+
* const [width, setWidth] = useState<number>(window.innerWidth);
|
|
733
|
+
* useResize(() => setWidth(window.innerWidth));
|
|
734
|
+
*
|
|
735
|
+
* return <div>vindusstørrelse: {width}px</div>;
|
|
736
|
+
* ```
|
|
737
|
+
* @param handler funksjonen som skal kjøres.
|
|
738
|
+
*/
|
|
739
|
+
declare const useWindowResize: (handler: () => void) => void;
|
|
740
|
+
|
|
741
|
+
declare const getLiteralScreenSize: (screenSize: ScreenSize) => Breakpoint;
|
|
538
742
|
|
|
539
743
|
type StylelessListProps<TProps extends object = object> = TProps & ComponentPropsWithRef<'ul'>;
|
|
540
744
|
declare const StylelessList: ({ className, ...rest }: StylelessListProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1150,7 +1354,7 @@ type BreadcrumbsProps = BaseComponentPropsWithChildren<HTMLElement, {
|
|
|
1150
1354
|
* Spesifiserer ved hvilket brekkpunkt og nedover versjonen for små skjermer skal vises.
|
|
1151
1355
|
* Trunkerer barn unntatt første og siste; trunkerte barn er tilgjengelige ved å trykke på trunkeringsknappen.
|
|
1152
1356
|
*/
|
|
1153
|
-
smallScreenBreakpoint?:
|
|
1357
|
+
smallScreenBreakpoint?: Breakpoint;
|
|
1154
1358
|
}>;
|
|
1155
1359
|
declare const Breadcrumbs: {
|
|
1156
1360
|
({ children, smallScreenBreakpoint, id, className, htmlProps, ...rest }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1293,13 +1497,89 @@ declare const Chip: {
|
|
|
1293
1497
|
|
|
1294
1498
|
type ChipGroupProps = ComponentPropsWithRef<'ul'>;
|
|
1295
1499
|
declare const ChipGroup: {
|
|
1296
|
-
({ children,
|
|
1500
|
+
({ children, ...rest }: ChipGroupProps): react_jsx_runtime.JSX.Element;
|
|
1297
1501
|
displayName: string;
|
|
1298
1502
|
};
|
|
1299
1503
|
|
|
1300
1504
|
type ContrastProps<T extends React.ElementType> = PolymorphicProps<T>;
|
|
1301
1505
|
declare const Contrast: <T extends React.ElementType>({ className, as, ...rest }: ContrastProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1302
1506
|
|
|
1507
|
+
interface SelectionControlCommonProps {
|
|
1508
|
+
/**Ledetekst for alternativet. */
|
|
1509
|
+
label?: string;
|
|
1510
|
+
/**Spesifiserer om input er `disabled`. */
|
|
1511
|
+
disabled?: boolean;
|
|
1512
|
+
/**Indikerer valideringsfeil. Påvirker styling. */
|
|
1513
|
+
error?: boolean;
|
|
1514
|
+
/**Inputelementet blir `readonly` - den kan ikke interageres med. Brukes bl.a. til å presentere input brukeren har fylt ut andre steder. */
|
|
1515
|
+
readOnly?: boolean;
|
|
1516
|
+
}
|
|
1517
|
+
interface SelectionControlGroupCommonProps {
|
|
1518
|
+
/**Ledetekst for gruppen. */
|
|
1519
|
+
label?: string;
|
|
1520
|
+
/**Retningen barna gjengis i.
|
|
1521
|
+
* @default "row"
|
|
1522
|
+
*/
|
|
1523
|
+
direction?: Direction$1;
|
|
1524
|
+
/**Custom id for for gruppen, knytter ledetekst til gruppen via `aria-label`. */
|
|
1525
|
+
groupId?: string;
|
|
1526
|
+
/**Hjelpetekst for gruppen. */
|
|
1527
|
+
tip?: string;
|
|
1528
|
+
/**Gir alle barna `disabled` prop. */
|
|
1529
|
+
disabled?: boolean;
|
|
1530
|
+
/**Gir alle barna `readOnly` prop. */
|
|
1531
|
+
readOnly?: boolean;
|
|
1532
|
+
/**Meldingen som vises ved valideringsfeil. Gir error-tilstand til barna og setter `aria-describedby` for barna. */
|
|
1533
|
+
errorMessage?: string;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
type CheckboxPickedHTMLAttributes = Pick<InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'name' | 'checked' | 'defaultChecked' | 'value' | 'defaultValue' | 'onChange' | 'onBlur'>;
|
|
1537
|
+
type CheckboxProps = BaseComponentProps<HTMLInputElement, SelectionControlCommonProps & {
|
|
1538
|
+
/**Brukes ved nøstet struktur der alle `<Checkbox>` som hører til en gruppe kan bli valgt ved å trykke på en forelder `<Checkbox>`.
|
|
1539
|
+
* Hvis enkelte `<Checkbox>` blir valgt men ikke alle, skal forelder `<Checkbox>` få tilstanden `indeterminate` - verken valgt eller ikke. */
|
|
1540
|
+
indeterminate?: boolean;
|
|
1541
|
+
} & CheckboxPickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof CheckboxPickedHTMLAttributes>>;
|
|
1542
|
+
|
|
1543
|
+
declare const Checkbox: {
|
|
1544
|
+
({ id, name, label, error, disabled, readOnly, indeterminate, "aria-describedby": ariaDescribedby, className, htmlProps, children, ...rest }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
1545
|
+
displayName: string;
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1548
|
+
type CheckboxGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
|
|
1549
|
+
/**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. */
|
|
1550
|
+
required?: boolean;
|
|
1551
|
+
}>;
|
|
1552
|
+
declare const CheckboxGroup: {
|
|
1553
|
+
(props: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
1554
|
+
displayName: string;
|
|
1555
|
+
};
|
|
1556
|
+
|
|
1557
|
+
type CookieBannerCheckboxProps = Omit<CheckboxProps, 'label' | 'children'> & {
|
|
1558
|
+
/**Header - kort oppsummering av den spesifikke typen informasjonskapsel. */
|
|
1559
|
+
headerText?: string;
|
|
1560
|
+
/**Detaljer rundt den spesifikke typen informasjonskapsel. */
|
|
1561
|
+
description: string;
|
|
1562
|
+
};
|
|
1563
|
+
declare function CookieBannerCheckbox({ headerText, description, id, className, htmlProps, ...rest }: CookieBannerCheckboxProps): react_jsx_runtime.JSX.Element;
|
|
1564
|
+
declare namespace CookieBannerCheckbox {
|
|
1565
|
+
var displayName: string;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
type CookieBannerProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
1569
|
+
/**Header - kort oppsummering. */
|
|
1570
|
+
headerText?: string;
|
|
1571
|
+
/**Hovedinnholdet med info rundt informasjonkapsler bruk på siden. Kan inneholde lenker og andre interaktive elementer. */
|
|
1572
|
+
description?: ReactNode;
|
|
1573
|
+
/**Knapper for ulike nivåer av godkjenning av informasjonskaplser. Layout for knappene håndteres ut av boksen. */
|
|
1574
|
+
buttons?: Array<Omit<ButtonProps, 'purpose' | 'size'>>;
|
|
1575
|
+
/**Checkboxes for hver type informasjonskapsel som brukes på siden. Layout håndteres ut av boksen. */
|
|
1576
|
+
checkboxes?: Array<CookieBannerCheckboxProps>;
|
|
1577
|
+
} & Pick<ResponsiveProps, 'position' | 'top' | 'bottom' | 'left' | 'right' | 'width' | 'maxHeight'>>;
|
|
1578
|
+
declare function CookieBanner({ headerText, description, buttons, checkboxes, id, className, htmlProps, 'aria-label': ariaLabel, maxHeight, width, children, ...rest }: CookieBannerProps): react_jsx_runtime.JSX.Element;
|
|
1579
|
+
declare namespace CookieBanner {
|
|
1580
|
+
var displayName: string;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1303
1583
|
type CalendarProps<T extends DateValue> = AriaCalendarProps<T>;
|
|
1304
1584
|
declare function Calendar<T extends DateValue>(props: CalendarProps<T>): react_jsx_runtime.JSX.Element;
|
|
1305
1585
|
declare namespace Calendar {
|
|
@@ -1314,7 +1594,7 @@ type DateFieldProps<T extends DateValue$1 = CalendarDate> = AriaDateFieldOptions
|
|
|
1314
1594
|
ref?: Ref<HTMLDivElement>;
|
|
1315
1595
|
};
|
|
1316
1596
|
|
|
1317
|
-
interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'granularity'>, Pick<DateFieldProps<CalendarDate>, 'componentSize' | 'tip' | 'style'> {
|
|
1597
|
+
interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'granularity'>, Pick<DateFieldProps<CalendarDate>, 'componentSize' | 'tip' | 'style'>, Pick<ResponsiveProps, 'width'> {
|
|
1318
1598
|
ref?: Ref<HTMLElement>;
|
|
1319
1599
|
/**
|
|
1320
1600
|
* Ledetekst.
|
|
@@ -1328,14 +1608,10 @@ interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'granu
|
|
|
1328
1608
|
* @default true
|
|
1329
1609
|
*/
|
|
1330
1610
|
showWeekNumbers?: boolean;
|
|
1331
|
-
/**
|
|
1332
|
-
* Egendefinert bredde på komponenten.
|
|
1333
|
-
*/
|
|
1334
|
-
width?: CSS.Properties['width'];
|
|
1335
1611
|
/**
|
|
1336
1612
|
* Brekkpunkt for å vise versjon for liten skjerm.
|
|
1337
1613
|
*/
|
|
1338
|
-
smallScreenBreakpoint?:
|
|
1614
|
+
smallScreenBreakpoint?: Breakpoint;
|
|
1339
1615
|
}
|
|
1340
1616
|
declare function DatePicker({ errorMessage, componentSize, tip, style, width, smallScreenBreakpoint, showWeekNumbers, ref, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
1341
1617
|
declare namespace DatePicker {
|
|
@@ -1415,9 +1691,11 @@ type DetailListProps = BaseComponentPropsWithChildren<HTMLDListElement, {
|
|
|
1415
1691
|
* @default true
|
|
1416
1692
|
*/
|
|
1417
1693
|
striped?: boolean;
|
|
1694
|
+
/**Brekkpunkt og nedover versjonen for små skjermer skal vises; den gjør om rader til kolonner. */
|
|
1695
|
+
smallScreenBreakpoint?: Breakpoint;
|
|
1418
1696
|
}>;
|
|
1419
1697
|
declare const DetailList: {
|
|
1420
|
-
({ id, className, htmlProps, withDividers, striped, size, ...rest }: DetailListProps): react_jsx_runtime.JSX.Element;
|
|
1698
|
+
({ id, className, htmlProps, withDividers, striped, size, smallScreenBreakpoint, ...rest }: DetailListProps): react_jsx_runtime.JSX.Element;
|
|
1421
1699
|
displayName: string;
|
|
1422
1700
|
};
|
|
1423
1701
|
|
|
@@ -1439,7 +1717,7 @@ declare const DetailListTerm: {
|
|
|
1439
1717
|
displayName: string;
|
|
1440
1718
|
};
|
|
1441
1719
|
|
|
1442
|
-
type DividerColor = 'default' | 'subtle' | '
|
|
1720
|
+
type DividerColor = 'default' | 'subtle' | 'on-inverse';
|
|
1443
1721
|
type DividerProps = BaseComponentProps<HTMLHRElement, {
|
|
1444
1722
|
/** Farge på horisontal linje.
|
|
1445
1723
|
* @default "default"
|
|
@@ -1450,11 +1728,7 @@ declare const Divider: ({ color, id, className, htmlProps, ...rest }: DividerPro
|
|
|
1450
1728
|
|
|
1451
1729
|
type DrawerSize = Extract<Size, 'small' | 'medium' | 'large'>;
|
|
1452
1730
|
type DrawerPlacement = 'left' | 'right';
|
|
1453
|
-
|
|
1454
|
-
minWidth?: Property.MinWidth;
|
|
1455
|
-
maxWidth?: Property.MaxWidth;
|
|
1456
|
-
width?: Property.Width;
|
|
1457
|
-
}
|
|
1731
|
+
type WidthProps = Pick<ResponsiveProps, 'minWidth' | 'maxWidth' | 'width'>;
|
|
1458
1732
|
type DrawerProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
1459
1733
|
/**Størrelsen på `<Drawer>`.
|
|
1460
1734
|
* @default "small"
|
|
@@ -1471,7 +1745,7 @@ type DrawerProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
1471
1745
|
* @default themeProviderRef
|
|
1472
1746
|
*/
|
|
1473
1747
|
parentElement?: HTMLElement;
|
|
1474
|
-
/**Custom props for breddehåndtering ved behov. */
|
|
1748
|
+
/**Custom props for breddehåndtering ved behov. Kan settes per brekkpunkt eller samme verdi for alle. */
|
|
1475
1749
|
widthProps?: WidthProps;
|
|
1476
1750
|
/**
|
|
1477
1751
|
* Om `<Drawer>` skal vises med backdrop som gråer ut bakgrunnen.
|
|
@@ -1520,13 +1794,13 @@ type EmptyContentProps = {
|
|
|
1520
1794
|
/**Melding - beskrivelse og forklaring på hvordan brukeren kan få innhold. Kan inneholde lenker og andre interaktive elementer. */
|
|
1521
1795
|
message: ReactNode;
|
|
1522
1796
|
} & HTMLAttributes<HTMLDivElement>;
|
|
1523
|
-
declare function EmptyContent({ headerText, message, headerHeadingLevel,
|
|
1797
|
+
declare function EmptyContent({ headerText, message, headerHeadingLevel, ...rest }: EmptyContentProps): react_jsx_runtime.JSX.Element;
|
|
1524
1798
|
declare namespace EmptyContent {
|
|
1525
1799
|
var displayName: string;
|
|
1526
1800
|
}
|
|
1527
1801
|
|
|
1528
1802
|
type ComponentSize = 'medium' | 'large';
|
|
1529
|
-
|
|
1803
|
+
type FavStarProps = BaseComponentPropsWithChildren<HTMLElement, {
|
|
1530
1804
|
/**
|
|
1531
1805
|
* Status på favorisering. `true` betyr at den er favorisert.
|
|
1532
1806
|
*/
|
|
@@ -1545,7 +1819,7 @@ interface FavStarProps extends BaseComponentPropsWithChildren<HTMLElement> {
|
|
|
1545
1819
|
* @default "medium"
|
|
1546
1820
|
*/
|
|
1547
1821
|
size?: ComponentSize;
|
|
1548
|
-
}
|
|
1822
|
+
}, Omit<HTMLAttributes<HTMLElement>, 'onChange'>>;
|
|
1549
1823
|
declare const FavStar: {
|
|
1550
1824
|
({ id, className, onChange, checked: checkedProp, defaultChecked, size, htmlProps, ...rest }: FavStarProps): react_jsx_runtime.JSX.Element;
|
|
1551
1825
|
displayName: string;
|
|
@@ -1621,7 +1895,16 @@ type FieldsetProps = BaseComponentPropsWithChildren<HTMLFieldSetElement, {
|
|
|
1621
1895
|
/** Om alle inputfelt skal bli `disabled`. */
|
|
1622
1896
|
disabled?: boolean;
|
|
1623
1897
|
}>;
|
|
1624
|
-
declare const Fieldset:
|
|
1898
|
+
declare const Fieldset: {
|
|
1899
|
+
({ id, className, htmlProps, ...rest }: FieldsetProps): react_jsx_runtime.JSX.Element;
|
|
1900
|
+
displayName: string;
|
|
1901
|
+
};
|
|
1902
|
+
|
|
1903
|
+
type FieldsetGroupProps = BaseComponentPropsWithChildren<HTMLDivElement>;
|
|
1904
|
+
declare const FieldsetGroup: {
|
|
1905
|
+
({ id, className, htmlProps, ...rest }: FieldsetGroupProps): react_jsx_runtime.JSX.Element;
|
|
1906
|
+
displayName: string;
|
|
1907
|
+
};
|
|
1625
1908
|
|
|
1626
1909
|
type FileExtensionAccept = `.${string}`;
|
|
1627
1910
|
type AnyMimeType = '*';
|
|
@@ -1670,15 +1953,13 @@ type FileUploaderProps = {
|
|
|
1670
1953
|
required?: boolean;
|
|
1671
1954
|
/**Callback for når fil-listen endres. */
|
|
1672
1955
|
onChange: (newFiles: FileList) => void;
|
|
1673
|
-
/**Bredde for filopplasteren. */
|
|
1674
|
-
width?: Property.Width;
|
|
1675
1956
|
/**Om drag-and-drop zone skal vises.
|
|
1676
1957
|
* @default true
|
|
1677
1958
|
*/
|
|
1678
1959
|
withDragAndDrop?: boolean;
|
|
1679
1960
|
/**Om listen med opplastede filer skal skjules. Brukes kun hvis listen blir vist på egen måte. */
|
|
1680
1961
|
hideFileList?: boolean;
|
|
1681
|
-
} & Partial<FileUploaderHookProps> & Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'id'>;
|
|
1962
|
+
} & Pick<ResponsiveProps, 'width'> & Partial<FileUploaderHookProps> & Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'id'>;
|
|
1682
1963
|
declare const FileUploader: {
|
|
1683
1964
|
(props: FileUploaderProps): react_jsx_runtime.JSX.Element;
|
|
1684
1965
|
displayName: string;
|
|
@@ -1695,7 +1976,7 @@ type FooterLogoProps = ComponentPropsWithRef<'img'> & {
|
|
|
1695
1976
|
/**Brekkepunkt når logoen skal skjules på mindre skjerm. */
|
|
1696
1977
|
hideBreakpoint?: HideBreakpoint;
|
|
1697
1978
|
};
|
|
1698
|
-
declare const FooterLogo: ({
|
|
1979
|
+
declare const FooterLogo: ({ hideBreakpoint, ...rest }: FooterLogoProps) => react_jsx_runtime.JSX.Element;
|
|
1699
1980
|
|
|
1700
1981
|
type FooterListProps = ComponentPropsWithRef<'ul'>;
|
|
1701
1982
|
declare const FooterList: ({ className, ...rest }: FooterListProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1748,48 +2029,6 @@ declare const GlobalMessage: {
|
|
|
1748
2029
|
displayName: string;
|
|
1749
2030
|
};
|
|
1750
2031
|
|
|
1751
|
-
type RowGapGrid = BreakpointBasedProps<'rowGap'>;
|
|
1752
|
-
type MaxWidthGrid = BreakpointBasedProps<'maxWidth'>;
|
|
1753
|
-
type ColumnGapGrid = BreakpointBasedProps<'columnGap'>;
|
|
1754
|
-
type BaseGridProps = {
|
|
1755
|
-
/**Maksimal bredde. Gjøres per brekkepunkt. */
|
|
1756
|
-
maxWidth?: MaxWidthGrid;
|
|
1757
|
-
/** CSS `row-gap`. Gjøres per brekkepunkt. */
|
|
1758
|
-
rowGap?: RowGapGrid;
|
|
1759
|
-
/** CSS `column-gap`. Gjøres per brekkepunkt. */
|
|
1760
|
-
columnGap?: ColumnGapGrid;
|
|
1761
|
-
} & Pick<HTMLAttributes<HTMLElement>, 'style'>;
|
|
1762
|
-
type GridDivProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
1763
|
-
/**HTML tag som returneres. */
|
|
1764
|
-
as: 'div';
|
|
1765
|
-
} & BaseGridProps>;
|
|
1766
|
-
type GridFormProps = BaseComponentPropsWithChildren<HTMLFormElement, {
|
|
1767
|
-
as: 'form';
|
|
1768
|
-
} & BaseGridProps>;
|
|
1769
|
-
type GridProps = GridDivProps | GridFormProps;
|
|
1770
|
-
declare const Grid: {
|
|
1771
|
-
(props: GridProps): react_jsx_runtime.JSX.Element;
|
|
1772
|
-
displayName: string;
|
|
1773
|
-
};
|
|
1774
|
-
|
|
1775
|
-
declare const isRelativeGridColumn: (type: ColumnsOccupied | undefined) => type is RelativeColumnsOccupied;
|
|
1776
|
-
declare const isGridColumn: (type: ColumnsOccupied | undefined) => type is GridColumnPerScreenSize;
|
|
1777
|
-
type RelativeColumnsOccupied = 'all' | 'firstHalf' | 'secondHalf';
|
|
1778
|
-
type GridColumnPerScreenSize = BreakpointBasedProps<'gridColumn'>;
|
|
1779
|
-
type ColumnsOccupied = RelativeColumnsOccupied | GridColumnPerScreenSize;
|
|
1780
|
-
type GridChildProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
1781
|
-
/**hvilke kolonner innholdet skal okkupere. Tar inn enten en string med relativ definisjon eller et objekt med egentilpassede `grid-column` CSS verdi definert for hver brekkepunkt. */
|
|
1782
|
-
columnsOccupied?: ColumnsOccupied;
|
|
1783
|
-
/**Plassering av innholdet på x-aksen. */
|
|
1784
|
-
justifySelf?: Property.JustifySelf;
|
|
1785
|
-
/**Hvilke rader innholdet skal okkupere. */
|
|
1786
|
-
gridRow?: Property.GridRow;
|
|
1787
|
-
}> & Pick<HTMLAttributes<HTMLElement>, 'style'>;
|
|
1788
|
-
declare const GridChild: {
|
|
1789
|
-
(props: GridChildProps): react_jsx_runtime.JSX.Element;
|
|
1790
|
-
displayName: string;
|
|
1791
|
-
};
|
|
1792
|
-
|
|
1793
2032
|
type InlineButtonProps = ComponentPropsWithRef<'button'>;
|
|
1794
2033
|
declare const InlineButton: ({ className, ...rest }: InlineButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1795
2034
|
|
|
@@ -1801,7 +2040,7 @@ interface BaseInlineInputProps {
|
|
|
1801
2040
|
/** Bredde på komponenten.
|
|
1802
2041
|
* @default "140px"
|
|
1803
2042
|
*/
|
|
1804
|
-
width?:
|
|
2043
|
+
width?: ResponsiveProps['width'];
|
|
1805
2044
|
/**Om redigeringsikonet skal vises. */
|
|
1806
2045
|
hideIcon?: boolean;
|
|
1807
2046
|
}
|
|
@@ -1863,7 +2102,7 @@ type InternalHeaderProps = BaseComponentProps<HTMLDivElement, {
|
|
|
1863
2102
|
/**URL til hovedsiden. */
|
|
1864
2103
|
applicationHref?: string;
|
|
1865
2104
|
/**Spesifiserer ved hvilket brekkpunkt og nedover versjonen for små skjermer skal vises; den justerer på spacing og legger navigasjonen i kontekstmenyen. */
|
|
1866
|
-
smallScreenBreakpoint?:
|
|
2105
|
+
smallScreenBreakpoint?: Breakpoint;
|
|
1867
2106
|
/**Info om brukeren. Dukker opp som punkt på toppen av kontekstmenyen med tekst oppgitt i name. Blir en lenke hvis href er oppgitt. */
|
|
1868
2107
|
user?: InternaHeaderUserProps;
|
|
1869
2108
|
/**Lenker som skal vises i navigasjonsmenyen. */
|
|
@@ -1921,9 +2160,7 @@ type LocalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
1921
2160
|
* @default "horisontal"
|
|
1922
2161
|
*/
|
|
1923
2162
|
layout?: LocalMessageLayout;
|
|
1924
|
-
|
|
1925
|
-
width?: Property.Width;
|
|
1926
|
-
}>;
|
|
2163
|
+
} & Pick<ResponsiveProps, 'width'>>;
|
|
1927
2164
|
declare const LocalMessage: {
|
|
1928
2165
|
({ message, purpose, closable, onClose, width, layout, children, id, className, htmlProps, ...rest }: LocalMessageProps): react_jsx_runtime.JSX.Element;
|
|
1929
2166
|
displayName: string;
|
|
@@ -1965,7 +2202,7 @@ declare const ModalBody: {
|
|
|
1965
2202
|
|
|
1966
2203
|
type ModalActionsProps = ComponentPropsWithRef<'div'>;
|
|
1967
2204
|
declare const ModalActions: {
|
|
1968
|
-
(
|
|
2205
|
+
(props: ModalActionsProps): react_jsx_runtime.JSX.Element;
|
|
1969
2206
|
displayName: string;
|
|
1970
2207
|
};
|
|
1971
2208
|
|
|
@@ -2006,9 +2243,9 @@ declare const OverflowMenuLink: {
|
|
|
2006
2243
|
displayName: string;
|
|
2007
2244
|
};
|
|
2008
2245
|
|
|
2009
|
-
type OverflowMenuDividerProps = DividerProps
|
|
2246
|
+
type OverflowMenuDividerProps = Omit<DividerProps, 'color'>;
|
|
2010
2247
|
declare const OverflowMenuDivider: {
|
|
2011
|
-
({ className, ...rest }: OverflowMenuDividerProps): react_jsx_runtime.JSX.Element;
|
|
2248
|
+
({ id, className, htmlProps, ...rest }: OverflowMenuDividerProps): react_jsx_runtime.JSX.Element;
|
|
2012
2249
|
displayName: string;
|
|
2013
2250
|
};
|
|
2014
2251
|
|
|
@@ -2086,10 +2323,10 @@ type PaginationProps = BaseComponentProps<HTMLElement, {
|
|
|
2086
2323
|
/**Brukes til å hente `selectedOption` og eventuelt kjøre annen logikk når `withSelect=true` ved endring av alternativ. */
|
|
2087
2324
|
onSelectOptionChange?: (option: PaginationOption | null) => void;
|
|
2088
2325
|
/**Spesifiserer ved hvilket brekkpunkt og nedover versjonen for små skjermer skal vises; den viser færre sideknapper og stacker subkomponentene. */
|
|
2089
|
-
smallScreenBreakpoint?:
|
|
2326
|
+
smallScreenBreakpoint?: Breakpoint;
|
|
2090
2327
|
}, Omit<HTMLAttributes<HTMLElement>, 'onChange'>>;
|
|
2091
2328
|
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;
|
|
2329
|
+
({ itemsAmount, defaultItemsPerPage, defaultActivePage, withPagination, withCounter, withSelect, selectOptions, smallScreenBreakpoint, onChange, onSelectOptionChange, id, className, htmlProps, ref, ...rest }: PaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
2093
2330
|
displayName: string;
|
|
2094
2331
|
};
|
|
2095
2332
|
|
|
@@ -2124,7 +2361,7 @@ type PhoneInputProps = {
|
|
|
2124
2361
|
/**
|
|
2125
2362
|
* Spesifiserer ved hvilket brekkpunkt og nedover versjonen for små skjermer skal vises; den stacker subkomponentene vertikalt.
|
|
2126
2363
|
*/
|
|
2127
|
-
smallScreenBreakpoint?:
|
|
2364
|
+
smallScreenBreakpoint?: Breakpoint;
|
|
2128
2365
|
/**
|
|
2129
2366
|
* Usynlig ledetekst for nedtrekksliste med landkoder. Brukes hvis default ikke passer eller ikke er beskrivende nok.
|
|
2130
2367
|
* @default "Landskode"
|
|
@@ -2145,14 +2382,7 @@ declare const PhoneInput: {
|
|
|
2145
2382
|
displayName: string;
|
|
2146
2383
|
};
|
|
2147
2384
|
|
|
2148
|
-
|
|
2149
|
-
width?: Property.Width;
|
|
2150
|
-
height?: Property.Height;
|
|
2151
|
-
minWidth?: Property.MinWidth;
|
|
2152
|
-
minHeight?: Property.MinHeight;
|
|
2153
|
-
maxWidth?: Property.MaxWidth;
|
|
2154
|
-
maxHeight?: Property.MaxHeight;
|
|
2155
|
-
}
|
|
2385
|
+
type PopoverSizeProps = Pick<ResponsiveProps, 'width' | 'height' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight'>;
|
|
2156
2386
|
type PopoverProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
2157
2387
|
/**Header. Bruker default semantisk heading hvis verdien er en `string`. */
|
|
2158
2388
|
header?: string | ReactNode;
|
|
@@ -2292,9 +2522,9 @@ type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
|
|
|
2292
2522
|
componentSize?: SearchSize;
|
|
2293
2523
|
/**Props for søkeknappen. */
|
|
2294
2524
|
buttonProps?: SearchButtonProps;
|
|
2295
|
-
} & ComponentPropsWithRef<'input'>;
|
|
2525
|
+
} & Pick<InputProps, 'width'> & Omit<ComponentPropsWithRef<'input'>, 'width'>;
|
|
2296
2526
|
declare const Search$1: {
|
|
2297
|
-
({ componentSize, buttonProps, name, label, tip, id, value, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): react_jsx_runtime.JSX.Element;
|
|
2527
|
+
({ componentSize, buttonProps, name, label, tip, id, value, width, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): react_jsx_runtime.JSX.Element;
|
|
2298
2528
|
displayName: string;
|
|
2299
2529
|
};
|
|
2300
2530
|
|
|
@@ -2376,8 +2606,6 @@ type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
|
2376
2606
|
errorMessage?: string;
|
|
2377
2607
|
/**Hjelpetekst. */
|
|
2378
2608
|
tip?: string;
|
|
2379
|
-
/**Custom bredde ved behov. */
|
|
2380
|
-
width?: Property.Width;
|
|
2381
2609
|
/** CSS klassenavn. */
|
|
2382
2610
|
className?: string;
|
|
2383
2611
|
/** Inline styling. */
|
|
@@ -2390,7 +2618,7 @@ type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
|
2390
2618
|
'data-testid'?: string;
|
|
2391
2619
|
/**Ref til komponenten. */
|
|
2392
2620
|
ref?: SelectForwardRefType<Option, IsMulti>;
|
|
2393
|
-
} & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
|
|
2621
|
+
} & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & Pick<ResponsiveProps, 'width'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
|
|
2394
2622
|
type SelectForwardRefType<Option, IsMulti extends boolean> = Ref<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
|
|
2395
2623
|
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;
|
|
2396
2624
|
declare namespace Select {
|
|
@@ -2407,56 +2635,6 @@ declare const NativeSelectPlaceholder: {
|
|
|
2407
2635
|
|
|
2408
2636
|
declare const createSelectOptions: <TValue extends string | number>(...args: Array<TValue>) => Array<SelectOption<TValue>>;
|
|
2409
2637
|
|
|
2410
|
-
interface SelectionControlCommonProps {
|
|
2411
|
-
/**Ledetekst for alternativet. */
|
|
2412
|
-
label?: string;
|
|
2413
|
-
/**Spesifiserer om input er `disabled`. */
|
|
2414
|
-
disabled?: boolean;
|
|
2415
|
-
/**Indikerer valideringsfeil. Påvirker styling. */
|
|
2416
|
-
error?: boolean;
|
|
2417
|
-
/**Inputelementet blir `readonly` - den kan ikke interageres med. Brukes bl.a. til å presentere input brukeren har fylt ut andre steder. */
|
|
2418
|
-
readOnly?: boolean;
|
|
2419
|
-
}
|
|
2420
|
-
interface SelectionControlGroupCommonProps {
|
|
2421
|
-
/**Ledetekst for gruppen. */
|
|
2422
|
-
label?: string;
|
|
2423
|
-
/**Retningen barna gjengis i.
|
|
2424
|
-
* @default "row"
|
|
2425
|
-
*/
|
|
2426
|
-
direction?: Direction$1;
|
|
2427
|
-
/**Custom id for for gruppen, knytter ledetekst til gruppen via `aria-label`. */
|
|
2428
|
-
groupId?: string;
|
|
2429
|
-
/**Hjelpetekst for gruppen. */
|
|
2430
|
-
tip?: string;
|
|
2431
|
-
/**Gir alle barna `disabled` prop. */
|
|
2432
|
-
disabled?: boolean;
|
|
2433
|
-
/**Gir alle barna `readOnly` prop. */
|
|
2434
|
-
readOnly?: boolean;
|
|
2435
|
-
/**Meldingen som vises ved valideringsfeil. Gir error-tilstand til barna og setter `aria-describedby` for barna. */
|
|
2436
|
-
errorMessage?: string;
|
|
2437
|
-
}
|
|
2438
|
-
|
|
2439
|
-
type CheckboxPickedHTMLAttributes = Pick<InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'name' | 'checked' | 'defaultChecked' | 'value' | 'defaultValue' | 'onChange' | 'onBlur'>;
|
|
2440
|
-
type CheckboxProps = BaseComponentProps<HTMLInputElement, SelectionControlCommonProps & {
|
|
2441
|
-
/**Brukes ved nøstet struktur der alle `<Checkbox>` som hører til en gruppe kan bli valgt ved å trykke på en forelder `<Checkbox>`.
|
|
2442
|
-
* Hvis enkelte `<Checkbox>` blir valgt men ikke alle, skal forelder `<Checkbox>` få tilstanden `indeterminate` - verken valgt eller ikke. */
|
|
2443
|
-
indeterminate?: boolean;
|
|
2444
|
-
} & CheckboxPickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof CheckboxPickedHTMLAttributes>>;
|
|
2445
|
-
|
|
2446
|
-
declare const Checkbox: {
|
|
2447
|
-
({ id, name, label, error, disabled, readOnly, indeterminate, "aria-describedby": ariaDescribedby, className, htmlProps, ...rest }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
2448
|
-
displayName: string;
|
|
2449
|
-
};
|
|
2450
|
-
|
|
2451
|
-
type CheckboxGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
|
|
2452
|
-
/**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. */
|
|
2453
|
-
required?: boolean;
|
|
2454
|
-
}>;
|
|
2455
|
-
declare const CheckboxGroup: {
|
|
2456
|
-
(props: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
2457
|
-
displayName: string;
|
|
2458
|
-
};
|
|
2459
|
-
|
|
2460
2638
|
type PickedInputHTMLAttributes$1 = Pick<InputHTMLAttributes<HTMLInputElement>, 'name' | 'readOnly' | 'checked' | 'value' | 'required' | 'onChange' | 'aria-describedby'>;
|
|
2461
2639
|
type RadioButtonProps = BaseComponentPropsWithChildren<HTMLInputElement, SelectionControlCommonProps & PickedInputHTMLAttributes$1, Omit<InputHTMLAttributes<HTMLInputElement>, keyof PickedInputHTMLAttributes$1>>;
|
|
2462
2640
|
type RadioValue = PickedInputHTMLAttributes$1['value'];
|
|
@@ -2485,15 +2663,11 @@ declare const RadioButtonGroup: {
|
|
|
2485
2663
|
|
|
2486
2664
|
type SkeletonAppearance = 'circle' | 'rectangle';
|
|
2487
2665
|
type SkeletonProps = {
|
|
2488
|
-
/** Bredde. */
|
|
2489
|
-
width?: Property.Width;
|
|
2490
|
-
/** Høyde. */
|
|
2491
|
-
height?: Property.Height;
|
|
2492
2666
|
/**CSS border radius.
|
|
2493
2667
|
* @default "var(--dds-border-radius-surface)"
|
|
2494
2668
|
*/
|
|
2495
2669
|
borderRadius?: Property.BorderRadius;
|
|
2496
|
-
} & ComponentPropsWithRef<'div'>;
|
|
2670
|
+
} & Pick<ResponsiveProps, 'width' | 'height'> & ComponentPropsWithRef<'div'>;
|
|
2497
2671
|
declare const Skeleton: {
|
|
2498
2672
|
({ width, height, borderRadius, className, style, ref, ...rest }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
2499
2673
|
displayName: string;
|
|
@@ -2553,43 +2727,6 @@ declare const SplitButton: {
|
|
|
2553
2727
|
displayName: string;
|
|
2554
2728
|
};
|
|
2555
2729
|
|
|
2556
|
-
type StackSpacing = 'x0.125' | 'x0.25' | 'x0.5' | 'x0.75' | 'x1' | 'x1.5' | 'x2' | 'x2.5' | 'x3' | 'x4' | 'x6' | 'x10';
|
|
2557
|
-
interface StackStyleProps {
|
|
2558
|
-
/**
|
|
2559
|
-
* Hvilken retning elementene skal plasseres i.
|
|
2560
|
-
*/
|
|
2561
|
-
direction: 'horizontal' | 'vertical';
|
|
2562
|
-
/**
|
|
2563
|
-
* CSS `align-items`.
|
|
2564
|
-
* @default "center"
|
|
2565
|
-
*/
|
|
2566
|
-
align?: StandardProperties['alignItems'];
|
|
2567
|
-
/**
|
|
2568
|
-
* CSS `justify-content`.
|
|
2569
|
-
* @default "flex-start"
|
|
2570
|
-
*/
|
|
2571
|
-
justify?: StandardProperties['justifyContent'];
|
|
2572
|
-
/**
|
|
2573
|
-
* Hvilken spacing token som skal brukes som CSS `gap`.
|
|
2574
|
-
*/
|
|
2575
|
-
gap?: StackSpacing | 0;
|
|
2576
|
-
/**
|
|
2577
|
-
* Hvilken spacing token som skal brukes som CSS `padding`.
|
|
2578
|
-
*/
|
|
2579
|
-
padding?: StackSpacing | 0;
|
|
2580
|
-
}
|
|
2581
|
-
type StackProps = BaseComponentPropsWithChildren<HTMLDivElement, Omit<StackStyleProps, 'direction'>>;
|
|
2582
|
-
declare const HStack: {
|
|
2583
|
-
({ id, className, htmlProps, align, justify, gap, padding, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
|
|
2584
|
-
displayName: string;
|
|
2585
|
-
};
|
|
2586
|
-
declare const VStack: {
|
|
2587
|
-
({ id, className, htmlProps, align, justify, gap, padding, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
|
|
2588
|
-
displayName: string;
|
|
2589
|
-
};
|
|
2590
|
-
declare function spacingPropToCn(value: string): HyphenSpacingProps;
|
|
2591
|
-
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';
|
|
2592
|
-
|
|
2593
2730
|
type TableBodyProps = ComponentPropsWithRef<'tbody'>;
|
|
2594
2731
|
declare const Body: {
|
|
2595
2732
|
(props: TableBodyProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2755,11 +2892,9 @@ type TabsProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
2755
2892
|
* @default "row"
|
|
2756
2893
|
*/
|
|
2757
2894
|
tabContentDirection?: Direction$1;
|
|
2758
|
-
/**Bredde for hele komponenten. */
|
|
2759
|
-
width?: Property.Width;
|
|
2760
2895
|
/** Props for "Legg til fane"-knapp. Støtter native HTML attributter og `width`. */
|
|
2761
2896
|
addTabButtonProps?: Omit<AddTabButtonProps, 'index'>;
|
|
2762
|
-
}, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
2897
|
+
} & Pick<ResponsiveProps, 'width'>, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
2763
2898
|
declare const Tabs: {
|
|
2764
2899
|
({ id, activeTab, onChange, tabContentDirection, size, addTabButtonProps, width, children, className, htmlProps, ...rest }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
2765
2900
|
displayName: string;
|
|
@@ -2932,7 +3067,7 @@ declare function useTheme(): {
|
|
|
2932
3067
|
ddsFontLineheightX1: 1.5;
|
|
2933
3068
|
ddsFontLineheightX2: 1.35;
|
|
2934
3069
|
ddsFontLineheightX3: 1.2;
|
|
2935
|
-
ddsFontLineheightList: 2
|
|
3070
|
+
ddsFontLineheightList: 2;
|
|
2936
3071
|
ddsFontLetterSpacingTight: "-0.01em";
|
|
2937
3072
|
ddsFontLetterSpacingNormal: "0em";
|
|
2938
3073
|
ddsFontLetterSpacingLoose: "0.01em";
|
|
@@ -3020,16 +3155,106 @@ declare function useTheme(): {
|
|
|
3020
3155
|
ddsZindexDropdown: "100";
|
|
3021
3156
|
ddsZindexSticky: "50";
|
|
3022
3157
|
ddsZindexAbsoluteElement: "1";
|
|
3158
|
+
ddsColorDataRed100: "#f8d2d4";
|
|
3159
|
+
ddsColorDataRed200: "#f0a5a9";
|
|
3160
|
+
ddsColorDataRed300: "#e9787e";
|
|
3161
|
+
ddsColorDataRed400: "#e14b53";
|
|
3162
|
+
ddsColorDataRed500: "#da1e28";
|
|
3163
|
+
ddsColorDataRed600: "#ae1820";
|
|
3164
|
+
ddsColorDataRed700: "#831218";
|
|
3165
|
+
ddsColorDataRed800: "#570c10";
|
|
3166
|
+
ddsColorDataRed900: "#2c0608";
|
|
3167
|
+
ddsColorDataMagenta100: "#eed3df";
|
|
3168
|
+
ddsColorDataMagenta200: "#dfa5bf";
|
|
3169
|
+
ddsColorDataMagenta300: "#cf789e";
|
|
3170
|
+
ddsColorDataMagenta400: "#c74f84";
|
|
3171
|
+
ddsColorDataMagenta500: "#b62665";
|
|
3172
|
+
ddsColorDataMagenta600: "#8a1a4b";
|
|
3173
|
+
ddsColorDataMagenta700: "#671438";
|
|
3174
|
+
ddsColorDataMagenta800: "#440e26";
|
|
3175
|
+
ddsColorDataMagenta900: "#220713";
|
|
3176
|
+
ddsColorDataBrown100: "#f0ddd5";
|
|
3177
|
+
ddsColorDataBrown200: "#e1bcac";
|
|
3178
|
+
ddsColorDataBrown300: "#d19a82";
|
|
3179
|
+
ddsColorDataBrown400: "#c27959";
|
|
3180
|
+
ddsColorDataBrown500: "#b3572f";
|
|
3181
|
+
ddsColorDataBrown600: "#8f4626";
|
|
3182
|
+
ddsColorDataBrown700: "#6b341c";
|
|
3183
|
+
ddsColorDataBrown800: "#482313";
|
|
3184
|
+
ddsColorDataBrown900: "#241109";
|
|
3185
|
+
ddsColorDataOlive100: "#e6e4d0";
|
|
3186
|
+
ddsColorDataOlive200: "#cdc9a1";
|
|
3187
|
+
ddsColorDataOlive300: "#b3ae71";
|
|
3188
|
+
ddsColorDataOlive400: "#989344";
|
|
3189
|
+
ddsColorDataOlive500: "#7c7518";
|
|
3190
|
+
ddsColorDataOlive600: "#635e13";
|
|
3191
|
+
ddsColorDataOlive700: "#4a460e";
|
|
3192
|
+
ddsColorDataOlive800: "#322f0a";
|
|
3193
|
+
ddsColorDataOlive900: "#191705";
|
|
3194
|
+
ddsColorDataGreen100: "#d1e6d7";
|
|
3195
|
+
ddsColorDataGreen200: "#a3ccaf";
|
|
3196
|
+
ddsColorDataGreen300: "#75b388";
|
|
3197
|
+
ddsColorDataGreen400: "#479960";
|
|
3198
|
+
ddsColorDataGreen500: "#198038";
|
|
3199
|
+
ddsColorDataGreen600: "#14662d";
|
|
3200
|
+
ddsColorDataGreen700: "#0f4d22";
|
|
3201
|
+
ddsColorDataGreen800: "#0a3316";
|
|
3202
|
+
ddsColorDataGreen900: "#051a0b";
|
|
3203
|
+
ddsColorDataTeal100: "#c2e2e1";
|
|
3204
|
+
ddsColorDataTeal200: "#90ccc9";
|
|
3205
|
+
ddsColorDataTeal300: "#5dafad";
|
|
3206
|
+
ddsColorDataTeal400: "#2c9390";
|
|
3207
|
+
ddsColorDataTeal500: "#007d79";
|
|
3208
|
+
ddsColorDataTeal600: "#006461";
|
|
3209
|
+
ddsColorDataTeal700: "#004b49";
|
|
3210
|
+
ddsColorDataTeal800: "#003230";
|
|
3211
|
+
ddsColorDataTeal900: "#001918";
|
|
3212
|
+
ddsColorDataDeepblue100: "#b9d7e5";
|
|
3213
|
+
ddsColorDataDeepblue200: "#96c5d9";
|
|
3214
|
+
ddsColorDataDeepblue300: "#6aa8c3";
|
|
3215
|
+
ddsColorDataDeepblue400: "#3e8bac";
|
|
3216
|
+
ddsColorDataDeepblue500: "#196b8f";
|
|
3217
|
+
ddsColorDataDeepblue600: "#135774";
|
|
3218
|
+
ddsColorDataDeepblue700: "#0e455e";
|
|
3219
|
+
ddsColorDataDeepblue800: "#0d3445";
|
|
3220
|
+
ddsColorDataDeepblue900: "#05151d";
|
|
3221
|
+
ddsColorDataBlue100: "#cfe0ff";
|
|
3222
|
+
ddsColorDataBlue200: "#9fc0ff";
|
|
3223
|
+
ddsColorDataBlue300: "#6fa1fe";
|
|
3224
|
+
ddsColorDataBlue400: "#3f81fe";
|
|
3225
|
+
ddsColorDataBlue500: "#0f62fe";
|
|
3226
|
+
ddsColorDataBlue600: "#0c4ecb";
|
|
3227
|
+
ddsColorDataBlue700: "#093b98";
|
|
3228
|
+
ddsColorDataBlue800: "#062766";
|
|
3229
|
+
ddsColorDataBlue900: "#031433";
|
|
3230
|
+
ddsColorDataPurple100: "#e8d9fe";
|
|
3231
|
+
ddsColorDataPurple200: "#d0b2fe";
|
|
3232
|
+
ddsColorDataPurple300: "#b98cfd";
|
|
3233
|
+
ddsColorDataPurple400: "#a165fd";
|
|
3234
|
+
ddsColorDataPurple500: "#8a3ffc";
|
|
3235
|
+
ddsColorDataPurple600: "#6e32ca";
|
|
3236
|
+
ddsColorDataPurple700: "#532697";
|
|
3237
|
+
ddsColorDataPurple800: "#371965";
|
|
3238
|
+
ddsColorDataPurple900: "#1c0d32";
|
|
3239
|
+
ddsColorDataGray100: "#e3e3e3";
|
|
3240
|
+
ddsColorDataGray200: "#c7c7c7";
|
|
3241
|
+
ddsColorDataGray300: "#aaaaaa";
|
|
3242
|
+
ddsColorDataGray400: "#8e8e8e";
|
|
3243
|
+
ddsColorDataGray500: "#727272";
|
|
3244
|
+
ddsColorDataGray600: "#5b5b5b";
|
|
3245
|
+
ddsColorDataGray700: "#444444";
|
|
3246
|
+
ddsColorDataGray800: "#2e2e2e";
|
|
3247
|
+
ddsColorDataGray900: "#171717";
|
|
3023
3248
|
ddsColorBgDefault: "#ffffff";
|
|
3024
|
-
ddsColorBgSubtle: "#
|
|
3249
|
+
ddsColorBgSubtle: "#f1f3f4";
|
|
3025
3250
|
ddsColorSurfaceDefault: "#ffffff";
|
|
3026
|
-
ddsColorSurfaceSubtle: "#
|
|
3027
|
-
ddsColorSurfaceMedium: "#
|
|
3251
|
+
ddsColorSurfaceSubtle: "#f1f3f4";
|
|
3252
|
+
ddsColorSurfaceMedium: "#e4e6e8";
|
|
3028
3253
|
ddsColorSurfaceHoverDefault: "#e7f1f7";
|
|
3029
|
-
ddsColorSurfaceHoverSubtle: "#
|
|
3254
|
+
ddsColorSurfaceHoverSubtle: "#f1f3f4";
|
|
3030
3255
|
ddsColorSurfaceSelectedDefault: "#e7f1f7";
|
|
3031
3256
|
ddsColorSurfaceInverseDefault: "#354754";
|
|
3032
|
-
ddsColorSurfaceInverseHover: "#
|
|
3257
|
+
ddsColorSurfaceInverseHover: "#2a3943";
|
|
3033
3258
|
ddsColorSurfaceInverseSelected: "#202b32";
|
|
3034
3259
|
ddsColorSurfaceActionResting: "#106ead";
|
|
3035
3260
|
ddsColorSurfaceActionHover: "#0d588a";
|
|
@@ -3048,13 +3273,13 @@ declare function useTheme(): {
|
|
|
3048
3273
|
ddsColorSurfacePaperDefault: "#ffffff";
|
|
3049
3274
|
ddsColorSurfaceBackdropDefault: "#0b0d0e80";
|
|
3050
3275
|
ddsColorSurfaceFieldDefault: "#ffffff";
|
|
3051
|
-
ddsColorSurfaceFieldDisabled: "#
|
|
3052
|
-
ddsColorSurfaceHighlightedDefault: "#
|
|
3276
|
+
ddsColorSurfaceFieldDisabled: "#f1f3f4";
|
|
3277
|
+
ddsColorSurfaceHighlightedDefault: "#fce5dd";
|
|
3053
3278
|
ddsColorSurfaceScrollbar: "#adb5ba";
|
|
3054
3279
|
ddsColorSurfaceNotification: "#d83737";
|
|
3055
|
-
ddsColorSurfaceSkeleton: "#
|
|
3280
|
+
ddsColorSurfaceSkeleton: "#d6dadd";
|
|
3056
3281
|
ddsColorBorderDefault: "#77838c";
|
|
3057
|
-
ddsColorBorderSubtle: "#
|
|
3282
|
+
ddsColorBorderSubtle: "#d6dadd";
|
|
3058
3283
|
ddsColorBorderInverse: "#acbbc6";
|
|
3059
3284
|
ddsColorBorderActionDefault: "#106ead";
|
|
3060
3285
|
ddsColorBorderActionHover: "#0d588a";
|
|
@@ -3086,11 +3311,11 @@ declare function useTheme(): {
|
|
|
3086
3311
|
ddsColorIconActionHover: "#0d588a";
|
|
3087
3312
|
ddsColorIconOnSuccessDefault: "#3d723d";
|
|
3088
3313
|
ddsColorIconOnSuccessStrong: "#0b0d0e";
|
|
3089
|
-
ddsColorIconOnWarningDefault: "#
|
|
3314
|
+
ddsColorIconOnWarningDefault: "#9a8c26";
|
|
3090
3315
|
ddsColorIconOnWarningStrong: "#0b0d0e";
|
|
3091
3316
|
ddsColorIconOnDangerDefault: "#ad2c2c";
|
|
3092
3317
|
ddsColorIconOnDangerStrong: "#0b0d0e";
|
|
3093
|
-
ddsColorIconOnInfoDefault: "#
|
|
3318
|
+
ddsColorIconOnInfoDefault: "#3e7192";
|
|
3094
3319
|
ddsColorIconOnInfoStrong: "#0b0d0e";
|
|
3095
3320
|
ddsColorIconDanger: "#ad2c2c";
|
|
3096
3321
|
ddsColorBrandPrimaryDefault: "#354754";
|
|
@@ -3101,12 +3326,42 @@ declare function useTheme(): {
|
|
|
3101
3326
|
ddsColorBrandSecondarySubtle: "#e6eded";
|
|
3102
3327
|
ddsColorBrandSecondaryMedium: "#b8cdcd";
|
|
3103
3328
|
ddsColorBrandSecondaryStrong: "#4d6463";
|
|
3104
|
-
ddsColorBrandTertiaryDefault: "#
|
|
3105
|
-
ddsColorBrandTertiarySubtle: "#
|
|
3106
|
-
ddsColorBrandTertiaryMedium: "#
|
|
3107
|
-
ddsColorBrandTertiaryStrong: "#
|
|
3108
|
-
ddsColorFocusOutside: "#
|
|
3329
|
+
ddsColorBrandTertiaryDefault: "#f27e55";
|
|
3330
|
+
ddsColorBrandTertiarySubtle: "#fce5dd";
|
|
3331
|
+
ddsColorBrandTertiaryMedium: "#f2a68f";
|
|
3332
|
+
ddsColorBrandTertiaryStrong: "#d45d32";
|
|
3333
|
+
ddsColorFocusOutside: "#2a4b61";
|
|
3109
3334
|
ddsColorFocusInside: "#f1f8fd";
|
|
3335
|
+
ddsColorData10Default: "#196b8f";
|
|
3336
|
+
ddsColorData10Subtle: "#96c5d9";
|
|
3337
|
+
ddsColorData10Border: "#196b8f";
|
|
3338
|
+
ddsColorData01Default: "#0f62fe";
|
|
3339
|
+
ddsColorData01Subtle: "#9fc0ff";
|
|
3340
|
+
ddsColorData01Border: "#0f62fe";
|
|
3341
|
+
ddsColorData02Default: "#b3572f";
|
|
3342
|
+
ddsColorData02Subtle: "#e1bcac";
|
|
3343
|
+
ddsColorData02Border: "#b3572f";
|
|
3344
|
+
ddsColorData03Default: "#727272";
|
|
3345
|
+
ddsColorData03Subtle: "#c7c7c7";
|
|
3346
|
+
ddsColorData03Border: "#727272";
|
|
3347
|
+
ddsColorData04Default: "#198038";
|
|
3348
|
+
ddsColorData04Subtle: "#a3ccaf";
|
|
3349
|
+
ddsColorData04Border: "#198038";
|
|
3350
|
+
ddsColorData05Default: "#8a3ffc";
|
|
3351
|
+
ddsColorData05Subtle: "#d0b2fe";
|
|
3352
|
+
ddsColorData05Border: "#8a3ffc";
|
|
3353
|
+
ddsColorData06Default: "#b62665";
|
|
3354
|
+
ddsColorData06Subtle: "#dfa5bf";
|
|
3355
|
+
ddsColorData06Border: "#b62665";
|
|
3356
|
+
ddsColorData07Default: "#7c7518";
|
|
3357
|
+
ddsColorData07Subtle: "#cdc9a1";
|
|
3358
|
+
ddsColorData07Border: "#7c7518";
|
|
3359
|
+
ddsColorData08Default: "#da1e28";
|
|
3360
|
+
ddsColorData08Subtle: "#f0a5a9";
|
|
3361
|
+
ddsColorData08Border: "#da1e28";
|
|
3362
|
+
ddsColorData09Default: "#007d79";
|
|
3363
|
+
ddsColorData09Subtle: "#90ccc9";
|
|
3364
|
+
ddsColorData09Border: "#007d79";
|
|
3110
3365
|
ddsFontLabelMedium: "600 0.875rem/1.5 'IBM Plex Sans', Arial, sans-serif";
|
|
3111
3366
|
ddsFontBodyXsmall: "400 0.75rem/1.5 'IBM Plex Sans', Arial, sans-serif";
|
|
3112
3367
|
ddsFontBodySmall: "400 0.875rem/1.5 'IBM Plex Sans', Arial, sans-serif";
|
|
@@ -3205,7 +3460,7 @@ declare function useTheme(): {
|
|
|
3205
3460
|
ddsFontLineheightX1: 1.5;
|
|
3206
3461
|
ddsFontLineheightX2: 1.35;
|
|
3207
3462
|
ddsFontLineheightX3: 1.2;
|
|
3208
|
-
ddsFontLineheightList: 2
|
|
3463
|
+
ddsFontLineheightList: 2;
|
|
3209
3464
|
ddsFontLetterSpacingTight: "-0.01em";
|
|
3210
3465
|
ddsFontLetterSpacingNormal: "0em";
|
|
3211
3466
|
ddsFontLetterSpacingLoose: "0.01em";
|
|
@@ -3293,16 +3548,106 @@ declare function useTheme(): {
|
|
|
3293
3548
|
ddsZindexDropdown: "100";
|
|
3294
3549
|
ddsZindexSticky: "50";
|
|
3295
3550
|
ddsZindexAbsoluteElement: "1";
|
|
3551
|
+
ddsColorDataRed100: "#f8d2d4";
|
|
3552
|
+
ddsColorDataRed200: "#f0a5a9";
|
|
3553
|
+
ddsColorDataRed300: "#e9787e";
|
|
3554
|
+
ddsColorDataRed400: "#e14b53";
|
|
3555
|
+
ddsColorDataRed500: "#da1e28";
|
|
3556
|
+
ddsColorDataRed600: "#ae1820";
|
|
3557
|
+
ddsColorDataRed700: "#831218";
|
|
3558
|
+
ddsColorDataRed800: "#570c10";
|
|
3559
|
+
ddsColorDataRed900: "#2c0608";
|
|
3560
|
+
ddsColorDataMagenta100: "#eed3df";
|
|
3561
|
+
ddsColorDataMagenta200: "#dfa5bf";
|
|
3562
|
+
ddsColorDataMagenta300: "#cf789e";
|
|
3563
|
+
ddsColorDataMagenta400: "#c74f84";
|
|
3564
|
+
ddsColorDataMagenta500: "#b62665";
|
|
3565
|
+
ddsColorDataMagenta600: "#8a1a4b";
|
|
3566
|
+
ddsColorDataMagenta700: "#671438";
|
|
3567
|
+
ddsColorDataMagenta800: "#440e26";
|
|
3568
|
+
ddsColorDataMagenta900: "#220713";
|
|
3569
|
+
ddsColorDataBrown100: "#f0ddd5";
|
|
3570
|
+
ddsColorDataBrown200: "#e1bcac";
|
|
3571
|
+
ddsColorDataBrown300: "#d19a82";
|
|
3572
|
+
ddsColorDataBrown400: "#c27959";
|
|
3573
|
+
ddsColorDataBrown500: "#b3572f";
|
|
3574
|
+
ddsColorDataBrown600: "#8f4626";
|
|
3575
|
+
ddsColorDataBrown700: "#6b341c";
|
|
3576
|
+
ddsColorDataBrown800: "#482313";
|
|
3577
|
+
ddsColorDataBrown900: "#241109";
|
|
3578
|
+
ddsColorDataOlive100: "#e6e4d0";
|
|
3579
|
+
ddsColorDataOlive200: "#cdc9a1";
|
|
3580
|
+
ddsColorDataOlive300: "#b3ae71";
|
|
3581
|
+
ddsColorDataOlive400: "#989344";
|
|
3582
|
+
ddsColorDataOlive500: "#7c7518";
|
|
3583
|
+
ddsColorDataOlive600: "#635e13";
|
|
3584
|
+
ddsColorDataOlive700: "#4a460e";
|
|
3585
|
+
ddsColorDataOlive800: "#322f0a";
|
|
3586
|
+
ddsColorDataOlive900: "#191705";
|
|
3587
|
+
ddsColorDataGreen100: "#d1e6d7";
|
|
3588
|
+
ddsColorDataGreen200: "#a3ccaf";
|
|
3589
|
+
ddsColorDataGreen300: "#75b388";
|
|
3590
|
+
ddsColorDataGreen400: "#479960";
|
|
3591
|
+
ddsColorDataGreen500: "#198038";
|
|
3592
|
+
ddsColorDataGreen600: "#14662d";
|
|
3593
|
+
ddsColorDataGreen700: "#0f4d22";
|
|
3594
|
+
ddsColorDataGreen800: "#0a3316";
|
|
3595
|
+
ddsColorDataGreen900: "#051a0b";
|
|
3596
|
+
ddsColorDataTeal100: "#c2e2e1";
|
|
3597
|
+
ddsColorDataTeal200: "#90ccc9";
|
|
3598
|
+
ddsColorDataTeal300: "#5dafad";
|
|
3599
|
+
ddsColorDataTeal400: "#2c9390";
|
|
3600
|
+
ddsColorDataTeal500: "#007d79";
|
|
3601
|
+
ddsColorDataTeal600: "#006461";
|
|
3602
|
+
ddsColorDataTeal700: "#004b49";
|
|
3603
|
+
ddsColorDataTeal800: "#003230";
|
|
3604
|
+
ddsColorDataTeal900: "#001918";
|
|
3605
|
+
ddsColorDataDeepblue100: "#b9d7e5";
|
|
3606
|
+
ddsColorDataDeepblue200: "#96c5d9";
|
|
3607
|
+
ddsColorDataDeepblue300: "#6aa8c3";
|
|
3608
|
+
ddsColorDataDeepblue400: "#3e8bac";
|
|
3609
|
+
ddsColorDataDeepblue500: "#196b8f";
|
|
3610
|
+
ddsColorDataDeepblue600: "#135774";
|
|
3611
|
+
ddsColorDataDeepblue700: "#0e455e";
|
|
3612
|
+
ddsColorDataDeepblue800: "#0d3445";
|
|
3613
|
+
ddsColorDataDeepblue900: "#05151d";
|
|
3614
|
+
ddsColorDataBlue100: "#cfe0ff";
|
|
3615
|
+
ddsColorDataBlue200: "#9fc0ff";
|
|
3616
|
+
ddsColorDataBlue300: "#6fa1fe";
|
|
3617
|
+
ddsColorDataBlue400: "#3f81fe";
|
|
3618
|
+
ddsColorDataBlue500: "#0f62fe";
|
|
3619
|
+
ddsColorDataBlue600: "#0c4ecb";
|
|
3620
|
+
ddsColorDataBlue700: "#093b98";
|
|
3621
|
+
ddsColorDataBlue800: "#062766";
|
|
3622
|
+
ddsColorDataBlue900: "#031433";
|
|
3623
|
+
ddsColorDataPurple100: "#e8d9fe";
|
|
3624
|
+
ddsColorDataPurple200: "#d0b2fe";
|
|
3625
|
+
ddsColorDataPurple300: "#b98cfd";
|
|
3626
|
+
ddsColorDataPurple400: "#a165fd";
|
|
3627
|
+
ddsColorDataPurple500: "#8a3ffc";
|
|
3628
|
+
ddsColorDataPurple600: "#6e32ca";
|
|
3629
|
+
ddsColorDataPurple700: "#532697";
|
|
3630
|
+
ddsColorDataPurple800: "#371965";
|
|
3631
|
+
ddsColorDataPurple900: "#1c0d32";
|
|
3632
|
+
ddsColorDataGray100: "#e3e3e3";
|
|
3633
|
+
ddsColorDataGray200: "#c7c7c7";
|
|
3634
|
+
ddsColorDataGray300: "#aaaaaa";
|
|
3635
|
+
ddsColorDataGray400: "#8e8e8e";
|
|
3636
|
+
ddsColorDataGray500: "#727272";
|
|
3637
|
+
ddsColorDataGray600: "#5b5b5b";
|
|
3638
|
+
ddsColorDataGray700: "#444444";
|
|
3639
|
+
ddsColorDataGray800: "#2e2e2e";
|
|
3640
|
+
ddsColorDataGray900: "#171717";
|
|
3296
3641
|
ddsColorBgDefault: "#ffffff";
|
|
3297
|
-
ddsColorBgSubtle: "#
|
|
3642
|
+
ddsColorBgSubtle: "#f1f3f4";
|
|
3298
3643
|
ddsColorSurfaceDefault: "#ffffff";
|
|
3299
|
-
ddsColorSurfaceSubtle: "#
|
|
3300
|
-
ddsColorSurfaceMedium: "#
|
|
3644
|
+
ddsColorSurfaceSubtle: "#f1f3f4";
|
|
3645
|
+
ddsColorSurfaceMedium: "#e4e6e8";
|
|
3301
3646
|
ddsColorSurfaceHoverDefault: "#e7f1f7";
|
|
3302
|
-
ddsColorSurfaceHoverSubtle: "#
|
|
3647
|
+
ddsColorSurfaceHoverSubtle: "#f1f3f4";
|
|
3303
3648
|
ddsColorSurfaceSelectedDefault: "#e7f1f7";
|
|
3304
3649
|
ddsColorSurfaceInverseDefault: "#354754";
|
|
3305
|
-
ddsColorSurfaceInverseHover: "#
|
|
3650
|
+
ddsColorSurfaceInverseHover: "#2a3943";
|
|
3306
3651
|
ddsColorSurfaceInverseSelected: "#202b32";
|
|
3307
3652
|
ddsColorSurfaceActionResting: "#106ead";
|
|
3308
3653
|
ddsColorSurfaceActionHover: "#0d588a";
|
|
@@ -3321,13 +3666,13 @@ declare function useTheme(): {
|
|
|
3321
3666
|
ddsColorSurfacePaperDefault: "#ffffff";
|
|
3322
3667
|
ddsColorSurfaceBackdropDefault: "#0b0d0e80";
|
|
3323
3668
|
ddsColorSurfaceFieldDefault: "#ffffff";
|
|
3324
|
-
ddsColorSurfaceFieldDisabled: "#
|
|
3325
|
-
ddsColorSurfaceHighlightedDefault: "#
|
|
3669
|
+
ddsColorSurfaceFieldDisabled: "#f1f3f4";
|
|
3670
|
+
ddsColorSurfaceHighlightedDefault: "#fce5dd";
|
|
3326
3671
|
ddsColorSurfaceScrollbar: "#adb5ba";
|
|
3327
3672
|
ddsColorSurfaceNotification: "#d83737";
|
|
3328
|
-
ddsColorSurfaceSkeleton: "#
|
|
3673
|
+
ddsColorSurfaceSkeleton: "#d6dadd";
|
|
3329
3674
|
ddsColorBorderDefault: "#77838c";
|
|
3330
|
-
ddsColorBorderSubtle: "#
|
|
3675
|
+
ddsColorBorderSubtle: "#d6dadd";
|
|
3331
3676
|
ddsColorBorderInverse: "#acbbc6";
|
|
3332
3677
|
ddsColorBorderActionDefault: "#106ead";
|
|
3333
3678
|
ddsColorBorderActionHover: "#0d588a";
|
|
@@ -3359,11 +3704,11 @@ declare function useTheme(): {
|
|
|
3359
3704
|
ddsColorIconActionHover: "#0d588a";
|
|
3360
3705
|
ddsColorIconOnSuccessDefault: "#3d723d";
|
|
3361
3706
|
ddsColorIconOnSuccessStrong: "#0b0d0e";
|
|
3362
|
-
ddsColorIconOnWarningDefault: "#
|
|
3707
|
+
ddsColorIconOnWarningDefault: "#9a8c26";
|
|
3363
3708
|
ddsColorIconOnWarningStrong: "#0b0d0e";
|
|
3364
3709
|
ddsColorIconOnDangerDefault: "#ad2c2c";
|
|
3365
3710
|
ddsColorIconOnDangerStrong: "#0b0d0e";
|
|
3366
|
-
ddsColorIconOnInfoDefault: "#
|
|
3711
|
+
ddsColorIconOnInfoDefault: "#3e7192";
|
|
3367
3712
|
ddsColorIconOnInfoStrong: "#0b0d0e";
|
|
3368
3713
|
ddsColorIconDanger: "#ad2c2c";
|
|
3369
3714
|
ddsColorBrandPrimaryDefault: "#354754";
|
|
@@ -3374,12 +3719,42 @@ declare function useTheme(): {
|
|
|
3374
3719
|
ddsColorBrandSecondarySubtle: "#e6eded";
|
|
3375
3720
|
ddsColorBrandSecondaryMedium: "#b8cdcd";
|
|
3376
3721
|
ddsColorBrandSecondaryStrong: "#4d6463";
|
|
3377
|
-
ddsColorBrandTertiaryDefault: "#
|
|
3378
|
-
ddsColorBrandTertiarySubtle: "#
|
|
3379
|
-
ddsColorBrandTertiaryMedium: "#
|
|
3380
|
-
ddsColorBrandTertiaryStrong: "#
|
|
3381
|
-
ddsColorFocusOutside: "#
|
|
3722
|
+
ddsColorBrandTertiaryDefault: "#f27e55";
|
|
3723
|
+
ddsColorBrandTertiarySubtle: "#fce5dd";
|
|
3724
|
+
ddsColorBrandTertiaryMedium: "#f2a68f";
|
|
3725
|
+
ddsColorBrandTertiaryStrong: "#d45d32";
|
|
3726
|
+
ddsColorFocusOutside: "#2a4b61";
|
|
3382
3727
|
ddsColorFocusInside: "#f1f8fd";
|
|
3728
|
+
ddsColorData10Default: "#196b8f";
|
|
3729
|
+
ddsColorData10Subtle: "#96c5d9";
|
|
3730
|
+
ddsColorData10Border: "#196b8f";
|
|
3731
|
+
ddsColorData01Default: "#0f62fe";
|
|
3732
|
+
ddsColorData01Subtle: "#9fc0ff";
|
|
3733
|
+
ddsColorData01Border: "#0f62fe";
|
|
3734
|
+
ddsColorData02Default: "#b3572f";
|
|
3735
|
+
ddsColorData02Subtle: "#e1bcac";
|
|
3736
|
+
ddsColorData02Border: "#b3572f";
|
|
3737
|
+
ddsColorData03Default: "#727272";
|
|
3738
|
+
ddsColorData03Subtle: "#c7c7c7";
|
|
3739
|
+
ddsColorData03Border: "#727272";
|
|
3740
|
+
ddsColorData04Default: "#198038";
|
|
3741
|
+
ddsColorData04Subtle: "#a3ccaf";
|
|
3742
|
+
ddsColorData04Border: "#198038";
|
|
3743
|
+
ddsColorData05Default: "#8a3ffc";
|
|
3744
|
+
ddsColorData05Subtle: "#d0b2fe";
|
|
3745
|
+
ddsColorData05Border: "#8a3ffc";
|
|
3746
|
+
ddsColorData06Default: "#b62665";
|
|
3747
|
+
ddsColorData06Subtle: "#dfa5bf";
|
|
3748
|
+
ddsColorData06Border: "#b62665";
|
|
3749
|
+
ddsColorData07Default: "#7c7518";
|
|
3750
|
+
ddsColorData07Subtle: "#cdc9a1";
|
|
3751
|
+
ddsColorData07Border: "#7c7518";
|
|
3752
|
+
ddsColorData08Default: "#da1e28";
|
|
3753
|
+
ddsColorData08Subtle: "#f0a5a9";
|
|
3754
|
+
ddsColorData08Border: "#da1e28";
|
|
3755
|
+
ddsColorData09Default: "#007d79";
|
|
3756
|
+
ddsColorData09Subtle: "#90ccc9";
|
|
3757
|
+
ddsColorData09Border: "#007d79";
|
|
3383
3758
|
ddsBorderRadiusButton: "2px";
|
|
3384
3759
|
ddsBorderRadiusButtonNumberPx: 2;
|
|
3385
3760
|
ddsBorderRadiusSurface: "2px";
|
|
@@ -3451,7 +3826,6 @@ declare function useTheme(): {
|
|
|
3451
3826
|
};
|
|
3452
3827
|
|
|
3453
3828
|
type ToggleSize = Extract<Size, 'medium' | 'large'>;
|
|
3454
|
-
type TogglePickedHTMLAttributes = Omit<CheckboxPickedHTMLAttributes, 'onChange' | 'checked' | 'defaultChecked'>;
|
|
3455
3829
|
type ToggleProps = BaseComponentProps<HTMLElement, {
|
|
3456
3830
|
/**Ledetekst; tillater bruk av f.eks. `<VisuallyHidden>` for usynlig tekst. */
|
|
3457
3831
|
children?: ReactNode;
|
|
@@ -3483,7 +3857,7 @@ type ToggleProps = BaseComponentProps<HTMLElement, {
|
|
|
3483
3857
|
* @default "medium"
|
|
3484
3858
|
*/
|
|
3485
3859
|
size?: ToggleSize;
|
|
3486
|
-
}
|
|
3860
|
+
}, Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange' | 'checked' | 'defaultChecked'>>;
|
|
3487
3861
|
declare const Toggle: {
|
|
3488
3862
|
({ id, children, size, checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, htmlProps, ...rest }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
3489
3863
|
displayName: string;
|
|
@@ -3505,8 +3879,8 @@ type ToggleBarProps<T extends string | number> = BaseComponentPropsWithChildren<
|
|
|
3505
3879
|
/** Gir alle barna samme `name` prop.*/
|
|
3506
3880
|
name?: string;
|
|
3507
3881
|
/**Bredden til komponenten. Bredden fordeles likt mellom barna. */
|
|
3508
|
-
width?:
|
|
3509
|
-
}
|
|
3882
|
+
width?: ResponsiveProps['width'];
|
|
3883
|
+
}, Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'size' | 'width'>>;
|
|
3510
3884
|
|
|
3511
3885
|
declare const ToggleBar: {
|
|
3512
3886
|
<T extends string | number = string>(props: ToggleBarProps<T>): react_jsx_runtime.JSX.Element;
|
|
@@ -3535,7 +3909,7 @@ type ToggleButtonProps = BaseComponentProps<HTMLInputElement, {
|
|
|
3535
3909
|
* @default 'small'
|
|
3536
3910
|
*/
|
|
3537
3911
|
size?: 'small' | 'xsmall';
|
|
3538
|
-
} & CheckboxPickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof CheckboxPickedHTMLAttributes>>;
|
|
3912
|
+
} & CheckboxPickedHTMLAttributes, Omit<InputHTMLAttributes<HTMLInputElement>, keyof CheckboxPickedHTMLAttributes | 'size'>>;
|
|
3539
3913
|
|
|
3540
3914
|
declare const ToggleButton: {
|
|
3541
3915
|
({ id, label, icon, size, className, htmlProps, ...rest }: ToggleButtonProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3596,4 +3970,4 @@ declare const VisuallyHidden: {
|
|
|
3596
3970
|
displayName: string;
|
|
3597
3971
|
};
|
|
3598
3972
|
|
|
3599
|
-
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 };
|
|
3973
|
+
export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, type AccordionProps, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDown, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, type BackLinkProps, Backdrop, BarChartBoxedIcon, BarChartIcon, type BaseComponentProps, type BaseComponentPropsWithChildren, type BaseItemProps, type BaseLabelProps, type BaseTypographyProps, BlockIcon, BookIcon, type BorderColor, type BorderRadius, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, 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, CookieBanner, CookieBannerCheckbox, type CookieBannerCheckboxProps, type CookieBannerProps, 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, ELEVATIONS, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, ExclaimIcon, ExpandIcon, type ExpandableCardProps, type ExtractStrict, FacebookIcon, FamilyIcon, FavStar, type FavStarProps, Feedback, FeedbackIcon, type FeedbackProps, Fieldset, FieldsetGroup, type FieldsetGroupProps, 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, type HStackProps, 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 PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, type PaperProps, Paragraph, type ParagraphProps, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, type PhoneInputProps, type PhoneInputValue, PinIcon, type Placement, PlusCircledIcon, PlusIcon, type PolymorphicBaseComponentProps, 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, type ResponsiveProps, type ResponsiveStackProps, ScreenSize, Search, SearchAutocompleteWrapper, type SearchAutocompleteWrapperProps, type SearchButtonProps, type SearchData, SearchIcon, type SearchProps, type SearchSize, SearchSuggestions, type SearchSuggestionsProps, Select, type SelectForwardRefType, type SelectOption, type SelectProps, SettingsIcon, ShowHide, type ShowHideProps, type Size, Skeleton, type SkeletonAppearance, type SkeletonProps, SkipToContent, type SkipToContentProps, SmsIcon, type SortOrder, type SpacingScale, Spinner, type SpinnerProps, SplitButton, type SplitButtonPrimaryActionProps, type SplitButtonProps, type SplitButtonPurpose, type SplitButtonSecondaryActionsProps, 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, type VStackProps, 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, getInputWidth, getLiteralScreenSize, getTypographyCn, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, index as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderCharCounter, renderInputMessage, scrollbarStyling, typographyTypes, useCombinedRef, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize, visibilityTransition };
|