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