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

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