@workday/canvas-kit-preview-react 16.0.0-alpha.0474-next.0 → 16.0.0-alpha.0475-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 (65) hide show
  1. package/dist/commonjs/index.d.ts +1 -0
  2. package/dist/commonjs/index.d.ts.map +1 -1
  3. package/dist/commonjs/index.js +1 -0
  4. package/dist/commonjs/tabs/index.d.ts +7 -0
  5. package/dist/commonjs/tabs/index.d.ts.map +1 -0
  6. package/dist/commonjs/tabs/index.js +22 -0
  7. package/dist/commonjs/tabs/lib/Tabs.d.ts +9555 -0
  8. package/dist/commonjs/tabs/lib/Tabs.d.ts.map +1 -0
  9. package/dist/commonjs/tabs/lib/Tabs.js +127 -0
  10. package/dist/commonjs/tabs/lib/TabsItem.d.ts +719 -0
  11. package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -0
  12. package/dist/commonjs/tabs/lib/TabsItem.js +50 -0
  13. package/dist/commonjs/tabs/lib/TabsList.d.ts +998 -0
  14. package/dist/commonjs/tabs/lib/TabsList.d.ts.map +1 -0
  15. package/dist/commonjs/tabs/lib/TabsList.js +121 -0
  16. package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts +650 -0
  17. package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts.map +1 -0
  18. package/dist/commonjs/tabs/lib/TabsOverflowButton.js +28 -0
  19. package/dist/commonjs/tabs/lib/TabsPanel.d.ts +654 -0
  20. package/dist/commonjs/tabs/lib/TabsPanel.d.ts.map +1 -0
  21. package/dist/commonjs/tabs/lib/TabsPanel.js +42 -0
  22. package/dist/commonjs/tabs/lib/TabsPanels.d.ts +320 -0
  23. package/dist/commonjs/tabs/lib/TabsPanels.d.ts.map +1 -0
  24. package/dist/commonjs/tabs/lib/TabsPanels.js +13 -0
  25. package/dist/commonjs/tabs/lib/useTabsModel.d.ts +5924 -0
  26. package/dist/commonjs/tabs/lib/useTabsModel.d.ts.map +1 -0
  27. package/dist/commonjs/tabs/lib/useTabsModel.js +128 -0
  28. package/dist/es6/index.d.ts +1 -0
  29. package/dist/es6/index.d.ts.map +1 -1
  30. package/dist/es6/index.js +1 -0
  31. package/dist/es6/tabs/index.d.ts +7 -0
  32. package/dist/es6/tabs/index.d.ts.map +1 -0
  33. package/dist/es6/tabs/index.js +6 -0
  34. package/dist/es6/tabs/lib/Tabs.d.ts +9555 -0
  35. package/dist/es6/tabs/lib/Tabs.d.ts.map +1 -0
  36. package/dist/es6/tabs/lib/Tabs.js +124 -0
  37. package/dist/es6/tabs/lib/TabsItem.d.ts +719 -0
  38. package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -0
  39. package/dist/es6/tabs/lib/TabsItem.js +47 -0
  40. package/dist/es6/tabs/lib/TabsList.d.ts +998 -0
  41. package/dist/es6/tabs/lib/TabsList.d.ts.map +1 -0
  42. package/dist/es6/tabs/lib/TabsList.js +95 -0
  43. package/dist/es6/tabs/lib/TabsOverflowButton.d.ts +650 -0
  44. package/dist/es6/tabs/lib/TabsOverflowButton.d.ts.map +1 -0
  45. package/dist/es6/tabs/lib/TabsOverflowButton.js +25 -0
  46. package/dist/es6/tabs/lib/TabsPanel.d.ts +654 -0
  47. package/dist/es6/tabs/lib/TabsPanel.d.ts.map +1 -0
  48. package/dist/es6/tabs/lib/TabsPanel.js +36 -0
  49. package/dist/es6/tabs/lib/TabsPanels.d.ts +320 -0
  50. package/dist/es6/tabs/lib/TabsPanels.d.ts.map +1 -0
  51. package/dist/es6/tabs/lib/TabsPanels.js +10 -0
  52. package/dist/es6/tabs/lib/useTabsModel.d.ts +5924 -0
  53. package/dist/es6/tabs/lib/useTabsModel.d.ts.map +1 -0
  54. package/dist/es6/tabs/lib/useTabsModel.js +122 -0
  55. package/index.ts +1 -0
  56. package/package.json +4 -4
  57. package/tabs/index.ts +7 -0
  58. package/tabs/lib/Tabs.tsx +135 -0
  59. package/tabs/lib/TabsItem.tsx +274 -0
  60. package/tabs/lib/TabsList.tsx +181 -0
  61. package/tabs/lib/TabsOverflowButton.tsx +61 -0
  62. package/tabs/lib/TabsPanel.tsx +77 -0
  63. package/tabs/lib/TabsPanels.tsx +20 -0
  64. package/tabs/lib/useTabsModel.tsx +141 -0
  65. package/tabs/package.json +6 -0
@@ -0,0 +1,719 @@
1
+ import * as React from 'react';
2
+ import { ExtractProps } from '@workday/canvas-kit-react/common';
3
+ import { Box, FlexProps } from '@workday/canvas-kit-react/layout';
4
+ export interface TabsItemProps extends ExtractProps<typeof Box, never>, Partial<Pick<FlexProps, 'gap'>> {
5
+ /**
6
+ * Optionally pass index to tab item. This should be done if `Tabs.Item` components were created
7
+ * via a `Array::map` function. This index will ensure keyboard navigation works even if items are
8
+ * inserted out of order.
9
+ */
10
+ index?: number;
11
+ /**
12
+ * The contents of the tab item. This will be the accessible name of the tab for screen readers.
13
+ * Often, this is text. Icons are also supported. Using `Tabs.Icon` will render an icon that is
14
+ * not visible to screen readers and therefore the icon should not be necessary to understand the
15
+ * tab. In most circumstances, `aria-label` should not be used.
16
+ *
17
+ * ```tsx
18
+ * <Tabs.Item>First Tab</Tabs.Item>
19
+ * <Tabs.Item>
20
+ * <Tabs.Icon icon={canvasIcon} />
21
+ * <Tabs.Text>Second Tab</Tabs.Text>
22
+ * </Tabs.Item>
23
+ * ```
24
+ */
25
+ children: React.ReactNode;
26
+ /**
27
+ * The identifier of the tab. This identifier will be used in change events and for `initialTab`.
28
+ * Must match the `data-id` of the associated tab panel. If this property is not provided, it will
29
+ * default to a string representation of the the zero-based index of the Tab when it was
30
+ * initialized.
31
+ */
32
+ 'data-id'?: string;
33
+ /**
34
+ * Optional id. If not set, it will inherit the ID passed to the `Tabs` component and append the
35
+ * index at the end. Only set this for advanced cases.
36
+ */
37
+ id?: string;
38
+ /**
39
+ * Part of the ARIA specification for tabs. This attributes links a `role=tab` to a
40
+ * `role=tabpanel`. This value must be the same as the associated `id` attribute of the tab panel.
41
+ * This is automatically set by the component and should only be used in advanced cases.
42
+ */
43
+ 'aria-controls'?: string;
44
+ /**
45
+ * Part of the ARIA specification for tabs. Lets screen readers know which tab is active. This
46
+ * should either be `true` or `undefined` and never `false`. This is automatically set by the
47
+ * component and should only be used in advanced cases.
48
+ */
49
+ 'aria-selected'?: boolean;
50
+ /**
51
+ * Part of the ARIA specification for tabs. The currently active tab should not have a `tabIndex`
52
+ * set while all inactive tabs should have a `tabIndex={-1}`
53
+ */
54
+ tabIndex?: number;
55
+ /**
56
+ * The variant of the TabsItem.
57
+ * @default 'filled'
58
+ */
59
+ variant?: 'filled' | 'outlined';
60
+ }
61
+ export declare const StyledTabItem: import("@workday/canvas-kit-react/common").ElementComponent<"button", TabsItemProps>;
62
+ export declare const useTabsItem: import("@workday/canvas-kit-react/common").BehaviorHook<{
63
+ state: {
64
+ getId: (item: any) => string;
65
+ orientation: import("@workday/canvas-kit-react/collection").Orientation;
66
+ panels: import("@workday/canvas-kit-react/collection").Item<any>[];
67
+ panelIndexRef: React.MutableRefObject<number>;
68
+ variant: "filled" | "outlined";
69
+ hiddenIds: string[];
70
+ itemSizeCache: Record<string, number>;
71
+ itemWidthCache: Record<string, number>;
72
+ containerSize: number;
73
+ containerWidth: number;
74
+ containerGap: number;
75
+ overflowTargetWidth: number;
76
+ selectedIds: string[] | "all";
77
+ unselectedIds: string[];
78
+ cursorId: string | string[];
79
+ columnCount: number;
80
+ pageSizeRef: React.MutableRefObject<number>;
81
+ cursorIndexRef: {
82
+ readonly current: number;
83
+ };
84
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
85
+ UNSTABLE_defaultItemHeight: number;
86
+ containerRef: React.RefObject<HTMLDivElement>;
87
+ id: string;
88
+ indexRef: React.MutableRefObject<number>;
89
+ nonInteractiveIds: string[];
90
+ isVirtualized: boolean;
91
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
92
+ };
93
+ events: {
94
+ registerPanel: (data: {
95
+ id: string;
96
+ textValue: string;
97
+ }) => void;
98
+ unregisterPanel: (data: {
99
+ id: string;
100
+ }) => void;
101
+ select(data: {
102
+ id: string;
103
+ }): void;
104
+ setContainerSize(data: {
105
+ width?: number | undefined;
106
+ height?: number | undefined;
107
+ }): void;
108
+ setContainerWidth(data: {
109
+ width?: number | undefined;
110
+ }): void;
111
+ setContainerGap(data: {
112
+ size: number;
113
+ }): void;
114
+ setOverflowTargetSize(data: {
115
+ width: number;
116
+ height: number;
117
+ }): void;
118
+ setOverflowTargetWidth(data: {
119
+ width: number;
120
+ }): void;
121
+ addItemWidth(data: {
122
+ id: string;
123
+ width: number;
124
+ }): void;
125
+ addItemSize(data: {
126
+ id: string;
127
+ width: number;
128
+ height: number;
129
+ }): void;
130
+ removeItemSize(data: {
131
+ id: string;
132
+ }): void;
133
+ removeItemWidth(data: {
134
+ id: string;
135
+ }): void;
136
+ addHiddenKey(data: {
137
+ id: string;
138
+ }): void;
139
+ removeHiddenKey(data: {
140
+ id: string;
141
+ }): void;
142
+ selectAll(): void;
143
+ unselectAll(): void;
144
+ setSelectedIds(ids: string[] | "all"): void;
145
+ remove(data: {
146
+ id: string;
147
+ nextId?: string | undefined;
148
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
149
+ }): void;
150
+ goTo(data: {
151
+ id: string;
152
+ }): void;
153
+ goToNext(): void;
154
+ goToPrevious(): void;
155
+ goToPreviousRow(): void;
156
+ goToNextRow(): void;
157
+ goToFirst(): void;
158
+ goToLast(): void;
159
+ goToFirstOfRow(): void;
160
+ goToLastOfRow(): void;
161
+ goToNextPage(): void;
162
+ goToPreviousPage(): void;
163
+ registerItem(data: {
164
+ id: string;
165
+ textValue: string;
166
+ }): void;
167
+ unregisterItem(data: {
168
+ id: string;
169
+ }): void;
170
+ updateItemHeight(data: {
171
+ value: number;
172
+ }): void;
173
+ };
174
+ menu: {
175
+ state: {
176
+ stackRef: React.RefObject<HTMLDivElement>;
177
+ targetRef: React.RefObject<HTMLButtonElement>;
178
+ initialFocusRef: React.RefObject<any> | undefined;
179
+ returnFocusRef: React.RefObject<any> | undefined;
180
+ placement: import("@popperjs/core").Placement;
181
+ id: string;
182
+ visibility: "hidden" | "visible";
183
+ selectedIds: string[] | "all";
184
+ unselectedIds: string[];
185
+ cursorId: string | string[];
186
+ columnCount: number;
187
+ pageSizeRef: React.MutableRefObject<number>;
188
+ cursorIndexRef: {
189
+ readonly current: number;
190
+ };
191
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
192
+ UNSTABLE_defaultItemHeight: number;
193
+ containerRef: React.RefObject<HTMLDivElement>;
194
+ orientation: "horizontal" | "vertical";
195
+ indexRef: React.MutableRefObject<number>;
196
+ nonInteractiveIds: string[];
197
+ isVirtualized: boolean;
198
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
199
+ mode: "multiple" | "single";
200
+ };
201
+ events: {
202
+ updatePlacement(data: {
203
+ placement: import("@popperjs/core").Placement;
204
+ }): void;
205
+ show(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
206
+ hide(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
207
+ select(data: {
208
+ id: string;
209
+ }): void;
210
+ selectAll(): void;
211
+ unselectAll(): void;
212
+ setSelectedIds(ids: string[] | "all"): void;
213
+ remove(data: {
214
+ id: string;
215
+ nextId?: string | undefined;
216
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
217
+ }): void;
218
+ goTo(data: {
219
+ id: string;
220
+ }): void;
221
+ goToNext(): void;
222
+ goToPrevious(): void;
223
+ goToPreviousRow(): void;
224
+ goToNextRow(): void;
225
+ goToFirst(): void;
226
+ goToLast(): void;
227
+ goToFirstOfRow(): void;
228
+ goToLastOfRow(): void;
229
+ goToNextPage(): void;
230
+ goToPreviousPage(): void;
231
+ registerItem(data: {
232
+ id: string;
233
+ textValue: string;
234
+ }): void;
235
+ unregisterItem(data: {
236
+ id: string;
237
+ }): void;
238
+ updateItemHeight(data: {
239
+ value: number;
240
+ }): void;
241
+ };
242
+ UNSTABLE_parentModel: {
243
+ state: {
244
+ selectedIds: string[] | "all";
245
+ unselectedIds: string[];
246
+ cursorId: string | string[];
247
+ columnCount: number;
248
+ pageSizeRef: React.MutableRefObject<number>;
249
+ cursorIndexRef: {
250
+ readonly current: number;
251
+ };
252
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
253
+ UNSTABLE_defaultItemHeight: number;
254
+ containerRef: React.RefObject<HTMLDivElement>;
255
+ id: string;
256
+ orientation: "horizontal" | "vertical";
257
+ indexRef: React.MutableRefObject<number>;
258
+ nonInteractiveIds: string[];
259
+ isVirtualized: boolean;
260
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
261
+ };
262
+ events: {
263
+ select(data: {
264
+ id: string;
265
+ }): void;
266
+ selectAll(): void;
267
+ unselectAll(): void;
268
+ setSelectedIds(ids: string[] | "all"): void;
269
+ remove(data: {
270
+ id: string;
271
+ nextId?: string | undefined;
272
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
273
+ }): void;
274
+ goTo(data: {
275
+ id: string;
276
+ }): void;
277
+ goToNext(): void;
278
+ goToPrevious(): void;
279
+ goToPreviousRow(): void;
280
+ goToNextRow(): void;
281
+ goToFirst(): void;
282
+ goToLast(): void;
283
+ goToFirstOfRow(): void;
284
+ goToLastOfRow(): void;
285
+ goToNextPage(): void;
286
+ goToPreviousPage(): void;
287
+ registerItem(data: {
288
+ id: string;
289
+ textValue: string;
290
+ }): void;
291
+ unregisterItem(data: {
292
+ id: string;
293
+ }): void;
294
+ updateItemHeight(data: {
295
+ value: number;
296
+ }): void;
297
+ };
298
+ selection: import("@workday/canvas-kit-react/collection").SelectionManager;
299
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
300
+ getId: (item: any) => string;
301
+ getTextValue: (item: any) => string;
302
+ UNSTABLE_parentModel: {
303
+ state: {
304
+ selectedIds: string[] | "all";
305
+ unselectedIds: string[];
306
+ cursorId: string | string[];
307
+ columnCount: number;
308
+ pageSizeRef: React.MutableRefObject<number>;
309
+ cursorIndexRef: {
310
+ readonly current: number;
311
+ };
312
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
313
+ UNSTABLE_defaultItemHeight: number;
314
+ containerRef: React.RefObject<HTMLDivElement>;
315
+ id: string;
316
+ orientation: "horizontal" | "vertical";
317
+ indexRef: React.MutableRefObject<number>;
318
+ nonInteractiveIds: string[];
319
+ isVirtualized: boolean;
320
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
321
+ };
322
+ events: {
323
+ select(data: {
324
+ id: string;
325
+ }): void;
326
+ selectAll(): void;
327
+ unselectAll(): void;
328
+ setSelectedIds(ids: string[] | "all"): void;
329
+ remove(data: {
330
+ id: string;
331
+ nextId?: string | undefined;
332
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
333
+ }): void;
334
+ goTo(data: {
335
+ id: string;
336
+ }): void;
337
+ goToNext(): void;
338
+ goToPrevious(): void;
339
+ goToPreviousRow(): void;
340
+ goToNextRow(): void;
341
+ goToFirst(): void;
342
+ goToLast(): void;
343
+ goToFirstOfRow(): void;
344
+ goToLastOfRow(): void;
345
+ goToNextPage(): void;
346
+ goToPreviousPage(): void;
347
+ registerItem(data: {
348
+ id: string;
349
+ textValue: string;
350
+ }): void;
351
+ unregisterItem(data: {
352
+ id: string;
353
+ }): void;
354
+ updateItemHeight(data: {
355
+ value: number;
356
+ }): void;
357
+ };
358
+ selection: import("@workday/canvas-kit-react/collection").SelectionManager;
359
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
360
+ getId: (item: any) => string;
361
+ getTextValue: (item: any) => string;
362
+ } | undefined;
363
+ };
364
+ selection: import("@workday/canvas-kit-react/collection").SelectionManager;
365
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
366
+ getId: (item: any) => string;
367
+ getTextValue: (item: any) => string;
368
+ };
369
+ selection: import("@workday/canvas-kit-react/collection").SelectionManager;
370
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
371
+ getId: (item: any) => string;
372
+ getTextValue: (item: any) => string;
373
+ }, import("@workday/canvas-kit-react/common").RemoveNulls<import("@workday/canvas-kit-react/common").MergeProps<{
374
+ readonly type: "button";
375
+ readonly role: "tab";
376
+ readonly 'aria-selected': boolean;
377
+ readonly 'aria-controls': string;
378
+ }, import("@workday/canvas-kit-react/common").MergeProps<{
379
+ readonly onClick: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void; /**
380
+ * Optionally pass index to tab item. This should be done if `Tabs.Item` components were created
381
+ * via a `Array::map` function. This index will ensure keyboard navigation works even if items are
382
+ * inserted out of order.
383
+ */
384
+ }, import("@workday/canvas-kit-react/common").MergeProps<{
385
+ readonly ref: (instance: HTMLElement | null) => void;
386
+ readonly 'aria-hidden': true | undefined;
387
+ readonly style: {};
388
+ readonly inert: boolean | "" | undefined;
389
+ }, import("@workday/canvas-kit-react/common").MergeProps<{
390
+ readonly onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
391
+ readonly onClick: () => void;
392
+ readonly 'data-focus-id': string;
393
+ readonly tabIndex: 0 | -1;
394
+ }, import("@workday/canvas-kit-react/common").MergeProps<{
395
+ readonly ref: (instance: Element | null | undefined) => void;
396
+ readonly 'data-id': string;
397
+ readonly disabled: true | undefined;
398
+ readonly 'aria-setsize': number | undefined;
399
+ readonly 'aria-posinset': number | undefined;
400
+ readonly 'data-index': number | undefined;
401
+ readonly style: React.CSSProperties;
402
+ readonly id: string;
403
+ }, import("@workday/canvas-kit-react/common").MergeProps<{}, {}>>>>>>>>;
404
+ export declare const TabsItem: import("@workday/canvas-kit-react/common").ElementComponentM<"button", TabsItemProps, {
405
+ state: {
406
+ getId: (item: any) => string;
407
+ orientation: import("@workday/canvas-kit-react/collection").Orientation;
408
+ panels: import("@workday/canvas-kit-react/collection").Item<any>[];
409
+ panelIndexRef: React.MutableRefObject<number>;
410
+ variant: "filled" | "outlined";
411
+ hiddenIds: string[];
412
+ itemSizeCache: Record<string, number>;
413
+ itemWidthCache: Record<string, number>;
414
+ containerSize: number;
415
+ containerWidth: number;
416
+ containerGap: number;
417
+ overflowTargetWidth: number;
418
+ selectedIds: string[] | "all";
419
+ unselectedIds: string[];
420
+ cursorId: string | string[];
421
+ columnCount: number;
422
+ pageSizeRef: React.MutableRefObject<number>;
423
+ cursorIndexRef: {
424
+ readonly current: number;
425
+ };
426
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
427
+ UNSTABLE_defaultItemHeight: number;
428
+ containerRef: React.RefObject<HTMLDivElement>;
429
+ id: string;
430
+ indexRef: React.MutableRefObject<number>;
431
+ nonInteractiveIds: string[];
432
+ isVirtualized: boolean;
433
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
434
+ };
435
+ events: {
436
+ registerPanel: (data: {
437
+ id: string;
438
+ textValue: string;
439
+ }) => void;
440
+ unregisterPanel: (data: {
441
+ id: string;
442
+ }) => void;
443
+ select(data: {
444
+ id: string;
445
+ }): void;
446
+ setContainerSize(data: {
447
+ width?: number | undefined;
448
+ height?: number | undefined;
449
+ }): void;
450
+ setContainerWidth(data: {
451
+ width?: number | undefined;
452
+ }): void;
453
+ setContainerGap(data: {
454
+ size: number;
455
+ }): void;
456
+ setOverflowTargetSize(data: {
457
+ width: number;
458
+ height: number;
459
+ }): void;
460
+ setOverflowTargetWidth(data: {
461
+ width: number;
462
+ }): void;
463
+ addItemWidth(data: {
464
+ id: string;
465
+ width: number;
466
+ }): void;
467
+ addItemSize(data: {
468
+ id: string;
469
+ width: number;
470
+ height: number;
471
+ }): void;
472
+ removeItemSize(data: {
473
+ id: string;
474
+ }): void;
475
+ removeItemWidth(data: {
476
+ id: string;
477
+ }): void;
478
+ addHiddenKey(data: {
479
+ id: string;
480
+ }): void;
481
+ removeHiddenKey(data: {
482
+ id: string;
483
+ }): void;
484
+ selectAll(): void;
485
+ unselectAll(): void;
486
+ setSelectedIds(ids: string[] | "all"): void;
487
+ remove(data: {
488
+ id: string;
489
+ nextId?: string | undefined;
490
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
491
+ }): void;
492
+ goTo(data: {
493
+ id: string;
494
+ }): void;
495
+ goToNext(): void;
496
+ goToPrevious(): void;
497
+ goToPreviousRow(): void;
498
+ goToNextRow(): void;
499
+ goToFirst(): void;
500
+ goToLast(): void;
501
+ goToFirstOfRow(): void;
502
+ goToLastOfRow(): void;
503
+ goToNextPage(): void;
504
+ goToPreviousPage(): void;
505
+ registerItem(data: {
506
+ id: string;
507
+ textValue: string;
508
+ }): void;
509
+ unregisterItem(data: {
510
+ id: string;
511
+ }): void;
512
+ updateItemHeight(data: {
513
+ value: number;
514
+ }): void;
515
+ };
516
+ menu: {
517
+ state: {
518
+ stackRef: React.RefObject<HTMLDivElement>;
519
+ targetRef: React.RefObject<HTMLButtonElement>;
520
+ initialFocusRef: React.RefObject<any> | undefined;
521
+ returnFocusRef: React.RefObject<any> | undefined;
522
+ placement: import("@popperjs/core").Placement;
523
+ id: string;
524
+ visibility: "hidden" | "visible";
525
+ selectedIds: string[] | "all";
526
+ unselectedIds: string[];
527
+ cursorId: string | string[];
528
+ columnCount: number;
529
+ pageSizeRef: React.MutableRefObject<number>;
530
+ cursorIndexRef: {
531
+ readonly current: number;
532
+ };
533
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
534
+ UNSTABLE_defaultItemHeight: number;
535
+ containerRef: React.RefObject<HTMLDivElement>;
536
+ orientation: "horizontal" | "vertical";
537
+ indexRef: React.MutableRefObject<number>;
538
+ nonInteractiveIds: string[];
539
+ isVirtualized: boolean;
540
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
541
+ mode: "multiple" | "single";
542
+ };
543
+ events: {
544
+ updatePlacement(data: {
545
+ placement: import("@popperjs/core").Placement;
546
+ }): void;
547
+ show(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
548
+ hide(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
549
+ select(data: {
550
+ id: string;
551
+ }): void;
552
+ selectAll(): void;
553
+ unselectAll(): void;
554
+ setSelectedIds(ids: string[] | "all"): void;
555
+ remove(data: {
556
+ id: string;
557
+ nextId?: string | undefined;
558
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
559
+ }): void;
560
+ goTo(data: {
561
+ id: string;
562
+ }): void;
563
+ goToNext(): void;
564
+ goToPrevious(): void;
565
+ goToPreviousRow(): void;
566
+ goToNextRow(): void;
567
+ goToFirst(): void;
568
+ goToLast(): void;
569
+ goToFirstOfRow(): void;
570
+ goToLastOfRow(): void;
571
+ goToNextPage(): void;
572
+ goToPreviousPage(): void;
573
+ registerItem(data: {
574
+ id: string;
575
+ textValue: string;
576
+ }): void;
577
+ unregisterItem(data: {
578
+ id: string;
579
+ }): void;
580
+ updateItemHeight(data: {
581
+ value: number;
582
+ }): void;
583
+ };
584
+ UNSTABLE_parentModel: {
585
+ state: {
586
+ selectedIds: string[] | "all";
587
+ unselectedIds: string[];
588
+ cursorId: string | string[];
589
+ columnCount: number;
590
+ pageSizeRef: React.MutableRefObject<number>;
591
+ cursorIndexRef: {
592
+ readonly current: number;
593
+ };
594
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
595
+ UNSTABLE_defaultItemHeight: number;
596
+ containerRef: React.RefObject<HTMLDivElement>;
597
+ id: string;
598
+ orientation: "horizontal" | "vertical";
599
+ indexRef: React.MutableRefObject<number>;
600
+ nonInteractiveIds: string[];
601
+ isVirtualized: boolean;
602
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
603
+ };
604
+ events: {
605
+ select(data: {
606
+ id: string;
607
+ }): void;
608
+ selectAll(): void;
609
+ unselectAll(): void;
610
+ setSelectedIds(ids: string[] | "all"): void;
611
+ remove(data: {
612
+ id: string;
613
+ nextId?: string | undefined;
614
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
615
+ }): void;
616
+ goTo(data: {
617
+ id: string;
618
+ }): void;
619
+ goToNext(): void;
620
+ goToPrevious(): void;
621
+ goToPreviousRow(): void;
622
+ goToNextRow(): void;
623
+ goToFirst(): void;
624
+ goToLast(): void;
625
+ goToFirstOfRow(): void;
626
+ goToLastOfRow(): void;
627
+ goToNextPage(): void;
628
+ goToPreviousPage(): void;
629
+ registerItem(data: {
630
+ id: string;
631
+ textValue: string;
632
+ }): void;
633
+ unregisterItem(data: {
634
+ id: string;
635
+ }): void;
636
+ updateItemHeight(data: {
637
+ value: number;
638
+ }): void;
639
+ };
640
+ selection: import("@workday/canvas-kit-react/collection").SelectionManager;
641
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
642
+ getId: (item: any) => string;
643
+ getTextValue: (item: any) => string;
644
+ UNSTABLE_parentModel: {
645
+ state: {
646
+ selectedIds: string[] | "all";
647
+ unselectedIds: string[];
648
+ cursorId: string | string[];
649
+ columnCount: number;
650
+ pageSizeRef: React.MutableRefObject<number>;
651
+ cursorIndexRef: {
652
+ readonly current: number;
653
+ };
654
+ UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
655
+ UNSTABLE_defaultItemHeight: number;
656
+ containerRef: React.RefObject<HTMLDivElement>;
657
+ id: string;
658
+ orientation: "horizontal" | "vertical";
659
+ indexRef: React.MutableRefObject<number>;
660
+ nonInteractiveIds: string[];
661
+ isVirtualized: boolean;
662
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
663
+ };
664
+ events: {
665
+ select(data: {
666
+ id: string;
667
+ }): void;
668
+ selectAll(): void;
669
+ unselectAll(): void;
670
+ setSelectedIds(ids: string[] | "all"): void;
671
+ remove(data: {
672
+ id: string;
673
+ nextId?: string | undefined;
674
+ event?: Event | React.SyntheticEvent<Element, Event> | undefined;
675
+ }): void;
676
+ goTo(data: {
677
+ id: string;
678
+ }): void;
679
+ goToNext(): void;
680
+ goToPrevious(): void;
681
+ goToPreviousRow(): void;
682
+ goToNextRow(): void;
683
+ goToFirst(): void;
684
+ goToLast(): void;
685
+ goToFirstOfRow(): void;
686
+ goToLastOfRow(): void;
687
+ goToNextPage(): void;
688
+ goToPreviousPage(): void;
689
+ registerItem(data: {
690
+ id: string;
691
+ textValue: string;
692
+ }): void;
693
+ unregisterItem(data: {
694
+ id: string;
695
+ }): void;
696
+ updateItemHeight(data: {
697
+ value: number;
698
+ }): void;
699
+ };
700
+ selection: import("@workday/canvas-kit-react/collection").SelectionManager;
701
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
702
+ getId: (item: any) => string;
703
+ getTextValue: (item: any) => string;
704
+ } | undefined;
705
+ };
706
+ selection: import("@workday/canvas-kit-react/collection").SelectionManager;
707
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
708
+ getId: (item: any) => string;
709
+ getTextValue: (item: any) => string;
710
+ };
711
+ selection: import("@workday/canvas-kit-react/collection").SelectionManager;
712
+ navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
713
+ getId: (item: any) => string;
714
+ getTextValue: (item: any) => string;
715
+ }> & {
716
+ Icon: import("@workday/canvas-kit-react/common").ElementComponent<"span", import("@workday/canvas-kit-react/icon").SystemIconProps>;
717
+ Text: import("@workday/canvas-kit-react/common").ElementComponent<"span", import("@workday/canvas-kit-react/common").EllipsisTextProps>;
718
+ };
719
+ //# sourceMappingURL=TabsItem.d.ts.map