@norges-domstoler/dds-components 22.4.0 → 22.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +95 -49
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +158 -25
- package/dist/index.d.ts +158 -25
- package/dist/index.js +1407 -1377
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1964 -1937
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
|
-
import { ComponentPropsWithRef, ElementType, CSSProperties, Ref, ComponentPropsWithoutRef, HTMLAttributes,
|
|
2
|
+
import { Dispatch, SetStateAction, RefObject, ReactNode, ComponentPropsWithRef, ElementType, CSSProperties, Ref, ComponentPropsWithoutRef, HTMLAttributes, SVGAttributes, JSX, ButtonHTMLAttributes, ComponentProps, InputHTMLAttributes, MouseEventHandler, DependencyList, RefCallback, ChangeEvent, KeyboardEvent as KeyboardEvent$1, AnchorHTMLAttributes, LabelHTMLAttributes, AriaRole, FocusEvent, ForwardedRef, ForwardRefExoticComponent, MouseEvent as MouseEvent$1, ReactElement } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as CSS from 'csstype';
|
|
5
5
|
import { Property, StandardProperties } from 'csstype';
|
|
6
6
|
import { Strategy, UseFloatingReturn, Placement as Placement$1 } from '@floating-ui/react-dom';
|
|
@@ -11,6 +11,146 @@ import { AriaDatePickerProps } from '@react-types/datepicker';
|
|
|
11
11
|
import { AriaDateFieldOptions, useDatePicker, AriaTimeFieldProps } from '@react-aria/datepicker';
|
|
12
12
|
import { OptionProps, GroupBase, SingleValueProps, SelectInstance, Props } from 'react-select';
|
|
13
13
|
|
|
14
|
+
interface AccordionConfig {
|
|
15
|
+
/**
|
|
16
|
+
* Ukontrollerttilstand: om utvidbare delen skal være utvidet ved første render.
|
|
17
|
+
*/
|
|
18
|
+
isInitiallyExpanded?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Kontrollert tilstand: om utvidbare delen er utvidet.
|
|
21
|
+
*/
|
|
22
|
+
isExpanded?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Callback når tilstanden endres.
|
|
25
|
+
*/
|
|
26
|
+
onChange?: (expanded: boolean) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Custom id for accordion; delene får i tillegg suffix `'header'` og `'body'`.
|
|
29
|
+
*/
|
|
30
|
+
id?: string;
|
|
31
|
+
}
|
|
32
|
+
interface UseAccordionHeaderProps {
|
|
33
|
+
/**
|
|
34
|
+
* `onClick` som kontrollerer lukking og åpning av accordion, og eventuelt `onChange` satt i config
|
|
35
|
+
*/
|
|
36
|
+
onClick: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* Nativ `aria-expanded`.
|
|
39
|
+
*/
|
|
40
|
+
'aria-expanded': boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Nativ `aria-controls`.
|
|
43
|
+
*/
|
|
44
|
+
'aria-controls': string;
|
|
45
|
+
/**
|
|
46
|
+
* Id, settes for riktig bruk av aria-props.
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
49
|
+
}
|
|
50
|
+
interface UseAccordionBodyProps {
|
|
51
|
+
/**
|
|
52
|
+
* Id, settes for riktig bruk av aria-props.
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
/**
|
|
56
|
+
* Nativ `role`. Gir innholdet en rolle tilgjengelig for skjermlesere.
|
|
57
|
+
*/
|
|
58
|
+
role: string;
|
|
59
|
+
/**
|
|
60
|
+
* Nativ `aria-labelledby`.
|
|
61
|
+
*/
|
|
62
|
+
'aria-labelledby': string;
|
|
63
|
+
/**
|
|
64
|
+
* Nativ `aria-hidden`.
|
|
65
|
+
*/
|
|
66
|
+
'aria-hidden': boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Høyde som skal settes i CSS for animasjon.
|
|
69
|
+
*/
|
|
70
|
+
height?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Klassenavn for innhold-wrapper; håndterer animasjon og lukking.
|
|
73
|
+
*/
|
|
74
|
+
className?: string;
|
|
75
|
+
}
|
|
76
|
+
interface AccordionState {
|
|
77
|
+
/**
|
|
78
|
+
* Id, settes for riktig bruk av aria-props.
|
|
79
|
+
*/
|
|
80
|
+
id: string;
|
|
81
|
+
/**
|
|
82
|
+
* Om accordion er utvided.
|
|
83
|
+
*/
|
|
84
|
+
isExpanded: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* State funksjon som setter `isExpanded` ved behov.
|
|
87
|
+
*/
|
|
88
|
+
setIsExpanded: Dispatch<SetStateAction<boolean>>;
|
|
89
|
+
/**
|
|
90
|
+
* Funksjon som åpner accordion. Brukes ved behov.
|
|
91
|
+
*/
|
|
92
|
+
openAccordion: () => void;
|
|
93
|
+
/**
|
|
94
|
+
* Funksjon som lukker accordion. Brukes ved behov.
|
|
95
|
+
*/
|
|
96
|
+
closeAccordion: () => void;
|
|
97
|
+
/**
|
|
98
|
+
* Funksjon som toggler accordion. Brukes ved behov.
|
|
99
|
+
*/
|
|
100
|
+
toggleExpanded: () => void;
|
|
101
|
+
/**
|
|
102
|
+
* Props som settes på header-elementet.
|
|
103
|
+
*/
|
|
104
|
+
headerProps: UseAccordionHeaderProps;
|
|
105
|
+
/**
|
|
106
|
+
* Props som settes på innholds-elementet.
|
|
107
|
+
*/
|
|
108
|
+
bodyProps: UseAccordionBodyProps;
|
|
109
|
+
/**
|
|
110
|
+
* Ref som settes på wrapper inni innholds-elementet; Sørger for animasjon.
|
|
111
|
+
*/
|
|
112
|
+
bodyContentRef: RefObject<HTMLDivElement | null>;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Implementerer trekkspill-mønsteret; header som utvider og trekker sammen et panel. Håndterer oppførsel, UU og visuelle effekter.
|
|
116
|
+
* @returns {AccordionState} accordion state og props å bruke på acccordion-elementer: header og body.
|
|
117
|
+
* @example
|
|
118
|
+
* ```tsx
|
|
119
|
+
* function MyComponent() {
|
|
120
|
+
*
|
|
121
|
+
* const { isExpanded, bodyContentRef, headerProps, bodyProps } = useAccordion({});
|
|
122
|
+
* const { height, ...restBodyProps } = bodyProps;
|
|
123
|
+
*
|
|
124
|
+
* return (
|
|
125
|
+
* <>
|
|
126
|
+
* <button {...headerProps}>
|
|
127
|
+
* {isExpanded ? 'Skjul' : 'Vis'} innhold
|
|
128
|
+
* </button>
|
|
129
|
+
* <div style={{height}} {...restBodyProps}>
|
|
130
|
+
* <div ref={bodyContentRef}>
|
|
131
|
+
* innhold
|
|
132
|
+
* </div>
|
|
133
|
+
* </div>
|
|
134
|
+
* </>
|
|
135
|
+
* )
|
|
136
|
+
* });
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
declare const useAccordion: ({ isInitiallyExpanded, isExpanded: isExpandedProp, onChange, id, }: AccordionConfig) => AccordionState;
|
|
140
|
+
|
|
141
|
+
interface AccordionContext {
|
|
142
|
+
headerProps: UseAccordionHeaderProps;
|
|
143
|
+
bodyProps: UseAccordionBodyProps;
|
|
144
|
+
isExpanded: boolean;
|
|
145
|
+
toggleExpanded: () => void;
|
|
146
|
+
bodyContentRef: RefObject<HTMLDivElement | null>;
|
|
147
|
+
}
|
|
148
|
+
declare const AccordionContext: react.Context<Partial<AccordionContext>>;
|
|
149
|
+
declare const AccordionContextProvider: ({ children, ...values }: AccordionContext & {
|
|
150
|
+
children: ReactNode;
|
|
151
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
152
|
+
declare const useAccordionContext: () => Partial<AccordionContext>;
|
|
153
|
+
|
|
14
154
|
declare function handleElementWithBackdropMount(container: HTMLElement): void;
|
|
15
155
|
declare function handleElementWithBackdropUnmount(container: HTMLElement): void;
|
|
16
156
|
|
|
@@ -256,6 +396,7 @@ declare const Button: {
|
|
|
256
396
|
|
|
257
397
|
declare const TOGGLE_SIZES: ["medium", "large"];
|
|
258
398
|
type ToggleSize = (typeof TOGGLE_SIZES)[number];
|
|
399
|
+
type ToggleVariant = 'default' | 'colorScheme';
|
|
259
400
|
type ToggleProps = BaseComponentProps<HTMLElement, {
|
|
260
401
|
/**Ledetekst; tillater bruk av f.eks. `<VisuallyHidden>` for usynlig tekst. */
|
|
261
402
|
children?: ReactNode;
|
|
@@ -287,9 +428,14 @@ type ToggleProps = BaseComponentProps<HTMLElement, {
|
|
|
287
428
|
* @default "medium"
|
|
288
429
|
*/
|
|
289
430
|
size?: ToggleSize;
|
|
431
|
+
/**
|
|
432
|
+
* Variant basert på bruksområde.
|
|
433
|
+
* @default "default"
|
|
434
|
+
*/
|
|
435
|
+
variant?: ToggleVariant;
|
|
290
436
|
} & Pick<ComponentProps<'input'>, 'name' | 'aria-describedby' | 'onBlur'>, InputHTMLAttributes<HTMLInputElement>>;
|
|
291
437
|
declare const Toggle: {
|
|
292
|
-
({ id, children, size, checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, style, htmlProps, ...rest }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
438
|
+
({ id, children, size, checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, style, htmlProps, variant, ...rest }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
293
439
|
displayName: string;
|
|
294
440
|
};
|
|
295
441
|
|
|
@@ -3298,25 +3444,6 @@ type PropsOfWithRef<T extends ElementType> = ComponentPropsWithRef<T> & {
|
|
|
3298
3444
|
type PolymorphicProps<T extends ElementType> = PropsOfWithRef<T>;
|
|
3299
3445
|
declare const ElementAs: <T extends ElementType>({ as, ref, children, ...props }: PolymorphicProps<T>) => react_jsx_runtime.JSX.Element;
|
|
3300
3446
|
|
|
3301
|
-
interface AccordionConfig {
|
|
3302
|
-
/**
|
|
3303
|
-
* Ukontrollerttilstand: om utvidbare delen skal være utvidet ved første render.
|
|
3304
|
-
*/
|
|
3305
|
-
isInitiallyExpanded?: boolean;
|
|
3306
|
-
/**
|
|
3307
|
-
* Kontrollert tilstand: om utvidbare delen er utvidet.
|
|
3308
|
-
*/
|
|
3309
|
-
isExpanded?: boolean;
|
|
3310
|
-
/**
|
|
3311
|
-
* Callback når tilstanden endres.
|
|
3312
|
-
*/
|
|
3313
|
-
onChange?: (expanded: boolean) => void;
|
|
3314
|
-
/**
|
|
3315
|
-
* Custom id for accordion; delene får i tillegg suffix `'header'` og `'body'`.
|
|
3316
|
-
*/
|
|
3317
|
-
id?: string;
|
|
3318
|
-
}
|
|
3319
|
-
|
|
3320
3447
|
type AccordionProps = BaseComponentPropsWithChildren<HTMLDivElement, Pick<AccordionConfig, 'isExpanded' | 'isInitiallyExpanded' | 'onChange'>>;
|
|
3321
3448
|
declare const Accordion: {
|
|
3322
3449
|
({ isInitiallyExpanded, isExpanded, onChange, id, children, className, style, htmlProps, ...rest }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3443,9 +3570,11 @@ type LinkProps<T extends ElementType = 'a'> = PolymorphicBaseComponentProps<T, {
|
|
|
3443
3570
|
withVisited?: boolean;
|
|
3444
3571
|
/**Spesifiserer typografistil basert på utvalget for brødtekst. Arver hvis ikke oppgitt. */
|
|
3445
3572
|
typographyType?: TypographyBodyType;
|
|
3573
|
+
/**Tvinger komponenten til å behandle `as` som en anchor tag wrapper og forwarde anchor-spesifikke props (target, rel). Bruk når custom `as` komponent wrapper en `<a>` tag. */
|
|
3574
|
+
isAnchor?: boolean;
|
|
3446
3575
|
} & BaseTypographyProps & PickedHTMLAttributes$2>;
|
|
3447
3576
|
declare const Link: {
|
|
3448
|
-
<T extends ElementType = "a">({ id, className, htmlProps, children, typographyType, withMargins, withVisited, external, target, style, color, as: propAs, ...rest }: LinkProps<T>): react_jsx_runtime.JSX.Element;
|
|
3577
|
+
<T extends ElementType = "a">({ id, className, htmlProps, children, typographyType, withMargins, withVisited, external, target, style, color, as: propAs, isAnchor: propIsAnchor, ...rest }: LinkProps<T>): react_jsx_runtime.JSX.Element;
|
|
3449
3578
|
displayName: string;
|
|
3450
3579
|
};
|
|
3451
3580
|
|
|
@@ -5018,6 +5147,10 @@ type TableProps = {
|
|
|
5018
5147
|
stickyHeader?: boolean;
|
|
5019
5148
|
/**Legger skillelinjer mellom radene. */
|
|
5020
5149
|
withDividers?: boolean;
|
|
5150
|
+
/**Rader veksler bakgrunnsfarge.
|
|
5151
|
+
* @default true
|
|
5152
|
+
*/
|
|
5153
|
+
withStripes?: boolean;
|
|
5021
5154
|
} & ComponentPropsWithRef<'table'>;
|
|
5022
5155
|
type HeaderValues = Array<{
|
|
5023
5156
|
key: string;
|
|
@@ -5062,7 +5195,7 @@ declare const SortCell: {
|
|
|
5062
5195
|
};
|
|
5063
5196
|
|
|
5064
5197
|
declare const Table$1: {
|
|
5065
|
-
({ size, stickyHeader, withDividers, className, children, ...rest }: TableProps): react_jsx_runtime.JSX.Element;
|
|
5198
|
+
({ size, stickyHeader, withDividers, withStripes, className, children, ...rest }: TableProps): react_jsx_runtime.JSX.Element;
|
|
5066
5199
|
displayName: string;
|
|
5067
5200
|
};
|
|
5068
5201
|
|
|
@@ -5356,4 +5489,4 @@ declare const VisuallyHidden: {
|
|
|
5356
5489
|
displayName: string;
|
|
5357
5490
|
};
|
|
5358
5491
|
|
|
5359
|
-
export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, type AccordionProps, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, type AnimatedChevronUpDownIconStates, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, type BackLinkProps, Backdrop, BarChartBoxedIcon, BarChartIcon, type BaseComponentProps, type BaseComponentPropsWithChildren, type BaseItemProps, type BaseLabelProps, type BaseTypographyProps, BlockIcon, BookIcon, type BorderColor, type BorderRadius, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonPurpose, type ButtonSize, Calendar, CalendarIcon, CalendarMonthIcon, type CalendarProps, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, type Callback, Caption, type CaptionProps, Card, CardExpandable, CardExpandableBody, type CardExpandableBodyProps, CardExpandableHeader, type CardExpandableHeaderProps, type CardExpandableProps, type CardProps, CardSelectable, CardSelectableGroup, type CardSelectableGroupProps, type CardSelectableProps, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxPickedHTMLAttributes, type CheckboxProps, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, type CollapsibleTableProps, CollapsibleRow as CollapsibleTableRow, type ColumnsOccupied, CommentIcon, Contrast, type ContrastProps, CookieBanner, CookieBannerCheckbox, type CookieBannerCheckboxProps, type CookieBannerProps, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, type DatePickerProps, DateRangeIcon, DdsProvider, type DdsProviderProps, type DdsTheme, DeathsIcon, DescriptionList, type DescriptionListAppearance, DescriptionListDesc, type DescriptionListDescProps, DescriptionListGroup, type DescriptionListGroupProps, type DescriptionListProps, DescriptionListTerm, type DescriptionListTermProps, DetailList, DetailListDesc, type DetailListDescProps, type DetailListProps, DetailListRow, type DetailListRowProps, type DetailListSize, DetailListTerm, type DetailListTermProps, type Direction$1 as Direction, Divider, type DividerColor, type DividerProps, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, type DrawerGroupProps, type DrawerPlacement, type DrawerProps, type DrawerSize, DropdownHeader, DropdownItem, type DropdownItemButtonProps, type DropdownItemCustomProps, type DropdownItemProps, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, ErrorSummary, ErrorSummaryItem, type ErrorSummaryItemProps, type ErrorSummaryProps, ExclaimIcon, ExpandIcon, type ExtractStrict, FacebookIcon, FamilyIcon, FavStar, type FavStarProps, Feedback, FeedbackIcon, type FeedbackProps, Fieldset, FieldsetGroup, type FieldsetGroupProps, type FieldsetProps, FileAddIcon, FileIcon, type FileList, FileShieldedIcon, FileTextIcon, FileUploader, type FileUploaderAccept, type FileUploaderProps, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, type FloatingStyles, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, type FooterLeftProps, FooterList, FooterListGroup, type FooterListGroupProps, FooterListHeader, type FooterListHeaderProps, type FooterListProps, FooterLogo, type FooterLogoProps, type FooterProps, FooterSocialsGroup, type FooterSocialsGroupProps, FooterSocialsList, type FooterSocialsListProps, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, type FormSummaryProps, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, type GlobalMessageProps, type GlobalMessagePurpose, Grid, GridChild, type GridChildProps, type GridProps, GroupIcon, GuardianIcon, HStack, type HStackProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, type HyphenTypographyType, Icon, type IconPosition, type IconProps, type IconSize, ImageIcon, InfoIcon, InlineButton, type InlineButtonProps, InlineEditInput, type InlineEditInputProps, InlineEditSelect, type InlineEditSelectProps, InlineEditTextArea, type InlineEditTextAreaProps, type InlineElement, InputMessage, type InputMessageProps, type InputMessageType, InstagramIcon, InternalHeader, type InternalHeaderProps, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LineChartIcon, Link, LinkIcon, LinkOffIcon, type LinkProps, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, type ListItemProps, type ListProps, type ListType, type ListTypographyType, LocalMessage, type LocalMessageLayout, type LocalMessageProps, type LocalMessagePurpose, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, type NativeSelectProps, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, type Nullable, OnlineMeetingIcon, OpenExternalIcon, type OtherTypographyType, OverflowMenu, OverflowMenuButton, type OverflowMenuButtonProps, OverflowMenuDivider, OverflowMenuGroup, type OverflowMenuGroupProps, OverflowMenuLink, type OverflowMenuLinkProps, OverflowMenuList, OverflowMenuListHeader, type OverflowMenuProps, OverflowMenuSpan, type OverflowMenuSpanProps, OverflowMenuToggle, type OverflowMenuToggleProps, Pagination, type PaginationOption, type PaginationProps, PanelLeftIcon, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, PaperPlaneIcon, type PaperProps, Paragraph, type ParagraphProps, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, type PhoneInputProps, type PhoneInputValue, PinIcon, type Placement, PlusCircledIcon, PlusIcon, type PolymorphicBaseComponentProps, type PolymorphicProps, Popover, PopoverGroup, type PopoverGroupProps, type PopoverProps, type PopoverSizeProps, PowerOfAttorneyIcon, PrintIcon, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressTracker, ProgressTrackerItem, type ProgressTrackerItemProps, type ProgressTrackerProps, PublishIcon, type Purpose, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, type RemoteFile, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, type SearchAutocompleteWrapperProps, type SearchButtonProps, type SearchData, SearchIcon, type SearchProps, type SearchSize, SearchSuggestions, type SearchSuggestionsProps, SectionIcon, Select, type SelectForwardRefType, type SelectOption, type SelectProps, SettingsIcon, ShowHide, type ShowHideProps, type Size, Skeleton, type SkeletonAppearance, type SkeletonProps, SkipToContent, type SkipToContentProps, SmsIcon, type SortOrder, type SpacingScale, Spinner, type SpinnerProps, SplitButton, type SplitButtonPrimaryActionProps, type SplitButtonProps, type SplitButtonPurpose, type SplitButtonSecondaryActionsProps, StarFilledIcon, StarHalfFilledIcon, StarIcon, type StaticTypographyType, StickyNoteIcon, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, SunIcon, SupportIcon, type SvgIcon, type SvgProps, SyncIcon, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, TableWrapper, Tabs, type TabsProps, Tag, type TagAppearance, type TagProps, type TagPurpose, type TextAffixProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, type TimePickerProps, TingrettIcon, TipIcon, Toggle, ToggleBar, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleProps, ToggleRadio, type ToggleRadioProps, type ToggleSize, Tooltip, type TooltipProps, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, type TypographyAnchorType, type TypographyBodyLongType, type TypographyBodyShortType, type TypographyBodyType, type TypographyComponentProps, type TypographyHeadingType, type TypographyLabelType, type TypographyLeadType, type TypographyProps, type TypographyType, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, type UseControllableGroupStateProps, type UseControllableStateProps, type UseFloatPositionOptions, VStack, type VStackProps, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, type VisuallyHiddenProps, WarningIcon, WebexIcon, type WeightedSearchData, type WithRequiredIf, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, countryOptions, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, getLiteralScreenSize, getTypographyCn, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, index as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, typographyTypes, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };
|
|
5492
|
+
export { Accordion, AccordionBody, type AccordionBodyProps, type AccordionConfig, AccordionContextProvider, AccordionHeader, type AccordionHeaderProps, type AccordionProps, type AccordionState, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, type AnimatedChevronUpDownIconStates, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, type BackLinkProps, Backdrop, BarChartBoxedIcon, BarChartIcon, type BaseComponentProps, type BaseComponentPropsWithChildren, type BaseItemProps, type BaseLabelProps, type BaseTypographyProps, BlockIcon, BookIcon, type BorderColor, type BorderRadius, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonPurpose, type ButtonSize, Calendar, CalendarIcon, CalendarMonthIcon, type CalendarProps, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, type Callback, Caption, type CaptionProps, Card, CardExpandable, CardExpandableBody, type CardExpandableBodyProps, CardExpandableHeader, type CardExpandableHeaderProps, type CardExpandableProps, type CardProps, CardSelectable, CardSelectableGroup, type CardSelectableGroupProps, type CardSelectableProps, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxPickedHTMLAttributes, type CheckboxProps, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, type CollapsibleTableProps, CollapsibleRow as CollapsibleTableRow, type ColumnsOccupied, CommentIcon, Contrast, type ContrastProps, CookieBanner, CookieBannerCheckbox, type CookieBannerCheckboxProps, type CookieBannerProps, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, type DatePickerProps, DateRangeIcon, DdsProvider, type DdsProviderProps, type DdsTheme, DeathsIcon, DescriptionList, type DescriptionListAppearance, DescriptionListDesc, type DescriptionListDescProps, DescriptionListGroup, type DescriptionListGroupProps, type DescriptionListProps, DescriptionListTerm, type DescriptionListTermProps, DetailList, DetailListDesc, type DetailListDescProps, type DetailListProps, DetailListRow, type DetailListRowProps, type DetailListSize, DetailListTerm, type DetailListTermProps, type Direction$1 as Direction, Divider, type DividerColor, type DividerProps, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, type DrawerGroupProps, type DrawerPlacement, type DrawerProps, type DrawerSize, DropdownHeader, DropdownItem, type DropdownItemButtonProps, type DropdownItemCustomProps, type DropdownItemProps, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, ErrorSummary, ErrorSummaryItem, type ErrorSummaryItemProps, type ErrorSummaryProps, ExclaimIcon, ExpandIcon, type ExtractStrict, FacebookIcon, FamilyIcon, FavStar, type FavStarProps, Feedback, FeedbackIcon, type FeedbackProps, Fieldset, FieldsetGroup, type FieldsetGroupProps, type FieldsetProps, FileAddIcon, FileIcon, type FileList, FileShieldedIcon, FileTextIcon, FileUploader, type FileUploaderAccept, type FileUploaderProps, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, type FloatingStyles, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, type FooterLeftProps, FooterList, FooterListGroup, type FooterListGroupProps, FooterListHeader, type FooterListHeaderProps, type FooterListProps, FooterLogo, type FooterLogoProps, type FooterProps, FooterSocialsGroup, type FooterSocialsGroupProps, FooterSocialsList, type FooterSocialsListProps, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, type FormSummaryProps, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, type GlobalMessageProps, type GlobalMessagePurpose, Grid, GridChild, type GridChildProps, type GridProps, GroupIcon, GuardianIcon, HStack, type HStackProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, type HyphenTypographyType, Icon, type IconPosition, type IconProps, type IconSize, ImageIcon, InfoIcon, InlineButton, type InlineButtonProps, InlineEditInput, type InlineEditInputProps, InlineEditSelect, type InlineEditSelectProps, InlineEditTextArea, type InlineEditTextAreaProps, type InlineElement, InputMessage, type InputMessageProps, type InputMessageType, InstagramIcon, InternalHeader, type InternalHeaderProps, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LineChartIcon, Link, LinkIcon, LinkOffIcon, type LinkProps, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, type ListItemProps, type ListProps, type ListType, type ListTypographyType, LocalMessage, type LocalMessageLayout, type LocalMessageProps, type LocalMessagePurpose, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, type NativeSelectProps, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, type Nullable, OnlineMeetingIcon, OpenExternalIcon, type OtherTypographyType, OverflowMenu, OverflowMenuButton, type OverflowMenuButtonProps, OverflowMenuDivider, OverflowMenuGroup, type OverflowMenuGroupProps, OverflowMenuLink, type OverflowMenuLinkProps, OverflowMenuList, OverflowMenuListHeader, type OverflowMenuProps, OverflowMenuSpan, type OverflowMenuSpanProps, OverflowMenuToggle, type OverflowMenuToggleProps, Pagination, type PaginationOption, type PaginationProps, PanelLeftIcon, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, PaperPlaneIcon, type PaperProps, Paragraph, type ParagraphProps, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, type PhoneInputProps, type PhoneInputValue, PinIcon, type Placement, PlusCircledIcon, PlusIcon, type PolymorphicBaseComponentProps, type PolymorphicProps, Popover, PopoverGroup, type PopoverGroupProps, type PopoverProps, type PopoverSizeProps, PowerOfAttorneyIcon, PrintIcon, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressTracker, ProgressTrackerItem, type ProgressTrackerItemProps, type ProgressTrackerProps, PublishIcon, type Purpose, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, type RemoteFile, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, type SearchAutocompleteWrapperProps, type SearchButtonProps, type SearchData, SearchIcon, type SearchProps, type SearchSize, SearchSuggestions, type SearchSuggestionsProps, SectionIcon, Select, type SelectForwardRefType, type SelectOption, type SelectProps, SettingsIcon, ShowHide, type ShowHideProps, type Size, Skeleton, type SkeletonAppearance, type SkeletonProps, SkipToContent, type SkipToContentProps, SmsIcon, type SortOrder, type SpacingScale, Spinner, type SpinnerProps, SplitButton, type SplitButtonPrimaryActionProps, type SplitButtonProps, type SplitButtonPurpose, type SplitButtonSecondaryActionsProps, StarFilledIcon, StarHalfFilledIcon, StarIcon, type StaticTypographyType, StickyNoteIcon, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, SunIcon, SupportIcon, type SvgIcon, type SvgProps, SyncIcon, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, TableWrapper, Tabs, type TabsProps, Tag, type TagAppearance, type TagProps, type TagPurpose, type TextAffixProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, type TimePickerProps, TingrettIcon, TipIcon, Toggle, ToggleBar, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleProps, ToggleRadio, type ToggleRadioProps, type ToggleSize, Tooltip, type TooltipProps, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, type TypographyAnchorType, type TypographyBodyLongType, type TypographyBodyShortType, type TypographyBodyType, type TypographyComponentProps, type TypographyHeadingType, type TypographyLabelType, type TypographyLeadType, type TypographyProps, type TypographyType, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, type UseAccordionBodyProps, type UseAccordionHeaderProps, type UseControllableGroupStateProps, type UseControllableStateProps, type UseFloatPositionOptions, VStack, type VStackProps, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, type VisuallyHiddenProps, WarningIcon, WebexIcon, type WeightedSearchData, type WithRequiredIf, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, countryOptions, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, getLiteralScreenSize, getTypographyCn, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, index as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, typographyTypes, useAccordion, useAccordionContext, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
|
-
import { ComponentPropsWithRef, ElementType, CSSProperties, Ref, ComponentPropsWithoutRef, HTMLAttributes,
|
|
2
|
+
import { Dispatch, SetStateAction, RefObject, ReactNode, ComponentPropsWithRef, ElementType, CSSProperties, Ref, ComponentPropsWithoutRef, HTMLAttributes, SVGAttributes, JSX, ButtonHTMLAttributes, ComponentProps, InputHTMLAttributes, MouseEventHandler, DependencyList, RefCallback, ChangeEvent, KeyboardEvent as KeyboardEvent$1, AnchorHTMLAttributes, LabelHTMLAttributes, AriaRole, FocusEvent, ForwardedRef, ForwardRefExoticComponent, MouseEvent as MouseEvent$1, ReactElement } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as CSS from 'csstype';
|
|
5
5
|
import { Property, StandardProperties } from 'csstype';
|
|
6
6
|
import { Strategy, UseFloatingReturn, Placement as Placement$1 } from '@floating-ui/react-dom';
|
|
@@ -11,6 +11,146 @@ import { AriaDatePickerProps } from '@react-types/datepicker';
|
|
|
11
11
|
import { AriaDateFieldOptions, useDatePicker, AriaTimeFieldProps } from '@react-aria/datepicker';
|
|
12
12
|
import { OptionProps, GroupBase, SingleValueProps, SelectInstance, Props } from 'react-select';
|
|
13
13
|
|
|
14
|
+
interface AccordionConfig {
|
|
15
|
+
/**
|
|
16
|
+
* Ukontrollerttilstand: om utvidbare delen skal være utvidet ved første render.
|
|
17
|
+
*/
|
|
18
|
+
isInitiallyExpanded?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Kontrollert tilstand: om utvidbare delen er utvidet.
|
|
21
|
+
*/
|
|
22
|
+
isExpanded?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Callback når tilstanden endres.
|
|
25
|
+
*/
|
|
26
|
+
onChange?: (expanded: boolean) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Custom id for accordion; delene får i tillegg suffix `'header'` og `'body'`.
|
|
29
|
+
*/
|
|
30
|
+
id?: string;
|
|
31
|
+
}
|
|
32
|
+
interface UseAccordionHeaderProps {
|
|
33
|
+
/**
|
|
34
|
+
* `onClick` som kontrollerer lukking og åpning av accordion, og eventuelt `onChange` satt i config
|
|
35
|
+
*/
|
|
36
|
+
onClick: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* Nativ `aria-expanded`.
|
|
39
|
+
*/
|
|
40
|
+
'aria-expanded': boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Nativ `aria-controls`.
|
|
43
|
+
*/
|
|
44
|
+
'aria-controls': string;
|
|
45
|
+
/**
|
|
46
|
+
* Id, settes for riktig bruk av aria-props.
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
49
|
+
}
|
|
50
|
+
interface UseAccordionBodyProps {
|
|
51
|
+
/**
|
|
52
|
+
* Id, settes for riktig bruk av aria-props.
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
/**
|
|
56
|
+
* Nativ `role`. Gir innholdet en rolle tilgjengelig for skjermlesere.
|
|
57
|
+
*/
|
|
58
|
+
role: string;
|
|
59
|
+
/**
|
|
60
|
+
* Nativ `aria-labelledby`.
|
|
61
|
+
*/
|
|
62
|
+
'aria-labelledby': string;
|
|
63
|
+
/**
|
|
64
|
+
* Nativ `aria-hidden`.
|
|
65
|
+
*/
|
|
66
|
+
'aria-hidden': boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Høyde som skal settes i CSS for animasjon.
|
|
69
|
+
*/
|
|
70
|
+
height?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Klassenavn for innhold-wrapper; håndterer animasjon og lukking.
|
|
73
|
+
*/
|
|
74
|
+
className?: string;
|
|
75
|
+
}
|
|
76
|
+
interface AccordionState {
|
|
77
|
+
/**
|
|
78
|
+
* Id, settes for riktig bruk av aria-props.
|
|
79
|
+
*/
|
|
80
|
+
id: string;
|
|
81
|
+
/**
|
|
82
|
+
* Om accordion er utvided.
|
|
83
|
+
*/
|
|
84
|
+
isExpanded: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* State funksjon som setter `isExpanded` ved behov.
|
|
87
|
+
*/
|
|
88
|
+
setIsExpanded: Dispatch<SetStateAction<boolean>>;
|
|
89
|
+
/**
|
|
90
|
+
* Funksjon som åpner accordion. Brukes ved behov.
|
|
91
|
+
*/
|
|
92
|
+
openAccordion: () => void;
|
|
93
|
+
/**
|
|
94
|
+
* Funksjon som lukker accordion. Brukes ved behov.
|
|
95
|
+
*/
|
|
96
|
+
closeAccordion: () => void;
|
|
97
|
+
/**
|
|
98
|
+
* Funksjon som toggler accordion. Brukes ved behov.
|
|
99
|
+
*/
|
|
100
|
+
toggleExpanded: () => void;
|
|
101
|
+
/**
|
|
102
|
+
* Props som settes på header-elementet.
|
|
103
|
+
*/
|
|
104
|
+
headerProps: UseAccordionHeaderProps;
|
|
105
|
+
/**
|
|
106
|
+
* Props som settes på innholds-elementet.
|
|
107
|
+
*/
|
|
108
|
+
bodyProps: UseAccordionBodyProps;
|
|
109
|
+
/**
|
|
110
|
+
* Ref som settes på wrapper inni innholds-elementet; Sørger for animasjon.
|
|
111
|
+
*/
|
|
112
|
+
bodyContentRef: RefObject<HTMLDivElement | null>;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Implementerer trekkspill-mønsteret; header som utvider og trekker sammen et panel. Håndterer oppførsel, UU og visuelle effekter.
|
|
116
|
+
* @returns {AccordionState} accordion state og props å bruke på acccordion-elementer: header og body.
|
|
117
|
+
* @example
|
|
118
|
+
* ```tsx
|
|
119
|
+
* function MyComponent() {
|
|
120
|
+
*
|
|
121
|
+
* const { isExpanded, bodyContentRef, headerProps, bodyProps } = useAccordion({});
|
|
122
|
+
* const { height, ...restBodyProps } = bodyProps;
|
|
123
|
+
*
|
|
124
|
+
* return (
|
|
125
|
+
* <>
|
|
126
|
+
* <button {...headerProps}>
|
|
127
|
+
* {isExpanded ? 'Skjul' : 'Vis'} innhold
|
|
128
|
+
* </button>
|
|
129
|
+
* <div style={{height}} {...restBodyProps}>
|
|
130
|
+
* <div ref={bodyContentRef}>
|
|
131
|
+
* innhold
|
|
132
|
+
* </div>
|
|
133
|
+
* </div>
|
|
134
|
+
* </>
|
|
135
|
+
* )
|
|
136
|
+
* });
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
declare const useAccordion: ({ isInitiallyExpanded, isExpanded: isExpandedProp, onChange, id, }: AccordionConfig) => AccordionState;
|
|
140
|
+
|
|
141
|
+
interface AccordionContext {
|
|
142
|
+
headerProps: UseAccordionHeaderProps;
|
|
143
|
+
bodyProps: UseAccordionBodyProps;
|
|
144
|
+
isExpanded: boolean;
|
|
145
|
+
toggleExpanded: () => void;
|
|
146
|
+
bodyContentRef: RefObject<HTMLDivElement | null>;
|
|
147
|
+
}
|
|
148
|
+
declare const AccordionContext: react.Context<Partial<AccordionContext>>;
|
|
149
|
+
declare const AccordionContextProvider: ({ children, ...values }: AccordionContext & {
|
|
150
|
+
children: ReactNode;
|
|
151
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
152
|
+
declare const useAccordionContext: () => Partial<AccordionContext>;
|
|
153
|
+
|
|
14
154
|
declare function handleElementWithBackdropMount(container: HTMLElement): void;
|
|
15
155
|
declare function handleElementWithBackdropUnmount(container: HTMLElement): void;
|
|
16
156
|
|
|
@@ -256,6 +396,7 @@ declare const Button: {
|
|
|
256
396
|
|
|
257
397
|
declare const TOGGLE_SIZES: ["medium", "large"];
|
|
258
398
|
type ToggleSize = (typeof TOGGLE_SIZES)[number];
|
|
399
|
+
type ToggleVariant = 'default' | 'colorScheme';
|
|
259
400
|
type ToggleProps = BaseComponentProps<HTMLElement, {
|
|
260
401
|
/**Ledetekst; tillater bruk av f.eks. `<VisuallyHidden>` for usynlig tekst. */
|
|
261
402
|
children?: ReactNode;
|
|
@@ -287,9 +428,14 @@ type ToggleProps = BaseComponentProps<HTMLElement, {
|
|
|
287
428
|
* @default "medium"
|
|
288
429
|
*/
|
|
289
430
|
size?: ToggleSize;
|
|
431
|
+
/**
|
|
432
|
+
* Variant basert på bruksområde.
|
|
433
|
+
* @default "default"
|
|
434
|
+
*/
|
|
435
|
+
variant?: ToggleVariant;
|
|
290
436
|
} & Pick<ComponentProps<'input'>, 'name' | 'aria-describedby' | 'onBlur'>, InputHTMLAttributes<HTMLInputElement>>;
|
|
291
437
|
declare const Toggle: {
|
|
292
|
-
({ id, children, size, checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, style, htmlProps, ...rest }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
438
|
+
({ id, children, size, checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, style, htmlProps, variant, ...rest }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
293
439
|
displayName: string;
|
|
294
440
|
};
|
|
295
441
|
|
|
@@ -3298,25 +3444,6 @@ type PropsOfWithRef<T extends ElementType> = ComponentPropsWithRef<T> & {
|
|
|
3298
3444
|
type PolymorphicProps<T extends ElementType> = PropsOfWithRef<T>;
|
|
3299
3445
|
declare const ElementAs: <T extends ElementType>({ as, ref, children, ...props }: PolymorphicProps<T>) => react_jsx_runtime.JSX.Element;
|
|
3300
3446
|
|
|
3301
|
-
interface AccordionConfig {
|
|
3302
|
-
/**
|
|
3303
|
-
* Ukontrollerttilstand: om utvidbare delen skal være utvidet ved første render.
|
|
3304
|
-
*/
|
|
3305
|
-
isInitiallyExpanded?: boolean;
|
|
3306
|
-
/**
|
|
3307
|
-
* Kontrollert tilstand: om utvidbare delen er utvidet.
|
|
3308
|
-
*/
|
|
3309
|
-
isExpanded?: boolean;
|
|
3310
|
-
/**
|
|
3311
|
-
* Callback når tilstanden endres.
|
|
3312
|
-
*/
|
|
3313
|
-
onChange?: (expanded: boolean) => void;
|
|
3314
|
-
/**
|
|
3315
|
-
* Custom id for accordion; delene får i tillegg suffix `'header'` og `'body'`.
|
|
3316
|
-
*/
|
|
3317
|
-
id?: string;
|
|
3318
|
-
}
|
|
3319
|
-
|
|
3320
3447
|
type AccordionProps = BaseComponentPropsWithChildren<HTMLDivElement, Pick<AccordionConfig, 'isExpanded' | 'isInitiallyExpanded' | 'onChange'>>;
|
|
3321
3448
|
declare const Accordion: {
|
|
3322
3449
|
({ isInitiallyExpanded, isExpanded, onChange, id, children, className, style, htmlProps, ...rest }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3443,9 +3570,11 @@ type LinkProps<T extends ElementType = 'a'> = PolymorphicBaseComponentProps<T, {
|
|
|
3443
3570
|
withVisited?: boolean;
|
|
3444
3571
|
/**Spesifiserer typografistil basert på utvalget for brødtekst. Arver hvis ikke oppgitt. */
|
|
3445
3572
|
typographyType?: TypographyBodyType;
|
|
3573
|
+
/**Tvinger komponenten til å behandle `as` som en anchor tag wrapper og forwarde anchor-spesifikke props (target, rel). Bruk når custom `as` komponent wrapper en `<a>` tag. */
|
|
3574
|
+
isAnchor?: boolean;
|
|
3446
3575
|
} & BaseTypographyProps & PickedHTMLAttributes$2>;
|
|
3447
3576
|
declare const Link: {
|
|
3448
|
-
<T extends ElementType = "a">({ id, className, htmlProps, children, typographyType, withMargins, withVisited, external, target, style, color, as: propAs, ...rest }: LinkProps<T>): react_jsx_runtime.JSX.Element;
|
|
3577
|
+
<T extends ElementType = "a">({ id, className, htmlProps, children, typographyType, withMargins, withVisited, external, target, style, color, as: propAs, isAnchor: propIsAnchor, ...rest }: LinkProps<T>): react_jsx_runtime.JSX.Element;
|
|
3449
3578
|
displayName: string;
|
|
3450
3579
|
};
|
|
3451
3580
|
|
|
@@ -5018,6 +5147,10 @@ type TableProps = {
|
|
|
5018
5147
|
stickyHeader?: boolean;
|
|
5019
5148
|
/**Legger skillelinjer mellom radene. */
|
|
5020
5149
|
withDividers?: boolean;
|
|
5150
|
+
/**Rader veksler bakgrunnsfarge.
|
|
5151
|
+
* @default true
|
|
5152
|
+
*/
|
|
5153
|
+
withStripes?: boolean;
|
|
5021
5154
|
} & ComponentPropsWithRef<'table'>;
|
|
5022
5155
|
type HeaderValues = Array<{
|
|
5023
5156
|
key: string;
|
|
@@ -5062,7 +5195,7 @@ declare const SortCell: {
|
|
|
5062
5195
|
};
|
|
5063
5196
|
|
|
5064
5197
|
declare const Table$1: {
|
|
5065
|
-
({ size, stickyHeader, withDividers, className, children, ...rest }: TableProps): react_jsx_runtime.JSX.Element;
|
|
5198
|
+
({ size, stickyHeader, withDividers, withStripes, className, children, ...rest }: TableProps): react_jsx_runtime.JSX.Element;
|
|
5066
5199
|
displayName: string;
|
|
5067
5200
|
};
|
|
5068
5201
|
|
|
@@ -5356,4 +5489,4 @@ declare const VisuallyHidden: {
|
|
|
5356
5489
|
displayName: string;
|
|
5357
5490
|
};
|
|
5358
5491
|
|
|
5359
|
-
export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, type AccordionProps, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, type AnimatedChevronUpDownIconStates, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, type BackLinkProps, Backdrop, BarChartBoxedIcon, BarChartIcon, type BaseComponentProps, type BaseComponentPropsWithChildren, type BaseItemProps, type BaseLabelProps, type BaseTypographyProps, BlockIcon, BookIcon, type BorderColor, type BorderRadius, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonPurpose, type ButtonSize, Calendar, CalendarIcon, CalendarMonthIcon, type CalendarProps, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, type Callback, Caption, type CaptionProps, Card, CardExpandable, CardExpandableBody, type CardExpandableBodyProps, CardExpandableHeader, type CardExpandableHeaderProps, type CardExpandableProps, type CardProps, CardSelectable, CardSelectableGroup, type CardSelectableGroupProps, type CardSelectableProps, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxPickedHTMLAttributes, type CheckboxProps, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, type CollapsibleTableProps, CollapsibleRow as CollapsibleTableRow, type ColumnsOccupied, CommentIcon, Contrast, type ContrastProps, CookieBanner, CookieBannerCheckbox, type CookieBannerCheckboxProps, type CookieBannerProps, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, type DatePickerProps, DateRangeIcon, DdsProvider, type DdsProviderProps, type DdsTheme, DeathsIcon, DescriptionList, type DescriptionListAppearance, DescriptionListDesc, type DescriptionListDescProps, DescriptionListGroup, type DescriptionListGroupProps, type DescriptionListProps, DescriptionListTerm, type DescriptionListTermProps, DetailList, DetailListDesc, type DetailListDescProps, type DetailListProps, DetailListRow, type DetailListRowProps, type DetailListSize, DetailListTerm, type DetailListTermProps, type Direction$1 as Direction, Divider, type DividerColor, type DividerProps, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, type DrawerGroupProps, type DrawerPlacement, type DrawerProps, type DrawerSize, DropdownHeader, DropdownItem, type DropdownItemButtonProps, type DropdownItemCustomProps, type DropdownItemProps, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, ErrorSummary, ErrorSummaryItem, type ErrorSummaryItemProps, type ErrorSummaryProps, ExclaimIcon, ExpandIcon, type ExtractStrict, FacebookIcon, FamilyIcon, FavStar, type FavStarProps, Feedback, FeedbackIcon, type FeedbackProps, Fieldset, FieldsetGroup, type FieldsetGroupProps, type FieldsetProps, FileAddIcon, FileIcon, type FileList, FileShieldedIcon, FileTextIcon, FileUploader, type FileUploaderAccept, type FileUploaderProps, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, type FloatingStyles, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, type FooterLeftProps, FooterList, FooterListGroup, type FooterListGroupProps, FooterListHeader, type FooterListHeaderProps, type FooterListProps, FooterLogo, type FooterLogoProps, type FooterProps, FooterSocialsGroup, type FooterSocialsGroupProps, FooterSocialsList, type FooterSocialsListProps, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, type FormSummaryProps, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, type GlobalMessageProps, type GlobalMessagePurpose, Grid, GridChild, type GridChildProps, type GridProps, GroupIcon, GuardianIcon, HStack, type HStackProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, type HyphenTypographyType, Icon, type IconPosition, type IconProps, type IconSize, ImageIcon, InfoIcon, InlineButton, type InlineButtonProps, InlineEditInput, type InlineEditInputProps, InlineEditSelect, type InlineEditSelectProps, InlineEditTextArea, type InlineEditTextAreaProps, type InlineElement, InputMessage, type InputMessageProps, type InputMessageType, InstagramIcon, InternalHeader, type InternalHeaderProps, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LineChartIcon, Link, LinkIcon, LinkOffIcon, type LinkProps, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, type ListItemProps, type ListProps, type ListType, type ListTypographyType, LocalMessage, type LocalMessageLayout, type LocalMessageProps, type LocalMessagePurpose, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, type NativeSelectProps, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, type Nullable, OnlineMeetingIcon, OpenExternalIcon, type OtherTypographyType, OverflowMenu, OverflowMenuButton, type OverflowMenuButtonProps, OverflowMenuDivider, OverflowMenuGroup, type OverflowMenuGroupProps, OverflowMenuLink, type OverflowMenuLinkProps, OverflowMenuList, OverflowMenuListHeader, type OverflowMenuProps, OverflowMenuSpan, type OverflowMenuSpanProps, OverflowMenuToggle, type OverflowMenuToggleProps, Pagination, type PaginationOption, type PaginationProps, PanelLeftIcon, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, PaperPlaneIcon, type PaperProps, Paragraph, type ParagraphProps, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, type PhoneInputProps, type PhoneInputValue, PinIcon, type Placement, PlusCircledIcon, PlusIcon, type PolymorphicBaseComponentProps, type PolymorphicProps, Popover, PopoverGroup, type PopoverGroupProps, type PopoverProps, type PopoverSizeProps, PowerOfAttorneyIcon, PrintIcon, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressTracker, ProgressTrackerItem, type ProgressTrackerItemProps, type ProgressTrackerProps, PublishIcon, type Purpose, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, type RemoteFile, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, type SearchAutocompleteWrapperProps, type SearchButtonProps, type SearchData, SearchIcon, type SearchProps, type SearchSize, SearchSuggestions, type SearchSuggestionsProps, SectionIcon, Select, type SelectForwardRefType, type SelectOption, type SelectProps, SettingsIcon, ShowHide, type ShowHideProps, type Size, Skeleton, type SkeletonAppearance, type SkeletonProps, SkipToContent, type SkipToContentProps, SmsIcon, type SortOrder, type SpacingScale, Spinner, type SpinnerProps, SplitButton, type SplitButtonPrimaryActionProps, type SplitButtonProps, type SplitButtonPurpose, type SplitButtonSecondaryActionsProps, StarFilledIcon, StarHalfFilledIcon, StarIcon, type StaticTypographyType, StickyNoteIcon, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, SunIcon, SupportIcon, type SvgIcon, type SvgProps, SyncIcon, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, TableWrapper, Tabs, type TabsProps, Tag, type TagAppearance, type TagProps, type TagPurpose, type TextAffixProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, type TimePickerProps, TingrettIcon, TipIcon, Toggle, ToggleBar, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleProps, ToggleRadio, type ToggleRadioProps, type ToggleSize, Tooltip, type TooltipProps, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, type TypographyAnchorType, type TypographyBodyLongType, type TypographyBodyShortType, type TypographyBodyType, type TypographyComponentProps, type TypographyHeadingType, type TypographyLabelType, type TypographyLeadType, type TypographyProps, type TypographyType, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, type UseControllableGroupStateProps, type UseControllableStateProps, type UseFloatPositionOptions, VStack, type VStackProps, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, type VisuallyHiddenProps, WarningIcon, WebexIcon, type WeightedSearchData, type WithRequiredIf, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, countryOptions, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, getLiteralScreenSize, getTypographyCn, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, index as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, typographyTypes, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };
|
|
5492
|
+
export { Accordion, AccordionBody, type AccordionBodyProps, type AccordionConfig, AccordionContextProvider, AccordionHeader, type AccordionHeaderProps, type AccordionProps, type AccordionState, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, type AnimatedChevronUpDownIconStates, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, type BackLinkProps, Backdrop, BarChartBoxedIcon, BarChartIcon, type BaseComponentProps, type BaseComponentPropsWithChildren, type BaseItemProps, type BaseLabelProps, type BaseTypographyProps, BlockIcon, BookIcon, type BorderColor, type BorderRadius, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonPurpose, type ButtonSize, Calendar, CalendarIcon, CalendarMonthIcon, type CalendarProps, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, type Callback, Caption, type CaptionProps, Card, CardExpandable, CardExpandableBody, type CardExpandableBodyProps, CardExpandableHeader, type CardExpandableHeaderProps, type CardExpandableProps, type CardProps, CardSelectable, CardSelectableGroup, type CardSelectableGroupProps, type CardSelectableProps, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxPickedHTMLAttributes, type CheckboxProps, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, type CollapsibleTableProps, CollapsibleRow as CollapsibleTableRow, type ColumnsOccupied, CommentIcon, Contrast, type ContrastProps, CookieBanner, CookieBannerCheckbox, type CookieBannerCheckboxProps, type CookieBannerProps, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, type DatePickerProps, DateRangeIcon, DdsProvider, type DdsProviderProps, type DdsTheme, DeathsIcon, DescriptionList, type DescriptionListAppearance, DescriptionListDesc, type DescriptionListDescProps, DescriptionListGroup, type DescriptionListGroupProps, type DescriptionListProps, DescriptionListTerm, type DescriptionListTermProps, DetailList, DetailListDesc, type DetailListDescProps, type DetailListProps, DetailListRow, type DetailListRowProps, type DetailListSize, DetailListTerm, type DetailListTermProps, type Direction$1 as Direction, Divider, type DividerColor, type DividerProps, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, type DrawerGroupProps, type DrawerPlacement, type DrawerProps, type DrawerSize, DropdownHeader, DropdownItem, type DropdownItemButtonProps, type DropdownItemCustomProps, type DropdownItemProps, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, ErrorSummary, ErrorSummaryItem, type ErrorSummaryItemProps, type ErrorSummaryProps, ExclaimIcon, ExpandIcon, type ExtractStrict, FacebookIcon, FamilyIcon, FavStar, type FavStarProps, Feedback, FeedbackIcon, type FeedbackProps, Fieldset, FieldsetGroup, type FieldsetGroupProps, type FieldsetProps, FileAddIcon, FileIcon, type FileList, FileShieldedIcon, FileTextIcon, FileUploader, type FileUploaderAccept, type FileUploaderProps, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, type FloatingStyles, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, type FooterLeftProps, FooterList, FooterListGroup, type FooterListGroupProps, FooterListHeader, type FooterListHeaderProps, type FooterListProps, FooterLogo, type FooterLogoProps, type FooterProps, FooterSocialsGroup, type FooterSocialsGroupProps, FooterSocialsList, type FooterSocialsListProps, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, type FormSummaryProps, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, type GlobalMessageProps, type GlobalMessagePurpose, Grid, GridChild, type GridChildProps, type GridProps, GroupIcon, GuardianIcon, HStack, type HStackProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, type HyphenTypographyType, Icon, type IconPosition, type IconProps, type IconSize, ImageIcon, InfoIcon, InlineButton, type InlineButtonProps, InlineEditInput, type InlineEditInputProps, InlineEditSelect, type InlineEditSelectProps, InlineEditTextArea, type InlineEditTextAreaProps, type InlineElement, InputMessage, type InputMessageProps, type InputMessageType, InstagramIcon, InternalHeader, type InternalHeaderProps, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LineChartIcon, Link, LinkIcon, LinkOffIcon, type LinkProps, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, type ListItemProps, type ListProps, type ListType, type ListTypographyType, LocalMessage, type LocalMessageLayout, type LocalMessageProps, type LocalMessagePurpose, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, type NativeSelectProps, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, type Nullable, OnlineMeetingIcon, OpenExternalIcon, type OtherTypographyType, OverflowMenu, OverflowMenuButton, type OverflowMenuButtonProps, OverflowMenuDivider, OverflowMenuGroup, type OverflowMenuGroupProps, OverflowMenuLink, type OverflowMenuLinkProps, OverflowMenuList, OverflowMenuListHeader, type OverflowMenuProps, OverflowMenuSpan, type OverflowMenuSpanProps, OverflowMenuToggle, type OverflowMenuToggleProps, Pagination, type PaginationOption, type PaginationProps, PanelLeftIcon, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, PaperPlaneIcon, type PaperProps, Paragraph, type ParagraphProps, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, type PhoneInputProps, type PhoneInputValue, PinIcon, type Placement, PlusCircledIcon, PlusIcon, type PolymorphicBaseComponentProps, type PolymorphicProps, Popover, PopoverGroup, type PopoverGroupProps, type PopoverProps, type PopoverSizeProps, PowerOfAttorneyIcon, PrintIcon, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressTracker, ProgressTrackerItem, type ProgressTrackerItemProps, type ProgressTrackerProps, PublishIcon, type Purpose, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, type RemoteFile, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, type SearchAutocompleteWrapperProps, type SearchButtonProps, type SearchData, SearchIcon, type SearchProps, type SearchSize, SearchSuggestions, type SearchSuggestionsProps, SectionIcon, Select, type SelectForwardRefType, type SelectOption, type SelectProps, SettingsIcon, ShowHide, type ShowHideProps, type Size, Skeleton, type SkeletonAppearance, type SkeletonProps, SkipToContent, type SkipToContentProps, SmsIcon, type SortOrder, type SpacingScale, Spinner, type SpinnerProps, SplitButton, type SplitButtonPrimaryActionProps, type SplitButtonProps, type SplitButtonPurpose, type SplitButtonSecondaryActionsProps, StarFilledIcon, StarHalfFilledIcon, StarIcon, type StaticTypographyType, StickyNoteIcon, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, SunIcon, SupportIcon, type SvgIcon, type SvgProps, SyncIcon, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, TableWrapper, Tabs, type TabsProps, Tag, type TagAppearance, type TagProps, type TagPurpose, type TextAffixProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, type TimePickerProps, TingrettIcon, TipIcon, Toggle, ToggleBar, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleProps, ToggleRadio, type ToggleRadioProps, type ToggleSize, Tooltip, type TooltipProps, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, type TypographyAnchorType, type TypographyBodyLongType, type TypographyBodyShortType, type TypographyBodyType, type TypographyComponentProps, type TypographyHeadingType, type TypographyLabelType, type TypographyLeadType, type TypographyProps, type TypographyType, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, type UseAccordionBodyProps, type UseAccordionHeaderProps, type UseControllableGroupStateProps, type UseControllableStateProps, type UseFloatPositionOptions, VStack, type VStackProps, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, type VisuallyHiddenProps, WarningIcon, WebexIcon, type WeightedSearchData, type WithRequiredIf, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, countryOptions, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, getLiteralScreenSize, getTypographyCn, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, index as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, typographyTypes, useAccordion, useAccordionContext, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };
|