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