@norges-domstoler/dds-components 0.0.0-dev-20251201130744 → 0.0.0-dev-20251201131309

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.d.mts CHANGED
@@ -131,6 +131,10 @@ declare const SIZES: readonly ["xsmall", "small", "medium", "large", "xlarge", "
131
131
  type Size = (typeof SIZES)[number];
132
132
  declare function createSizes<T extends Array<Size>>(...sizes: T): T;
133
133
 
134
+ declare const PURPOSES: readonly ["primary", "secondary", "tertiary", "success", "info", "danger", "warning", "default", "tips"];
135
+ type Purpose = (typeof PURPOSES)[number];
136
+ declare function createPurposes<T extends Array<Purpose>>(...sizes: T): T;
137
+
134
138
  declare const BORDER_RADII: readonly ["button", "input", "surface", "chip", "rounded", "0"];
135
139
  declare const ELEVATIONS: readonly [1, 2, 3, 4];
136
140
  declare const BORDER_COLORS: readonly ["border-default", "border-subtle", "border-inverse", "border-action-default", "border-action-hover", "border-success", "border-warning", "border-danger", "border-info", "border-on-action"];
@@ -170,8 +174,9 @@ type SvgIcon = (props: SvgProps) => JSX.Element;
170
174
  declare function SvgWrapper({ height, width, fill, className, title, children, ...props }: SvgProps): react_jsx_runtime.JSX.Element;
171
175
 
172
176
  declare const BUTTON_SIZES: ["xsmall", "small", "medium", "large"];
173
- type ButtonPurpose = 'primary' | 'secondary' | 'danger' | 'tertiary';
177
+ declare const BUTTON_PURPOSES: ["primary", "secondary", "tertiary", "danger"];
174
178
  type ButtonSize = (typeof BUTTON_SIZES)[number];
179
+ type ButtonPurpose = (typeof BUTTON_PURPOSES)[number];
175
180
  type IconPosition = 'left' | 'right';
176
181
  type PickedHTMLAttributes$4 = Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onFocus' | 'onBlur' | 'type'>;
177
182
  type ButtonProps = BaseComponentProps<HTMLButtonElement, {
@@ -1914,12 +1919,12 @@ declare const CardSelectableGroup: {
1914
1919
 
1915
1920
  type ChipProps = BaseComponentProps<HTMLDivElement, {
1916
1921
  /** Teksten som vises i komponenten. */
1917
- text?: string;
1922
+ children?: string;
1918
1923
  /** Ekstra logikk når `<Chip>` lukkes. */
1919
1924
  onClose?: () => void;
1920
1925
  }>;
1921
1926
  declare const Chip: {
1922
- ({ text, onClose, id, className, htmlProps, ...rest }: ChipProps): react_jsx_runtime.JSX.Element | null;
1927
+ ({ children, onClose, id, className, htmlProps, ...rest }: ChipProps): react_jsx_runtime.JSX.Element | null;
1923
1928
  displayName: string;
1924
1929
  };
1925
1930
 
@@ -2180,9 +2185,9 @@ type EmptyContentProps = {
2180
2185
  */
2181
2186
  headerHeadingLevel?: HeadingLevel;
2182
2187
  /**Melding - beskrivelse og forklaring på hvordan brukeren kan få innhold. Kan inneholde lenker og andre interaktive elementer. */
2183
- message: ReactNode;
2184
- } & HTMLAttributes<HTMLDivElement>;
2185
- declare function EmptyContent({ headerText, message, headerHeadingLevel, ...rest }: EmptyContentProps): react_jsx_runtime.JSX.Element;
2188
+ children: ReactNode;
2189
+ } & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
2190
+ declare function EmptyContent({ headerText, children, headerHeadingLevel, ...rest }: EmptyContentProps): react_jsx_runtime.JSX.Element;
2186
2191
  declare namespace EmptyContent {
2187
2192
  var displayName: string;
2188
2193
  }
@@ -2382,15 +2387,15 @@ declare const FormSummary: (props: FormSummaryProps) => react_jsx_runtime.JSX.El
2382
2387
 
2383
2388
  type InputMessageType = 'error' | 'tip';
2384
2389
  type InputMessageProps = BaseComponentProps<HTMLDivElement, {
2385
- /** Meldingen som vises til brukeren. */
2386
- message?: string;
2390
+ /**Innhold. */
2391
+ children?: ReactNode;
2387
2392
  /** Formålet med meldingen. Påvirker styling.
2388
2393
  * @default "error"
2389
2394
  */
2390
2395
  messageType: InputMessageType;
2391
2396
  } & Pick<ResponsiveProps, 'margin' | 'marginInline' | 'marginBlock'>>;
2392
2397
  declare const InputMessage: {
2393
- ({ message, messageType, id, className, htmlProps, children, ...rest }: InputMessageProps): react_jsx_runtime.JSX.Element;
2398
+ ({ messageType, id, className, htmlProps, children, ...rest }: InputMessageProps): react_jsx_runtime.JSX.Element;
2394
2399
  displayName: string;
2395
2400
  };
2396
2401
  interface RenderInputMessageProps {
@@ -2429,10 +2434,11 @@ declare function FormSummaryEmptyValue(): react_jsx_runtime.JSX.Element;
2429
2434
  type FormSummaryErrorProps = Omit<InputMessageProps, 'messageType' | 'message'>;
2430
2435
  declare function FormSummaryError({ ...props }: FormSummaryErrorProps): react_jsx_runtime.JSX.Element;
2431
2436
 
2432
- type GlobalMessagePurpose = 'info' | 'warning' | 'danger';
2433
- type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2434
- /**Meldingen som vises til brukeren. Brukes kun når meldingen er en `string`. */
2435
- message?: string;
2437
+ declare const G_MESSAGE_PURPOSES: ["info", "warning", "danger"];
2438
+ type GlobalMessagePurpose = (typeof G_MESSAGE_PURPOSES)[number];
2439
+ type GlobalMessageProps = BaseComponentProps<HTMLDivElement, {
2440
+ /**Melding. */
2441
+ children?: ReactNode;
2436
2442
  /**Formålet med meldingen. Påvirker styling.
2437
2443
  * @default "info"
2438
2444
  */
@@ -2443,7 +2449,7 @@ type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2443
2449
  onClose?: () => void;
2444
2450
  }>;
2445
2451
  declare const GlobalMessage: {
2446
- ({ message, purpose, closable, onClose, children, id, className, htmlProps, ...rest }: GlobalMessageProps): react_jsx_runtime.JSX.Element | null;
2452
+ ({ purpose, closable, onClose, children, id, className, htmlProps, ...rest }: GlobalMessageProps): react_jsx_runtime.JSX.Element | null;
2447
2453
  displayName: string;
2448
2454
  };
2449
2455
 
@@ -2572,11 +2578,12 @@ declare const ListItem: {
2572
2578
  displayName: string;
2573
2579
  };
2574
2580
 
2575
- type LocalMessagePurpose = 'info' | 'warning' | 'danger' | 'success' | 'tips';
2581
+ declare const L_MESSAGE_PURPOSES: ["info", "success", "warning", "danger", "tips"];
2582
+ type LocalMessagePurpose = (typeof L_MESSAGE_PURPOSES)[number];
2576
2583
  type LocalMessageLayout = 'horisontal' | 'vertical';
2577
- type LocalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2578
- /**Meldingen som vises til brukeren. Brukes kun når meldingen er string. */
2579
- message?: string;
2584
+ type LocalMessageProps = BaseComponentProps<HTMLDivElement, {
2585
+ /**Innhold i meldingen. */
2586
+ children?: ReactNode;
2580
2587
  /**Formålet med meldingen. Påvirker styling.
2581
2588
  * @default "info"
2582
2589
  */
@@ -2591,7 +2598,7 @@ type LocalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2591
2598
  layout?: LocalMessageLayout;
2592
2599
  } & Pick<ResponsiveProps, 'width'>>;
2593
2600
  declare const LocalMessage: {
2594
- ({ message, purpose, closable, onClose, width, layout, children, id, className, htmlProps, ...rest }: LocalMessageProps): react_jsx_runtime.JSX.Element;
2601
+ ({ purpose, closable, onClose, width, layout, children, id, className, htmlProps, ...rest }: LocalMessageProps): react_jsx_runtime.JSX.Element;
2595
2602
  displayName: string;
2596
2603
  };
2597
2604
 
@@ -3374,17 +3381,14 @@ declare const TabPanels: {
3374
3381
  displayName: string;
3375
3382
  };
3376
3383
 
3377
- type TagPurpose = 'success' | 'info' | 'danger' | 'warning' | 'default';
3384
+ declare const TAG_PURPOSES: ["success", "info", "danger", "warning", "default"];
3385
+ type TagPurpose = (typeof TAG_PURPOSES)[number];
3378
3386
  type TagAppearance = 'default' | 'strong';
3379
- type TagProps = BaseComponentPropsWithChildren<HTMLSpanElement, {
3387
+ type TagProps = BaseComponentProps<HTMLSpanElement, {
3380
3388
  /**
3381
- * Innholdet til `<Tag>.` Kan brukes istedenfor `text`.
3389
+ * Innholdet til `<Tag>.`
3382
3390
  */
3383
- children?: ReactNode;
3384
- /**
3385
- * Samme oppførsel som `children`. Er `children` brukt vil denne ignoreres. Tekst som vises i `<Tag>`.
3386
- */
3387
- text?: string;
3391
+ children?: string;
3388
3392
  /**
3389
3393
  * Formål med status eller kategorisering. Påvirker styling.
3390
3394
  * @default "default"
@@ -3402,7 +3406,7 @@ type TagProps = BaseComponentPropsWithChildren<HTMLSpanElement, {
3402
3406
  withIcon?: boolean;
3403
3407
  }>;
3404
3408
  declare const Tag: {
3405
- ({ text, purpose, appearance, id, className, children, htmlProps, withIcon, ...rest }: TagProps): react_jsx_runtime.JSX.Element;
3409
+ ({ purpose, appearance, id, className, children, htmlProps, withIcon, ...rest }: TagProps): react_jsx_runtime.JSX.Element;
3406
3410
  displayName: string;
3407
3411
  };
3408
3412
 
@@ -3581,4 +3585,4 @@ declare const VisuallyHidden: {
3581
3585
  displayName: string;
3582
3586
  };
3583
3587
 
3584
- export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, type AccordionProps, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDown, 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, BuildCircledIcon, BuildIcon, 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, ChevronLargeLeftIcon, ChevronLargeRightIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, 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, DatePicker, type DatePickerProps, DateRangeIcon, DdsProvider, type DdsProviderProps, 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 DropdownItemProps, ELEVATIONS, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, 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, FilterListOffIcon, FilterOffIcon, FindInPageIcon, FlickrIcon, type FloatingStyles, 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, GuardianIcon, HStack, type HStackProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassBottomIcon, HourglassDisabledIcon, HourglassEmptyIcon, HourglassFullIcon, HourglassTopIcon, 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, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LibraryAddIcon, 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, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MenuIcon, MinusCirledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, type NativeSelectProps, NotarialIcon, 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, Pagination, type PaginationOption, type PaginationProps, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, 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, PropertyIcon, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, type RemoteFile, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, 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, StarHalfFilled, StarIcon, type StaticTypographyType, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, type SvgIcon, type SvgProps, SvgWrapper, 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 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, createSelectOptions, createSizes, dateValueToNativeDate, defaultTypographyType, defaultTypographyTypeClassName, 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, useWindowResize, visibilityTransition };
3588
+ export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, type AccordionProps, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDown, 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, BuildCircledIcon, BuildIcon, 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, ChevronLargeLeftIcon, ChevronLargeRightIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, 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, DatePicker, type DatePickerProps, DateRangeIcon, DdsProvider, type DdsProviderProps, 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 DropdownItemProps, ELEVATIONS, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, 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, FilterListOffIcon, FilterOffIcon, FindInPageIcon, FlickrIcon, type FloatingStyles, 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, GuardianIcon, HStack, type HStackProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassBottomIcon, HourglassDisabledIcon, HourglassEmptyIcon, HourglassFullIcon, HourglassTopIcon, 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, LibraryAddIcon, 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, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MenuIcon, MinusCirledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, type NativeSelectProps, NotarialIcon, 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, Pagination, type PaginationOption, type PaginationProps, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, 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, PropertyIcon, PublishIcon, type Purpose, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, type RemoteFile, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, 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, StarHalfFilled, StarIcon, type StaticTypographyType, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, type SvgIcon, type SvgProps, SvgWrapper, 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 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, defaultTypographyType, defaultTypographyTypeClassName, 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, useWindowResize, visibilityTransition };
package/dist/index.d.ts CHANGED
@@ -131,6 +131,10 @@ declare const SIZES: readonly ["xsmall", "small", "medium", "large", "xlarge", "
131
131
  type Size = (typeof SIZES)[number];
132
132
  declare function createSizes<T extends Array<Size>>(...sizes: T): T;
133
133
 
134
+ declare const PURPOSES: readonly ["primary", "secondary", "tertiary", "success", "info", "danger", "warning", "default", "tips"];
135
+ type Purpose = (typeof PURPOSES)[number];
136
+ declare function createPurposes<T extends Array<Purpose>>(...sizes: T): T;
137
+
134
138
  declare const BORDER_RADII: readonly ["button", "input", "surface", "chip", "rounded", "0"];
135
139
  declare const ELEVATIONS: readonly [1, 2, 3, 4];
136
140
  declare const BORDER_COLORS: readonly ["border-default", "border-subtle", "border-inverse", "border-action-default", "border-action-hover", "border-success", "border-warning", "border-danger", "border-info", "border-on-action"];
@@ -170,8 +174,9 @@ type SvgIcon = (props: SvgProps) => JSX.Element;
170
174
  declare function SvgWrapper({ height, width, fill, className, title, children, ...props }: SvgProps): react_jsx_runtime.JSX.Element;
171
175
 
172
176
  declare const BUTTON_SIZES: ["xsmall", "small", "medium", "large"];
173
- type ButtonPurpose = 'primary' | 'secondary' | 'danger' | 'tertiary';
177
+ declare const BUTTON_PURPOSES: ["primary", "secondary", "tertiary", "danger"];
174
178
  type ButtonSize = (typeof BUTTON_SIZES)[number];
179
+ type ButtonPurpose = (typeof BUTTON_PURPOSES)[number];
175
180
  type IconPosition = 'left' | 'right';
176
181
  type PickedHTMLAttributes$4 = Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onFocus' | 'onBlur' | 'type'>;
177
182
  type ButtonProps = BaseComponentProps<HTMLButtonElement, {
@@ -1914,12 +1919,12 @@ declare const CardSelectableGroup: {
1914
1919
 
1915
1920
  type ChipProps = BaseComponentProps<HTMLDivElement, {
1916
1921
  /** Teksten som vises i komponenten. */
1917
- text?: string;
1922
+ children?: string;
1918
1923
  /** Ekstra logikk når `<Chip>` lukkes. */
1919
1924
  onClose?: () => void;
1920
1925
  }>;
1921
1926
  declare const Chip: {
1922
- ({ text, onClose, id, className, htmlProps, ...rest }: ChipProps): react_jsx_runtime.JSX.Element | null;
1927
+ ({ children, onClose, id, className, htmlProps, ...rest }: ChipProps): react_jsx_runtime.JSX.Element | null;
1923
1928
  displayName: string;
1924
1929
  };
1925
1930
 
@@ -2180,9 +2185,9 @@ type EmptyContentProps = {
2180
2185
  */
2181
2186
  headerHeadingLevel?: HeadingLevel;
2182
2187
  /**Melding - beskrivelse og forklaring på hvordan brukeren kan få innhold. Kan inneholde lenker og andre interaktive elementer. */
2183
- message: ReactNode;
2184
- } & HTMLAttributes<HTMLDivElement>;
2185
- declare function EmptyContent({ headerText, message, headerHeadingLevel, ...rest }: EmptyContentProps): react_jsx_runtime.JSX.Element;
2188
+ children: ReactNode;
2189
+ } & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
2190
+ declare function EmptyContent({ headerText, children, headerHeadingLevel, ...rest }: EmptyContentProps): react_jsx_runtime.JSX.Element;
2186
2191
  declare namespace EmptyContent {
2187
2192
  var displayName: string;
2188
2193
  }
@@ -2382,15 +2387,15 @@ declare const FormSummary: (props: FormSummaryProps) => react_jsx_runtime.JSX.El
2382
2387
 
2383
2388
  type InputMessageType = 'error' | 'tip';
2384
2389
  type InputMessageProps = BaseComponentProps<HTMLDivElement, {
2385
- /** Meldingen som vises til brukeren. */
2386
- message?: string;
2390
+ /**Innhold. */
2391
+ children?: ReactNode;
2387
2392
  /** Formålet med meldingen. Påvirker styling.
2388
2393
  * @default "error"
2389
2394
  */
2390
2395
  messageType: InputMessageType;
2391
2396
  } & Pick<ResponsiveProps, 'margin' | 'marginInline' | 'marginBlock'>>;
2392
2397
  declare const InputMessage: {
2393
- ({ message, messageType, id, className, htmlProps, children, ...rest }: InputMessageProps): react_jsx_runtime.JSX.Element;
2398
+ ({ messageType, id, className, htmlProps, children, ...rest }: InputMessageProps): react_jsx_runtime.JSX.Element;
2394
2399
  displayName: string;
2395
2400
  };
2396
2401
  interface RenderInputMessageProps {
@@ -2429,10 +2434,11 @@ declare function FormSummaryEmptyValue(): react_jsx_runtime.JSX.Element;
2429
2434
  type FormSummaryErrorProps = Omit<InputMessageProps, 'messageType' | 'message'>;
2430
2435
  declare function FormSummaryError({ ...props }: FormSummaryErrorProps): react_jsx_runtime.JSX.Element;
2431
2436
 
2432
- type GlobalMessagePurpose = 'info' | 'warning' | 'danger';
2433
- type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2434
- /**Meldingen som vises til brukeren. Brukes kun når meldingen er en `string`. */
2435
- message?: string;
2437
+ declare const G_MESSAGE_PURPOSES: ["info", "warning", "danger"];
2438
+ type GlobalMessagePurpose = (typeof G_MESSAGE_PURPOSES)[number];
2439
+ type GlobalMessageProps = BaseComponentProps<HTMLDivElement, {
2440
+ /**Melding. */
2441
+ children?: ReactNode;
2436
2442
  /**Formålet med meldingen. Påvirker styling.
2437
2443
  * @default "info"
2438
2444
  */
@@ -2443,7 +2449,7 @@ type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2443
2449
  onClose?: () => void;
2444
2450
  }>;
2445
2451
  declare const GlobalMessage: {
2446
- ({ message, purpose, closable, onClose, children, id, className, htmlProps, ...rest }: GlobalMessageProps): react_jsx_runtime.JSX.Element | null;
2452
+ ({ purpose, closable, onClose, children, id, className, htmlProps, ...rest }: GlobalMessageProps): react_jsx_runtime.JSX.Element | null;
2447
2453
  displayName: string;
2448
2454
  };
2449
2455
 
@@ -2572,11 +2578,12 @@ declare const ListItem: {
2572
2578
  displayName: string;
2573
2579
  };
2574
2580
 
2575
- type LocalMessagePurpose = 'info' | 'warning' | 'danger' | 'success' | 'tips';
2581
+ declare const L_MESSAGE_PURPOSES: ["info", "success", "warning", "danger", "tips"];
2582
+ type LocalMessagePurpose = (typeof L_MESSAGE_PURPOSES)[number];
2576
2583
  type LocalMessageLayout = 'horisontal' | 'vertical';
2577
- type LocalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2578
- /**Meldingen som vises til brukeren. Brukes kun når meldingen er string. */
2579
- message?: string;
2584
+ type LocalMessageProps = BaseComponentProps<HTMLDivElement, {
2585
+ /**Innhold i meldingen. */
2586
+ children?: ReactNode;
2580
2587
  /**Formålet med meldingen. Påvirker styling.
2581
2588
  * @default "info"
2582
2589
  */
@@ -2591,7 +2598,7 @@ type LocalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
2591
2598
  layout?: LocalMessageLayout;
2592
2599
  } & Pick<ResponsiveProps, 'width'>>;
2593
2600
  declare const LocalMessage: {
2594
- ({ message, purpose, closable, onClose, width, layout, children, id, className, htmlProps, ...rest }: LocalMessageProps): react_jsx_runtime.JSX.Element;
2601
+ ({ purpose, closable, onClose, width, layout, children, id, className, htmlProps, ...rest }: LocalMessageProps): react_jsx_runtime.JSX.Element;
2595
2602
  displayName: string;
2596
2603
  };
2597
2604
 
@@ -3374,17 +3381,14 @@ declare const TabPanels: {
3374
3381
  displayName: string;
3375
3382
  };
3376
3383
 
3377
- type TagPurpose = 'success' | 'info' | 'danger' | 'warning' | 'default';
3384
+ declare const TAG_PURPOSES: ["success", "info", "danger", "warning", "default"];
3385
+ type TagPurpose = (typeof TAG_PURPOSES)[number];
3378
3386
  type TagAppearance = 'default' | 'strong';
3379
- type TagProps = BaseComponentPropsWithChildren<HTMLSpanElement, {
3387
+ type TagProps = BaseComponentProps<HTMLSpanElement, {
3380
3388
  /**
3381
- * Innholdet til `<Tag>.` Kan brukes istedenfor `text`.
3389
+ * Innholdet til `<Tag>.`
3382
3390
  */
3383
- children?: ReactNode;
3384
- /**
3385
- * Samme oppførsel som `children`. Er `children` brukt vil denne ignoreres. Tekst som vises i `<Tag>`.
3386
- */
3387
- text?: string;
3391
+ children?: string;
3388
3392
  /**
3389
3393
  * Formål med status eller kategorisering. Påvirker styling.
3390
3394
  * @default "default"
@@ -3402,7 +3406,7 @@ type TagProps = BaseComponentPropsWithChildren<HTMLSpanElement, {
3402
3406
  withIcon?: boolean;
3403
3407
  }>;
3404
3408
  declare const Tag: {
3405
- ({ text, purpose, appearance, id, className, children, htmlProps, withIcon, ...rest }: TagProps): react_jsx_runtime.JSX.Element;
3409
+ ({ purpose, appearance, id, className, children, htmlProps, withIcon, ...rest }: TagProps): react_jsx_runtime.JSX.Element;
3406
3410
  displayName: string;
3407
3411
  };
3408
3412
 
@@ -3581,4 +3585,4 @@ declare const VisuallyHidden: {
3581
3585
  displayName: string;
3582
3586
  };
3583
3587
 
3584
- export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, type AccordionProps, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDown, 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, BuildCircledIcon, BuildIcon, 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, ChevronLargeLeftIcon, ChevronLargeRightIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, 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, DatePicker, type DatePickerProps, DateRangeIcon, DdsProvider, type DdsProviderProps, 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 DropdownItemProps, ELEVATIONS, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, 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, FilterListOffIcon, FilterOffIcon, FindInPageIcon, FlickrIcon, type FloatingStyles, 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, GuardianIcon, HStack, type HStackProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassBottomIcon, HourglassDisabledIcon, HourglassEmptyIcon, HourglassFullIcon, HourglassTopIcon, 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, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LibraryAddIcon, 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, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MenuIcon, MinusCirledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, type NativeSelectProps, NotarialIcon, 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, Pagination, type PaginationOption, type PaginationProps, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, 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, PropertyIcon, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, type RemoteFile, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, 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, StarHalfFilled, StarIcon, type StaticTypographyType, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, type SvgIcon, type SvgProps, SvgWrapper, 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 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, createSelectOptions, createSizes, dateValueToNativeDate, defaultTypographyType, defaultTypographyTypeClassName, 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, useWindowResize, visibilityTransition };
3588
+ export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, type AccordionProps, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDown, 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, BuildCircledIcon, BuildIcon, 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, ChevronLargeLeftIcon, ChevronLargeRightIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, 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, DatePicker, type DatePickerProps, DateRangeIcon, DdsProvider, type DdsProviderProps, 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 DropdownItemProps, ELEVATIONS, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, 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, FilterListOffIcon, FilterOffIcon, FindInPageIcon, FlickrIcon, type FloatingStyles, 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, GuardianIcon, HStack, type HStackProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassBottomIcon, HourglassDisabledIcon, HourglassEmptyIcon, HourglassFullIcon, HourglassTopIcon, 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, LibraryAddIcon, 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, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MenuIcon, MinusCirledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, type NativeSelectProps, NotarialIcon, 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, Pagination, type PaginationOption, type PaginationProps, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, 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, PropertyIcon, PublishIcon, type Purpose, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, type RemoteFile, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, 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, StarHalfFilled, StarIcon, type StaticTypographyType, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, type SvgIcon, type SvgProps, SvgWrapper, 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 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, defaultTypographyType, defaultTypographyTypeClassName, 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, useWindowResize, visibilityTransition };
package/dist/index.js CHANGED
@@ -204,6 +204,7 @@ __export(index_exports, {
204
204
  JordskifterettIcon: () => JordskifterettIcon,
205
205
  JordskiftesakIcon: () => JordskiftesakIcon,
206
206
  KeyIcon: () => KeyIcon,
207
+ L_MESSAGE_PURPOSES: () => L_MESSAGE_PURPOSES,
207
208
  Label: () => Label,
208
209
  LagmannsrettIcon: () => LagmannsrettIcon,
209
210
  LanguageIcon: () => LanguageIcon,
@@ -351,6 +352,7 @@ __export(index_exports, {
351
352
  calendarDateToNativeDate: () => calendarDateToNativeDate,
352
353
  cn: () => cn,
353
354
  countryOptions: () => countryOptions,
355
+ createPurposes: () => createPurposes,
354
356
  createSelectOptions: () => createSelectOptions,
355
357
  createSizes: () => createSizes,
356
358
  dateValueToNativeDate: () => dateValueToNativeDate,
@@ -712,6 +714,11 @@ function createSizes(...sizes) {
712
714
  return sizes;
713
715
  }
714
716
 
717
+ // src/types/Purpose.tsx
718
+ function createPurposes(...sizes) {
719
+ return sizes;
720
+ }
721
+
715
722
  // src/types/Surface.tsx
716
723
  var BORDER_RADII = [
717
724
  "button",
@@ -5368,7 +5375,6 @@ var InputMessage_default = {
5368
5375
  // src/components/InputMessage/InputMessage.tsx
5369
5376
  var import_jsx_runtime216 = require("react/jsx-runtime");
5370
5377
  var InputMessage = ({
5371
- message,
5372
5378
  messageType,
5373
5379
  id,
5374
5380
  className,
@@ -5386,7 +5392,7 @@ var InputMessage = ({
5386
5392
  };
5387
5393
  const tgCommonProps = {
5388
5394
  as: "span",
5389
- children: message != null ? message : children
5395
+ children
5390
5396
  };
5391
5397
  return isError ? /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
5392
5398
  Paper,
@@ -5436,13 +5442,13 @@ var renderInputMessage = ({
5436
5442
  errorMessage && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
5437
5443
  InputMessage,
5438
5444
  {
5439
- message: errorMessage,
5440
5445
  messageType: "error",
5441
5446
  id: errorMessageId,
5442
- marginBlock: !noSpacing ? "x0.125 0" : void 0
5447
+ marginBlock: !noSpacing ? "x0.125 0" : void 0,
5448
+ children: errorMessage
5443
5449
  }
5444
5450
  ),
5445
- tip && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(InputMessage, { message: tip, messageType: "tip", id: tipId })
5451
+ tip && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(InputMessage, { messageType: "tip", id: tipId, children: tip })
5446
5452
  ] });
5447
5453
 
5448
5454
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
@@ -5864,7 +5870,7 @@ var Chip_default = {
5864
5870
  // src/components/Chip/Chip.tsx
5865
5871
  var import_jsx_runtime222 = require("react/jsx-runtime");
5866
5872
  var Chip = ({
5867
- text,
5873
+ children,
5868
5874
  onClose,
5869
5875
  id,
5870
5876
  className,
@@ -5888,7 +5894,7 @@ var Chip = ({
5888
5894
  rest
5889
5895
  ),
5890
5896
  children: [
5891
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(TextOverflowEllipsisInner, { className: cn(typographyStyles_default["body-small"]), children: text }),
5897
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(TextOverflowEllipsisInner, { className: cn(typographyStyles_default["body-small"]), children }),
5892
5898
  /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
5893
5899
  Button,
5894
5900
  {
@@ -5896,7 +5902,7 @@ var Chip = ({
5896
5902
  icon: CloseSmallIcon,
5897
5903
  purpose: "tertiary",
5898
5904
  onClick,
5899
- "aria-label": ariaLabel != null ? ariaLabel : t(texts4.removeChip) + (text ? ` ${text}` : "")
5905
+ "aria-label": ariaLabel != null ? ariaLabel : t(texts4.removeChip) + (children ? ` ${children}` : "")
5900
5906
  }
5901
5907
  )
5902
5908
  ]
@@ -7772,7 +7778,7 @@ DrawerGroup.displayName = "DrawerGroup";
7772
7778
  var import_jsx_runtime252 = require("react/jsx-runtime");
7773
7779
  function EmptyContent({
7774
7780
  headerText,
7775
- message,
7781
+ children,
7776
7782
  headerHeadingLevel = 2,
7777
7783
  ...rest
7778
7784
  }) {
@@ -7789,10 +7795,19 @@ function EmptyContent({
7789
7795
  background: "surface-medium",
7790
7796
  borderRadius: "surface",
7791
7797
  ...rest,
7792
- children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
7793
- headerText && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
7794
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Paragraph, { color: "text-medium", children: message })
7795
- ] })
7798
+ children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
7799
+ VStack,
7800
+ {
7801
+ maxWidth: "70ch",
7802
+ gap: "x1",
7803
+ textAlign: "center",
7804
+ className: typographyStyles_default["text-color--medium"],
7805
+ children: [
7806
+ headerText && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
7807
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Typography, { as: "div", color: "text-medium", children })
7808
+ ]
7809
+ }
7810
+ )
7796
7811
  }
7797
7812
  );
7798
7813
  }
@@ -8487,15 +8502,7 @@ var ErrorList = (props) => {
8487
8502
  });
8488
8503
  }
8489
8504
  return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(StylelessList, { children: errors.map(({ id, message }) => {
8490
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
8491
- InputMessage,
8492
- {
8493
- id,
8494
- message,
8495
- messageType: "error"
8496
- },
8497
- id
8498
- ) });
8505
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(InputMessage, { id, messageType: "error", children: message }, id) });
8499
8506
  }) });
8500
8507
  };
8501
8508
 
@@ -9339,13 +9346,13 @@ var GlobalMessage_default = {
9339
9346
 
9340
9347
  // src/components/GlobalMessage/GlobalMessage.tsx
9341
9348
  var import_jsx_runtime275 = require("react/jsx-runtime");
9349
+ var G_MESSAGE_PURPOSES = createPurposes("info", "warning", "danger");
9342
9350
  var icons = {
9343
9351
  info: InfoIcon,
9344
9352
  danger: ErrorIcon,
9345
9353
  warning: WarningIcon
9346
9354
  };
9347
9355
  var GlobalMessage = ({
9348
- message,
9349
9356
  purpose = "info",
9350
9357
  closable,
9351
9358
  onClose,
@@ -9378,7 +9385,7 @@ var GlobalMessage = ({
9378
9385
  className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
9379
9386
  children: [
9380
9387
  /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
9381
- children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("span", { children: message })
9388
+ children
9382
9389
  ]
9383
9390
  }
9384
9391
  ),
@@ -10043,6 +10050,13 @@ var LocalMessage_default = {
10043
10050
 
10044
10051
  // src/components/LocalMessage/LocalMessage.tsx
10045
10052
  var import_jsx_runtime287 = require("react/jsx-runtime");
10053
+ var L_MESSAGE_PURPOSES = createPurposes(
10054
+ "info",
10055
+ "success",
10056
+ "warning",
10057
+ "danger",
10058
+ "tips"
10059
+ );
10046
10060
  var icons2 = {
10047
10061
  info: InfoIcon,
10048
10062
  danger: ErrorIcon,
@@ -10051,7 +10065,6 @@ var icons2 = {
10051
10065
  tips: TipIcon
10052
10066
  };
10053
10067
  var LocalMessage = ({
10054
- message,
10055
10068
  purpose = "info",
10056
10069
  closable,
10057
10070
  onClose,
@@ -10096,7 +10109,7 @@ var LocalMessage = ({
10096
10109
  className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
10097
10110
  }
10098
10111
  ),
10099
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("span", { children: message }) }),
10112
+ /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("div", { className: LocalMessage_default.container__text, children }),
10100
10113
  closable && /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10101
10114
  Button,
10102
10115
  {
@@ -14029,8 +14042,14 @@ var icons3 = {
14029
14042
  success: CheckCircledIcon,
14030
14043
  default: void 0
14031
14044
  };
14045
+ var TAG_PURPOSES = createPurposes(
14046
+ "success",
14047
+ "info",
14048
+ "danger",
14049
+ "warning",
14050
+ "default"
14051
+ );
14032
14052
  var Tag = ({
14033
- text,
14034
14053
  purpose = "default",
14035
14054
  appearance = "default",
14036
14055
  id,
@@ -14058,7 +14077,7 @@ var Tag = ({
14058
14077
  ),
14059
14078
  children: [
14060
14079
  withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(Icon, { icon, iconSize: "small" }),
14061
- /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
14080
+ /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(TextOverflowEllipsisInner, { children })
14062
14081
  ]
14063
14082
  }
14064
14083
  );
@@ -14824,6 +14843,7 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
14824
14843
  JordskifterettIcon,
14825
14844
  JordskiftesakIcon,
14826
14845
  KeyIcon,
14846
+ L_MESSAGE_PURPOSES,
14827
14847
  Label,
14828
14848
  LagmannsrettIcon,
14829
14849
  LanguageIcon,
@@ -14971,6 +14991,7 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
14971
14991
  calendarDateToNativeDate,
14972
14992
  cn,
14973
14993
  countryOptions,
14994
+ createPurposes,
14974
14995
  createSelectOptions,
14975
14996
  createSizes,
14976
14997
  dateValueToNativeDate,