@workday/canvas-kit-labs-react 16.1.3 → 16.2.0-0604-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/commonjs/ai-ingress-button/lib/AIIngressButton.js +5 -5
  2. package/dist/commonjs/index.d.ts +1 -0
  3. package/dist/commonjs/index.d.ts.map +1 -1
  4. package/dist/commonjs/index.js +1 -0
  5. package/dist/commonjs/kbd/lib/KBD.js +6 -6
  6. package/dist/commonjs/kbd/lib/KBDItem.js +6 -6
  7. package/dist/commonjs/selection-group/index.d.ts +7 -0
  8. package/dist/commonjs/selection-group/index.d.ts.map +1 -0
  9. package/dist/commonjs/selection-group/index.js +22 -0
  10. package/dist/commonjs/selection-group/lib/SelectionGroup.d.ts +1499 -0
  11. package/dist/commonjs/selection-group/lib/SelectionGroup.d.ts.map +1 -0
  12. package/dist/commonjs/selection-group/lib/SelectionGroup.js +61 -0
  13. package/dist/commonjs/selection-group/lib/SelectionGroupIcon.d.ts +17 -0
  14. package/dist/commonjs/selection-group/lib/SelectionGroupIcon.d.ts.map +1 -0
  15. package/dist/commonjs/selection-group/lib/SelectionGroupIcon.js +24 -0
  16. package/dist/commonjs/selection-group/lib/SelectionGroupItem.d.ts +173 -0
  17. package/dist/commonjs/selection-group/lib/SelectionGroupItem.d.ts.map +1 -0
  18. package/dist/commonjs/selection-group/lib/SelectionGroupItem.js +37 -0
  19. package/dist/commonjs/selection-group/lib/SelectionGroupList.d.ts +172 -0
  20. package/dist/commonjs/selection-group/lib/SelectionGroupList.d.ts.map +1 -0
  21. package/dist/commonjs/selection-group/lib/SelectionGroupList.js +35 -0
  22. package/dist/commonjs/selection-group/lib/hooks/useSelectionGroupItem.d.ts +146 -0
  23. package/dist/commonjs/selection-group/lib/hooks/useSelectionGroupItem.d.ts.map +1 -0
  24. package/dist/commonjs/selection-group/lib/hooks/useSelectionGroupItem.js +29 -0
  25. package/dist/commonjs/selection-group/lib/hooks/useSelectionGroupModel.d.ts +1602 -0
  26. package/dist/commonjs/selection-group/lib/hooks/useSelectionGroupModel.d.ts.map +1 -0
  27. package/dist/commonjs/selection-group/lib/hooks/useSelectionGroupModel.js +166 -0
  28. package/dist/commonjs/version/lib/version.js +1 -1
  29. package/dist/es6/ai-ingress-button/lib/AIIngressButton.js +5 -5
  30. package/dist/es6/index.d.ts +1 -0
  31. package/dist/es6/index.d.ts.map +1 -1
  32. package/dist/es6/index.js +1 -0
  33. package/dist/es6/kbd/lib/KBD.js +6 -6
  34. package/dist/es6/kbd/lib/KBDItem.js +6 -6
  35. package/dist/es6/selection-group/index.d.ts +7 -0
  36. package/dist/es6/selection-group/index.d.ts.map +1 -0
  37. package/dist/es6/selection-group/index.js +6 -0
  38. package/dist/es6/selection-group/lib/SelectionGroup.d.ts +1499 -0
  39. package/dist/es6/selection-group/lib/SelectionGroup.d.ts.map +1 -0
  40. package/dist/es6/selection-group/lib/SelectionGroup.js +58 -0
  41. package/dist/es6/selection-group/lib/SelectionGroupIcon.d.ts +17 -0
  42. package/dist/es6/selection-group/lib/SelectionGroupIcon.d.ts.map +1 -0
  43. package/dist/es6/selection-group/lib/SelectionGroupIcon.js +21 -0
  44. package/dist/es6/selection-group/lib/SelectionGroupItem.d.ts +173 -0
  45. package/dist/es6/selection-group/lib/SelectionGroupItem.d.ts.map +1 -0
  46. package/dist/es6/selection-group/lib/SelectionGroupItem.js +34 -0
  47. package/dist/es6/selection-group/lib/SelectionGroupList.d.ts +172 -0
  48. package/dist/es6/selection-group/lib/SelectionGroupList.d.ts.map +1 -0
  49. package/dist/es6/selection-group/lib/SelectionGroupList.js +32 -0
  50. package/dist/es6/selection-group/lib/hooks/useSelectionGroupItem.d.ts +146 -0
  51. package/dist/es6/selection-group/lib/hooks/useSelectionGroupItem.d.ts.map +1 -0
  52. package/dist/es6/selection-group/lib/hooks/useSelectionGroupItem.js +26 -0
  53. package/dist/es6/selection-group/lib/hooks/useSelectionGroupModel.d.ts +1602 -0
  54. package/dist/es6/selection-group/lib/hooks/useSelectionGroupModel.d.ts.map +1 -0
  55. package/dist/es6/selection-group/lib/hooks/useSelectionGroupModel.js +160 -0
  56. package/dist/es6/version/lib/version.js +1 -1
  57. package/index.ts +1 -0
  58. package/package.json +4 -4
  59. package/selection-group/index.ts +6 -0
  60. package/selection-group/lib/SelectionGroup.tsx +65 -0
  61. package/selection-group/lib/SelectionGroupIcon.tsx +60 -0
  62. package/selection-group/lib/SelectionGroupItem.tsx +143 -0
  63. package/selection-group/lib/SelectionGroupList.tsx +89 -0
  64. package/selection-group/lib/hooks/useSelectionGroupItem.tsx +46 -0
  65. package/selection-group/lib/hooks/useSelectionGroupModel.tsx +195 -0
  66. package/selection-group/package.json +6 -0
@@ -0,0 +1,1602 @@
1
+ import React from 'react';
2
+ import { SelectionManager } from '@workday/canvas-kit-react/collection';
3
+ export type SelectionGroupMode = 'single' | 'multiple';
4
+ export type SelectionGroupWidth = 'content' | 'equal' | 'column';
5
+ export type SelectionGroupError = 'error' | 'caution';
6
+ export declare const useSelectionGroupModel: (<TT_Special_Generic>(config?: (Partial<{
7
+ /**
8
+ * Optional id for the whole `SelectionGroup`. If not provided, a unique id will be created.
9
+ * @default useUniqueId()
10
+ */
11
+ id: string;
12
+ /**
13
+ * The selection mode of the group. `single` allows one selection at a time and behaves like a
14
+ * radio group. `multiple` allows more than one selection and behaves like a checkbox group.
15
+ *
16
+ * This drives more than selection - it also determines the `radio`/`checkbox` role of an item,
17
+ * the `radiogroup`/`group` role of the list, whether the group is one tab stop or many, and the
18
+ * shape of the item's icon. The matching `selection` manager is derived from it, so most groups
19
+ * should set `mode` rather than passing a `selection` manager directly.
20
+ * @default 'single'
21
+ */
22
+ mode: SelectionGroupMode;
23
+ /**
24
+ * The selection manager the underlying list model uses. Leave this unset unless you need
25
+ * selection to behave differently from what `mode` provides - `mode` picks
26
+ * `singleSelectionManager` or `multiSelectionManager` for you. Setting this does not change
27
+ * the roles or keyboard behavior that `mode` controls.
28
+ * @default `singleSelectionManager`, or `multiSelectionManager` when `mode` is `'multiple'`
29
+ */
30
+ selection: SelectionManager | undefined;
31
+ /**
32
+ * Controls how item widths are calculated within the group. All items in a group use the same
33
+ * sizing method.
34
+ * - `content`: each item is sized to its own label.
35
+ * - `equal`: each item is sized to match the widest item.
36
+ * - `column`: each item spans the full width of the group.
37
+ * @default 'content'
38
+ */
39
+ width: SelectionGroupWidth;
40
+ /**
41
+ * The initially selected ids of the group. Use this for uncontrolled groups. For `single` mode,
42
+ * provide a single id. If not provided, nothing is selected until the user interacts.
43
+ */
44
+ initialSelectedIds: string[];
45
+ /**
46
+ * The selected ids of the group. Providing this prop puts the model in a controlled state: the
47
+ * group renders exactly what is passed in and will not change on its own. Use `onSelect` to
48
+ * respond to selection.
49
+ */
50
+ selectedIds: string[] | undefined;
51
+ /**
52
+ * Sets disabled state for every item in the group. To disable individual items instead, pass
53
+ * their ids to `nonInteractiveIds` so keyboard navigation skips over them.
54
+ * @default false
55
+ */
56
+ disabled: boolean;
57
+ /**
58
+ * The type of error associated with the group (if applicable). Notification states apply to the
59
+ * whole group rather than to individual items.
60
+ *
61
+ * This prop only changes the group's border color, which is not sufficient on its own. Always
62
+ * pair it with visible text describing the state and reference that text with
63
+ * `aria-describedby`. Wrapping the group in a `FormField` with a `FormField.Hint` does this
64
+ * for you.
65
+ */
66
+ error: SelectionGroupError | undefined;
67
+ /**
68
+ * If true, the group is marked invalid to assistive technology. Only applies when `mode` is
69
+ * `'single'`, because `aria-invalid` is not allowed on the `group` role that a multi-select
70
+ * group renders.
71
+ * @default true when `error` is `'error'`, otherwise undefined
72
+ */
73
+ 'aria-invalid': boolean | undefined;
74
+ /**
75
+ * The id of the element describing the group, such as the hint text of a `FormField`. This is
76
+ * set automatically when the group is used as a `FormField.Input`.
77
+ */
78
+ 'aria-describedby': string | undefined;
79
+ /**
80
+ * The orientation of keyboard navigation within the group.
81
+ * @default 'horizontal'
82
+ */
83
+ orientation: import("@workday/canvas-kit-react/collection").Orientation;
84
+ initialUnselectedIds: string[];
85
+ initialCursorId: string | string[];
86
+ columnCount: number;
87
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
88
+ pageSize: number;
89
+ getId: (item: any) => string;
90
+ getTextValue: (item: any) => string;
91
+ nonInteractiveIds: string[];
92
+ defaultItemHeight: number;
93
+ shouldVirtualize: boolean;
94
+ items: any[];
95
+ UNSTABLE_parentModel: {
96
+ state: {
97
+ selectedIds: string[] | "all";
98
+ unselectedIds: string[];
99
+ cursorId: string | string[];
100
+ columnCount: number;
101
+ pageSizeRef: React.MutableRefObject<number>;
102
+ cursorIndexRef: {
103
+ readonly current: number;
104
+ };
105
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
106
+ UNSTABLE_defaultItemHeight: number;
107
+ containerRef: React.RefObject<HTMLDivElement>;
108
+ id: string;
109
+ orientation: "horizontal" | "vertical";
110
+ indexRef: React.MutableRefObject<number>;
111
+ nonInteractiveIds: string[];
112
+ isVirtualized: boolean;
113
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
114
+ };
115
+ events: {
116
+ select(data: {
117
+ id: string;
118
+ }): void;
119
+ selectAll(): void;
120
+ unselectAll(): void;
121
+ setSelectedIds(ids: string[] | "all"): void;
122
+ remove(data: {
123
+ id: string;
124
+ nextId?: string | undefined;
125
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
126
+ }): void;
127
+ goTo(data: {
128
+ id: string;
129
+ }): void;
130
+ goToNext(): void;
131
+ goToPrevious(): void;
132
+ goToPreviousRow(): void;
133
+ goToNextRow(): void;
134
+ goToFirst(): void;
135
+ goToLast(): void;
136
+ goToFirstOfRow(): void;
137
+ goToLastOfRow(): void;
138
+ goToNextPage(): void;
139
+ goToPreviousPage(): void;
140
+ registerItem(data: {
141
+ id: string;
142
+ textValue: string;
143
+ }): void;
144
+ unregisterItem(data: {
145
+ id: string;
146
+ }): void;
147
+ updateItemHeight(data: {
148
+ value: number;
149
+ }): void;
150
+ };
151
+ selection: SelectionManager;
152
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
153
+ getId: (item: any) => string;
154
+ getTextValue: (item: any) => string;
155
+ } | undefined;
156
+ }> & {
157
+ onGoToNext?: ((data: undefined, prevState: {
158
+ mode: SelectionGroupMode;
159
+ width: SelectionGroupWidth;
160
+ disabled: boolean;
161
+ error: SelectionGroupError | undefined;
162
+ 'aria-invalid': boolean | undefined;
163
+ 'aria-describedby': string | undefined;
164
+ selectedIds: string[] | "all";
165
+ unselectedIds: string[];
166
+ cursorId: string | string[];
167
+ columnCount: number;
168
+ pageSizeRef: React.MutableRefObject<number>;
169
+ cursorIndexRef: {
170
+ readonly current: number;
171
+ };
172
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
173
+ UNSTABLE_defaultItemHeight: number;
174
+ containerRef: React.RefObject<HTMLDivElement>;
175
+ id: string;
176
+ orientation: "horizontal" | "vertical";
177
+ indexRef: React.MutableRefObject<number>;
178
+ nonInteractiveIds: string[];
179
+ isVirtualized: boolean;
180
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
181
+ }) => void) | undefined;
182
+ onGoToPrevious?: ((data: undefined, prevState: {
183
+ mode: SelectionGroupMode;
184
+ width: SelectionGroupWidth;
185
+ disabled: boolean;
186
+ error: SelectionGroupError | undefined;
187
+ 'aria-invalid': boolean | undefined;
188
+ 'aria-describedby': string | undefined;
189
+ selectedIds: string[] | "all";
190
+ unselectedIds: string[];
191
+ cursorId: string | string[];
192
+ columnCount: number;
193
+ pageSizeRef: React.MutableRefObject<number>;
194
+ cursorIndexRef: {
195
+ readonly current: number;
196
+ };
197
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
198
+ UNSTABLE_defaultItemHeight: number;
199
+ containerRef: React.RefObject<HTMLDivElement>;
200
+ id: string;
201
+ orientation: "horizontal" | "vertical";
202
+ indexRef: React.MutableRefObject<number>;
203
+ nonInteractiveIds: string[];
204
+ isVirtualized: boolean;
205
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
206
+ }) => void) | undefined;
207
+ onGoToPreviousRow?: ((data: undefined, prevState: {
208
+ mode: SelectionGroupMode;
209
+ width: SelectionGroupWidth;
210
+ disabled: boolean;
211
+ error: SelectionGroupError | undefined;
212
+ 'aria-invalid': boolean | undefined;
213
+ 'aria-describedby': string | undefined;
214
+ selectedIds: string[] | "all";
215
+ unselectedIds: string[];
216
+ cursorId: string | string[];
217
+ columnCount: number;
218
+ pageSizeRef: React.MutableRefObject<number>;
219
+ cursorIndexRef: {
220
+ readonly current: number;
221
+ };
222
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
223
+ UNSTABLE_defaultItemHeight: number;
224
+ containerRef: React.RefObject<HTMLDivElement>;
225
+ id: string;
226
+ orientation: "horizontal" | "vertical";
227
+ indexRef: React.MutableRefObject<number>;
228
+ nonInteractiveIds: string[];
229
+ isVirtualized: boolean;
230
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
231
+ }) => void) | undefined;
232
+ onGoToNextRow?: ((data: undefined, prevState: {
233
+ mode: SelectionGroupMode;
234
+ width: SelectionGroupWidth;
235
+ disabled: boolean;
236
+ error: SelectionGroupError | undefined;
237
+ 'aria-invalid': boolean | undefined;
238
+ 'aria-describedby': string | undefined;
239
+ selectedIds: string[] | "all";
240
+ unselectedIds: string[];
241
+ cursorId: string | string[];
242
+ columnCount: number;
243
+ pageSizeRef: React.MutableRefObject<number>;
244
+ cursorIndexRef: {
245
+ readonly current: number;
246
+ };
247
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
248
+ UNSTABLE_defaultItemHeight: number;
249
+ containerRef: React.RefObject<HTMLDivElement>;
250
+ id: string;
251
+ orientation: "horizontal" | "vertical";
252
+ indexRef: React.MutableRefObject<number>;
253
+ nonInteractiveIds: string[];
254
+ isVirtualized: boolean;
255
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
256
+ }) => void) | undefined;
257
+ onGoToFirst?: ((data: undefined, prevState: {
258
+ mode: SelectionGroupMode;
259
+ width: SelectionGroupWidth;
260
+ disabled: boolean;
261
+ error: SelectionGroupError | undefined;
262
+ 'aria-invalid': boolean | undefined;
263
+ 'aria-describedby': string | undefined;
264
+ selectedIds: string[] | "all";
265
+ unselectedIds: string[];
266
+ cursorId: string | string[];
267
+ columnCount: number;
268
+ pageSizeRef: React.MutableRefObject<number>;
269
+ cursorIndexRef: {
270
+ readonly current: number;
271
+ };
272
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
273
+ UNSTABLE_defaultItemHeight: number;
274
+ containerRef: React.RefObject<HTMLDivElement>;
275
+ id: string;
276
+ orientation: "horizontal" | "vertical";
277
+ indexRef: React.MutableRefObject<number>;
278
+ nonInteractiveIds: string[];
279
+ isVirtualized: boolean;
280
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
281
+ }) => void) | undefined;
282
+ onGoToLast?: ((data: undefined, prevState: {
283
+ mode: SelectionGroupMode;
284
+ width: SelectionGroupWidth;
285
+ disabled: boolean;
286
+ error: SelectionGroupError | undefined;
287
+ 'aria-invalid': boolean | undefined;
288
+ 'aria-describedby': string | undefined;
289
+ selectedIds: string[] | "all";
290
+ unselectedIds: string[];
291
+ cursorId: string | string[];
292
+ columnCount: number;
293
+ pageSizeRef: React.MutableRefObject<number>;
294
+ cursorIndexRef: {
295
+ readonly current: number;
296
+ };
297
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
298
+ UNSTABLE_defaultItemHeight: number;
299
+ containerRef: React.RefObject<HTMLDivElement>;
300
+ id: string;
301
+ orientation: "horizontal" | "vertical";
302
+ indexRef: React.MutableRefObject<number>;
303
+ nonInteractiveIds: string[];
304
+ isVirtualized: boolean;
305
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
306
+ }) => void) | undefined;
307
+ onGoToFirstOfRow?: ((data: undefined, prevState: {
308
+ mode: SelectionGroupMode;
309
+ width: SelectionGroupWidth;
310
+ disabled: boolean;
311
+ error: SelectionGroupError | undefined;
312
+ 'aria-invalid': boolean | undefined;
313
+ 'aria-describedby': string | undefined;
314
+ selectedIds: string[] | "all";
315
+ unselectedIds: string[];
316
+ cursorId: string | string[];
317
+ columnCount: number;
318
+ pageSizeRef: React.MutableRefObject<number>;
319
+ cursorIndexRef: {
320
+ readonly current: number;
321
+ };
322
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
323
+ UNSTABLE_defaultItemHeight: number;
324
+ containerRef: React.RefObject<HTMLDivElement>;
325
+ id: string;
326
+ orientation: "horizontal" | "vertical";
327
+ indexRef: React.MutableRefObject<number>;
328
+ nonInteractiveIds: string[];
329
+ isVirtualized: boolean;
330
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
331
+ }) => void) | undefined;
332
+ onGoToLastOfRow?: ((data: undefined, prevState: {
333
+ mode: SelectionGroupMode;
334
+ width: SelectionGroupWidth;
335
+ disabled: boolean;
336
+ error: SelectionGroupError | undefined;
337
+ 'aria-invalid': boolean | undefined;
338
+ 'aria-describedby': string | undefined;
339
+ selectedIds: string[] | "all";
340
+ unselectedIds: string[];
341
+ cursorId: string | string[];
342
+ columnCount: number;
343
+ pageSizeRef: React.MutableRefObject<number>;
344
+ cursorIndexRef: {
345
+ readonly current: number;
346
+ };
347
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
348
+ UNSTABLE_defaultItemHeight: number;
349
+ containerRef: React.RefObject<HTMLDivElement>;
350
+ id: string;
351
+ orientation: "horizontal" | "vertical";
352
+ indexRef: React.MutableRefObject<number>;
353
+ nonInteractiveIds: string[];
354
+ isVirtualized: boolean;
355
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
356
+ }) => void) | undefined;
357
+ onGoToNextPage?: ((data: undefined, prevState: {
358
+ mode: SelectionGroupMode;
359
+ width: SelectionGroupWidth;
360
+ disabled: boolean;
361
+ error: SelectionGroupError | undefined;
362
+ 'aria-invalid': boolean | undefined;
363
+ 'aria-describedby': string | undefined;
364
+ selectedIds: string[] | "all";
365
+ unselectedIds: string[];
366
+ cursorId: string | string[];
367
+ columnCount: number;
368
+ pageSizeRef: React.MutableRefObject<number>;
369
+ cursorIndexRef: {
370
+ readonly current: number;
371
+ };
372
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
373
+ UNSTABLE_defaultItemHeight: number;
374
+ containerRef: React.RefObject<HTMLDivElement>;
375
+ id: string;
376
+ orientation: "horizontal" | "vertical";
377
+ indexRef: React.MutableRefObject<number>;
378
+ nonInteractiveIds: string[];
379
+ isVirtualized: boolean;
380
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
381
+ }) => void) | undefined;
382
+ onGoToPreviousPage?: ((data: undefined, prevState: {
383
+ mode: SelectionGroupMode;
384
+ width: SelectionGroupWidth;
385
+ disabled: boolean;
386
+ error: SelectionGroupError | undefined;
387
+ 'aria-invalid': boolean | undefined;
388
+ 'aria-describedby': string | undefined;
389
+ selectedIds: string[] | "all";
390
+ unselectedIds: string[];
391
+ cursorId: string | string[];
392
+ columnCount: number;
393
+ pageSizeRef: React.MutableRefObject<number>;
394
+ cursorIndexRef: {
395
+ readonly current: number;
396
+ };
397
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
398
+ UNSTABLE_defaultItemHeight: number;
399
+ containerRef: React.RefObject<HTMLDivElement>;
400
+ id: string;
401
+ orientation: "horizontal" | "vertical";
402
+ indexRef: React.MutableRefObject<number>;
403
+ nonInteractiveIds: string[];
404
+ isVirtualized: boolean;
405
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
406
+ }) => void) | undefined;
407
+ onSelect?: ((data: {
408
+ id: string;
409
+ }, prevState: {
410
+ mode: SelectionGroupMode;
411
+ width: SelectionGroupWidth;
412
+ disabled: boolean;
413
+ error: SelectionGroupError | undefined;
414
+ 'aria-invalid': boolean | undefined;
415
+ 'aria-describedby': string | undefined;
416
+ selectedIds: string[] | "all";
417
+ unselectedIds: string[];
418
+ cursorId: string | string[];
419
+ columnCount: number;
420
+ pageSizeRef: React.MutableRefObject<number>;
421
+ cursorIndexRef: {
422
+ readonly current: number;
423
+ };
424
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
425
+ UNSTABLE_defaultItemHeight: number;
426
+ containerRef: React.RefObject<HTMLDivElement>;
427
+ id: string;
428
+ orientation: "horizontal" | "vertical";
429
+ indexRef: React.MutableRefObject<number>;
430
+ nonInteractiveIds: string[];
431
+ isVirtualized: boolean;
432
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
433
+ }) => void) | undefined;
434
+ onSelectAll?: ((data: undefined, prevState: {
435
+ mode: SelectionGroupMode;
436
+ width: SelectionGroupWidth;
437
+ disabled: boolean;
438
+ error: SelectionGroupError | undefined;
439
+ 'aria-invalid': boolean | undefined;
440
+ 'aria-describedby': string | undefined;
441
+ selectedIds: string[] | "all";
442
+ unselectedIds: string[];
443
+ cursorId: string | string[];
444
+ columnCount: number;
445
+ pageSizeRef: React.MutableRefObject<number>;
446
+ cursorIndexRef: {
447
+ readonly current: number;
448
+ };
449
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
450
+ UNSTABLE_defaultItemHeight: number;
451
+ containerRef: React.RefObject<HTMLDivElement>;
452
+ id: string;
453
+ orientation: "horizontal" | "vertical";
454
+ indexRef: React.MutableRefObject<number>;
455
+ nonInteractiveIds: string[];
456
+ isVirtualized: boolean;
457
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
458
+ }) => void) | undefined;
459
+ onUnselectAll?: ((data: undefined, prevState: {
460
+ mode: SelectionGroupMode;
461
+ width: SelectionGroupWidth;
462
+ disabled: boolean;
463
+ error: SelectionGroupError | undefined;
464
+ 'aria-invalid': boolean | undefined;
465
+ 'aria-describedby': string | undefined;
466
+ selectedIds: string[] | "all";
467
+ unselectedIds: string[];
468
+ cursorId: string | string[];
469
+ columnCount: number;
470
+ pageSizeRef: React.MutableRefObject<number>;
471
+ cursorIndexRef: {
472
+ readonly current: number;
473
+ };
474
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
475
+ UNSTABLE_defaultItemHeight: number;
476
+ containerRef: React.RefObject<HTMLDivElement>;
477
+ id: string;
478
+ orientation: "horizontal" | "vertical";
479
+ indexRef: React.MutableRefObject<number>;
480
+ nonInteractiveIds: string[];
481
+ isVirtualized: boolean;
482
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
483
+ }) => void) | undefined;
484
+ onSetSelectedIds?: ((data: string[] | "all", prevState: {
485
+ mode: SelectionGroupMode;
486
+ width: SelectionGroupWidth;
487
+ disabled: boolean;
488
+ error: SelectionGroupError | undefined;
489
+ 'aria-invalid': boolean | undefined;
490
+ 'aria-describedby': string | undefined;
491
+ selectedIds: string[] | "all";
492
+ unselectedIds: string[];
493
+ cursorId: string | string[];
494
+ columnCount: number;
495
+ pageSizeRef: React.MutableRefObject<number>;
496
+ cursorIndexRef: {
497
+ readonly current: number;
498
+ };
499
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
500
+ UNSTABLE_defaultItemHeight: number;
501
+ containerRef: React.RefObject<HTMLDivElement>;
502
+ id: string;
503
+ orientation: "horizontal" | "vertical";
504
+ indexRef: React.MutableRefObject<number>;
505
+ nonInteractiveIds: string[];
506
+ isVirtualized: boolean;
507
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
508
+ }) => void) | undefined;
509
+ onRemove?: ((data: {
510
+ id: string;
511
+ nextId?: string | undefined;
512
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
513
+ }, prevState: {
514
+ mode: SelectionGroupMode;
515
+ width: SelectionGroupWidth;
516
+ disabled: boolean;
517
+ error: SelectionGroupError | undefined;
518
+ 'aria-invalid': boolean | undefined;
519
+ 'aria-describedby': string | undefined;
520
+ selectedIds: string[] | "all";
521
+ unselectedIds: string[];
522
+ cursorId: string | string[];
523
+ columnCount: number;
524
+ pageSizeRef: React.MutableRefObject<number>;
525
+ cursorIndexRef: {
526
+ readonly current: number;
527
+ };
528
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
529
+ UNSTABLE_defaultItemHeight: number;
530
+ containerRef: React.RefObject<HTMLDivElement>;
531
+ id: string;
532
+ orientation: "horizontal" | "vertical";
533
+ indexRef: React.MutableRefObject<number>;
534
+ nonInteractiveIds: string[];
535
+ isVirtualized: boolean;
536
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
537
+ }) => void) | undefined;
538
+ onGoTo?: ((data: {
539
+ id: string;
540
+ }, prevState: {
541
+ mode: SelectionGroupMode;
542
+ width: SelectionGroupWidth;
543
+ disabled: boolean;
544
+ error: SelectionGroupError | undefined;
545
+ 'aria-invalid': boolean | undefined;
546
+ 'aria-describedby': string | undefined;
547
+ selectedIds: string[] | "all";
548
+ unselectedIds: string[];
549
+ cursorId: string | string[];
550
+ columnCount: number;
551
+ pageSizeRef: React.MutableRefObject<number>;
552
+ cursorIndexRef: {
553
+ readonly current: number;
554
+ };
555
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
556
+ UNSTABLE_defaultItemHeight: number;
557
+ containerRef: React.RefObject<HTMLDivElement>;
558
+ id: string;
559
+ orientation: "horizontal" | "vertical";
560
+ indexRef: React.MutableRefObject<number>;
561
+ nonInteractiveIds: string[];
562
+ isVirtualized: boolean;
563
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
564
+ }) => void) | undefined;
565
+ onRegisterItem?: ((data: {
566
+ id: string;
567
+ textValue: string;
568
+ }, prevState: {
569
+ mode: SelectionGroupMode;
570
+ width: SelectionGroupWidth;
571
+ disabled: boolean;
572
+ error: SelectionGroupError | undefined;
573
+ 'aria-invalid': boolean | undefined;
574
+ 'aria-describedby': string | undefined;
575
+ selectedIds: string[] | "all";
576
+ unselectedIds: string[];
577
+ cursorId: string | string[];
578
+ columnCount: number;
579
+ pageSizeRef: React.MutableRefObject<number>;
580
+ cursorIndexRef: {
581
+ readonly current: number;
582
+ };
583
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
584
+ UNSTABLE_defaultItemHeight: number;
585
+ containerRef: React.RefObject<HTMLDivElement>;
586
+ id: string;
587
+ orientation: "horizontal" | "vertical";
588
+ indexRef: React.MutableRefObject<number>;
589
+ nonInteractiveIds: string[];
590
+ isVirtualized: boolean;
591
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
592
+ }) => void) | undefined;
593
+ onUnregisterItem?: ((data: {
594
+ id: string;
595
+ }, prevState: {
596
+ mode: SelectionGroupMode;
597
+ width: SelectionGroupWidth;
598
+ disabled: boolean;
599
+ error: SelectionGroupError | undefined;
600
+ 'aria-invalid': boolean | undefined;
601
+ 'aria-describedby': string | undefined;
602
+ selectedIds: string[] | "all";
603
+ unselectedIds: string[];
604
+ cursorId: string | string[];
605
+ columnCount: number;
606
+ pageSizeRef: React.MutableRefObject<number>;
607
+ cursorIndexRef: {
608
+ readonly current: number;
609
+ };
610
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
611
+ UNSTABLE_defaultItemHeight: number;
612
+ containerRef: React.RefObject<HTMLDivElement>;
613
+ id: string;
614
+ orientation: "horizontal" | "vertical";
615
+ indexRef: React.MutableRefObject<number>;
616
+ nonInteractiveIds: string[];
617
+ isVirtualized: boolean;
618
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
619
+ }) => void) | undefined;
620
+ onUpdateItemHeight?: ((data: {
621
+ value: number;
622
+ }, prevState: {
623
+ mode: SelectionGroupMode;
624
+ width: SelectionGroupWidth;
625
+ disabled: boolean;
626
+ error: SelectionGroupError | undefined;
627
+ 'aria-invalid': boolean | undefined;
628
+ 'aria-describedby': string | undefined;
629
+ selectedIds: string[] | "all";
630
+ unselectedIds: string[];
631
+ cursorId: string | string[];
632
+ columnCount: number;
633
+ pageSizeRef: React.MutableRefObject<number>;
634
+ cursorIndexRef: {
635
+ readonly current: number;
636
+ };
637
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
638
+ UNSTABLE_defaultItemHeight: number;
639
+ containerRef: React.RefObject<HTMLDivElement>;
640
+ id: string;
641
+ orientation: "horizontal" | "vertical";
642
+ indexRef: React.MutableRefObject<number>;
643
+ nonInteractiveIds: string[];
644
+ isVirtualized: boolean;
645
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
646
+ }) => void) | undefined;
647
+ } & {
648
+ shouldGoToNext?: ((data: undefined, state: {
649
+ mode: SelectionGroupMode;
650
+ width: SelectionGroupWidth;
651
+ disabled: boolean;
652
+ error: SelectionGroupError | undefined;
653
+ 'aria-invalid': boolean | undefined;
654
+ 'aria-describedby': string | undefined;
655
+ selectedIds: string[] | "all";
656
+ unselectedIds: string[];
657
+ cursorId: string | string[];
658
+ columnCount: number;
659
+ pageSizeRef: React.MutableRefObject<number>;
660
+ cursorIndexRef: {
661
+ readonly current: number;
662
+ };
663
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
664
+ UNSTABLE_defaultItemHeight: number;
665
+ containerRef: React.RefObject<HTMLDivElement>;
666
+ id: string;
667
+ orientation: "horizontal" | "vertical";
668
+ indexRef: React.MutableRefObject<number>;
669
+ nonInteractiveIds: string[];
670
+ isVirtualized: boolean;
671
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
672
+ }) => boolean) | undefined;
673
+ shouldGoToPrevious?: ((data: undefined, state: {
674
+ mode: SelectionGroupMode;
675
+ width: SelectionGroupWidth;
676
+ disabled: boolean;
677
+ error: SelectionGroupError | undefined;
678
+ 'aria-invalid': boolean | undefined;
679
+ 'aria-describedby': string | undefined;
680
+ selectedIds: string[] | "all";
681
+ unselectedIds: string[];
682
+ cursorId: string | string[];
683
+ columnCount: number;
684
+ pageSizeRef: React.MutableRefObject<number>;
685
+ cursorIndexRef: {
686
+ readonly current: number;
687
+ };
688
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
689
+ UNSTABLE_defaultItemHeight: number;
690
+ containerRef: React.RefObject<HTMLDivElement>;
691
+ id: string;
692
+ orientation: "horizontal" | "vertical";
693
+ indexRef: React.MutableRefObject<number>;
694
+ nonInteractiveIds: string[];
695
+ isVirtualized: boolean;
696
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
697
+ }) => boolean) | undefined;
698
+ shouldGoToPreviousRow?: ((data: undefined, state: {
699
+ mode: SelectionGroupMode;
700
+ width: SelectionGroupWidth;
701
+ disabled: boolean;
702
+ error: SelectionGroupError | undefined;
703
+ 'aria-invalid': boolean | undefined;
704
+ 'aria-describedby': string | undefined;
705
+ selectedIds: string[] | "all";
706
+ unselectedIds: string[];
707
+ cursorId: string | string[];
708
+ columnCount: number;
709
+ pageSizeRef: React.MutableRefObject<number>;
710
+ cursorIndexRef: {
711
+ readonly current: number;
712
+ };
713
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
714
+ UNSTABLE_defaultItemHeight: number;
715
+ containerRef: React.RefObject<HTMLDivElement>;
716
+ id: string;
717
+ orientation: "horizontal" | "vertical";
718
+ indexRef: React.MutableRefObject<number>;
719
+ nonInteractiveIds: string[];
720
+ isVirtualized: boolean;
721
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
722
+ }) => boolean) | undefined;
723
+ shouldGoToNextRow?: ((data: undefined, state: {
724
+ mode: SelectionGroupMode;
725
+ width: SelectionGroupWidth;
726
+ disabled: boolean;
727
+ error: SelectionGroupError | undefined;
728
+ 'aria-invalid': boolean | undefined;
729
+ 'aria-describedby': string | undefined;
730
+ selectedIds: string[] | "all";
731
+ unselectedIds: string[];
732
+ cursorId: string | string[];
733
+ columnCount: number;
734
+ pageSizeRef: React.MutableRefObject<number>;
735
+ cursorIndexRef: {
736
+ readonly current: number;
737
+ };
738
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
739
+ UNSTABLE_defaultItemHeight: number;
740
+ containerRef: React.RefObject<HTMLDivElement>;
741
+ id: string;
742
+ orientation: "horizontal" | "vertical";
743
+ indexRef: React.MutableRefObject<number>;
744
+ nonInteractiveIds: string[];
745
+ isVirtualized: boolean;
746
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
747
+ }) => boolean) | undefined;
748
+ shouldGoToFirst?: ((data: undefined, state: {
749
+ mode: SelectionGroupMode;
750
+ width: SelectionGroupWidth;
751
+ disabled: boolean;
752
+ error: SelectionGroupError | undefined;
753
+ 'aria-invalid': boolean | undefined;
754
+ 'aria-describedby': string | undefined;
755
+ selectedIds: string[] | "all";
756
+ unselectedIds: string[];
757
+ cursorId: string | string[];
758
+ columnCount: number;
759
+ pageSizeRef: React.MutableRefObject<number>;
760
+ cursorIndexRef: {
761
+ readonly current: number;
762
+ };
763
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
764
+ UNSTABLE_defaultItemHeight: number;
765
+ containerRef: React.RefObject<HTMLDivElement>;
766
+ id: string;
767
+ orientation: "horizontal" | "vertical";
768
+ indexRef: React.MutableRefObject<number>;
769
+ nonInteractiveIds: string[];
770
+ isVirtualized: boolean;
771
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
772
+ }) => boolean) | undefined;
773
+ shouldGoToLast?: ((data: undefined, state: {
774
+ mode: SelectionGroupMode;
775
+ width: SelectionGroupWidth;
776
+ disabled: boolean;
777
+ error: SelectionGroupError | undefined;
778
+ 'aria-invalid': boolean | undefined;
779
+ 'aria-describedby': string | undefined;
780
+ selectedIds: string[] | "all";
781
+ unselectedIds: string[];
782
+ cursorId: string | string[];
783
+ columnCount: number;
784
+ pageSizeRef: React.MutableRefObject<number>;
785
+ cursorIndexRef: {
786
+ readonly current: number;
787
+ };
788
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
789
+ UNSTABLE_defaultItemHeight: number;
790
+ containerRef: React.RefObject<HTMLDivElement>;
791
+ id: string;
792
+ orientation: "horizontal" | "vertical";
793
+ indexRef: React.MutableRefObject<number>;
794
+ nonInteractiveIds: string[];
795
+ isVirtualized: boolean;
796
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
797
+ }) => boolean) | undefined;
798
+ shouldGoToFirstOfRow?: ((data: undefined, state: {
799
+ mode: SelectionGroupMode;
800
+ width: SelectionGroupWidth;
801
+ disabled: boolean;
802
+ error: SelectionGroupError | undefined;
803
+ 'aria-invalid': boolean | undefined;
804
+ 'aria-describedby': string | undefined;
805
+ selectedIds: string[] | "all";
806
+ unselectedIds: string[];
807
+ cursorId: string | string[];
808
+ columnCount: number;
809
+ pageSizeRef: React.MutableRefObject<number>;
810
+ cursorIndexRef: {
811
+ readonly current: number;
812
+ };
813
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
814
+ UNSTABLE_defaultItemHeight: number;
815
+ containerRef: React.RefObject<HTMLDivElement>;
816
+ id: string;
817
+ orientation: "horizontal" | "vertical";
818
+ indexRef: React.MutableRefObject<number>;
819
+ nonInteractiveIds: string[];
820
+ isVirtualized: boolean;
821
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
822
+ }) => boolean) | undefined;
823
+ shouldGoToLastOfRow?: ((data: undefined, state: {
824
+ mode: SelectionGroupMode;
825
+ width: SelectionGroupWidth;
826
+ disabled: boolean;
827
+ error: SelectionGroupError | undefined;
828
+ 'aria-invalid': boolean | undefined;
829
+ 'aria-describedby': string | undefined;
830
+ selectedIds: string[] | "all";
831
+ unselectedIds: string[];
832
+ cursorId: string | string[];
833
+ columnCount: number;
834
+ pageSizeRef: React.MutableRefObject<number>;
835
+ cursorIndexRef: {
836
+ readonly current: number;
837
+ };
838
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
839
+ UNSTABLE_defaultItemHeight: number;
840
+ containerRef: React.RefObject<HTMLDivElement>;
841
+ id: string;
842
+ orientation: "horizontal" | "vertical";
843
+ indexRef: React.MutableRefObject<number>;
844
+ nonInteractiveIds: string[];
845
+ isVirtualized: boolean;
846
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
847
+ }) => boolean) | undefined;
848
+ shouldGoToNextPage?: ((data: undefined, state: {
849
+ mode: SelectionGroupMode;
850
+ width: SelectionGroupWidth;
851
+ disabled: boolean;
852
+ error: SelectionGroupError | undefined;
853
+ 'aria-invalid': boolean | undefined;
854
+ 'aria-describedby': string | undefined;
855
+ selectedIds: string[] | "all";
856
+ unselectedIds: string[];
857
+ cursorId: string | string[];
858
+ columnCount: number;
859
+ pageSizeRef: React.MutableRefObject<number>;
860
+ cursorIndexRef: {
861
+ readonly current: number;
862
+ };
863
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
864
+ UNSTABLE_defaultItemHeight: number;
865
+ containerRef: React.RefObject<HTMLDivElement>;
866
+ id: string;
867
+ orientation: "horizontal" | "vertical";
868
+ indexRef: React.MutableRefObject<number>;
869
+ nonInteractiveIds: string[];
870
+ isVirtualized: boolean;
871
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
872
+ }) => boolean) | undefined;
873
+ shouldGoToPreviousPage?: ((data: undefined, state: {
874
+ mode: SelectionGroupMode;
875
+ width: SelectionGroupWidth;
876
+ disabled: boolean;
877
+ error: SelectionGroupError | undefined;
878
+ 'aria-invalid': boolean | undefined;
879
+ 'aria-describedby': string | undefined;
880
+ selectedIds: string[] | "all";
881
+ unselectedIds: string[];
882
+ cursorId: string | string[];
883
+ columnCount: number;
884
+ pageSizeRef: React.MutableRefObject<number>;
885
+ cursorIndexRef: {
886
+ readonly current: number;
887
+ };
888
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
889
+ UNSTABLE_defaultItemHeight: number;
890
+ containerRef: React.RefObject<HTMLDivElement>;
891
+ id: string;
892
+ orientation: "horizontal" | "vertical";
893
+ indexRef: React.MutableRefObject<number>;
894
+ nonInteractiveIds: string[];
895
+ isVirtualized: boolean;
896
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
897
+ }) => boolean) | undefined;
898
+ shouldSelect?: ((data: {
899
+ id: string;
900
+ }, state: {
901
+ mode: SelectionGroupMode;
902
+ width: SelectionGroupWidth;
903
+ disabled: boolean;
904
+ error: SelectionGroupError | undefined;
905
+ 'aria-invalid': boolean | undefined;
906
+ 'aria-describedby': string | undefined;
907
+ selectedIds: string[] | "all";
908
+ unselectedIds: string[];
909
+ cursorId: string | string[];
910
+ columnCount: number;
911
+ pageSizeRef: React.MutableRefObject<number>;
912
+ cursorIndexRef: {
913
+ readonly current: number;
914
+ };
915
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
916
+ UNSTABLE_defaultItemHeight: number;
917
+ containerRef: React.RefObject<HTMLDivElement>;
918
+ id: string;
919
+ orientation: "horizontal" | "vertical";
920
+ indexRef: React.MutableRefObject<number>;
921
+ nonInteractiveIds: string[];
922
+ isVirtualized: boolean;
923
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
924
+ }) => boolean) | undefined;
925
+ shouldSelectAll?: ((data: undefined, state: {
926
+ mode: SelectionGroupMode;
927
+ width: SelectionGroupWidth;
928
+ disabled: boolean;
929
+ error: SelectionGroupError | undefined;
930
+ 'aria-invalid': boolean | undefined;
931
+ 'aria-describedby': string | undefined;
932
+ selectedIds: string[] | "all";
933
+ unselectedIds: string[];
934
+ cursorId: string | string[];
935
+ columnCount: number;
936
+ pageSizeRef: React.MutableRefObject<number>;
937
+ cursorIndexRef: {
938
+ readonly current: number;
939
+ };
940
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
941
+ UNSTABLE_defaultItemHeight: number;
942
+ containerRef: React.RefObject<HTMLDivElement>;
943
+ id: string;
944
+ orientation: "horizontal" | "vertical";
945
+ indexRef: React.MutableRefObject<number>;
946
+ nonInteractiveIds: string[];
947
+ isVirtualized: boolean;
948
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
949
+ }) => boolean) | undefined;
950
+ shouldUnselectAll?: ((data: undefined, state: {
951
+ mode: SelectionGroupMode;
952
+ width: SelectionGroupWidth;
953
+ disabled: boolean;
954
+ error: SelectionGroupError | undefined;
955
+ 'aria-invalid': boolean | undefined;
956
+ 'aria-describedby': string | undefined;
957
+ selectedIds: string[] | "all";
958
+ unselectedIds: string[];
959
+ cursorId: string | string[];
960
+ columnCount: number;
961
+ pageSizeRef: React.MutableRefObject<number>;
962
+ cursorIndexRef: {
963
+ readonly current: number;
964
+ };
965
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
966
+ UNSTABLE_defaultItemHeight: number;
967
+ containerRef: React.RefObject<HTMLDivElement>;
968
+ id: string;
969
+ orientation: "horizontal" | "vertical";
970
+ indexRef: React.MutableRefObject<number>;
971
+ nonInteractiveIds: string[];
972
+ isVirtualized: boolean;
973
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
974
+ }) => boolean) | undefined;
975
+ shouldSetSelectedIds?: ((data: string[] | "all", state: {
976
+ mode: SelectionGroupMode;
977
+ width: SelectionGroupWidth;
978
+ disabled: boolean;
979
+ error: SelectionGroupError | undefined;
980
+ 'aria-invalid': boolean | undefined;
981
+ 'aria-describedby': string | undefined;
982
+ selectedIds: string[] | "all";
983
+ unselectedIds: string[];
984
+ cursorId: string | string[];
985
+ columnCount: number;
986
+ pageSizeRef: React.MutableRefObject<number>;
987
+ cursorIndexRef: {
988
+ readonly current: number;
989
+ };
990
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
991
+ UNSTABLE_defaultItemHeight: number;
992
+ containerRef: React.RefObject<HTMLDivElement>;
993
+ id: string;
994
+ orientation: "horizontal" | "vertical";
995
+ indexRef: React.MutableRefObject<number>;
996
+ nonInteractiveIds: string[];
997
+ isVirtualized: boolean;
998
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
999
+ }) => boolean) | undefined;
1000
+ shouldRemove?: ((data: {
1001
+ id: string;
1002
+ nextId?: string | undefined;
1003
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1004
+ }, state: {
1005
+ mode: SelectionGroupMode;
1006
+ width: SelectionGroupWidth;
1007
+ disabled: boolean;
1008
+ error: SelectionGroupError | undefined;
1009
+ 'aria-invalid': boolean | undefined;
1010
+ 'aria-describedby': string | undefined;
1011
+ selectedIds: string[] | "all";
1012
+ unselectedIds: string[];
1013
+ cursorId: string | string[];
1014
+ columnCount: number;
1015
+ pageSizeRef: React.MutableRefObject<number>;
1016
+ cursorIndexRef: {
1017
+ readonly current: number;
1018
+ };
1019
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1020
+ UNSTABLE_defaultItemHeight: number;
1021
+ containerRef: React.RefObject<HTMLDivElement>;
1022
+ id: string;
1023
+ orientation: "horizontal" | "vertical";
1024
+ indexRef: React.MutableRefObject<number>;
1025
+ nonInteractiveIds: string[];
1026
+ isVirtualized: boolean;
1027
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
1028
+ }) => boolean) | undefined;
1029
+ shouldGoTo?: ((data: {
1030
+ id: string;
1031
+ }, state: {
1032
+ mode: SelectionGroupMode;
1033
+ width: SelectionGroupWidth;
1034
+ disabled: boolean;
1035
+ error: SelectionGroupError | undefined;
1036
+ 'aria-invalid': boolean | undefined;
1037
+ 'aria-describedby': string | undefined;
1038
+ selectedIds: string[] | "all";
1039
+ unselectedIds: string[];
1040
+ cursorId: string | string[];
1041
+ columnCount: number;
1042
+ pageSizeRef: React.MutableRefObject<number>;
1043
+ cursorIndexRef: {
1044
+ readonly current: number;
1045
+ };
1046
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1047
+ UNSTABLE_defaultItemHeight: number;
1048
+ containerRef: React.RefObject<HTMLDivElement>;
1049
+ id: string;
1050
+ orientation: "horizontal" | "vertical";
1051
+ indexRef: React.MutableRefObject<number>;
1052
+ nonInteractiveIds: string[];
1053
+ isVirtualized: boolean;
1054
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
1055
+ }) => boolean) | undefined;
1056
+ shouldRegisterItem?: ((data: {
1057
+ id: string;
1058
+ textValue: string;
1059
+ }, state: {
1060
+ mode: SelectionGroupMode;
1061
+ width: SelectionGroupWidth;
1062
+ disabled: boolean;
1063
+ error: SelectionGroupError | undefined;
1064
+ 'aria-invalid': boolean | undefined;
1065
+ 'aria-describedby': string | undefined;
1066
+ selectedIds: string[] | "all";
1067
+ unselectedIds: string[];
1068
+ cursorId: string | string[];
1069
+ columnCount: number;
1070
+ pageSizeRef: React.MutableRefObject<number>;
1071
+ cursorIndexRef: {
1072
+ readonly current: number;
1073
+ };
1074
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1075
+ UNSTABLE_defaultItemHeight: number;
1076
+ containerRef: React.RefObject<HTMLDivElement>;
1077
+ id: string;
1078
+ orientation: "horizontal" | "vertical";
1079
+ indexRef: React.MutableRefObject<number>;
1080
+ nonInteractiveIds: string[];
1081
+ isVirtualized: boolean;
1082
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
1083
+ }) => boolean) | undefined;
1084
+ shouldUnregisterItem?: ((data: {
1085
+ id: string;
1086
+ }, state: {
1087
+ mode: SelectionGroupMode;
1088
+ width: SelectionGroupWidth;
1089
+ disabled: boolean;
1090
+ error: SelectionGroupError | undefined;
1091
+ 'aria-invalid': boolean | undefined;
1092
+ 'aria-describedby': string | undefined;
1093
+ selectedIds: string[] | "all";
1094
+ unselectedIds: string[];
1095
+ cursorId: string | string[];
1096
+ columnCount: number;
1097
+ pageSizeRef: React.MutableRefObject<number>;
1098
+ cursorIndexRef: {
1099
+ readonly current: number;
1100
+ };
1101
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1102
+ UNSTABLE_defaultItemHeight: number;
1103
+ containerRef: React.RefObject<HTMLDivElement>;
1104
+ id: string;
1105
+ orientation: "horizontal" | "vertical";
1106
+ indexRef: React.MutableRefObject<number>;
1107
+ nonInteractiveIds: string[];
1108
+ isVirtualized: boolean;
1109
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
1110
+ }) => boolean) | undefined;
1111
+ shouldUpdateItemHeight?: ((data: {
1112
+ value: number;
1113
+ }, state: {
1114
+ mode: SelectionGroupMode;
1115
+ width: SelectionGroupWidth;
1116
+ disabled: boolean;
1117
+ error: SelectionGroupError | undefined;
1118
+ 'aria-invalid': boolean | undefined;
1119
+ 'aria-describedby': string | undefined;
1120
+ selectedIds: string[] | "all";
1121
+ unselectedIds: string[];
1122
+ cursorId: string | string[];
1123
+ columnCount: number;
1124
+ pageSizeRef: React.MutableRefObject<number>;
1125
+ cursorIndexRef: {
1126
+ readonly current: number;
1127
+ };
1128
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1129
+ UNSTABLE_defaultItemHeight: number;
1130
+ containerRef: React.RefObject<HTMLDivElement>;
1131
+ id: string;
1132
+ orientation: "horizontal" | "vertical";
1133
+ indexRef: React.MutableRefObject<number>;
1134
+ nonInteractiveIds: string[];
1135
+ isVirtualized: boolean;
1136
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
1137
+ }) => boolean) | undefined;
1138
+ }) | undefined) => {
1139
+ state: {
1140
+ mode: SelectionGroupMode;
1141
+ width: SelectionGroupWidth;
1142
+ disabled: boolean;
1143
+ error: SelectionGroupError | undefined;
1144
+ 'aria-invalid': boolean | undefined;
1145
+ 'aria-describedby': string | undefined;
1146
+ selectedIds: string[] | "all";
1147
+ unselectedIds: string[];
1148
+ cursorId: string | string[];
1149
+ columnCount: number;
1150
+ pageSizeRef: React.MutableRefObject<number>;
1151
+ cursorIndexRef: {
1152
+ readonly current: number;
1153
+ };
1154
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1155
+ UNSTABLE_defaultItemHeight: number;
1156
+ containerRef: React.RefObject<HTMLDivElement>;
1157
+ id: string;
1158
+ orientation: "horizontal" | "vertical";
1159
+ indexRef: React.MutableRefObject<number>;
1160
+ nonInteractiveIds: string[];
1161
+ isVirtualized: boolean;
1162
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
1163
+ };
1164
+ events: {
1165
+ goToNext: () => void;
1166
+ goToPrevious: () => void;
1167
+ goToPreviousRow: () => void;
1168
+ goToNextRow: () => void;
1169
+ goToFirst: () => void;
1170
+ goToLast: () => void;
1171
+ goToFirstOfRow: () => void;
1172
+ goToLastOfRow: () => void;
1173
+ goToNextPage: () => void;
1174
+ goToPreviousPage: () => void;
1175
+ select(data: {
1176
+ id: string;
1177
+ }): void;
1178
+ selectAll(): void;
1179
+ unselectAll(): void;
1180
+ setSelectedIds(ids: string[] | "all"): void;
1181
+ remove(data: {
1182
+ id: string;
1183
+ nextId?: string | undefined;
1184
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1185
+ }): void;
1186
+ goTo(data: {
1187
+ id: string;
1188
+ }): void;
1189
+ registerItem(data: {
1190
+ id: string;
1191
+ textValue: string;
1192
+ }): void;
1193
+ unregisterItem(data: {
1194
+ id: string;
1195
+ }): void;
1196
+ updateItemHeight(data: {
1197
+ value: number;
1198
+ }): void;
1199
+ };
1200
+ selection: SelectionManager;
1201
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
1202
+ getId: (item: any) => string;
1203
+ getTextValue: (item: any) => string;
1204
+ UNSTABLE_parentModel: {
1205
+ state: {
1206
+ selectedIds: string[] | "all";
1207
+ unselectedIds: string[];
1208
+ cursorId: string | string[];
1209
+ columnCount: number;
1210
+ pageSizeRef: React.MutableRefObject<number>;
1211
+ cursorIndexRef: {
1212
+ readonly current: number;
1213
+ };
1214
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1215
+ UNSTABLE_defaultItemHeight: number;
1216
+ containerRef: React.RefObject<HTMLDivElement>;
1217
+ id: string;
1218
+ orientation: "horizontal" | "vertical";
1219
+ indexRef: React.MutableRefObject<number>;
1220
+ nonInteractiveIds: string[];
1221
+ isVirtualized: boolean;
1222
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
1223
+ };
1224
+ events: {
1225
+ select(data: {
1226
+ id: string;
1227
+ }): void;
1228
+ selectAll(): void;
1229
+ unselectAll(): void;
1230
+ setSelectedIds(ids: string[] | "all"): void;
1231
+ remove(data: {
1232
+ id: string;
1233
+ nextId?: string | undefined;
1234
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1235
+ }): void;
1236
+ goTo(data: {
1237
+ id: string;
1238
+ }): void;
1239
+ goToNext(): void;
1240
+ goToPrevious(): void;
1241
+ goToPreviousRow(): void;
1242
+ goToNextRow(): void;
1243
+ goToFirst(): void;
1244
+ goToLast(): void;
1245
+ goToFirstOfRow(): void;
1246
+ goToLastOfRow(): void;
1247
+ goToNextPage(): void;
1248
+ goToPreviousPage(): void;
1249
+ registerItem(data: {
1250
+ id: string;
1251
+ textValue: string;
1252
+ }): void;
1253
+ unregisterItem(data: {
1254
+ id: string;
1255
+ }): void;
1256
+ updateItemHeight(data: {
1257
+ value: number;
1258
+ }): void;
1259
+ };
1260
+ selection: SelectionManager;
1261
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
1262
+ getId: (item: any) => string;
1263
+ getTextValue: (item: any) => string;
1264
+ } | undefined;
1265
+ }) & import("@workday/canvas-kit-react/common").ModelExtras<{
1266
+ /**
1267
+ * Optional id for the whole `SelectionGroup`. If not provided, a unique id will be created.
1268
+ * @default useUniqueId()
1269
+ */
1270
+ id: string;
1271
+ /**
1272
+ * The selection mode of the group. `single` allows one selection at a time and behaves like a
1273
+ * radio group. `multiple` allows more than one selection and behaves like a checkbox group.
1274
+ *
1275
+ * This drives more than selection - it also determines the `radio`/`checkbox` role of an item,
1276
+ * the `radiogroup`/`group` role of the list, whether the group is one tab stop or many, and the
1277
+ * shape of the item's icon. The matching `selection` manager is derived from it, so most groups
1278
+ * should set `mode` rather than passing a `selection` manager directly.
1279
+ * @default 'single'
1280
+ */
1281
+ mode: SelectionGroupMode;
1282
+ /**
1283
+ * The selection manager the underlying list model uses. Leave this unset unless you need
1284
+ * selection to behave differently from what `mode` provides - `mode` picks
1285
+ * `singleSelectionManager` or `multiSelectionManager` for you. Setting this does not change
1286
+ * the roles or keyboard behavior that `mode` controls.
1287
+ * @default `singleSelectionManager`, or `multiSelectionManager` when `mode` is `'multiple'`
1288
+ */
1289
+ selection: SelectionManager | undefined;
1290
+ /**
1291
+ * Controls how item widths are calculated within the group. All items in a group use the same
1292
+ * sizing method.
1293
+ * - `content`: each item is sized to its own label.
1294
+ * - `equal`: each item is sized to match the widest item.
1295
+ * - `column`: each item spans the full width of the group.
1296
+ * @default 'content'
1297
+ */
1298
+ width: SelectionGroupWidth;
1299
+ /**
1300
+ * The initially selected ids of the group. Use this for uncontrolled groups. For `single` mode,
1301
+ * provide a single id. If not provided, nothing is selected until the user interacts.
1302
+ */
1303
+ initialSelectedIds: string[];
1304
+ /**
1305
+ * The selected ids of the group. Providing this prop puts the model in a controlled state: the
1306
+ * group renders exactly what is passed in and will not change on its own. Use `onSelect` to
1307
+ * respond to selection.
1308
+ */
1309
+ selectedIds: string[] | undefined;
1310
+ /**
1311
+ * Sets disabled state for every item in the group. To disable individual items instead, pass
1312
+ * their ids to `nonInteractiveIds` so keyboard navigation skips over them.
1313
+ * @default false
1314
+ */
1315
+ disabled: boolean;
1316
+ /**
1317
+ * The type of error associated with the group (if applicable). Notification states apply to the
1318
+ * whole group rather than to individual items.
1319
+ *
1320
+ * This prop only changes the group's border color, which is not sufficient on its own. Always
1321
+ * pair it with visible text describing the state and reference that text with
1322
+ * `aria-describedby`. Wrapping the group in a `FormField` with a `FormField.Hint` does this
1323
+ * for you.
1324
+ */
1325
+ error: SelectionGroupError | undefined;
1326
+ /**
1327
+ * If true, the group is marked invalid to assistive technology. Only applies when `mode` is
1328
+ * `'single'`, because `aria-invalid` is not allowed on the `group` role that a multi-select
1329
+ * group renders.
1330
+ * @default true when `error` is `'error'`, otherwise undefined
1331
+ */
1332
+ 'aria-invalid': boolean | undefined;
1333
+ /**
1334
+ * The id of the element describing the group, such as the hint text of a `FormField`. This is
1335
+ * set automatically when the group is used as a `FormField.Input`.
1336
+ */
1337
+ 'aria-describedby': string | undefined;
1338
+ /**
1339
+ * The orientation of keyboard navigation within the group.
1340
+ * @default 'horizontal'
1341
+ */
1342
+ orientation: import("@workday/canvas-kit-react/collection").Orientation;
1343
+ initialUnselectedIds: string[];
1344
+ initialCursorId: string | string[];
1345
+ columnCount: number;
1346
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
1347
+ pageSize: number;
1348
+ getId: (item: any) => string;
1349
+ getTextValue: (item: any) => string;
1350
+ nonInteractiveIds: string[];
1351
+ defaultItemHeight: number;
1352
+ shouldVirtualize: boolean;
1353
+ items: any[];
1354
+ UNSTABLE_parentModel: {
1355
+ state: {
1356
+ selectedIds: string[] | "all";
1357
+ unselectedIds: string[];
1358
+ cursorId: string | string[];
1359
+ columnCount: number;
1360
+ pageSizeRef: React.MutableRefObject<number>;
1361
+ cursorIndexRef: {
1362
+ readonly current: number;
1363
+ };
1364
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1365
+ UNSTABLE_defaultItemHeight: number;
1366
+ containerRef: React.RefObject<HTMLDivElement>;
1367
+ id: string;
1368
+ orientation: "horizontal" | "vertical";
1369
+ indexRef: React.MutableRefObject<number>;
1370
+ nonInteractiveIds: string[];
1371
+ isVirtualized: boolean;
1372
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
1373
+ };
1374
+ events: {
1375
+ select(data: {
1376
+ id: string;
1377
+ }): void;
1378
+ selectAll(): void;
1379
+ unselectAll(): void;
1380
+ setSelectedIds(ids: string[] | "all"): void;
1381
+ remove(data: {
1382
+ id: string;
1383
+ nextId?: string | undefined;
1384
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1385
+ }): void;
1386
+ goTo(data: {
1387
+ id: string;
1388
+ }): void;
1389
+ goToNext(): void;
1390
+ goToPrevious(): void;
1391
+ goToPreviousRow(): void;
1392
+ goToNextRow(): void;
1393
+ goToFirst(): void;
1394
+ goToLast(): void;
1395
+ goToFirstOfRow(): void;
1396
+ goToLastOfRow(): void;
1397
+ goToNextPage(): void;
1398
+ goToPreviousPage(): void;
1399
+ registerItem(data: {
1400
+ id: string;
1401
+ textValue: string;
1402
+ }): void;
1403
+ unregisterItem(data: {
1404
+ id: string;
1405
+ }): void;
1406
+ updateItemHeight(data: {
1407
+ value: number;
1408
+ }): void;
1409
+ };
1410
+ selection: SelectionManager;
1411
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
1412
+ getId: (item: any) => string;
1413
+ getTextValue: (item: any) => string;
1414
+ } | undefined;
1415
+ }, {}, {
1416
+ mode: SelectionGroupMode;
1417
+ width: SelectionGroupWidth;
1418
+ disabled: boolean;
1419
+ error: SelectionGroupError | undefined;
1420
+ 'aria-invalid': boolean | undefined;
1421
+ 'aria-describedby': string | undefined;
1422
+ selectedIds: string[] | "all";
1423
+ unselectedIds: string[];
1424
+ cursorId: string | string[];
1425
+ columnCount: number;
1426
+ pageSizeRef: React.MutableRefObject<number>;
1427
+ cursorIndexRef: {
1428
+ readonly current: number;
1429
+ };
1430
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1431
+ UNSTABLE_defaultItemHeight: number;
1432
+ containerRef: React.RefObject<HTMLDivElement>;
1433
+ id: string;
1434
+ orientation: "horizontal" | "vertical";
1435
+ indexRef: React.MutableRefObject<number>;
1436
+ nonInteractiveIds: string[];
1437
+ isVirtualized: boolean;
1438
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
1439
+ }, {
1440
+ goToNext: () => void;
1441
+ goToPrevious: () => void;
1442
+ goToPreviousRow: () => void;
1443
+ goToNextRow: () => void;
1444
+ goToFirst: () => void;
1445
+ goToLast: () => void;
1446
+ goToFirstOfRow: () => void;
1447
+ goToLastOfRow: () => void;
1448
+ goToNextPage: () => void;
1449
+ goToPreviousPage: () => void;
1450
+ select(data: {
1451
+ id: string;
1452
+ }): void;
1453
+ selectAll(): void;
1454
+ unselectAll(): void;
1455
+ setSelectedIds(ids: string[] | "all"): void;
1456
+ remove(data: {
1457
+ id: string;
1458
+ nextId?: string | undefined;
1459
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1460
+ }): void;
1461
+ goTo(data: {
1462
+ id: string;
1463
+ }): void;
1464
+ registerItem(data: {
1465
+ id: string;
1466
+ textValue: string;
1467
+ }): void;
1468
+ unregisterItem(data: {
1469
+ id: string;
1470
+ }): void;
1471
+ updateItemHeight(data: {
1472
+ value: number;
1473
+ }): void;
1474
+ }, {
1475
+ state: {
1476
+ mode: SelectionGroupMode;
1477
+ width: SelectionGroupWidth;
1478
+ disabled: boolean;
1479
+ error: SelectionGroupError | undefined;
1480
+ 'aria-invalid': boolean | undefined;
1481
+ 'aria-describedby': string | undefined;
1482
+ selectedIds: string[] | "all";
1483
+ unselectedIds: string[];
1484
+ cursorId: string | string[];
1485
+ columnCount: number;
1486
+ pageSizeRef: React.MutableRefObject<number>;
1487
+ cursorIndexRef: {
1488
+ readonly current: number;
1489
+ };
1490
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1491
+ UNSTABLE_defaultItemHeight: number;
1492
+ containerRef: React.RefObject<HTMLDivElement>;
1493
+ id: string;
1494
+ orientation: "horizontal" | "vertical";
1495
+ indexRef: React.MutableRefObject<number>;
1496
+ nonInteractiveIds: string[];
1497
+ isVirtualized: boolean;
1498
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
1499
+ };
1500
+ events: {
1501
+ goToNext: () => void;
1502
+ goToPrevious: () => void;
1503
+ goToPreviousRow: () => void;
1504
+ goToNextRow: () => void;
1505
+ goToFirst: () => void;
1506
+ goToLast: () => void;
1507
+ goToFirstOfRow: () => void;
1508
+ goToLastOfRow: () => void;
1509
+ goToNextPage: () => void;
1510
+ goToPreviousPage: () => void;
1511
+ select(data: {
1512
+ id: string;
1513
+ }): void;
1514
+ selectAll(): void;
1515
+ unselectAll(): void;
1516
+ setSelectedIds(ids: string[] | "all"): void;
1517
+ remove(data: {
1518
+ id: string;
1519
+ nextId?: string | undefined;
1520
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1521
+ }): void;
1522
+ goTo(data: {
1523
+ id: string;
1524
+ }): void;
1525
+ registerItem(data: {
1526
+ id: string;
1527
+ textValue: string;
1528
+ }): void;
1529
+ unregisterItem(data: {
1530
+ id: string;
1531
+ }): void;
1532
+ updateItemHeight(data: {
1533
+ value: number;
1534
+ }): void;
1535
+ };
1536
+ selection: SelectionManager;
1537
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
1538
+ getId: (item: any) => string;
1539
+ getTextValue: (item: any) => string;
1540
+ UNSTABLE_parentModel: {
1541
+ state: {
1542
+ selectedIds: string[] | "all";
1543
+ unselectedIds: string[];
1544
+ cursorId: string | string[];
1545
+ columnCount: number;
1546
+ pageSizeRef: React.MutableRefObject<number>;
1547
+ cursorIndexRef: {
1548
+ readonly current: number;
1549
+ };
1550
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1551
+ UNSTABLE_defaultItemHeight: number;
1552
+ containerRef: React.RefObject<HTMLDivElement>;
1553
+ id: string;
1554
+ orientation: "horizontal" | "vertical";
1555
+ indexRef: React.MutableRefObject<number>;
1556
+ nonInteractiveIds: string[];
1557
+ isVirtualized: boolean;
1558
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
1559
+ };
1560
+ events: {
1561
+ select(data: {
1562
+ id: string;
1563
+ }): void;
1564
+ selectAll(): void;
1565
+ unselectAll(): void;
1566
+ setSelectedIds(ids: string[] | "all"): void;
1567
+ remove(data: {
1568
+ id: string;
1569
+ nextId?: string | undefined;
1570
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1571
+ }): void;
1572
+ goTo(data: {
1573
+ id: string;
1574
+ }): void;
1575
+ goToNext(): void;
1576
+ goToPrevious(): void;
1577
+ goToPreviousRow(): void;
1578
+ goToNextRow(): void;
1579
+ goToFirst(): void;
1580
+ goToLast(): void;
1581
+ goToFirstOfRow(): void;
1582
+ goToLastOfRow(): void;
1583
+ goToNextPage(): void;
1584
+ goToPreviousPage(): void;
1585
+ registerItem(data: {
1586
+ id: string;
1587
+ textValue: string;
1588
+ }): void;
1589
+ unregisterItem(data: {
1590
+ id: string;
1591
+ }): void;
1592
+ updateItemHeight(data: {
1593
+ value: number;
1594
+ }): void;
1595
+ };
1596
+ selection: SelectionManager;
1597
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
1598
+ getId: (item: any) => string;
1599
+ getTextValue: (item: any) => string;
1600
+ } | undefined;
1601
+ }>;
1602
+ //# sourceMappingURL=useSelectionGroupModel.d.ts.map