rk-designsystem 1.2.5 → 1.3.1

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.
Files changed (65) hide show
  1. package/README.md +45 -2
  2. package/dist/assets/images/ChevronLeftIcon.js +31 -0
  3. package/dist/assets/images/ChevronRightIcon.js +31 -0
  4. package/dist/components/Alert/index.js +16 -0
  5. package/dist/components/Avatar/index.js +9 -0
  6. package/dist/components/Badge/index.js +11 -0
  7. package/dist/components/Breadcrumbs/index.js +9 -0
  8. package/dist/components/Button/index.js +11 -0
  9. package/dist/components/Card/index.js +8 -0
  10. package/dist/components/Carousel/index.js +379 -0
  11. package/dist/components/Carousel/styles.module.css.js +38 -0
  12. package/dist/components/Checkbox/index.js +10 -0
  13. package/dist/components/Chip/index.js +6 -0
  14. package/dist/components/DateInput/index.js +258 -0
  15. package/dist/components/DateInput/styles.module.css.js +20 -0
  16. package/dist/components/DatePicker/index.js +357 -0
  17. package/dist/components/DatePicker/styles.module.css.js +30 -0
  18. package/dist/components/Details/index.js +6 -0
  19. package/dist/components/Dialog/index.js +6 -0
  20. package/dist/components/Divider/index.js +6 -0
  21. package/dist/components/Donor/index.js +382 -0
  22. package/dist/components/Donor/styles.module.css.js +42 -0
  23. package/dist/components/Dropdown/index.js +12 -0
  24. package/dist/components/ErrorSummary/index.js +6 -0
  25. package/dist/components/Field/index.js +10 -0
  26. package/dist/components/Fieldset/index.js +6 -0
  27. package/dist/components/Footer/index.js +722 -0
  28. package/dist/components/Footer/styles.module.css.js +138 -0
  29. package/dist/components/GraphicElement/index.js +317 -0
  30. package/dist/components/GraphicElement/styles.module.css.js +16 -0
  31. package/dist/components/Header/index.js +653 -0
  32. package/dist/components/Header/styles.module.css.js +114 -0
  33. package/dist/components/Heading/index.js +9 -0
  34. package/dist/components/Input/index.js +7 -0
  35. package/dist/components/Label/index.js +9 -0
  36. package/dist/components/Link/index.js +6 -0
  37. package/dist/components/List/index.js +6 -0
  38. package/dist/components/Pagination/index.js +11 -0
  39. package/dist/components/Paragraph/index.js +11 -0
  40. package/dist/components/Popover/index.js +6 -0
  41. package/dist/components/Radio/index.js +7 -0
  42. package/dist/components/Search/index.js +10 -0
  43. package/dist/components/Select/index.js +6 -0
  44. package/dist/components/SkeletonLoader/index.js +6 -0
  45. package/dist/components/SkipLink/index.js +6 -0
  46. package/dist/components/SpinnerLoader/index.js +6 -0
  47. package/dist/components/Suggestion/index.js +7 -0
  48. package/dist/components/Switch/index.js +6 -0
  49. package/dist/components/Table/index.js +6 -0
  50. package/dist/components/Tabs/index.js +6 -0
  51. package/dist/components/Tag/index.js +14 -0
  52. package/dist/components/Textarea/index.js +6 -0
  53. package/dist/components/Textfield/index.js +6 -0
  54. package/dist/components/ToggleGroup/index.js +6 -0
  55. package/dist/components/Tooltip/index.js +6 -0
  56. package/dist/components/ValidationMessage/index.js +9 -0
  57. package/dist/context/LanguageContext.js +91 -0
  58. package/dist/index.d.ts +357 -252
  59. package/dist/index.js +118 -0
  60. package/dist/rk-designsystem.css +1 -1
  61. package/dist/styles.css +15 -0
  62. package/dist/{componentlibrary.es.js → translations/index.js} +317 -3488
  63. package/dist/utils/search-index.js +106 -0
  64. package/package.json +22 -29
  65. package/dist/componentlibrary.umd.js +0 -1229
package/dist/index.d.ts CHANGED
@@ -1,137 +1,134 @@
1
- import { AlertProps as AlertProps_2 } from './components';
2
- import { AvatarProps as AvatarProps_2 } from './components';
3
- import { Badge } from './components/Badge';
4
- import { BadgePosition } from './components/Badge';
5
- import { BadgePositionProps } from './components/Badge';
6
- import { BadgeProps } from './components/Badge';
7
- import { Breadcrumbs as Breadcrumbs_2 } from './components';
8
- import { BreadcrumbsItem as BreadcrumbsItem_2 } from './components';
9
- import { BreadcrumbsLink as BreadcrumbsLink_2 } from './components';
10
- import { BreadcrumbsList as BreadcrumbsList_2 } from './components';
11
- import { BreadcrumbsProps as BreadcrumbsProps_2 } from './components';
1
+ import { AlertProps as AlertProps_2 } from '@digdir/designsystemet-react';
2
+ import { AvatarProps as AvatarProps_2 } from '@digdir/designsystemet-react';
3
+ import { BadgePosition as BadgePosition_2 } from '@digdir/designsystemet-react';
4
+ import { BadgePositionProps as BadgePositionProps_2 } from '@digdir/designsystemet-react';
5
+ import { BadgeProps as BadgeProps_2 } from '@digdir/designsystemet-react';
6
+ import { Breadcrumbs as Breadcrumbs_2 } from '@digdir/designsystemet-react';
7
+ import { BreadcrumbsItem as BreadcrumbsItem_2 } from '@digdir/designsystemet-react';
8
+ import { BreadcrumbsLink as BreadcrumbsLink_2 } from '@digdir/designsystemet-react';
9
+ import { BreadcrumbsList as BreadcrumbsList_2 } from '@digdir/designsystemet-react';
10
+ import { BreadcrumbsProps as BreadcrumbsProps_2 } from '@digdir/designsystemet-react';
12
11
  import { ButtonHTMLAttributes } from 'react';
13
- import { Card as Card_2 } from './components';
14
- import { CardBlock as CardBlock_2 } from './components';
15
- import { CardProps as CardProps_2 } from './components';
16
- import { Checkbox as Checkbox_2 } from './components';
17
- import { CheckboxProps as CheckboxProps_2 } from './components';
18
- import { ChipButton } from './chip';
19
- import { ChipButtonProps as ChipButtonProps_2 } from './components';
20
- import { ChipCheckbox } from './chip';
21
- import { ChipCheckboxProps as ChipCheckboxProps_2 } from './components';
22
- import { ChipRadio } from './chip';
23
- import { ChipRadioProps as ChipRadioProps_2 } from './components';
24
- import { ChipRemovable } from './chip';
25
- import { ChipRemovableProps as ChipRemovableProps_2 } from './components';
12
+ import { Card as Card_2 } from '@digdir/designsystemet-react';
13
+ import { CardBlock as CardBlock_2 } from '@digdir/designsystemet-react';
14
+ import { CardProps as CardProps_2 } from '@digdir/designsystemet-react';
15
+ import { Checkbox as Checkbox_2 } from '@digdir/designsystemet-react';
16
+ import { CheckboxProps as CheckboxProps_2 } from '@digdir/designsystemet-react';
17
+ import { Chip as Chip_2 } from '@digdir/designsystemet-react';
18
+ import { ChipButtonProps as ChipButtonProps_2 } from '@digdir/designsystemet-react';
19
+ import { ChipCheckboxProps as ChipCheckboxProps_2 } from '@digdir/designsystemet-react';
20
+ import { ChipRadioProps as ChipRadioProps_2 } from '@digdir/designsystemet-react';
21
+ import { ChipRemovableProps as ChipRemovableProps_2 } from '@digdir/designsystemet-react';
26
22
  import { Color } from '@digdir/designsystemet-types';
27
- import { Color as Color_2 } from '@digdir/designsystemet/types';
28
23
  import { ComponentProps } from 'react';
29
24
  import { default as default_2 } from 'react';
30
- import { DetailsContent } from './details';
31
- import { DetailsProps as DetailsProps_2 } from './components';
32
- import { DetailsSummary } from './details';
33
- import { Dialog as Dialog_2 } from './components';
34
- import { DialogProps as DialogProps_2 } from './components';
35
- import { DividerProps as DividerProps_2 } from './components';
36
- import { Dropdown as Dropdown_2 } from './components';
37
- import { DropdownButton as DropdownButton_2 } from './components';
38
- import { DropdownButtonProps as DropdownButtonProps_2 } from './components';
39
- import { DropdownHeading as DropdownHeading_2 } from './components';
40
- import { DropdownHeadingProps as DropdownHeadingProps_2 } from './components';
41
- import { DropdownItem as DropdownItem_2 } from './components';
42
- import { DropdownItemProps as DropdownItemProps_2 } from './components';
43
- import { DropdownList as DropdownList_2 } from './components';
44
- import { DropdownListProps as DropdownListProps_2 } from './components';
45
- import { DropdownProps as DropdownProps_2 } from './components';
46
- import { DropdownTrigger as DropdownTrigger_2 } from './components';
47
- import { DropdownTriggerContext as DropdownTriggerContext_2 } from './components';
48
- import { DropdownTriggerContextProps as DropdownTriggerContextProps_2 } from './components';
49
- import { DSSuggestionElement } from '@digdir/designsystemet-web';
50
- import { ErrorSummary as ErrorSummary_2 } from './components';
51
- import { ErrorSummaryProps as ErrorSummaryProps_2 } from './components';
52
- import { EXPERIMENTAL_Suggestion } from './components';
53
- import { EXPERIMENTAL_SuggestionClear } from './suggestion';
54
- import { EXPERIMENTAL_SuggestionEmpty } from './suggestion';
55
- import { EXPERIMENTAL_SuggestionInput } from './suggestion';
56
- import { EXPERIMENTAL_SuggestionList } from './suggestion';
57
- import { EXPERIMENTAL_SuggestionOption } from './suggestion';
58
- import { Field as Field_2 } from './components';
59
- import { FieldCounter as FieldCounter_2 } from './components';
60
- import { FieldCounterProps as FieldCounterProps_2 } from './components';
61
- import { FieldDescription as FieldDescription_2 } from './components';
62
- import { FieldDescriptionProps as FieldDescriptionProps_2 } from './components';
63
- import { FieldProps as FieldProps_2 } from './components';
64
- import { Fieldset as Fieldset_2 } from './components';
65
- import { FieldsetProps as FieldsetProps_2 } from './components';
25
+ import { Details as Details_2 } from '@digdir/designsystemet-react';
26
+ import { DetailsProps as DetailsProps_2 } from '@digdir/designsystemet-react';
27
+ import { Dialog as Dialog_2 } from '@digdir/designsystemet-react';
28
+ import { DialogProps as DialogProps_2 } from '@digdir/designsystemet-react';
29
+ import { DividerProps as DividerProps_2 } from '@digdir/designsystemet-react';
30
+ import { Dropdown as Dropdown_2 } from '@digdir/designsystemet-react';
31
+ import { DropdownButton as DropdownButton_2 } from '@digdir/designsystemet-react';
32
+ import { DropdownButtonProps as DropdownButtonProps_2 } from '@digdir/designsystemet-react';
33
+ import { DropdownHeading as DropdownHeading_2 } from '@digdir/designsystemet-react';
34
+ import { DropdownHeadingProps as DropdownHeadingProps_2 } from '@digdir/designsystemet-react';
35
+ import { DropdownItem as DropdownItem_2 } from '@digdir/designsystemet-react';
36
+ import { DropdownItemProps as DropdownItemProps_2 } from '@digdir/designsystemet-react';
37
+ import { DropdownList as DropdownList_2 } from '@digdir/designsystemet-react';
38
+ import { DropdownListProps as DropdownListProps_2 } from '@digdir/designsystemet-react';
39
+ import { DropdownProps as DropdownProps_2 } from '@digdir/designsystemet-react';
40
+ import { DropdownTrigger as DropdownTrigger_2 } from '@digdir/designsystemet-react';
41
+ import { DropdownTriggerContext as DropdownTriggerContext_2 } from '@digdir/designsystemet-react';
42
+ import { DropdownTriggerContextProps as DropdownTriggerContextProps_2 } from '@digdir/designsystemet-react';
43
+ import { ErrorSummary as ErrorSummary_2 } from '@digdir/designsystemet-react';
44
+ import { ErrorSummaryProps as ErrorSummaryProps_2 } from '@digdir/designsystemet-react';
45
+ import { EXPERIMENTAL_Suggestion } from '@digdir/designsystemet-react';
46
+ import { Field as Field_2 } from '@digdir/designsystemet-react';
47
+ import { FieldCounter as FieldCounter_2 } from '@digdir/designsystemet-react';
48
+ import { FieldCounterProps as FieldCounterProps_2 } from '@digdir/designsystemet-react';
49
+ import { FieldDescription as FieldDescription_2 } from '@digdir/designsystemet-react';
50
+ import { FieldDescriptionProps as FieldDescriptionProps_2 } from '@digdir/designsystemet-react';
51
+ import { FieldProps as FieldProps_2 } from '@digdir/designsystemet-react';
52
+ import { Fieldset as Fieldset_2 } from '@digdir/designsystemet-react';
53
+ import { FieldsetProps as FieldsetProps_2 } from '@digdir/designsystemet-react';
66
54
  import { ForwardRefExoticComponent } from 'react';
67
- import { HeadingProps as HeadingProps_2 } from './components';
55
+ import { HeadingProps as HeadingProps_2 } from '@digdir/designsystemet-react';
68
56
  import { HTMLAttributes } from 'react';
69
- import { Input as Input_2 } from './components';
57
+ import { Input as Input_2 } from '@digdir/designsystemet-react';
70
58
  import { InputHTMLAttributes } from 'react';
71
- import { InputProps as InputProps_2 } from './components';
59
+ import { InputProps as InputProps_2 } from '@digdir/designsystemet-react';
72
60
  import { JSX } from 'react/jsx-runtime';
73
- import { LabelProps as LabelProps_2 } from './components';
74
- import { Link as Link_2 } from './components';
75
- import { LinkProps as LinkProps_2 } from './components';
76
- import { ListItem } from './list';
77
- import { ListOrdered } from './list';
78
- import { ListUnordered } from './list';
79
- import { Pagination as Pagination_2 } from './components';
80
- import { PaginationButton as PaginationButton_2 } from './components';
81
- import { PaginationButtonProps as PaginationButtonProps_2 } from './components';
82
- import { PaginationItem as PaginationItem_2 } from './components';
83
- import { PaginationItemProps as PaginationItemProps_2 } from './components';
84
- import { PaginationList as PaginationList_2 } from './components';
85
- import { PaginationListProps as PaginationListProps_2 } from './components';
86
- import { PaginationProps as PaginationProps_2 } from './components';
87
- import { ParagraphProps as ParagraphProps_2 } from './components';
88
- import { Popover as Popover_2 } from './components';
89
- import { PopoverProps as PopoverProps_2 } from './components';
90
- import { Radio as Radio_2 } from './components';
91
- import { RadioProps as RadioProps_2 } from './components';
61
+ import { LabelProps as LabelProps_2 } from '@digdir/designsystemet-react';
62
+ import { Link as Link_2 } from '@digdir/designsystemet-react';
63
+ import { LinkProps as LinkProps_2 } from '@digdir/designsystemet-react';
64
+ import { List as List_2 } from '@digdir/designsystemet-react';
65
+ import { Pagination as Pagination_2 } from '@digdir/designsystemet-react';
66
+ import { PaginationButton as PaginationButton_2 } from '@digdir/designsystemet-react';
67
+ import { PaginationButtonProps as PaginationButtonProps_2 } from '@digdir/designsystemet-react';
68
+ import { PaginationItem as PaginationItem_2 } from '@digdir/designsystemet-react';
69
+ import { PaginationItemProps as PaginationItemProps_2 } from '@digdir/designsystemet-react';
70
+ import { PaginationList as PaginationList_2 } from '@digdir/designsystemet-react';
71
+ import { PaginationListProps as PaginationListProps_2 } from '@digdir/designsystemet-react';
72
+ import { PaginationProps as PaginationProps_2 } from '@digdir/designsystemet-react';
73
+ import { ParagraphProps as ParagraphProps_2 } from '@digdir/designsystemet-react';
74
+ import { Popover as Popover_2 } from '@digdir/designsystemet-react';
75
+ import { PopoverProps as PopoverProps_2 } from '@digdir/designsystemet-react';
76
+ import { PropsWithoutRef } from 'react';
77
+ import { Radio as Radio_2 } from '@digdir/designsystemet-react';
78
+ import { RadioProps as RadioProps_2 } from '@digdir/designsystemet-react';
92
79
  import { ReactNode } from 'react';
93
80
  import { RefAttributes } from 'react';
94
- import { Search as Search_2 } from './components';
95
- import { SearchButton } from './components';
96
- import { SearchClear } from './components';
97
- import { SearchInput } from './components';
98
- import { SearchProps as SearchProps_2 } from './components';
99
- import { Select as Select_2 } from './components';
100
- import { SelectProps as SelectProps_2 } from './components';
81
+ import { Search as Search_2 } from '@digdir/designsystemet-react';
82
+ import { SearchButton } from '@digdir/designsystemet-react';
83
+ import { SearchClear } from '@digdir/designsystemet-react';
84
+ import { SearchInput } from '@digdir/designsystemet-react';
85
+ import { SearchProps as SearchProps_2 } from '@digdir/designsystemet-react';
86
+ import { Select as Select_2 } from '@digdir/designsystemet-react';
87
+ import { SelectProps as SelectProps_2 } from '@digdir/designsystemet-react';
101
88
  import { SeverityColors } from '@digdir/designsystemet-types';
102
- import { Size } from '@digdir/designsystemet/types';
103
- import { SkeletonProps as SkeletonProps_2 } from './components';
104
- import { SkipLink as SkipLink_2 } from './components';
105
- import { SkipLinkProps as SkipLinkProps_2 } from './components';
106
- import { SpinnerProps as SpinnerProps_2 } from './components';
107
- import { SuggestionProps as SuggestionProps_2 } from './components';
108
- import { Switch as Switch_2 } from './components';
109
- import { SwitchProps as SwitchProps_2 } from './components';
110
- import { Table as Table_2 } from './components';
111
- import { TableProps as TableProps_2 } from './components';
112
- import { Tabs as Tabs_2 } from './components';
113
- import { TabsProps as TabsProps_2 } from './components';
114
- import { Textarea as Textarea_2 } from './components';
115
- import { TextareaProps as TextareaProps_2 } from './components';
116
- import { TextfieldProps as TextfieldProps_2 } from './components';
117
- import { ToggleGroup as ToggleGroup_2 } from './components';
118
- import { ToggleGroupProps as ToggleGroupProps_2 } from './components';
119
- import { Tooltip as Tooltip_2 } from './components';
120
- import { TooltipProps as TooltipProps_2 } from './components';
121
- import { useCheckboxGroup as useCheckboxGroup_2 } from './utilities';
122
- import { usePagination as usePagination_2 } from './utilities';
123
- import { useRadioGroup as useRadioGroup_2 } from './utilities';
124
- import { ValidationMessageProps as ValidationMessageProps_2 } from './components';
89
+ import { Size } from '@digdir/designsystemet-types';
90
+ import { SkeletonProps as SkeletonProps_2 } from '@digdir/designsystemet-react';
91
+ import { SkipLink as SkipLink_2 } from '@digdir/designsystemet-react';
92
+ import { SkipLinkProps as SkipLinkProps_2 } from '@digdir/designsystemet-react';
93
+ import { SpinnerProps as SpinnerProps_2 } from '@digdir/designsystemet-react';
94
+ import { SuggestionProps as SuggestionProps_2 } from '@digdir/designsystemet-react';
95
+ import { Switch as Switch_2 } from '@digdir/designsystemet-react';
96
+ import { SwitchProps as SwitchProps_2 } from '@digdir/designsystemet-react';
97
+ import { Table as Table_2 } from '@digdir/designsystemet-react';
98
+ import { TableProps as TableProps_2 } from '@digdir/designsystemet-react';
99
+ import { Tabs as Tabs_2 } from '@digdir/designsystemet-react';
100
+ import { TabsProps as TabsProps_2 } from '@digdir/designsystemet-react';
101
+ import { Textarea as Textarea_2 } from '@digdir/designsystemet-react';
102
+ import { TextareaProps as TextareaProps_2 } from '@digdir/designsystemet-react';
103
+ import { TextfieldProps as TextfieldProps_2 } from '@digdir/designsystemet-react';
104
+ import { ToggleGroup as ToggleGroup_2 } from '@digdir/designsystemet-react';
105
+ import { ToggleGroupProps as ToggleGroupProps_2 } from '@digdir/designsystemet-react';
106
+ import { Tooltip as Tooltip_2 } from '@digdir/designsystemet-react';
107
+ import { TooltipProps as TooltipProps_2 } from '@digdir/designsystemet-react';
108
+ import { useCheckboxGroup as useCheckboxGroup_2 } from '@digdir/designsystemet-react';
109
+ import { usePagination as usePagination_2 } from '@digdir/designsystemet-react';
110
+ import { useRadioGroup as useRadioGroup_2 } from '@digdir/designsystemet-react';
111
+ import { ValidationMessageProps as ValidationMessageProps_2 } from '@digdir/designsystemet-react';
125
112
 
126
113
  export declare const Alert: ForwardRefExoticComponent<AlertProps & RefAttributes<HTMLDivElement>>;
127
114
 
128
115
  /**
129
116
  * Alert-komponent for å vise viktige meldinger til brukeren.
130
- * Utvider DigDir sin Alert med støtte for barn-elementer og tittel.
117
+ * Utvider DigDir sin Alert med en synlig tittel.
131
118
  */
132
119
  export declare interface AlertProps extends AlertProps_2 {
133
120
  children?: ReactNode;
121
+ /**
122
+ * Synlig tittel øverst i varselet. Uten `titleLevel` rendres den som
123
+ * visuelt fremhevet tekst (ikke en overskrift), slik at dokumentets
124
+ * overskriftsrekkefølge ikke brytes.
125
+ */
134
126
  title?: string;
127
+ /**
128
+ * Semantisk overskriftsnivå (2–6) for tittelen. Angi nivået som passer
129
+ * inn i sidens overskriftshierarki der varselet vises.
130
+ */
131
+ titleLevel?: 2 | 3 | 4 | 5 | 6;
135
132
  }
136
133
 
137
134
  export declare const Avatar: ForwardRefExoticComponent<AvatarProps_2 & RefAttributes<HTMLSpanElement>>;
@@ -142,13 +139,16 @@ export declare const Avatar: ForwardRefExoticComponent<AvatarProps_2 & RefAttrib
142
139
  */
143
140
  export declare type AvatarProps = AvatarProps_2;
144
141
 
145
- export { Badge }
142
+ export declare const Badge: ForwardRefExoticComponent<PropsWithoutRef<BadgeProps> & RefAttributes<HTMLSpanElement>>;
146
143
 
147
- export { BadgePosition }
144
+ export declare const BadgePosition: typeof BadgePosition_2;
148
145
 
149
- export { BadgePositionProps }
146
+ export declare type BadgePositionProps = BadgePositionProps_2;
150
147
 
151
- export { BadgeProps }
148
+ /**
149
+ * Badge-komponent for å vise status eller antall.
150
+ */
151
+ export declare type BadgeProps = BadgeProps_2;
152
152
 
153
153
  export declare const Breadcrumbs: typeof Breadcrumbs_2;
154
154
 
@@ -233,12 +233,7 @@ export declare type CheckboxProps = CheckboxProps_2;
233
233
  /**
234
234
  * Chip-komponent for filtrering, valg eller handlinger.
235
235
  */
236
- export declare const Chip: {
237
- Button: ChipButton;
238
- Checkbox: ChipCheckbox;
239
- Radio: ChipRadio;
240
- Removable: ChipRemovable;
241
- };
236
+ export declare const Chip: typeof Chip_2;
242
237
 
243
238
  export declare type ChipButtonProps = ChipButtonProps_2;
244
239
 
@@ -261,131 +256,54 @@ declare interface ContactPerson {
261
256
  address?: string;
262
257
  }
263
258
 
264
- /**
265
- * CrossCorner - Decorative L-shaped brand graphic element.
266
- *
267
- * Used as a visual accent across Røde Kors web projects.
268
- * The shape forms part of the cross pattern and can be positioned
269
- * in any corner orientation.
270
- */
271
- export declare const CrossCorner: ForwardRefExoticComponent<Omit<DefaultProps, "className" | "aria-hidden" | "aria-label" | "size" | "position"> & {
272
- /**
273
- * Which corner the graphic points to.
274
- * @default 'top-left'
275
- */
276
- position?: CrossCornerPosition;
277
- /**
278
- * Size of the graphic.
279
- * sm: 48px, md: 68px, lg: 96px
280
- * @default 'md'
281
- */
282
- size?: CrossCornerSize;
283
- /**
284
- * Optional CSS class name.
285
- */
286
- className?: string;
287
- /**
288
- * Accessible label for the decorative graphic.
289
- * Set to empty string if purely decorative.
290
- */
291
- 'aria-label'?: string;
292
- /**
293
- * Whether the graphic is hidden from assistive technologies.
294
- * @default true (decorative by default)
295
- */
296
- 'aria-hidden'?: boolean;
297
- } & RefAttributes<SVGSVGElement>>;
298
-
299
- /**
300
- * Position variants for the CrossCorner component.
301
- * Determines which corner the L-shape points to.
302
- */
303
- export declare type CrossCornerPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
304
-
305
- /**
306
- * Props for the CrossCorner component.
307
- */
308
- export declare type CrossCornerProps = MergeRight<DefaultProps, {
309
- /**
310
- * Which corner the graphic points to.
311
- * @default 'top-left'
312
- */
313
- position?: CrossCornerPosition;
314
- /**
315
- * Size of the graphic.
316
- * sm: 48px, md: 68px, lg: 96px
317
- * @default 'md'
318
- */
319
- size?: CrossCornerSize;
320
- /**
321
- * Optional CSS class name.
322
- */
323
- className?: string;
324
- /**
325
- * Accessible label for the decorative graphic.
326
- * Set to empty string if purely decorative.
327
- */
328
- 'aria-label'?: string;
329
- /**
330
- * Whether the graphic is hidden from assistive technologies.
331
- * @default true (decorative by default)
332
- */
333
- 'aria-hidden'?: boolean;
334
- }>;
335
-
336
- /**
337
- * Size variants for the CrossCorner component.
338
- * sm: 48px, md: 68px (default from Figma), lg: 96px
339
- */
340
- export declare type CrossCornerSize = 'sm' | 'md' | 'lg';
341
-
342
259
  /**
343
260
  * DateInput-komponent for inntasting av datoer i norsk format (dd.mm.åååå).
344
261
  * Håndterer automatisk formatering og validering av datoer.
345
262
  */
346
- export declare const DateInput: default_2.ForwardRefExoticComponent<Omit<DefaultProps, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "is" | "exportparts" | "part" | "popovertarget" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "height" | "max" | "min" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "size" | "src" | "width" | "label" | "description" | "error" | "suffixIcon" | "onSuffixClick" | "inputWrapperClassName" | "inputClassName"> & Omit<default_2.InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "prefix" | "inputMode" | "aria-label" | "aria-labelledby" | "onChange" | "type" | "value" | "maxLength" | "pattern" | "label" | "suffix"> & {
347
- label?: default_2.ReactNode;
348
- suffixIcon?: default_2.ReactNode;
349
- onSuffixClick?: default_2.MouseEventHandler<HTMLButtonElement>;
350
- className?: string;
351
- inputWrapperClassName?: string;
352
- inputClassName?: string;
353
- "aria-label"?: string;
354
- "aria-labelledby"?: string;
355
- description?: default_2.ReactNode;
356
- error?: default_2.ReactNode;
357
- value?: string | null;
358
- defaultValue?: string | null;
359
- onChange?: (event: default_2.ChangeEvent<HTMLInputElement>, formattedValue: string) => void;
360
- } & default_2.RefAttributes<HTMLInputElement>>;
263
+ export declare const DateInput: default_2.ForwardRefExoticComponent<DateInputProps & default_2.RefAttributes<HTMLInputElement>>;
361
264
 
362
- export declare type DateInputProps = MergeRight<DefaultProps, // <-- Legg til dette
363
- // <-- Legg til dette
364
- Omit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "suffix" | "label" | "aria-label" | "aria-labelledby" | "type" | "inputMode" | "pattern" | "maxLength" | "value" | "defaultValue" | "onChange"> & {
365
- label?: default_2.ReactNode;
265
+ export declare type DateInputProps = MergeRight<DefaultProps, Omit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "suffix" | "label" | "aria-label" | "aria-labelledby" | "type" | "inputMode" | "pattern" | "maxLength" | "value" | "defaultValue" | "onChange"> & {
266
+ /** Ikon som vises til høyre i feltet, f.eks. et kalenderikon. */
366
267
  suffixIcon?: default_2.ReactNode;
268
+ /** Klikk-håndterer for suffiks-knappen. Gjør knappen fokuserbar. */
367
269
  onSuffixClick?: default_2.MouseEventHandler<HTMLButtonElement>;
270
+ /** Klasse for den ytre wrapperen. */
368
271
  className?: string;
272
+ /** Klasse for input-wrapperen. */
369
273
  inputWrapperClassName?: string;
274
+ /** Klasse for selve input-elementet. */
370
275
  inputClassName?: string;
371
- "aria-label"?: string;
372
- "aria-labelledby"?: string;
276
+ /** Beskrivende hjelpetekst under etiketten. */
373
277
  description?: default_2.ReactNode;
278
+ /** Feilmelding. Styrer også aria-invalid og feilstiler. */
374
279
  error?: default_2.ReactNode;
375
280
  value?: string | null;
376
281
  defaultValue?: string | null;
282
+ /** Kalles ved endring med hendelsen og den formaterte verdien (dd.mm.åååå). */
377
283
  onChange?: (event: default_2.ChangeEvent<HTMLInputElement>, formattedValue: string) => void;
378
- }>;
284
+ /**
285
+ * Kalles når gyldigheten endres. `true`/`false` når datoen er komplett
286
+ * (åtte sifre), `false` ved blur med ufullstendig dato, `null` når feltet
287
+ * er tomt eller under utfylling. Umulige datoer (31.02, skuddårsbrudd)
288
+ * gir `false`.
289
+ */
290
+ onValidationChange?: (valid: boolean | null, formattedValue: string) => void;
291
+ } & LabelRequired>;
379
292
 
380
293
  /**
381
294
  * DatePicker-komponent for å velge en dato fra en kalender.
295
+ * Kalenderen følger ARIA-grid-mønsteret: ett tabstopp, piltaster mellom
296
+ * dager (på tvers av måneder), Home/End til start/slutt av uken og
297
+ * PageUp/PageDown mellom måneder.
382
298
  */
383
299
  export declare const DatePicker: default_2.FC<DatePickerProps>;
384
300
 
385
- export declare type DatePickerProps = MergeRight<DefaultProps, // <-- Lagt til
386
- {
301
+ export declare type DatePickerProps = MergeRight<DefaultProps, {
302
+ /** Måneden kalenderen åpner på når ingen dato er valgt. */
387
303
  initialDate?: Date;
304
+ /** Valgt dato. Utheves i kalenderen. */
388
305
  selectedDate?: Date | null;
306
+ /** Kalles når brukeren velger en dato. */
389
307
  onDateSelect?: (date: Date) => void;
390
308
  }>;
391
309
 
@@ -402,13 +320,10 @@ declare type DefaultProps = {
402
320
  * Endrer farge for underliggende Designsystemet-komponenter.
403
321
  * Velg fra forhåndsdefinerte farger og farger definert med theme.designsystemet.no.
404
322
  */
405
- 'data-color'?: Color_2;
323
+ 'data-color'?: Color;
406
324
  };
407
325
 
408
- export declare const Details: ForwardRefExoticComponent<DetailsProps_2 & RefAttributes<HTMLDetailsElement>> & {
409
- Summary: DetailsSummary;
410
- Content: DetailsContent;
411
- };
326
+ export declare const Details: typeof Details_2;
412
327
 
413
328
  /**
414
329
  * Details-komponent for å vise/skjule innhold.
@@ -436,9 +351,20 @@ export declare interface DonorAmount {
436
351
  label: string;
437
352
  }
438
353
 
354
+ /**
355
+ * @deprecated `'primary'` was a bespoke value that matched no real theme
356
+ * scope, so it silently inherited the surrounding theme. It now maps to
357
+ * `'primary-color-red'` and the alias will be removed in a later minor —
358
+ * pass the real scope name instead.
359
+ */
360
+ declare type DonorLegacyColor = 'primary';
361
+
439
362
  export declare interface DonorProps {
440
- /** Color theme variant */
441
- 'data-color'?: 'primary' | 'neutral';
363
+ /**
364
+ * Theme scope for the whole component — any real `data-color` scope from
365
+ * the design tokens (same vocabulary as every other component).
366
+ */
367
+ 'data-color'?: Color | DonorLegacyColor;
442
368
  /** Preset donation amounts */
443
369
  amounts?: DonorAmount[];
444
370
  /** Default selected amount (value) */
@@ -536,7 +462,14 @@ export declare const Fieldset: typeof Fieldset_2;
536
462
  */
537
463
  export declare type FieldsetProps = FieldsetProps_2;
538
464
 
539
- export declare const Footer: ({ "data-color": dataColor, variant, colorScheme, columns, showCrossCorners, newsletterDescription, newsletterPlaceholder, newsletterButtonText, newsletterConsentText, onNewsletterSubmit, hideNewsletter, shortcutsLinks, linksLinks, shortcutsTitle, linksTitle, visitingAddress, organizationNumber, email, showPrimaryLogo, primaryLogoSrc, primaryLogoAlt, whiteSectionSlot, socialLinks, contactPersons, legalLinks, socialLinksTitle, contactPersonsTitle, }?: FooterProps) => JSX.Element;
465
+ export declare const Footer: ({ "data-color": dataColor, variant, colorScheme, columns, showGraphicElements, newsletterDescription, newsletterPlaceholder, newsletterButtonText, newsletterConsentText, onNewsletterSubmit, hideNewsletter, shortcutsLinks, linksLinks, shortcutsTitle, linksTitle, visitingAddress, organizationNumber, email, showPrimaryLogo, primaryLogoSrc, primaryLogoAlt, whiteSectionSlot, socialLinks, contactPersons, legalLinks, socialLinksTitle, contactPersonsTitle, }?: FooterProps) => JSX.Element;
466
+
467
+ /**
468
+ * @deprecated `'primary'` and `'additional'` were bespoke values; they now map
469
+ * to `'primary-color-red'` and `'additional-color-ocean'` and the aliases will
470
+ * be removed in a later minor — pass the real scope name instead.
471
+ */
472
+ declare type FooterLegacyColor = 'primary' | 'additional';
540
473
 
541
474
  declare interface FooterLink {
542
475
  label: string;
@@ -544,8 +477,11 @@ declare interface FooterLink {
544
477
  }
545
478
 
546
479
  export declare interface FooterProps {
547
- /** Background color for the main section */
548
- 'data-color'?: 'primary' | 'additional' | 'neutral';
480
+ /**
481
+ * Theme scope for the main section — any real `data-color` scope from the
482
+ * design tokens. The background uses the scope's tinted background token.
483
+ */
484
+ 'data-color'?: Color | FooterLegacyColor;
549
485
  /** Footer layout variant. 'columns' renders N navigation columns (from `columns`) + an organisation meta row + a legal/copyright row. */
550
486
  variant?: 'default' | 'contact' | 'columns';
551
487
  /** Force a colour scheme on the footer (applies `data-color-scheme`). Lets any project render a light or dark footer from the same tokens. */
@@ -555,8 +491,8 @@ export declare interface FooterProps {
555
491
  title: string;
556
492
  links: FooterLink[];
557
493
  }[];
558
- /** Show CrossCorner decorative elements */
559
- showCrossCorners?: boolean;
494
+ /** Show decorative GraphicElement shapes in the corners */
495
+ showGraphicElements?: boolean;
560
496
  /** Newsletter section description text */
561
497
  newsletterDescription?: string;
562
498
  /** Newsletter input placeholder text */
@@ -603,13 +539,155 @@ export declare interface FooterProps {
603
539
  contactPersonsTitle?: string;
604
540
  }
605
541
 
542
+ /**
543
+ * GraphicElement - Decorative brand graphic elements derived from the cross.
544
+ *
545
+ * The four arms of the cross are split up and used as independent
546
+ * graphic elements - angles, corners, hearts, bars - all derived from
547
+ * the same base form. Used as visual accents across Røde Kors web
548
+ * projects to create recognition, direction and cohesion.
549
+ */
550
+ export declare const GraphicElement: ForwardRefExoticComponent<GraphicElementProps & RefAttributes<SVGSVGElement>>;
551
+
552
+ /**
553
+ * Shapes available in the isometric variant.
554
+ */
555
+ export declare type GraphicElementIsoShape = 'square' | 'corner' | 'angle' | 'heart' | 'bar';
556
+
557
+ /**
558
+ * Position variants for the GraphicElement component.
559
+ * Determines the rotation/orientation of the shape.
560
+ * For `shape="corner"` it is which corner the L-shape points to.
561
+ */
562
+ export declare type GraphicElementPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
563
+
564
+ /**
565
+ * Props for the GraphicElement component.
566
+ *
567
+ * `variant` and `shape` form a union: the isometric variant only
568
+ * accepts the shapes in GraphicElementIsoShape, enforced at compile time.
569
+ */
570
+ export declare type GraphicElementProps = MergeRight<DefaultProps, {
571
+ /**
572
+ * Orientation of the shape.
573
+ * For solid and outline: which corner the graphic points to.
574
+ * For isometric: selects between standing (top-*) and lying
575
+ * (bottom-*) orientations for corner and angle, and between
576
+ * vertical (top-left/bottom-right) and horizontal
577
+ * (top-right/bottom-left) for bar.
578
+ * @default 'top-left'
579
+ */
580
+ position?: GraphicElementPosition;
581
+ /**
582
+ * Size of the graphic (base grid size).
583
+ * For the corner shape: sm: 48px, md: 68px, lg: 96px.
584
+ * @default 'md'
585
+ */
586
+ size?: GraphicElementSize;
587
+ /**
588
+ * Color scope from the theme (rk-design-tokens). Available scopes:
589
+ * 'primary-color-red' (the default resolved value when inheriting
590
+ * from the surrounding scope), 'secondary-color-orange',
591
+ * 'secondary-color-rust', 'secondary-color-pink',
592
+ * 'additional-color-ocean', 'additional-color-jungle' and 'neutral'.
593
+ */
594
+ 'data-color'?: Color;
595
+ /**
596
+ * Optional CSS class name.
597
+ */
598
+ className?: string;
599
+ /**
600
+ * Accessible label for the decorative graphic.
601
+ * Set to empty string if purely decorative.
602
+ */
603
+ 'aria-label'?: string;
604
+ /**
605
+ * Whether the graphic is hidden from assistive technologies.
606
+ * @default true (decorative by default)
607
+ */
608
+ 'aria-hidden'?: boolean;
609
+ } & ({
610
+ /**
611
+ * Visual style: filled (solid) or thin stroke (outline).
612
+ * @default 'solid'
613
+ */
614
+ variant?: 'solid' | 'outline';
615
+ /**
616
+ * Which graphic element to render. All shapes are derived from
617
+ * the same base form: the arms of the cross.
618
+ * @default 'corner'
619
+ */
620
+ shape?: GraphicElementShape;
621
+ mirrored?: never;
622
+ } | {
623
+ /**
624
+ * Isometric 3D variant: the shape built from unit cubes with
625
+ * three token-driven faces. Available for the shapes square,
626
+ * corner, angle, heart and bar.
627
+ */
628
+ variant: 'isometric';
629
+ /**
630
+ * Shapes available in the isometric variant.
631
+ * @default 'corner'
632
+ */
633
+ shape?: Exclude<GraphicElementIsoShape, 'heart'>;
634
+ mirrored?: never;
635
+ } | {
636
+ variant: 'isometric';
637
+ shape: 'heart';
638
+ /**
639
+ * Mirrors the heart so the depth faces left instead of right.
640
+ * Only applies to the isometric heart.
641
+ * @default false
642
+ */
643
+ mirrored?: boolean;
644
+ })>;
645
+
646
+ /**
647
+ * Shape variants for the GraphicElement component.
648
+ * All shapes are derived from the same base grid as the cross:
649
+ * compositions of the cross's arm squares (grid unit = one arm width).
650
+ */
651
+ export declare type GraphicElementShape = 'corner' | 'square' | 'angle' | 'heart' | 'tee' | 'bar' | 'cross';
652
+
653
+ /**
654
+ * Size variants for the GraphicElement component.
655
+ * Refers to the base grid: for the 2x2 `corner` shape,
656
+ * sm: 48px, md: 68px, lg: 96px.
657
+ * Shapes spanning more or fewer grid cells scale proportionally,
658
+ * so the arm square stays the same size across shapes.
659
+ */
660
+ export declare type GraphicElementSize = 'sm' | 'md' | 'lg';
661
+
662
+ /**
663
+ * Style variants for the GraphicElement component.
664
+ * solid: filled grid cells. outline: thin ~2px open strokes on a
665
+ * subset of the grid cell edges (not a closed contour).
666
+ * isometric: each grid cell becomes an isometric unit cube with three
667
+ * token-driven faces (front = light, top = mid, right = dark).
668
+ * The isometric variant is available for the shapes square, corner,
669
+ * angle, heart and bar - see GraphicElementIsoShape.
670
+ */
671
+ export declare type GraphicElementVariant = 'solid' | 'outline' | 'isometric';
672
+
606
673
  export declare const Header: ({ variant, "data-color": dataColor, activePage, setPage, children, showUser, showSearch, showLogin, showCta, ctaLabel, ctaIcon, onCtaClick, showThemeToggle, secondaryLogo, secondaryLogoSrc, secondaryLogoSrcDark, secondaryLogoAlt, navItems, showNavItems, showMenuButton, showHeaderExtension, showModeToggle, showLanguageSwitch, extensionColor, userName, userInitials, userAvatarSrc, onUserClick, }: HeaderProps) => JSX.Element;
607
674
 
675
+ /**
676
+ * @deprecated `'primary'` was a bespoke value; it now maps to
677
+ * `'primary-color-red'` and the alias will be removed in a later minor —
678
+ * pass the real scope name instead.
679
+ */
680
+ declare type HeaderLegacyColor = 'primary';
681
+
608
682
  export declare interface HeaderProps {
609
683
  /** Layout density. 'compact' renders a slimmer header with a transparent (non-boxed) logo area and reduced height — useful for documentation sites, dashboards or any app that wants a lighter top bar. Defaults to 'default'. */
610
684
  variant?: 'default' | 'compact';
611
- /** Background color for the header extension (top bar): 'primary' uses primary-color-red-base-default, 'neutral' uses neutral-base-default */
612
- 'data-color'?: 'primary' | 'neutral';
685
+ /**
686
+ * Theme scope for the header extension (top bar) — any real `data-color`
687
+ * scope from the design tokens. The extension background uses the scope's
688
+ * base color with matching contrast text.
689
+ */
690
+ 'data-color'?: Color | HeaderLegacyColor;
613
691
  activePage?: string;
614
692
  setPage?: (pageName: string) => void;
615
693
  children?: default_2.ReactNode;
@@ -673,6 +751,24 @@ export declare interface LabelProps extends LabelProps_2 {
673
751
  children?: ReactNode;
674
752
  }
675
753
 
754
+ /**
755
+ * Hjelpetype for å håndheve tilgjengelighetsmerker (labels).
756
+ * Sikrer at en av 'label', 'aria-label' eller 'aria-labelledby' er oppgitt.
757
+ */
758
+ declare type LabelRequired = {
759
+ 'aria-label': string;
760
+ 'aria-labelledby'?: never;
761
+ label?: never;
762
+ } | {
763
+ 'aria-label'?: never;
764
+ 'aria-labelledby'?: never;
765
+ label: ReactNode;
766
+ } | {
767
+ 'aria-label'?: never;
768
+ 'aria-labelledby': string;
769
+ label?: never;
770
+ };
771
+
676
772
  export declare type Language = 'NO' | 'EN';
677
773
 
678
774
  export declare interface LanguageContextType {
@@ -702,11 +798,7 @@ export declare type LinkProps = LinkProps_2;
702
798
  /**
703
799
  * List-komponent for punktlister (ul) og nummererte lister (ol).
704
800
  */
705
- export declare const List: {
706
- Item: ListItem;
707
- Ordered: ListOrdered;
708
- Unordered: ListUnordered;
709
- };
801
+ export declare const List: typeof List_2;
710
802
 
711
803
  /**
712
804
  * Slår sammen to typer, der egenskaper fra T2 (høyre) overskriver egenskaper fra T1 (venstre).
@@ -815,13 +907,7 @@ export declare type SpinnerProps = SpinnerProps_2;
815
907
  * Suggestion-komponent for autofullfør/søkeforslag.
816
908
  * Merk: Dette er en eksperimentell komponent fra DigDir.
817
909
  */
818
- export declare const Suggestion: ForwardRefExoticComponent<SuggestionProps_2 & RefAttributes<DSSuggestionElement>> & {
819
- List: EXPERIMENTAL_SuggestionList;
820
- Input: EXPERIMENTAL_SuggestionInput;
821
- Empty: EXPERIMENTAL_SuggestionEmpty;
822
- Option: EXPERIMENTAL_SuggestionOption;
823
- Clear: EXPERIMENTAL_SuggestionClear;
824
- };
910
+ export declare const Suggestion: typeof EXPERIMENTAL_Suggestion;
825
911
 
826
912
  export declare type SuggestionClearProps = ComponentProps<typeof EXPERIMENTAL_Suggestion.Clear>;
827
913
 
@@ -945,3 +1031,22 @@ export declare interface ValidationMessageProps extends ValidationMessageProps_2
945
1031
  }
946
1032
 
947
1033
  export { }
1034
+
1035
+ // --- Embedded from rk-design-tokens/design-tokens-build/types.d.ts ---
1036
+ declare module '@digdir/designsystemet-types' {
1037
+ export interface ColorDefinitions {
1038
+ 'primary-color-red': never;
1039
+ 'secondary-color-orange': never;
1040
+ 'secondary-color-rust': never;
1041
+ 'secondary-color-pink': never;
1042
+ 'additional-color-ocean': never;
1043
+ 'additional-color-jungle': never;
1044
+ neutral: never;
1045
+ }
1046
+ export interface SeverityColorDefinitions {
1047
+ info: never;
1048
+ success: never;
1049
+ warning: never;
1050
+ danger: never;
1051
+ }
1052
+ }