@digdir/designsystemet-react 1.0.0-next.45-test-react19 → 1.0.0-next.46

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 (59) hide show
  1. package/dist/cjs/components/Combobox/Combobox.js +1 -1
  2. package/dist/cjs/components/Combobox/internal/ComboboxChips.js +1 -1
  3. package/dist/cjs/components/Tabs/TabsList.js +2 -3
  4. package/dist/cjs/components/Tabs/TabsPanel.js +13 -3
  5. package/dist/cjs/components/Tabs/TabsTab.js +3 -4
  6. package/dist/cjs/index.js +2 -0
  7. package/dist/cjs/utilities/RovingFocus/RovingFocusRoot.js +1 -1
  8. package/dist/cjs/utilities/hooks/usePrevious/usePrevious.js +14 -0
  9. package/dist/esm/components/Combobox/Combobox.js +1 -1
  10. package/dist/esm/components/Combobox/internal/ComboboxChips.js +1 -1
  11. package/dist/esm/components/Tabs/TabsList.js +2 -3
  12. package/dist/esm/components/Tabs/TabsPanel.js +14 -4
  13. package/dist/esm/components/Tabs/TabsTab.js +3 -4
  14. package/dist/esm/index.js +1 -0
  15. package/dist/esm/utilities/RovingFocus/RovingFocusRoot.js +1 -1
  16. package/dist/esm/utilities/hooks/usePrevious/usePrevious.js +12 -0
  17. package/dist/types/components/Chip/Chips.d.ts +2 -2
  18. package/dist/types/components/Chip/Chips.d.ts.map +1 -1
  19. package/dist/types/components/Chip/index.d.ts +2 -2
  20. package/dist/types/components/Combobox/ComboboxContext.d.ts +1 -1
  21. package/dist/types/components/Combobox/ComboboxContext.d.ts.map +1 -1
  22. package/dist/types/components/Combobox/Option/Option.d.ts +2 -2
  23. package/dist/types/components/Combobox/Option/Option.d.ts.map +1 -1
  24. package/dist/types/components/Combobox/Option/useComboboxOption.d.ts +4 -6
  25. package/dist/types/components/Combobox/Option/useComboboxOption.d.ts.map +1 -1
  26. package/dist/types/components/Combobox/useFloatingCombobox.d.ts +2 -2
  27. package/dist/types/components/Combobox/useFloatingCombobox.d.ts.map +1 -1
  28. package/dist/types/components/Input/Input.d.ts +14 -6
  29. package/dist/types/components/Input/Input.d.ts.map +1 -1
  30. package/dist/types/components/Modal/ModalTrigger.d.ts +4 -2
  31. package/dist/types/components/Modal/ModalTrigger.d.ts.map +1 -1
  32. package/dist/types/components/Modal/ModalTriggerContext.d.ts +1 -1
  33. package/dist/types/components/Modal/ModalTriggerContext.d.ts.map +1 -1
  34. package/dist/types/components/Modal/index.d.ts +4 -2
  35. package/dist/types/components/Modal/index.d.ts.map +1 -1
  36. package/dist/types/components/Popover/Popover.d.ts +1 -1
  37. package/dist/types/components/Search/SearchInput.d.ts +1 -1
  38. package/dist/types/components/Search/index.d.ts +1 -1
  39. package/dist/types/components/Switch/Switch.d.ts +1 -1
  40. package/dist/types/components/Switch/Switch.d.ts.map +1 -1
  41. package/dist/types/components/Tabs/TabsList.d.ts.map +1 -1
  42. package/dist/types/components/Tabs/TabsPanel.d.ts.map +1 -1
  43. package/dist/types/components/Tabs/TabsTab.d.ts.map +1 -1
  44. package/dist/types/components/Textfield/Textfield.d.ts +7 -1
  45. package/dist/types/components/Textfield/Textfield.d.ts.map +1 -1
  46. package/dist/types/components/Tooltip/Tooltip.d.ts +1 -1
  47. package/dist/types/utilities/RovingFocus/useRovingFocus.d.ts +1 -14
  48. package/dist/types/utilities/RovingFocus/useRovingFocus.d.ts.map +1 -1
  49. package/dist/types/utilities/hooks/index.d.ts +1 -0
  50. package/dist/types/utilities/hooks/index.d.ts.map +1 -1
  51. package/dist/types/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.ts +325 -6
  52. package/dist/types/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.ts.map +1 -1
  53. package/dist/types/utilities/hooks/usePrevious/usePrevious.d.ts +2 -0
  54. package/dist/types/utilities/hooks/usePrevious/usePrevious.d.ts.map +1 -0
  55. package/dist/types/utilities/hooks/useRadioGroup/useRadioGroup.d.ts +327 -13
  56. package/dist/types/utilities/hooks/useRadioGroup/useRadioGroup.d.ts.map +1 -1
  57. package/dist/types/utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.d.ts +1 -1
  58. package/dist/types/utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.d.ts.map +1 -1
  59. package/package.json +8 -8
@@ -25,19 +25,9 @@ export type UseRadioGroupProps = {
25
25
  * remove anything that comes from the group itself.
26
26
  */
27
27
  export type GetRadioProps = Omit<RadioProps, 'prefix' | 'role' | 'type' | 'size' | 'aria-label' | 'aria-labelledby' | 'label' | 'name' | 'checked' | 'value'> & {
28
- ref?: React.Ref<HTMLInputElement | null>;
28
+ ref?: React.RefObject<HTMLInputElement>;
29
29
  value?: string;
30
30
  };
31
- type useRadioGroupReturn = {
32
- value: string;
33
- setValue: React.Dispatch<React.SetStateAction<string>>;
34
- getRadioProps: (propsOrValue: string | GetRadioProps) => GetRadioProps;
35
- validationMessageProps: {
36
- children: ReactNode;
37
- hidden: boolean;
38
- id: string;
39
- };
40
- };
41
31
  /**
42
32
  * useRadioGroup is used to group multiple <Radio> components
43
33
  * @example
@@ -51,6 +41,330 @@ type useRadioGroupReturn = {
51
41
  * value: '',
52
42
  * });
53
43
  */
54
- export declare function useRadioGroup({ error, readOnly, required, disabled, name, onChange, value: initalValue, }?: UseRadioGroupProps): useRadioGroupReturn;
55
- export {};
44
+ export declare function useRadioGroup({ error, readOnly, required, disabled, name, onChange, value: initalValue, }?: UseRadioGroupProps): {
45
+ /**
46
+ * Current value of the group.
47
+ */
48
+ value: string;
49
+ /**
50
+ * Set the value of the group.
51
+ *
52
+ * @param value string[]
53
+ * @returns void
54
+ */
55
+ setValue: React.Dispatch<React.SetStateAction<string>>;
56
+ /**
57
+ * Props to send to the `Radio` component.
58
+ * @example
59
+ * <Radio label="Option 1" {...getRadioProps('option-1')} />
60
+ */
61
+ getRadioProps: (propsOrValue: string | GetRadioProps) => {
62
+ name: string;
63
+ 'aria-describedby': string | undefined;
64
+ 'aria-invalid': boolean | "true" | "false" | "grammar" | "spelling" | undefined;
65
+ value: string;
66
+ ref: ((instance: HTMLInputElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null;
67
+ required: boolean | undefined;
68
+ readOnly: boolean | undefined;
69
+ disabled: boolean | undefined;
70
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
71
+ accept?: string | undefined;
72
+ alt?: string | undefined;
73
+ autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
74
+ capture?: boolean | "user" | "environment" | undefined;
75
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
76
+ form?: string | undefined;
77
+ formAction?: string | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
78
+ formEncType?: string | undefined;
79
+ formMethod?: string | undefined;
80
+ formNoValidate?: boolean | undefined;
81
+ formTarget?: string | undefined;
82
+ height?: number | string | undefined;
83
+ list?: string | undefined;
84
+ max?: number | string | undefined;
85
+ maxLength?: number | undefined;
86
+ min?: number | string | undefined;
87
+ minLength?: number | undefined;
88
+ multiple?: boolean | undefined;
89
+ pattern?: string | undefined;
90
+ placeholder?: string | undefined;
91
+ src?: string | undefined;
92
+ step?: number | string | undefined;
93
+ width?: number | string | undefined;
94
+ defaultChecked?: boolean | undefined;
95
+ defaultValue?: string | number | readonly string[] | undefined;
96
+ suppressContentEditableWarning?: boolean | undefined;
97
+ suppressHydrationWarning?: boolean | undefined;
98
+ accessKey?: string | undefined;
99
+ autoFocus?: boolean | undefined;
100
+ className?: string | undefined;
101
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
102
+ contextMenu?: string | undefined;
103
+ dir?: string | undefined;
104
+ draggable?: (boolean | "true" | "false") | undefined;
105
+ hidden?: boolean | undefined;
106
+ id?: string | undefined;
107
+ lang?: string | undefined;
108
+ nonce?: string | undefined;
109
+ slot?: string | undefined;
110
+ spellCheck?: (boolean | "true" | "false") | undefined;
111
+ style?: React.CSSProperties | undefined;
112
+ tabIndex?: number | undefined;
113
+ title?: string | undefined;
114
+ translate?: "yes" | "no" | undefined;
115
+ radioGroup?: string | undefined;
116
+ about?: string | undefined;
117
+ content?: string | undefined;
118
+ datatype?: string | undefined;
119
+ inlist?: any;
120
+ property?: string | undefined;
121
+ rel?: string | undefined;
122
+ resource?: string | undefined;
123
+ rev?: string | undefined;
124
+ typeof?: string | undefined;
125
+ vocab?: string | undefined;
126
+ autoCapitalize?: string | undefined;
127
+ autoCorrect?: string | undefined;
128
+ autoSave?: string | undefined;
129
+ color?: string | undefined;
130
+ itemProp?: string | undefined;
131
+ itemScope?: boolean | undefined;
132
+ itemType?: string | undefined;
133
+ itemID?: string | undefined;
134
+ itemRef?: string | undefined;
135
+ results?: number | undefined;
136
+ security?: string | undefined;
137
+ unselectable?: "on" | "off" | undefined;
138
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
139
+ is?: string | undefined;
140
+ popovertarget?: string | undefined;
141
+ 'data-size'?: (import("../../..").Size | (string & {})) | undefined;
142
+ 'data-color'?: (import("../../../colors").Color | (string & {})) | undefined;
143
+ "aria-activedescendant"?: string | undefined;
144
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
145
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
146
+ "aria-braillelabel"?: string | undefined;
147
+ "aria-brailleroledescription"?: string | undefined;
148
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
149
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
150
+ "aria-colcount"?: number | undefined;
151
+ "aria-colindex"?: number | undefined;
152
+ "aria-colindextext"?: string | undefined;
153
+ "aria-colspan"?: number | undefined;
154
+ "aria-controls"?: string | undefined;
155
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
156
+ "aria-description"?: string | undefined;
157
+ "aria-details"?: string | undefined;
158
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
159
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
160
+ "aria-errormessage"?: string | undefined;
161
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
162
+ "aria-flowto"?: string | undefined;
163
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
164
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
165
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
166
+ "aria-keyshortcuts"?: string | undefined;
167
+ "aria-level"?: number | undefined;
168
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
169
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
170
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
171
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
172
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
173
+ "aria-owns"?: string | undefined;
174
+ "aria-placeholder"?: string | undefined;
175
+ "aria-posinset"?: number | undefined;
176
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
177
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
178
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
179
+ "aria-required"?: (boolean | "true" | "false") | undefined;
180
+ "aria-roledescription"?: string | undefined;
181
+ "aria-rowcount"?: number | undefined;
182
+ "aria-rowindex"?: number | undefined;
183
+ "aria-rowindextext"?: string | undefined;
184
+ "aria-rowspan"?: number | undefined;
185
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
186
+ "aria-setsize"?: number | undefined;
187
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
188
+ "aria-valuemax"?: number | undefined;
189
+ "aria-valuemin"?: number | undefined;
190
+ "aria-valuenow"?: number | undefined;
191
+ "aria-valuetext"?: string | undefined;
192
+ children?: ReactNode | undefined;
193
+ dangerouslySetInnerHTML?: {
194
+ __html: string | TrustedHTML;
195
+ } | undefined;
196
+ onCopy?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
197
+ onCopyCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
198
+ onCut?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
199
+ onCutCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
200
+ onPaste?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
201
+ onPasteCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
202
+ onCompositionEnd?: React.CompositionEventHandler<HTMLInputElement> | undefined;
203
+ onCompositionEndCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
204
+ onCompositionStart?: React.CompositionEventHandler<HTMLInputElement> | undefined;
205
+ onCompositionStartCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
206
+ onCompositionUpdate?: React.CompositionEventHandler<HTMLInputElement> | undefined;
207
+ onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
208
+ onFocus?: React.FocusEventHandler<HTMLInputElement> | undefined;
209
+ onFocusCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
210
+ onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
211
+ onBlurCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
212
+ onChangeCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
213
+ onBeforeInput?: React.FormEventHandler<HTMLInputElement> | undefined;
214
+ onBeforeInputCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
215
+ onInput?: React.FormEventHandler<HTMLInputElement> | undefined;
216
+ onInputCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
217
+ onReset?: React.FormEventHandler<HTMLInputElement> | undefined;
218
+ onResetCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
219
+ onSubmit?: React.FormEventHandler<HTMLInputElement> | undefined;
220
+ onSubmitCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
221
+ onInvalid?: React.FormEventHandler<HTMLInputElement> | undefined;
222
+ onInvalidCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
223
+ onLoad?: React.ReactEventHandler<HTMLInputElement> | undefined;
224
+ onLoadCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
225
+ onError?: React.ReactEventHandler<HTMLInputElement> | undefined;
226
+ onErrorCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
227
+ onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
228
+ onKeyDownCapture?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
229
+ onKeyPress?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
230
+ onKeyPressCapture?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
231
+ onKeyUp?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
232
+ onKeyUpCapture?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
233
+ onAbort?: React.ReactEventHandler<HTMLInputElement> | undefined;
234
+ onAbortCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
235
+ onCanPlay?: React.ReactEventHandler<HTMLInputElement> | undefined;
236
+ onCanPlayCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
237
+ onCanPlayThrough?: React.ReactEventHandler<HTMLInputElement> | undefined;
238
+ onCanPlayThroughCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
239
+ onDurationChange?: React.ReactEventHandler<HTMLInputElement> | undefined;
240
+ onDurationChangeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
241
+ onEmptied?: React.ReactEventHandler<HTMLInputElement> | undefined;
242
+ onEmptiedCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
243
+ onEncrypted?: React.ReactEventHandler<HTMLInputElement> | undefined;
244
+ onEncryptedCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
245
+ onEnded?: React.ReactEventHandler<HTMLInputElement> | undefined;
246
+ onEndedCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
247
+ onLoadedData?: React.ReactEventHandler<HTMLInputElement> | undefined;
248
+ onLoadedDataCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
249
+ onLoadedMetadata?: React.ReactEventHandler<HTMLInputElement> | undefined;
250
+ onLoadedMetadataCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
251
+ onLoadStart?: React.ReactEventHandler<HTMLInputElement> | undefined;
252
+ onLoadStartCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
253
+ onPause?: React.ReactEventHandler<HTMLInputElement> | undefined;
254
+ onPauseCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
255
+ onPlay?: React.ReactEventHandler<HTMLInputElement> | undefined;
256
+ onPlayCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
257
+ onPlaying?: React.ReactEventHandler<HTMLInputElement> | undefined;
258
+ onPlayingCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
259
+ onProgress?: React.ReactEventHandler<HTMLInputElement> | undefined;
260
+ onProgressCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
261
+ onRateChange?: React.ReactEventHandler<HTMLInputElement> | undefined;
262
+ onRateChangeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
263
+ onResize?: React.ReactEventHandler<HTMLInputElement> | undefined;
264
+ onResizeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
265
+ onSeeked?: React.ReactEventHandler<HTMLInputElement> | undefined;
266
+ onSeekedCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
267
+ onSeeking?: React.ReactEventHandler<HTMLInputElement> | undefined;
268
+ onSeekingCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
269
+ onStalled?: React.ReactEventHandler<HTMLInputElement> | undefined;
270
+ onStalledCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
271
+ onSuspend?: React.ReactEventHandler<HTMLInputElement> | undefined;
272
+ onSuspendCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
273
+ onTimeUpdate?: React.ReactEventHandler<HTMLInputElement> | undefined;
274
+ onTimeUpdateCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
275
+ onVolumeChange?: React.ReactEventHandler<HTMLInputElement> | undefined;
276
+ onVolumeChangeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
277
+ onWaiting?: React.ReactEventHandler<HTMLInputElement> | undefined;
278
+ onWaitingCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
279
+ onAuxClick?: React.MouseEventHandler<HTMLInputElement> | undefined;
280
+ onAuxClickCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
281
+ onClick?: React.MouseEventHandler<HTMLInputElement> | undefined;
282
+ onClickCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
283
+ onContextMenu?: React.MouseEventHandler<HTMLInputElement> | undefined;
284
+ onContextMenuCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
285
+ onDoubleClick?: React.MouseEventHandler<HTMLInputElement> | undefined;
286
+ onDoubleClickCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
287
+ onDrag?: React.DragEventHandler<HTMLInputElement> | undefined;
288
+ onDragCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
289
+ onDragEnd?: React.DragEventHandler<HTMLInputElement> | undefined;
290
+ onDragEndCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
291
+ onDragEnter?: React.DragEventHandler<HTMLInputElement> | undefined;
292
+ onDragEnterCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
293
+ onDragExit?: React.DragEventHandler<HTMLInputElement> | undefined;
294
+ onDragExitCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
295
+ onDragLeave?: React.DragEventHandler<HTMLInputElement> | undefined;
296
+ onDragLeaveCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
297
+ onDragOver?: React.DragEventHandler<HTMLInputElement> | undefined;
298
+ onDragOverCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
299
+ onDragStart?: React.DragEventHandler<HTMLInputElement> | undefined;
300
+ onDragStartCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
301
+ onDrop?: React.DragEventHandler<HTMLInputElement> | undefined;
302
+ onDropCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
303
+ onMouseDown?: React.MouseEventHandler<HTMLInputElement> | undefined;
304
+ onMouseDownCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
305
+ onMouseEnter?: React.MouseEventHandler<HTMLInputElement> | undefined;
306
+ onMouseLeave?: React.MouseEventHandler<HTMLInputElement> | undefined;
307
+ onMouseMove?: React.MouseEventHandler<HTMLInputElement> | undefined;
308
+ onMouseMoveCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
309
+ onMouseOut?: React.MouseEventHandler<HTMLInputElement> | undefined;
310
+ onMouseOutCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
311
+ onMouseOver?: React.MouseEventHandler<HTMLInputElement> | undefined;
312
+ onMouseOverCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
313
+ onMouseUp?: React.MouseEventHandler<HTMLInputElement> | undefined;
314
+ onMouseUpCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
315
+ onSelect?: React.ReactEventHandler<HTMLInputElement> | undefined;
316
+ onSelectCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
317
+ onTouchCancel?: React.TouchEventHandler<HTMLInputElement> | undefined;
318
+ onTouchCancelCapture?: React.TouchEventHandler<HTMLInputElement> | undefined;
319
+ onTouchEnd?: React.TouchEventHandler<HTMLInputElement> | undefined;
320
+ onTouchEndCapture?: React.TouchEventHandler<HTMLInputElement> | undefined;
321
+ onTouchMove?: React.TouchEventHandler<HTMLInputElement> | undefined;
322
+ onTouchMoveCapture?: React.TouchEventHandler<HTMLInputElement> | undefined;
323
+ onTouchStart?: React.TouchEventHandler<HTMLInputElement> | undefined;
324
+ onTouchStartCapture?: React.TouchEventHandler<HTMLInputElement> | undefined;
325
+ onPointerDown?: React.PointerEventHandler<HTMLInputElement> | undefined;
326
+ onPointerDownCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
327
+ onPointerMove?: React.PointerEventHandler<HTMLInputElement> | undefined;
328
+ onPointerMoveCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
329
+ onPointerUp?: React.PointerEventHandler<HTMLInputElement> | undefined;
330
+ onPointerUpCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
331
+ onPointerCancel?: React.PointerEventHandler<HTMLInputElement> | undefined;
332
+ onPointerCancelCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
333
+ onPointerEnter?: React.PointerEventHandler<HTMLInputElement> | undefined;
334
+ onPointerLeave?: React.PointerEventHandler<HTMLInputElement> | undefined;
335
+ onPointerOver?: React.PointerEventHandler<HTMLInputElement> | undefined;
336
+ onPointerOverCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
337
+ onPointerOut?: React.PointerEventHandler<HTMLInputElement> | undefined;
338
+ onPointerOutCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
339
+ onGotPointerCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
340
+ onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
341
+ onLostPointerCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
342
+ onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
343
+ onScroll?: React.UIEventHandler<HTMLInputElement> | undefined;
344
+ onScrollCapture?: React.UIEventHandler<HTMLInputElement> | undefined;
345
+ onWheel?: React.WheelEventHandler<HTMLInputElement> | undefined;
346
+ onWheelCapture?: React.WheelEventHandler<HTMLInputElement> | undefined;
347
+ onAnimationStart?: React.AnimationEventHandler<HTMLInputElement> | undefined;
348
+ onAnimationStartCapture?: React.AnimationEventHandler<HTMLInputElement> | undefined;
349
+ onAnimationEnd?: React.AnimationEventHandler<HTMLInputElement> | undefined;
350
+ onAnimationEndCapture?: React.AnimationEventHandler<HTMLInputElement> | undefined;
351
+ onAnimationIteration?: React.AnimationEventHandler<HTMLInputElement> | undefined;
352
+ onAnimationIterationCapture?: React.AnimationEventHandler<HTMLInputElement> | undefined;
353
+ onTransitionEnd?: React.TransitionEventHandler<HTMLInputElement> | undefined;
354
+ onTransitionEndCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
355
+ description?: ReactNode;
356
+ validation?: ReactNode;
357
+ };
358
+ /**
359
+ * Props to send to the `ValidationMessage` component.
360
+ *
361
+ * @example
362
+ * <ValidationMessage {...validationMessageProps} />
363
+ */
364
+ validationMessageProps: {
365
+ children: ReactNode;
366
+ hidden: boolean;
367
+ id: string;
368
+ };
369
+ };
56
370
  //# sourceMappingURL=useRadioGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRadioGroup.d.ts","sourceRoot":"","sources":["../../../../src/utilities/hooks/useRadioGroup/useRadioGroup.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,aAAa,GA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;;EAON"}
@@ -10,5 +10,5 @@
10
10
  * />
11
11
  * ```
12
12
  */
13
- export declare function useSynchronizedAnimation<T>(animationName: string): React.RefObject<T | null>;
13
+ export declare function useSynchronizedAnimation<T>(animationName: string): React.RefObject<T>;
14
14
  //# sourceMappingURL=useSynchronizedAnimation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSynchronizedAnimation.d.ts","sourceRoot":"","sources":["../../../../src/utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,6BA2ChE"}
1
+ {"version":3,"file":"useSynchronizedAnimation.d.ts","sourceRoot":"","sources":["../../../../src/utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,sBA2ChE"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet-react",
3
3
  "type": "module",
4
- "version": "1.0.0-next.45-test-react19",
4
+ "version": "1.0.0-next.46",
5
5
  "description": "React components for Designsystemet",
6
6
  "author": "Designsystemet team",
7
7
  "repository": {
@@ -45,8 +45,8 @@
45
45
  "@floating-ui/dom": "^1.6.10",
46
46
  "@floating-ui/react": "0.26.23",
47
47
  "@navikt/aksel-icons": "^6.14.0",
48
- "@radix-ui/react-slot": "^1.1.1",
49
- "@tanstack/react-virtual": "^3.11.2",
48
+ "@radix-ui/react-slot": "^1.1.0",
49
+ "@tanstack/react-virtual": "^3.10.7",
50
50
  "@u-elements/u-details": "^0.1.0",
51
51
  "clsx": "^2.1.1"
52
52
  },
@@ -54,16 +54,16 @@
54
54
  "@rollup/plugin-commonjs": "^26.0.1",
55
55
  "@rollup/plugin-node-resolve": "^15.2.3",
56
56
  "@testing-library/dom": "^10.4.0",
57
- "@testing-library/jest-dom": "^6.6.3",
58
- "@testing-library/react": "^16.1.0",
57
+ "@testing-library/jest-dom": "^6.4.8",
58
+ "@testing-library/react": "^16.0.0",
59
59
  "@testing-library/user-event": "^14.5.2",
60
60
  "copyfiles": "^2.4.1",
61
61
  "jsdom": "^24.1.1",
62
- "react": "^19.0.0",
63
- "react-dom": "^19.0.0",
62
+ "react": "^18.3.1",
63
+ "react-dom": "^18.3.1",
64
64
  "rimraf": "^6.0.1",
65
65
  "rollup": "^4.22.4",
66
66
  "rollup-plugin-copy": "^3.5.0",
67
- "typescript": "^5.7.3"
67
+ "typescript": "^5.5.4"
68
68
  }
69
69
  }