@workday/canvas-kit-preview-react 9.0.0-alpha.415-next.17 → 9.0.0-alpha.417-next.19

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 (21) hide show
  1. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +155 -44
  2. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
  3. package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts +7 -4
  4. package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -1
  5. package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts +14 -8
  6. package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
  7. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +7 -4
  8. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -1
  9. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +155 -44
  10. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +1 -1
  11. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts +155 -44
  12. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
  13. package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts +7 -4
  14. package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -1
  15. package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts +14 -8
  16. package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
  17. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +7 -4
  18. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -1
  19. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +155 -44
  20. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +1 -1
  21. package/package.json +3 -3
@@ -50,6 +50,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
50
50
  cursorId: string;
51
51
  columnCount: number;
52
52
  pageSizeRef: React.MutableRefObject<number>;
53
+ cursorIndexRef: {
54
+ readonly current: number;
55
+ };
53
56
  UNSTABLE_virtual: {
54
57
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
55
58
  totalSize: number;
@@ -74,6 +77,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
74
77
  cursorId: string;
75
78
  columnCount: number;
76
79
  pageSizeRef: React.MutableRefObject<number>;
80
+ cursorIndexRef: {
81
+ readonly current: number;
82
+ };
77
83
  UNSTABLE_virtual: {
78
84
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
79
85
  totalSize: number;
@@ -98,6 +104,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
98
104
  cursorId: string;
99
105
  columnCount: number;
100
106
  pageSizeRef: React.MutableRefObject<number>;
107
+ cursorIndexRef: {
108
+ readonly current: number;
109
+ };
101
110
  UNSTABLE_virtual: {
102
111
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
103
112
  totalSize: number;
@@ -114,9 +123,8 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
114
123
  isVirtualized: boolean;
115
124
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
116
125
  }) => void) | undefined;
117
- onRegisterItem?: ((data: {
118
- item: any;
119
- textValue: string;
126
+ onGoTo?: ((data: {
127
+ id: string;
120
128
  }, prevState: {
121
129
  disabled: boolean;
122
130
  size: "small" | "medium" | "large";
@@ -125,6 +133,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
125
133
  cursorId: string;
126
134
  columnCount: number;
127
135
  pageSizeRef: React.MutableRefObject<number>;
136
+ cursorIndexRef: {
137
+ readonly current: number;
138
+ };
128
139
  UNSTABLE_virtual: {
129
140
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
130
141
  totalSize: number;
@@ -141,9 +152,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
141
152
  isVirtualized: boolean;
142
153
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
143
154
  }) => void) | undefined;
144
- onGoTo?: ((data: {
145
- id: string;
146
- }, prevState: {
155
+ onGoToNext?: ((data: undefined, prevState: {
147
156
  disabled: boolean;
148
157
  size: "small" | "medium" | "large";
149
158
  selectedIds: string[] | "all";
@@ -151,6 +160,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
151
160
  cursorId: string;
152
161
  columnCount: number;
153
162
  pageSizeRef: React.MutableRefObject<number>;
163
+ cursorIndexRef: {
164
+ readonly current: number;
165
+ };
154
166
  UNSTABLE_virtual: {
155
167
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
156
168
  totalSize: number;
@@ -167,7 +179,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
167
179
  isVirtualized: boolean;
168
180
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
169
181
  }) => void) | undefined;
170
- onGoToNext?: ((data: undefined, prevState: {
182
+ onGoToPrevious?: ((data: undefined, prevState: {
171
183
  disabled: boolean;
172
184
  size: "small" | "medium" | "large";
173
185
  selectedIds: string[] | "all";
@@ -175,6 +187,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
175
187
  cursorId: string;
176
188
  columnCount: number;
177
189
  pageSizeRef: React.MutableRefObject<number>;
190
+ cursorIndexRef: {
191
+ readonly current: number;
192
+ };
178
193
  UNSTABLE_virtual: {
179
194
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
180
195
  totalSize: number;
@@ -191,7 +206,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
191
206
  isVirtualized: boolean;
192
207
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
193
208
  }) => void) | undefined;
194
- onGoToPrevious?: ((data: undefined, prevState: {
209
+ onGoToPreviousRow?: ((data: undefined, prevState: {
195
210
  disabled: boolean;
196
211
  size: "small" | "medium" | "large";
197
212
  selectedIds: string[] | "all";
@@ -199,6 +214,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
199
214
  cursorId: string;
200
215
  columnCount: number;
201
216
  pageSizeRef: React.MutableRefObject<number>;
217
+ cursorIndexRef: {
218
+ readonly current: number;
219
+ };
202
220
  UNSTABLE_virtual: {
203
221
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
204
222
  totalSize: number;
@@ -215,7 +233,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
215
233
  isVirtualized: boolean;
216
234
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
217
235
  }) => void) | undefined;
218
- onGoToPreviousRow?: ((data: undefined, prevState: {
236
+ onGoToNextRow?: ((data: undefined, prevState: {
219
237
  disabled: boolean;
220
238
  size: "small" | "medium" | "large";
221
239
  selectedIds: string[] | "all";
@@ -223,6 +241,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
223
241
  cursorId: string;
224
242
  columnCount: number;
225
243
  pageSizeRef: React.MutableRefObject<number>;
244
+ cursorIndexRef: {
245
+ readonly current: number;
246
+ };
226
247
  UNSTABLE_virtual: {
227
248
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
228
249
  totalSize: number;
@@ -239,7 +260,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
239
260
  isVirtualized: boolean;
240
261
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
241
262
  }) => void) | undefined;
242
- onGoToNextRow?: ((data: undefined, prevState: {
263
+ onGoToFirst?: ((data: undefined, prevState: {
243
264
  disabled: boolean;
244
265
  size: "small" | "medium" | "large";
245
266
  selectedIds: string[] | "all";
@@ -247,6 +268,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
247
268
  cursorId: string;
248
269
  columnCount: number;
249
270
  pageSizeRef: React.MutableRefObject<number>;
271
+ cursorIndexRef: {
272
+ readonly current: number;
273
+ };
250
274
  UNSTABLE_virtual: {
251
275
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
252
276
  totalSize: number;
@@ -263,7 +287,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
263
287
  isVirtualized: boolean;
264
288
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
265
289
  }) => void) | undefined;
266
- onGoToFirst?: ((data: undefined, prevState: {
290
+ onGoToLast?: ((data: undefined, prevState: {
267
291
  disabled: boolean;
268
292
  size: "small" | "medium" | "large";
269
293
  selectedIds: string[] | "all";
@@ -271,6 +295,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
271
295
  cursorId: string;
272
296
  columnCount: number;
273
297
  pageSizeRef: React.MutableRefObject<number>;
298
+ cursorIndexRef: {
299
+ readonly current: number;
300
+ };
274
301
  UNSTABLE_virtual: {
275
302
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
276
303
  totalSize: number;
@@ -287,7 +314,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
287
314
  isVirtualized: boolean;
288
315
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
289
316
  }) => void) | undefined;
290
- onGoToLast?: ((data: undefined, prevState: {
317
+ onGoToFirstOfRow?: ((data: undefined, prevState: {
291
318
  disabled: boolean;
292
319
  size: "small" | "medium" | "large";
293
320
  selectedIds: string[] | "all";
@@ -295,6 +322,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
295
322
  cursorId: string;
296
323
  columnCount: number;
297
324
  pageSizeRef: React.MutableRefObject<number>;
325
+ cursorIndexRef: {
326
+ readonly current: number;
327
+ };
298
328
  UNSTABLE_virtual: {
299
329
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
300
330
  totalSize: number;
@@ -311,7 +341,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
311
341
  isVirtualized: boolean;
312
342
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
313
343
  }) => void) | undefined;
314
- onGoToFirstOfRow?: ((data: undefined, prevState: {
344
+ onGoToLastOfRow?: ((data: undefined, prevState: {
315
345
  disabled: boolean;
316
346
  size: "small" | "medium" | "large";
317
347
  selectedIds: string[] | "all";
@@ -319,6 +349,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
319
349
  cursorId: string;
320
350
  columnCount: number;
321
351
  pageSizeRef: React.MutableRefObject<number>;
352
+ cursorIndexRef: {
353
+ readonly current: number;
354
+ };
322
355
  UNSTABLE_virtual: {
323
356
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
324
357
  totalSize: number;
@@ -335,7 +368,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
335
368
  isVirtualized: boolean;
336
369
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
337
370
  }) => void) | undefined;
338
- onGoToLastOfRow?: ((data: undefined, prevState: {
371
+ onGoToNextPage?: ((data: undefined, prevState: {
339
372
  disabled: boolean;
340
373
  size: "small" | "medium" | "large";
341
374
  selectedIds: string[] | "all";
@@ -343,6 +376,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
343
376
  cursorId: string;
344
377
  columnCount: number;
345
378
  pageSizeRef: React.MutableRefObject<number>;
379
+ cursorIndexRef: {
380
+ readonly current: number;
381
+ };
346
382
  UNSTABLE_virtual: {
347
383
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
348
384
  totalSize: number;
@@ -359,7 +395,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
359
395
  isVirtualized: boolean;
360
396
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
361
397
  }) => void) | undefined;
362
- onGoToNextPage?: ((data: undefined, prevState: {
398
+ onGoToPreviousPage?: ((data: undefined, prevState: {
363
399
  disabled: boolean;
364
400
  size: "small" | "medium" | "large";
365
401
  selectedIds: string[] | "all";
@@ -367,6 +403,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
367
403
  cursorId: string;
368
404
  columnCount: number;
369
405
  pageSizeRef: React.MutableRefObject<number>;
406
+ cursorIndexRef: {
407
+ readonly current: number;
408
+ };
370
409
  UNSTABLE_virtual: {
371
410
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
372
411
  totalSize: number;
@@ -383,7 +422,10 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
383
422
  isVirtualized: boolean;
384
423
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
385
424
  }) => void) | undefined;
386
- onGoToPreviousPage?: ((data: undefined, prevState: {
425
+ onRegisterItem?: ((data: {
426
+ item: any;
427
+ textValue: string;
428
+ }, prevState: {
387
429
  disabled: boolean;
388
430
  size: "small" | "medium" | "large";
389
431
  selectedIds: string[] | "all";
@@ -391,6 +433,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
391
433
  cursorId: string;
392
434
  columnCount: number;
393
435
  pageSizeRef: React.MutableRefObject<number>;
436
+ cursorIndexRef: {
437
+ readonly current: number;
438
+ };
394
439
  UNSTABLE_virtual: {
395
440
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
396
441
  totalSize: number;
@@ -417,6 +462,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
417
462
  cursorId: string;
418
463
  columnCount: number;
419
464
  pageSizeRef: React.MutableRefObject<number>;
465
+ cursorIndexRef: {
466
+ readonly current: number;
467
+ };
420
468
  UNSTABLE_virtual: {
421
469
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
422
470
  totalSize: number;
@@ -443,6 +491,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
443
491
  cursorId: string;
444
492
  columnCount: number;
445
493
  pageSizeRef: React.MutableRefObject<number>;
494
+ cursorIndexRef: {
495
+ readonly current: number;
496
+ };
446
497
  UNSTABLE_virtual: {
447
498
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
448
499
  totalSize: number;
@@ -470,6 +521,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
470
521
  cursorId: string;
471
522
  columnCount: number;
472
523
  pageSizeRef: React.MutableRefObject<number>;
524
+ cursorIndexRef: {
525
+ readonly current: number;
526
+ };
473
527
  UNSTABLE_virtual: {
474
528
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
475
529
  totalSize: number;
@@ -494,6 +548,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
494
548
  cursorId: string;
495
549
  columnCount: number;
496
550
  pageSizeRef: React.MutableRefObject<number>;
551
+ cursorIndexRef: {
552
+ readonly current: number;
553
+ };
497
554
  UNSTABLE_virtual: {
498
555
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
499
556
  totalSize: number;
@@ -518,6 +575,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
518
575
  cursorId: string;
519
576
  columnCount: number;
520
577
  pageSizeRef: React.MutableRefObject<number>;
578
+ cursorIndexRef: {
579
+ readonly current: number;
580
+ };
521
581
  UNSTABLE_virtual: {
522
582
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
523
583
  totalSize: number;
@@ -534,9 +594,8 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
534
594
  isVirtualized: boolean;
535
595
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
536
596
  }) => boolean) | undefined;
537
- shouldRegisterItem?: ((data: {
538
- item: any;
539
- textValue: string;
597
+ shouldGoTo?: ((data: {
598
+ id: string;
540
599
  }, state: {
541
600
  disabled: boolean;
542
601
  size: "small" | "medium" | "large";
@@ -545,6 +604,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
545
604
  cursorId: string;
546
605
  columnCount: number;
547
606
  pageSizeRef: React.MutableRefObject<number>;
607
+ cursorIndexRef: {
608
+ readonly current: number;
609
+ };
548
610
  UNSTABLE_virtual: {
549
611
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
550
612
  totalSize: number;
@@ -561,9 +623,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
561
623
  isVirtualized: boolean;
562
624
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
563
625
  }) => boolean) | undefined;
564
- shouldGoTo?: ((data: {
565
- id: string;
566
- }, state: {
626
+ shouldGoToNext?: ((data: undefined, state: {
567
627
  disabled: boolean;
568
628
  size: "small" | "medium" | "large";
569
629
  selectedIds: string[] | "all";
@@ -571,6 +631,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
571
631
  cursorId: string;
572
632
  columnCount: number;
573
633
  pageSizeRef: React.MutableRefObject<number>;
634
+ cursorIndexRef: {
635
+ readonly current: number;
636
+ };
574
637
  UNSTABLE_virtual: {
575
638
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
576
639
  totalSize: number;
@@ -587,7 +650,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
587
650
  isVirtualized: boolean;
588
651
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
589
652
  }) => boolean) | undefined;
590
- shouldGoToNext?: ((data: undefined, state: {
653
+ shouldGoToPrevious?: ((data: undefined, state: {
591
654
  disabled: boolean;
592
655
  size: "small" | "medium" | "large";
593
656
  selectedIds: string[] | "all";
@@ -595,6 +658,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
595
658
  cursorId: string;
596
659
  columnCount: number;
597
660
  pageSizeRef: React.MutableRefObject<number>;
661
+ cursorIndexRef: {
662
+ readonly current: number;
663
+ };
598
664
  UNSTABLE_virtual: {
599
665
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
600
666
  totalSize: number;
@@ -611,7 +677,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
611
677
  isVirtualized: boolean;
612
678
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
613
679
  }) => boolean) | undefined;
614
- shouldGoToPrevious?: ((data: undefined, state: {
680
+ shouldGoToPreviousRow?: ((data: undefined, state: {
615
681
  disabled: boolean;
616
682
  size: "small" | "medium" | "large";
617
683
  selectedIds: string[] | "all";
@@ -619,6 +685,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
619
685
  cursorId: string;
620
686
  columnCount: number;
621
687
  pageSizeRef: React.MutableRefObject<number>;
688
+ cursorIndexRef: {
689
+ readonly current: number;
690
+ };
622
691
  UNSTABLE_virtual: {
623
692
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
624
693
  totalSize: number;
@@ -635,7 +704,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
635
704
  isVirtualized: boolean;
636
705
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
637
706
  }) => boolean) | undefined;
638
- shouldGoToPreviousRow?: ((data: undefined, state: {
707
+ shouldGoToNextRow?: ((data: undefined, state: {
639
708
  disabled: boolean;
640
709
  size: "small" | "medium" | "large";
641
710
  selectedIds: string[] | "all";
@@ -643,6 +712,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
643
712
  cursorId: string;
644
713
  columnCount: number;
645
714
  pageSizeRef: React.MutableRefObject<number>;
715
+ cursorIndexRef: {
716
+ readonly current: number;
717
+ };
646
718
  UNSTABLE_virtual: {
647
719
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
648
720
  totalSize: number;
@@ -659,7 +731,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
659
731
  isVirtualized: boolean;
660
732
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
661
733
  }) => boolean) | undefined;
662
- shouldGoToNextRow?: ((data: undefined, state: {
734
+ shouldGoToFirst?: ((data: undefined, state: {
663
735
  disabled: boolean;
664
736
  size: "small" | "medium" | "large";
665
737
  selectedIds: string[] | "all";
@@ -667,6 +739,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
667
739
  cursorId: string;
668
740
  columnCount: number;
669
741
  pageSizeRef: React.MutableRefObject<number>;
742
+ cursorIndexRef: {
743
+ readonly current: number;
744
+ };
670
745
  UNSTABLE_virtual: {
671
746
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
672
747
  totalSize: number;
@@ -683,7 +758,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
683
758
  isVirtualized: boolean;
684
759
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
685
760
  }) => boolean) | undefined;
686
- shouldGoToFirst?: ((data: undefined, state: {
761
+ shouldGoToLast?: ((data: undefined, state: {
687
762
  disabled: boolean;
688
763
  size: "small" | "medium" | "large";
689
764
  selectedIds: string[] | "all";
@@ -691,6 +766,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
691
766
  cursorId: string;
692
767
  columnCount: number;
693
768
  pageSizeRef: React.MutableRefObject<number>;
769
+ cursorIndexRef: {
770
+ readonly current: number;
771
+ };
694
772
  UNSTABLE_virtual: {
695
773
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
696
774
  totalSize: number;
@@ -707,7 +785,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
707
785
  isVirtualized: boolean;
708
786
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
709
787
  }) => boolean) | undefined;
710
- shouldGoToLast?: ((data: undefined, state: {
788
+ shouldGoToFirstOfRow?: ((data: undefined, state: {
711
789
  disabled: boolean;
712
790
  size: "small" | "medium" | "large";
713
791
  selectedIds: string[] | "all";
@@ -715,6 +793,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
715
793
  cursorId: string;
716
794
  columnCount: number;
717
795
  pageSizeRef: React.MutableRefObject<number>;
796
+ cursorIndexRef: {
797
+ readonly current: number;
798
+ };
718
799
  UNSTABLE_virtual: {
719
800
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
720
801
  totalSize: number;
@@ -731,7 +812,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
731
812
  isVirtualized: boolean;
732
813
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
733
814
  }) => boolean) | undefined;
734
- shouldGoToFirstOfRow?: ((data: undefined, state: {
815
+ shouldGoToLastOfRow?: ((data: undefined, state: {
735
816
  disabled: boolean;
736
817
  size: "small" | "medium" | "large";
737
818
  selectedIds: string[] | "all";
@@ -739,6 +820,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
739
820
  cursorId: string;
740
821
  columnCount: number;
741
822
  pageSizeRef: React.MutableRefObject<number>;
823
+ cursorIndexRef: {
824
+ readonly current: number;
825
+ };
742
826
  UNSTABLE_virtual: {
743
827
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
744
828
  totalSize: number;
@@ -755,7 +839,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
755
839
  isVirtualized: boolean;
756
840
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
757
841
  }) => boolean) | undefined;
758
- shouldGoToLastOfRow?: ((data: undefined, state: {
842
+ shouldGoToNextPage?: ((data: undefined, state: {
759
843
  disabled: boolean;
760
844
  size: "small" | "medium" | "large";
761
845
  selectedIds: string[] | "all";
@@ -763,6 +847,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
763
847
  cursorId: string;
764
848
  columnCount: number;
765
849
  pageSizeRef: React.MutableRefObject<number>;
850
+ cursorIndexRef: {
851
+ readonly current: number;
852
+ };
766
853
  UNSTABLE_virtual: {
767
854
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
768
855
  totalSize: number;
@@ -779,7 +866,7 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
779
866
  isVirtualized: boolean;
780
867
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
781
868
  }) => boolean) | undefined;
782
- shouldGoToNextPage?: ((data: undefined, state: {
869
+ shouldGoToPreviousPage?: ((data: undefined, state: {
783
870
  disabled: boolean;
784
871
  size: "small" | "medium" | "large";
785
872
  selectedIds: string[] | "all";
@@ -787,6 +874,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
787
874
  cursorId: string;
788
875
  columnCount: number;
789
876
  pageSizeRef: React.MutableRefObject<number>;
877
+ cursorIndexRef: {
878
+ readonly current: number;
879
+ };
790
880
  UNSTABLE_virtual: {
791
881
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
792
882
  totalSize: number;
@@ -803,7 +893,10 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
803
893
  isVirtualized: boolean;
804
894
  items: import("@workday/canvas-kit-react/collection").Item<any>[];
805
895
  }) => boolean) | undefined;
806
- shouldGoToPreviousPage?: ((data: undefined, state: {
896
+ shouldRegisterItem?: ((data: {
897
+ item: any;
898
+ textValue: string;
899
+ }, state: {
807
900
  disabled: boolean;
808
901
  size: "small" | "medium" | "large";
809
902
  selectedIds: string[] | "all";
@@ -811,6 +904,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
811
904
  cursorId: string;
812
905
  columnCount: number;
813
906
  pageSizeRef: React.MutableRefObject<number>;
907
+ cursorIndexRef: {
908
+ readonly current: number;
909
+ };
814
910
  UNSTABLE_virtual: {
815
911
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
816
912
  totalSize: number;
@@ -837,6 +933,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
837
933
  cursorId: string;
838
934
  columnCount: number;
839
935
  pageSizeRef: React.MutableRefObject<number>;
936
+ cursorIndexRef: {
937
+ readonly current: number;
938
+ };
840
939
  UNSTABLE_virtual: {
841
940
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
842
941
  totalSize: number;
@@ -863,6 +962,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
863
962
  cursorId: string;
864
963
  columnCount: number;
865
964
  pageSizeRef: React.MutableRefObject<number>;
965
+ cursorIndexRef: {
966
+ readonly current: number;
967
+ };
866
968
  UNSTABLE_virtual: {
867
969
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
868
970
  totalSize: number;
@@ -888,6 +990,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
888
990
  cursorId: string;
889
991
  columnCount: number;
890
992
  pageSizeRef: React.MutableRefObject<number>;
993
+ cursorIndexRef: {
994
+ readonly current: number;
995
+ };
891
996
  UNSTABLE_virtual: {
892
997
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
893
998
  totalSize: number;
@@ -910,10 +1015,6 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
910
1015
  }): void;
911
1016
  selectAll(): void;
912
1017
  unselectAll(): void;
913
- registerItem(data: {
914
- item: any;
915
- textValue: string;
916
- }): void;
917
1018
  goTo(data: {
918
1019
  id: string;
919
1020
  }): void;
@@ -927,6 +1028,10 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
927
1028
  goToLastOfRow(): void;
928
1029
  goToNextPage(): void;
929
1030
  goToPreviousPage(): void;
1031
+ registerItem(data: {
1032
+ item: any;
1033
+ textValue: string;
1034
+ }): void;
930
1035
  unregisterItem(data: {
931
1036
  id: string;
932
1037
  }): void;
@@ -985,6 +1090,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
985
1090
  cursorId: string;
986
1091
  columnCount: number;
987
1092
  pageSizeRef: React.MutableRefObject<number>;
1093
+ cursorIndexRef: {
1094
+ readonly current: number;
1095
+ };
988
1096
  UNSTABLE_virtual: {
989
1097
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
990
1098
  totalSize: number;
@@ -1006,10 +1114,6 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
1006
1114
  }): void;
1007
1115
  selectAll(): void;
1008
1116
  unselectAll(): void;
1009
- registerItem(data: {
1010
- item: any;
1011
- textValue: string;
1012
- }): void;
1013
1117
  goTo(data: {
1014
1118
  id: string;
1015
1119
  }): void;
@@ -1023,6 +1127,10 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
1023
1127
  goToLastOfRow(): void;
1024
1128
  goToNextPage(): void;
1025
1129
  goToPreviousPage(): void;
1130
+ registerItem(data: {
1131
+ item: any;
1132
+ textValue: string;
1133
+ }): void;
1026
1134
  unregisterItem(data: {
1027
1135
  id: string;
1028
1136
  }): void;
@@ -1038,6 +1146,9 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
1038
1146
  cursorId: string;
1039
1147
  columnCount: number;
1040
1148
  pageSizeRef: React.MutableRefObject<number>;
1149
+ cursorIndexRef: {
1150
+ readonly current: number;
1151
+ };
1041
1152
  UNSTABLE_virtual: {
1042
1153
  virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
1043
1154
  totalSize: number;
@@ -1060,10 +1171,6 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
1060
1171
  }): void;
1061
1172
  selectAll(): void;
1062
1173
  unselectAll(): void;
1063
- registerItem(data: {
1064
- item: any;
1065
- textValue: string;
1066
- }): void;
1067
1174
  goTo(data: {
1068
1175
  id: string;
1069
1176
  }): void;
@@ -1077,6 +1184,10 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
1077
1184
  goToLastOfRow(): void;
1078
1185
  goToNextPage(): void;
1079
1186
  goToPreviousPage(): void;
1187
+ registerItem(data: {
1188
+ item: any;
1189
+ textValue: string;
1190
+ }): void;
1080
1191
  unregisterItem(data: {
1081
1192
  id: string;
1082
1193
  }): void;
@@ -1 +1 @@
1
- {"version":3,"file":"useSegmentedControlModel.d.ts","sourceRoot":"","sources":["../../../../../segmented-control/lib/hooks/useSegmentedControlModel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,wBAAwB;IAGjC;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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