@workday/canvas-kit-preview-react 15.0.0-alpha.0008-next.0 → 15.0.0-alpha.0023-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 (109) hide show
  1. package/dist/commonjs/avatar/lib/Avatar.js +13 -13
  2. package/dist/commonjs/avatar/lib/AvatarImage.js +1 -1
  3. package/dist/commonjs/avatar/lib/AvatarName.js +1 -1
  4. package/dist/commonjs/avatar/lib/BaseAvatar.js +12 -12
  5. package/dist/commonjs/color-picker/lib/ColorPicker.js +1 -1
  6. package/dist/commonjs/color-picker/lib/parts/ColorReset.js +1 -1
  7. package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +1 -1
  8. package/dist/commonjs/divider/lib/Divider.js +1 -1
  9. package/dist/commonjs/index.d.ts +0 -1
  10. package/dist/commonjs/index.d.ts.map +1 -1
  11. package/dist/commonjs/index.js +0 -1
  12. package/dist/commonjs/information-highlight/lib/InformationHighlight.js +7 -7
  13. package/dist/commonjs/information-highlight/lib/parts/Body.js +1 -1
  14. package/dist/commonjs/information-highlight/lib/parts/Heading.js +1 -1
  15. package/dist/commonjs/information-highlight/lib/parts/Link.js +1 -1
  16. package/dist/commonjs/loading-sparkles/lib/LoadingSparkles.js +2 -2
  17. package/dist/commonjs/multi-select/lib/MultiSelectInput.js +3 -3
  18. package/dist/commonjs/pill/lib/Pill.js +3 -3
  19. package/dist/commonjs/pill/lib/PillAvatar.js +1 -1
  20. package/dist/commonjs/pill/lib/PillCount.js +1 -1
  21. package/dist/commonjs/pill/lib/PillIcon.js +1 -1
  22. package/dist/commonjs/pill/lib/PillIconButton.js +1 -1
  23. package/dist/commonjs/pill/lib/PillLabel.js +1 -1
  24. package/dist/commonjs/radio/lib/RadioGroup.js +3 -3
  25. package/dist/commonjs/radio/lib/RadioLabel.js +1 -1
  26. package/dist/commonjs/radio/lib/RadioText.js +4 -4
  27. package/dist/commonjs/radio/lib/StyledRadioButton.js +5 -5
  28. package/dist/commonjs/side-panel/lib/SidePanel.js +7 -7
  29. package/dist/commonjs/side-panel/lib/SidePanelToggleButton.js +11 -11
  30. package/dist/commonjs/status-indicator/lib/StatusIndicator.js +15 -15
  31. package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.js +1 -1
  32. package/dist/commonjs/version/lib/version.js +1 -1
  33. package/dist/es6/avatar/lib/Avatar.js +13 -13
  34. package/dist/es6/avatar/lib/AvatarImage.js +1 -1
  35. package/dist/es6/avatar/lib/AvatarName.js +1 -1
  36. package/dist/es6/avatar/lib/BaseAvatar.js +12 -12
  37. package/dist/es6/color-picker/lib/ColorPicker.js +1 -1
  38. package/dist/es6/color-picker/lib/parts/ColorReset.js +1 -1
  39. package/dist/es6/color-picker/lib/parts/SwatchBook.js +1 -1
  40. package/dist/es6/divider/lib/Divider.js +1 -1
  41. package/dist/es6/index.d.ts +0 -1
  42. package/dist/es6/index.d.ts.map +1 -1
  43. package/dist/es6/index.js +0 -1
  44. package/dist/es6/information-highlight/lib/InformationHighlight.js +7 -7
  45. package/dist/es6/information-highlight/lib/parts/Body.js +1 -1
  46. package/dist/es6/information-highlight/lib/parts/Heading.js +1 -1
  47. package/dist/es6/information-highlight/lib/parts/Link.js +1 -1
  48. package/dist/es6/loading-sparkles/lib/LoadingSparkles.js +2 -2
  49. package/dist/es6/multi-select/lib/MultiSelectInput.js +3 -3
  50. package/dist/es6/pill/lib/Pill.js +3 -3
  51. package/dist/es6/pill/lib/PillAvatar.js +1 -1
  52. package/dist/es6/pill/lib/PillCount.js +1 -1
  53. package/dist/es6/pill/lib/PillIcon.js +1 -1
  54. package/dist/es6/pill/lib/PillIconButton.js +1 -1
  55. package/dist/es6/pill/lib/PillLabel.js +1 -1
  56. package/dist/es6/radio/lib/RadioGroup.js +3 -3
  57. package/dist/es6/radio/lib/RadioLabel.js +1 -1
  58. package/dist/es6/radio/lib/RadioText.js +4 -4
  59. package/dist/es6/radio/lib/StyledRadioButton.js +5 -5
  60. package/dist/es6/side-panel/lib/SidePanel.js +7 -7
  61. package/dist/es6/side-panel/lib/SidePanelToggleButton.js +11 -11
  62. package/dist/es6/status-indicator/lib/StatusIndicator.js +15 -15
  63. package/dist/es6/status-indicator/lib/StatusIndicatorLabel.js +1 -1
  64. package/dist/es6/version/lib/version.js +1 -1
  65. package/index.ts +0 -1
  66. package/package.json +4 -4
  67. package/dist/commonjs/segmented-control/index.d.ts +0 -5
  68. package/dist/commonjs/segmented-control/index.d.ts.map +0 -1
  69. package/dist/commonjs/segmented-control/index.js +0 -20
  70. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +0 -1324
  71. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts.map +0 -1
  72. package/dist/commonjs/segmented-control/lib/SegmentedControl.js +0 -54
  73. package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts +0 -256
  74. package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts.map +0 -1
  75. package/dist/commonjs/segmented-control/lib/SegmentedControlItem.js +0 -114
  76. package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts +0 -153
  77. package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts.map +0 -1
  78. package/dist/commonjs/segmented-control/lib/SegmentedControlList.js +0 -34
  79. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +0 -140
  80. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +0 -1
  81. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.js +0 -21
  82. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +0 -1336
  83. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +0 -1
  84. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.js +0 -75
  85. package/dist/es6/segmented-control/index.d.ts +0 -5
  86. package/dist/es6/segmented-control/index.d.ts.map +0 -1
  87. package/dist/es6/segmented-control/index.js +0 -4
  88. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts +0 -1324
  89. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts.map +0 -1
  90. package/dist/es6/segmented-control/lib/SegmentedControl.js +0 -51
  91. package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts +0 -256
  92. package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts.map +0 -1
  93. package/dist/es6/segmented-control/lib/SegmentedControlItem.js +0 -88
  94. package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts +0 -153
  95. package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts.map +0 -1
  96. package/dist/es6/segmented-control/lib/SegmentedControlList.js +0 -31
  97. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +0 -140
  98. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +0 -1
  99. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.js +0 -18
  100. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +0 -1336
  101. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +0 -1
  102. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.js +0 -69
  103. package/segmented-control/index.ts +0 -4
  104. package/segmented-control/lib/SegmentedControl.tsx +0 -57
  105. package/segmented-control/lib/SegmentedControlItem.tsx +0 -230
  106. package/segmented-control/lib/SegmentedControlList.tsx +0 -64
  107. package/segmented-control/lib/hooks/useSegmentedControlItem.tsx +0 -33
  108. package/segmented-control/lib/hooks/useSegmentedControlModel.tsx +0 -75
  109. package/segmented-control/package.json +0 -6
@@ -1,1336 +0,0 @@
1
- import React from 'react';
2
- export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (Partial<{
3
- /**
4
- * Optional id for the whole `SegmentedControl` group. If not provided, a unique id will be created.
5
- * @default useUniqueId()
6
- */
7
- id: string;
8
- /**
9
- * An initially selected value. This value must match the `data-id` of the `SegmentedControl.Item` component.
10
- * If not provided, the first value will be selected.
11
- */
12
- initialValue: string;
13
- /**
14
- * Sets disabled state for all segmented control buttons
15
- * @default false
16
- */
17
- disabled: boolean;
18
- /**
19
- * Sets the size of the segmented control container and its buttons. Can be `small`, `medium` or `large`.
20
- * @default 'medium'
21
- */
22
- size: "medium" | "small" | "large";
23
- /**
24
- * The SegmentedControl can rendered in a horizontal or vertical orientation.
25
- * We suggest to use the `vertical` orientation only for icon only variant.
26
- * @default 'horizontal'
27
- */
28
- orientation: import("@workday/canvas-kit-react/collection").Orientation;
29
- initialSelectedIds: import("@workday/canvas-kit-react/collection").SelectedIds;
30
- initialUnselectedIds: string[];
31
- selection: import("@workday/canvas-kit-react/collection").SelectionManager;
32
- initialCursorId: string | string[];
33
- columnCount: number;
34
- navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
35
- pageSize: number;
36
- getId: (item: any) => string;
37
- getTextValue: (item: any) => string;
38
- nonInteractiveIds: string[];
39
- defaultItemHeight: number;
40
- shouldVirtualize: boolean;
41
- items: any[];
42
- UNSTABLE_parentModel: {
43
- state: {
44
- selectedIds: string[] | "all";
45
- unselectedIds: string[];
46
- cursorId: string | string[];
47
- columnCount: number;
48
- pageSizeRef: React.MutableRefObject<number>;
49
- cursorIndexRef: {
50
- readonly current: number;
51
- };
52
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
53
- UNSTABLE_defaultItemHeight: number;
54
- containerRef: React.RefObject<HTMLDivElement>;
55
- id: string;
56
- orientation: "horizontal" | "vertical";
57
- indexRef: React.MutableRefObject<number>;
58
- nonInteractiveIds: string[];
59
- isVirtualized: boolean;
60
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
61
- };
62
- events: {
63
- select(data: {
64
- id: string;
65
- }): void;
66
- selectAll(): void;
67
- unselectAll(): void;
68
- setSelectedIds(ids: string[] | "all"): void;
69
- remove(data: {
70
- id: string;
71
- nextId?: string | undefined;
72
- event?: Event | React.SyntheticEvent<Element, Event> | undefined;
73
- }): void;
74
- goTo(data: {
75
- id: string;
76
- }): void;
77
- goToNext(): void;
78
- goToPrevious(): void;
79
- goToPreviousRow(): void;
80
- goToNextRow(): void;
81
- goToFirst(): void;
82
- goToLast(): void;
83
- goToFirstOfRow(): void;
84
- goToLastOfRow(): void;
85
- goToNextPage(): void;
86
- goToPreviousPage(): void;
87
- registerItem(data: {
88
- id: string;
89
- textValue: string;
90
- }): void;
91
- unregisterItem(data: {
92
- id: string;
93
- }): void;
94
- updateItemHeight(data: {
95
- value: number;
96
- }): void;
97
- };
98
- selection: import("@workday/canvas-kit-react/collection").SelectionManager;
99
- navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
100
- getId: (item: any) => string;
101
- getTextValue: (item: any) => string;
102
- } | undefined;
103
- }> & {
104
- onSelect?: ((data: {
105
- id: string;
106
- }, prevState: {
107
- disabled: boolean;
108
- size: "medium" | "small" | "large";
109
- selectedIds: string[] | "all";
110
- unselectedIds: string[];
111
- cursorId: string | string[];
112
- columnCount: number;
113
- pageSizeRef: React.MutableRefObject<number>;
114
- cursorIndexRef: {
115
- readonly current: number;
116
- };
117
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
118
- UNSTABLE_defaultItemHeight: number;
119
- containerRef: React.RefObject<HTMLDivElement>;
120
- id: string;
121
- orientation: "horizontal" | "vertical";
122
- indexRef: React.MutableRefObject<number>;
123
- nonInteractiveIds: string[];
124
- isVirtualized: boolean;
125
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
126
- }) => void) | undefined;
127
- onSelectAll?: ((data: undefined, prevState: {
128
- disabled: boolean;
129
- size: "medium" | "small" | "large";
130
- selectedIds: string[] | "all";
131
- unselectedIds: string[];
132
- cursorId: string | string[];
133
- columnCount: number;
134
- pageSizeRef: React.MutableRefObject<number>;
135
- cursorIndexRef: {
136
- readonly current: number;
137
- };
138
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
139
- UNSTABLE_defaultItemHeight: number;
140
- containerRef: React.RefObject<HTMLDivElement>;
141
- id: string;
142
- orientation: "horizontal" | "vertical";
143
- indexRef: React.MutableRefObject<number>;
144
- nonInteractiveIds: string[];
145
- isVirtualized: boolean;
146
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
147
- }) => void) | undefined;
148
- onUnselectAll?: ((data: undefined, prevState: {
149
- disabled: boolean;
150
- size: "medium" | "small" | "large";
151
- selectedIds: string[] | "all";
152
- unselectedIds: string[];
153
- cursorId: string | string[];
154
- columnCount: number;
155
- pageSizeRef: React.MutableRefObject<number>;
156
- cursorIndexRef: {
157
- readonly current: number;
158
- };
159
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
160
- UNSTABLE_defaultItemHeight: number;
161
- containerRef: React.RefObject<HTMLDivElement>;
162
- id: string;
163
- orientation: "horizontal" | "vertical";
164
- indexRef: React.MutableRefObject<number>;
165
- nonInteractiveIds: string[];
166
- isVirtualized: boolean;
167
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
168
- }) => void) | undefined;
169
- onSetSelectedIds?: ((data: string[] | "all", prevState: {
170
- disabled: boolean;
171
- size: "medium" | "small" | "large";
172
- selectedIds: string[] | "all";
173
- unselectedIds: string[];
174
- cursorId: string | string[];
175
- columnCount: number;
176
- pageSizeRef: React.MutableRefObject<number>;
177
- cursorIndexRef: {
178
- readonly current: number;
179
- };
180
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
181
- UNSTABLE_defaultItemHeight: number;
182
- containerRef: React.RefObject<HTMLDivElement>;
183
- id: string;
184
- orientation: "horizontal" | "vertical";
185
- indexRef: React.MutableRefObject<number>;
186
- nonInteractiveIds: string[];
187
- isVirtualized: boolean;
188
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
189
- }) => void) | undefined;
190
- onRemove?: ((data: {
191
- id: string;
192
- nextId?: string | undefined;
193
- event?: Event | React.SyntheticEvent<Element, Event> | undefined;
194
- }, prevState: {
195
- disabled: boolean;
196
- size: "medium" | "small" | "large";
197
- selectedIds: string[] | "all";
198
- unselectedIds: string[];
199
- cursorId: string | string[];
200
- columnCount: number;
201
- pageSizeRef: React.MutableRefObject<number>;
202
- cursorIndexRef: {
203
- readonly current: number;
204
- };
205
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
206
- UNSTABLE_defaultItemHeight: number;
207
- containerRef: React.RefObject<HTMLDivElement>;
208
- id: string;
209
- orientation: "horizontal" | "vertical";
210
- indexRef: React.MutableRefObject<number>;
211
- nonInteractiveIds: string[];
212
- isVirtualized: boolean;
213
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
214
- }) => void) | undefined;
215
- onGoTo?: ((data: {
216
- id: string;
217
- }, prevState: {
218
- disabled: boolean;
219
- size: "medium" | "small" | "large";
220
- selectedIds: string[] | "all";
221
- unselectedIds: string[];
222
- cursorId: string | string[];
223
- columnCount: number;
224
- pageSizeRef: React.MutableRefObject<number>;
225
- cursorIndexRef: {
226
- readonly current: number;
227
- };
228
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
229
- UNSTABLE_defaultItemHeight: number;
230
- containerRef: React.RefObject<HTMLDivElement>;
231
- id: string;
232
- orientation: "horizontal" | "vertical";
233
- indexRef: React.MutableRefObject<number>;
234
- nonInteractiveIds: string[];
235
- isVirtualized: boolean;
236
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
237
- }) => void) | undefined;
238
- onGoToNext?: ((data: undefined, prevState: {
239
- disabled: boolean;
240
- size: "medium" | "small" | "large";
241
- selectedIds: string[] | "all";
242
- unselectedIds: string[];
243
- cursorId: string | string[];
244
- columnCount: number;
245
- pageSizeRef: React.MutableRefObject<number>;
246
- cursorIndexRef: {
247
- readonly current: number;
248
- };
249
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
250
- UNSTABLE_defaultItemHeight: number;
251
- containerRef: React.RefObject<HTMLDivElement>;
252
- id: string;
253
- orientation: "horizontal" | "vertical";
254
- indexRef: React.MutableRefObject<number>;
255
- nonInteractiveIds: string[];
256
- isVirtualized: boolean;
257
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
258
- }) => void) | undefined;
259
- onGoToPrevious?: ((data: undefined, prevState: {
260
- disabled: boolean;
261
- size: "medium" | "small" | "large";
262
- selectedIds: string[] | "all";
263
- unselectedIds: string[];
264
- cursorId: string | string[];
265
- columnCount: number;
266
- pageSizeRef: React.MutableRefObject<number>;
267
- cursorIndexRef: {
268
- readonly current: number;
269
- };
270
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
271
- UNSTABLE_defaultItemHeight: number;
272
- containerRef: React.RefObject<HTMLDivElement>;
273
- id: string;
274
- orientation: "horizontal" | "vertical";
275
- indexRef: React.MutableRefObject<number>;
276
- nonInteractiveIds: string[];
277
- isVirtualized: boolean;
278
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
279
- }) => void) | undefined;
280
- onGoToPreviousRow?: ((data: undefined, prevState: {
281
- disabled: boolean;
282
- size: "medium" | "small" | "large";
283
- selectedIds: string[] | "all";
284
- unselectedIds: string[];
285
- cursorId: string | string[];
286
- columnCount: number;
287
- pageSizeRef: React.MutableRefObject<number>;
288
- cursorIndexRef: {
289
- readonly current: number;
290
- };
291
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
292
- UNSTABLE_defaultItemHeight: number;
293
- containerRef: React.RefObject<HTMLDivElement>;
294
- id: string;
295
- orientation: "horizontal" | "vertical";
296
- indexRef: React.MutableRefObject<number>;
297
- nonInteractiveIds: string[];
298
- isVirtualized: boolean;
299
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
300
- }) => void) | undefined;
301
- onGoToNextRow?: ((data: undefined, prevState: {
302
- disabled: boolean;
303
- size: "medium" | "small" | "large";
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
- }) => void) | undefined;
322
- onGoToFirst?: ((data: undefined, prevState: {
323
- disabled: boolean;
324
- size: "medium" | "small" | "large";
325
- selectedIds: string[] | "all";
326
- unselectedIds: string[];
327
- cursorId: string | string[];
328
- columnCount: number;
329
- pageSizeRef: React.MutableRefObject<number>;
330
- cursorIndexRef: {
331
- readonly current: number;
332
- };
333
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
334
- UNSTABLE_defaultItemHeight: number;
335
- containerRef: React.RefObject<HTMLDivElement>;
336
- id: string;
337
- orientation: "horizontal" | "vertical";
338
- indexRef: React.MutableRefObject<number>;
339
- nonInteractiveIds: string[];
340
- isVirtualized: boolean;
341
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
342
- }) => void) | undefined;
343
- onGoToLast?: ((data: undefined, prevState: {
344
- disabled: boolean;
345
- size: "medium" | "small" | "large";
346
- selectedIds: string[] | "all";
347
- unselectedIds: string[];
348
- cursorId: string | string[];
349
- columnCount: number;
350
- pageSizeRef: React.MutableRefObject<number>;
351
- cursorIndexRef: {
352
- readonly current: number;
353
- };
354
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
355
- UNSTABLE_defaultItemHeight: number;
356
- containerRef: React.RefObject<HTMLDivElement>;
357
- id: string;
358
- orientation: "horizontal" | "vertical";
359
- indexRef: React.MutableRefObject<number>;
360
- nonInteractiveIds: string[];
361
- isVirtualized: boolean;
362
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
363
- }) => void) | undefined;
364
- onGoToFirstOfRow?: ((data: undefined, prevState: {
365
- disabled: boolean;
366
- size: "medium" | "small" | "large";
367
- selectedIds: string[] | "all";
368
- unselectedIds: string[];
369
- cursorId: string | string[];
370
- columnCount: number;
371
- pageSizeRef: React.MutableRefObject<number>;
372
- cursorIndexRef: {
373
- readonly current: number;
374
- };
375
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
376
- UNSTABLE_defaultItemHeight: number;
377
- containerRef: React.RefObject<HTMLDivElement>;
378
- id: string;
379
- orientation: "horizontal" | "vertical";
380
- indexRef: React.MutableRefObject<number>;
381
- nonInteractiveIds: string[];
382
- isVirtualized: boolean;
383
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
384
- }) => void) | undefined;
385
- onGoToLastOfRow?: ((data: undefined, prevState: {
386
- disabled: boolean;
387
- size: "medium" | "small" | "large";
388
- selectedIds: string[] | "all";
389
- unselectedIds: string[];
390
- cursorId: string | string[];
391
- columnCount: number;
392
- pageSizeRef: React.MutableRefObject<number>;
393
- cursorIndexRef: {
394
- readonly current: number;
395
- };
396
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
397
- UNSTABLE_defaultItemHeight: number;
398
- containerRef: React.RefObject<HTMLDivElement>;
399
- id: string;
400
- orientation: "horizontal" | "vertical";
401
- indexRef: React.MutableRefObject<number>;
402
- nonInteractiveIds: string[];
403
- isVirtualized: boolean;
404
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
405
- }) => void) | undefined;
406
- onGoToNextPage?: ((data: undefined, prevState: {
407
- disabled: boolean;
408
- size: "medium" | "small" | "large";
409
- selectedIds: string[] | "all";
410
- unselectedIds: string[];
411
- cursorId: string | string[];
412
- columnCount: number;
413
- pageSizeRef: React.MutableRefObject<number>;
414
- cursorIndexRef: {
415
- readonly current: number;
416
- };
417
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
418
- UNSTABLE_defaultItemHeight: number;
419
- containerRef: React.RefObject<HTMLDivElement>;
420
- id: string;
421
- orientation: "horizontal" | "vertical";
422
- indexRef: React.MutableRefObject<number>;
423
- nonInteractiveIds: string[];
424
- isVirtualized: boolean;
425
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
426
- }) => void) | undefined;
427
- onGoToPreviousPage?: ((data: undefined, prevState: {
428
- disabled: boolean;
429
- size: "medium" | "small" | "large";
430
- selectedIds: string[] | "all";
431
- unselectedIds: string[];
432
- cursorId: string | string[];
433
- columnCount: number;
434
- pageSizeRef: React.MutableRefObject<number>;
435
- cursorIndexRef: {
436
- readonly current: number;
437
- };
438
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
439
- UNSTABLE_defaultItemHeight: number;
440
- containerRef: React.RefObject<HTMLDivElement>;
441
- id: string;
442
- orientation: "horizontal" | "vertical";
443
- indexRef: React.MutableRefObject<number>;
444
- nonInteractiveIds: string[];
445
- isVirtualized: boolean;
446
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
447
- }) => void) | undefined;
448
- onRegisterItem?: ((data: {
449
- id: string;
450
- textValue: string;
451
- }, prevState: {
452
- disabled: boolean;
453
- size: "medium" | "small" | "large";
454
- selectedIds: string[] | "all";
455
- unselectedIds: string[];
456
- cursorId: string | string[];
457
- columnCount: number;
458
- pageSizeRef: React.MutableRefObject<number>;
459
- cursorIndexRef: {
460
- readonly current: number;
461
- };
462
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
463
- UNSTABLE_defaultItemHeight: number;
464
- containerRef: React.RefObject<HTMLDivElement>;
465
- id: string;
466
- orientation: "horizontal" | "vertical";
467
- indexRef: React.MutableRefObject<number>;
468
- nonInteractiveIds: string[];
469
- isVirtualized: boolean;
470
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
471
- }) => void) | undefined;
472
- onUnregisterItem?: ((data: {
473
- id: string;
474
- }, prevState: {
475
- disabled: boolean;
476
- size: "medium" | "small" | "large";
477
- selectedIds: string[] | "all";
478
- unselectedIds: string[];
479
- cursorId: string | string[];
480
- columnCount: number;
481
- pageSizeRef: React.MutableRefObject<number>;
482
- cursorIndexRef: {
483
- readonly current: number;
484
- };
485
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
486
- UNSTABLE_defaultItemHeight: number;
487
- containerRef: React.RefObject<HTMLDivElement>;
488
- id: string;
489
- orientation: "horizontal" | "vertical";
490
- indexRef: React.MutableRefObject<number>;
491
- nonInteractiveIds: string[];
492
- isVirtualized: boolean;
493
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
494
- }) => void) | undefined;
495
- onUpdateItemHeight?: ((data: {
496
- value: number;
497
- }, prevState: {
498
- disabled: boolean;
499
- size: "medium" | "small" | "large";
500
- selectedIds: string[] | "all";
501
- unselectedIds: string[];
502
- cursorId: string | string[];
503
- columnCount: number;
504
- pageSizeRef: React.MutableRefObject<number>;
505
- cursorIndexRef: {
506
- readonly current: number;
507
- };
508
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
509
- UNSTABLE_defaultItemHeight: number;
510
- containerRef: React.RefObject<HTMLDivElement>;
511
- id: string;
512
- orientation: "horizontal" | "vertical";
513
- indexRef: React.MutableRefObject<number>;
514
- nonInteractiveIds: string[];
515
- isVirtualized: boolean;
516
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
517
- }) => void) | undefined;
518
- } & {
519
- shouldSelect?: ((data: {
520
- id: string;
521
- }, state: {
522
- disabled: boolean;
523
- size: "medium" | "small" | "large";
524
- selectedIds: string[] | "all";
525
- unselectedIds: string[];
526
- cursorId: string | string[];
527
- columnCount: number;
528
- pageSizeRef: React.MutableRefObject<number>;
529
- cursorIndexRef: {
530
- readonly current: number;
531
- };
532
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
533
- UNSTABLE_defaultItemHeight: number;
534
- containerRef: React.RefObject<HTMLDivElement>;
535
- id: string;
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
- }) => boolean) | undefined;
542
- shouldSelectAll?: ((data: undefined, state: {
543
- disabled: boolean;
544
- size: "medium" | "small" | "large";
545
- selectedIds: string[] | "all";
546
- unselectedIds: string[];
547
- cursorId: string | string[];
548
- columnCount: number;
549
- pageSizeRef: React.MutableRefObject<number>;
550
- cursorIndexRef: {
551
- readonly current: number;
552
- };
553
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
554
- UNSTABLE_defaultItemHeight: number;
555
- containerRef: React.RefObject<HTMLDivElement>;
556
- id: string;
557
- orientation: "horizontal" | "vertical";
558
- indexRef: React.MutableRefObject<number>;
559
- nonInteractiveIds: string[];
560
- isVirtualized: boolean;
561
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
562
- }) => boolean) | undefined;
563
- shouldUnselectAll?: ((data: undefined, state: {
564
- disabled: boolean;
565
- size: "medium" | "small" | "large";
566
- selectedIds: string[] | "all";
567
- unselectedIds: string[];
568
- cursorId: string | string[];
569
- columnCount: number;
570
- pageSizeRef: React.MutableRefObject<number>;
571
- cursorIndexRef: {
572
- readonly current: number;
573
- };
574
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
575
- UNSTABLE_defaultItemHeight: number;
576
- containerRef: React.RefObject<HTMLDivElement>;
577
- id: string;
578
- orientation: "horizontal" | "vertical";
579
- indexRef: React.MutableRefObject<number>;
580
- nonInteractiveIds: string[];
581
- isVirtualized: boolean;
582
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
583
- }) => boolean) | undefined;
584
- shouldSetSelectedIds?: ((data: string[] | "all", state: {
585
- disabled: boolean;
586
- size: "medium" | "small" | "large";
587
- selectedIds: string[] | "all";
588
- unselectedIds: string[];
589
- cursorId: string | string[];
590
- columnCount: number;
591
- pageSizeRef: React.MutableRefObject<number>;
592
- cursorIndexRef: {
593
- readonly current: number;
594
- };
595
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
596
- UNSTABLE_defaultItemHeight: number;
597
- containerRef: React.RefObject<HTMLDivElement>;
598
- id: string;
599
- orientation: "horizontal" | "vertical";
600
- indexRef: React.MutableRefObject<number>;
601
- nonInteractiveIds: string[];
602
- isVirtualized: boolean;
603
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
604
- }) => boolean) | undefined;
605
- shouldRemove?: ((data: {
606
- id: string;
607
- nextId?: string | undefined;
608
- event?: Event | React.SyntheticEvent<Element, Event> | undefined;
609
- }, state: {
610
- disabled: boolean;
611
- size: "medium" | "small" | "large";
612
- selectedIds: string[] | "all";
613
- unselectedIds: string[];
614
- cursorId: string | string[];
615
- columnCount: number;
616
- pageSizeRef: React.MutableRefObject<number>;
617
- cursorIndexRef: {
618
- readonly current: number;
619
- };
620
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
621
- UNSTABLE_defaultItemHeight: number;
622
- containerRef: React.RefObject<HTMLDivElement>;
623
- id: string;
624
- orientation: "horizontal" | "vertical";
625
- indexRef: React.MutableRefObject<number>;
626
- nonInteractiveIds: string[];
627
- isVirtualized: boolean;
628
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
629
- }) => boolean) | undefined;
630
- shouldGoTo?: ((data: {
631
- id: string;
632
- }, state: {
633
- disabled: boolean;
634
- size: "medium" | "small" | "large";
635
- selectedIds: string[] | "all";
636
- unselectedIds: string[];
637
- cursorId: string | string[];
638
- columnCount: number;
639
- pageSizeRef: React.MutableRefObject<number>;
640
- cursorIndexRef: {
641
- readonly current: number;
642
- };
643
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
644
- UNSTABLE_defaultItemHeight: number;
645
- containerRef: React.RefObject<HTMLDivElement>;
646
- id: string;
647
- orientation: "horizontal" | "vertical";
648
- indexRef: React.MutableRefObject<number>;
649
- nonInteractiveIds: string[];
650
- isVirtualized: boolean;
651
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
652
- }) => boolean) | undefined;
653
- shouldGoToNext?: ((data: undefined, state: {
654
- disabled: boolean;
655
- size: "medium" | "small" | "large";
656
- selectedIds: string[] | "all";
657
- unselectedIds: string[];
658
- cursorId: string | string[];
659
- columnCount: number;
660
- pageSizeRef: React.MutableRefObject<number>;
661
- cursorIndexRef: {
662
- readonly current: number;
663
- };
664
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
665
- UNSTABLE_defaultItemHeight: number;
666
- containerRef: React.RefObject<HTMLDivElement>;
667
- id: string;
668
- orientation: "horizontal" | "vertical";
669
- indexRef: React.MutableRefObject<number>;
670
- nonInteractiveIds: string[];
671
- isVirtualized: boolean;
672
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
673
- }) => boolean) | undefined;
674
- shouldGoToPrevious?: ((data: undefined, state: {
675
- disabled: boolean;
676
- size: "medium" | "small" | "large";
677
- selectedIds: string[] | "all";
678
- unselectedIds: string[];
679
- cursorId: string | string[];
680
- columnCount: number;
681
- pageSizeRef: React.MutableRefObject<number>;
682
- cursorIndexRef: {
683
- readonly current: number;
684
- };
685
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
686
- UNSTABLE_defaultItemHeight: number;
687
- containerRef: React.RefObject<HTMLDivElement>;
688
- id: string;
689
- orientation: "horizontal" | "vertical";
690
- indexRef: React.MutableRefObject<number>;
691
- nonInteractiveIds: string[];
692
- isVirtualized: boolean;
693
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
694
- }) => boolean) | undefined;
695
- shouldGoToPreviousRow?: ((data: undefined, state: {
696
- disabled: boolean;
697
- size: "medium" | "small" | "large";
698
- selectedIds: string[] | "all";
699
- unselectedIds: string[];
700
- cursorId: string | string[];
701
- columnCount: number;
702
- pageSizeRef: React.MutableRefObject<number>;
703
- cursorIndexRef: {
704
- readonly current: number;
705
- };
706
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
707
- UNSTABLE_defaultItemHeight: number;
708
- containerRef: React.RefObject<HTMLDivElement>;
709
- id: string;
710
- orientation: "horizontal" | "vertical";
711
- indexRef: React.MutableRefObject<number>;
712
- nonInteractiveIds: string[];
713
- isVirtualized: boolean;
714
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
715
- }) => boolean) | undefined;
716
- shouldGoToNextRow?: ((data: undefined, state: {
717
- disabled: boolean;
718
- size: "medium" | "small" | "large";
719
- selectedIds: string[] | "all";
720
- unselectedIds: string[];
721
- cursorId: string | string[];
722
- columnCount: number;
723
- pageSizeRef: React.MutableRefObject<number>;
724
- cursorIndexRef: {
725
- readonly current: number;
726
- };
727
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
728
- UNSTABLE_defaultItemHeight: number;
729
- containerRef: React.RefObject<HTMLDivElement>;
730
- id: string;
731
- orientation: "horizontal" | "vertical";
732
- indexRef: React.MutableRefObject<number>;
733
- nonInteractiveIds: string[];
734
- isVirtualized: boolean;
735
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
736
- }) => boolean) | undefined;
737
- shouldGoToFirst?: ((data: undefined, state: {
738
- disabled: boolean;
739
- size: "medium" | "small" | "large";
740
- selectedIds: string[] | "all";
741
- unselectedIds: string[];
742
- cursorId: string | string[];
743
- columnCount: number;
744
- pageSizeRef: React.MutableRefObject<number>;
745
- cursorIndexRef: {
746
- readonly current: number;
747
- };
748
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
749
- UNSTABLE_defaultItemHeight: number;
750
- containerRef: React.RefObject<HTMLDivElement>;
751
- id: string;
752
- orientation: "horizontal" | "vertical";
753
- indexRef: React.MutableRefObject<number>;
754
- nonInteractiveIds: string[];
755
- isVirtualized: boolean;
756
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
757
- }) => boolean) | undefined;
758
- shouldGoToLast?: ((data: undefined, state: {
759
- disabled: boolean;
760
- size: "medium" | "small" | "large";
761
- selectedIds: string[] | "all";
762
- unselectedIds: string[];
763
- cursorId: string | string[];
764
- columnCount: number;
765
- pageSizeRef: React.MutableRefObject<number>;
766
- cursorIndexRef: {
767
- readonly current: number;
768
- };
769
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
770
- UNSTABLE_defaultItemHeight: number;
771
- containerRef: React.RefObject<HTMLDivElement>;
772
- id: string;
773
- orientation: "horizontal" | "vertical";
774
- indexRef: React.MutableRefObject<number>;
775
- nonInteractiveIds: string[];
776
- isVirtualized: boolean;
777
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
778
- }) => boolean) | undefined;
779
- shouldGoToFirstOfRow?: ((data: undefined, state: {
780
- disabled: boolean;
781
- size: "medium" | "small" | "large";
782
- selectedIds: string[] | "all";
783
- unselectedIds: string[];
784
- cursorId: string | string[];
785
- columnCount: number;
786
- pageSizeRef: React.MutableRefObject<number>;
787
- cursorIndexRef: {
788
- readonly current: number;
789
- };
790
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
791
- UNSTABLE_defaultItemHeight: number;
792
- containerRef: React.RefObject<HTMLDivElement>;
793
- id: string;
794
- orientation: "horizontal" | "vertical";
795
- indexRef: React.MutableRefObject<number>;
796
- nonInteractiveIds: string[];
797
- isVirtualized: boolean;
798
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
799
- }) => boolean) | undefined;
800
- shouldGoToLastOfRow?: ((data: undefined, state: {
801
- disabled: boolean;
802
- size: "medium" | "small" | "large";
803
- selectedIds: string[] | "all";
804
- unselectedIds: string[];
805
- cursorId: string | string[];
806
- columnCount: number;
807
- pageSizeRef: React.MutableRefObject<number>;
808
- cursorIndexRef: {
809
- readonly current: number;
810
- };
811
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
812
- UNSTABLE_defaultItemHeight: number;
813
- containerRef: React.RefObject<HTMLDivElement>;
814
- id: string;
815
- orientation: "horizontal" | "vertical";
816
- indexRef: React.MutableRefObject<number>;
817
- nonInteractiveIds: string[];
818
- isVirtualized: boolean;
819
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
820
- }) => boolean) | undefined;
821
- shouldGoToNextPage?: ((data: undefined, state: {
822
- disabled: boolean;
823
- size: "medium" | "small" | "large";
824
- selectedIds: string[] | "all";
825
- unselectedIds: string[];
826
- cursorId: string | string[];
827
- columnCount: number;
828
- pageSizeRef: React.MutableRefObject<number>;
829
- cursorIndexRef: {
830
- readonly current: number;
831
- };
832
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
833
- UNSTABLE_defaultItemHeight: number;
834
- containerRef: React.RefObject<HTMLDivElement>;
835
- id: string;
836
- orientation: "horizontal" | "vertical";
837
- indexRef: React.MutableRefObject<number>;
838
- nonInteractiveIds: string[];
839
- isVirtualized: boolean;
840
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
841
- }) => boolean) | undefined;
842
- shouldGoToPreviousPage?: ((data: undefined, state: {
843
- disabled: boolean;
844
- size: "medium" | "small" | "large";
845
- selectedIds: string[] | "all";
846
- unselectedIds: string[];
847
- cursorId: string | string[];
848
- columnCount: number;
849
- pageSizeRef: React.MutableRefObject<number>;
850
- cursorIndexRef: {
851
- readonly current: number;
852
- };
853
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
854
- UNSTABLE_defaultItemHeight: number;
855
- containerRef: React.RefObject<HTMLDivElement>;
856
- id: string;
857
- orientation: "horizontal" | "vertical";
858
- indexRef: React.MutableRefObject<number>;
859
- nonInteractiveIds: string[];
860
- isVirtualized: boolean;
861
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
862
- }) => boolean) | undefined;
863
- shouldRegisterItem?: ((data: {
864
- id: string;
865
- textValue: string;
866
- }, state: {
867
- disabled: boolean;
868
- size: "medium" | "small" | "large";
869
- selectedIds: string[] | "all";
870
- unselectedIds: string[];
871
- cursorId: string | string[];
872
- columnCount: number;
873
- pageSizeRef: React.MutableRefObject<number>;
874
- cursorIndexRef: {
875
- readonly current: number;
876
- };
877
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
878
- UNSTABLE_defaultItemHeight: number;
879
- containerRef: React.RefObject<HTMLDivElement>;
880
- id: string;
881
- orientation: "horizontal" | "vertical";
882
- indexRef: React.MutableRefObject<number>;
883
- nonInteractiveIds: string[];
884
- isVirtualized: boolean;
885
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
886
- }) => boolean) | undefined;
887
- shouldUnregisterItem?: ((data: {
888
- id: string;
889
- }, state: {
890
- disabled: boolean;
891
- size: "medium" | "small" | "large";
892
- selectedIds: string[] | "all";
893
- unselectedIds: string[];
894
- cursorId: string | string[];
895
- columnCount: number;
896
- pageSizeRef: React.MutableRefObject<number>;
897
- cursorIndexRef: {
898
- readonly current: number;
899
- };
900
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
901
- UNSTABLE_defaultItemHeight: number;
902
- containerRef: React.RefObject<HTMLDivElement>;
903
- id: string;
904
- orientation: "horizontal" | "vertical";
905
- indexRef: React.MutableRefObject<number>;
906
- nonInteractiveIds: string[];
907
- isVirtualized: boolean;
908
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
909
- }) => boolean) | undefined;
910
- shouldUpdateItemHeight?: ((data: {
911
- value: number;
912
- }, state: {
913
- disabled: boolean;
914
- size: "medium" | "small" | "large";
915
- selectedIds: string[] | "all";
916
- unselectedIds: string[];
917
- cursorId: string | string[];
918
- columnCount: number;
919
- pageSizeRef: React.MutableRefObject<number>;
920
- cursorIndexRef: {
921
- readonly current: number;
922
- };
923
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
924
- UNSTABLE_defaultItemHeight: number;
925
- containerRef: React.RefObject<HTMLDivElement>;
926
- id: string;
927
- orientation: "horizontal" | "vertical";
928
- indexRef: React.MutableRefObject<number>;
929
- nonInteractiveIds: string[];
930
- isVirtualized: boolean;
931
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
932
- }) => boolean) | undefined;
933
- }) | undefined) => {
934
- state: {
935
- disabled: boolean;
936
- size: "medium" | "small" | "large";
937
- selectedIds: string[] | "all";
938
- unselectedIds: string[];
939
- cursorId: string | string[];
940
- columnCount: number;
941
- pageSizeRef: React.MutableRefObject<number>;
942
- cursorIndexRef: {
943
- readonly current: number;
944
- };
945
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
946
- UNSTABLE_defaultItemHeight: number;
947
- containerRef: React.RefObject<HTMLDivElement>;
948
- id: string;
949
- orientation: "horizontal" | "vertical";
950
- indexRef: React.MutableRefObject<number>;
951
- nonInteractiveIds: string[];
952
- isVirtualized: boolean;
953
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
954
- };
955
- events: {
956
- select(data: {
957
- id: string;
958
- }): void;
959
- selectAll(): void;
960
- unselectAll(): void;
961
- setSelectedIds(ids: string[] | "all"): void;
962
- remove(data: {
963
- id: string;
964
- nextId?: string | undefined;
965
- event?: Event | React.SyntheticEvent<Element, Event> | undefined;
966
- }): void;
967
- goTo(data: {
968
- id: string;
969
- }): void;
970
- goToNext(): void;
971
- goToPrevious(): void;
972
- goToPreviousRow(): void;
973
- goToNextRow(): void;
974
- goToFirst(): void;
975
- goToLast(): void;
976
- goToFirstOfRow(): void;
977
- goToLastOfRow(): void;
978
- goToNextPage(): void;
979
- goToPreviousPage(): void;
980
- registerItem(data: {
981
- id: string;
982
- textValue: string;
983
- }): void;
984
- unregisterItem(data: {
985
- id: string;
986
- }): void;
987
- updateItemHeight(data: {
988
- value: number;
989
- }): void;
990
- };
991
- selection: import("@workday/canvas-kit-react/collection").SelectionManager;
992
- navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
993
- getId: (item: any) => string;
994
- getTextValue: (item: any) => string;
995
- UNSTABLE_parentModel: {
996
- state: {
997
- selectedIds: string[] | "all";
998
- unselectedIds: string[];
999
- cursorId: string | string[];
1000
- columnCount: number;
1001
- pageSizeRef: React.MutableRefObject<number>;
1002
- cursorIndexRef: {
1003
- readonly current: number;
1004
- };
1005
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1006
- UNSTABLE_defaultItemHeight: number;
1007
- containerRef: React.RefObject<HTMLDivElement>;
1008
- id: string;
1009
- orientation: "horizontal" | "vertical";
1010
- indexRef: React.MutableRefObject<number>;
1011
- nonInteractiveIds: string[];
1012
- isVirtualized: boolean;
1013
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
1014
- };
1015
- events: {
1016
- select(data: {
1017
- id: string;
1018
- }): void;
1019
- selectAll(): void;
1020
- unselectAll(): void;
1021
- setSelectedIds(ids: string[] | "all"): void;
1022
- remove(data: {
1023
- id: string;
1024
- nextId?: string | undefined;
1025
- event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1026
- }): void;
1027
- goTo(data: {
1028
- id: string;
1029
- }): void;
1030
- goToNext(): void;
1031
- goToPrevious(): void;
1032
- goToPreviousRow(): void;
1033
- goToNextRow(): void;
1034
- goToFirst(): void;
1035
- goToLast(): void;
1036
- goToFirstOfRow(): void;
1037
- goToLastOfRow(): void;
1038
- goToNextPage(): void;
1039
- goToPreviousPage(): void;
1040
- registerItem(data: {
1041
- id: string;
1042
- textValue: string;
1043
- }): void;
1044
- unregisterItem(data: {
1045
- id: string;
1046
- }): void;
1047
- updateItemHeight(data: {
1048
- value: number;
1049
- }): void;
1050
- };
1051
- selection: import("@workday/canvas-kit-react/collection").SelectionManager;
1052
- navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
1053
- getId: (item: any) => string;
1054
- getTextValue: (item: any) => string;
1055
- } | undefined;
1056
- }) & import("@workday/canvas-kit-react/common").ModelExtras<{
1057
- /**
1058
- * Optional id for the whole `SegmentedControl` group. If not provided, a unique id will be created.
1059
- * @default useUniqueId()
1060
- */
1061
- id: string;
1062
- /**
1063
- * An initially selected value. This value must match the `data-id` of the `SegmentedControl.Item` component.
1064
- * If not provided, the first value will be selected.
1065
- */
1066
- initialValue: string;
1067
- /**
1068
- * Sets disabled state for all segmented control buttons
1069
- * @default false
1070
- */
1071
- disabled: boolean;
1072
- /**
1073
- * Sets the size of the segmented control container and its buttons. Can be `small`, `medium` or `large`.
1074
- * @default 'medium'
1075
- */
1076
- size: "medium" | "small" | "large";
1077
- /**
1078
- * The SegmentedControl can rendered in a horizontal or vertical orientation.
1079
- * We suggest to use the `vertical` orientation only for icon only variant.
1080
- * @default 'horizontal'
1081
- */
1082
- orientation: import("@workday/canvas-kit-react/collection").Orientation;
1083
- initialSelectedIds: import("@workday/canvas-kit-react/collection").SelectedIds;
1084
- initialUnselectedIds: string[];
1085
- selection: import("@workday/canvas-kit-react/collection").SelectionManager;
1086
- initialCursorId: string | string[];
1087
- columnCount: number;
1088
- navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
1089
- pageSize: number;
1090
- getId: (item: any) => string;
1091
- getTextValue: (item: any) => string;
1092
- nonInteractiveIds: string[];
1093
- defaultItemHeight: number;
1094
- shouldVirtualize: boolean;
1095
- items: any[];
1096
- UNSTABLE_parentModel: {
1097
- state: {
1098
- selectedIds: string[] | "all";
1099
- unselectedIds: string[];
1100
- cursorId: string | string[];
1101
- columnCount: number;
1102
- pageSizeRef: React.MutableRefObject<number>;
1103
- cursorIndexRef: {
1104
- readonly current: number;
1105
- };
1106
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1107
- UNSTABLE_defaultItemHeight: number;
1108
- containerRef: React.RefObject<HTMLDivElement>;
1109
- id: string;
1110
- orientation: "horizontal" | "vertical";
1111
- indexRef: React.MutableRefObject<number>;
1112
- nonInteractiveIds: string[];
1113
- isVirtualized: boolean;
1114
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
1115
- };
1116
- events: {
1117
- select(data: {
1118
- id: string;
1119
- }): void;
1120
- selectAll(): void;
1121
- unselectAll(): void;
1122
- setSelectedIds(ids: string[] | "all"): void;
1123
- remove(data: {
1124
- id: string;
1125
- nextId?: string | undefined;
1126
- event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1127
- }): void;
1128
- goTo(data: {
1129
- id: string;
1130
- }): void;
1131
- goToNext(): void;
1132
- goToPrevious(): void;
1133
- goToPreviousRow(): void;
1134
- goToNextRow(): void;
1135
- goToFirst(): void;
1136
- goToLast(): void;
1137
- goToFirstOfRow(): void;
1138
- goToLastOfRow(): void;
1139
- goToNextPage(): void;
1140
- goToPreviousPage(): void;
1141
- registerItem(data: {
1142
- id: string;
1143
- textValue: string;
1144
- }): void;
1145
- unregisterItem(data: {
1146
- id: string;
1147
- }): void;
1148
- updateItemHeight(data: {
1149
- value: number;
1150
- }): void;
1151
- };
1152
- selection: import("@workday/canvas-kit-react/collection").SelectionManager;
1153
- navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
1154
- getId: (item: any) => string;
1155
- getTextValue: (item: any) => string;
1156
- } | undefined;
1157
- }, {}, {
1158
- disabled: boolean;
1159
- size: "medium" | "small" | "large";
1160
- selectedIds: string[] | "all";
1161
- unselectedIds: string[];
1162
- cursorId: string | string[];
1163
- columnCount: number;
1164
- pageSizeRef: React.MutableRefObject<number>;
1165
- cursorIndexRef: {
1166
- readonly current: number;
1167
- };
1168
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1169
- UNSTABLE_defaultItemHeight: number;
1170
- containerRef: React.RefObject<HTMLDivElement>;
1171
- id: string;
1172
- orientation: "horizontal" | "vertical";
1173
- indexRef: React.MutableRefObject<number>;
1174
- nonInteractiveIds: string[];
1175
- isVirtualized: boolean;
1176
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
1177
- }, {
1178
- select(data: {
1179
- id: string;
1180
- }): void;
1181
- selectAll(): void;
1182
- unselectAll(): void;
1183
- setSelectedIds(ids: string[] | "all"): void;
1184
- remove(data: {
1185
- id: string;
1186
- nextId?: string | undefined;
1187
- event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1188
- }): void;
1189
- goTo(data: {
1190
- id: string;
1191
- }): void;
1192
- goToNext(): void;
1193
- goToPrevious(): void;
1194
- goToPreviousRow(): void;
1195
- goToNextRow(): void;
1196
- goToFirst(): void;
1197
- goToLast(): void;
1198
- goToFirstOfRow(): void;
1199
- goToLastOfRow(): void;
1200
- goToNextPage(): void;
1201
- goToPreviousPage(): void;
1202
- registerItem(data: {
1203
- id: string;
1204
- textValue: string;
1205
- }): void;
1206
- unregisterItem(data: {
1207
- id: string;
1208
- }): void;
1209
- updateItemHeight(data: {
1210
- value: number;
1211
- }): void;
1212
- }, {
1213
- state: {
1214
- disabled: boolean;
1215
- size: "medium" | "small" | "large";
1216
- selectedIds: string[] | "all";
1217
- unselectedIds: string[];
1218
- cursorId: string | string[];
1219
- columnCount: number;
1220
- pageSizeRef: React.MutableRefObject<number>;
1221
- cursorIndexRef: {
1222
- readonly current: number;
1223
- };
1224
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1225
- UNSTABLE_defaultItemHeight: number;
1226
- containerRef: React.RefObject<HTMLDivElement>;
1227
- id: string;
1228
- orientation: "horizontal" | "vertical";
1229
- indexRef: React.MutableRefObject<number>;
1230
- nonInteractiveIds: string[];
1231
- isVirtualized: boolean;
1232
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
1233
- };
1234
- events: {
1235
- select(data: {
1236
- id: string;
1237
- }): void;
1238
- selectAll(): void;
1239
- unselectAll(): void;
1240
- setSelectedIds(ids: string[] | "all"): void;
1241
- remove(data: {
1242
- id: string;
1243
- nextId?: string | undefined;
1244
- event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1245
- }): void;
1246
- goTo(data: {
1247
- id: string;
1248
- }): void;
1249
- goToNext(): void;
1250
- goToPrevious(): void;
1251
- goToPreviousRow(): void;
1252
- goToNextRow(): void;
1253
- goToFirst(): void;
1254
- goToLast(): void;
1255
- goToFirstOfRow(): void;
1256
- goToLastOfRow(): void;
1257
- goToNextPage(): void;
1258
- goToPreviousPage(): void;
1259
- registerItem(data: {
1260
- id: string;
1261
- textValue: string;
1262
- }): void;
1263
- unregisterItem(data: {
1264
- id: string;
1265
- }): void;
1266
- updateItemHeight(data: {
1267
- value: number;
1268
- }): void;
1269
- };
1270
- selection: import("@workday/canvas-kit-react/collection").SelectionManager;
1271
- navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
1272
- getId: (item: any) => string;
1273
- getTextValue: (item: any) => string;
1274
- UNSTABLE_parentModel: {
1275
- state: {
1276
- selectedIds: string[] | "all";
1277
- unselectedIds: string[];
1278
- cursorId: string | string[];
1279
- columnCount: number;
1280
- pageSizeRef: React.MutableRefObject<number>;
1281
- cursorIndexRef: {
1282
- readonly current: number;
1283
- };
1284
- UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer<HTMLDivElement, Element>;
1285
- UNSTABLE_defaultItemHeight: number;
1286
- containerRef: React.RefObject<HTMLDivElement>;
1287
- id: string;
1288
- orientation: "horizontal" | "vertical";
1289
- indexRef: React.MutableRefObject<number>;
1290
- nonInteractiveIds: string[];
1291
- isVirtualized: boolean;
1292
- items: import("@workday/canvas-kit-react/collection").Item<any>[];
1293
- };
1294
- events: {
1295
- select(data: {
1296
- id: string;
1297
- }): void;
1298
- selectAll(): void;
1299
- unselectAll(): void;
1300
- setSelectedIds(ids: string[] | "all"): void;
1301
- remove(data: {
1302
- id: string;
1303
- nextId?: string | undefined;
1304
- event?: Event | React.SyntheticEvent<Element, Event> | undefined;
1305
- }): void;
1306
- goTo(data: {
1307
- id: string;
1308
- }): void;
1309
- goToNext(): void;
1310
- goToPrevious(): void;
1311
- goToPreviousRow(): void;
1312
- goToNextRow(): void;
1313
- goToFirst(): void;
1314
- goToLast(): void;
1315
- goToFirstOfRow(): void;
1316
- goToLastOfRow(): void;
1317
- goToNextPage(): void;
1318
- goToPreviousPage(): void;
1319
- registerItem(data: {
1320
- id: string;
1321
- textValue: string;
1322
- }): void;
1323
- unregisterItem(data: {
1324
- id: string;
1325
- }): void;
1326
- updateItemHeight(data: {
1327
- value: number;
1328
- }): void;
1329
- };
1330
- selection: import("@workday/canvas-kit-react/collection").SelectionManager;
1331
- navigation: import("@workday/canvas-kit-react/collection").NavigationManager;
1332
- getId: (item: any) => string;
1333
- getTextValue: (item: any) => string;
1334
- } | undefined;
1335
- }>;
1336
- //# sourceMappingURL=useSegmentedControlModel.d.ts.map