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