@norges-domstoler/dds-components 0.0.0-dev-20260720114143 → 0.0.0-dev-20260720132029
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.cjs +19 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +559 -1526
- package/dist/index.d.mts +559 -1525
- package/dist/index.mjs +19 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -5,8 +5,9 @@ import { ddsTokens } from "@norges-domstoler/dds-design-tokens";
|
|
|
5
5
|
import { CalendarDate, DateValue, Time } from "@internationalized/date";
|
|
6
6
|
import { AriaCalendarProps, DateValue as DateValue$1 } from "@react-aria/calendar";
|
|
7
7
|
import { AriaDateFieldOptions, AriaDatePickerProps, AriaTimeFieldProps, useDatePicker } from "@react-aria/datepicker";
|
|
8
|
+
import "@react-stately/datepicker";
|
|
9
|
+
import "file-selector";
|
|
8
10
|
import { GroupBase, OptionProps, Props, SelectInstance, SingleValueProps } from "react-select";
|
|
9
|
-
|
|
10
11
|
//#region src/components/helpers/AccordionBase/useAccordion.d.ts
|
|
11
12
|
interface AccordionConfig {
|
|
12
13
|
/**
|
|
@@ -133,12 +134,7 @@ interface AccordionState {
|
|
|
133
134
|
* });
|
|
134
135
|
* ```
|
|
135
136
|
*/
|
|
136
|
-
declare const useAccordion: ({
|
|
137
|
-
isInitiallyExpanded,
|
|
138
|
-
isExpanded: isExpandedProp,
|
|
139
|
-
onChange,
|
|
140
|
-
id
|
|
141
|
-
}: AccordionConfig) => AccordionState;
|
|
137
|
+
declare const useAccordion: ({ isInitiallyExpanded, isExpanded: isExpandedProp, onChange, id }: AccordionConfig) => AccordionState;
|
|
142
138
|
//#endregion
|
|
143
139
|
//#region src/components/helpers/AccordionBase/AccordionContext.d.ts
|
|
144
140
|
interface AccordionContext {
|
|
@@ -149,10 +145,7 @@ interface AccordionContext {
|
|
|
149
145
|
bodyContentRef: RefObject<HTMLDivElement | null>;
|
|
150
146
|
}
|
|
151
147
|
declare const AccordionContext: import("react").Context<Partial<AccordionContext>>;
|
|
152
|
-
declare const AccordionContextProvider: ({
|
|
153
|
-
children,
|
|
154
|
-
...values
|
|
155
|
-
}: AccordionContext & {
|
|
148
|
+
declare const AccordionContextProvider: ({ children, ...values }: AccordionContext & {
|
|
156
149
|
children: ReactNode;
|
|
157
150
|
}) => import("react").JSX.Element;
|
|
158
151
|
declare const useAccordionContext: () => Partial<AccordionContext>;
|
|
@@ -178,7 +171,6 @@ type BackdropProps = {
|
|
|
178
171
|
* @param {React.Ref<HTMLDivElement>} [props.ref] - Referanse til DOM-elementet.
|
|
179
172
|
*
|
|
180
173
|
* @returns {JSX.Element} Et `<div>`-element med riktige klasser basert på synlighet og z-index.
|
|
181
|
-
|
|
182
174
|
* @example
|
|
183
175
|
* ```tsx
|
|
184
176
|
* <Backdrop isMounted={true} zIndex="modal" onClick={handleClose}>
|
|
@@ -187,11 +179,7 @@ type BackdropProps = {
|
|
|
187
179
|
* ```
|
|
188
180
|
*/
|
|
189
181
|
declare const Backdrop: {
|
|
190
|
-
({
|
|
191
|
-
isMounted,
|
|
192
|
-
zIndex,
|
|
193
|
-
...props
|
|
194
|
-
}: BackdropProps): import("react").JSX.Element;
|
|
182
|
+
({ isMounted, zIndex, ...props }: BackdropProps): import("react").JSX.Element;
|
|
195
183
|
displayName: string;
|
|
196
184
|
};
|
|
197
185
|
//#endregion
|
|
@@ -211,7 +199,8 @@ type CommonComponentProps<THTMLProps extends object, TRef extends Ref<unknown>>
|
|
|
211
199
|
/**Native HTML-attributter som vil settes på elementet som genereres.
|
|
212
200
|
* Untatt `id`, `className`, `style` og eventuelt andre ofte brukte native HTML-attributter spesifisert i dokumentasjonen.
|
|
213
201
|
* */
|
|
214
|
-
htmlProps?: THTMLProps;
|
|
202
|
+
htmlProps?: THTMLProps;
|
|
203
|
+
/**Ref til komponenten. */
|
|
215
204
|
ref?: TRef;
|
|
216
205
|
};
|
|
217
206
|
/**
|
|
@@ -236,14 +225,17 @@ type BaseComponentProps<TElement extends Element, TOtherProps extends object = o
|
|
|
236
225
|
* @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.
|
|
237
226
|
*/
|
|
238
227
|
type PolymorphicBaseComponentProps<E extends ElementType, TOtherProps extends object = object> = TOtherProps & HTMLRootProps & {
|
|
239
|
-
/** HTML- eller React-element som returneres. */
|
|
228
|
+
/** HTML- eller React-element som returneres. */
|
|
229
|
+
as?: E;
|
|
230
|
+
/** Barn. Blir ignorert hvis returnert HTML tag ikke støtter de. */
|
|
240
231
|
children?: React.ReactNode;
|
|
241
232
|
} & CommonComponentProps<Omit<ComponentPropsWithoutRef<E>, keyof HTMLRootProps | keyof TOtherProps>, ComponentPropsWithRef<E>['ref']> & Omit<ComponentPropsWithoutRef<E>, keyof HTMLRootProps | keyof TOtherProps | 'children' | 'ref'>;
|
|
242
233
|
/**
|
|
243
234
|
* Utvidelse av {@link BaseComponentProps} med prop for `children`.
|
|
244
235
|
*/
|
|
245
236
|
type BaseComponentPropsWithChildren<T extends Element, TProps extends object = object, THTMLProps extends HTMLAttributes<T> = HTMLAttributes<T>> = BaseComponentProps<T, TProps & {
|
|
246
|
-
/**Barn. */
|
|
237
|
+
/**Barn. */
|
|
238
|
+
children?: ReactNode;
|
|
247
239
|
}, THTMLProps>;
|
|
248
240
|
/**
|
|
249
241
|
* Slår sammen id, className,htmlProps og unknownProps til ett objekt
|
|
@@ -345,7 +337,8 @@ type ButtonProps<I extends SvgIcon = SvgIcon, T extends ElementType = 'button'>
|
|
|
345
337
|
/** Størrelsen på knappen.
|
|
346
338
|
* @default "medium"
|
|
347
339
|
*/
|
|
348
|
-
size?: ButtonSize;
|
|
340
|
+
size?: ButtonSize;
|
|
341
|
+
/**Innhold i knappen (unntatt ikon). */
|
|
349
342
|
children?: ReactNode;
|
|
350
343
|
/**Bestemmer farger basert på formål.
|
|
351
344
|
* @default "primary"
|
|
@@ -354,17 +347,20 @@ type ButtonProps<I extends SvgIcon = SvgIcon, T extends ElementType = 'button'>
|
|
|
354
347
|
/** Posisjonen til ikonet i forhold til teksten.
|
|
355
348
|
* @default "left"
|
|
356
349
|
*/
|
|
357
|
-
iconPosition?: IconPosition;
|
|
350
|
+
iconPosition?: IconPosition;
|
|
351
|
+
/**Indikerer en loading-knapp. */
|
|
358
352
|
loading?: boolean;
|
|
359
353
|
/** Tooltip som vises ved loading.
|
|
360
354
|
* @default "Lagring pågår"
|
|
361
355
|
*/
|
|
362
|
-
loadingTooltip?: string;
|
|
356
|
+
loadingTooltip?: string;
|
|
357
|
+
/**Ikonet som ligger i knappen. */
|
|
363
358
|
icon?: I;
|
|
364
359
|
/**
|
|
365
360
|
* Ikon-state hvis ikonet kan animeres; types basert på ikon valgt i `icon` prop. Statiske ikoner støtter ikke propen.
|
|
366
361
|
*/
|
|
367
|
-
iconState?: IconStatesOf<I>;
|
|
362
|
+
iconState?: IconStatesOf<I>;
|
|
363
|
+
/**Knapp med full bredde. */
|
|
368
364
|
fullWidth?: boolean;
|
|
369
365
|
} & PickedHTMLAttributes$4>;
|
|
370
366
|
//#endregion
|
|
@@ -10816,7 +10812,8 @@ declare function cn(...classNames: Array<unknown>): string | undefined;
|
|
|
10816
10812
|
declare const ICON_SIZES: ["large", "medium", "small", "inherit", "component"];
|
|
10817
10813
|
type IconSize = (typeof ICON_SIZES)[number];
|
|
10818
10814
|
type IconProps<I extends SvgIcon = SvgIcon> = BaseComponentProps<SVGSVGElement, {
|
|
10819
|
-
/**Ikonet importert fra `@norges-domstoler/dds-components`. */
|
|
10815
|
+
/**Ikonet importert fra `@norges-domstoler/dds-components`. */
|
|
10816
|
+
icon: I;
|
|
10820
10817
|
/**Størrelsen på ikonet.
|
|
10821
10818
|
* @default "medium"
|
|
10822
10819
|
*/
|
|
@@ -10837,27 +10834,7 @@ declare namespace Icon {
|
|
|
10837
10834
|
//#endregion
|
|
10838
10835
|
//#region src/components/Button/Button.d.ts
|
|
10839
10836
|
declare const Button: {
|
|
10840
|
-
<I extends SvgIcon, T extends ElementType = "button">({
|
|
10841
|
-
as: propAs,
|
|
10842
|
-
children,
|
|
10843
|
-
purpose,
|
|
10844
|
-
size: propSize,
|
|
10845
|
-
iconPosition,
|
|
10846
|
-
loading,
|
|
10847
|
-
loadingTooltip,
|
|
10848
|
-
fullWidth,
|
|
10849
|
-
icon,
|
|
10850
|
-
iconState,
|
|
10851
|
-
onClick,
|
|
10852
|
-
onFocus,
|
|
10853
|
-
onBlur,
|
|
10854
|
-
id,
|
|
10855
|
-
ref,
|
|
10856
|
-
className,
|
|
10857
|
-
style,
|
|
10858
|
-
htmlProps,
|
|
10859
|
-
...props
|
|
10860
|
-
}: ButtonProps<I, T>): import("react").JSX.Element;
|
|
10837
|
+
<I extends SvgIcon, T extends ElementType = "button">({ as: propAs, children, purpose, size: propSize, iconPosition, loading, loadingTooltip, fullWidth, icon, iconState, onClick, onFocus, onBlur, id, ref, className, style, htmlProps, ...props }: ButtonProps<I, T>): import("react").JSX.Element;
|
|
10861
10838
|
displayName: string;
|
|
10862
10839
|
};
|
|
10863
10840
|
//#endregion
|
|
@@ -10866,7 +10843,8 @@ declare const TOGGLE_SIZES: ["medium", "large"];
|
|
|
10866
10843
|
type ToggleSize = (typeof TOGGLE_SIZES)[number];
|
|
10867
10844
|
type ToggleVariant = 'default' | 'colorScheme';
|
|
10868
10845
|
type ToggleProps = BaseComponentProps<HTMLElement, {
|
|
10869
|
-
/**Ledetekst; tillater bruk av f.eks. `<VisuallyHidden>` for usynlig tekst. */
|
|
10846
|
+
/**Ledetekst; tillater bruk av f.eks. `<VisuallyHidden>` for usynlig tekst. */
|
|
10847
|
+
children?: ReactNode;
|
|
10870
10848
|
/**
|
|
10871
10849
|
* Callback som blir kalt når brukeren endrer toggle-verdien.
|
|
10872
10850
|
*/
|
|
@@ -10879,7 +10857,8 @@ type ToggleProps = BaseComponentProps<HTMLElement, {
|
|
|
10879
10857
|
* Den initielle verdien når komponenten brukes uncontrolled.
|
|
10880
10858
|
* @default false
|
|
10881
10859
|
*/
|
|
10882
|
-
defaultChecked?: boolean;
|
|
10860
|
+
defaultChecked?: boolean;
|
|
10861
|
+
/**Spesifiserer om input er `disabled`. */
|
|
10883
10862
|
disabled?: boolean;
|
|
10884
10863
|
/**
|
|
10885
10864
|
* Inputelementet blir `readonly` - den kan ikke interageres med. Brukes bl.a. til å presentere input brukeren har fylt ut andre steder.
|
|
@@ -10901,22 +10880,7 @@ type ToggleProps = BaseComponentProps<HTMLElement, {
|
|
|
10901
10880
|
variant?: ToggleVariant;
|
|
10902
10881
|
} & Pick<ComponentProps<'input'>, 'name' | 'aria-describedby' | 'onBlur'>, InputHTMLAttributes<HTMLInputElement>>;
|
|
10903
10882
|
declare const Toggle: {
|
|
10904
|
-
({
|
|
10905
|
-
id,
|
|
10906
|
-
children,
|
|
10907
|
-
size,
|
|
10908
|
-
checked: checkedProp,
|
|
10909
|
-
defaultChecked,
|
|
10910
|
-
onChange,
|
|
10911
|
-
disabled,
|
|
10912
|
-
readOnly,
|
|
10913
|
-
isLoading,
|
|
10914
|
-
className,
|
|
10915
|
-
style,
|
|
10916
|
-
htmlProps,
|
|
10917
|
-
variant,
|
|
10918
|
-
...rest
|
|
10919
|
-
}: ToggleProps): import("react").JSX.Element;
|
|
10883
|
+
({ id, children, size, checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, style, htmlProps, variant, ...rest }: ToggleProps): import("react").JSX.Element;
|
|
10920
10884
|
displayName: string;
|
|
10921
10885
|
};
|
|
10922
10886
|
//#endregion
|
|
@@ -10930,7 +10894,6 @@ type StylelessButtonProps<TProps extends object = object> = TProps & ComponentPr
|
|
|
10930
10894
|
* @param {Object & T} props - Standard HTML-attributter for komponenten med mulig utvidelse.
|
|
10931
10895
|
*
|
|
10932
10896
|
* @returns {JSX.Element} `<button>`-element uten styling.
|
|
10933
|
-
|
|
10934
10897
|
* @example
|
|
10935
10898
|
* ```tsx
|
|
10936
10899
|
* <StylelessButton className="min-styling">
|
|
@@ -10938,15 +10901,13 @@ type StylelessButtonProps<TProps extends object = object> = TProps & ComponentPr
|
|
|
10938
10901
|
* </StylelessButton>
|
|
10939
10902
|
* ```
|
|
10940
10903
|
*/
|
|
10941
|
-
declare const StylelessButton: ({
|
|
10942
|
-
className,
|
|
10943
|
-
...rest
|
|
10944
|
-
}: StylelessButtonProps) => import("react").JSX.Element;
|
|
10904
|
+
declare const StylelessButton: ({ className, ...rest }: StylelessButtonProps) => import("react").JSX.Element;
|
|
10945
10905
|
//#endregion
|
|
10946
10906
|
//#region src/components/helpers/Dropdown/DropdownItem.d.ts
|
|
10947
10907
|
type DropdownItemT = 'span' | 'a' | typeof StylelessButton | typeof Toggle;
|
|
10948
10908
|
type DropdownItemButtonProps = {
|
|
10949
|
-
/**Asynkron `onClick` event; håndterer loading status, slik at menyen ikke lukker seg under loading. */
|
|
10909
|
+
/**Asynkron `onClick` event; håndterer loading status, slik at menyen ikke lukker seg under loading. */
|
|
10910
|
+
onClickAsync?: MouseEventHandler<HTMLButtonElement>;
|
|
10950
10911
|
/**Egen styring av når menyen skal lukkes ved klikk på knapp i menyen. Bruker intern logikk som default. Støtter i tillegg egen funksjon og ingen lukking (`false`).
|
|
10951
10912
|
* @default true
|
|
10952
10913
|
*/
|
|
@@ -10962,22 +10923,11 @@ interface DropdownItemCustomProps<T extends DropdownItemT = 'span'> {
|
|
|
10962
10923
|
purpose?: 'default' | 'danger';
|
|
10963
10924
|
}
|
|
10964
10925
|
type DropdownItemProps<T extends DropdownItemT = 'span'> = DropdownItemCustomProps<T> & DropdownItemButtonProps & (T extends typeof StylelessButton ? StylelessButtonProps : ComponentPropsWithRef<T>);
|
|
10965
|
-
declare const DropdownItem: <T extends DropdownItemT = "span">({
|
|
10966
|
-
icon,
|
|
10967
|
-
className,
|
|
10968
|
-
children: propChildren,
|
|
10969
|
-
purpose,
|
|
10970
|
-
loading,
|
|
10971
|
-
loadingTooltip,
|
|
10972
|
-
...rest
|
|
10973
|
-
}: DropdownItemProps<T>) => import("react").JSX.Element;
|
|
10926
|
+
declare const DropdownItem: <T extends DropdownItemT = "span">({ icon, className, children: propChildren, purpose, loading, loadingTooltip, ...rest }: DropdownItemProps<T>) => import("react").JSX.Element;
|
|
10974
10927
|
//#endregion
|
|
10975
10928
|
//#region src/components/helpers/Dropdown/DropdownHeader.d.ts
|
|
10976
10929
|
type DropdownHeaderProps = ComponentPropsWithRef<'h2'>;
|
|
10977
|
-
declare const DropdownHeader: ({
|
|
10978
|
-
className,
|
|
10979
|
-
...rest
|
|
10980
|
-
}: DropdownHeaderProps) => import("react").JSX.Element;
|
|
10930
|
+
declare const DropdownHeader: ({ className, ...rest }: DropdownHeaderProps) => import("react").JSX.Element;
|
|
10981
10931
|
//#endregion
|
|
10982
10932
|
//#region src/components/helpers/HiddenInput/HiddenInput.d.ts
|
|
10983
10933
|
/**
|
|
@@ -10987,7 +10937,6 @@ declare const DropdownHeader: ({
|
|
|
10987
10937
|
* @param {Object} props - Standard HTML-attributter for komponenten.
|
|
10988
10938
|
*
|
|
10989
10939
|
* @returns {JSX.Element} Et usynlig `<input>`-element.
|
|
10990
|
-
|
|
10991
10940
|
* @example
|
|
10992
10941
|
* ```tsx
|
|
10993
10942
|
* <label htmlFor="id">
|
|
@@ -10997,10 +10946,7 @@ declare const DropdownHeader: ({
|
|
|
10997
10946
|
* });
|
|
10998
10947
|
* ```
|
|
10999
10948
|
*/
|
|
11000
|
-
declare const HiddenInput: ({
|
|
11001
|
-
className,
|
|
11002
|
-
...rest
|
|
11003
|
-
}: ComponentPropsWithRef<"input">) => import("react").JSX.Element;
|
|
10949
|
+
declare const HiddenInput: ({ className, ...rest }: ComponentPropsWithRef<"input">) => import("react").JSX.Element;
|
|
11004
10950
|
//#endregion
|
|
11005
10951
|
//#region src/components/helpers/StylelessList/StylelessList.d.ts
|
|
11006
10952
|
type StylelessListProps<TProps extends object = object> = TProps & ComponentPropsWithRef<'ul'>;
|
|
@@ -11012,7 +10958,6 @@ type StylelessListProps<TProps extends object = object> = TProps & ComponentProp
|
|
|
11012
10958
|
* @param {Object & T} props - Standard HTML-attributter for komponenten med mulig utvidelse.
|
|
11013
10959
|
*
|
|
11014
10960
|
* @returns {JSX.Element} `<ul>`-element uten styling.
|
|
11015
|
-
|
|
11016
10961
|
* @example
|
|
11017
10962
|
* ```tsx
|
|
11018
10963
|
* <StylelessList className="min-styling">
|
|
@@ -11021,10 +10966,7 @@ type StylelessListProps<TProps extends object = object> = TProps & ComponentProp
|
|
|
11021
10966
|
* </StylelessList>
|
|
11022
10967
|
* ```
|
|
11023
10968
|
*/
|
|
11024
|
-
declare const StylelessList: ({
|
|
11025
|
-
className,
|
|
11026
|
-
...rest
|
|
11027
|
-
}: StylelessListProps) => import("react").JSX.Element;
|
|
10969
|
+
declare const StylelessList: ({ className, ...rest }: StylelessListProps) => import("react").JSX.Element;
|
|
11028
10970
|
type StylelessOListProps<TProps extends object = object> = TProps & ComponentPropsWithRef<'ol'>;
|
|
11029
10971
|
/**
|
|
11030
10972
|
* Normalisert `<ol>` uten styling. Base for custom ol styling.
|
|
@@ -11034,7 +10976,6 @@ type StylelessOListProps<TProps extends object = object> = TProps & ComponentPro
|
|
|
11034
10976
|
* @param {Object & T} props - Standard HTML-attributter for komponenten med mulig utvidelse.
|
|
11035
10977
|
*
|
|
11036
10978
|
* @returns {JSX.Element} `<ol>`-element uten styling.
|
|
11037
|
-
|
|
11038
10979
|
* @example
|
|
11039
10980
|
* ```tsx
|
|
11040
10981
|
* <StylelessOList className="min-styling">
|
|
@@ -11043,10 +10984,7 @@ type StylelessOListProps<TProps extends object = object> = TProps & ComponentPro
|
|
|
11043
10984
|
* </StylelessOList>
|
|
11044
10985
|
* ```
|
|
11045
10986
|
*/
|
|
11046
|
-
declare const StylelessOList: ({
|
|
11047
|
-
className,
|
|
11048
|
-
...rest
|
|
11049
|
-
}: StylelessOListProps) => import("react").JSX.Element;
|
|
10987
|
+
declare const StylelessOList: ({ className, ...rest }: StylelessOListProps) => import("react").JSX.Element;
|
|
11050
10988
|
//#endregion
|
|
11051
10989
|
//#region src/components/helpers/styling/utils.d.ts
|
|
11052
10990
|
/**
|
|
@@ -11192,18 +11130,29 @@ interface PrimitiveLayoutProps {
|
|
|
11192
11130
|
type ResponsiveProps = PrimitiveDisplayProps & PrimitiveLayoutProps;
|
|
11193
11131
|
type ResponsiveStackProps = Omit<ResponsiveProps, 'display' | 'flexDirection'>;
|
|
11194
11132
|
type ResponsiveGridProps = Omit<ResponsiveProps, 'display'> & {
|
|
11195
|
-
/** CSS `display`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11133
|
+
/** CSS `display`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11134
|
+
display?: ExtractStrict<Property.Display, 'grid' | 'inline-grid'>;
|
|
11135
|
+
/** CSS `grid-template-columns`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11136
|
+
gridTemplateColumns?: ResponsiveProp<Property.GridTemplateColumns>;
|
|
11137
|
+
/** CSS `grid`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11138
|
+
grid?: ResponsiveProp<Property.Grid>;
|
|
11139
|
+
/** CSS `grid-auto-columns`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11140
|
+
gridAutoColumns?: ResponsiveProp<Property.GridAutoColumns>;
|
|
11141
|
+
/** CSS `grid-auto-rows`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11142
|
+
gridAutoRows?: ResponsiveProp<Property.GridAutoRows>;
|
|
11143
|
+
/** CSS `grid-auto-flow`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11144
|
+
gridAutoFlow?: ResponsiveProp<Property.GridAutoFlow>;
|
|
11145
|
+
/** CSS `grid-template-rows`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11146
|
+
gridTemplateRows?: ResponsiveProp<Property.GridTemplateRows>;
|
|
11147
|
+
/** CSS `grid-template`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11148
|
+
gridTemplate?: ResponsiveProp<Property.GridTemplate>;
|
|
11149
|
+
/** CSS `grid-template-areas`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11203
11150
|
gridTemplateAreas?: ResponsiveProp<Property.GridTemplateAreas>;
|
|
11204
11151
|
};
|
|
11205
11152
|
type ResponsiveBleedProps = PrimitiveLayoutProps & {
|
|
11206
|
-
/**Setter negativ CSS `margin-inline`, overskriver prop `marginInline`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
|
|
11153
|
+
/**Setter negativ CSS `margin-inline`, overskriver prop `marginInline`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
|
|
11154
|
+
bleedMarginInline?: ResponsiveProp<Property.MarginInline | SpacingScale>;
|
|
11155
|
+
/**Setter negativ CSS `margin-block`, overskriver prop `marginBlock`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
|
|
11207
11156
|
bleedMarginBlock?: ResponsiveProp<Property.MarginBlock | SpacingScale>;
|
|
11208
11157
|
};
|
|
11209
11158
|
//#endregion
|
|
@@ -11215,91 +11164,35 @@ type BleedProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T
|
|
|
11215
11164
|
reflectivePadding?: boolean;
|
|
11216
11165
|
} & ResponsiveBleedProps>;
|
|
11217
11166
|
declare const Bleed$1: {
|
|
11218
|
-
<T extends ElementType = "div">({
|
|
11219
|
-
id,
|
|
11220
|
-
className,
|
|
11221
|
-
style,
|
|
11222
|
-
htmlProps,
|
|
11223
|
-
bleedMarginBlock,
|
|
11224
|
-
bleedMarginInline,
|
|
11225
|
-
reflectivePadding,
|
|
11226
|
-
...rest
|
|
11227
|
-
}: BleedProps<T>): import("react").JSX.Element;
|
|
11167
|
+
<T extends ElementType = "div">({ id, className, style, htmlProps, bleedMarginBlock, bleedMarginInline, reflectivePadding, ...rest }: BleedProps<T>): import("react").JSX.Element;
|
|
11228
11168
|
displayName: string;
|
|
11229
11169
|
};
|
|
11230
11170
|
//#endregion
|
|
11231
11171
|
//#region src/components/layout/Box/Box.d.ts
|
|
11232
11172
|
type BoxProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, ResponsiveProps>;
|
|
11233
11173
|
declare const Box: {
|
|
11234
|
-
<T extends ElementType = "div">({
|
|
11235
|
-
id,
|
|
11236
|
-
className,
|
|
11237
|
-
style,
|
|
11238
|
-
padding,
|
|
11239
|
-
paddingInline,
|
|
11240
|
-
paddingBlock,
|
|
11241
|
-
margin,
|
|
11242
|
-
marginInline,
|
|
11243
|
-
marginBlock,
|
|
11244
|
-
height,
|
|
11245
|
-
maxHeight,
|
|
11246
|
-
minHeight,
|
|
11247
|
-
width,
|
|
11248
|
-
maxWidth,
|
|
11249
|
-
minWidth,
|
|
11250
|
-
position,
|
|
11251
|
-
left,
|
|
11252
|
-
right,
|
|
11253
|
-
bottom,
|
|
11254
|
-
top,
|
|
11255
|
-
overflow,
|
|
11256
|
-
overflowX,
|
|
11257
|
-
overflowY,
|
|
11258
|
-
display,
|
|
11259
|
-
textAlign,
|
|
11260
|
-
flexDirection,
|
|
11261
|
-
gap,
|
|
11262
|
-
columnGap,
|
|
11263
|
-
rowGap,
|
|
11264
|
-
alignItems,
|
|
11265
|
-
alignContent,
|
|
11266
|
-
justifyItems,
|
|
11267
|
-
placeItems,
|
|
11268
|
-
justifyContent,
|
|
11269
|
-
flexWrap,
|
|
11270
|
-
flexBasis,
|
|
11271
|
-
flexFlow,
|
|
11272
|
-
wordBreak,
|
|
11273
|
-
htmlProps,
|
|
11274
|
-
...rest
|
|
11275
|
-
}: BoxProps<T>): import("react").JSX.Element;
|
|
11174
|
+
<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, placeItems, justifyContent, flexWrap, flexBasis, flexFlow, wordBreak, htmlProps, ...rest }: BoxProps<T>): import("react").JSX.Element;
|
|
11276
11175
|
displayName: string;
|
|
11277
11176
|
};
|
|
11278
11177
|
//#endregion
|
|
11279
11178
|
//#region src/components/layout/Contrast/Contrast.d.ts
|
|
11280
11179
|
type ContrastProps<T extends ElementType = 'div'> = BoxProps<T>;
|
|
11281
11180
|
declare const Contrast: {
|
|
11282
|
-
<T extends ElementType = "div">({
|
|
11283
|
-
id,
|
|
11284
|
-
className,
|
|
11285
|
-
style,
|
|
11286
|
-
htmlProps,
|
|
11287
|
-
...rest
|
|
11288
|
-
}: ContrastProps<T>): import("react").JSX.Element;
|
|
11181
|
+
<T extends ElementType = "div">({ id, className, style, htmlProps, ...rest }: ContrastProps<T>): import("react").JSX.Element;
|
|
11289
11182
|
displayName: string;
|
|
11290
11183
|
};
|
|
11291
11184
|
//#endregion
|
|
11292
11185
|
//#region src/components/layout/Grid/Grid.d.ts
|
|
11293
11186
|
type GridProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, {
|
|
11294
11187
|
/** CSS `grid-template-columns`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser.
|
|
11295
|
-
|
|
11296
|
-
|
|
11297
|
-
|
|
11298
|
-
|
|
11299
|
-
|
|
11300
|
-
|
|
11301
|
-
|
|
11302
|
-
|
|
11188
|
+
* @default {
|
|
11189
|
+
xs: 'repeat(var(--dds-grid-xs-count), minmax(0, 1fr))',
|
|
11190
|
+
sm: 'repeat(var(--dds-grid-sm-count), minmax(0, 1fr))',
|
|
11191
|
+
md: 'repeat(var(--dds-grid-md-count), minmax(0, 1fr))',
|
|
11192
|
+
lg: 'repeat(var(--dds-grid-lg-count), minmax(0, 1fr))',
|
|
11193
|
+
xl: 'repeat(var(--dds-grid-xl-count), minmax(0, 1fr))',
|
|
11194
|
+
}
|
|
11195
|
+
*/
|
|
11303
11196
|
gridTemplateColumns?: ResponsiveGridProps['gridTemplateColumns'];
|
|
11304
11197
|
/** Om standard styling for sideoppsett skal brukes.
|
|
11305
11198
|
* Ved `true` settes overskrivbare standard verdier for `grid-template-columns`, `marginInline`, `rowGap` og `columnGap` som er tilpasset sideoppsett.
|
|
@@ -11308,26 +11201,7 @@ type GridProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T,
|
|
|
11308
11201
|
defaultPageLayout?: boolean;
|
|
11309
11202
|
} & ResponsiveGridProps>;
|
|
11310
11203
|
declare const Grid: {
|
|
11311
|
-
<T extends ElementType = "div">({
|
|
11312
|
-
id,
|
|
11313
|
-
className,
|
|
11314
|
-
htmlProps,
|
|
11315
|
-
defaultPageLayout,
|
|
11316
|
-
display,
|
|
11317
|
-
grid,
|
|
11318
|
-
gridAutoColumns,
|
|
11319
|
-
gridAutoFlow,
|
|
11320
|
-
gridAutoRows,
|
|
11321
|
-
gridTemplate,
|
|
11322
|
-
gridTemplateAreas,
|
|
11323
|
-
gridTemplateRows,
|
|
11324
|
-
gridTemplateColumns,
|
|
11325
|
-
columnGap,
|
|
11326
|
-
rowGap,
|
|
11327
|
-
marginInline,
|
|
11328
|
-
style,
|
|
11329
|
-
...rest
|
|
11330
|
-
}: GridProps<T>): import("react").JSX.Element;
|
|
11204
|
+
<T extends ElementType = "div">({ id, className, htmlProps, defaultPageLayout, display, grid, gridAutoColumns, gridAutoFlow, gridAutoRows, gridTemplate, gridTemplateAreas, gridTemplateRows, gridTemplateColumns, columnGap, rowGap, marginInline, style, ...rest }: GridProps<T>): import("react").JSX.Element;
|
|
11331
11205
|
displayName: string;
|
|
11332
11206
|
};
|
|
11333
11207
|
//#endregion
|
|
@@ -11335,23 +11209,17 @@ declare const Grid: {
|
|
|
11335
11209
|
type RelativeColumnsOccupied = 'all' | 'firstHalf' | 'secondHalf';
|
|
11336
11210
|
type ColumnsOccupied = ResponsiveProp<StandardProperties['gridColumn'] | RelativeColumnsOccupied>;
|
|
11337
11211
|
type GridChildProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, {
|
|
11338
|
-
/**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. */
|
|
11339
|
-
|
|
11340
|
-
|
|
11212
|
+
/**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. */
|
|
11213
|
+
columnsOccupied?: ColumnsOccupied;
|
|
11214
|
+
/**CSS `justify-self`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11215
|
+
justifySelf?: ResponsiveProp<Property.JustifySelf>;
|
|
11216
|
+
/**CSS `grid-row`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11217
|
+
gridRow?: ResponsiveProp<Property.GridRow>;
|
|
11218
|
+
/**CSS `grid-area`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
11341
11219
|
gridArea?: ResponsiveProp<Property.GridArea>;
|
|
11342
11220
|
} & Omit<ResponsiveProps, 'display'>>;
|
|
11343
11221
|
declare const GridChild: {
|
|
11344
|
-
<T extends ElementType = "div">({
|
|
11345
|
-
id,
|
|
11346
|
-
className,
|
|
11347
|
-
htmlProps,
|
|
11348
|
-
style,
|
|
11349
|
-
gridRow,
|
|
11350
|
-
gridArea,
|
|
11351
|
-
justifySelf,
|
|
11352
|
-
columnsOccupied,
|
|
11353
|
-
...rest
|
|
11354
|
-
}: GridChildProps<T>): import("react").JSX.Element;
|
|
11222
|
+
<T extends ElementType = "div">({ id, className, htmlProps, style, gridRow, gridArea, justifySelf, columnsOccupied, ...rest }: GridChildProps<T>): import("react").JSX.Element;
|
|
11355
11223
|
displayName: string;
|
|
11356
11224
|
};
|
|
11357
11225
|
//#endregion
|
|
@@ -11361,62 +11229,35 @@ type PaperBorder = BorderColor;
|
|
|
11361
11229
|
type PaperBorderRadius = BorderRadius;
|
|
11362
11230
|
type PickedAttributes$1<T extends ElementType = 'div'> = Pick<ComponentProps<T>, 'tabIndex' | 'role'>;
|
|
11363
11231
|
type PaperProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, {
|
|
11364
|
-
/**I hvor stor grad flaten skal framheves. Støtter dds tokens. */
|
|
11365
|
-
|
|
11366
|
-
|
|
11232
|
+
/**I hvor stor grad flaten skal framheves. Støtter dds tokens. */
|
|
11233
|
+
elevation?: PaperElevation;
|
|
11234
|
+
/**Farge på kantlinje. Støtter dds tokens. */
|
|
11235
|
+
border?: PaperBorder;
|
|
11236
|
+
/**Hvor runde hjørner skal være. Støtter dds tokens. */
|
|
11237
|
+
borderRadius?: PaperBorderRadius;
|
|
11238
|
+
/**Bakgrunn. Støtter dds tokens. */
|
|
11367
11239
|
background?: PaperBackground;
|
|
11368
11240
|
} & ResponsiveProps & PickedAttributes$1>;
|
|
11369
|
-
declare const Paper: <T extends ElementType = "div">({
|
|
11370
|
-
id,
|
|
11371
|
-
elevation,
|
|
11372
|
-
border,
|
|
11373
|
-
borderRadius,
|
|
11374
|
-
background,
|
|
11375
|
-
className,
|
|
11376
|
-
htmlProps,
|
|
11377
|
-
style,
|
|
11378
|
-
...rest
|
|
11379
|
-
}: PaperProps<T>) => import("react").JSX.Element;
|
|
11241
|
+
declare const Paper: <T extends ElementType = "div">({ id, elevation, border, borderRadius, background, className, htmlProps, style, ...rest }: PaperProps<T>) => import("react").JSX.Element;
|
|
11380
11242
|
//#endregion
|
|
11381
11243
|
//#region src/components/layout/ShowHide/ShowHide.d.ts
|
|
11382
11244
|
type ShowHideProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, PrimitiveDisplayProps>;
|
|
11383
11245
|
declare const ShowHide: {
|
|
11384
|
-
<T extends ElementType = "div">({
|
|
11385
|
-
hideBelow,
|
|
11386
|
-
showBelow,
|
|
11387
|
-
className,
|
|
11388
|
-
style,
|
|
11389
|
-
htmlProps,
|
|
11390
|
-
id,
|
|
11391
|
-
as: C,
|
|
11392
|
-
...rest
|
|
11393
|
-
}: ShowHideProps<T>): import("react").JSX.Element;
|
|
11246
|
+
<T extends ElementType = "div">({ hideBelow, showBelow, className, style, htmlProps, id, as: C, ...rest }: ShowHideProps<T>): import("react").JSX.Element;
|
|
11394
11247
|
displayName: string;
|
|
11395
11248
|
};
|
|
11396
11249
|
//#endregion
|
|
11397
11250
|
//#region src/components/layout/Stack/VStack/VStack.d.ts
|
|
11398
11251
|
type VStackProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, ResponsiveStackProps>;
|
|
11399
11252
|
declare const VStack: {
|
|
11400
|
-
<T extends ElementType = "div">({
|
|
11401
|
-
id,
|
|
11402
|
-
className,
|
|
11403
|
-
style,
|
|
11404
|
-
htmlProps,
|
|
11405
|
-
...rest
|
|
11406
|
-
}: VStackProps<T>): import("react").JSX.Element;
|
|
11253
|
+
<T extends ElementType = "div">({ id, className, style, htmlProps, ...rest }: VStackProps<T>): import("react").JSX.Element;
|
|
11407
11254
|
displayName: string;
|
|
11408
11255
|
};
|
|
11409
11256
|
//#endregion
|
|
11410
11257
|
//#region src/components/layout/Stack/HStack/HStack.d.ts
|
|
11411
11258
|
type HStackProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, ResponsiveStackProps>;
|
|
11412
11259
|
declare const HStack: {
|
|
11413
|
-
<T extends ElementType = "div">({
|
|
11414
|
-
id,
|
|
11415
|
-
className,
|
|
11416
|
-
style,
|
|
11417
|
-
htmlProps,
|
|
11418
|
-
...rest
|
|
11419
|
-
}: HStackProps<T>): import("react").JSX.Element;
|
|
11260
|
+
<T extends ElementType = "div">({ id, className, style, htmlProps, ...rest }: HStackProps<T>): import("react").JSX.Element;
|
|
11420
11261
|
displayName: string;
|
|
11421
11262
|
};
|
|
11422
11263
|
//#endregion
|
|
@@ -11972,7 +11813,6 @@ declare namespace index_d_exports {
|
|
|
11972
11813
|
* return <button onClick={() => setCount(c => c + 1)}>Øk</button>;
|
|
11973
11814
|
* }
|
|
11974
11815
|
* ```
|
|
11975
|
-
|
|
11976
11816
|
*/
|
|
11977
11817
|
declare function useCallbackRef<T extends (...args: Array<never>) => unknown>(callback: T | undefined, deps?: DependencyList): T;
|
|
11978
11818
|
//#endregion
|
|
@@ -15041,52 +14881,28 @@ interface LanguageProviderProps {
|
|
|
15041
14881
|
//#endregion
|
|
15042
14882
|
//#region src/DdsProvider/DdsProvider.d.ts
|
|
15043
14883
|
type DdsProviderProps = LanguageProviderProps & ThemeProviderProps;
|
|
15044
|
-
declare function DdsProvider({
|
|
15045
|
-
language,
|
|
15046
|
-
theme,
|
|
15047
|
-
children
|
|
15048
|
-
}: DdsProviderProps): import("react").JSX.Element;
|
|
14884
|
+
declare function DdsProvider({ language, theme, children }: DdsProviderProps): import("react").JSX.Element;
|
|
15049
14885
|
//#endregion
|
|
15050
14886
|
//#region src/polymorphic/polymorphic.types.d.ts
|
|
15051
14887
|
type PropsOfWithRef<T extends ElementType> = ComponentPropsWithRef<T> & {
|
|
15052
|
-
/** HTML- eller React-element som returneres. */
|
|
14888
|
+
/** HTML- eller React-element som returneres. */
|
|
14889
|
+
as?: T;
|
|
15053
14890
|
} & Omit<React.ComponentPropsWithRef<T>, 'as'>;
|
|
15054
14891
|
//#endregion
|
|
15055
14892
|
//#region src/polymorphic/ElementAs.d.ts
|
|
15056
14893
|
type PolymorphicProps<T extends ElementType> = PropsOfWithRef<T>;
|
|
15057
|
-
declare const ElementAs: <T extends ElementType>({
|
|
15058
|
-
as,
|
|
15059
|
-
ref,
|
|
15060
|
-
children,
|
|
15061
|
-
...props
|
|
15062
|
-
}: PolymorphicProps<T>) => import("react").JSX.Element;
|
|
14894
|
+
declare const ElementAs: <T extends ElementType>({ as, ref, children, ...props }: PolymorphicProps<T>) => import("react").JSX.Element;
|
|
15063
14895
|
//#endregion
|
|
15064
14896
|
//#region src/components/Accordion/Accordion.d.ts
|
|
15065
14897
|
type AccordionProps = BaseComponentPropsWithChildren<HTMLDivElement, Pick<AccordionConfig, 'isExpanded' | 'isInitiallyExpanded' | 'onChange'>>;
|
|
15066
14898
|
declare const Accordion: {
|
|
15067
|
-
({
|
|
15068
|
-
isInitiallyExpanded,
|
|
15069
|
-
isExpanded,
|
|
15070
|
-
onChange,
|
|
15071
|
-
id,
|
|
15072
|
-
children,
|
|
15073
|
-
className,
|
|
15074
|
-
style,
|
|
15075
|
-
htmlProps,
|
|
15076
|
-
...rest
|
|
15077
|
-
}: AccordionProps): import("react").JSX.Element;
|
|
14899
|
+
({ isInitiallyExpanded, isExpanded, onChange, id, children, className, style, htmlProps, ...rest }: AccordionProps): import("react").JSX.Element;
|
|
15078
14900
|
displayName: string;
|
|
15079
14901
|
};
|
|
15080
14902
|
//#endregion
|
|
15081
14903
|
//#region src/components/Typography/Typography/TextOverflowEllipsis/TextOverflowEllipsis.d.ts
|
|
15082
|
-
declare function TextOverflowEllipsisWrapper({
|
|
15083
|
-
|
|
15084
|
-
...rest
|
|
15085
|
-
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
15086
|
-
declare function TextOverflowEllipsisInner({
|
|
15087
|
-
className,
|
|
15088
|
-
...rest
|
|
15089
|
-
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
14904
|
+
declare function TextOverflowEllipsisWrapper({ className, ...rest }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
14905
|
+
declare function TextOverflowEllipsisInner({ className, ...rest }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
15090
14906
|
//#endregion
|
|
15091
14907
|
//#region src/components/Typography/Typography/Typography.types.d.ts
|
|
15092
14908
|
declare const TG_BODY_SHORT_TYPES: readonly ["body-short-xsmall", "body-short-small", "body-short-medium", "body-short-large"];
|
|
@@ -15122,25 +14938,34 @@ interface BaseTypographyProps {
|
|
|
15122
14938
|
interface CommonInlineTypographyProps extends BaseTypographyProps, InlineTypographyResponsiveProps {}
|
|
15123
14939
|
interface CommonBlockTypographyProps extends BaseTypographyProps, BlockTypographyResponsiveProps {}
|
|
15124
14940
|
type TypographyComponentProps = CommonBlockTypographyProps & {
|
|
15125
|
-
/**Setter `bold` styling. */
|
|
15126
|
-
|
|
15127
|
-
|
|
14941
|
+
/**Setter `bold` styling. */
|
|
14942
|
+
bold?: boolean;
|
|
14943
|
+
/**Setter `italic` styling. */
|
|
14944
|
+
italic?: boolean;
|
|
14945
|
+
/**Setter en linje under. */
|
|
14946
|
+
underline?: boolean;
|
|
14947
|
+
/**HTML tag som skal brukes istedenfor default definert via `typographyType`. */
|
|
15128
14948
|
as?: ElementType;
|
|
15129
14949
|
};
|
|
15130
14950
|
//#endregion
|
|
15131
14951
|
//#region src/components/Typography/Typography/Typography.d.ts
|
|
15132
14952
|
type AnchorTypographyProps = BaseComponentPropsWithChildren<HTMLAnchorElement, {
|
|
15133
|
-
/**nativ `href`-prop ved `typographyType='a'`. */
|
|
14953
|
+
/**nativ `href`-prop ved `typographyType='a'`. */
|
|
14954
|
+
href?: string | undefined;
|
|
14955
|
+
/**nativ `target`-prop ved `typographyType='a'`. */
|
|
15134
14956
|
target?: string;
|
|
15135
14957
|
}, AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
15136
14958
|
type LabelTypographyProps = BaseComponentPropsWithChildren<HTMLLabelElement, HTMLAttributes<HTMLLabelElement>>;
|
|
15137
14959
|
type OtherTypographyProps = BaseComponentPropsWithChildren<HTMLElement, HTMLAttributes<HTMLElement>>;
|
|
15138
14960
|
type TypographyProps = ({
|
|
15139
|
-
/**Styling basert på det typografiske utvalget definert i Figma. Returnerer default HTML tag for hver type. **OBS!** Ved bruk av `'a'` er det flere tilgjengelige props, se under. */
|
|
14961
|
+
/**Styling basert på det typografiske utvalget definert i Figma. Returnerer default HTML tag for hver type. **OBS!** Ved bruk av `'a'` er det flere tilgjengelige props, se under. */
|
|
14962
|
+
typographyType?: TypographyAnchorType;
|
|
15140
14963
|
} & TypographyComponentProps & Omit<AnchorTypographyProps, 'color'>) | ({
|
|
15141
|
-
/**Styling basert på det typografiske utvalget definert i Figma. Returnerer default HTML tag for hver type. **OBS!** Ved bruk av `'a'` er det flere tilgjengelige props, se under. */
|
|
14964
|
+
/**Styling basert på det typografiske utvalget definert i Figma. Returnerer default HTML tag for hver type. **OBS!** Ved bruk av `'a'` er det flere tilgjengelige props, se under. */
|
|
14965
|
+
typographyType?: TypographyLabelType;
|
|
15142
14966
|
} & TypographyComponentProps & Omit<LabelTypographyProps, 'color'>) | ({
|
|
15143
|
-
/**Styling basert på det typografiske utvalget definert i Figma. Returnerer default HTML tag for hver type. **OBS!** Ved bruk av `'a'` er det flere tilgjengelige props, se under. */
|
|
14967
|
+
/**Styling basert på det typografiske utvalget definert i Figma. Returnerer default HTML tag for hver type. **OBS!** Ved bruk av `'a'` er det flere tilgjengelige props, se under. */
|
|
14968
|
+
typographyType?: OtherTypographyType;
|
|
15144
14969
|
} & TypographyComponentProps & Omit<OtherTypographyProps, 'color'>);
|
|
15145
14970
|
declare const Typography: {
|
|
15146
14971
|
(props: TypographyProps): import("react").JSX.Element;
|
|
@@ -15159,37 +14984,22 @@ declare const getColorCn: (color?: TextColor) => string | null;
|
|
|
15159
14984
|
//#region src/components/Typography/Caption/Caption.d.ts
|
|
15160
14985
|
type CaptionProps = BaseComponentPropsWithChildren<HTMLTableCaptionElement, CommonBlockTypographyProps>;
|
|
15161
14986
|
declare const Caption: {
|
|
15162
|
-
({
|
|
15163
|
-
id,
|
|
15164
|
-
className,
|
|
15165
|
-
style,
|
|
15166
|
-
htmlProps,
|
|
15167
|
-
children,
|
|
15168
|
-
...rest
|
|
15169
|
-
}: CaptionProps): import("react").JSX.Element;
|
|
14987
|
+
({ id, className, style, htmlProps, children, ...rest }: CaptionProps): import("react").JSX.Element;
|
|
15170
14988
|
displayName: string;
|
|
15171
14989
|
};
|
|
15172
14990
|
//#endregion
|
|
15173
14991
|
//#region src/components/Typography/Heading/Heading.d.ts
|
|
15174
14992
|
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
15175
14993
|
type HeadingProps = BaseComponentPropsWithChildren<HTMLHeadingElement, {
|
|
15176
|
-
/**Nivå på overskriften. Komponenten returnerer HTML heading element med dette nivået med default styling. */
|
|
15177
|
-
|
|
14994
|
+
/**Nivå på overskriften. Komponenten returnerer HTML heading element med dette nivået med default styling. */
|
|
14995
|
+
level: HeadingLevel;
|
|
14996
|
+
/**Spesifiserer typografistil basert på utvalget for HTML heading elementer. */
|
|
14997
|
+
typographyType?: TypographyHeadingType;
|
|
14998
|
+
/**Setter standard spacing for `<Heading>` som er over et inputelement. */
|
|
15178
14999
|
withMarginsOverInput?: boolean;
|
|
15179
15000
|
} & CommonBlockTypographyProps>;
|
|
15180
15001
|
declare const Heading: {
|
|
15181
|
-
({
|
|
15182
|
-
id,
|
|
15183
|
-
className,
|
|
15184
|
-
style,
|
|
15185
|
-
htmlProps,
|
|
15186
|
-
children,
|
|
15187
|
-
typographyType,
|
|
15188
|
-
level,
|
|
15189
|
-
withMargins,
|
|
15190
|
-
withMarginsOverInput,
|
|
15191
|
-
...rest
|
|
15192
|
-
}: HeadingProps): import("react").JSX.Element;
|
|
15002
|
+
({ id, className, style, htmlProps, children, typographyType, level, withMargins, withMarginsOverInput, ...rest }: HeadingProps): import("react").JSX.Element;
|
|
15193
15003
|
displayName: string;
|
|
15194
15004
|
};
|
|
15195
15005
|
//#endregion
|
|
@@ -15205,43 +15015,28 @@ interface BaseLabelProps {
|
|
|
15205
15015
|
}
|
|
15206
15016
|
type LabelProps = BaseComponentPropsWithChildren<HTMLLabelElement, BaseLabelProps & CommonInlineTypographyProps & PickedHTMLAttributes$3>;
|
|
15207
15017
|
declare const Label: {
|
|
15208
|
-
({
|
|
15209
|
-
showRequiredStyling,
|
|
15210
|
-
readOnly,
|
|
15211
|
-
id,
|
|
15212
|
-
className,
|
|
15213
|
-
style,
|
|
15214
|
-
htmlProps,
|
|
15215
|
-
children,
|
|
15216
|
-
afterLabelContent,
|
|
15217
|
-
...rest
|
|
15218
|
-
}: LabelProps): import("react").JSX.Element;
|
|
15018
|
+
({ showRequiredStyling, readOnly, id, className, style, htmlProps, children, afterLabelContent, ...rest }: LabelProps): import("react").JSX.Element;
|
|
15219
15019
|
displayName: string;
|
|
15220
15020
|
};
|
|
15221
15021
|
//#endregion
|
|
15222
15022
|
//#region src/components/Typography/Legend/Legend.d.ts
|
|
15223
15023
|
type LegendProps = BaseComponentPropsWithChildren<HTMLLegendElement, CommonBlockTypographyProps & {
|
|
15224
|
-
/**Typografistil basert på utvalget for HTML heading elementer. */
|
|
15024
|
+
/**Typografistil basert på utvalget for HTML heading elementer. */
|
|
15025
|
+
typographyType?: TypographyHeadingType;
|
|
15026
|
+
/**Setter standard spacing for `<Legend>` som er over et inputelement. */
|
|
15225
15027
|
withMarginsOverInput?: boolean;
|
|
15226
15028
|
}>;
|
|
15227
15029
|
declare const Legend: {
|
|
15228
|
-
({
|
|
15229
|
-
id,
|
|
15230
|
-
className,
|
|
15231
|
-
style,
|
|
15232
|
-
htmlProps,
|
|
15233
|
-
typographyType,
|
|
15234
|
-
withMarginsOverInput,
|
|
15235
|
-
withMargins,
|
|
15236
|
-
...rest
|
|
15237
|
-
}: LegendProps): import("react").JSX.Element;
|
|
15030
|
+
({ id, className, style, htmlProps, typographyType, withMarginsOverInput, withMargins, ...rest }: LegendProps): import("react").JSX.Element;
|
|
15238
15031
|
displayName: string;
|
|
15239
15032
|
};
|
|
15240
15033
|
//#endregion
|
|
15241
15034
|
//#region src/components/Typography/Link/Link.d.ts
|
|
15242
15035
|
type PickedHTMLAttributes$2 = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href' | 'target'>;
|
|
15243
15036
|
type LinkProps<T extends ElementType = 'a'> = PolymorphicBaseComponentProps<T, {
|
|
15244
|
-
/**Om lenken kan få `:visited`-styling. */
|
|
15037
|
+
/**Om lenken kan få `:visited`-styling. */
|
|
15038
|
+
withVisited?: boolean;
|
|
15039
|
+
/**Spesifiserer typografistil basert på utvalget for brødtekst. Arver hvis ikke oppgitt. */
|
|
15245
15040
|
typographyType?: TypographyBodyType;
|
|
15246
15041
|
/**
|
|
15247
15042
|
* Tvinger komponenten til å behandle `as` som en anchor tag wrapper og forwarde anchor-spesifikke props (target, rel).
|
|
@@ -15254,21 +15049,7 @@ type LinkProps<T extends ElementType = 'a'> = PolymorphicBaseComponentProps<T, {
|
|
|
15254
15049
|
withIconStyling?: boolean;
|
|
15255
15050
|
} & CommonInlineTypographyProps & PickedHTMLAttributes$2>;
|
|
15256
15051
|
declare const Link: {
|
|
15257
|
-
<T extends ElementType = "a">({
|
|
15258
|
-
id,
|
|
15259
|
-
className,
|
|
15260
|
-
htmlProps,
|
|
15261
|
-
children,
|
|
15262
|
-
typographyType,
|
|
15263
|
-
withMargins,
|
|
15264
|
-
withVisited,
|
|
15265
|
-
style,
|
|
15266
|
-
color,
|
|
15267
|
-
as: propAs,
|
|
15268
|
-
isAnchor: propIsAnchor,
|
|
15269
|
-
withIconStyling,
|
|
15270
|
-
...rest
|
|
15271
|
-
}: LinkProps<T>): import("react").JSX.Element;
|
|
15052
|
+
<T extends ElementType = "a">({ id, className, htmlProps, children, typographyType, withMargins, withVisited, style, color, as: propAs, isAnchor: propIsAnchor, withIconStyling, ...rest }: LinkProps<T>): import("react").JSX.Element;
|
|
15272
15053
|
displayName: string;
|
|
15273
15054
|
};
|
|
15274
15055
|
//#endregion
|
|
@@ -15282,15 +15063,7 @@ type ParagraphProps = BaseComponentPropsWithChildren<HTMLParagraphElement, {
|
|
|
15282
15063
|
typographyType?: TypographyParagraphType;
|
|
15283
15064
|
} & CommonBlockTypographyProps>;
|
|
15284
15065
|
declare const Paragraph: {
|
|
15285
|
-
({
|
|
15286
|
-
id,
|
|
15287
|
-
className,
|
|
15288
|
-
style,
|
|
15289
|
-
htmlProps,
|
|
15290
|
-
children,
|
|
15291
|
-
typographyType,
|
|
15292
|
-
...rest
|
|
15293
|
-
}: ParagraphProps): import("react").JSX.Element;
|
|
15066
|
+
({ id, className, style, htmlProps, children, typographyType, ...rest }: ParagraphProps): import("react").JSX.Element;
|
|
15294
15067
|
displayName: string;
|
|
15295
15068
|
};
|
|
15296
15069
|
//#endregion
|
|
@@ -15299,32 +15072,19 @@ type AccordionHeaderProps = Omit<BaseComponentPropsWithChildren<HTMLButtonElemen
|
|
|
15299
15072
|
/**Overskriver default teksttype.
|
|
15300
15073
|
* @default 'heading-medium'
|
|
15301
15074
|
*/
|
|
15302
|
-
typographyType?: StaticTypographyType;
|
|
15075
|
+
typographyType?: StaticTypographyType;
|
|
15076
|
+
/**Angir om teksten skal være i "bold"-format. */
|
|
15303
15077
|
bold?: boolean;
|
|
15304
15078
|
}, ButtonHTMLAttributes<HTMLButtonElement>>, 'id'>;
|
|
15305
15079
|
declare const AccordionHeader: {
|
|
15306
|
-
({
|
|
15307
|
-
children,
|
|
15308
|
-
className,
|
|
15309
|
-
style,
|
|
15310
|
-
htmlProps,
|
|
15311
|
-
typographyType,
|
|
15312
|
-
bold,
|
|
15313
|
-
...rest
|
|
15314
|
-
}: AccordionHeaderProps): import("react").JSX.Element;
|
|
15080
|
+
({ children, className, style, htmlProps, typographyType, bold, ...rest }: AccordionHeaderProps): import("react").JSX.Element;
|
|
15315
15081
|
displayName: string;
|
|
15316
15082
|
};
|
|
15317
15083
|
//#endregion
|
|
15318
15084
|
//#region src/components/Accordion/AccordionBody.d.ts
|
|
15319
15085
|
type AccordionBodyProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement>, 'id'>;
|
|
15320
15086
|
declare const AccordionBody: {
|
|
15321
|
-
({
|
|
15322
|
-
children,
|
|
15323
|
-
className,
|
|
15324
|
-
style,
|
|
15325
|
-
htmlProps,
|
|
15326
|
-
...rest
|
|
15327
|
-
}: AccordionBodyProps): import("react").JSX.Element;
|
|
15087
|
+
({ children, className, style, htmlProps, ...rest }: AccordionBodyProps): import("react").JSX.Element;
|
|
15328
15088
|
displayName: string;
|
|
15329
15089
|
};
|
|
15330
15090
|
//#endregion
|
|
@@ -15340,12 +15100,7 @@ type BackLinkProps = {
|
|
|
15340
15100
|
as?: ElementType;
|
|
15341
15101
|
} & Pick<ComponentPropsWithRef<'a'>, 'onClick' | 'href' | 'ref'>;
|
|
15342
15102
|
declare const BackLink: {
|
|
15343
|
-
({
|
|
15344
|
-
label,
|
|
15345
|
-
ref,
|
|
15346
|
-
as,
|
|
15347
|
-
...rest
|
|
15348
|
-
}: BackLinkProps): import("react").JSX.Element;
|
|
15103
|
+
({ label, ref, as, ...rest }: BackLinkProps): import("react").JSX.Element;
|
|
15349
15104
|
displayName: string;
|
|
15350
15105
|
};
|
|
15351
15106
|
//#endregion
|
|
@@ -15353,11 +15108,7 @@ declare const BackLink: {
|
|
|
15353
15108
|
type BreadcrumbProps = ComponentPropsWithRef<'a'> | ComponentPropsWithRef<'span'>;
|
|
15354
15109
|
declare const isAnchorTypographyProps: (props: BreadcrumbProps) => props is ComponentPropsWithRef<"a">;
|
|
15355
15110
|
declare const Breadcrumb: {
|
|
15356
|
-
({
|
|
15357
|
-
children,
|
|
15358
|
-
ref,
|
|
15359
|
-
...rest
|
|
15360
|
-
}: BreadcrumbProps): import("react").JSX.Element;
|
|
15111
|
+
({ children, ref, ...rest }: BreadcrumbProps): import("react").JSX.Element;
|
|
15361
15112
|
displayName: string;
|
|
15362
15113
|
};
|
|
15363
15114
|
//#endregion
|
|
@@ -15367,19 +15118,12 @@ type BreadcrumbsProps = BaseComponentProps<HTMLElement, {
|
|
|
15367
15118
|
* Brekkpunkt for små skjermer.
|
|
15368
15119
|
* Trunkerer barn unntatt første og siste; trunkerte barn er tilgjengelige ved å trykke på trunkeringsknappen.
|
|
15369
15120
|
*/
|
|
15370
|
-
smallScreenBreakpoint?: Breakpoint;
|
|
15121
|
+
smallScreenBreakpoint?: Breakpoint;
|
|
15122
|
+
/**`<Breadcrumb> barn.` */
|
|
15371
15123
|
children?: ReactNode;
|
|
15372
15124
|
}>;
|
|
15373
15125
|
declare const Breadcrumbs: {
|
|
15374
|
-
({
|
|
15375
|
-
children,
|
|
15376
|
-
smallScreenBreakpoint,
|
|
15377
|
-
id,
|
|
15378
|
-
className,
|
|
15379
|
-
style,
|
|
15380
|
-
htmlProps,
|
|
15381
|
-
...rest
|
|
15382
|
-
}: BreadcrumbsProps): import("react").JSX.Element;
|
|
15126
|
+
({ children, smallScreenBreakpoint, id, className, style, htmlProps, ...rest }: BreadcrumbsProps): import("react").JSX.Element;
|
|
15383
15127
|
displayName: string;
|
|
15384
15128
|
};
|
|
15385
15129
|
//#endregion
|
|
@@ -15393,8 +15137,10 @@ type ButtonGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
15393
15137
|
/**Størrelse på knappene.
|
|
15394
15138
|
* @default "medium"
|
|
15395
15139
|
*/
|
|
15396
|
-
buttonSize?: ButtonSize;
|
|
15397
|
-
|
|
15140
|
+
buttonSize?: ButtonSize;
|
|
15141
|
+
/**Nativ `aria-label` ved behov. */
|
|
15142
|
+
'aria-label'?: string;
|
|
15143
|
+
/**Nativ `aria-labelledby` ved behov. */
|
|
15398
15144
|
'aria-labelledby'?: string;
|
|
15399
15145
|
/**Nativ `role` ved behov.
|
|
15400
15146
|
* @default "group"
|
|
@@ -15402,17 +15148,7 @@ type ButtonGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
15402
15148
|
role?: AriaRole;
|
|
15403
15149
|
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof PickedHTMLAttributes$1>>;
|
|
15404
15150
|
declare const ButtonGroup: {
|
|
15405
|
-
({
|
|
15406
|
-
children,
|
|
15407
|
-
id,
|
|
15408
|
-
className,
|
|
15409
|
-
style,
|
|
15410
|
-
htmlProps,
|
|
15411
|
-
direction,
|
|
15412
|
-
buttonSize,
|
|
15413
|
-
role,
|
|
15414
|
-
...rest
|
|
15415
|
-
}: ButtonGroupProps): import("react").JSX.Element;
|
|
15151
|
+
({ children, id, className, style, htmlProps, direction, buttonSize, role, ...rest }: ButtonGroupProps): import("react").JSX.Element;
|
|
15416
15152
|
displayName: string;
|
|
15417
15153
|
};
|
|
15418
15154
|
//#endregion
|
|
@@ -15458,27 +15194,14 @@ type CheckboxProps = BaseComponentProps<HTMLInputElement, SelectionControlCommon
|
|
|
15458
15194
|
//#endregion
|
|
15459
15195
|
//#region src/components/SelectionControl/Checkbox/Checkbox.d.ts
|
|
15460
15196
|
declare const Checkbox: {
|
|
15461
|
-
({
|
|
15462
|
-
id,
|
|
15463
|
-
name,
|
|
15464
|
-
label,
|
|
15465
|
-
error,
|
|
15466
|
-
disabled,
|
|
15467
|
-
readOnly,
|
|
15468
|
-
indeterminate,
|
|
15469
|
-
"aria-describedby": ariaDescribedby,
|
|
15470
|
-
className,
|
|
15471
|
-
htmlProps,
|
|
15472
|
-
style,
|
|
15473
|
-
children,
|
|
15474
|
-
...rest
|
|
15475
|
-
}: CheckboxProps): import("react").JSX.Element;
|
|
15197
|
+
({ id, name, label, error, disabled, readOnly, indeterminate, "aria-describedby": ariaDescribedby, className, htmlProps, style, children, ...rest }: CheckboxProps): import("react").JSX.Element;
|
|
15476
15198
|
displayName: string;
|
|
15477
15199
|
};
|
|
15478
15200
|
//#endregion
|
|
15479
15201
|
//#region src/components/SelectionControl/Checkbox/CheckboxGroup.d.ts
|
|
15480
15202
|
type CheckboxGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
|
|
15481
|
-
/**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. */
|
|
15203
|
+
/**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. */
|
|
15204
|
+
required?: boolean;
|
|
15482
15205
|
}>;
|
|
15483
15206
|
declare const CheckboxGroup: {
|
|
15484
15207
|
(props: CheckboxGroupProps): import("react").JSX.Element;
|
|
@@ -15496,11 +15219,13 @@ type BaseCardProps<T extends HTMLElement> = BaseComponentPropsWithChildren<T, {
|
|
|
15496
15219
|
/** Utseende på komponenten.
|
|
15497
15220
|
* @default "filled"
|
|
15498
15221
|
*/
|
|
15499
|
-
appearance?: CardAppearance;
|
|
15222
|
+
appearance?: CardAppearance;
|
|
15223
|
+
/** Referanse til komponenten. */
|
|
15500
15224
|
cardRef?: RefObject<T | null>;
|
|
15501
15225
|
}>;
|
|
15502
15226
|
type InfoCardProps = BaseCardProps<HTMLDivElement> & {
|
|
15503
|
-
/** Spesifiserer funksjonalitet og formål med komponenten. **OBS!** ved `'navigation'` må `href` oppgis. */
|
|
15227
|
+
/** Spesifiserer funksjonalitet og formål med komponenten. **OBS!** ved `'navigation'` må `href` oppgis. */
|
|
15228
|
+
cardType: 'info';
|
|
15504
15229
|
};
|
|
15505
15230
|
type NavigationCardProps = BaseCardProps<HTMLAnchorElement> & {
|
|
15506
15231
|
cardType: 'navigation';
|
|
@@ -15511,8 +15236,11 @@ type ExpandableCardProps = BaseCardProps<HTMLDivElement> & {
|
|
|
15511
15236
|
type CardProps = InfoCardProps | NavigationCardProps | ExpandableCardProps;
|
|
15512
15237
|
type CardSelectableType = 'radio' | 'checkbox';
|
|
15513
15238
|
type CardSelectableProps = BaseComponentPropsWithChildren<HTMLInputElement, Pick<BaseCardProps<HTMLInputElement>, 'appearance'> & Omit<SelectionControlCommonProps, 'label'> & {
|
|
15514
|
-
/** Spesifiserer inputtype som returneres. */
|
|
15515
|
-
|
|
15239
|
+
/** Spesifiserer inputtype som returneres. */
|
|
15240
|
+
cardType?: CardSelectableType;
|
|
15241
|
+
/** Custom padding. */
|
|
15242
|
+
padding?: Property.Padding;
|
|
15243
|
+
/** Custom absolutt posisjonering av kontroll-elementet. */
|
|
15516
15244
|
controlPlacementProps?: {
|
|
15517
15245
|
left?: Property.Left;
|
|
15518
15246
|
top?: Property.Top;
|
|
@@ -15528,53 +15256,31 @@ declare const Card: {
|
|
|
15528
15256
|
//#region src/components/Card/CardExpandable/CardExpandable.d.ts
|
|
15529
15257
|
type CardExpandableProps = BaseComponentPropsWithChildren<HTMLDivElement, Pick<AccordionConfig, 'isExpanded' | 'isInitiallyExpanded' | 'onChange'>>;
|
|
15530
15258
|
declare const CardExpandable: {
|
|
15531
|
-
({
|
|
15532
|
-
isInitiallyExpanded,
|
|
15533
|
-
isExpanded,
|
|
15534
|
-
onChange,
|
|
15535
|
-
id,
|
|
15536
|
-
children,
|
|
15537
|
-
className,
|
|
15538
|
-
style,
|
|
15539
|
-
htmlProps,
|
|
15540
|
-
...rest
|
|
15541
|
-
}: CardExpandableProps): import("react").JSX.Element;
|
|
15259
|
+
({ isInitiallyExpanded, isExpanded, onChange, id, children, className, style, htmlProps, ...rest }: CardExpandableProps): import("react").JSX.Element;
|
|
15542
15260
|
displayName: string;
|
|
15543
15261
|
};
|
|
15544
15262
|
//#endregion
|
|
15545
15263
|
//#region src/components/Card/CardExpandable/CardExpandableHeader.d.ts
|
|
15546
15264
|
type CardExpandableHeaderProps = Omit<BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
15547
|
-
/**Overskriver default padding. */
|
|
15548
|
-
|
|
15265
|
+
/**Overskriver default padding. */
|
|
15266
|
+
padding?: Property.Padding<string>;
|
|
15267
|
+
/**Overskriver default teksttype. */
|
|
15268
|
+
typographyType?: StaticTypographyType;
|
|
15269
|
+
/**Angir om teksten skal være i "bold"-format. */
|
|
15549
15270
|
bold?: boolean;
|
|
15550
15271
|
}, ButtonHTMLAttributes<HTMLButtonElement>>, 'id'>;
|
|
15551
15272
|
declare const CardExpandableHeader: {
|
|
15552
|
-
({
|
|
15553
|
-
children,
|
|
15554
|
-
className,
|
|
15555
|
-
style,
|
|
15556
|
-
htmlProps,
|
|
15557
|
-
padding,
|
|
15558
|
-
typographyType,
|
|
15559
|
-
bold,
|
|
15560
|
-
...rest
|
|
15561
|
-
}: CardExpandableHeaderProps): import("react").JSX.Element;
|
|
15273
|
+
({ children, className, style, htmlProps, padding, typographyType, bold, ...rest }: CardExpandableHeaderProps): import("react").JSX.Element;
|
|
15562
15274
|
displayName: string;
|
|
15563
15275
|
};
|
|
15564
15276
|
//#endregion
|
|
15565
15277
|
//#region src/components/Card/CardExpandable/CardExpandableBody.d.ts
|
|
15566
15278
|
type CardExpandableBodyProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
15567
|
-
/**Overskriver default padding. */
|
|
15279
|
+
/**Overskriver default padding. */
|
|
15280
|
+
padding?: Property.Padding<string>;
|
|
15568
15281
|
}>, 'id'>;
|
|
15569
15282
|
declare const CardExpandableBody: {
|
|
15570
|
-
({
|
|
15571
|
-
children,
|
|
15572
|
-
className,
|
|
15573
|
-
style,
|
|
15574
|
-
htmlProps,
|
|
15575
|
-
padding,
|
|
15576
|
-
...rest
|
|
15577
|
-
}: CardExpandableBodyProps): import("react").JSX.Element;
|
|
15283
|
+
({ children, className, style, htmlProps, padding, ...rest }: CardExpandableBodyProps): import("react").JSX.Element;
|
|
15578
15284
|
displayName: string;
|
|
15579
15285
|
};
|
|
15580
15286
|
//#endregion
|
|
@@ -15586,106 +15292,71 @@ declare const CardSelectable: {
|
|
|
15586
15292
|
//#endregion
|
|
15587
15293
|
//#region src/components/Card/CardSelectionControl/CardSelectableGroup.d.ts
|
|
15588
15294
|
type CardSelectableGroupProps<T extends string | number> = BaseComponentPropsWithChildren<HTMLDivElement, Omit<SelectionControlGroupCommonProps, 'label' | 'direction' | 'tip'> & Pick<ResponsiveProps, 'display' | 'gap' | 'padding' | 'margin' | 'flexDirection' | 'rowGap' | 'flexWrap' | 'alignItems' | 'columnGap'> & {
|
|
15589
|
-
/** Spesifiserer inputtype som returneres. */
|
|
15590
|
-
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15295
|
+
/** Spesifiserer inputtype som returneres. */
|
|
15296
|
+
cardType: CardSelectableType;
|
|
15297
|
+
/**Id til valgfri hjelpetekst; Tar hånd om semantisk tilknytting og annen UU. */
|
|
15298
|
+
tipId?: string;
|
|
15299
|
+
/** Gir alle barna `name` prop.*/
|
|
15300
|
+
name?: string;
|
|
15301
|
+
/**Funksjonen for `onChange`-event for barna. */
|
|
15302
|
+
onChange?: (value: T | undefined) => void;
|
|
15303
|
+
/** Gjør alle barna påkrevd ved å gi dem `required` prop. */
|
|
15304
|
+
required?: boolean;
|
|
15305
|
+
/**Verdi - en `<CardSelectable>` med denne verdien blir valgt med controlled state. */
|
|
15306
|
+
value?: T | undefined;
|
|
15307
|
+
/**Default verdi - en `<CardSelectable>` med denne verdien blir forhåndsvalgt med uncontrolled state. */
|
|
15595
15308
|
defaultValue?: T | undefined;
|
|
15596
15309
|
}, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
15597
15310
|
declare const CardSelectableGroup: {
|
|
15598
|
-
<T extends string | number = string>({
|
|
15599
|
-
name,
|
|
15600
|
-
cardType,
|
|
15601
|
-
errorMessage,
|
|
15602
|
-
disabled,
|
|
15603
|
-
readOnly,
|
|
15604
|
-
value,
|
|
15605
|
-
defaultValue,
|
|
15606
|
-
children,
|
|
15607
|
-
required,
|
|
15608
|
-
onChange,
|
|
15609
|
-
id,
|
|
15610
|
-
tipId,
|
|
15611
|
-
className,
|
|
15612
|
-
style,
|
|
15613
|
-
htmlProps,
|
|
15614
|
-
...rest
|
|
15615
|
-
}: CardSelectableGroupProps<T>): import("react").JSX.Element;
|
|
15311
|
+
<T extends string | number = string>({ name, cardType, errorMessage, disabled, readOnly, value, defaultValue, children, required, onChange, id, tipId, className, style, htmlProps, ...rest }: CardSelectableGroupProps<T>): import("react").JSX.Element;
|
|
15616
15312
|
displayName: string;
|
|
15617
15313
|
};
|
|
15618
15314
|
//#endregion
|
|
15619
15315
|
//#region src/components/Chip/Chip.d.ts
|
|
15620
15316
|
type ChipProps = BaseComponentProps<HTMLDivElement, {
|
|
15621
|
-
/** Teksten som vises i komponenten. */
|
|
15317
|
+
/** Teksten som vises i komponenten. */
|
|
15318
|
+
children?: string;
|
|
15319
|
+
/** Ekstra logikk når `<Chip>` lukkes. */
|
|
15622
15320
|
onClose?: () => void;
|
|
15623
15321
|
}>;
|
|
15624
15322
|
declare const Chip: {
|
|
15625
|
-
({
|
|
15626
|
-
children,
|
|
15627
|
-
onClose,
|
|
15628
|
-
id,
|
|
15629
|
-
className,
|
|
15630
|
-
style,
|
|
15631
|
-
htmlProps,
|
|
15632
|
-
...rest
|
|
15633
|
-
}: ChipProps): import("react").JSX.Element | null;
|
|
15323
|
+
({ children, onClose, id, className, style, htmlProps, ...rest }: ChipProps): import("react").JSX.Element | null;
|
|
15634
15324
|
displayName: string;
|
|
15635
15325
|
};
|
|
15636
15326
|
//#endregion
|
|
15637
15327
|
//#region src/components/Chip/ChipGroup.d.ts
|
|
15638
15328
|
type ChipGroupProps = ComponentPropsWithRef<'ul'>;
|
|
15639
15329
|
declare const ChipGroup: {
|
|
15640
|
-
({
|
|
15641
|
-
children,
|
|
15642
|
-
...rest
|
|
15643
|
-
}: ChipGroupProps): import("react").JSX.Element;
|
|
15330
|
+
({ children, ...rest }: ChipGroupProps): import("react").JSX.Element;
|
|
15644
15331
|
displayName: string;
|
|
15645
15332
|
};
|
|
15646
15333
|
//#endregion
|
|
15647
15334
|
//#region src/components/CookieBanner/CookieBannerCheckbox.d.ts
|
|
15648
15335
|
type CookieBannerCheckboxProps = Omit<CheckboxProps, 'label' | 'children'> & {
|
|
15649
|
-
/**Header - kort oppsummering av den spesifikke typen informasjonskapsel. */
|
|
15336
|
+
/**Header - kort oppsummering av den spesifikke typen informasjonskapsel. */
|
|
15337
|
+
headerText?: string;
|
|
15338
|
+
/**Detaljer rundt den spesifikke typen informasjonskapsel. */
|
|
15650
15339
|
description: string;
|
|
15651
15340
|
};
|
|
15652
|
-
declare function CookieBannerCheckbox({
|
|
15653
|
-
headerText,
|
|
15654
|
-
description,
|
|
15655
|
-
id,
|
|
15656
|
-
className,
|
|
15657
|
-
style,
|
|
15658
|
-
htmlProps,
|
|
15659
|
-
...rest
|
|
15660
|
-
}: CookieBannerCheckboxProps): import("react").JSX.Element;
|
|
15341
|
+
declare function CookieBannerCheckbox({ headerText, description, id, className, style, htmlProps, ...rest }: CookieBannerCheckboxProps): import("react").JSX.Element;
|
|
15661
15342
|
declare namespace CookieBannerCheckbox {
|
|
15662
15343
|
var displayName: string;
|
|
15663
15344
|
}
|
|
15664
15345
|
//#endregion
|
|
15665
15346
|
//#region src/components/CookieBanner/CookieBanner.d.ts
|
|
15666
15347
|
type CookieBannerProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
15667
|
-
/**Header - kort oppsummering. */
|
|
15668
|
-
|
|
15669
|
-
|
|
15670
|
-
|
|
15348
|
+
/**Header - kort oppsummering. */
|
|
15349
|
+
headerText?: string;
|
|
15350
|
+
/**Hovedinnholdet med info rundt informasjonkapsler bruk på siden. Kan inneholde lenker og andre interaktive elementer. */
|
|
15351
|
+
description?: ReactNode;
|
|
15352
|
+
/**Knapper for ulike nivåer av godkjenning av informasjonskaplser. Layout for knappene håndteres ut av boksen. */
|
|
15353
|
+
buttons?: Array<Omit<ButtonProps, 'purpose' | 'size'>>;
|
|
15354
|
+
/**Checkboxes for hver type informasjonskapsel som brukes på siden. Layout håndteres ut av boksen. */
|
|
15355
|
+
checkboxes?: Array<CookieBannerCheckboxProps>;
|
|
15356
|
+
/**Brekkpunkt for sammentrukket variant; Brukes på siden med detaljer om informasjonskapsler. */
|
|
15671
15357
|
collapsedBreakpoint?: Breakpoint;
|
|
15672
15358
|
} & Pick<ResponsiveProps, 'position' | 'top' | 'bottom' | 'left' | 'right' | 'width' | 'maxHeight'>>;
|
|
15673
|
-
declare function CookieBanner({
|
|
15674
|
-
headerText,
|
|
15675
|
-
description,
|
|
15676
|
-
buttons,
|
|
15677
|
-
checkboxes,
|
|
15678
|
-
id,
|
|
15679
|
-
className,
|
|
15680
|
-
style,
|
|
15681
|
-
htmlProps,
|
|
15682
|
-
maxHeight,
|
|
15683
|
-
width,
|
|
15684
|
-
children,
|
|
15685
|
-
collapsedBreakpoint,
|
|
15686
|
-
ref,
|
|
15687
|
-
...rest
|
|
15688
|
-
}: CookieBannerProps): import("react").JSX.Element;
|
|
15359
|
+
declare function CookieBanner({ headerText, description, buttons, checkboxes, id, className, style, htmlProps, maxHeight, width, children, collapsedBreakpoint, ref, ...rest }: CookieBannerProps): import("react").JSX.Element;
|
|
15689
15360
|
declare namespace CookieBanner {
|
|
15690
15361
|
var displayName: string;
|
|
15691
15362
|
}
|
|
@@ -15759,18 +15430,7 @@ interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'granu
|
|
|
15759
15430
|
*/
|
|
15760
15431
|
clearable?: boolean;
|
|
15761
15432
|
}
|
|
15762
|
-
declare function DatePicker({
|
|
15763
|
-
errorMessage,
|
|
15764
|
-
componentSize,
|
|
15765
|
-
tip,
|
|
15766
|
-
style,
|
|
15767
|
-
width,
|
|
15768
|
-
smallScreenBreakpoint,
|
|
15769
|
-
showWeekNumbers,
|
|
15770
|
-
clearable,
|
|
15771
|
-
ref,
|
|
15772
|
-
...props
|
|
15773
|
-
}: DatePickerProps): import("react").JSX.Element;
|
|
15433
|
+
declare function DatePicker({ errorMessage, componentSize, tip, style, width, smallScreenBreakpoint, showWeekNumbers, clearable, ref, ...props }: DatePickerProps): import("react").JSX.Element;
|
|
15774
15434
|
declare namespace DatePicker {
|
|
15775
15435
|
var displayName: string;
|
|
15776
15436
|
}
|
|
@@ -15779,12 +15439,7 @@ declare namespace DatePicker {
|
|
|
15779
15439
|
type TimePickerProps = Omit<AriaTimeFieldProps<Time>, 'hideTimeZone'> & Pick<InputProps, 'componentSize' | 'errorMessage' | 'tip' | 'style' | 'width' | 'className'> & {
|
|
15780
15440
|
ref?: Ref<HTMLDivElement>;
|
|
15781
15441
|
};
|
|
15782
|
-
declare function TimePicker({
|
|
15783
|
-
componentSize,
|
|
15784
|
-
width,
|
|
15785
|
-
ref,
|
|
15786
|
-
...props
|
|
15787
|
-
}: TimePickerProps): import("react").JSX.Element;
|
|
15442
|
+
declare function TimePicker({ componentSize, width, ref, ...props }: TimePickerProps): import("react").JSX.Element;
|
|
15788
15443
|
declare namespace TimePicker {
|
|
15789
15444
|
var displayName: string;
|
|
15790
15445
|
}
|
|
@@ -15799,23 +15454,15 @@ declare function calendarDateToNativeDate(date: CalendarDate, time?: Time): Date
|
|
|
15799
15454
|
//#region src/components/DescriptionList/DescriptionList.d.ts
|
|
15800
15455
|
type DescriptionListAppearance = 'default' | 'subtle';
|
|
15801
15456
|
type DescriptionListProps = BaseComponentPropsWithChildren<HTMLDListElement, {
|
|
15802
|
-
/**Påvirker tekst styling. */
|
|
15457
|
+
/**Påvirker tekst styling. */
|
|
15458
|
+
appearance?: DescriptionListAppearance;
|
|
15803
15459
|
/**Setter flex-direction. NB! Fungerer kun ved bruk av `DescriptionListGroup` som barn av `DescriptionList`.
|
|
15804
15460
|
* @default "column"
|
|
15805
15461
|
*/
|
|
15806
15462
|
direction?: Direction;
|
|
15807
15463
|
}>;
|
|
15808
15464
|
declare const DescriptionList: {
|
|
15809
|
-
({
|
|
15810
|
-
appearance,
|
|
15811
|
-
direction,
|
|
15812
|
-
children,
|
|
15813
|
-
id,
|
|
15814
|
-
className,
|
|
15815
|
-
style,
|
|
15816
|
-
htmlProps,
|
|
15817
|
-
...rest
|
|
15818
|
-
}: DescriptionListProps): import("react").JSX.Element;
|
|
15465
|
+
({ appearance, direction, children, id, className, style, htmlProps, ...rest }: DescriptionListProps): import("react").JSX.Element;
|
|
15819
15466
|
displayName: string;
|
|
15820
15467
|
};
|
|
15821
15468
|
//#endregion
|
|
@@ -15828,39 +15475,25 @@ declare const DescriptionListTerm: {
|
|
|
15828
15475
|
//#endregion
|
|
15829
15476
|
//#region src/components/DescriptionList/DescriptionListDesc.d.ts
|
|
15830
15477
|
type DescriptionListDescProps = BaseComponentPropsWithChildren<HTMLElement, {
|
|
15831
|
-
/**Ikon som vises ved siden av teksten. */
|
|
15478
|
+
/**Ikon som vises ved siden av teksten. */
|
|
15479
|
+
icon?: SvgIcon;
|
|
15832
15480
|
}>;
|
|
15833
15481
|
declare const DescriptionListDesc: {
|
|
15834
|
-
({
|
|
15835
|
-
children,
|
|
15836
|
-
icon,
|
|
15837
|
-
id,
|
|
15838
|
-
className,
|
|
15839
|
-
style,
|
|
15840
|
-
htmlProps,
|
|
15841
|
-
...rest
|
|
15842
|
-
}: DescriptionListDescProps): import("react").JSX.Element;
|
|
15482
|
+
({ children, icon, id, className, style, htmlProps, ...rest }: DescriptionListDescProps): import("react").JSX.Element;
|
|
15843
15483
|
displayName: string;
|
|
15844
15484
|
};
|
|
15845
15485
|
//#endregion
|
|
15846
15486
|
//#region src/components/DescriptionList/DescriptionListGroup.d.ts
|
|
15847
15487
|
type DescriptionListGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
15848
|
-
/**Custom margin. */
|
|
15849
|
-
|
|
15488
|
+
/**Custom margin. */
|
|
15489
|
+
margin?: Property.Margin<string>;
|
|
15490
|
+
/**Custom min-width. */
|
|
15491
|
+
minWidth?: Property.MinWidth<string>;
|
|
15492
|
+
/**Custom max-width. */
|
|
15850
15493
|
maxWidth?: Property.MaxWidth<string>;
|
|
15851
15494
|
}>;
|
|
15852
15495
|
declare const DescriptionListGroup: {
|
|
15853
|
-
({
|
|
15854
|
-
children,
|
|
15855
|
-
margin,
|
|
15856
|
-
minWidth,
|
|
15857
|
-
maxWidth,
|
|
15858
|
-
id,
|
|
15859
|
-
className,
|
|
15860
|
-
style,
|
|
15861
|
-
htmlProps,
|
|
15862
|
-
...rest
|
|
15863
|
-
}: DescriptionListGroupProps): import("react").JSX.Element;
|
|
15496
|
+
({ children, margin, minWidth, maxWidth, id, className, style, htmlProps, ...rest }: DescriptionListGroupProps): import("react").JSX.Element;
|
|
15864
15497
|
displayName: string;
|
|
15865
15498
|
};
|
|
15866
15499
|
//#endregion
|
|
@@ -15882,51 +15515,33 @@ type DetailListProps = BaseComponentPropsWithChildren<HTMLDListElement, {
|
|
|
15882
15515
|
* Om rader skal ha sebrastriper.
|
|
15883
15516
|
* @default true
|
|
15884
15517
|
*/
|
|
15885
|
-
striped?: boolean;
|
|
15518
|
+
striped?: boolean;
|
|
15519
|
+
/**Brekkpunkt for små skjermer; den gjør om rader til kolonner. */
|
|
15886
15520
|
smallScreenBreakpoint?: Breakpoint;
|
|
15887
15521
|
}>;
|
|
15888
15522
|
declare const DetailList: {
|
|
15889
|
-
({
|
|
15890
|
-
id,
|
|
15891
|
-
className,
|
|
15892
|
-
style,
|
|
15893
|
-
htmlProps,
|
|
15894
|
-
withDividers,
|
|
15895
|
-
striped,
|
|
15896
|
-
size,
|
|
15897
|
-
smallScreenBreakpoint,
|
|
15898
|
-
...rest
|
|
15899
|
-
}: DetailListProps): import("react").JSX.Element;
|
|
15523
|
+
({ id, className, style, htmlProps, withDividers, striped, size, smallScreenBreakpoint, ...rest }: DetailListProps): import("react").JSX.Element;
|
|
15900
15524
|
displayName: string;
|
|
15901
15525
|
};
|
|
15902
15526
|
//#endregion
|
|
15903
15527
|
//#region src/components/DetailList/DetailListDesc.d.ts
|
|
15904
15528
|
type DetailListDescProps = ComponentPropsWithRef<'dd'> & Pick<ResponsiveProps, 'textAlign'>;
|
|
15905
15529
|
declare const DetailListDesc: {
|
|
15906
|
-
({
|
|
15907
|
-
className,
|
|
15908
|
-
...rest
|
|
15909
|
-
}: DetailListDescProps): import("react").JSX.Element;
|
|
15530
|
+
({ className, ...rest }: DetailListDescProps): import("react").JSX.Element;
|
|
15910
15531
|
displayName: string;
|
|
15911
15532
|
};
|
|
15912
15533
|
//#endregion
|
|
15913
15534
|
//#region src/components/DetailList/DetailListRow.d.ts
|
|
15914
15535
|
type DetailListRowProps = ComponentPropsWithRef<'div'>;
|
|
15915
15536
|
declare const DetailListRow: {
|
|
15916
|
-
({
|
|
15917
|
-
className,
|
|
15918
|
-
...rest
|
|
15919
|
-
}: DetailListRowProps): import("react").JSX.Element;
|
|
15537
|
+
({ className, ...rest }: DetailListRowProps): import("react").JSX.Element;
|
|
15920
15538
|
displayName: string;
|
|
15921
15539
|
};
|
|
15922
15540
|
//#endregion
|
|
15923
15541
|
//#region src/components/DetailList/DetailListTerm.d.ts
|
|
15924
15542
|
type DetailListTermProps = ComponentPropsWithRef<'dt'>;
|
|
15925
15543
|
declare const DetailListTerm: {
|
|
15926
|
-
({
|
|
15927
|
-
className,
|
|
15928
|
-
...rest
|
|
15929
|
-
}: DetailListTermProps): import("react").JSX.Element;
|
|
15544
|
+
({ className, ...rest }: DetailListTermProps): import("react").JSX.Element;
|
|
15930
15545
|
displayName: string;
|
|
15931
15546
|
};
|
|
15932
15547
|
//#endregion
|
|
@@ -15938,14 +15553,7 @@ type DividerProps = BaseComponentProps<HTMLHRElement, {
|
|
|
15938
15553
|
*/
|
|
15939
15554
|
color?: DividerColor;
|
|
15940
15555
|
}, Omit<HTMLAttributes<HTMLHRElement>, 'color'>>;
|
|
15941
|
-
declare const Divider: ({
|
|
15942
|
-
color,
|
|
15943
|
-
id,
|
|
15944
|
-
className,
|
|
15945
|
-
style,
|
|
15946
|
-
htmlProps,
|
|
15947
|
-
...rest
|
|
15948
|
-
}: DividerProps) => import("react").JSX.Element;
|
|
15556
|
+
declare const Divider: ({ color, id, className, style, htmlProps, ...rest }: DividerProps) => import("react").JSX.Element;
|
|
15949
15557
|
//#endregion
|
|
15950
15558
|
//#region src/components/Drawer/Drawer.d.ts
|
|
15951
15559
|
declare const DRAWER_SIZES: ["small", "medium", "large"];
|
|
@@ -15959,7 +15567,8 @@ type DrawerProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
15959
15567
|
/** Plasseringen til `<Drawer>`.
|
|
15960
15568
|
* @default "right"
|
|
15961
15569
|
*/
|
|
15962
|
-
placement?: DrawerPlacement;
|
|
15570
|
+
placement?: DrawerPlacement;
|
|
15571
|
+
/**Header for `<Drawer>`. Returnerer default `<Heading>` hvis verdien er en `string`. */
|
|
15963
15572
|
header?: string | ReactNode;
|
|
15964
15573
|
/**Spesifiserer hvilken DOM node `<Drawer>` skal ha som forelder via React portal.
|
|
15965
15574
|
* Brukes med f.eks `document.getElementById("id")` eller ref (skaper ikke ny DOM node).
|
|
@@ -15972,22 +15581,7 @@ type DrawerProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
15972
15581
|
withBackdrop?: boolean;
|
|
15973
15582
|
} & Pick<ResponsiveProps, 'minWidth' | 'maxWidth' | 'width'>>, 'id'>;
|
|
15974
15583
|
declare const Drawer: {
|
|
15975
|
-
({
|
|
15976
|
-
children,
|
|
15977
|
-
header,
|
|
15978
|
-
placement,
|
|
15979
|
-
parentElement,
|
|
15980
|
-
size,
|
|
15981
|
-
className,
|
|
15982
|
-
style,
|
|
15983
|
-
htmlProps,
|
|
15984
|
-
maxWidth,
|
|
15985
|
-
minWidth,
|
|
15986
|
-
width,
|
|
15987
|
-
withBackdrop,
|
|
15988
|
-
ref,
|
|
15989
|
-
...rest
|
|
15990
|
-
}: DrawerProps): import("react").ReactPortal | null;
|
|
15584
|
+
({ children, header, placement, parentElement, size, className, style, htmlProps, maxWidth, minWidth, width, withBackdrop, ref, ...rest }: DrawerProps): import("react").ReactPortal | null;
|
|
15991
15585
|
displayName: string;
|
|
15992
15586
|
};
|
|
15993
15587
|
//#endregion
|
|
@@ -16015,65 +15609,40 @@ interface DrawerGroupProps {
|
|
|
16015
15609
|
onClose?: () => void;
|
|
16016
15610
|
}
|
|
16017
15611
|
declare const DrawerGroup: {
|
|
16018
|
-
({
|
|
16019
|
-
children,
|
|
16020
|
-
isInitiallyOpen,
|
|
16021
|
-
isOpen: propIsOpen,
|
|
16022
|
-
setIsOpen: propSetIsOpen,
|
|
16023
|
-
drawerId,
|
|
16024
|
-
onOpen,
|
|
16025
|
-
onClose
|
|
16026
|
-
}: DrawerGroupProps): import("react").JSX.Element;
|
|
15612
|
+
({ children, isInitiallyOpen, isOpen: propIsOpen, setIsOpen: propSetIsOpen, drawerId, onOpen, onClose }: DrawerGroupProps): import("react").JSX.Element;
|
|
16027
15613
|
displayName: string;
|
|
16028
15614
|
};
|
|
16029
15615
|
//#endregion
|
|
16030
15616
|
//#region src/components/EmptyContent/EmptyContent.d.ts
|
|
16031
15617
|
type EmptyContentProps = {
|
|
16032
|
-
/**Tittel - kort oppsummering. */
|
|
15618
|
+
/**Tittel - kort oppsummering. */
|
|
15619
|
+
headerText?: string;
|
|
16033
15620
|
/**Nivå på overskriften. Sørg for at den følger hierarkiet på siden.
|
|
16034
15621
|
* @default 2
|
|
16035
15622
|
*/
|
|
16036
|
-
headerHeadingLevel?: HeadingLevel;
|
|
15623
|
+
headerHeadingLevel?: HeadingLevel;
|
|
15624
|
+
/**Melding - beskrivelse og forklaring på hvordan brukeren kan få innhold. Kan inneholde lenker og andre interaktive elementer. */
|
|
16037
15625
|
children: ReactNode;
|
|
16038
15626
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
16039
|
-
declare function EmptyContent({
|
|
16040
|
-
headerText,
|
|
16041
|
-
children,
|
|
16042
|
-
headerHeadingLevel,
|
|
16043
|
-
...rest
|
|
16044
|
-
}: EmptyContentProps): import("react").JSX.Element;
|
|
15627
|
+
declare function EmptyContent({ headerText, children, headerHeadingLevel, ...rest }: EmptyContentProps): import("react").JSX.Element;
|
|
16045
15628
|
declare namespace EmptyContent {
|
|
16046
15629
|
var displayName: string;
|
|
16047
15630
|
}
|
|
16048
15631
|
//#endregion
|
|
16049
15632
|
//#region src/components/ErrorSummary/ErrorSummary.d.ts
|
|
16050
15633
|
type ErrorSummaryProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
16051
|
-
/**Custom overskrift. Bruker default heading tag hvis den er av typen `string`. */
|
|
15634
|
+
/**Custom overskrift. Bruker default heading tag hvis den er av typen `string`. */
|
|
15635
|
+
heading?: ReactNode;
|
|
16052
15636
|
}>;
|
|
16053
15637
|
declare const ErrorSummary: {
|
|
16054
|
-
({
|
|
16055
|
-
heading: pHeading,
|
|
16056
|
-
className,
|
|
16057
|
-
style,
|
|
16058
|
-
children,
|
|
16059
|
-
id,
|
|
16060
|
-
htmlProps,
|
|
16061
|
-
...props
|
|
16062
|
-
}: ErrorSummaryProps): import("react").JSX.Element;
|
|
15638
|
+
({ heading: pHeading, className, style, children, id, htmlProps, ...props }: ErrorSummaryProps): import("react").JSX.Element;
|
|
16063
15639
|
displayName: string;
|
|
16064
15640
|
};
|
|
16065
15641
|
//#endregion
|
|
16066
15642
|
//#region src/components/ErrorSummary/ErrorSummaryItem.d.ts
|
|
16067
15643
|
type ErrorSummaryItemProps<T extends ElementType> = LinkProps<T>;
|
|
16068
15644
|
declare const ErrorSummaryItem: {
|
|
16069
|
-
<T extends ElementType>({
|
|
16070
|
-
className,
|
|
16071
|
-
style,
|
|
16072
|
-
children,
|
|
16073
|
-
id,
|
|
16074
|
-
htmlProps,
|
|
16075
|
-
...props
|
|
16076
|
-
}: ErrorSummaryItemProps<T>): import("react").JSX.Element;
|
|
15645
|
+
<T extends ElementType>({ className, style, children, id, htmlProps, ...props }: ErrorSummaryItemProps<T>): import("react").JSX.Element;
|
|
16077
15646
|
displayName: string;
|
|
16078
15647
|
};
|
|
16079
15648
|
//#endregion
|
|
@@ -16101,17 +15670,7 @@ type FavStarProps = BaseComponentPropsWithChildren<HTMLElement, {
|
|
|
16101
15670
|
size?: ComponentSize;
|
|
16102
15671
|
}, Omit<HTMLAttributes<HTMLElement>, 'onChange'>>;
|
|
16103
15672
|
declare const FavStar: {
|
|
16104
|
-
({
|
|
16105
|
-
id,
|
|
16106
|
-
className,
|
|
16107
|
-
style,
|
|
16108
|
-
onChange,
|
|
16109
|
-
checked: checkedProp,
|
|
16110
|
-
defaultChecked,
|
|
16111
|
-
size,
|
|
16112
|
-
htmlProps,
|
|
16113
|
-
...rest
|
|
16114
|
-
}: FavStarProps): import("react").JSX.Element;
|
|
15673
|
+
({ id, className, style, onChange, checked: checkedProp, defaultChecked, size, htmlProps, ...rest }: FavStarProps): import("react").JSX.Element;
|
|
16115
15674
|
displayName: string;
|
|
16116
15675
|
};
|
|
16117
15676
|
//#endregion
|
|
@@ -16176,51 +15735,22 @@ type Rating = 'positive' | 'negative';
|
|
|
16176
15735
|
type Layout = 'vertical' | 'horizontal';
|
|
16177
15736
|
//#endregion
|
|
16178
15737
|
//#region src/components/Feedback/Feedback.d.ts
|
|
16179
|
-
declare const Feedback: ({
|
|
16180
|
-
layout,
|
|
16181
|
-
ratingLabel,
|
|
16182
|
-
positiveFeedbackLabel,
|
|
16183
|
-
negativeFeedbackLabel,
|
|
16184
|
-
ratingSubmittedTitle,
|
|
16185
|
-
submittedTitle,
|
|
16186
|
-
textAreaTip,
|
|
16187
|
-
ratingValue: ratingProp,
|
|
16188
|
-
feedbackTextValue: feedbackTextProp,
|
|
16189
|
-
thumbUpTooltip,
|
|
16190
|
-
thumbDownTooltip,
|
|
16191
|
-
feedbackTextAreaExcluded,
|
|
16192
|
-
loading,
|
|
16193
|
-
isSubmitted: isSubmittedProp,
|
|
16194
|
-
onRating,
|
|
16195
|
-
onFeedbackTextChange,
|
|
16196
|
-
onSubmit
|
|
16197
|
-
}: FeedbackProps) => import("react").JSX.Element;
|
|
15738
|
+
declare const Feedback: ({ layout, ratingLabel, positiveFeedbackLabel, negativeFeedbackLabel, ratingSubmittedTitle, submittedTitle, textAreaTip, ratingValue: ratingProp, feedbackTextValue: feedbackTextProp, thumbUpTooltip, thumbDownTooltip, feedbackTextAreaExcluded, loading, isSubmitted: isSubmittedProp, onRating, onFeedbackTextChange, onSubmit }: FeedbackProps) => import("react").JSX.Element;
|
|
16198
15739
|
//#endregion
|
|
16199
15740
|
//#region src/components/Fieldset/Fieldset.d.ts
|
|
16200
15741
|
type FieldsetProps = BaseComponentPropsWithChildren<HTMLFieldSetElement, {
|
|
16201
|
-
/** Om alle inputfelt skal bli `disabled`. */
|
|
15742
|
+
/** Om alle inputfelt skal bli `disabled`. */
|
|
15743
|
+
disabled?: boolean;
|
|
16202
15744
|
}>;
|
|
16203
15745
|
declare const Fieldset: {
|
|
16204
|
-
({
|
|
16205
|
-
id,
|
|
16206
|
-
className,
|
|
16207
|
-
style,
|
|
16208
|
-
htmlProps,
|
|
16209
|
-
...rest
|
|
16210
|
-
}: FieldsetProps): import("react").JSX.Element;
|
|
15746
|
+
({ id, className, style, htmlProps, ...rest }: FieldsetProps): import("react").JSX.Element;
|
|
16211
15747
|
displayName: string;
|
|
16212
15748
|
};
|
|
16213
15749
|
//#endregion
|
|
16214
15750
|
//#region src/components/Fieldset/FieldsetGroup.d.ts
|
|
16215
15751
|
type FieldsetGroupProps = BaseComponentPropsWithChildren<HTMLDivElement>;
|
|
16216
15752
|
declare const FieldsetGroup: {
|
|
16217
|
-
({
|
|
16218
|
-
id,
|
|
16219
|
-
className,
|
|
16220
|
-
style,
|
|
16221
|
-
htmlProps,
|
|
16222
|
-
...rest
|
|
16223
|
-
}: FieldsetGroupProps): import("react").JSX.Element;
|
|
15753
|
+
({ id, className, style, htmlProps, ...rest }: FieldsetGroupProps): import("react").JSX.Element;
|
|
16224
15754
|
displayName: string;
|
|
16225
15755
|
};
|
|
16226
15756
|
//#endregion
|
|
@@ -16247,19 +15777,27 @@ type FileStatusMap = Map<string, UploadInfo>;
|
|
|
16247
15777
|
//#endregion
|
|
16248
15778
|
//#region src/components/FileUploader/useFileUploader.d.ts
|
|
16249
15779
|
type FileUploaderHookProps = {
|
|
16250
|
-
/**Dersom komponenten skal styres internt. Utgangspunktet for filene som har blitt lastet opp. */
|
|
16251
|
-
|
|
16252
|
-
|
|
16253
|
-
|
|
16254
|
-
|
|
16255
|
-
|
|
15780
|
+
/**Dersom komponenten skal styres internt. Utgangspunktet for filene som har blitt lastet opp. */
|
|
15781
|
+
initialFiles: FileList | undefined;
|
|
15782
|
+
/**Dersom komponenten styres utenfra. Filene som har blitt lastet opp. */
|
|
15783
|
+
value: FileList | undefined;
|
|
15784
|
+
/**Callback for når fil-listen endres. */
|
|
15785
|
+
onChange: (newFiles: FileList) => void;
|
|
15786
|
+
/**Filendelser eller mime-typer filopplasteren skal akseptere. */
|
|
15787
|
+
accept: Array<FileUploaderAccept> | undefined;
|
|
15788
|
+
/**Om filopplasteren er avslått eller ikke. */
|
|
15789
|
+
disabled?: boolean;
|
|
15790
|
+
/**Om filopplasteren er read-only. */
|
|
15791
|
+
readOnly?: boolean;
|
|
15792
|
+
/**Maks antall filer som tillates. */
|
|
16256
15793
|
maxFiles: number | undefined;
|
|
16257
15794
|
onKeyDown?: ComponentProps<'input'>['onKeyDown'];
|
|
16258
15795
|
} & Pick<InputProps, 'errorMessage' | 'id'>;
|
|
16259
15796
|
//#endregion
|
|
16260
15797
|
//#region src/components/FileUploader/FileUploader.d.ts
|
|
16261
15798
|
type FileUploaderProps = {
|
|
16262
|
-
/**Id til filopplasteren. */
|
|
15799
|
+
/**Id til filopplasteren. */
|
|
15800
|
+
id?: string;
|
|
16263
15801
|
/**Ledetekst for slippsonen. Denne teksten skal, av UU-hensyn, henge sammen med den usynlige teksten: "velg fil med påfølgende knapp"
|
|
16264
15802
|
* @default Dra og slipp filer her eller
|
|
16265
15803
|
*/
|
|
@@ -16267,15 +15805,20 @@ type FileUploaderProps = {
|
|
|
16267
15805
|
/**Ledetekst for opplastingsknappen.
|
|
16268
15806
|
* @default Velg fil
|
|
16269
15807
|
*/
|
|
16270
|
-
btnLabel?: string;
|
|
16271
|
-
|
|
15808
|
+
btnLabel?: string;
|
|
15809
|
+
/**Om det er påkrevd med minst én fil. */
|
|
15810
|
+
required?: boolean;
|
|
15811
|
+
/**Callback for når fil-listen endres. */
|
|
16272
15812
|
onChange: (newFiles: FileList) => void;
|
|
16273
15813
|
/**Om drag-and-drop zone skal vises.
|
|
16274
15814
|
* @default true
|
|
16275
15815
|
*/
|
|
16276
|
-
withDragAndDrop?: boolean;
|
|
16277
|
-
|
|
16278
|
-
|
|
15816
|
+
withDragAndDrop?: boolean;
|
|
15817
|
+
/**Om listen med opplastede filer skal skjules. Brukes kun hvis listen blir vist på egen måte. */
|
|
15818
|
+
hideFileList?: boolean;
|
|
15819
|
+
/** Map som lar konsumenten styre info om opplasting på hver fil: status og feilmelding. Bruker `deriveId` prop som nøkkel. Statusinfo vises i fillisten. */
|
|
15820
|
+
fileStatusMap?: Map<string, UploadInfo>;
|
|
15821
|
+
/** Funksjon som genererer en ID for hver fil. Brukes som nøkkel i `fileStatusMap` prop for å kunne mappe status på opplasting av hver fil og vise det i fillisten. */
|
|
16279
15822
|
deriveId?: (file: File | RemoteFile) => string;
|
|
16280
15823
|
/**
|
|
16281
15824
|
* Funksjon som lar brukeren prøve å laste opp en fil på nytt ved opplastlingfeil. Brukes sammen med `deriveId` og `fileStatusMap` props.
|
|
@@ -16289,10 +15832,7 @@ declare const FileUploader: {
|
|
|
16289
15832
|
//#endregion
|
|
16290
15833
|
//#region src/components/Footer/Footer.d.ts
|
|
16291
15834
|
type FooterProps = ComponentPropsWithRef<'footer'>;
|
|
16292
|
-
declare const Footer: ({
|
|
16293
|
-
className,
|
|
16294
|
-
...rest
|
|
16295
|
-
}: FooterProps) => import("react").JSX.Element;
|
|
15835
|
+
declare const Footer: ({ className, ...rest }: FooterProps) => import("react").JSX.Element;
|
|
16296
15836
|
//#endregion
|
|
16297
15837
|
//#region src/components/Footer/FooterListHeader.d.ts
|
|
16298
15838
|
type FooterListHeaderProps = Omit<HeadingProps, 'level' | 'withMargins'>;
|
|
@@ -16301,47 +15841,30 @@ declare const FooterListHeader: (props: FooterListHeaderProps) => import("react"
|
|
|
16301
15841
|
//#region src/components/Footer/FooterLogo.d.ts
|
|
16302
15842
|
type HideBreakpoint = 'xs' | 'sm' | 'md';
|
|
16303
15843
|
type FooterLogoProps = ComponentPropsWithRef<'img'> & {
|
|
16304
|
-
/**Brekkepunkt når logoen skal skjules på mindre skjerm. */
|
|
15844
|
+
/**Brekkepunkt når logoen skal skjules på mindre skjerm. */
|
|
15845
|
+
hideBreakpoint?: HideBreakpoint;
|
|
16305
15846
|
};
|
|
16306
|
-
declare const FooterLogo: ({
|
|
16307
|
-
hideBreakpoint,
|
|
16308
|
-
...rest
|
|
16309
|
-
}: FooterLogoProps) => import("react").JSX.Element;
|
|
15847
|
+
declare const FooterLogo: ({ hideBreakpoint, ...rest }: FooterLogoProps) => import("react").JSX.Element;
|
|
16310
15848
|
//#endregion
|
|
16311
15849
|
//#region src/components/Footer/FooterList.d.ts
|
|
16312
15850
|
type FooterListProps = ComponentPropsWithRef<'ul'>;
|
|
16313
|
-
declare const FooterList: ({
|
|
16314
|
-
className,
|
|
16315
|
-
...rest
|
|
16316
|
-
}: FooterListProps) => import("react").JSX.Element;
|
|
15851
|
+
declare const FooterList: ({ className, ...rest }: FooterListProps) => import("react").JSX.Element;
|
|
16317
15852
|
//#endregion
|
|
16318
15853
|
//#region src/components/Footer/FooterSocialsList.d.ts
|
|
16319
15854
|
type FooterSocialsListProps = ComponentPropsWithRef<'ul'>;
|
|
16320
|
-
declare const FooterSocialsList: ({
|
|
16321
|
-
className,
|
|
16322
|
-
...rest
|
|
16323
|
-
}: FooterSocialsListProps) => import("react").JSX.Element;
|
|
15855
|
+
declare const FooterSocialsList: ({ className, ...rest }: FooterSocialsListProps) => import("react").JSX.Element;
|
|
16324
15856
|
//#endregion
|
|
16325
15857
|
//#region src/components/Footer/FooterSocialsGroup.d.ts
|
|
16326
15858
|
type FooterSocialsGroupProps = ComponentPropsWithRef<'div'>;
|
|
16327
|
-
declare const FooterSocialsGroup: ({
|
|
16328
|
-
className,
|
|
16329
|
-
...rest
|
|
16330
|
-
}: FooterSocialsGroupProps) => import("react").JSX.Element;
|
|
15859
|
+
declare const FooterSocialsGroup: ({ className, ...rest }: FooterSocialsGroupProps) => import("react").JSX.Element;
|
|
16331
15860
|
//#endregion
|
|
16332
15861
|
//#region src/components/Footer/FooterListGroup.d.ts
|
|
16333
15862
|
type FooterListGroupProps = ComponentPropsWithRef<'div'>;
|
|
16334
|
-
declare const FooterListGroup: ({
|
|
16335
|
-
className,
|
|
16336
|
-
...rest
|
|
16337
|
-
}: FooterListGroupProps) => import("react").JSX.Element;
|
|
15863
|
+
declare const FooterListGroup: ({ className, ...rest }: FooterListGroupProps) => import("react").JSX.Element;
|
|
16338
15864
|
//#endregion
|
|
16339
15865
|
//#region src/components/Footer/FooterLeft.d.ts
|
|
16340
15866
|
type FooterLeftProps = ComponentPropsWithRef<'div'>;
|
|
16341
|
-
declare const FooterLeft: ({
|
|
16342
|
-
className,
|
|
16343
|
-
...rest
|
|
16344
|
-
}: FooterLeftProps) => import("react").JSX.Element;
|
|
15867
|
+
declare const FooterLeft: ({ className, ...rest }: FooterLeftProps) => import("react").JSX.Element;
|
|
16345
15868
|
//#endregion
|
|
16346
15869
|
//#region src/components/FormSummary/FormSummary.d.ts
|
|
16347
15870
|
type FormSummaryProps = Pick<PaperProps, 'children' | 'htmlProps' | 'ref' | 'id' | 'style' | 'className' | 'padding' | 'paddingBlock' | 'paddingInline' | 'margin' | 'marginBlock' | 'marginInline' | 'width' | 'minWidth' | 'maxWidth'>;
|
|
@@ -16350,22 +15873,15 @@ declare const FormSummary: (props: FormSummaryProps) => import("react").JSX.Elem
|
|
|
16350
15873
|
//#region src/components/InputMessage/InputMessage.d.ts
|
|
16351
15874
|
type InputMessageType = 'error' | 'tip';
|
|
16352
15875
|
type InputMessageProps = BaseComponentProps<HTMLDivElement, {
|
|
16353
|
-
/**Innhold. */
|
|
15876
|
+
/**Innhold. */
|
|
15877
|
+
children?: ReactNode;
|
|
16354
15878
|
/** Formålet med meldingen. Påvirker styling.
|
|
16355
15879
|
* @default "error"
|
|
16356
15880
|
*/
|
|
16357
15881
|
messageType: InputMessageType;
|
|
16358
15882
|
} & Pick<ResponsiveProps, 'margin' | 'marginInline' | 'marginBlock'>>;
|
|
16359
15883
|
declare const InputMessage: {
|
|
16360
|
-
({
|
|
16361
|
-
messageType,
|
|
16362
|
-
id,
|
|
16363
|
-
className,
|
|
16364
|
-
style,
|
|
16365
|
-
htmlProps,
|
|
16366
|
-
children,
|
|
16367
|
-
...rest
|
|
16368
|
-
}: InputMessageProps): import("react").JSX.Element;
|
|
15884
|
+
({ messageType, id, className, style, htmlProps, children, ...rest }: InputMessageProps): import("react").JSX.Element;
|
|
16369
15885
|
displayName: string;
|
|
16370
15886
|
};
|
|
16371
15887
|
interface RenderInputMessageProps {
|
|
@@ -16375,83 +15891,53 @@ interface RenderInputMessageProps {
|
|
|
16375
15891
|
errorMessageId?: string;
|
|
16376
15892
|
noSpacing?: boolean;
|
|
16377
15893
|
}
|
|
16378
|
-
declare const renderInputMessage: ({
|
|
16379
|
-
tip,
|
|
16380
|
-
tipId,
|
|
16381
|
-
errorMessage,
|
|
16382
|
-
errorMessageId,
|
|
16383
|
-
noSpacing
|
|
16384
|
-
}: RenderInputMessageProps) => import("react").JSX.Element;
|
|
15894
|
+
declare const renderInputMessage: ({ tip, tipId, errorMessage, errorMessageId, noSpacing }: RenderInputMessageProps) => import("react").JSX.Element;
|
|
16385
15895
|
//#endregion
|
|
16386
15896
|
//#region src/components/FormSummary/FormSummary.components.d.ts
|
|
16387
15897
|
type FormSummaryHeaderProps = ComponentPropsWithRef<'div'>;
|
|
16388
|
-
declare function FormSummaryHeader({
|
|
16389
|
-
...props
|
|
16390
|
-
}: FormSummaryHeaderProps): import("react").JSX.Element;
|
|
15898
|
+
declare function FormSummaryHeader({ ...props }: FormSummaryHeaderProps): import("react").JSX.Element;
|
|
16391
15899
|
type FormSummaryHeadingProps = {
|
|
16392
|
-
/** Heading level. */
|
|
15900
|
+
/** Heading level. */
|
|
15901
|
+
level?: Exclude<HeadingProps['level'], 1>;
|
|
16393
15902
|
} & Omit<HeadingProps, 'level'>;
|
|
16394
|
-
declare function FormSummaryHeading({
|
|
16395
|
-
level,
|
|
16396
|
-
...props
|
|
16397
|
-
}: FormSummaryHeadingProps): import("react").JSX.Element;
|
|
15903
|
+
declare function FormSummaryHeading({ level, ...props }: FormSummaryHeadingProps): import("react").JSX.Element;
|
|
16398
15904
|
type FormSummaryEditButtonProps = {
|
|
16399
|
-
/**Formål med knappen. */
|
|
15905
|
+
/**Formål med knappen. */
|
|
15906
|
+
purpose?: ExtractStrict<ButtonPurpose, 'secondary' | 'tertiary'>;
|
|
16400
15907
|
} & Omit<ButtonProps, 'purpose'>;
|
|
16401
|
-
declare function FormSummaryEditButton({
|
|
16402
|
-
purpose,
|
|
16403
|
-
...props
|
|
16404
|
-
}: FormSummaryEditButtonProps): import("react").JSX.Element;
|
|
15908
|
+
declare function FormSummaryEditButton({ purpose, ...props }: FormSummaryEditButtonProps): import("react").JSX.Element;
|
|
16405
15909
|
type FormSummaryFieldsProps = Omit<DescriptionListProps, 'direction'>;
|
|
16406
|
-
declare function FormSummaryFields({
|
|
16407
|
-
...props
|
|
16408
|
-
}: FormSummaryFieldsProps): import("react").JSX.Element;
|
|
15910
|
+
declare function FormSummaryFields({ ...props }: FormSummaryFieldsProps): import("react").JSX.Element;
|
|
16409
15911
|
type FormSummaryFieldProps = ComponentPropsWithRef<'div'>;
|
|
16410
|
-
declare function FormSummaryField({
|
|
16411
|
-
className,
|
|
16412
|
-
...props
|
|
16413
|
-
}: FormSummaryFieldProps): import("react").JSX.Element;
|
|
15912
|
+
declare function FormSummaryField({ className, ...props }: FormSummaryFieldProps): import("react").JSX.Element;
|
|
16414
15913
|
type FormSummaryLabelProps = DescriptionListTermProps;
|
|
16415
15914
|
declare function FormSummaryLabel(props: FormSummaryLabelProps): import("react").JSX.Element;
|
|
16416
15915
|
type FormSummaryValueProps = {
|
|
16417
|
-
/**Hvis data hentes fra ekstern kilde kan feltet vise innlastning. */
|
|
15916
|
+
/**Hvis data hentes fra ekstern kilde kan feltet vise innlastning. */
|
|
15917
|
+
isLoading?: boolean;
|
|
16418
15918
|
} & DescriptionListDescProps;
|
|
16419
|
-
declare function FormSummaryValue({
|
|
16420
|
-
className,
|
|
16421
|
-
isLoading,
|
|
16422
|
-
children,
|
|
16423
|
-
...props
|
|
16424
|
-
}: FormSummaryValueProps): import("react").JSX.Element;
|
|
15919
|
+
declare function FormSummaryValue({ className, isLoading, children, ...props }: FormSummaryValueProps): import("react").JSX.Element;
|
|
16425
15920
|
declare function FormSummaryEmptyValue(): import("react").JSX.Element;
|
|
16426
15921
|
type FormSummaryErrorProps = Omit<InputMessageProps, 'messageType' | 'message'>;
|
|
16427
|
-
declare function FormSummaryError({
|
|
16428
|
-
...props
|
|
16429
|
-
}: FormSummaryErrorProps): import("react").JSX.Element;
|
|
15922
|
+
declare function FormSummaryError({ ...props }: FormSummaryErrorProps): import("react").JSX.Element;
|
|
16430
15923
|
//#endregion
|
|
16431
15924
|
//#region src/components/GlobalMessage/GlobalMessage.d.ts
|
|
16432
15925
|
declare const G_MESSAGE_PURPOSES: ["info", "warning", "danger"];
|
|
16433
15926
|
type GlobalMessagePurpose = (typeof G_MESSAGE_PURPOSES)[number];
|
|
16434
15927
|
type GlobalMessageProps = BaseComponentProps<HTMLDivElement, {
|
|
16435
|
-
/**Melding. */
|
|
15928
|
+
/**Melding. */
|
|
15929
|
+
children?: ReactNode;
|
|
16436
15930
|
/**Formålet med meldingen. Påvirker styling.
|
|
16437
15931
|
* @default "info"
|
|
16438
15932
|
*/
|
|
16439
|
-
purpose?: GlobalMessagePurpose;
|
|
16440
|
-
|
|
15933
|
+
purpose?: GlobalMessagePurpose;
|
|
15934
|
+
/**Indikerer om meldingen skal være lukkbar. */
|
|
15935
|
+
closable?: boolean;
|
|
15936
|
+
/**Ekstra logikk å kjøre når meldingen lukkes. */
|
|
16441
15937
|
onClose?: () => void;
|
|
16442
15938
|
}>;
|
|
16443
15939
|
declare const GlobalMessage: {
|
|
16444
|
-
({
|
|
16445
|
-
purpose,
|
|
16446
|
-
closable,
|
|
16447
|
-
onClose,
|
|
16448
|
-
children,
|
|
16449
|
-
id,
|
|
16450
|
-
className,
|
|
16451
|
-
style,
|
|
16452
|
-
htmlProps,
|
|
16453
|
-
...rest
|
|
16454
|
-
}: GlobalMessageProps): import("react").JSX.Element | null;
|
|
15940
|
+
({ purpose, closable, onClose, children, id, className, style, htmlProps, ...rest }: GlobalMessageProps): import("react").JSX.Element | null;
|
|
16455
15941
|
displayName: string;
|
|
16456
15942
|
};
|
|
16457
15943
|
//#endregion
|
|
@@ -16462,13 +15948,7 @@ type InlineButtonProps = {
|
|
|
16462
15948
|
*/
|
|
16463
15949
|
icon?: SvgIcon;
|
|
16464
15950
|
} & Pick<BaseTypographyProps, 'color'> & Omit<ComponentPropsWithRef<'button'>, 'color'>;
|
|
16465
|
-
declare const InlineButton: ({
|
|
16466
|
-
className,
|
|
16467
|
-
color,
|
|
16468
|
-
icon,
|
|
16469
|
-
children,
|
|
16470
|
-
...rest
|
|
16471
|
-
}: InlineButtonProps) => import("react").JSX.Element;
|
|
15951
|
+
declare const InlineButton: ({ className, color, icon, children, ...rest }: InlineButtonProps) => import("react").JSX.Element;
|
|
16472
15952
|
//#endregion
|
|
16473
15953
|
//#region src/components/InlineEdit/InlineEdit.context.d.ts
|
|
16474
15954
|
interface InlineEditContextType {
|
|
@@ -16503,11 +15983,17 @@ interface CommonInlineFieldProps {
|
|
|
16503
15983
|
hideIcon?: boolean;
|
|
16504
15984
|
}
|
|
16505
15985
|
type InlineEditGenericProps<T extends EditElementTag> = CommonInlineFieldProps & InlineEditHTMLProps<T> & {
|
|
16506
|
-
/**Callback for når verdien blir lagret. */
|
|
16507
|
-
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
|
|
15986
|
+
/**Callback for når verdien blir lagret. */
|
|
15987
|
+
onSetValue?: (value: string) => void;
|
|
15988
|
+
/**Spesifiserer om brukeren kan tømme inputfeltet. */
|
|
15989
|
+
emptiable?: boolean;
|
|
15990
|
+
/**Ekstra callback ved `onChange`-event. */
|
|
15991
|
+
onChange?: () => void;
|
|
15992
|
+
/**Ekstra callback ved `onFocus`-event. */
|
|
15993
|
+
onFocus?: () => void;
|
|
15994
|
+
/**Ekstra callback ved `onBlur`-event. */
|
|
15995
|
+
onBlur?: () => void;
|
|
15996
|
+
/**HTML `value`. */
|
|
16511
15997
|
value?: ComponentProps<T>['value'];
|
|
16512
15998
|
};
|
|
16513
15999
|
type InlineEditTextAreaProps = InlineEditGenericProps<'textarea'>;
|
|
@@ -16515,40 +16001,13 @@ type InlineEditInputProps = InlineEditGenericProps<'input'>;
|
|
|
16515
16001
|
type InlineEditSelectProps = InlineEditGenericProps<'select'>;
|
|
16516
16002
|
//#endregion
|
|
16517
16003
|
//#region src/components/InlineEdit/InlineEditTextArea/InlineEditTextArea.d.ts
|
|
16518
|
-
declare const InlineEditTextArea: ({
|
|
16519
|
-
onSetValue,
|
|
16520
|
-
emptiable,
|
|
16521
|
-
value,
|
|
16522
|
-
onFocus,
|
|
16523
|
-
onChange,
|
|
16524
|
-
onBlur,
|
|
16525
|
-
ref,
|
|
16526
|
-
...rest
|
|
16527
|
-
}: InlineEditTextAreaProps) => import("react").JSX.Element;
|
|
16004
|
+
declare const InlineEditTextArea: ({ onSetValue, emptiable, value, onFocus, onChange, onBlur, ref, ...rest }: InlineEditTextAreaProps) => import("react").JSX.Element;
|
|
16528
16005
|
//#endregion
|
|
16529
16006
|
//#region src/components/InlineEdit/InlineEditInput/InlineEditInput.d.ts
|
|
16530
|
-
declare const InlineEditInput: ({
|
|
16531
|
-
onSetValue,
|
|
16532
|
-
emptiable,
|
|
16533
|
-
value,
|
|
16534
|
-
onFocus,
|
|
16535
|
-
onChange,
|
|
16536
|
-
onBlur,
|
|
16537
|
-
ref,
|
|
16538
|
-
...rest
|
|
16539
|
-
}: InlineEditInputProps) => import("react").JSX.Element;
|
|
16007
|
+
declare const InlineEditInput: ({ onSetValue, emptiable, value, onFocus, onChange, onBlur, ref, ...rest }: InlineEditInputProps) => import("react").JSX.Element;
|
|
16540
16008
|
//#endregion
|
|
16541
16009
|
//#region src/components/InlineEdit/InlineEditSelect/InlineEditSelect.d.ts
|
|
16542
|
-
declare const InlineEditSelect: ({
|
|
16543
|
-
onSetValue,
|
|
16544
|
-
emptiable,
|
|
16545
|
-
value,
|
|
16546
|
-
onFocus,
|
|
16547
|
-
onChange,
|
|
16548
|
-
onBlur,
|
|
16549
|
-
ref,
|
|
16550
|
-
...rest
|
|
16551
|
-
}: InlineEditSelectProps) => import("react").JSX.Element;
|
|
16010
|
+
declare const InlineEditSelect: ({ onSetValue, emptiable, value, onFocus, onChange, onBlur, ref, ...rest }: InlineEditSelectProps) => import("react").JSX.Element;
|
|
16552
16011
|
//#endregion
|
|
16553
16012
|
//#region src/components/InternalHeader/InternalHeader.types.d.ts
|
|
16554
16013
|
type NavigationLinkProps = {
|
|
@@ -16566,14 +16025,23 @@ interface InternaHeaderUserProps {
|
|
|
16566
16025
|
href?: string;
|
|
16567
16026
|
}
|
|
16568
16027
|
type InternalHeaderProps = BaseComponentProps<HTMLDivElement, {
|
|
16569
|
-
/**Navn på applikasjonen. */
|
|
16570
|
-
|
|
16571
|
-
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16028
|
+
/**Navn på applikasjonen. */
|
|
16029
|
+
applicationName?: string;
|
|
16030
|
+
/**Beskrivelse på applikasjonen ellen tittel på en underside. Tilgjengelig fram til Lovisa Next kommer. */
|
|
16031
|
+
applicationDesc?: string;
|
|
16032
|
+
/**URL til hovedsiden. */
|
|
16033
|
+
applicationHref?: string;
|
|
16034
|
+
/**Brekkpunkt for små skjermer; den justerer på spacing og legger navigasjonen i kontekstmenyen. */
|
|
16035
|
+
smallScreenBreakpoint?: Breakpoint;
|
|
16036
|
+
/**Info om brukeren. Dukker opp som punkt på toppen av kontekstmenyen med tekst oppgitt i name. Blir en lenke hvis href er oppgitt. */
|
|
16037
|
+
user?: InternaHeaderUserProps;
|
|
16038
|
+
/**Lenker som skal vises i navigasjonsmenyen. */
|
|
16039
|
+
navItems?: Array<NavigationLinkProps>;
|
|
16040
|
+
/**Lenker eller knapper som skal vises i kontekstmenyen. Støtter ikon i tillegg til tekst. */
|
|
16041
|
+
contextMenuItems?: Array<ContextMenuElementProps>;
|
|
16042
|
+
/**URL til siden i navigasjonen brukeren er på. Gir highlight til navigasjonselementet i navItems med samme URL. */
|
|
16043
|
+
currentPageHref?: string;
|
|
16044
|
+
/**Ekstra logikk som kjøres når currentPage endres. */
|
|
16577
16045
|
onCurrentPageChange?: () => void;
|
|
16578
16046
|
}>;
|
|
16579
16047
|
//#endregion
|
|
@@ -16597,26 +16065,14 @@ type ListProps = BaseComponentPropsWithChildren<HTMLUListElement | HTMLOListElem
|
|
|
16597
16065
|
typographyType?: ListTypographyType;
|
|
16598
16066
|
}>;
|
|
16599
16067
|
declare const List: {
|
|
16600
|
-
({
|
|
16601
|
-
listType,
|
|
16602
|
-
typographyType,
|
|
16603
|
-
children,
|
|
16604
|
-
id,
|
|
16605
|
-
className,
|
|
16606
|
-
style,
|
|
16607
|
-
htmlProps,
|
|
16608
|
-
...rest
|
|
16609
|
-
}: ListProps): import("react").JSX.Element;
|
|
16068
|
+
({ listType, typographyType, children, id, className, style, htmlProps, ...rest }: ListProps): import("react").JSX.Element;
|
|
16610
16069
|
displayName: string;
|
|
16611
16070
|
};
|
|
16612
16071
|
//#endregion
|
|
16613
16072
|
//#region src/components/List/ListItem.d.ts
|
|
16614
16073
|
type ListItemProps = ComponentPropsWithRef<'li'>;
|
|
16615
16074
|
declare const ListItem: {
|
|
16616
|
-
({
|
|
16617
|
-
className,
|
|
16618
|
-
...rest
|
|
16619
|
-
}: ListItemProps): import("react").JSX.Element;
|
|
16075
|
+
({ className, ...rest }: ListItemProps): import("react").JSX.Element;
|
|
16620
16076
|
displayName: string;
|
|
16621
16077
|
};
|
|
16622
16078
|
//#endregion
|
|
@@ -16625,12 +16081,15 @@ declare const L_MESSAGE_PURPOSES: ["info", "success", "warning", "danger", "tips
|
|
|
16625
16081
|
type LocalMessagePurpose = (typeof L_MESSAGE_PURPOSES)[number];
|
|
16626
16082
|
type LocalMessageLayout = 'horisontal' | 'vertical';
|
|
16627
16083
|
type LocalMessageProps = BaseComponentProps<HTMLDivElement, {
|
|
16628
|
-
/**Innhold i meldingen. */
|
|
16084
|
+
/**Innhold i meldingen. */
|
|
16085
|
+
children?: ReactNode;
|
|
16629
16086
|
/**Formålet med meldingen. Påvirker styling.
|
|
16630
16087
|
* @default "info"
|
|
16631
16088
|
*/
|
|
16632
|
-
purpose?: LocalMessagePurpose;
|
|
16633
|
-
|
|
16089
|
+
purpose?: LocalMessagePurpose;
|
|
16090
|
+
/** Indikerer om meldingen skal være lukkbar.*/
|
|
16091
|
+
closable?: boolean;
|
|
16092
|
+
/**Ekstra logikk å kjøre når meldingen lukkes. */
|
|
16634
16093
|
onClose?: () => void;
|
|
16635
16094
|
/**Layoutet i komponenten. Ved kompleks innhold anbefales `layout='vertical'`.
|
|
16636
16095
|
* @default "horisontal"
|
|
@@ -16638,71 +16097,43 @@ type LocalMessageProps = BaseComponentProps<HTMLDivElement, {
|
|
|
16638
16097
|
layout?: LocalMessageLayout;
|
|
16639
16098
|
} & Pick<ResponsiveProps, 'width'>>;
|
|
16640
16099
|
declare const LocalMessage: {
|
|
16641
|
-
({
|
|
16642
|
-
purpose,
|
|
16643
|
-
closable,
|
|
16644
|
-
onClose,
|
|
16645
|
-
width,
|
|
16646
|
-
layout,
|
|
16647
|
-
children,
|
|
16648
|
-
id,
|
|
16649
|
-
className,
|
|
16650
|
-
style,
|
|
16651
|
-
htmlProps,
|
|
16652
|
-
...rest
|
|
16653
|
-
}: LocalMessageProps): import("react").JSX.Element | null;
|
|
16100
|
+
({ purpose, closable, onClose, width, layout, children, id, className, style, htmlProps, ...rest }: LocalMessageProps): import("react").JSX.Element | null;
|
|
16654
16101
|
displayName: string;
|
|
16655
16102
|
};
|
|
16656
16103
|
//#endregion
|
|
16657
16104
|
//#region src/components/Modal/Modal.d.ts
|
|
16658
16105
|
type ModalProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
16659
|
-
/**Spesifiserer om `<Modal>` skal åpnes. */
|
|
16106
|
+
/**Spesifiserer om `<Modal>` skal åpnes. */
|
|
16107
|
+
isOpen?: boolean;
|
|
16108
|
+
/**Funksjon kjørt ved lukking; gjør at `<Modal>` blir lukkbar via: Esc-tast, klikk utenfor, klikk på dedikert lukkeknapp. */
|
|
16660
16109
|
onClose?: () => void;
|
|
16661
16110
|
/**Fordeler DOM node for `<Modal>` via React portal. Brukes med f.eks `document.getElementById("id")` eller `ref` (skaper ikke ny DOM node).
|
|
16662
16111
|
* @default themeProviderRef
|
|
16663
16112
|
*/
|
|
16664
|
-
parentElement?: HTMLElement;
|
|
16665
|
-
|
|
16666
|
-
|
|
16667
|
-
|
|
16113
|
+
parentElement?: HTMLElement;
|
|
16114
|
+
/**Header i `<Modal>`. Returnerer default `<Heading>` ved `string`. Setter også `aria-labelledby`. */
|
|
16115
|
+
header?: string | ReactNode;
|
|
16116
|
+
/**Ref som brukes til returnering av fokus. */
|
|
16117
|
+
triggerRef?: RefObject<HTMLElement | null>;
|
|
16118
|
+
/**Ref som skal motta fokus når `<Modal>` åpnes. Hvis utelatt blir `<Modal>` fokusert. */
|
|
16119
|
+
initialFocusRef?: RefObject<HTMLElement | null>;
|
|
16120
|
+
/** Gjør at innholdet kan scrolles */
|
|
16668
16121
|
scrollable?: boolean;
|
|
16669
16122
|
}>;
|
|
16670
16123
|
declare const Modal: {
|
|
16671
|
-
({
|
|
16672
|
-
isOpen,
|
|
16673
|
-
parentElement,
|
|
16674
|
-
children,
|
|
16675
|
-
header,
|
|
16676
|
-
onClose,
|
|
16677
|
-
id,
|
|
16678
|
-
triggerRef,
|
|
16679
|
-
initialFocusRef,
|
|
16680
|
-
scrollable,
|
|
16681
|
-
className,
|
|
16682
|
-
style,
|
|
16683
|
-
htmlProps,
|
|
16684
|
-
ref,
|
|
16685
|
-
...rest
|
|
16686
|
-
}: ModalProps): import("react").ReactPortal | null;
|
|
16124
|
+
({ isOpen, parentElement, children, header, onClose, id, triggerRef, initialFocusRef, scrollable, className, style, htmlProps, ref, ...rest }: ModalProps): import("react").ReactPortal | null;
|
|
16687
16125
|
displayName: string;
|
|
16688
16126
|
};
|
|
16689
16127
|
//#endregion
|
|
16690
16128
|
//#region src/components/Modal/ModalBody.d.ts
|
|
16691
16129
|
type ModalBodyProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
16692
|
-
/**Gjør at innholdet kan scrolles. Det må eventuelt settes (max)bredde og (max)høyde styling på både denne subkomponenten og `<Modal />`. */
|
|
16130
|
+
/**Gjør at innholdet kan scrolles. Det må eventuelt settes (max)bredde og (max)høyde styling på både denne subkomponenten og `<Modal />`. */
|
|
16131
|
+
scrollable?: boolean;
|
|
16132
|
+
/**Høyde på container. Kan resultere i scrolling. */
|
|
16693
16133
|
height?: ResponsiveProps['height'];
|
|
16694
16134
|
}>;
|
|
16695
16135
|
declare const ModalBody: {
|
|
16696
|
-
({
|
|
16697
|
-
children,
|
|
16698
|
-
id,
|
|
16699
|
-
className,
|
|
16700
|
-
style,
|
|
16701
|
-
scrollable,
|
|
16702
|
-
htmlProps,
|
|
16703
|
-
height,
|
|
16704
|
-
...rest
|
|
16705
|
-
}: ModalBodyProps): import("react").JSX.Element;
|
|
16136
|
+
({ children, id, className, style, scrollable, htmlProps, height, ...rest }: ModalBodyProps): import("react").JSX.Element;
|
|
16706
16137
|
displayName: string;
|
|
16707
16138
|
};
|
|
16708
16139
|
//#endregion
|
|
@@ -16723,13 +16154,21 @@ interface NewsPopoverSlide {
|
|
|
16723
16154
|
text: string;
|
|
16724
16155
|
}
|
|
16725
16156
|
type NewsPopoverProps = BaseComponentProps<HTMLElement, {
|
|
16726
|
-
/**Header-tekst. */
|
|
16727
|
-
|
|
16728
|
-
|
|
16729
|
-
|
|
16730
|
-
|
|
16731
|
-
|
|
16732
|
-
|
|
16157
|
+
/**Header-tekst. */
|
|
16158
|
+
header: string;
|
|
16159
|
+
/**Innhold i nyhetene. */
|
|
16160
|
+
news: Array<NewsPopoverSlide>;
|
|
16161
|
+
/**Aktiv nyhet ved første render i ukontrollert tilstand. */
|
|
16162
|
+
defaultActiveSlide?: number;
|
|
16163
|
+
/**Implementerer kontrollert tilstand: aktiv nyhet. */
|
|
16164
|
+
activeSlide?: number;
|
|
16165
|
+
/** Implementerer kontrollert tilstand: setter `aktivSlide`. */
|
|
16166
|
+
setActiveSlide?: Dispatch<SetStateAction<number>>;
|
|
16167
|
+
/**Om komponenten skal være åpen på første render i ukontrollert tilstand. */
|
|
16168
|
+
isInitiallyOpen?: boolean;
|
|
16169
|
+
/**Implementerer kontrollert tilstand: om komponenten skal være åpen. */
|
|
16170
|
+
isOpen?: boolean;
|
|
16171
|
+
/**Implementerer kontrollert tilstand: setter `isOpen`. */
|
|
16733
16172
|
setIsOpen?: Dispatch<SetStateAction<boolean>>;
|
|
16734
16173
|
/**
|
|
16735
16174
|
* Om komponenten skal lukkes på klikk utenfor.
|
|
@@ -16744,40 +16183,13 @@ type NewsPopoverProps = BaseComponentProps<HTMLElement, {
|
|
|
16744
16183
|
smallScreenBreakpoint?: Breakpoint;
|
|
16745
16184
|
}>;
|
|
16746
16185
|
declare const NewsPopover: {
|
|
16747
|
-
({
|
|
16748
|
-
id,
|
|
16749
|
-
className,
|
|
16750
|
-
style,
|
|
16751
|
-
htmlProps,
|
|
16752
|
-
header,
|
|
16753
|
-
news,
|
|
16754
|
-
defaultActiveSlide,
|
|
16755
|
-
activeSlide: activeSlideProp,
|
|
16756
|
-
setActiveSlide: setActiveSlideProp,
|
|
16757
|
-
isOpen: isOpenProp,
|
|
16758
|
-
isInitiallyOpen,
|
|
16759
|
-
setIsOpen: setIsOpenProp,
|
|
16760
|
-
smallScreenBreakpoint,
|
|
16761
|
-
closeOnClickOutside,
|
|
16762
|
-
ref,
|
|
16763
|
-
...rest
|
|
16764
|
-
}: NewsPopoverProps): import("react").JSX.Element | null;
|
|
16186
|
+
({ id, className, style, htmlProps, header, news, defaultActiveSlide, activeSlide: activeSlideProp, setActiveSlide: setActiveSlideProp, isOpen: isOpenProp, isInitiallyOpen, setIsOpen: setIsOpenProp, smallScreenBreakpoint, closeOnClickOutside, ref, ...rest }: NewsPopoverProps): import("react").JSX.Element | null;
|
|
16765
16187
|
displayName: string;
|
|
16766
16188
|
};
|
|
16767
16189
|
//#endregion
|
|
16768
16190
|
//#region src/components/OverflowMenu/OverflowMenu.d.ts
|
|
16769
16191
|
declare const OverflowMenu: {
|
|
16770
|
-
({
|
|
16771
|
-
placement,
|
|
16772
|
-
offset,
|
|
16773
|
-
parentElement,
|
|
16774
|
-
portal,
|
|
16775
|
-
className,
|
|
16776
|
-
htmlProps,
|
|
16777
|
-
ref,
|
|
16778
|
-
style,
|
|
16779
|
-
...rest
|
|
16780
|
-
}: OverflowMenuProps): import("react").JSX.Element;
|
|
16192
|
+
({ placement, offset, parentElement, portal, className, htmlProps, ref, style, ...rest }: OverflowMenuProps): import("react").JSX.Element;
|
|
16781
16193
|
displayName: string;
|
|
16782
16194
|
};
|
|
16783
16195
|
//#endregion
|
|
@@ -16810,47 +16222,26 @@ type OverflowMenuProps = Omit<BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
16810
16222
|
//#endregion
|
|
16811
16223
|
//#region src/components/OverflowMenu/components/OverflowMenuButton.d.ts
|
|
16812
16224
|
declare const OverflowMenuButton: {
|
|
16813
|
-
({
|
|
16814
|
-
onClick,
|
|
16815
|
-
onClickAsync,
|
|
16816
|
-
closeMenuOnClickAsync,
|
|
16817
|
-
purpose,
|
|
16818
|
-
loading,
|
|
16819
|
-
ref,
|
|
16820
|
-
...rest
|
|
16821
|
-
}: OverflowMenuButtonProps): import("react").JSX.Element;
|
|
16225
|
+
({ onClick, onClickAsync, closeMenuOnClickAsync, purpose, loading, ref, ...rest }: OverflowMenuButtonProps): import("react").JSX.Element;
|
|
16822
16226
|
displayName: string;
|
|
16823
16227
|
};
|
|
16824
16228
|
//#endregion
|
|
16825
16229
|
//#region src/components/OverflowMenu/components/OverflowMenuLink.d.ts
|
|
16826
16230
|
declare const OverflowMenuLink: {
|
|
16827
|
-
({
|
|
16828
|
-
onClick,
|
|
16829
|
-
ref,
|
|
16830
|
-
...rest
|
|
16831
|
-
}: OverflowMenuLinkProps): import("react").JSX.Element;
|
|
16231
|
+
({ onClick, ref, ...rest }: OverflowMenuLinkProps): import("react").JSX.Element;
|
|
16832
16232
|
displayName: string;
|
|
16833
16233
|
};
|
|
16834
16234
|
//#endregion
|
|
16835
16235
|
//#region src/components/OverflowMenu/components/OverflowMenuToggle.d.ts
|
|
16836
16236
|
declare const OverflowMenuToggle: {
|
|
16837
|
-
({
|
|
16838
|
-
ref,
|
|
16839
|
-
...rest
|
|
16840
|
-
}: OverflowMenuToggleProps): import("react").JSX.Element;
|
|
16237
|
+
({ ref, ...rest }: OverflowMenuToggleProps): import("react").JSX.Element;
|
|
16841
16238
|
displayName: string;
|
|
16842
16239
|
};
|
|
16843
16240
|
//#endregion
|
|
16844
16241
|
//#region src/components/OverflowMenu/components/OverflowMenuDivider.d.ts
|
|
16845
16242
|
type OverflowMenuDividerProps = Omit<DividerProps, 'color'>;
|
|
16846
16243
|
declare const OverflowMenuDivider: {
|
|
16847
|
-
({
|
|
16848
|
-
id,
|
|
16849
|
-
className,
|
|
16850
|
-
style,
|
|
16851
|
-
htmlProps,
|
|
16852
|
-
...rest
|
|
16853
|
-
}: OverflowMenuDividerProps): import("react").JSX.Element;
|
|
16244
|
+
({ id, className, style, htmlProps, ...rest }: OverflowMenuDividerProps): import("react").JSX.Element;
|
|
16854
16245
|
displayName: string;
|
|
16855
16246
|
};
|
|
16856
16247
|
//#endregion
|
|
@@ -16891,15 +16282,7 @@ interface OverflowMenuGroupProps {
|
|
|
16891
16282
|
overflowMenuId?: string;
|
|
16892
16283
|
}
|
|
16893
16284
|
declare const OverflowMenuGroup: {
|
|
16894
|
-
({
|
|
16895
|
-
children,
|
|
16896
|
-
onClose,
|
|
16897
|
-
onOpen,
|
|
16898
|
-
setIsOpen: propSetIsOpen,
|
|
16899
|
-
isOpen: propIsOpen,
|
|
16900
|
-
isInitiallyOpen,
|
|
16901
|
-
overflowMenuId
|
|
16902
|
-
}: OverflowMenuGroupProps): import("react").JSX.Element;
|
|
16285
|
+
({ children, onClose, onOpen, setIsOpen: propSetIsOpen, isOpen: propIsOpen, isInitiallyOpen, overflowMenuId }: OverflowMenuGroupProps): import("react").JSX.Element;
|
|
16903
16286
|
displayName: string;
|
|
16904
16287
|
};
|
|
16905
16288
|
//#endregion
|
|
@@ -16909,7 +16292,8 @@ interface PaginationOption {
|
|
|
16909
16292
|
value: number;
|
|
16910
16293
|
}
|
|
16911
16294
|
type PaginationProps = BaseComponentProps<HTMLElement, {
|
|
16912
|
-
/**Totalt antall elementer som skal pagineres. */
|
|
16295
|
+
/**Totalt antall elementer som skal pagineres. */
|
|
16296
|
+
itemsAmount: number;
|
|
16913
16297
|
/**Antall elementer per side ved innlastning.
|
|
16914
16298
|
* @default 10
|
|
16915
16299
|
*/
|
|
@@ -16917,50 +16301,37 @@ type PaginationProps = BaseComponentProps<HTMLElement, {
|
|
|
16917
16301
|
/**Den aktive siden ved innlastning.
|
|
16918
16302
|
* @default 1
|
|
16919
16303
|
*/
|
|
16920
|
-
defaultActivePage?: number;
|
|
16304
|
+
defaultActivePage?: number;
|
|
16305
|
+
/**Den aktive siden. Brukes til kontrollert tilstand - når denne er satt styrer du siden utenfra. */
|
|
16921
16306
|
activePage?: number;
|
|
16922
16307
|
/**Spesifiserer om selve pagineringen skal vises.
|
|
16923
16308
|
* @default true
|
|
16924
16309
|
*/
|
|
16925
|
-
withPagination?: boolean;
|
|
16926
|
-
|
|
16310
|
+
withPagination?: boolean;
|
|
16311
|
+
/**Om teksten `'Vis x-y av z'` skal vises. */
|
|
16312
|
+
withCounter?: boolean;
|
|
16313
|
+
/**Om `<Select>` for å velge antall per side skal vises. */
|
|
16927
16314
|
withSelect?: boolean;
|
|
16928
16315
|
/**Custom options for `<Select>`. **OBS!** husk å inkludere "Alle"-alternativet hvis relevant - brukere forventer ofte den muligheten.
|
|
16929
|
-
|
|
16930
|
-
|
|
16931
|
-
|
|
16932
|
-
|
|
16933
|
-
|
|
16934
|
-
|
|
16935
|
-
|
|
16936
|
-
selectOptions?: Array<PaginationOption>;
|
|
16316
|
+
* @default [
|
|
16317
|
+
{ label: '10', value: 10 },
|
|
16318
|
+
{ label: '25', value: 25 },
|
|
16319
|
+
{ label: '50', value: 50 },
|
|
16320
|
+
{ label: 'Alle', value: itemsAmount },
|
|
16321
|
+
]
|
|
16322
|
+
*/
|
|
16323
|
+
selectOptions?: Array<PaginationOption>;
|
|
16324
|
+
/**Kalles ved sideendring - henter ny aktiv side og kjører ekstra logikk. */
|
|
16937
16325
|
onChange?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, page: number) => void;
|
|
16938
16326
|
/**Kalles når `selectedOption` endres, hvis `withSelect="true"`.
|
|
16939
16327
|
* Brukes til å hente valgt alternativ og evt. kjøre ekstra logikk.
|
|
16940
16328
|
*/
|
|
16941
|
-
onSelectOptionChange?: (option: PaginationOption | null) => void;
|
|
16329
|
+
onSelectOptionChange?: (option: PaginationOption | null) => void;
|
|
16330
|
+
/**Brekkpunkt for små skjermer; den viser færre sideknapper og stacker delkomponentene. */
|
|
16942
16331
|
smallScreenBreakpoint?: Breakpoint;
|
|
16943
16332
|
}, Omit<HTMLAttributes<HTMLElement>, 'onChange'>>;
|
|
16944
16333
|
declare const Pagination: {
|
|
16945
|
-
({
|
|
16946
|
-
itemsAmount,
|
|
16947
|
-
defaultItemsPerPage,
|
|
16948
|
-
defaultActivePage,
|
|
16949
|
-
activePage: activePageProp,
|
|
16950
|
-
withPagination,
|
|
16951
|
-
withCounter,
|
|
16952
|
-
withSelect,
|
|
16953
|
-
selectOptions,
|
|
16954
|
-
smallScreenBreakpoint,
|
|
16955
|
-
onChange,
|
|
16956
|
-
onSelectOptionChange,
|
|
16957
|
-
id,
|
|
16958
|
-
className,
|
|
16959
|
-
style,
|
|
16960
|
-
htmlProps,
|
|
16961
|
-
ref,
|
|
16962
|
-
...rest
|
|
16963
|
-
}: PaginationProps): import("react").JSX.Element | null;
|
|
16334
|
+
({ itemsAmount, defaultItemsPerPage, defaultActivePage, activePage: activePageProp, withPagination, withCounter, withSelect, selectOptions, smallScreenBreakpoint, onChange, onSelectOptionChange, id, className, style, htmlProps, ref, ...rest }: PaginationProps): import("react").JSX.Element | null;
|
|
16964
16335
|
displayName: string;
|
|
16965
16336
|
};
|
|
16966
16337
|
//#endregion
|
|
@@ -16980,12 +16351,14 @@ type PhoneInputProps = {
|
|
|
16980
16351
|
/**
|
|
16981
16352
|
* Verdi bestående av landskode og telefonnummer.
|
|
16982
16353
|
* */
|
|
16983
|
-
value?: PhoneInputValue;
|
|
16354
|
+
value?: PhoneInputValue;
|
|
16355
|
+
/** Default verdi bestående av landkode og telefonnummer. */
|
|
16984
16356
|
defaultValue?: PhoneInputValue;
|
|
16985
16357
|
/**
|
|
16986
16358
|
* `onChange` funksjon.
|
|
16987
16359
|
*/
|
|
16988
|
-
onChange?: (value: PhoneInputValue) => void;
|
|
16360
|
+
onChange?: (value: PhoneInputValue) => void;
|
|
16361
|
+
/** `name` attributt; setter `${name}-country-code` som `name` for landskode og `${name}-phone-number` for telefonnummer. */
|
|
16989
16362
|
name?: string;
|
|
16990
16363
|
/**
|
|
16991
16364
|
* Brekkpunkt for små skjermer; den stacker subkomponentene vertikalt.
|
|
@@ -17007,36 +16380,15 @@ type PhoneInputProps = {
|
|
|
17007
16380
|
groupLabel?: string;
|
|
17008
16381
|
} & Pick<InputProps, 'readOnly' | 'disabled' | 'width' | 'componentSize' | 'errorMessage' | 'label' | 'afterLabelContent' | 'tip' | 'required' | 'className' | 'style' | 'aria-required' | 'aria-describedby' | 'ref'>;
|
|
17009
16382
|
declare const PhoneInput: {
|
|
17010
|
-
({
|
|
17011
|
-
label,
|
|
17012
|
-
readOnly,
|
|
17013
|
-
errorMessage,
|
|
17014
|
-
tip,
|
|
17015
|
-
required,
|
|
17016
|
-
width,
|
|
17017
|
-
componentSize,
|
|
17018
|
-
name,
|
|
17019
|
-
className,
|
|
17020
|
-
style,
|
|
17021
|
-
value,
|
|
17022
|
-
selectLabel,
|
|
17023
|
-
selectRef,
|
|
17024
|
-
onChange,
|
|
17025
|
-
defaultValue,
|
|
17026
|
-
"aria-required": ariaRequired,
|
|
17027
|
-
"aria-describedby": ariaDescribedby,
|
|
17028
|
-
groupLabel,
|
|
17029
|
-
afterLabelContent,
|
|
17030
|
-
ref,
|
|
17031
|
-
...props
|
|
17032
|
-
}: PhoneInputProps): import("react").JSX.Element;
|
|
16383
|
+
({ label, readOnly, errorMessage, tip, required, width, componentSize, name, className, style, value, selectLabel, selectRef, onChange, defaultValue, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, groupLabel, afterLabelContent, ref, ...props }: PhoneInputProps): import("react").JSX.Element;
|
|
17033
16384
|
displayName: string;
|
|
17034
16385
|
};
|
|
17035
16386
|
//#endregion
|
|
17036
16387
|
//#region src/components/Popover/Popover.d.ts
|
|
17037
16388
|
type PopoverSizeProps = Pick<ResponsiveProps, 'width' | 'height' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight'>;
|
|
17038
16389
|
type PopoverProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
17039
|
-
/**Header. Bruker default semantisk heading hvis verdien er en `string`. */
|
|
16390
|
+
/**Header. Bruker default semantisk heading hvis verdien er en `string`. */
|
|
16391
|
+
header?: string | ReactNode;
|
|
17040
16392
|
/**Om lukkeknapp skal vises.
|
|
17041
16393
|
* @default true
|
|
17042
16394
|
*/
|
|
@@ -17056,39 +16408,24 @@ type PopoverProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
17056
16408
|
/**Avstand fra anchor-elementet i px.
|
|
17057
16409
|
* @default 8
|
|
17058
16410
|
*/
|
|
17059
|
-
offset?: number;
|
|
17060
|
-
|
|
16411
|
+
offset?: number;
|
|
16412
|
+
/** Ekstra logikk kjørt når popover mister fokus. */
|
|
16413
|
+
onBlur?: () => void;
|
|
16414
|
+
/**Custom størrelse. */
|
|
17061
16415
|
sizeProps?: PopoverSizeProps;
|
|
17062
16416
|
/** Om focus skal returneres ved `blur`
|
|
17063
16417
|
* @default true
|
|
17064
16418
|
*/
|
|
17065
|
-
returnFocusOnBlur?: boolean;
|
|
17066
|
-
|
|
17067
|
-
|
|
16419
|
+
returnFocusOnBlur?: boolean;
|
|
16420
|
+
/**Anchor ref ved custom kontrollert bruk uten `<PopoverGroup>` Kun for corner cases. */
|
|
16421
|
+
anchorRef?: RefObject<HTMLElement | null>;
|
|
16422
|
+
/**Spesifiserer om popover er åpen ved custom kontrollert bruk uten `<PopoverGroup>` Kun for corner cases. */
|
|
16423
|
+
isOpen?: boolean;
|
|
16424
|
+
/**Callback for lukking ved custom kontrollert bruk uten `<PopoverGroup>` Kun for corner cases. */
|
|
17068
16425
|
onClose?: () => void;
|
|
17069
16426
|
}>;
|
|
17070
16427
|
declare const Popover: {
|
|
17071
|
-
({
|
|
17072
|
-
id,
|
|
17073
|
-
header,
|
|
17074
|
-
withCloseButton,
|
|
17075
|
-
onBlur,
|
|
17076
|
-
children,
|
|
17077
|
-
placement,
|
|
17078
|
-
parentElement,
|
|
17079
|
-
portal,
|
|
17080
|
-
offset,
|
|
17081
|
-
sizeProps,
|
|
17082
|
-
returnFocusOnBlur,
|
|
17083
|
-
className,
|
|
17084
|
-
htmlProps,
|
|
17085
|
-
anchorRef,
|
|
17086
|
-
isOpen: propIsOpen,
|
|
17087
|
-
onClose: propOnClose,
|
|
17088
|
-
style,
|
|
17089
|
-
ref,
|
|
17090
|
-
...rest
|
|
17091
|
-
}: PopoverProps): import("react").JSX.Element | null;
|
|
16428
|
+
({ id, header, withCloseButton, onBlur, children, placement, parentElement, portal, offset, sizeProps, returnFocusOnBlur, className, htmlProps, anchorRef, isOpen: propIsOpen, onClose: propOnClose, style, ref, ...rest }: PopoverProps): import("react").JSX.Element | null;
|
|
17092
16429
|
displayName: string;
|
|
17093
16430
|
};
|
|
17094
16431
|
//#endregion
|
|
@@ -17110,15 +16447,7 @@ interface PopoverGroupProps {
|
|
|
17110
16447
|
popoverId?: string;
|
|
17111
16448
|
}
|
|
17112
16449
|
declare const PopoverGroup: {
|
|
17113
|
-
({
|
|
17114
|
-
isOpen: propIsOpen,
|
|
17115
|
-
setIsOpen: propSetIsOpen,
|
|
17116
|
-
onClose,
|
|
17117
|
-
onOpen,
|
|
17118
|
-
isInitiallyOpen,
|
|
17119
|
-
children,
|
|
17120
|
-
popoverId
|
|
17121
|
-
}: PopoverGroupProps): import("react").JSX.Element;
|
|
16450
|
+
({ isOpen: propIsOpen, setIsOpen: propSetIsOpen, onClose, onOpen, isInitiallyOpen, children, popoverId }: PopoverGroupProps): import("react").JSX.Element;
|
|
17122
16451
|
displayName: string;
|
|
17123
16452
|
};
|
|
17124
16453
|
//#endregion
|
|
@@ -17140,7 +16469,8 @@ interface BaseItemProps {
|
|
|
17140
16469
|
index?: number;
|
|
17141
16470
|
}
|
|
17142
16471
|
type ProgressTrackerItemProps = BaseComponentPropsWithChildren<HTMLButtonElement, BaseItemProps & {
|
|
17143
|
-
/** Click-handler som gjør det mulig for bruker å klikke på steget for å navigere. Valgfri. */
|
|
16472
|
+
/** Click-handler som gjør det mulig for bruker å klikke på steget for å navigere. Valgfri. */
|
|
16473
|
+
onClick?: (index: number) => void;
|
|
17144
16474
|
}> | BaseComponentPropsWithChildren<HTMLDivElement, BaseItemProps & {
|
|
17145
16475
|
onClick?: undefined;
|
|
17146
16476
|
}>;
|
|
@@ -17154,8 +16484,10 @@ type ProgressTrackerProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
17154
16484
|
/** Indeksen til det aktive steget.
|
|
17155
16485
|
* @default 0
|
|
17156
16486
|
*/
|
|
17157
|
-
activeStep?: number;
|
|
17158
|
-
|
|
16487
|
+
activeStep?: number;
|
|
16488
|
+
/** Ekstra logikk ved klikking på et steg. */
|
|
16489
|
+
onStepChange?: (step: number) => void;
|
|
16490
|
+
/**Retning stegene gjengis i. OBS! Ikke tilpasset mindre skjermer. */
|
|
17159
16491
|
direction?: Direction;
|
|
17160
16492
|
}>;
|
|
17161
16493
|
type ProgressTrackerComponent = ForwardRefExoticComponent<ProgressTrackerProps> & {
|
|
@@ -17185,20 +16517,7 @@ type ProgressBarProps = Pick<CommonInputProps, 'tip' | 'errorMessage' | 'label'
|
|
|
17185
16517
|
max?: number;
|
|
17186
16518
|
} & Omit<ComponentPropsWithRef<'progress'>, 'max' | 'value'>;
|
|
17187
16519
|
declare const ProgressBar: {
|
|
17188
|
-
({
|
|
17189
|
-
label,
|
|
17190
|
-
tip,
|
|
17191
|
-
errorMessage,
|
|
17192
|
-
size,
|
|
17193
|
-
"aria-describedby": ariaDescribedby,
|
|
17194
|
-
value,
|
|
17195
|
-
width,
|
|
17196
|
-
max,
|
|
17197
|
-
id,
|
|
17198
|
-
className,
|
|
17199
|
-
style,
|
|
17200
|
-
...rest
|
|
17201
|
-
}: ProgressBarProps): import("react").JSX.Element;
|
|
16520
|
+
({ label, tip, errorMessage, size, "aria-describedby": ariaDescribedby, value, width, max, id, className, style, ...rest }: ProgressBarProps): import("react").JSX.Element;
|
|
17202
16521
|
displayName: string;
|
|
17203
16522
|
};
|
|
17204
16523
|
//#endregion
|
|
@@ -17214,28 +16533,15 @@ type SearchButtonProps = {
|
|
|
17214
16533
|
//#endregion
|
|
17215
16534
|
//#region src/components/Search/Search.d.ts
|
|
17216
16535
|
type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
|
|
17217
|
-
/**Størrelsen på komponenten. */
|
|
17218
|
-
|
|
16536
|
+
/**Størrelsen på komponenten. */
|
|
16537
|
+
componentSize?: SearchSize;
|
|
16538
|
+
/**Props for søkeknappen. */
|
|
16539
|
+
buttonProps?: SearchButtonProps;
|
|
16540
|
+
/**Om søkeikonet skal vises. */
|
|
17219
16541
|
showIcon?: boolean;
|
|
17220
16542
|
} & Pick<InputProps, 'width'> & Omit<ComponentPropsWithRef<'input'>, 'width' | 'height'>;
|
|
17221
16543
|
declare const Search$1: {
|
|
17222
|
-
({
|
|
17223
|
-
componentSize,
|
|
17224
|
-
buttonProps,
|
|
17225
|
-
showIcon,
|
|
17226
|
-
name,
|
|
17227
|
-
label,
|
|
17228
|
-
tip,
|
|
17229
|
-
id,
|
|
17230
|
-
value,
|
|
17231
|
-
width,
|
|
17232
|
-
onChange,
|
|
17233
|
-
className,
|
|
17234
|
-
style,
|
|
17235
|
-
"aria-describedby": ariaDescribedby,
|
|
17236
|
-
ref,
|
|
17237
|
-
...rest
|
|
17238
|
-
}: SearchProps): import("react").JSX.Element;
|
|
16544
|
+
({ componentSize, buttonProps, showIcon, name, label, tip, id, value, width, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): import("react").JSX.Element;
|
|
17239
16545
|
displayName: string;
|
|
17240
16546
|
};
|
|
17241
16547
|
//#endregion
|
|
@@ -17277,25 +16583,19 @@ declare const SearchAutocompleteWrapper: {
|
|
|
17277
16583
|
//#endregion
|
|
17278
16584
|
//#region src/components/Search/SearchSuggestions.d.ts
|
|
17279
16585
|
type SearchSuggestionsProps = BaseComponentProps<HTMLDivElement, {
|
|
17280
|
-
/**Forslag som vises i listen. */
|
|
17281
|
-
|
|
17282
|
-
|
|
17283
|
-
|
|
16586
|
+
/**Forslag som vises i listen. */
|
|
16587
|
+
suggestions?: Array<string>;
|
|
16588
|
+
/** Om listen skal vises. */
|
|
16589
|
+
showSuggestions?: boolean;
|
|
16590
|
+
/**Callback når et forslag blir valgt, inkludert søkefunksjon. */
|
|
16591
|
+
onSuggestionClick?: (e: MouseEvent$1<HTMLButtonElement>) => void;
|
|
16592
|
+
/** Maks antall forslag vist i listen. */
|
|
16593
|
+
maxSuggestions?: number;
|
|
16594
|
+
/**Id til `<Search>`. */
|
|
17284
16595
|
searchId: string;
|
|
17285
16596
|
}>;
|
|
17286
16597
|
declare const SearchSuggestions: {
|
|
17287
|
-
({
|
|
17288
|
-
id,
|
|
17289
|
-
searchId,
|
|
17290
|
-
className,
|
|
17291
|
-
style,
|
|
17292
|
-
htmlProps,
|
|
17293
|
-
suggestions,
|
|
17294
|
-
showSuggestions,
|
|
17295
|
-
onSuggestionClick,
|
|
17296
|
-
maxSuggestions,
|
|
17297
|
-
...rest
|
|
17298
|
-
}: SearchSuggestionsProps): import("react").JSX.Element;
|
|
16598
|
+
({ id, searchId, className, style, htmlProps, suggestions, showSuggestions, onSuggestionClick, maxSuggestions, ...rest }: SearchSuggestionsProps): import("react").JSX.Element;
|
|
17299
16599
|
displayName: string;
|
|
17300
16600
|
};
|
|
17301
16601
|
//#endregion
|
|
@@ -17316,138 +16616,61 @@ type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
|
17316
16616
|
/**Størrelsen på komponenten.
|
|
17317
16617
|
* @default "medium"
|
|
17318
16618
|
*/
|
|
17319
|
-
componentSize?: InputSize;
|
|
17320
|
-
|
|
17321
|
-
|
|
17322
|
-
|
|
17323
|
-
|
|
17324
|
-
|
|
17325
|
-
|
|
16619
|
+
componentSize?: InputSize;
|
|
16620
|
+
/**Nedtrekkslisten blir `readonly` og får readOnly styling. */
|
|
16621
|
+
readOnly?: boolean;
|
|
16622
|
+
/** CSS klassenavn. */
|
|
16623
|
+
className?: string;
|
|
16624
|
+
/** Inline styling. */
|
|
16625
|
+
style?: React.CSSProperties;
|
|
16626
|
+
/** Custom element som vises for det valgte elementet. */
|
|
16627
|
+
customOptionElement?: (props: OptionProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
|
|
16628
|
+
/** Custom element som vises i listen over alternativer. */
|
|
16629
|
+
customSingleValueElement?: (props: SingleValueProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
|
|
16630
|
+
/** Testid. Legges på control-div med suffiks "control". */
|
|
16631
|
+
'data-testid'?: string;
|
|
16632
|
+
/**Ref til komponenten. */
|
|
17326
16633
|
ref?: SelectForwardRefType<Option, IsMulti>;
|
|
17327
16634
|
} & CommonInputProps & InputIconProps & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
|
|
17328
16635
|
type SelectForwardRefType<Option, IsMulti extends boolean> = Ref<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
|
|
17329
|
-
declare function Select<Option = unknown, IsMulti extends boolean = false>({
|
|
17330
|
-
id,
|
|
17331
|
-
label,
|
|
17332
|
-
componentSize,
|
|
17333
|
-
errorMessage,
|
|
17334
|
-
tip,
|
|
17335
|
-
'aria-required': ariaRequired,
|
|
17336
|
-
readOnly,
|
|
17337
|
-
options,
|
|
17338
|
-
isMulti,
|
|
17339
|
-
value,
|
|
17340
|
-
icon,
|
|
17341
|
-
defaultValue,
|
|
17342
|
-
width,
|
|
17343
|
-
closeMenuOnSelect,
|
|
17344
|
-
className,
|
|
17345
|
-
style,
|
|
17346
|
-
isDisabled,
|
|
17347
|
-
isClearable,
|
|
17348
|
-
placeholder,
|
|
17349
|
-
menuPortalTarget,
|
|
17350
|
-
menuPlacement,
|
|
17351
|
-
customOptionElement,
|
|
17352
|
-
customSingleValueElement,
|
|
17353
|
-
'data-testid': dataTestId,
|
|
17354
|
-
onKeyDown,
|
|
17355
|
-
openMenuOnClick,
|
|
17356
|
-
ref,
|
|
17357
|
-
instanceId,
|
|
17358
|
-
afterLabelContent,
|
|
17359
|
-
hideSelectedOptions,
|
|
17360
|
-
...rest
|
|
17361
|
-
}: SelectProps<Option, IsMulti>): JSX.Element;
|
|
16636
|
+
declare function Select<Option = unknown, IsMulti extends boolean = false>({ id, label, componentSize, errorMessage, tip, 'aria-required': ariaRequired, readOnly, options, isMulti, value, icon, defaultValue, width, closeMenuOnSelect, className, style, isDisabled, isClearable, placeholder, menuPortalTarget, menuPlacement, customOptionElement, customSingleValueElement, 'data-testid': dataTestId, onKeyDown, openMenuOnClick, ref, instanceId, afterLabelContent, hideSelectedOptions, ...rest }: SelectProps<Option, IsMulti>): JSX.Element;
|
|
17362
16637
|
declare namespace Select {
|
|
17363
16638
|
var displayName: string;
|
|
17364
16639
|
}
|
|
17365
16640
|
//#endregion
|
|
17366
16641
|
//#region src/components/Select/NativeSelect/NativeSelect.d.ts
|
|
17367
16642
|
type NativeSelectProps = {
|
|
17368
|
-
/** Om brukeren kan fjerne verdien med en tømmeknapp. */
|
|
16643
|
+
/** Om brukeren kan fjerne verdien med en tømmeknapp. */
|
|
16644
|
+
clearable?: boolean;
|
|
16645
|
+
/** Implementerer `readOnly` oppførsel etter standard for `<input>` og setter `readOnly` styling. */
|
|
17369
16646
|
readOnly?: InputProps['readOnly'];
|
|
17370
16647
|
} & CommonInputProps & Pick<InputProps, 'componentSize'> & InputIconProps & ComponentPropsWithRef<'select'>;
|
|
17371
|
-
declare const NativeSelect: ({
|
|
17372
|
-
ref,
|
|
17373
|
-
id,
|
|
17374
|
-
children,
|
|
17375
|
-
componentSize,
|
|
17376
|
-
label,
|
|
17377
|
-
multiple,
|
|
17378
|
-
readOnly,
|
|
17379
|
-
errorMessage,
|
|
17380
|
-
tip,
|
|
17381
|
-
required,
|
|
17382
|
-
"aria-required": ariaRequired,
|
|
17383
|
-
"aria-describedby": ariaDescribedby,
|
|
17384
|
-
width,
|
|
17385
|
-
className,
|
|
17386
|
-
style,
|
|
17387
|
-
onKeyDown,
|
|
17388
|
-
onMouseDown,
|
|
17389
|
-
clearable,
|
|
17390
|
-
afterLabelContent,
|
|
17391
|
-
onChange,
|
|
17392
|
-
icon,
|
|
17393
|
-
...rest
|
|
17394
|
-
}: NativeSelectProps) => import("react").JSX.Element;
|
|
16648
|
+
declare const NativeSelect: ({ ref, id, children, componentSize, label, multiple, readOnly, errorMessage, tip, required, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, width, className, style, onKeyDown, onMouseDown, clearable, afterLabelContent, onChange, icon, ...rest }: NativeSelectProps) => import("react").JSX.Element;
|
|
17395
16649
|
//#endregion
|
|
17396
16650
|
//#region src/components/Select/utils.d.ts
|
|
17397
16651
|
declare const createSelectOptions: <TValue extends string | number>(...args: Array<TValue>) => Array<SelectOption<TValue>>;
|
|
17398
16652
|
//#endregion
|
|
17399
16653
|
//#region src/components/SelectionControl/RadioButton/RadioButton.d.ts
|
|
17400
16654
|
declare const RadioButton: {
|
|
17401
|
-
({
|
|
17402
|
-
id,
|
|
17403
|
-
name,
|
|
17404
|
-
label,
|
|
17405
|
-
disabled,
|
|
17406
|
-
readOnly,
|
|
17407
|
-
error,
|
|
17408
|
-
checked,
|
|
17409
|
-
value,
|
|
17410
|
-
children,
|
|
17411
|
-
required,
|
|
17412
|
-
onChange,
|
|
17413
|
-
"aria-describedby": ariaDescribedby,
|
|
17414
|
-
className,
|
|
17415
|
-
htmlProps,
|
|
17416
|
-
style,
|
|
17417
|
-
...rest
|
|
17418
|
-
}: RadioButtonProps): import("react").JSX.Element;
|
|
16655
|
+
({ id, name, label, disabled, readOnly, error, checked, value, children, required, onChange, "aria-describedby": ariaDescribedby, className, htmlProps, style, ...rest }: RadioButtonProps): import("react").JSX.Element;
|
|
17419
16656
|
displayName: string;
|
|
17420
16657
|
};
|
|
17421
16658
|
//#endregion
|
|
17422
16659
|
//#region src/components/SelectionControl/RadioButton/RadioButtonGroup.d.ts
|
|
17423
16660
|
type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
|
|
17424
|
-
/** Gir alle barna `name` prop.*/
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
|
|
16661
|
+
/** Gir alle barna `name` prop.*/
|
|
16662
|
+
name?: string;
|
|
16663
|
+
/**Funksjonen for onChange-event for barna. */
|
|
16664
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, value: T | undefined) => void;
|
|
16665
|
+
/** Gjør alle barna påkrevd ved å gi dem `required` prop. Legger en markør (*) bak ledeteksten. */
|
|
16666
|
+
required?: boolean;
|
|
16667
|
+
/**Verdi - en `<RadioButton>` med denne verdien blir valgt med controlled state. */
|
|
16668
|
+
value?: T | undefined;
|
|
16669
|
+
/**Default verdi - en `<RadioButton>` med denne verdien blir forhåndsvalgt med uncontrolled state. */
|
|
17428
16670
|
defaultValue?: T | undefined;
|
|
17429
16671
|
}, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
17430
16672
|
declare const RadioButtonGroup: {
|
|
17431
|
-
<T extends string | number = string>({
|
|
17432
|
-
name,
|
|
17433
|
-
label,
|
|
17434
|
-
groupId,
|
|
17435
|
-
errorMessage,
|
|
17436
|
-
tip,
|
|
17437
|
-
disabled,
|
|
17438
|
-
readOnly,
|
|
17439
|
-
direction,
|
|
17440
|
-
value,
|
|
17441
|
-
defaultValue,
|
|
17442
|
-
children,
|
|
17443
|
-
required,
|
|
17444
|
-
onChange,
|
|
17445
|
-
id,
|
|
17446
|
-
className,
|
|
17447
|
-
style,
|
|
17448
|
-
htmlProps,
|
|
17449
|
-
...rest
|
|
17450
|
-
}: RadioButtonGroupProps<T>): import("react").JSX.Element;
|
|
16673
|
+
<T extends string | number = string>({ name, label, groupId, errorMessage, tip, disabled, readOnly, direction, value, defaultValue, children, required, onChange, id, className, style, htmlProps, ...rest }: RadioButtonGroupProps<T>): import("react").JSX.Element;
|
|
17451
16674
|
displayName: string;
|
|
17452
16675
|
};
|
|
17453
16676
|
//#endregion
|
|
@@ -17460,15 +16683,7 @@ type SkeletonProps = {
|
|
|
17460
16683
|
borderRadius?: Property.BorderRadius;
|
|
17461
16684
|
} & Pick<ResponsiveProps, 'width' | 'height'> & ComponentPropsWithRef<'div'>;
|
|
17462
16685
|
declare const Skeleton: {
|
|
17463
|
-
({
|
|
17464
|
-
width,
|
|
17465
|
-
height,
|
|
17466
|
-
borderRadius,
|
|
17467
|
-
className,
|
|
17468
|
-
style,
|
|
17469
|
-
ref,
|
|
17470
|
-
...rest
|
|
17471
|
-
}: SkeletonProps): import("react").JSX.Element;
|
|
16686
|
+
({ width, height, borderRadius, className, style, ref, ...rest }: SkeletonProps): import("react").JSX.Element;
|
|
17472
16687
|
displayName: string;
|
|
17473
16688
|
};
|
|
17474
16689
|
//#endregion
|
|
@@ -17477,7 +16692,8 @@ type SkipToContentProps = BaseComponentProps<HTMLAnchorElement, {
|
|
|
17477
16692
|
/** Teksten som vises i lenka.
|
|
17478
16693
|
* @default "Til hovedinnhold"
|
|
17479
16694
|
*/
|
|
17480
|
-
text?: string;
|
|
16695
|
+
text?: string;
|
|
16696
|
+
/**Spesifiserer hvor det skal hoppes til via `id`-attributtet til innholdet. */
|
|
17481
16697
|
href: string;
|
|
17482
16698
|
/**Avstand fra top i nærmeste posisjonert container.
|
|
17483
16699
|
* @default 0
|
|
@@ -17485,15 +16701,7 @@ type SkipToContentProps = BaseComponentProps<HTMLAnchorElement, {
|
|
|
17485
16701
|
top?: Property.Top;
|
|
17486
16702
|
}>;
|
|
17487
16703
|
declare const SkipToContent: {
|
|
17488
|
-
({
|
|
17489
|
-
text,
|
|
17490
|
-
top,
|
|
17491
|
-
id,
|
|
17492
|
-
className,
|
|
17493
|
-
htmlProps,
|
|
17494
|
-
style,
|
|
17495
|
-
...rest
|
|
17496
|
-
}: SkipToContentProps): import("react").JSX.Element;
|
|
16704
|
+
({ text, top, id, className, htmlProps, style, ...rest }: SkipToContentProps): import("react").JSX.Element;
|
|
17497
16705
|
displayName: string;
|
|
17498
16706
|
};
|
|
17499
16707
|
//#endregion
|
|
@@ -17522,7 +16730,9 @@ type SplitButtonPurpose = ExtractStrict<ButtonPurpose, 'primary' | 'secondary'>;
|
|
|
17522
16730
|
type SplitButtonPrimaryActionProps = Omit<ButtonProps, 'size' | 'purpose'>;
|
|
17523
16731
|
type SplitButtonSecondaryActionsProps = Array<OverflowMenuButtonProps>;
|
|
17524
16732
|
type SplitButtonProps = Pick<ButtonProps, 'size'> & {
|
|
17525
|
-
/**Props for primær handling. Samme props som for `<Button>` unntatt `size` og `purpose`. */
|
|
16733
|
+
/**Props for primær handling. Samme props som for `<Button>` unntatt `size` og `purpose`. */
|
|
16734
|
+
primaryAction: SplitButtonPrimaryActionProps;
|
|
16735
|
+
/**Props for sekunære handlinger. */
|
|
17526
16736
|
secondaryActions: SplitButtonSecondaryActionsProps;
|
|
17527
16737
|
/**Formål med knappen.
|
|
17528
16738
|
* @default "primary"
|
|
@@ -17530,14 +16740,7 @@ type SplitButtonProps = Pick<ButtonProps, 'size'> & {
|
|
|
17530
16740
|
purpose?: SplitButtonPurpose;
|
|
17531
16741
|
} & ComponentPropsWithRef<'div'>;
|
|
17532
16742
|
declare const SplitButton: {
|
|
17533
|
-
({
|
|
17534
|
-
size,
|
|
17535
|
-
primaryAction,
|
|
17536
|
-
secondaryActions,
|
|
17537
|
-
purpose,
|
|
17538
|
-
className,
|
|
17539
|
-
...rest
|
|
17540
|
-
}: SplitButtonProps): import("react").JSX.Element;
|
|
16743
|
+
({ size, primaryAction, secondaryActions, purpose, className, ...rest }: SplitButtonProps): import("react").JSX.Element;
|
|
17541
16744
|
displayName: string;
|
|
17542
16745
|
};
|
|
17543
16746
|
//#endregion
|
|
@@ -17563,18 +16766,12 @@ type TableCellProps = {
|
|
|
17563
16766
|
/**Layout av innholdet i cellen; legger en flex `<div>` i cellen, unntatt 'none' som ikke legger inn noe. 'tekst and icon' legger `gap` mellom barna og andre barnet i cellen.
|
|
17564
16767
|
* @default "left"
|
|
17565
16768
|
*/
|
|
17566
|
-
layout?: TableCellLayout;
|
|
16769
|
+
layout?: TableCellLayout;
|
|
16770
|
+
/** Props ved bruk av `<CollapsibleRow>`. **OBS!** settes automatisk av forelder. */
|
|
17567
16771
|
collapsibleProps?: CollapsibleProps;
|
|
17568
16772
|
} & (ComponentPropsWithRef<'td'> | ComponentPropsWithRef<'th'>);
|
|
17569
16773
|
declare const Cell: {
|
|
17570
|
-
({
|
|
17571
|
-
children,
|
|
17572
|
-
type: _type,
|
|
17573
|
-
layout,
|
|
17574
|
-
collapsibleProps,
|
|
17575
|
-
className,
|
|
17576
|
-
...rest
|
|
17577
|
-
}: TableCellProps): import("react").JSX.Element;
|
|
16774
|
+
({ children, type: _type, layout, collapsibleProps, className, ...rest }: TableCellProps): import("react").JSX.Element;
|
|
17578
16775
|
displayName: string;
|
|
17579
16776
|
};
|
|
17580
16777
|
//#endregion
|
|
@@ -17587,10 +16784,7 @@ declare const Foot: {
|
|
|
17587
16784
|
//#endregion
|
|
17588
16785
|
//#region src/components/Table/normal/Head.d.ts
|
|
17589
16786
|
type TableHeadProps = ComponentPropsWithRef<'thead'>;
|
|
17590
|
-
declare const Head: ({
|
|
17591
|
-
children,
|
|
17592
|
-
...rest
|
|
17593
|
-
}: TableHeadProps) => import("react").JSX.Element;
|
|
16787
|
+
declare const Head: ({ children, ...rest }: TableHeadProps) => import("react").JSX.Element;
|
|
17594
16788
|
//#endregion
|
|
17595
16789
|
//#region src/components/Table/normal/Table.types.d.ts
|
|
17596
16790
|
type TableSize = Extract<Size$1, 'small' | 'medium' | 'large'>;
|
|
@@ -17599,8 +16793,10 @@ type TableProps = {
|
|
|
17599
16793
|
* Størrelse på tabellen. Påvirker tetthet i cellene og font.
|
|
17600
16794
|
* @default "medium"
|
|
17601
16795
|
*/
|
|
17602
|
-
size?: TableSize;
|
|
17603
|
-
|
|
16796
|
+
size?: TableSize;
|
|
16797
|
+
/**Spesifiserer om cellene i `<Head>` skal bli sticky ved scrolling. */
|
|
16798
|
+
stickyHeader?: boolean;
|
|
16799
|
+
/**Legger skillelinjer mellom radene. */
|
|
17604
16800
|
withDividers?: boolean;
|
|
17605
16801
|
/**Rader veksler bakgrunnsfarge.
|
|
17606
16802
|
* @default true
|
|
@@ -17623,63 +16819,44 @@ type TableRowProps = {
|
|
|
17623
16819
|
* Ved bruk av sum må `<Cell>` med tall i høyrestilles vha layout prop.
|
|
17624
16820
|
* @default "normal"
|
|
17625
16821
|
**/
|
|
17626
|
-
mode?: RowMode;
|
|
17627
|
-
|
|
16822
|
+
mode?: RowMode;
|
|
16823
|
+
/**Spesifiserer om raden har blitt valgt/markert. */
|
|
16824
|
+
selected?: boolean;
|
|
16825
|
+
/**Spesifiserer om raden skal ha hover styling. Brukes hovedsakelig på rader med klikkbar innhold. */
|
|
17628
16826
|
hoverable?: boolean;
|
|
17629
16827
|
} & ComponentPropsWithRef<'tr'>;
|
|
17630
16828
|
//#endregion
|
|
17631
16829
|
//#region src/components/Table/normal/Row.d.ts
|
|
17632
16830
|
declare const Row: {
|
|
17633
|
-
({
|
|
17634
|
-
type: _type,
|
|
17635
|
-
mode,
|
|
17636
|
-
hoverable,
|
|
17637
|
-
selected,
|
|
17638
|
-
className,
|
|
17639
|
-
...rest
|
|
17640
|
-
}: TableRowProps): import("react").JSX.Element;
|
|
16831
|
+
({ type: _type, mode, hoverable, selected, className, ...rest }: TableRowProps): import("react").JSX.Element;
|
|
17641
16832
|
displayName: string;
|
|
17642
16833
|
};
|
|
17643
16834
|
//#endregion
|
|
17644
16835
|
//#region src/components/Table/normal/SortCell.d.ts
|
|
17645
16836
|
type SortOrder = 'ascending' | 'descending';
|
|
17646
16837
|
type TableSortCellProps = {
|
|
17647
|
-
/**Spesifiserer om kolonnen er sortert. */
|
|
17648
|
-
|
|
16838
|
+
/**Spesifiserer om kolonnen er sortert. */
|
|
16839
|
+
isSorted?: boolean;
|
|
16840
|
+
/**Sorteringsrekkefølge i kolonnen. Avgjør hvilket ikon skal vises i cellen. */
|
|
16841
|
+
sortOrder?: SortOrder;
|
|
16842
|
+
/**onClick-funksjon for sortering og annen logikk. */
|
|
17649
16843
|
onClick: (event: MouseEvent$1<HTMLButtonElement>) => void;
|
|
17650
16844
|
} & Omit<TableCellProps, 'type'>;
|
|
17651
16845
|
declare const SortCell: {
|
|
17652
|
-
({
|
|
17653
|
-
isSorted,
|
|
17654
|
-
sortOrder,
|
|
17655
|
-
onClick,
|
|
17656
|
-
children,
|
|
17657
|
-
...rest
|
|
17658
|
-
}: TableSortCellProps): import("react").JSX.Element;
|
|
16846
|
+
({ isSorted, sortOrder, onClick, children, ...rest }: TableSortCellProps): import("react").JSX.Element;
|
|
17659
16847
|
displayName: string;
|
|
17660
16848
|
};
|
|
17661
16849
|
//#endregion
|
|
17662
16850
|
//#region src/components/Table/normal/Table.d.ts
|
|
17663
16851
|
declare const Table$1: {
|
|
17664
|
-
({
|
|
17665
|
-
size,
|
|
17666
|
-
stickyHeader,
|
|
17667
|
-
withDividers,
|
|
17668
|
-
withStripes,
|
|
17669
|
-
className,
|
|
17670
|
-
children,
|
|
17671
|
-
...rest
|
|
17672
|
-
}: TableProps): import("react").JSX.Element;
|
|
16852
|
+
({ size, stickyHeader, withDividers, withStripes, className, children, ...rest }: TableProps): import("react").JSX.Element;
|
|
17673
16853
|
displayName: string;
|
|
17674
16854
|
};
|
|
17675
16855
|
//#endregion
|
|
17676
16856
|
//#region src/components/Table/normal/TableWrapper.d.ts
|
|
17677
16857
|
type TableWrapperProps = HTMLAttributes<HTMLDivElement>;
|
|
17678
16858
|
declare const TableWrapper: {
|
|
17679
|
-
({
|
|
17680
|
-
className,
|
|
17681
|
-
...rest
|
|
17682
|
-
}: TableWrapperProps): import("react").JSX.Element;
|
|
16859
|
+
({ className, ...rest }: TableWrapperProps): import("react").JSX.Element;
|
|
17683
16860
|
displayName: string;
|
|
17684
16861
|
};
|
|
17685
16862
|
//#endregion
|
|
@@ -17697,22 +16874,15 @@ declare const Table: TableCompoundProps;
|
|
|
17697
16874
|
//#endregion
|
|
17698
16875
|
//#region src/components/Table/collapsible/CollapsibleRow.d.ts
|
|
17699
16876
|
declare const CollapsibleRow: {
|
|
17700
|
-
({
|
|
17701
|
-
type: _type,
|
|
17702
|
-
className,
|
|
17703
|
-
mode,
|
|
17704
|
-
selected,
|
|
17705
|
-
hoverable,
|
|
17706
|
-
children,
|
|
17707
|
-
ref,
|
|
17708
|
-
...rest
|
|
17709
|
-
}: TableRowProps): import("react").JSX.Element;
|
|
16877
|
+
({ type: _type, className, mode, selected, hoverable, children, ref, ...rest }: TableRowProps): import("react").JSX.Element;
|
|
17710
16878
|
displayName: string;
|
|
17711
16879
|
};
|
|
17712
16880
|
//#endregion
|
|
17713
16881
|
//#region src/components/Table/collapsible/CollapsibleTable.types.d.ts
|
|
17714
16882
|
type CollapsibleTableProps = {
|
|
17715
|
-
/**Om tabellen skal kollapse. */
|
|
16883
|
+
/**Om tabellen skal kollapse. */
|
|
16884
|
+
isCollapsed?: boolean;
|
|
16885
|
+
/**Innhold i headere (`content`) og deres `key`. `headerValues.content` må være den samme som faktisk innhold i `<Table.Cell type='head'>`. */
|
|
17716
16886
|
headerValues: HeaderValues;
|
|
17717
16887
|
/**
|
|
17718
16888
|
* Indeksen(e) til kolonnen(e) som skal synes når tabellen er kollapset. Rekkefølgen i array avgjør rekkefølgen i render.
|
|
@@ -17723,12 +16893,7 @@ type CollapsibleTableProps = {
|
|
|
17723
16893
|
//#endregion
|
|
17724
16894
|
//#region src/components/Table/collapsible/CollapsibleTable.d.ts
|
|
17725
16895
|
declare const CollapsibleTable$1: {
|
|
17726
|
-
({
|
|
17727
|
-
isCollapsed,
|
|
17728
|
-
headerValues,
|
|
17729
|
-
definingColumnIndex,
|
|
17730
|
-
...rest
|
|
17731
|
-
}: CollapsibleTableProps): import("react").JSX.Element;
|
|
16896
|
+
({ isCollapsed, headerValues, definingColumnIndex, ...rest }: CollapsibleTableProps): import("react").JSX.Element;
|
|
17732
16897
|
displayName: string;
|
|
17733
16898
|
};
|
|
17734
16899
|
//#endregion
|
|
@@ -17747,14 +16912,7 @@ type AddTabButtonProps = {
|
|
|
17747
16912
|
index?: number;
|
|
17748
16913
|
} & ComponentPropsWithRef<'button'>;
|
|
17749
16914
|
declare const AddTabButton: {
|
|
17750
|
-
({
|
|
17751
|
-
ref,
|
|
17752
|
-
children,
|
|
17753
|
-
index,
|
|
17754
|
-
className,
|
|
17755
|
-
width,
|
|
17756
|
-
...rest
|
|
17757
|
-
}: AddTabButtonProps): import("react").JSX.Element;
|
|
16915
|
+
({ ref, children, index, className, width, ...rest }: AddTabButtonProps): import("react").JSX.Element;
|
|
17758
16916
|
displayName: string;
|
|
17759
16917
|
};
|
|
17760
16918
|
//#endregion
|
|
@@ -17762,30 +16920,21 @@ declare const AddTabButton: {
|
|
|
17762
16920
|
declare const TABS_SIZES: ["small", "medium"];
|
|
17763
16921
|
type TabSize = (typeof TABS_SIZES)[number];
|
|
17764
16922
|
type TabsProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
17765
|
-
/**Størrelse på hver `<Tab>`. */
|
|
17766
|
-
|
|
16923
|
+
/**Størrelse på hver `<Tab>`. */
|
|
16924
|
+
size?: TabSize;
|
|
16925
|
+
/** Indeksen til den aktive fanen. **OBS!** Ved å sette denne vil brukere aldri kunne endre tab uten at du også registrerer en `onChange`-lytter for å ta vare på aktiv tab utenfor komponenten. */
|
|
16926
|
+
activeTab?: number;
|
|
16927
|
+
/** Ekstra logikk ved endring av aktiv fane. */
|
|
17767
16928
|
onChange?: (index: number) => void;
|
|
17768
16929
|
/** Retningen ikon og tekst vises i `<Tab>`-elementer.
|
|
17769
16930
|
* @default "row"
|
|
17770
16931
|
*/
|
|
17771
|
-
tabContentDirection?: Direction;
|
|
16932
|
+
tabContentDirection?: Direction;
|
|
16933
|
+
/** Props for "Legg til fane"-knapp. Støtter native HTML attributter og `width`. */
|
|
17772
16934
|
addTabButtonProps?: Omit<AddTabButtonProps, 'index'>;
|
|
17773
16935
|
} & Pick<ResponsiveProps, 'width'>, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
17774
16936
|
declare const Tabs: {
|
|
17775
|
-
({
|
|
17776
|
-
id,
|
|
17777
|
-
activeTab,
|
|
17778
|
-
onChange,
|
|
17779
|
-
tabContentDirection,
|
|
17780
|
-
size,
|
|
17781
|
-
addTabButtonProps,
|
|
17782
|
-
width,
|
|
17783
|
-
children,
|
|
17784
|
-
className,
|
|
17785
|
-
style,
|
|
17786
|
-
htmlProps,
|
|
17787
|
-
...rest
|
|
17788
|
-
}: TabsProps): import("react").JSX.Element;
|
|
16937
|
+
({ id, activeTab, onChange, tabContentDirection, size, addTabButtonProps, width, children, className, style, htmlProps, ...rest }: TabsProps): import("react").JSX.Element;
|
|
17789
16938
|
displayName: string;
|
|
17790
16939
|
};
|
|
17791
16940
|
//#endregion
|
|
@@ -17795,10 +16944,14 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
|
17795
16944
|
/**Spesifiserer om fanen er aktiv.
|
|
17796
16945
|
* @default false
|
|
17797
16946
|
*/
|
|
17798
|
-
active?: boolean;
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
|
|
16947
|
+
active?: boolean;
|
|
16948
|
+
/** Ikon. */
|
|
16949
|
+
icon?: SvgIcon;
|
|
16950
|
+
/** Spesifiserer om `<Tab>` skal ha fokus. **OBS!** settes automatisk av forelder.*/
|
|
16951
|
+
focus?: boolean;
|
|
16952
|
+
/** Callback som setter fokus. **OBS!** settes automatisk av forelder.*/
|
|
16953
|
+
setFocus?: Dispatch<SetStateAction<number>>;
|
|
16954
|
+
/** Indeksen til `<Tab>`. **OBS!** settes automatisk av forelder.*/
|
|
17802
16955
|
index?: number;
|
|
17803
16956
|
/** Bredden til `<Tab>`. Støtter samme enheter som `grid-template-columns`.
|
|
17804
16957
|
* @default "1fr"
|
|
@@ -17806,70 +16959,35 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
|
17806
16959
|
width?: Properties['width'];
|
|
17807
16960
|
} & PickedAttributes, Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof PickedAttributes>>;
|
|
17808
16961
|
declare const Tab: {
|
|
17809
|
-
({
|
|
17810
|
-
active,
|
|
17811
|
-
icon,
|
|
17812
|
-
children,
|
|
17813
|
-
focus,
|
|
17814
|
-
setFocus,
|
|
17815
|
-
index,
|
|
17816
|
-
onClick,
|
|
17817
|
-
onKeyDown,
|
|
17818
|
-
id,
|
|
17819
|
-
className,
|
|
17820
|
-
htmlProps,
|
|
17821
|
-
style,
|
|
17822
|
-
width,
|
|
17823
|
-
ref,
|
|
17824
|
-
...rest
|
|
17825
|
-
}: TabProps): import("react").JSX.Element;
|
|
16962
|
+
({ active, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps, style, width, ref, ...rest }: TabProps): import("react").JSX.Element;
|
|
17826
16963
|
displayName: string;
|
|
17827
16964
|
};
|
|
17828
16965
|
//#endregion
|
|
17829
16966
|
//#region src/components/Tabs/TabList.d.ts
|
|
17830
16967
|
type TabListProps = ComponentPropsWithRef<'div'>;
|
|
17831
16968
|
declare const TabList: {
|
|
17832
|
-
({
|
|
17833
|
-
children,
|
|
17834
|
-
id,
|
|
17835
|
-
style,
|
|
17836
|
-
onFocus,
|
|
17837
|
-
ref,
|
|
17838
|
-
...rest
|
|
17839
|
-
}: TabListProps): import("react").JSX.Element;
|
|
16969
|
+
({ children, id, style, onFocus, ref, ...rest }: TabListProps): import("react").JSX.Element;
|
|
17840
16970
|
displayName: string;
|
|
17841
16971
|
};
|
|
17842
16972
|
//#endregion
|
|
17843
16973
|
//#region src/components/Tabs/TabPanel.d.ts
|
|
17844
16974
|
type TabPanelProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
17845
|
-
/** Spesifiserer om panelet skal vises basert på aktiv fane. */
|
|
16975
|
+
/** Spesifiserer om panelet skal vises basert på aktiv fane. */
|
|
16976
|
+
active?: boolean;
|
|
17846
16977
|
/** CSS `padding`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.
|
|
17847
16978
|
* @default 'x0.25'
|
|
17848
16979
|
*/
|
|
17849
16980
|
padding?: ResponsiveProps['padding'];
|
|
17850
16981
|
}>;
|
|
17851
16982
|
declare const TabPanel: {
|
|
17852
|
-
({
|
|
17853
|
-
active,
|
|
17854
|
-
children,
|
|
17855
|
-
id,
|
|
17856
|
-
className,
|
|
17857
|
-
style,
|
|
17858
|
-
htmlProps,
|
|
17859
|
-
padding,
|
|
17860
|
-
...rest
|
|
17861
|
-
}: TabPanelProps): import("react").JSX.Element;
|
|
16983
|
+
({ active, children, id, className, style, htmlProps, padding, ...rest }: TabPanelProps): import("react").JSX.Element;
|
|
17862
16984
|
displayName: string;
|
|
17863
16985
|
};
|
|
17864
16986
|
//#endregion
|
|
17865
16987
|
//#region src/components/Tabs/TabPanels.d.ts
|
|
17866
16988
|
type TabPanelsProps = Pick<ResponsiveProps, 'padding' | 'paddingBlock' | 'paddingInline'> & ComponentPropsWithRef<'div'>;
|
|
17867
16989
|
declare const TabPanels: {
|
|
17868
|
-
({
|
|
17869
|
-
children,
|
|
17870
|
-
ref,
|
|
17871
|
-
...rest
|
|
17872
|
-
}: TabPanelsProps): import("react").JSX.Element;
|
|
16990
|
+
({ children, ref, ...rest }: TabPanelsProps): import("react").JSX.Element;
|
|
17873
16991
|
displayName: string;
|
|
17874
16992
|
};
|
|
17875
16993
|
//#endregion
|
|
@@ -17899,17 +17017,7 @@ type TagProps = BaseComponentProps<HTMLSpanElement, {
|
|
|
17899
17017
|
withIcon?: boolean;
|
|
17900
17018
|
}>;
|
|
17901
17019
|
declare const Tag: {
|
|
17902
|
-
({
|
|
17903
|
-
purpose,
|
|
17904
|
-
appearance,
|
|
17905
|
-
id,
|
|
17906
|
-
className,
|
|
17907
|
-
style,
|
|
17908
|
-
children,
|
|
17909
|
-
htmlProps,
|
|
17910
|
-
withIcon,
|
|
17911
|
-
...rest
|
|
17912
|
-
}: TagProps): import("react").JSX.Element;
|
|
17020
|
+
({ purpose, appearance, id, className, style, children, htmlProps, withIcon, ...rest }: TagProps): import("react").JSX.Element;
|
|
17913
17021
|
displayName: string;
|
|
17914
17022
|
};
|
|
17915
17023
|
//#endregion
|
|
@@ -17921,32 +17029,14 @@ type TextAreaProps = CommonInputProps & {
|
|
|
17921
17029
|
withCharacterCounter?: boolean;
|
|
17922
17030
|
} & ComponentPropsWithRef<'textarea'>;
|
|
17923
17031
|
declare const TextArea: {
|
|
17924
|
-
({
|
|
17925
|
-
id,
|
|
17926
|
-
value,
|
|
17927
|
-
defaultValue,
|
|
17928
|
-
onChange,
|
|
17929
|
-
errorMessage,
|
|
17930
|
-
required,
|
|
17931
|
-
tip,
|
|
17932
|
-
label,
|
|
17933
|
-
readOnly,
|
|
17934
|
-
"aria-required": ariaRequired,
|
|
17935
|
-
"aria-describedby": ariaDescribedby,
|
|
17936
|
-
maxLength,
|
|
17937
|
-
withCharacterCounter,
|
|
17938
|
-
className,
|
|
17939
|
-
style,
|
|
17940
|
-
width,
|
|
17941
|
-
ref,
|
|
17942
|
-
...rest
|
|
17943
|
-
}: TextAreaProps): import("react").JSX.Element;
|
|
17032
|
+
({ id, value, defaultValue, onChange, errorMessage, required, tip, label, readOnly, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, maxLength, withCharacterCounter, className, style, width, ref, ...rest }: TextAreaProps): import("react").JSX.Element;
|
|
17944
17033
|
displayName: string;
|
|
17945
17034
|
};
|
|
17946
17035
|
//#endregion
|
|
17947
17036
|
//#region src/components/TextInput/TextInput.types.d.ts
|
|
17948
17037
|
type TextInputProps = Omit<InputProps, 'prefix'> & InputIconProps & {
|
|
17949
|
-
/** Spesifiserer om tegntelleren skal vises ved bruk av `maxLength` attributt. */
|
|
17038
|
+
/** Spesifiserer om tegntelleren skal vises ved bruk av `maxLength` attributt. */
|
|
17039
|
+
withCharacterCounter?: boolean;
|
|
17950
17040
|
/**
|
|
17951
17041
|
* Prefiks som vises før inputfeltet. **OBS!** Prefiks leses ikke av skjermleser og skal derfor ikke brukes som en erstatter for en beskrivende label.
|
|
17952
17042
|
* */
|
|
@@ -17962,33 +17052,7 @@ interface TextAffixProps {
|
|
|
17962
17052
|
//#endregion
|
|
17963
17053
|
//#region src/components/TextInput/TextInput.d.ts
|
|
17964
17054
|
declare const TextInput: {
|
|
17965
|
-
({
|
|
17966
|
-
label,
|
|
17967
|
-
afterLabelContent,
|
|
17968
|
-
disabled,
|
|
17969
|
-
readOnly,
|
|
17970
|
-
errorMessage,
|
|
17971
|
-
tip,
|
|
17972
|
-
required,
|
|
17973
|
-
maxLength,
|
|
17974
|
-
onChange,
|
|
17975
|
-
id,
|
|
17976
|
-
width,
|
|
17977
|
-
componentSize,
|
|
17978
|
-
type,
|
|
17979
|
-
withCharacterCounter,
|
|
17980
|
-
className,
|
|
17981
|
-
style,
|
|
17982
|
-
value,
|
|
17983
|
-
defaultValue,
|
|
17984
|
-
"aria-required": ariaRequired,
|
|
17985
|
-
"aria-describedby": ariaDescribedby,
|
|
17986
|
-
icon,
|
|
17987
|
-
prefix,
|
|
17988
|
-
suffix,
|
|
17989
|
-
ref,
|
|
17990
|
-
...rest
|
|
17991
|
-
}: TextInputProps): React$1.JSX.Element;
|
|
17055
|
+
({ label, afterLabelContent, disabled, readOnly, errorMessage, tip, required, maxLength, onChange, id, width, componentSize, type, withCharacterCounter, className, style, value, defaultValue, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, icon, prefix, suffix, ref, ...rest }: TextInputProps): React$1.JSX.Element;
|
|
17992
17056
|
displayName: string;
|
|
17993
17057
|
};
|
|
17994
17058
|
//#endregion
|
|
@@ -18007,11 +17071,16 @@ type ToggleBarProps<T extends string | number> = BaseComponentPropsWithChildren<
|
|
|
18007
17071
|
/**Størrelse på komponenten.
|
|
18008
17072
|
* @default "medium"
|
|
18009
17073
|
*/
|
|
18010
|
-
size?: ToggleBarSize;
|
|
18011
|
-
|
|
18012
|
-
|
|
18013
|
-
|
|
18014
|
-
|
|
17074
|
+
size?: ToggleBarSize;
|
|
17075
|
+
/**Ledetekst for hele gruppen. */
|
|
17076
|
+
label?: string;
|
|
17077
|
+
/**Funksjonen for `onChange`-event for barna. */
|
|
17078
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, value?: T) => void;
|
|
17079
|
+
/**Den valgte verdien i gruppen. Hvis satt ved innlastning blir en `<ToggleRadio>` forhåndsvalgt. */
|
|
17080
|
+
value?: T;
|
|
17081
|
+
/** Gir alle barna samme `name` prop.*/
|
|
17082
|
+
name?: string;
|
|
17083
|
+
/**Bredden til komponenten. Bredden fordeles likt mellom barna. */
|
|
18015
17084
|
width?: ResponsiveProps['width'];
|
|
18016
17085
|
}, InputHTMLAttributes<HTMLInputElement>>;
|
|
18017
17086
|
//#endregion
|
|
@@ -18023,32 +17092,22 @@ declare const ToggleBar: {
|
|
|
18023
17092
|
//#endregion
|
|
18024
17093
|
//#region src/components/ToggleBar/ToggleRadio.d.ts
|
|
18025
17094
|
type ToggleRadioProps = BaseComponentProps<HTMLInputElement, {
|
|
18026
|
-
/**Ledetekst som vises i komponenten. */
|
|
17095
|
+
/**Ledetekst som vises i komponenten. */
|
|
17096
|
+
label?: string;
|
|
17097
|
+
/**Ikonet som vises i komponenten. */
|
|
18027
17098
|
icon?: SvgIcon;
|
|
18028
17099
|
} & Pick<InputHTMLAttributes<HTMLInputElement>, 'name' | 'checked' | 'value' | 'onChange' | 'aria-label' | 'aria-labelledby'>>;
|
|
18029
17100
|
declare const ToggleRadio: {
|
|
18030
|
-
({
|
|
18031
|
-
value,
|
|
18032
|
-
name,
|
|
18033
|
-
onChange,
|
|
18034
|
-
checked,
|
|
18035
|
-
"aria-label": ariaLabel,
|
|
18036
|
-
"aria-labelledby": ariaLabelledBy,
|
|
18037
|
-
icon,
|
|
18038
|
-
label,
|
|
18039
|
-
htmlProps,
|
|
18040
|
-
className,
|
|
18041
|
-
style,
|
|
18042
|
-
id,
|
|
18043
|
-
...rest
|
|
18044
|
-
}: ToggleRadioProps): import("react").JSX.Element;
|
|
17101
|
+
({ value, name, onChange, checked, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, icon, label, htmlProps, className, style, id, ...rest }: ToggleRadioProps): import("react").JSX.Element;
|
|
18045
17102
|
displayName: string;
|
|
18046
17103
|
};
|
|
18047
17104
|
//#endregion
|
|
18048
17105
|
//#region src/components/ToggleButton/ToggleButton.types.d.ts
|
|
18049
17106
|
declare const TOGGLE_BUTTON_SIZES: ["xsmall", "small"];
|
|
18050
17107
|
type ToggleButtonProps = BaseComponentProps<HTMLInputElement, {
|
|
18051
|
-
/**Ledetekst for inputelementet. */
|
|
17108
|
+
/**Ledetekst for inputelementet. */
|
|
17109
|
+
label?: string;
|
|
17110
|
+
/** Ikon. */
|
|
18052
17111
|
icon?: SvgIcon;
|
|
18053
17112
|
/**Størrelse.
|
|
18054
17113
|
* @default 'small'
|
|
@@ -18058,27 +17117,20 @@ type ToggleButtonProps = BaseComponentProps<HTMLInputElement, {
|
|
|
18058
17117
|
//#endregion
|
|
18059
17118
|
//#region src/components/ToggleButton/ToggleButton.d.ts
|
|
18060
17119
|
declare const ToggleButton: {
|
|
18061
|
-
({
|
|
18062
|
-
id,
|
|
18063
|
-
label,
|
|
18064
|
-
icon,
|
|
18065
|
-
size,
|
|
18066
|
-
className,
|
|
18067
|
-
style,
|
|
18068
|
-
htmlProps,
|
|
18069
|
-
...rest
|
|
18070
|
-
}: ToggleButtonProps): import("react").JSX.Element;
|
|
17120
|
+
({ id, label, icon, size, className, style, htmlProps, ...rest }: ToggleButtonProps): import("react").JSX.Element;
|
|
18071
17121
|
displayName: string;
|
|
18072
17122
|
};
|
|
18073
17123
|
//#endregion
|
|
18074
17124
|
//#region src/components/ToggleButton/ToggleButtonGroup.d.ts
|
|
18075
17125
|
type Direction$1 = 'row' | 'column';
|
|
18076
17126
|
type ToggleButtonGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
18077
|
-
/** Ledetekst for gruppen. */
|
|
17127
|
+
/** Ledetekst for gruppen. */
|
|
17128
|
+
label?: string;
|
|
18078
17129
|
/**Retningen barna legger seg i.
|
|
18079
17130
|
* @default "row"
|
|
18080
17131
|
*/
|
|
18081
|
-
direction?: Direction$1;
|
|
17132
|
+
direction?: Direction$1;
|
|
17133
|
+
/** Custom `id` for ledetekst. Blir generert som default for å knytte ledetekst til gruppen. */
|
|
18082
17134
|
labelId?: string;
|
|
18083
17135
|
}>;
|
|
18084
17136
|
declare const ToggleButtonGroup: {
|
|
@@ -18092,50 +17144,32 @@ type AnchorElement = ReactElement<HTMLAttributes<HTMLElement> & {
|
|
|
18092
17144
|
}>;
|
|
18093
17145
|
type PickedHTMLAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'style' | 'onMouseLeave' | 'onMouseOver'>;
|
|
18094
17146
|
type TooltipProps = BaseComponentProps<HTMLDivElement, {
|
|
18095
|
-
/**Innhold i tooltip. */
|
|
17147
|
+
/**Innhold i tooltip. */
|
|
17148
|
+
text: string;
|
|
18096
17149
|
/**Plassering i forhold til anchor-elementet.
|
|
18097
17150
|
* @default "bottom"
|
|
18098
17151
|
*/
|
|
18099
|
-
placement?: Placement$1;
|
|
17152
|
+
placement?: Placement$1;
|
|
17153
|
+
/**Anchor-elementet. */
|
|
18100
17154
|
children: AnchorElement;
|
|
18101
17155
|
/**Forsinkelse for når tooltip skal dukke opp. Oppgis i millisekunder.
|
|
18102
17156
|
* @default 100
|
|
18103
17157
|
*/
|
|
18104
|
-
delay?: number;
|
|
18105
|
-
|
|
17158
|
+
delay?: number;
|
|
17159
|
+
/**`id` for tooltip. */
|
|
17160
|
+
tooltipId?: string;
|
|
17161
|
+
/**Om tooltip skal alltid være i DOM, eller bli rendret først når den skal vises. */
|
|
18106
17162
|
keepMounted?: boolean;
|
|
18107
17163
|
} & PickedHTMLAttributes, Omit<HTMLAttributes<HTMLDivElement>, 'children' | keyof PickedHTMLAttributes>>;
|
|
18108
17164
|
declare const Tooltip: {
|
|
18109
|
-
({
|
|
18110
|
-
text,
|
|
18111
|
-
placement,
|
|
18112
|
-
children,
|
|
18113
|
-
tooltipId,
|
|
18114
|
-
delay,
|
|
18115
|
-
style,
|
|
18116
|
-
onMouseLeave,
|
|
18117
|
-
onMouseOver,
|
|
18118
|
-
keepMounted,
|
|
18119
|
-
id,
|
|
18120
|
-
ref,
|
|
18121
|
-
className,
|
|
18122
|
-
htmlProps,
|
|
18123
|
-
...rest
|
|
18124
|
-
}: TooltipProps): import("react").JSX.Element;
|
|
17165
|
+
({ text, placement, children, tooltipId, delay, style, onMouseLeave, onMouseOver, keepMounted, id, ref, className, htmlProps, ...rest }: TooltipProps): import("react").JSX.Element;
|
|
18125
17166
|
displayName: string;
|
|
18126
17167
|
};
|
|
18127
17168
|
//#endregion
|
|
18128
17169
|
//#region src/components/VisuallyHidden/VisuallyHidden.d.ts
|
|
18129
17170
|
type VisuallyHiddenProps<T extends ElementType = 'span'> = PolymorphicBaseComponentProps<T>;
|
|
18130
17171
|
declare const VisuallyHidden: {
|
|
18131
|
-
<T extends ElementType = "span">({
|
|
18132
|
-
id,
|
|
18133
|
-
as: asProp,
|
|
18134
|
-
className,
|
|
18135
|
-
style,
|
|
18136
|
-
htmlProps,
|
|
18137
|
-
...rest
|
|
18138
|
-
}: VisuallyHiddenProps<T>): import("react").JSX.Element;
|
|
17172
|
+
<T extends ElementType = "span">({ id, as: asProp, className, style, htmlProps, ...rest }: VisuallyHiddenProps<T>): import("react").JSX.Element;
|
|
18139
17173
|
displayName: string;
|
|
18140
17174
|
};
|
|
18141
17175
|
//#endregion
|